apeiros_ changed the topic of #ruby to: programming language || ruby-lang.org || Paste >3 lines of text in http://pastie.org || Rails is in #rubyonrails
mneorr has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
mneorr has joined #ruby
minijupe has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
rmascarenhas has quit [Quit: leaving]
kawa_xxx has quit [Read error: Connection reset by peer]
kawa_xxx has joined #ruby
mpereira has quit [Remote host closed the connection]
mneorr has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
liluo has joined #ruby
kawa_xxx has quit [Remote host closed the connection]
S2kx has joined #ruby
S1kx has quit [Ping timeout: 252 seconds]
benatwork has joined #ruby
binaryplease has quit [Quit: WeeChat 0.3.7]
A124 has joined #ruby
A124 has left #ruby [#ruby]
schovi has quit [Remote host closed the connection]
benatwork has quit [Ping timeout: 245 seconds]
amalvagomes has joined #ruby
apok has joined #ruby
c0rn has joined #ruby
jameshyde has joined #ruby
fantazo has joined #ruby
jenrzzz-mac has quit [Ping timeout: 252 seconds]
ryanf has joined #ruby
jenrzzz-mac has joined #ruby
<marwan_> rubiest i had something tricky here with hashes and array - any help
shtirlic has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby
moshee has quit [Ping timeout: 265 seconds]
moshee has joined #ruby
tscolari has joined #ruby
yabuki has joined #ruby
bambanx has joined #ruby
<bambanx> hi
jenrzzz-mac has quit [Ping timeout: 260 seconds]
freeayu__ has joined #ruby
apok has quit [Quit: apok]
c0rn has quit []
iocor has quit [Quit: Computer has gone to sleep.]
jameshyde has quit [Quit: Leaving]
yonggu has joined #ruby
fayimora_ has joined #ruby
liluo has quit [Remote host closed the connection]
sbanwart has quit [Ping timeout: 245 seconds]
jetblack has joined #ruby
bambanx has quit [Ping timeout: 260 seconds]
fayimora has quit [Ping timeout: 264 seconds]
fayimora_ is now known as fayimora
emet has joined #ruby
banister_ has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
fivetwentysix has joined #ruby
ramblex has quit [Quit: ramblex]
naz has joined #ruby
BrokenCog has quit [Read error: Connection reset by peer]
amalvagomes has quit [Quit: amalvagomes]
<offby1> Marwan_: describe the problem. Ideally in a way that I can reproduce it.
<marwan_> offby1: i have this hash
<marwan_> [[["up", "1"], ["user_id", "1"]], [["down", "0"], ["comments", "0"]], [["url", "text://test text"], ["title", "test title"]], ["username", nil], [["id", "2"], ["score", "0"]], ["rank", "-1000.00000002041"], [["rank", "-1000.00000002041"], ["ctime", "1338751498"]]]
<marwan_> i want to select the url
iamjarvo has joined #ruby
<marwan_> something like hash["url"] => "text://test text"
<marwan_> but this doesn't work
kvirani has quit [Remote host closed the connection]
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
<banister_> Marwan_: that's not a hash
igotnolegs has joined #ruby
fayimora has quit [Quit: Be back in a gifii]
otters has joined #ruby
<marwan_> oh sorry here it is
<offby1> that looks more like an array of arrays
<marwan_> {"rank"=>"-1000.00000002041", "username"=>nil, ["url", "text://test"]=>["up", "1"], ["comments", "0"]=>["ctime", "1338503691"], ["title", "test"]=>["rank", "-1000.00000002042"], ["down", "0"]=>["id", "1"], ["score", "0"]=>["user_id", "1"]}
<macmartine> Now how come in this case 'p recurring_weekdays' doesn't return the same thing that '@recurring_weekdays' does? https://gist.github.com/2865612
banister_ has quit [Remote host closed the connection]
<offby1> Marwan_: the stuff you want is part of a key, not a value; so you'll have to do something like your_hash.keys.filter {|k| k[0] == "url"}
<marwan_> offby1: ok i will try that
<marwan_> thank
<offby1> h.keys.find{|k| k[0] == "url"}[1] seems to work
yabuki has quit [Remote host closed the connection]
<offby1> but you'll need to think about error handling
<offby1> may I ask where that hash came from? It's kinda weird, using arrays as keys.
zachs has quit []
<marwan_> my_hash.select{|k,v| k.to_a[0] == "url"}[0][0][1]
<marwan_> this works - but i is complicated
<offby1> I think that's essentially the same as mine.
<marwan_> i will try yours also
emmanuelux has quit [Read error: Connection reset by peer]
CheeToS has joined #ruby
platinum_lolin is now known as nigman
jenrzzz-mac has joined #ruby
Banistergalaxy has joined #ruby
liluo has joined #ruby
[Neurotic] has joined #ruby
ahuman_ has quit [Remote host closed the connection]
nigman is now known as LifeFag
perryh_away is now known as perryh
mneorr has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 244 seconds]
jchauncey has joined #ruby
mneorr has joined #ruby
echosystm has joined #ruby
<echosystm> does anyone know if there are any plans to have some kind of async support for rack?
<echosystm> i mean a standard interface, not the thing that thin does
replore has joined #ruby
yabuki has joined #ruby
kah_ has quit [Ping timeout: 245 seconds]
ipoval has quit [Quit: ipoval]
tvw has joined #ruby
kah_ has joined #ruby
tayy has quit [Remote host closed the connection]
undersc0re97 has quit [Quit: Leaving]
pdtpatrick has joined #ruby
werdnativ has joined #ruby
werdnativ has quit [Client Quit]
yonggu has quit [Read error: Connection reset by peer]
shevy has joined #ruby
yonggu has joined #ruby
ahuman has joined #ruby
ZachBeta has quit [Read error: Connection reset by peer]
ZachBeta has joined #ruby
L-----D has joined #ruby
skryking has quit [Read error: Operation timed out]
kenichi has quit [Remote host closed the connection]
nfluxx_ has joined #ruby
nfluxx has quit [Ping timeout: 240 seconds]
nfluxx_ is now known as nfluxx
shadoi has joined #ruby
dbgster has joined #ruby
Synthead has quit [Remote host closed the connection]
Synthead has joined #ruby
khakimov has joined #ruby
looopy has quit [Remote host closed the connection]
ghanima has joined #ruby
khakimov has quit [Client Quit]
Oog_ has joined #ruby
<Oog_> how do i do a split and keep the split value in the parts
fbernier has joined #ruby
yoklov has quit [Quit: bye!]
dorei has quit []
andrewhl has joined #ruby
Hanmac1 has joined #ruby
freakazoid0223 has quit [Read error: Connection reset by peer]
naz has quit [Ping timeout: 248 seconds]
Hanmac has quit [Ping timeout: 260 seconds]
emet has quit [Remote host closed the connection]
Banistergalaxy has quit [Remote host closed the connection]
looopy has joined #ruby
<ryanf> Oog_: I think you can use a regex with a group in it
shtirlic_ has joined #ruby
<ryanf> ah, yeah
<ryanf> [1] pry(main)> "asdf:ghjk:qwer".split(/(:)/):)/)
<ryanf> => ["asdf", ":", "ghjk", ":", "qwer"]
<ryanf> um that pasted wrong
<ryanf> should be .split(/(:)/)
keymone_ has joined #ruby
tdmackey has quit [Ping timeout: 245 seconds]
shtirlic has quit [Ping timeout: 244 seconds]
keymone has quit [Ping timeout: 260 seconds]
keymone_ is now known as keymone
yannis has joined #ruby
siksia has quit [Ping timeout: 248 seconds]
naz has joined #ruby
tscolari has quit [Remote host closed the connection]
yabuki has quit [Quit: Leaving...]
siksia has joined #ruby
mengu has quit [Remote host closed the connection]
LiquidInsect has quit [Ping timeout: 265 seconds]
ringotwo has joined #ruby
c0rn has joined #ruby
larissa has joined #ruby
LiquidInsect has joined #ruby
ringotwo has quit [Remote host closed the connection]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
ringotwo has joined #ruby
benatwork has joined #ruby
benatwork has quit [Ping timeout: 245 seconds]
fbernier has quit [Ping timeout: 245 seconds]
Whoop has quit [Quit: WeeChat 0.3.7]
ananthakumaran has joined #ruby
dbgster has quit [Quit: dbgster]
Whoop has joined #ruby
Whoop has quit [Changing host]
Whoop has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
Facefox has quit [Ping timeout: 240 seconds]
puff has joined #ruby
<puff> Evening. I've decided to take another crack at ruby, this time a simple web client to regularly fetch and save an RSS feed. Can somebody suggest a good tutorial for this sort of task?
bglusman has quit [Ping timeout: 245 seconds]
khakimov has joined #ruby
<puff> I'm pretty good with java, so-so with perl, same with php, so I'm more interested in learning the "right" way to do it in ruby.
<offby1> hmm, I'd be curious to know too
<offby1> sounds like a good intro project, actually.
chessguy has joined #ruby
ryanf has quit [Quit: leaving]
flip_digits has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<puff> offby1: Yeah... my other first project was augmenting an existing project, hostmap. The universal reaction by expereinced rubyists was "oh god why would you want to work with *this* code as your first ruby project" :-)
bglusman has joined #ruby
<puff> Hm, this looks like it might be a good tutorial... a bit simplistic, but is the ruby right? http://satishtalim.github.com/webruby/chapter3.html
Facefox has joined #ruby
<rking> puff: I skimmed it. It looks fine.
<puff> rking: hostmap?
<rking> puff: If you find any problems with it (or other possible improvements) make a pull request.
ryanf has joined #ruby
<rking> (And, btw, if you don't know how to do that I'd be happy to walk you through it.)
<puff> rking: I'll consider that when I'm good enough at ruby to improve somebody else's code :-).
<offby1> I assume there are libraries to process RSS, but I also assume you'd rather not use them, since the point is to learn
<rking> hostmap?
ryanf has quit [Remote host closed the connection]
CheeToS has quit [Ping timeout: 252 seconds]
<puff> rking: Oh, sorry, you mean you skimmed the tutorial. Cool.
<rking> puff: Nah man. Improving docs is natural. You almost always have something to offer.
<puff> rking: Thanks.
<rking> That's why I like Wikis.
<puff> rking: Yeah, I'll certainly keep track of any rough spots.
kah_ has quit [Ping timeout: 245 seconds]
<puff> offby1: eh, for now I just want to pull the data and save it.
<offby1> I sort of hate wikis.
<puff> offby1: Processing it will be the next step :-).
<rking> offby1: Wherefore?
<puff> wikis are what you make of them.
<offby1> I do like that anyone can edit them ... but the pages on many wikis are just long sequences of comments, like the comments on a blog post. Happily Wikipedia is much better than that
looopy has quit [Remote host closed the connection]
radic has quit [Disconnected by services]
c0rn has quit []
<offby1> but e.g., emacswiki.org ... pretty disorganized
radic_ has joined #ruby
radic_ is now known as radic
<puff> offby1: Check out c2.com sometime :-).
<offby1> yeah, that too
<offby1> at least they have the excuse of being the world's first wiki.
looopy has joined #ruby
<puff> rking: One bit, dunno if it'd really help in this case, but I *really* like to show people the actual content of an HTTP request, makes it a lot less "magic" and hence more accessible.
jcromartie has quit [Read error: Connection reset by peer]
jcromartie has joined #ruby
<rking> puff: Yeah, good point. Maybe file an Issue, then?
Solnse has quit [Read error: No route to host]
dotnull has quit [Remote host closed the connection]
khakimov has quit [Quit: Computer has gone to sleep.]
noodletraveler has joined #ruby
<puff> rking: You know this guy?
<rking> puff: No. Why would you think that? =)
looopy has quit [Remote host closed the connection]
mmochan has joined #ruby
xclite has joined #ruby
xclite has quit [Client Quit]
xclite has joined #ruby
c0rn has joined #ruby
berserkr has quit [Quit: Leaving.]
looopy has joined #ruby
jchauncey has quit [Quit: jchauncey]
frishi has joined #ruby
frishi has quit [Client Quit]
td123 has quit [Quit: goodnight]
skryking has joined #ruby
ipoval has joined #ruby
yannis has quit [Read error: Connection timed out]
zinjacoder has quit [Remote host closed the connection]
yannis has joined #ruby
marwan_ has quit [Quit: Page closed]
TheHunter_1039 has quit [Quit: TheHunter_1039]
cha1tanya has joined #ruby
Karmaon has joined #ruby
noodletraveler has quit [Read error: Connection reset by peer]
getbitcoin1 has joined #ruby
savage- has joined #ruby
noodletraveler has joined #ruby
frishi has joined #ruby
yonggu has quit [Quit: yonggu]
macmartine has quit [Quit: macmartine]
noodletraveler has quit [Client Quit]
azm has joined #ruby
minijupe has quit [Quit: minijupe]
yosinof has joined #ruby
yannis has quit [Read error: Connection timed out]
yannis has joined #ruby
bfgun has joined #ruby
subbyyy1 has quit [Ping timeout: 240 seconds]
h4mz1d has quit [Ping timeout: 248 seconds]
noodletraveler has joined #ruby
iamjarvo has quit [Quit: Leaving.]
ryanf has joined #ruby
bfig has quit [Ping timeout: 256 seconds]
Oog_ has quit [Quit: Page closed]
fbernier has joined #ruby
xclite has quit [Read error: Connection reset by peer]
noodletraveler has quit [Ping timeout: 265 seconds]
noodletraveler has joined #ruby
visof has joined #ruby
visof has quit [Changing host]
visof has joined #ruby
davidcelis has joined #ruby
yannis has quit [Read error: Connection timed out]
looopy has quit [Remote host closed the connection]
noodletraveler has quit [Ping timeout: 256 seconds]
noodletraveler has joined #ruby
GSpotAssassin has joined #ruby
ghanima has quit [Quit: Leaving.]
macmartine has joined #ruby
azm has quit [Ping timeout: 250 seconds]
MrGando has quit [Quit: Bye]
macmartine has quit [Client Quit]
noodletraveler has quit [Ping timeout: 244 seconds]
noodletraveler has joined #ruby
GSpotAssassin has left #ruby [#ruby]
vitor-br has quit [Quit: Saindo]
<dekz> Why does this happen, irregardless of ruby runtime, when installing ANY gem? https://gist.github.com/9184c1fcac3c64bc678b
imami|afk is now known as banseljaj
krusty_ar has quit [Ping timeout: 252 seconds]
L-----D has quit [Quit: Leaving]
noodletraveler has quit [Ping timeout: 245 seconds]
fbernier has quit [Ping timeout: 245 seconds]
noodletraveler has joined #ruby
jimeh2 has quit [Ping timeout: 252 seconds]
<offby1> only thing I can think of: you've got something in an init file that is deleting the load path
macmartine has joined #ruby
noodletraveler has quit [Ping timeout: 248 seconds]
noodletraveler has joined #ruby
fubada has quit [Remote host closed the connection]
yosinof has quit [Quit: Leaving]
ringotwo has quit [Remote host closed the connection]
siksia has quit [Ping timeout: 252 seconds]
kevinbond has joined #ruby
h4mz1d has joined #ruby
noodletraveler has quit [Ping timeout: 250 seconds]
looopy has joined #ruby
benatwork has joined #ruby
noodletraveler has joined #ruby
maccosmo has quit [Quit: maccosmo]
bglusman has quit [Remote host closed the connection]
bglusman has joined #ruby
bglusman has quit [Read error: Connection reset by peer]
freeayu__ has quit [Ping timeout: 250 seconds]
Karmaon has quit [Ping timeout: 276 seconds]
bglusman has joined #ruby
benatwork has quit [Ping timeout: 245 seconds]
deryl has quit [Quit: Time To Go, So Sad!]
mmochan has quit [Ping timeout: 256 seconds]
minijupe has joined #ruby
ericcoleman has joined #ruby
deryldoucette has joined #ruby
noodletraveler has quit [Ping timeout: 265 seconds]
siksia has joined #ruby
noodletraveler has joined #ruby
deryldoucette has quit [Client Quit]
deryldoucette has joined #ruby
deryldoucette is now known as deryl
noodletraveler has quit [Ping timeout: 245 seconds]
noodletraveler has joined #ruby
uc has joined #ruby
mmsequeira_ has joined #ruby
mmsequeira has quit [Ping timeout: 252 seconds]
mmsequeira_ is now known as mmsequeira
nilg` has joined #ruby
banisterfiend has joined #ruby
noodletraveler has quit [Ping timeout: 256 seconds]
noodletraveler has joined #ruby
Tricks has joined #ruby
larissa has quit [Quit: gone]
rippa has joined #ruby
macmartine has quit [Quit: macmartine]
Solnse has joined #ruby
noodletraveler has quit [Ping timeout: 248 seconds]
Sinestro has joined #ruby
khakimov has joined #ruby
lkba has quit [Read error: Connection reset by peer]
L-----D has joined #ruby
AndChat| has joined #ruby
noodletraveler has joined #ruby
visof has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Quit: Leaving.]
Chryson has quit [Quit: Leaving]
noodletraveler has quit [Ping timeout: 240 seconds]
tomzx has quit [Ping timeout: 245 seconds]
noodletraveler has joined #ruby
Freelancer has joined #ruby
davidpk has joined #ruby
cha1tanya has quit [Ping timeout: 256 seconds]
Progster has quit [Ping timeout: 240 seconds]
c0rn__ has joined #ruby
noodletraveler has quit [Ping timeout: 252 seconds]
uc has quit [Ping timeout: 252 seconds]
looopy has quit [Remote host closed the connection]
AndChat| has quit [Ping timeout: 248 seconds]
noodletraveler has joined #ruby
<Tricks> I think I'm misunderstanding how to use the json library to convert objects to json and back, anyone know what I'm doing wrong? http://pastebin.com/x0Gt55H4
kawa_xxx has joined #ruby
_blackbird has quit [Quit: _blackbird]
mlevin_ has quit [Ping timeout: 252 seconds]
noodletraveler has quit [Ping timeout: 250 seconds]
mikeycgto has quit [Remote host closed the connection]
mxweas_ has joined #ruby
noodletraveler has joined #ruby
emet has joined #ruby
emet has quit [Changing host]
emet has joined #ruby
Karmaon has joined #ruby
_blackbird has joined #ruby
brianpWins has joined #ruby
Solnse has quit [Remote host closed the connection]
nipra has joined #ruby
tonini has joined #ruby
uc has joined #ruby
bluebie has joined #ruby
noodletraveler has quit [Ping timeout: 256 seconds]
noodletraveler has joined #ruby
kawa_xxx has quit [Remote host closed the connection]
pdtpatrick has quit [Quit: pdtpatrick]
siksia has quit [Ping timeout: 245 seconds]
siksia has joined #ruby
Boohbah has quit [Ping timeout: 276 seconds]
h4mz1d has quit [Ping timeout: 245 seconds]
noodletraveler has quit [Ping timeout: 248 seconds]
Guest94834 has joined #ruby
noodletraveler has joined #ruby
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
bluebie has quit [Quit: Linkinus - http://linkinus.com]
Karmaon has quit [Read error: Connection reset by peer]
Karmaon has joined #ruby
noodletraveler has quit [Ping timeout: 240 seconds]
noodletraveler has joined #ruby
banseljaj is now known as imami|afk
kevinbond has quit [Quit: kevinbond]
noodletraveler has quit [Ping timeout: 252 seconds]
noodletraveler has joined #ruby
JohnBat26 has joined #ruby
Freelancer has quit [Quit: The computer fell asleep]
echosystm has left #ruby [#ruby]
ananthakumaran has joined #ruby
noodletraveler has quit [Ping timeout: 260 seconds]
flip_digits has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
noodletraveler has joined #ruby
davidcelis has quit [Ping timeout: 244 seconds]
davidcelis has joined #ruby
b3gott3n has quit [Ping timeout: 260 seconds]
davidpk has quit [Quit: Computer has gone to sleep.]
pdtpatrick has joined #ruby
noodletraveler has quit [Ping timeout: 240 seconds]
noodletraveler has joined #ruby
davidcelis has quit [Ping timeout: 245 seconds]
<dekz> for one thing, 1.9 hash syntax sucks
emet has quit [Read error: Connection reset by peer]
cha1tanya has quit [Remote host closed the connection]
mxweas_ has quit [Quit: Computer has gone to sleep.]
skryking has quit [Quit: Konversation terminated!]
dtang has joined #ruby
skryking has joined #ruby
noodletraveler has quit [Ping timeout: 265 seconds]
pdtpatrick has quit [Quit: pdtpatrick]
<dekz> Tricks provide a runnable snippet without that hash syntax. Maybe check the hash depth with parse!
noodletraveler has joined #ruby
skryking has quit [Client Quit]
skryking has joined #ruby
nirakara has joined #ruby
geekfactor has quit [Remote host closed the connection]
Morkel has joined #ruby
geekfactor has joined #ruby
Karmaon has quit [Quit: WeeChat 0.3.8-rc2]
nikhil_ has joined #ruby
noodletraveler has quit [Ping timeout: 260 seconds]
gokul has joined #ruby
noodletraveler has joined #ruby
Freelancer has joined #ruby
Guest94834 has quit [Ping timeout: 245 seconds]
yxhuvud has joined #ruby
nirakara has quit [Ping timeout: 252 seconds]
zomgbie has quit [Ping timeout: 252 seconds]
stewart_ has quit [Quit: Leaving.]
kalleth has quit [Ping timeout: 244 seconds]
noodletraveler has quit [Ping timeout: 260 seconds]
freeayu1 has joined #ruby
noodletraveler has joined #ruby
Sinestro has quit [Quit: Sinestro]
nikhil_ has quit [Quit: This computer has gone to sleep]
CheeToS has joined #ruby
bfgun is now known as bfig
looopy has joined #ruby
tomku has quit [Ping timeout: 260 seconds]
c0rn__ has quit [Quit: Computer has gone to sleep.]
noodletraveler has quit [Ping timeout: 260 seconds]
noodletraveler has joined #ruby
busybox42 has quit [Ping timeout: 265 seconds]
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
Karmaon has joined #ruby
noodletraveler has quit [Ping timeout: 248 seconds]
noodletraveler has joined #ruby
Synthead has quit [Quit: p33 ba115]
yannis has joined #ruby
noodletraveler has quit [Ping timeout: 265 seconds]
noodletraveler has joined #ruby
Hanmac1 is now known as Hanmac
Sinestro has joined #ruby
<Sinestro> How can I record sound in Ruby?
benatwork has joined #ruby
davidcelis has joined #ruby
vectroshelve has joined #ruby
vectroshelve has quit [Client Quit]
vectorshelve has joined #ruby
benatwork has quit [Ping timeout: 245 seconds]
noodletraveler has quit [Ping timeout: 245 seconds]
<vectorshelve> HAI ALL
<vectorshelve> hemanth: Hai Bhai :)
noodletraveler has joined #ruby
davidcelis has quit [Read error: Connection reset by peer]
gtuckerkellogg has joined #ruby
<hemanth> vectorshelve, https://chrome.google.com/webstore/detail/ddommmoecmndjejocdikjendidfoecal togist! create gist with selected text
<hemanth> Sinestro, try https://rubygems.org/gems/ruby-alsa
<vectorshelve> hemanth: amazing :)
<vectorshelve> hemanth: cool man
<hemanth> vectorshelve, BTW hows my diction ? :D
Freelancer has left #ruby [#ruby]
<vectorshelve> hemanth: diction of what ?
<vectorshelve> hemanth: ruby-alsa is ur gem ?
davidcelis has joined #ruby
<banisterfiend> vectorshelve: the gem authors names are at that link, see if u can find it ;)
<Sinestro> I'm on OS X, so sadly I can't use ruby-alsa.
noodletraveler has quit [Ping timeout: 248 seconds]
<vectorshelve> banisterfiend: dude I know.. I didnt find his name thatswhay I asked :D
<vectorshelve> banisterfiend: ok he was helping Sinestro out.. I thought he created a new gem today as he does each day
<hemanth> vectorshelve, so the chrome plugin video?
<hemanth> banisterfiend++
senny has joined #ruby
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
noodletraveler has joined #ruby
<hemanth> Sinestro, well.....may be https://github.com/nagachika/ruby-coreaudio
<banisterfiend> hemanth: if you emigrate to USA would you change your name to herman
tomku has joined #ruby
<vectorshelve> hemanth: no ear phone now... :) but cool plugin... dude congrats ;)
maesbn has joined #ruby
<hemanth> banisterfiend, heh heh heman maybe :D
<hemanth> vectorshelve, thanks
kalleth has joined #ruby
* hemanth : whoz man? HerMan :D
kinesis has left #ruby [#ruby]
<hemanth> Sinestro, http://borkware.com/rants/sound/recordotron-project-10.tar.gz will help you for sure
noodletraveler has quit [Ping timeout: 260 seconds]
noodletraveler has joined #ruby
pdtpatrick has joined #ruby
Prometheu5 has joined #ruby
nazty has joined #ruby
Prometheu5 is now known as Prometheus
Prometheus has quit [Client Quit]
Prometheus has joined #ruby
Prometheus has quit [Changing host]
Prometheus has joined #ruby
rippa has quit [Ping timeout: 260 seconds]
nirakara has joined #ruby
noodletraveler has quit [Ping timeout: 244 seconds]
sspiff has joined #ruby
sspiff has quit [Changing host]
sspiff has joined #ruby
eywu has joined #ruby
noodletraveler has joined #ruby
fantazo has quit [Remote host closed the connection]
nirakara has quit [Client Quit]
Sinestro has quit [Quit: Sinestro]
djdb has joined #ruby
nirakara has joined #ruby
hoelzro|away is now known as hoelzro
bosphorus has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
zomgbie has joined #ruby
seoaqua has quit [Quit: Leaving]
ciopte7 has quit [Quit: ciopte7]
LifeFag is now known as nigman
cha1tanya has quit [Ping timeout: 252 seconds]
jackiechan0 has joined #ruby
jackiechan0 is now known as jackbrownhf
jackbrownhf has quit [Changing host]
jackbrownhf has joined #ruby
Vert has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
kaiwren has joined #ruby
j445 has joined #ruby
zomgbie has quit [Read error: Connection reset by peer]
j445 has quit [Quit: j445]
wallerdev has quit [Quit: wallerdev]
seoaqua has joined #ruby
Vainoharhainen has quit [Quit: Leaving...]
andrewhl has quit [Remote host closed the connection]
<vectorshelve> ...................................................................................................................................................................................................................................
wopi has joined #ruby
<wopi> Hi People
<wopi> Need some help with the presenter pattern, I have a bloated view which is displaying conditionally different partials : https://gist.github.com/17444525d988182a9b20 , any clues how to refactor ?
socomm has quit [Read error: Connection reset by peer]
igotnolegs has quit [Quit: Computer has gone to sleep.]
mxweas_ has joined #ruby
socomm has joined #ruby
fivetwentysix has quit [Quit: fivetwentysix]
busybox42 has joined #ruby
jprovazn has joined #ruby
dekroning has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
lolmaus has joined #ruby
<freeayu1> http://pastie.org/4023695 I have an array,, how to output the number before each line, use the recursion
zommi has joined #ruby
jackbrownhf has quit [Quit: Sto andando via]
shadoi has quit [Remote host closed the connection]
Sou|cutter has quit [Quit: WeeChat 0.3.0]
<ryanf> wopi: try asking that in #rubyonrails
<ryanf> but with Draper you might call <%= @feedback.item.decorate.render %> as the entire body of the partial
<ryanf> and then have a decorator for each class with a #render method
<dekroning> hi
<wopi> ryanf: thx
<bnagy> freeayu1: it's going to look something like def dump_array( ary, level=[0] ); ary.each {|e| if e.kind_of? Array;dump_array( e, level << 1) else #increment level and print element}
heftig has quit [Quit: leaving]
<bnagy> that should be enogh to get you going anyway
fivetwentysix has joined #ruby
zomgbie has joined #ruby
<bnagy> or you could def dump_array( ary, prefix=[] ) and then use each_with_index {|e,i| "#{prefix}.#{i}" or recurse with prefix << ".#{i}"
gokul has quit [Quit: Leaving]
williamcotton has quit [Quit: williamcotton]
<freeayu1> bnagy http://pastie.org/4023745 this is the code. I'm not sure how to add the increment level in the code
ipoval has quit [Quit: ipoval]
<bnagy> freeayu1: for 'normal' recursion you would need to pass the prefix, or level, or something as a method argument when you recurse
<bnagy> that's the main thing you're missing
ericcoleman has quit [Quit: leaving]
SegFaultAX|work2 has quit [Ping timeout: 244 seconds]
<banisterfiend> bnagy: sup nags
<banisterfiend> bnagy: still sick?
<bnagy> banisterfiend: last night was pretty bad, worst is over though
<bnagy> didn't really sleep until about 6am
<banisterfiend> bnagy: is your wife affected too
<bnagy> no
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
fserb has joined #ruby
Sinestro has joined #ruby
<Sinestro> Has anyone used ruby-coreaudio?
dangerousdave has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
noodletraveler has quit [Ping timeout: 240 seconds]
<freeayu1> bnagy no idea about that
nirakara has quit [Quit: This computer has gone to sleep]
noodletraveler has joined #ruby
billiamii has quit [Quit: Leaving]
jcromartie has quit [Read error: Connection reset by peer]
jcromartie_ has joined #ruby
S2kx has quit [Quit: Leaving]
Hanmac has joined #ruby
jenrzzz-mac has quit [Quit: jenrzzz-mac]
jcromartie_ has quit [Read error: Connection reset by peer]
S1kx has joined #ruby
S1kx has joined #ruby
S1kx has quit [Changing host]
JohnBat26 has joined #ruby
mucker has joined #ruby
eywu has quit [Quit: Leaving.]
looopy has quit [Remote host closed the connection]
zomgbie has quit [Read error: Connection reset by peer]
c0rn has quit []
<freeayu1> bnagy difficult, I"m programnewbie
looopy has joined #ruby
<bnagy> banisterfiend: how do I modify a line in a method in pry again?
<banisterfiend> bnagy: you mean a method that you're currently defining in the repl? or a method that already exists somehwere (even on disk or in the repl) that u want to edit?
<banisterfiend> bnagy: for the first, use amend-line or edit for the latter use edit-method
<bnagy> yeah
<bnagy> oh, edit meth will drop me into my editor, right
nazty has quit [Ping timeout: 265 seconds]
naz has quit [Ping timeout: 245 seconds]
krusty_ar has joined #ruby
Synthead has joined #ruby
keymone has quit [Read error: Connection reset by peer]
<banisterfiend> bnagy: edit-method YourClass#your_method
keymone has joined #ruby
<banisterfiend> bnagy: we'll probably support edit YourClass#your_method soon enough
<banisterfiend> but not yet
Juul has joined #ruby
<banisterfiend> combining edit and edit-method into a single command is def. on the cards
krusty_ar has quit [Ping timeout: 240 seconds]
ParadoxQuine has quit [Quit: ParadoxQuine]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
henn1nk has left #ruby ["WeeChat 0.3.6"]
minijupe has quit [Quit: minijupe]
darthdeus has quit [Quit: Leaving...]
fserb has quit [Quit: ttyl]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
heftig has joined #ruby
mengu has joined #ruby
sepp2k has joined #ruby
<bnagy> freeayu1: bleah the eith_index version is buggy
vjt has quit [Ping timeout: 272 seconds]
vjt has joined #ruby
ryanf has quit [Quit: leaving]
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
Helius has joined #ruby
mmochan has joined #ruby
elhu has joined #ruby
remmy444 has joined #ruby
DuoSRX has joined #ruby
noodletraveler has quit [Ping timeout: 245 seconds]
noodletraveler has joined #ruby
benatwork has joined #ruby
brianpWins has quit [Quit: brianpWins]
b3gott3n has joined #ruby
siksia has quit [Ping timeout: 256 seconds]
remmy444 has quit [Ping timeout: 252 seconds]
<vectorshelve> ...................................................................................................................................................
<vectorshelve> shevy: HAI :)
blacktulip has joined #ruby
benatwork has quit [Ping timeout: 244 seconds]
d3vic3 has joined #ruby
Vainoharhainen has joined #ruby
siksia has joined #ruby
cha1tanya has quit [Quit: Leaving]
SPYGAME has joined #ruby
noodletraveler has quit [Ping timeout: 248 seconds]
noodletraveler has joined #ruby
darthdeus has joined #ruby
<shevy> wtf
Juul has quit [Quit: Leaving]
Foxandxss has joined #ruby
jenrzzz-mac has joined #ruby
Criztian has joined #ruby
Occult has quit [Read error: Connection reset by peer]
Occult has joined #ruby
seoaqua has quit [Quit: Leaving]
Sinestro has quit [Ping timeout: 244 seconds]
BiHi has joined #ruby
wopi has quit [Quit: leaving]
Synthead has quit [Read error: Connection reset by peer]
perryh is now known as perryh_away
nigelb has quit [Quit: Lost terminal]
dtang has quit [Quit: dtang]
schovi has joined #ruby
roolo has joined #ruby
L-----D has quit [Quit: Leaving]
darthdeus has quit [Quit: Linkinus - http://linkinus.com]
Guest94834 has joined #ruby
moshee has quit [Ping timeout: 244 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
naz has joined #ruby
savage- has quit [Remote host closed the connection]
naz has quit [Ping timeout: 244 seconds]
tewecske has joined #ruby
Criztian has quit [Remote host closed the connection]
tomb_ has joined #ruby
jimeh2 has joined #ruby
berserkr has joined #ruby
fixl has joined #ruby
mxweas_ has quit [Quit: Computer has gone to sleep.]
tomb_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mxweas_ has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
fivetwentysix has quit [Quit: fivetwentysix]
celm has joined #ruby
rt456tgurt has joined #ruby
adac has joined #ruby
<adac> Guys, what am I doing wrong here? https://gist.github.com/2867404
charliesome has joined #ruby
<bnagy> apparently trying to use a method that doesn't exist
lxsameer has quit [Ping timeout: 245 seconds]
Mchl has quit [Ping timeout: 252 seconds]
<bnagy> maybe try it on the Net::HTTP connection
<heftig> just using a https:// url should activate SSL
<shevy> cool
lxsameer has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
tonini has quit [Remote host closed the connection]
lxsameer has joined #ruby
jbw has quit [Ping timeout: 240 seconds]
lxsameer has quit [Max SendQ exceeded]
freeayu1 has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
b3gott3n has quit [Ping timeout: 252 seconds]
DMKE has joined #ruby
DMKE has quit [Changing host]
DMKE has joined #ruby
jprovazn has quit [Quit: Leaving]
freeayu1 has joined #ruby
bashdy has joined #ruby
mengu has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 260 seconds]
Mchl has joined #ruby
vlad_starkov has joined #ruby
mohits has quit [Ping timeout: 252 seconds]
Guest27642 has joined #ruby
jbw has joined #ruby
Guest27642 has quit [Read error: Connection reset by peer]
roams has quit [Ping timeout: 240 seconds]
replore has quit [Remote host closed the connection]
sspiff has quit [Remote host closed the connection]
darrenlooby has joined #ruby
thecreators has quit [Quit: thecreators]
anonymous1 has joined #ruby
CheeToS has quit [Ping timeout: 260 seconds]
<darrenlooby> question from a n00b... how do I replace 44845xxxxx with 0845xxxxx?
<darrenlooby> Was thinking of some form of sub string
<bnagy> sub /^44/, '0'
<darrenlooby> bnagy, cheers
Progster has joined #ruby
<adac> heftig, yeah looks like it works...but getiing an other error still : https://gist.github.com/2867548
<adac> bnagy, ^^
mohits has joined #ruby
emmanuelux has joined #ruby
Guest85656 has joined #ruby
<Guest85656> i
<Guest85656> Hi everyone
ecolitan has joined #ruby
<Guest85656> who knows if nCurses works in windows?
<banisterfiend> Guest85656: it doesnt really work
<banisterfiend> in my experience
<banisterfiend> *some* of the api was supported but generally it was screwed
<banisterfiend> Guest85656: look into win32console gem instead
<Guest85656> gthnx
bluenemo has quit [Ping timeout: 265 seconds]
fermion has joined #ruby
cheater__ has joined #ruby
celm has quit [Quit: Leaving]
ronniy has joined #ruby
kaiwren has quit [Ping timeout: 245 seconds]
cheater_ has quit [Ping timeout: 245 seconds]
siksia has quit [Ping timeout: 248 seconds]
Gavilan has quit [Ping timeout: 256 seconds]
siksia has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
pk1001100011 has joined #ruby
moosya has left #ruby [#ruby]
benatwork has joined #ruby
kaiwren has joined #ruby
vonsar has joined #ruby
cantonic_ has joined #ruby
bluenemo has joined #ruby
b3gott3n has joined #ruby
benatwork has quit [Ping timeout: 252 seconds]
banisterfiend has quit [Read error: Connection reset by peer]
cantonic has quit [Ping timeout: 252 seconds]
cantonic_ is now known as cantonic
bosphorus has quit [Remote host closed the connection]
bosphorus has joined #ruby
banisterfiend has joined #ruby
TheHunter_1039 has joined #ruby
anonymous1 has quit [Ping timeout: 252 seconds]
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
fivetwentysix has joined #ruby
anonymous1 has joined #ruby
Helius has quit [Remote host closed the connection]
<Guest85656> how to install gem?
<Guest85656> in windows
Helius has joined #ruby
sameerynho has joined #ruby
i256 has joined #ruby
<i256> hello
<i256> what i can sort my hash using my alphabet?
<shevy> Guest85656 no
<shevy> Guest85656 if you have installed latest ruby, gem is bundled
<shevy> Guest85656 then you can install. for instance in irb, "gem install pry" would install pry
<i256> a=hash.new ; a['test']=1 a['zoo']=1 a.sort { my specyfic order }.each {|e,f| puts e}
<shevy> Guest85656 you can use rubyinstaller to get the latest ruby on windows http://rubyinstaller.org/
BiHi has quit [Quit: Computer has gone to sleep]
<shevy> i256 try .sort_by and put your criteria into it
<i256> shevy, ok but how? my alphabet ['a','ą','b','c','ć','d','e','ę','f','g','h','i','j','k',
<i256> 'ź','ż' ]
<i256> 'l','ł','m','n','ń','o','ó','p','r','s','ś','t','u','w','x','y','z',
<i256> in utf8
Defusal has quit [Read error: Connection reset by peer]
tomb_ has joined #ruby
simao has joined #ruby
Defusal has joined #ruby
simao has quit [Changing host]
simao has joined #ruby
Defusal has joined #ruby
Defusal has quit [Changing host]
<i256> my criteria is string. no first character.
schovi_ has joined #ruby
tonini has joined #ruby
sameerynho has quit [Quit: Leaving]
anonymous1 has quit [Ping timeout: 240 seconds]
<Hanmac> i256: hash.sort_by {|k,v| k.chars.map{|c| alphabet.index(c)} }
schovi has quit [Read error: Connection reset by peer]
fivetwentysix has quit [Quit: fivetwentysix]
mmochan has quit [Quit: mmochan]
<i256> Hanmac, working
<i256> many thanks
<bnagy> sort_by an array rocks
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
iocor has joined #ruby
nathan28 has joined #ruby
b3gott3n has quit [Ping timeout: 245 seconds]
nnp_nnt has quit [Remote host closed the connection]
tvw has quit [Remote host closed the connection]
<Tasser> it's a bit slow :-)
[Neurotic] has quit [Quit: Leaving]
Facefox has quit [Ping timeout: 244 seconds]
<bnagy> doesn't it shortcut?
<Tasser> hmm, should
iamjarvo has joined #ruby
bird__ has joined #ruby
<Hanmac> Tasser this is maybe better: hash.sort_by {|k,v| k.each_char.map{|c| alphabet.index(c)} }
Facefox has joined #ruby
<Tasser> Hanmac, a bit ;-)
theRoUS has quit [Ping timeout: 265 seconds]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
zinjacoder has joined #ruby
nathan28 has left #ruby [#ruby]
lxsameer has joined #ruby
<relix> morning fellas
<relix> I have a question of extend/include and modules
<relix> pastie code: http://pastie.org/4024583
<relix> I just can't get to the class "Test" inside the method acts_as_test
uc has quit [Remote host closed the connection]
<relix> "self" always seems to be ActsAsTest::ClassMethods::Class
anonymous2 has joined #ruby
davidcelis has quit [Read error: Connection reset by peer]
Prometheus has quit [Quit: leaving]
cantonic has quit [Remote host closed the connection]
tomzx has joined #ruby
liluo has quit [Remote host closed the connection]
cantonic has joined #ruby
lolsuper_ has quit [Ping timeout: 245 seconds]
davidcelis has joined #ruby
<shevy> %w{ apple pear fig }.sort_by {|word| word.length} # => ["fig", "pear", "apple"]
anonymous2 has quit [Ping timeout: 252 seconds]
<shevy> hmm
<shevy> what is alphabet Hanmac ?
<bnagy> or just sort_by(&:length)
<Hanmac> shevy its an array from i256
<shevy> ah
anonymous1 has joined #ruby
eddie has joined #ruby
eddie is now known as Guest69186
Guest69186 is now known as eddie_
<eddie_> How can i identify the language from unicode?
<eddie_> or
<eddie_> how is unicode distributed among languages?
<eddie_> anyone?
tomzx has quit [Ping timeout: 260 seconds]
<bnagy> I wasn't aware you could
<eddie_> bnagy: Like cod
<eddie_> code 0 200 English
<eddie_> or something like that
<eddie_> ?
<eddie_> any ranges?
geekfactor has quit [Remote host closed the connection]
geekfactor has joined #ruby
lolsuper_ has joined #ruby
<bnagy> you mean just from looking at a naked unicode string, right?
iori has joined #ruby
vonsar has quit [Remote host closed the connection]
nirakara has joined #ruby
mxweas_ has quit [Quit: Computer has gone to sleep.]
joshcheek has joined #ruby
tk___ has joined #ruby
jonathanwallace has joined #ruby
zommi has quit [Remote host closed the connection]
titas9x has joined #ruby
<adac> How can I debug a post request? Getting this error: /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:2221:in `read_status_line': wrong status line: "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">" (Net::HTTPBadResponse)
<titas9x> hi all how can i add sum of some perticular value of an arrey
BiHi has joined #ruby
noodletraveler has quit [Quit: leaving]
<hoelzro> titas9x: try Enumerable#reduce
<titas9x> I have a arrey students [name, score]
<titas9x> I want to add sum of all score
<titas9x> all studen score
<titas9x> sprry all student score
<hoelzro> titas9x: my advice still applies
<titas9x> thanks you so much but can u little explain it please
<titas9x> I am quite new with ruby
iamjarvo has quit [Quit: Leaving.]
<hoelzro> titas9x: reduce is a method that takes a block
Criztian has joined #ruby
<hoelzro> that block takes two parameters
<hoelzro> and does something with them
<titas9x> ok
<hoelzro> the result of that block is then passed into the next invocation of the block as the first parameter
<titas9x> got it but need little more clearence
<titas9x> I am with a rails project
<titas9x> in there any shortcut in rails so that i can reduce it properly in rails
<hoelzro> it's not Rails-specific
dv310p3r has quit [Ping timeout: 245 seconds]
<hoelzro> titas9x: try consulting the Enumerable documentation and looking for the word 'sum'
<titas9x> ok thank you again for your gr8 support
cantonic_ has joined #ruby
cha1tanya has quit [Ping timeout: 245 seconds]
cantonic has quit [Read error: Connection reset by peer]
cantonic_ is now known as cantonic
heftig has quit [Ping timeout: 245 seconds]
cousine has joined #ruby
rt456tgurt has left #ruby [#ruby]
geekbri has joined #ruby
elhu has quit [Ping timeout: 260 seconds]
Integralist has joined #ruby
Integralist has left #ruby [#ruby]
nfk has joined #ruby
celm has joined #ruby
cHarNe2 has joined #ruby
berkes has joined #ruby
AmirBehzad has joined #ruby
indian has joined #ruby
indian has quit [Changing host]
indian has joined #ruby
chessguy has quit [Read error: Connection reset by peer]
chessguy has joined #ruby
<AmirBehzad> I'm new to Ruby. I want to create a hash of words from a string. When I capture the words using match(), I'm going to create a hash of words. But the hash keys contain brakets, like ["MyWord"]. I don't want the brackets
indian has quit [Remote host closed the connection]
keanehsiao has joined #ruby
lxsameer has quit [Ping timeout: 245 seconds]
<keanehsiao> hihi
anonymous1 has quit [Read error: Connection reset by peer]
anonymous2 has joined #ruby
<keanehsiao> how do I make bourbon to works with my rails ? it seems not compile scss automatically
iamjarvo has joined #ruby
Guest85656 has quit [Ping timeout: 250 seconds]
liluo has joined #ruby
QaDeS has joined #ruby
`brendan has joined #ruby
kalleth_ has quit [Read error: Connection reset by peer]
AmirBehzad has left #ruby [#ruby]
kalleth_ has joined #ruby
krusty_ar has joined #ruby
philcrissman has quit [Remote host closed the connection]
anonymous2 has quit [Ping timeout: 240 seconds]
anonymous1 has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
siksia has quit [Ping timeout: 252 seconds]
lxsameer has quit [Max SendQ exceeded]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
lxsameer has quit [Max SendQ exceeded]
nanderoo has joined #ruby
knightblader has quit [Quit: User disconnected]
lxsameer has joined #ruby
benatwork has joined #ruby
lxsameer has quit [Max SendQ exceeded]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
lxsameer has quit [Max SendQ exceeded]
siksia has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
benatwork has quit [Ping timeout: 245 seconds]
SPYGAME has quit [Quit: Leaving]
heftig has joined #ruby
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
siksia has quit [Ping timeout: 244 seconds]
titas9x has left #ruby [#ruby]
anonymous1 has quit [Read error: Connection reset by peer]
anonymous1 has joined #ruby
siksia has joined #ruby
N_2 has joined #ruby
rgrinberg has quit [Ping timeout: 265 seconds]
mengu has joined #ruby
DuoSRX has quit [Remote host closed the connection]
DuoSRX has joined #ruby
xaxisx has joined #ruby
liluo has quit [Remote host closed the connection]
b1rkh0ff has quit [Ping timeout: 260 seconds]
tscolari has joined #ruby
fbernier has joined #ruby
ecolitan has quit [Remote host closed the connection]
N_2 has left #ruby [#ruby]
ramblex has joined #ruby
bglusman has quit [Ping timeout: 245 seconds]
anonymous1 has quit [Ping timeout: 252 seconds]
dchelimsky has joined #ruby
dchelimsky has quit [Remote host closed the connection]
lopin has joined #ruby
marmae_ has joined #ruby
nirakara has quit [Quit: This computer has gone to sleep]
rgrinberg has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
Helius has quit [Remote host closed the connection]
fortysixandtwo has joined #ruby
Helius has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
berkes has quit [Quit: Ex-Chat]
werdnativ has joined #ruby
berkes has joined #ruby
wangr has joined #ruby
wangr_ has joined #ruby
lxsameer has quit [Ping timeout: 250 seconds]
wangr has quit [Read error: Operation timed out]
wallerdev has joined #ruby
mucker has quit [Quit: Lost terminal]
iori has quit [Remote host closed the connection]
ptka has joined #ruby
wangr_ has quit [Read error: Operation timed out]
niklasb has joined #ruby
ptka has left #ruby [#ruby]
lxsameer has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
ZachBeta has joined #ruby
dv310p3r has joined #ruby
ZachBeta has quit [Client Quit]
wangr has joined #ruby
niklasb has quit [Quit: WeeChat 0.3.7]
nipra has quit [Read error: Operation timed out]
Guest85656 has joined #ruby
<Guest85656> Hi everyone. can't find ncurses for win
<Guest85656> does anyone knows where it is?
<Guest85656> need 2 download it
ElitestFX has joined #ruby
niklasb has joined #ruby
jgarvey has joined #ruby
wangr_ has joined #ruby
Guest94834 is now known as davidw
davidw has quit [Changing host]
davidw has joined #ruby
jgarvey has quit [Client Quit]
wangr has quit [Ping timeout: 244 seconds]
jgarvey has joined #ruby
<cout> davidw: which ncurses you get depends on which compiler you are using, but if you just want to compile an app that uses ncurses, install cygwin
bluOxigen has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
<davidw> cout, you've got the wrong dude
<davidw> you want Guest85656
wallerdev has quit [Quit: wallerdev]
<_br_> Hm, how do I manipulate proc objects contents without them executing?
<rking> _br_: What contents?
AlbireoX`Laptop has joined #ruby
<davidw> _br_, never cut the red wire
<_br_> rking: blocks
<_br_> davidw: ?
<rking> _br_: But what are you meaning to do with them?
<shevy> perhaps he wants to hook up another method to them
vectorshelve has quit [Quit: Page closed]
<cout> davidw: oh, different Guest
Apocalypse has quit [Ping timeout: 250 seconds]
<shevy> Guest85656 can you use a better nick?
<_br_> shevy: exactly
<rking> _br_: Then create a new Proc whose body calls the old one at some point.
niklasb has quit [Ping timeout: 245 seconds]
<_br_> rking: I see, procs all the way :)
anonymous1 has joined #ruby
<cout> david: should have stuck with violins.
<rking> _br_: Or blocks, or lambdas. Just something that puts code around it, then at that point the proc_.call happens whenever you want.
blacktulip has quit [Remote host closed the connection]
<_br_> rking: Thanks! I'll try that
carloslopes has joined #ruby
fantazo has joined #ruby
ElitestFX has quit [Ping timeout: 245 seconds]
chson has quit [Remote host closed the connection]
internet_user has joined #ruby
<cout> the problem with actually changing the contents of the Proc is that the code is stored in a format that's internal to the interpreter (AST on 1.8, bytecode on 1.9)
<rking> I'm not going to like. CatCopter is pretty epic.
zii has joined #ruby
zii has left #ruby ["WeeChat 0.3.7"]
<_br_> cout: Hm, I see, so if I do this then it would be brittle and depend on the interpreter. I see, maybe a bad idea to do it this way then, hmmm
Apocalypse has joined #ruby
niklasb has joined #ruby
fixl has quit [Remote host closed the connection]
blacktulip has joined #ruby
<cout> _br_: depends on your goals
<Hanmac> _br_ make a pastie what are you trying todo
nlc has joined #ruby
CannedCorn has joined #ruby
hynkle has joined #ruby
<_br_> Hanmac: let me try a little, if I really can't figure it out I'll ask the sages of #ruby here and you :)
uris has joined #ruby
<CannedCorn> is there any equivalent to decode_www_form in ruby 1.8.7
theRoUS_ has joined #ruby
tvw has joined #ruby
wallerdev has joined #ruby
[edu] has joined #ruby
[edu] has quit [Client Quit]
anonymous1 has quit [Ping timeout: 244 seconds]
iamsuger2 has joined #ruby
anonymous1 has joined #ruby
Axsuul has quit [Ping timeout: 244 seconds]
joshcheek has quit [Quit: joshcheek]
<_br_> CannedCorn: Seems not like its been backported to 1.8. But looking at http://www.ruby-doc.org/stdlib-1.9.3/libdoc/uri/rdoc/URI.html#method-c-decode_www_form and the source specifically it seems not too difficult to get it working on 1.8.
iamsuger2 has quit [Quit: Linkinus - http://linkinus.com]
marmae_ has left #ruby [#ruby]
<CannedCorn> yeah agreed
elux has joined #ruby
anonymous1 has quit [Ping timeout: 250 seconds]
banisterfiend has quit [Read error: Connection reset by peer]
Jake232 has joined #ruby
lxsameer has quit [Quit: Leaving]
lorandi has joined #ruby
banisterfiend has joined #ruby
cousine has quit [Remote host closed the connection]
anykey__ has joined #ruby
anykey__ is now known as any-key
bluenemo has quit [Remote host closed the connection]
nricciar has joined #ruby
cousine has joined #ruby
pu22l3r has joined #ruby
n1x has joined #ruby
mikeycgto has joined #ruby
mikeycgto has quit [Changing host]
mikeycgto has joined #ruby
<shevy> is there any way to find out what action a thread holds?
<shevy> thread = Thread.new {sleep 11; puts 'hi'}
ananthakumaran has joined #ruby
bluenemo has joined #ruby
Ankhers has joined #ruby
siksia has quit [Ping timeout: 244 seconds]
abra has joined #ruby
ptka has joined #ruby
bluenemo has quit [Remote host closed the connection]
i256 has quit [Quit: Idę]
gabe_hollombe has joined #ruby
berkes has quit [Quit: Ex-Chat]
<gabe_hollombe> Hey all. If I have a string in ruby 'a:b c:d' and I'd like to split on space then split each array item by :, is there a more elegant solution than 'a:b c:d'.split(' ').collect{|i| i.split(':')} ?
crankycoder has joined #ruby
abra has quit [K-Lined]
crankycoder has quit [Remote host closed the connection]
ecolitan has joined #ruby
bbttxu has joined #ruby
crankycoder has joined #ruby
lolmaus has quit []
siksia has joined #ruby
<_br_> shevy: Why don't you try after the line you pasted to tag the thread with something descriptive? e.g. thread = Thread.new{ sleep 11; puts "hi" } ; thread[:action] = "Hi" ; thread[:action] ; => "Hi"
<bnagy> gabe_hollombe: well that's functionally equivalent to split /[ :]/ no?
<_br_> shevy: not sure if that is what you want
benatwork has joined #ruby
<shevy> _br_ hmm. I need something like a mini cron, in ruby. "in 20 hours, do this".
<gabe_hollombe> bnagy: nope. I want [ ['a', 'b'], ['c', 'd'] ]
albemuth has joined #ruby
<hoelzro> shevy: sleep? =P
<bnagy> oh, yeah then split / map
<gabe_hollombe> bnagy: nod. just feels a little icky, but it's understandable
<_br_> shevy: Hm, not sure, might be overkill, but can't you recycle gem install god to do that for you?
kevinbond has joined #ruby
<shevy> hoelzro inside the thread, yes. but I may have to quit, or reboot etc.. and then I need to know that the action continues
<shevy> _br_ dunno, what is god doing? aside from having a really stupipd name...
<rking> It's worse than stupid.
<rking> It's wrong.
axl_ has joined #ruby
<shevy> my idea was this: even if I have to reboot, I could somehow store the information of a thread, somewhere
bglusman has joined #ruby
<shevy> actually, I have no idea how to restore a thread...
<_br_> shevy: God is a process monitoring daemon. Albeit the stupid name...
<shevy> hehe
roams has joined #ruby
<_br_> shevy: Restore a thread? Hm... is it possible to marshall a thread object ?
<hoelzro> shevy: so you need to schedule Ruby code to run from within a Ruby program, but the original program may terminate?
<_br_> What a funny idea :)
<shevy> I am going to google for a while intensively about that, perhaps I'll become a smarter mana fterwards
<hoelzro> cryo PID?
<shevy> _br_ I was told it is not possible :(
<_br_> ahh :(
<shevy> hoelzro yes, kind of
<shevy> well actually...
<hoelzro> if the code you were scheduling were just Ruby source, it'd be easy
<shevy> hmm
<hoelzro> to use lpsm, however, your entire interpreter would probably need to be in the persistent segment
chienpo has joined #ruby
<hoelzro> which makes me wonder...
<hoelzro> ...does mRuby allow custom allocator functions?
<hoelzro> or is it restricted to malloc/free?
yonggu has joined #ruby
awarner has joined #ruby
<Ankhers> Forgive me if I misunderstand, but someone is trying to schedule some script to run? Or is it more difficult than that?
nricciar has quit [Ping timeout: 245 seconds]
kevinbond has quit [Quit: kevinbond]
erichmenge has joined #ruby
aginomoto has joined #ruby
JohnBat26 has quit [Ping timeout: 252 seconds]
MissionCritical has quit [Ping timeout: 250 seconds]
zomgbie has joined #ruby
<hoelzro> Ankhers: it's not just scheduling a script
<hoelzro> it's really "hey, I want to schedule this block to run, even after a restart"
<shevy> Ankhers hmm not a script per se, but ruby code. though I suppose I could write a .rb file within my program easily
<shevy> yeah
<shevy> ideally any code in a block
hashpuppy has joined #ruby
<hashpuppy> is there an opposite of "unless"? maybe "when"?
carlyle has joined #ruby
roams has quit [Remote host closed the connection]
<hoelzro> hashpuppy: if
aginomoto has quit [Killed (idoru (Spam is off topic on freenode.))]
chson has joined #ruby
<hashpuppy> heh. i didn't know you could write it that way
<hashpuppy> neat. thanks
dkissell has left #ruby [#ruby]
andrewhl has joined #ruby
<offby1> is there a ruby bot in this channel?
Guest85656 has quit []
<bnagy> just shevy
becom33 has joined #ruby
<becom33> l
<bnagy> you say 'rbenv' and he says 'compile from source!'
colon_D has quit []
<bnagy> gabe_hollombe: [' ','^',':'].inject(["m:q^a:b z:y^b:c"]) {|a,s| a.flatten.map {|e| e.split( s )}} :(
<becom33> here I was wondering how can I create a local proxy . get all the traffic which is going trought the browser and print it off the terminal
<shevy> bnagy lol
<gabe_hollombe> bnagy: gesus
<omry> hi. trying to post some data with ruby 1.9.2 on debian (1.9.1 package), and I get this : /usr/lib/ruby/1.9.1/net/http.rb:1593:in `set_form_data': undefined method `map' for "{}":String (NoMethodError) , any idea?
freeayu1 has quit [Quit: 离开]
Ankhers has quit [Remote host closed the connection]
<bnagy> becom33: have you seen burp ?
<hoelzro> becom33: I assume you mean an HTTP proxy?
<_br_> bnagy: playing golf are we? :D
<becom33> hoelzro, yea
Ankhers has joined #ruby
kevinbond has joined #ruby
<becom33> yea bnagy :)
<hoelzro> I'm sure that there's a basic Rack application for that
PaciFisT has joined #ruby
<bnagy> _br_: not really, it was in response to a question, but I was wondering what you can do if the list of things to split on is arb. length
kaiwren_ has joined #ruby
<gabe_hollombe> becom33: http://www.charlesproxy.com/ ?
<CannedCorn> hey is there a way to make split use one one separator or another, throw an error if they are mixed
tonini has quit [Remote host closed the connection]
kaiwren has quit [Ping timeout: 248 seconds]
kaiwren_ is now known as kaiwren
xoebus has quit [Quit: Quit. brb.]
<bnagy> CannedCorn: not sure what you mean
nari has joined #ruby
<gabe_hollombe> gnite all. bnagy thanks for your input
gabe_hollombe has quit [Quit: gabe_hollombe]
pygospa has quit [Disconnected by services]
TheRealPygo has joined #ruby
mdw has joined #ruby
h4mz1d has joined #ruby
lorandi has quit [Remote host closed the connection]
nricciar has joined #ruby
<CannedCorn> so lets say you have a string
<CannedCorn> and i want to either split on one seperator ; or &
<CannedCorn> but if the string contains both i want to throw an error
dkissell has joined #ruby
mdw has quit [Remote host closed the connection]
hamfz_ has joined #ruby
dkissell has left #ruby [#ruby]
<bnagy> no you need logic to do that
Raduwen has joined #ruby
<bnagy> test include? and then decide what to do, etc I suppose
<bnagy> dinner
nricciar has quit [Client Quit]
anatop has joined #ruby
simao has quit [Ping timeout: 265 seconds]
bird__ has quit [Remote host closed the connection]
Araxia_ has quit [Quit: Araxia_]
nahhh has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
rasbonics has quit [Quit: rasbonics]
lorandi has joined #ruby
savage- has joined #ruby
rasbonics has joined #ruby
Jake232 has quit [Quit: Computer has gone to sleep.]
joast has quit [Quit: Leaving.]
fpd has quit [Ping timeout: 244 seconds]
zomgbie has quit [Read error: Connection reset by peer]
ghanima has joined #ruby
<hashpuppy> stupid question. is there some template for generating standalone ruby apps? like generating the Gemfile, lib directory, Rakefile?
wallerdev has quit [Quit: wallerdev]
<hoelzro> I'd like to know this as well, actualy
* hoelzro misses Dist::Zilla
<_br_> shevy: haha I've found another way to solve your thread issue by playing with the idea to use ruby2ruby. Its totally nuts but it works.. https://gist.github.com/2868864 :DDDD
rippa has joined #ruby
<_br_> bnagy: bon appetit!
ben_alman has quit [Excess Flood]
<hashpuppy> hoelzro: found "bundle gem my_lib" as an answer on SO: http://stackoverflow.com/questions/9549450/how-to-setup-a-basic-ruby-project
simao has joined #ruby
kaiwren has quit [Quit: kaiwren]
<hoelzro> hashpuppy: thanks
simao has quit [Changing host]
simao has joined #ruby
<hashpuppy> np
pdtpatrick has quit [Quit: pdtpatrick]
<hoelzro> is RSpec the de facto standard as a test framework? I prefer minitest
Galgorth has quit [Ping timeout: 252 seconds]
tcopp has joined #ruby
balki_ is now known as balki
<Mon_Ouie> I'd think (mini)test/unit is more standard, and also part of the standard library (granted, there also are insanities in stdlib…)
tk___ has quit [Quit: ばいばい]
BrCVzNsEf has joined #ruby
<_br_> hoelzro: Well, I suppose it is. If you want something more minimalistic in terms of rspec, there is always bacon.
<Mon_Ouie> Anyway, the point is to use the library you (or people you code with) prefer, not the one most people prefer
<_br_> well said
ben_alman has joined #ruby
<hoelzro> _br_: it's not really the minimalism; I just don't like the RSpec API
BtPnAcAq has joined #ruby
baroquebobcat has joined #ruby
CheeToS has joined #ruby
flagg0204 has quit [Quit: leaving]
ptka has quit [Quit: leaving]
n1x has quit [Ping timeout: 265 seconds]
<_br_> hoelzro: go with what Mon_Ouie said, I think its spot on
<hoelzro> sounds good =)
<BtPnAcAq> we invite you to join /server irc.open-pages.com new network and more friendly, away from rushy channels. staff needed. www.open-pages.com
bosphorus_ has joined #ruby
<BtPnAcAq> ptka abra Ankhers ananthakumaran mikeycgto n1x pu22l3r cousine nricciar anywe invite you to join /server irc.open-pages.com new network and more friendly, away from rushy channels. staff needed. (detailkey banisterfiend lorandi Jake232 elux wallerdev tvw theRoUS_ uris hynkle CannedCorn nlc blacktulip niklasb Apocalypse internet_user fantazo carloslopes AlbireoX`Laptop bluOxigen jgarvey wangr_ Guest85656 dv310p3r berkes werdnativ Helius fortysixandtwo rgrinberg
BtPnAcAq has quit [Killed (idoru (Spam is off topic on freenode.))]
<Sigma00> nice bot
bburhans has joined #ruby
darthdeus has joined #ruby
<BrCVzNsEf> #ruby keanehsiao chessguy cHarNe2 celm nfk geekbri cantonic Criztian BiHi jonathanwallace tk___ lolsuper_ geekfactor eddie_ davidcelis zinjacoder theRoUS Facefox bird__ iocor tonini schovi_ Defusal simao tomb_ i256 TheHunter_1039 bosphorus kaiwren pk1001100011 vlad_starkov ronniy cheater__ fermion emmanuelux mohits Progster darrenlooby jbw Mchl bashdy freeayu1 DMKE adac berserkr jimeh2 tewecske moshee davidw roolo Occult jenrzzzwe invite you to join /server irc
BrCVzNsEf has quit [Killed (idoru (Spam is off topic on freenode.))]
<Hanmac> ... it has banisterfiend inside ... it cant be nice :P
<iocor> .........
lorandi has quit [Quit: Leaving]
<berserkr> what?
<berserkr> :S
<AlbireoX`Laptop> ......
arturaz has joined #ruby
<roolo> What is that?
<pk1001100011> …
tvw has quit [Remote host closed the connection]
<Ankhers> Why you spam us?
jamescotterill has joined #ruby
cousine has quit [Remote host closed the connection]
bosphorus has quit [Ping timeout: 265 seconds]
moshee has quit [Ping timeout: 252 seconds]
moshee has joined #ruby
Cpudan80 has joined #ruby
<Cpudan80> Hello folks
<Cpudan80> Can any of you see why I'm getting Error: #<ArgumentError: malformed format string - %"> in this code: http://pastie.org/4025862
<Cpudan80> It's only 2 lines
<fantazo> kick&ban the spammers for life, please.
Norrin_ has left #ruby [#ruby]
<Sigma00> oh wow, no wonder I'm not seeing joins. I fogot I disabled showing that in this channel <_<
AlbireoX`Laptop has quit [Remote host closed the connection]
nfluxx has quit [Quit: nfluxx]
<Ankhers> Cpudan80, % is the mod operator.
cousine has joined #ruby
siksia has quit [Ping timeout: 240 seconds]
<Cpudan80> Ankhers: oh ... well that would explain it then wouldnt it...
<hoelzro> Ankhers: it's also the format operator
<_br_> Cpudan80: Building this stuff like that is a pain imo, why don't you use something like haml for that ?
ckrailo has joined #ruby
<Cpudan80> Sorry, Im a ruby newb and someone gave me that as an example
iocor has quit [Quit: Computer has gone to sleep.]
<Cpudan80> _br_: well I mean that's really the extent of what I have to do, so I'd rather just keep it that way
bosphorus_ has quit [Remote host closed the connection]
<Cpudan80> Im just trying to figure out what about that line is triggering the malformed...
<Cpudan80> it all looks good to me..
imami|afk is now known as banseljaj
bosphorus has joined #ruby
GuidovanPossum has joined #ruby
chrisja has joined #ruby
cousine has quit [Remote host closed the connection]
<hoelzro> Cpudan80: try taking out the last two lines and the corresponding arguments, and see if it still raises an error
<_br_> Cpudan80: I think what you are trying to do is trick no. 4. http://www.rubyinside.com/21-ruby-tricks-902.html . If using this is a good idea, is another point though.
<_br_> Cpudan80: In short, use %s instead of your %1 stuff.
<_br_> bbl
<hoelzro> ha, I didn't even notice that =P
kaiwren has joined #ruby
savage- has quit [Remote host closed the connection]
kaiwren has quit [Client Quit]
<Cpudan80> yeah I was just looking at that
jamescotterill has quit [Remote host closed the connection]
<Cpudan80> Yeah, I think the guy who wrote this used some.... less than kosher thigns
ryan has joined #ruby
ryan is now known as Guest1096
flip_digits has joined #ruby
cousine has joined #ruby
Guest1096 has quit [Remote host closed the connection]
ryan0x2 has joined #ruby
maesbn has quit [Remote host closed the connection]
<theRoUS_> is there a good gem providing X11 bindings/API for ruby? i need to get the geometry of a particular window.. i am *not* an X hacker by any means
siksia has joined #ruby
Jackneill has joined #ruby
Jackneill has quit [Changing host]
Jackneill has joined #ruby
recursive has joined #ruby
<recursive> what is the proper http status-code for a webpage that is a temporary placeholder (basically i am taking down a server and have a construction site that is going to be used for 15 minutes or so)
BiHi has quit [Ping timeout: 245 seconds]
adac has quit [Read error: Operation timed out]
joast has joined #ruby
<theRoUS_> recursive: 503 Service Not Available, with a header-field (i forget the name) that tells the number of seconds in which to retry
theRoUS_ has quit [Changing host]
theRoUS_ has joined #ruby
theRoUS has quit [Disconnected by services]
BiHi has joined #ruby
theRoUS_ is now known as theRoUS
chrisja has quit [Quit: leaving]
TaTonka has quit [Quit: ZNC - http://znc.sourceforge.net]
theRoUS_ has joined #ruby
dekroning has quit [Ping timeout: 245 seconds]
<recursive> theRoUS: thanks, perfect
ZachBeta has joined #ruby
billiamii has joined #ruby
maesbn has joined #ruby
jchauncey has joined #ruby
pdtpatrick has joined #ruby
maesbn has quit [Remote host closed the connection]
walbert has joined #ruby
MasterIdler has joined #ruby
bfgun has joined #ruby
youdonotexist has joined #ruby
qwerxy has joined #ruby
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
TaTonka has joined #ruby
jenrzzz-mac has quit [Quit: jenrzzz-mac]
GuidovanPossum has quit [Quit: GuidovanPossum]
bfig has quit [Ping timeout: 250 seconds]
nari has quit [Ping timeout: 265 seconds]
senny has quit [Remote host closed the connection]
ecolitan has quit [Remote host closed the connection]
yannis has quit [Quit: yannis]
banseljaj is now known as imami|afk
oooPaul has joined #ruby
artOfWar has joined #ruby
maccosmo has joined #ruby
williamcotton has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
thone_ has joined #ruby
jeebster has joined #ruby
lolsuper_ has quit [Ping timeout: 245 seconds]
darthdeus has quit [Quit: Linkinus - http://linkinus.com]
ZachBeta has quit [Ping timeout: 244 seconds]
darthdeu has joined #ruby
chimkan has joined #ruby
gregorg_taf has joined #ruby
nfluxx has joined #ruby
gregorg has quit [Read error: Connection reset by peer]
thone has quit [Ping timeout: 244 seconds]
keymone has quit [Ping timeout: 244 seconds]
flagg0204 has joined #ruby
nfluxx_ has joined #ruby
mohits has quit [Quit: Leaving]
ipoval has joined #ruby
flagg0204 has quit [Client Quit]
crankycoder has quit [Read error: Connection reset by peer]
lorandi has joined #ruby
<theRoUS> recursive: de rien
flagg0204 has joined #ruby
nfluxx has quit [Ping timeout: 245 seconds]
flagg0204 has quit [Client Quit]
jmccune has quit [Ping timeout: 240 seconds]
dcope has quit [Ping timeout: 240 seconds]
ben_alman has quit [Ping timeout: 244 seconds]
nfluxx_ is now known as nfluxx
cscribble_ has joined #ruby
ghanima has quit [Ping timeout: 244 seconds]
JStoker has quit [Ping timeout: 244 seconds]
jmccune has joined #ruby
tewecske has quit [Ping timeout: 244 seconds]
saltnvinegar has joined #ruby
cscribble has quit [Ping timeout: 240 seconds]
flagg0204 has joined #ruby
ixti has quit [Ping timeout: 244 seconds]
bashdy has quit [Ping timeout: 244 seconds]
maesbn has joined #ruby
flagg0204 has quit [Client Quit]
dcope has joined #ruby
dcope has quit [Changing host]
dcope has joined #ruby
jrist has quit [Ping timeout: 244 seconds]
bashdy has joined #ruby
noganex has quit [Ping timeout: 240 seconds]
jrist has joined #ruby
noganex has joined #ruby
qwerxy has quit [Ping timeout: 244 seconds]
any-key has quit [Ping timeout: 240 seconds]
Corey has quit [Remote host closed the connection]
artOfWar_ has joined #ruby
celm has quit [Quit: Leaving]
nilg` has quit [Ping timeout: 240 seconds]
lolsuper_ has joined #ruby
lolsuper_ has quit [Changing host]
lolsuper_ has joined #ruby
hoelzro is now known as hoelzro|away
JStoker has joined #ruby
jhchabran has quit [Read error: Connection reset by peer]
jhchabran_ has joined #ruby
saltnvinegar_ has joined #ruby
MissionCritical has joined #ruby
saltnvinegar has quit [Read error: Connection reset by peer]
saltnvinegar_ is now known as saltnvinegar
lobak_ has joined #ruby
ZachBeta has joined #ruby
artOfWar has quit [Ping timeout: 252 seconds]
flagg0204 has joined #ruby
nilg`` has joined #ruby
gmci has quit [Ping timeout: 240 seconds]
Corey has joined #ruby
Corey is now known as 45PAANW6S
ben_alman has joined #ruby
<lectrick> I want to mock out a Logger type object. How can I do so?
<lectrick> Basically I want a simple logger that stores to StringIO and implements info, warn, error etc. like the rails logger
<lectrick> And then I can check it in a test
aantix has joined #ruby
gmci has joined #ruby
rking has quit [Ping timeout: 244 seconds]
asuka_ has quit [Ping timeout: 244 seconds]
<Sigma00> lectrick: there's a Logger class in stdlib
lobak has quit [Ping timeout: 240 seconds]
ghanima has joined #ruby
<Sigma00> er... strip the stuff after #
rking has joined #ruby
<lectrick> Sigma00: I know but i want to capture calls to it and check them in a test
asuka_ has joined #ruby
<Sigma00> oh
flagg0205 has joined #ruby
flagg0205 has quit [Client Quit]
savage- has joined #ruby
jbw_ has joined #ruby
cousine has quit [Remote host closed the connection]
ananthakumaran1 has joined #ruby
asuka_ has quit [*.net *.split]
PaciFisT has quit [*.net *.split]
carlyle has quit [*.net *.split]
uris has quit [*.net *.split]
carloslopes has quit [*.net *.split]
ronniy has quit [*.net *.split]
jbw has quit [*.net *.split]
Morkel has quit [*.net *.split]
_blackbird has quit [*.net *.split]
RubyPanther has quit [*.net *.split]
xbayrockx has quit [*.net *.split]
tyman has quit [*.net *.split]
zeromodulus has quit [*.net *.split]
tfitts has quit [*.net *.split]
mlue has quit [*.net *.split]
blast_hardcheese has quit [*.net *.split]
nuba has quit [*.net *.split]
alindeman has quit [*.net *.split]
yellow5 has quit [*.net *.split]
idoru has quit [*.net *.split]
Eldariof-ru has quit [*.net *.split]
voodoofish has quit [*.net *.split]
_marvin has quit [*.net *.split]
thorncp has quit [*.net *.split]
randym has quit [*.net *.split]
patricksroberts has quit [*.net *.split]
notbrent has quit [*.net *.split]
Icehawk78 has quit [*.net *.split]
stroem has quit [*.net *.split]
niv has quit [*.net *.split]
Urth|Away has quit [*.net *.split]
mahlon has quit [*.net *.split]
limed has quit [*.net *.split]
pingveno has quit [*.net *.split]
affix has quit [*.net *.split]
saispo has quit [*.net *.split]
rotor has quit [*.net *.split]
__main__ has quit [*.net *.split]
Veejay has quit [*.net *.split]
regedarek has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
flagg0204 has quit [*.net *.split]
chimkan has quit [*.net *.split]
recursive has quit [*.net *.split]
tcopp has quit [*.net *.split]
jgarvey has quit [*.net *.split]
`brendan has quit [*.net *.split]
keanehsiao has quit [*.net *.split]
DMKE has quit [*.net *.split]
mneorr has quit [*.net *.split]
wvms has quit [*.net *.split]
Ammar01 has quit [*.net *.split]
trvr has quit [*.net *.split]
JonnieCache has quit [*.net *.split]
bier has quit [*.net *.split]
wookiehangover has quit [*.net *.split]
madhatter has quit [*.net *.split]
mxweas has quit [*.net *.split]
xsdg has quit [*.net *.split]
nigman has quit [*.net *.split]
godzirra has quit [*.net *.split]
sei has quit [*.net *.split]
BRMatt has quit [*.net *.split]
nahhh has quit [*.net *.split]
patronus has quit [*.net *.split]
rudle has quit [*.net *.split]
brian- has quit [*.net *.split]
ged has quit [*.net *.split]
thomasfedb has quit [*.net *.split]
d2s has quit [*.net *.split]
hoelzro|away has quit [*.net *.split]
DefV has quit [*.net *.split]
avtobiff has quit [*.net *.split]
gmci has quit [*.net *.split]
aantix has quit [*.net *.split]
bfgun has quit [*.net *.split]
BiHi has quit [*.net *.split]
rgrinberg has quit [*.net *.split]
ramblex has quit [*.net *.split]
nanderoo has quit [*.net *.split]
eddie_ has quit [*.net *.split]
davidw has quit [*.net *.split]
akem has quit [*.net *.split]
jetblack has quit [*.net *.split]
mockillo has quit [*.net *.split]
Poapfel has quit [*.net *.split]
adambeynon has quit [*.net *.split]
klip has quit [*.net *.split]
Emmanuel_Chanel has quit [*.net *.split]
Guedes has quit [*.net *.split]
gabrtv has quit [*.net *.split]
jjp has quit [*.net *.split]
cid404 has quit [*.net *.split]
_sjs has quit [*.net *.split]
Shrink has quit [*.net *.split]
pigoz has quit [*.net *.split]
epochwolf has quit [*.net *.split]
danheberden has quit [*.net *.split]
jhunter has quit [*.net *.split]
kloeri has quit [*.net *.split]
sonkei has quit [*.net *.split]
NimeshNeema has quit [*.net *.split]
ctevie has quit [*.net *.split]
parus has quit [*.net *.split]
_axx has quit [*.net *.split]
naquad has quit [*.net *.split]
gentz has quit [*.net *.split]
DavidTiger has quit [*.net *.split]
marienz has quit [*.net *.split]
vitoravelino has quit [*.net *.split]
ekaleido has quit [*.net *.split]
heph has quit [*.net *.split]
gogiel has quit [*.net *.split]
Rious has quit [*.net *.split]
DuoSRX has quit [*.net *.split]
emmanuelux has quit [*.net *.split]
welterde has quit [*.net *.split]
lupine_85 has quit [*.net *.split]
ohcibi has quit [*.net *.split]
dr_Poggs has quit [*.net *.split]
rking has quit [*.net *.split]
jmccune has quit [*.net *.split]
gregorg_taf has quit [*.net *.split]
lxsameer has quit [*.net *.split]
hamfz_ has quit [*.net *.split]
Helius has quit [*.net *.split]
heftig has quit [*.net *.split]
jimeh2 has quit [*.net *.split]
yxhuvud has quit [*.net *.split]
getbitcoin1 has quit [*.net *.split]
Tricks has quit [*.net *.split]
test34 has quit [*.net *.split]
drizz has quit [*.net *.split]
SeySayux has quit [*.net *.split]
palmfrond has quit [*.net *.split]
magoo has quit [*.net *.split]
iaj_ has quit [*.net *.split]
hemanth has quit [*.net *.split]
c3l has quit [*.net *.split]
ddv has quit [*.net *.split]
relix has quit [*.net *.split]
AlbireoX has quit [*.net *.split]
MoMo has quit [*.net *.split]
sirdeiu has quit [*.net *.split]
pzol has quit [*.net *.split]
pcboy_ has quit [*.net *.split]
Smirnov has quit [*.net *.split]
UNIXgod has quit [*.net *.split]
icyfenix has quit [*.net *.split]
yugui has quit [*.net *.split]
warebec|hat has quit [*.net *.split]
Gekz has quit [*.net *.split]
ezra has quit [*.net *.split]
bperry has quit [*.net *.split]
xea_ has quit [*.net *.split]
jbpros has quit [*.net *.split]
ichilton has quit [*.net *.split]
anekos has quit [*.net *.split]
ViperMaul has quit [*.net *.split]
jmcphers has quit [*.net *.split]
kichawa has quit [*.net *.split]
fahadsadah has quit [*.net *.split]
theoros has quit [*.net *.split]
Fraeon has quit [*.net *.split]
dagobah has quit [*.net *.split]
wang_ has quit [*.net *.split]
jalljo has quit [*.net *.split]
vaicine has quit [*.net *.split]
jeekl has quit [*.net *.split]
alexhanh has quit [*.net *.split]
dju has quit [*.net *.split]
ZachBeta has quit [*.net *.split]
jhchabran_ has quit [*.net *.split]
artOfWar_ has quit [*.net *.split]
dcope has quit [*.net *.split]
darthdeu has quit [*.net *.split]
CheeToS has quit [*.net *.split]
rippa has quit [*.net *.split]
h4mz1d has quit [*.net *.split]
pu22l3r has quit [*.net *.split]
elux has quit [*.net *.split]
Vainoharhainen has quit [*.net *.split]
LiquidInsect has quit [*.net *.split]
Croms has quit [*.net *.split]
Guest85767 has quit [*.net *.split]
benyarb has quit [*.net *.split]
beilabs has quit [*.net *.split]
mfridh has quit [*.net *.split]
starburst has quit [*.net *.split]
robacarp has quit [*.net *.split]
Khyron320 has quit [*.net *.split]
moted has quit [*.net *.split]
xkx has quit [*.net *.split]
bubu\a has quit [*.net *.split]
vandemar has quit [*.net *.split]
trebaum has quit [*.net *.split]
musl has quit [*.net *.split]
c0rn_ has quit [*.net *.split]
hashpuppy has quit [*.net *.split]
omry has quit [*.net *.split]
rcs has quit [*.net *.split]
wereHamster has quit [*.net *.split]
kaktus has quit [*.net *.split]
kickroot has quit [*.net *.split]
pkondzior has quit [*.net *.split]
wagle has quit [*.net *.split]
dphase has quit [*.net *.split]
ozzloy has quit [*.net *.split]
PhilK has quit [*.net *.split]
thone_ has quit [*.net *.split]
maccosmo has quit [*.net *.split]
siksia has quit [*.net *.split]
arturaz has quit [*.net *.split]
rasbonics has quit [*.net *.split]
Ankhers has quit [*.net *.split]
becom33 has quit [*.net *.split]
erichmenge has quit [*.net *.split]
albemuth has quit [*.net *.split]
mikeycgto has quit [*.net *.split]
theRoUS has quit [*.net *.split]
hynkle has quit [*.net *.split]
nlc has quit [*.net *.split]
blacktulip has quit [*.net *.split]
fortysixandtwo has quit [*.net *.split]
nfk has quit [*.net *.split]
davidcelis has quit [*.net *.split]
busybox42 has quit [*.net *.split]
kalleth has quit [*.net *.split]
mmsequeira has quit [*.net *.split]
ccooke has quit [*.net *.split]
_br_ has quit [*.net *.split]
seitensei has quit [*.net *.split]
mikekelly has quit [*.net *.split]
passbe has quit [*.net *.split]
linduxed has quit [*.net *.split]
cynosure has quit [*.net *.split]
nw has quit [*.net *.split]
statix has quit [*.net *.split]
devdazed has quit [*.net *.split]
preller has quit [*.net *.split]
dubios has quit [*.net *.split]
yeltzooo7 has quit [*.net *.split]
rcj_ has quit [*.net *.split]
eregon has quit [*.net *.split]
Utkarsh has quit [*.net *.split]
kapowaz has quit [*.net *.split]
nisstyre has quit [*.net *.split]
az has quit [*.net *.split]
cjk101010 has quit [*.net *.split]
Jelco has quit [*.net *.split]
Sigma00 has quit [*.net *.split]
Caius has quit [*.net *.split]
tectonic has quit [*.net *.split]
jhowarth has quit [*.net *.split]
thoolihan has quit [*.net *.split]
froy has quit [*.net *.split]
Azure has quit [*.net *.split]
Jck_true has quit [*.net *.split]
Limb_ has quit [*.net *.split]
zz_chrismcg has quit [*.net *.split]
dekz has quit [*.net *.split]
elliottcable has quit [*.net *.split]
etank has quit [*.net *.split]
sam113101 has quit [*.net *.split]
whuffor has quit [*.net *.split]
nopper has quit [*.net *.split]
amar_key has quit [*.net *.split]
crodas has quit [*.net *.split]
cryptfu has quit [*.net *.split]
jacobw has quit [*.net *.split]
poindontcare has quit [*.net *.split]
anildigital_work has quit [*.net *.split]
kmwhite has quit [*.net *.split]
rpgsimmaster has quit [*.net *.split]
aetaric has quit [*.net *.split]
sv- has quit [*.net *.split]
eighty4 has quit [*.net *.split]
puff has quit [*.net *.split]
jrgifford has quit [*.net *.split]
ereslibre has quit [*.net *.split]
neersight[d] has quit [*.net *.split]
Kartagis has quit [*.net *.split]
mattp_ has quit [*.net *.split]
Gonzih has quit [*.net *.split]
dhodgkin has quit [*.net *.split]
epochwolf|vps has quit [*.net *.split]
phrame has quit [*.net *.split]
vjt has quit [*.net *.split]
G has quit [*.net *.split]
Tick-Tock has quit [*.net *.split]
monokrome has quit [*.net *.split]
Mez has quit [*.net *.split]
tomaw has quit [*.net *.split]
cHarNe2 has quit [*.net *.split]
Kiall has quit [*.net *.split]
oliwer has quit [*.net *.split]
msch has quit [*.net *.split]
notwen has quit [*.net *.split]
bburhans has quit [*.net *.split]
forestbird has quit [*.net *.split]
zaargy has quit [*.net *.split]
jasond has quit [*.net *.split]
babinho has quit [*.net *.split]
end3r- has quit [*.net *.split]
Drakevr has quit [*.net *.split]
phreax has quit [*.net *.split]
rails has quit [*.net *.split]
muse has quit [*.net *.split]
canton7 has quit [*.net *.split]
LowKey has quit [*.net *.split]
joschi has quit [*.net *.split]
gianlucadv has quit [*.net *.split]
pavelz_ has quit [*.net *.split]
noganex has quit [*.net *.split]
lorandi has quit [*.net *.split]
youdonotexist has quit [*.net *.split]
simao has quit [*.net *.split]
anatop has quit [*.net *.split]
awarner has quit [*.net *.split]
chienpo has quit [*.net *.split]
cha1tanya has quit [*.net *.split]
krusty_ar has quit [*.net *.split]
fermion has quit [*.net *.split]
schovi_ has quit [*.net *.split]
d3vic3 has quit [*.net *.split]
dangerousdave has quit [*.net *.split]
svnlto has quit [*.net *.split]
fukushima has quit [*.net *.split]
QKO has quit [*.net *.split]
mvangala has quit [*.net *.split]
ex0a has quit [*.net *.split]
imami|afk has quit [*.net *.split]
stockholm has quit [*.net *.split]
Shamgar has quit [*.net *.split]
Sgeo has quit [*.net *.split]
shikamaru has quit [*.net *.split]
medik has quit [*.net *.split]
jodell has quit [*.net *.split]
Industrial has quit [*.net *.split]
nicksmith has quit [*.net *.split]
psino has quit [*.net *.split]
epitron has quit [*.net *.split]
eam has quit [*.net *.split]
AnswerGuy has quit [*.net *.split]
mrmist has quit [*.net *.split]
nimred has quit [*.net *.split]
Natch| has quit [*.net *.split]
snapcase has quit [*.net *.split]
felipe has quit [*.net *.split]
KillerFox has quit [*.net *.split]
bashdy has quit [*.net *.split]
walbert has quit [*.net *.split]
pdtpatrick has quit [*.net *.split]
TheRealPygo has quit [*.net *.split]
banisterfiend has quit [*.net *.split]
fantazo has quit [*.net *.split]
wangr_ has quit [*.net *.split]
xaxisx has quit [*.net *.split]
jonathanwallace has quit [*.net *.split]
Defusal has quit [*.net *.split]
tomb_ has quit [*.net *.split]
Progster has quit [*.net *.split]
skryking has quit [*.net *.split]
x0F has quit [*.net *.split]
Kwpolska has quit [*.net *.split]
classix has quit [*.net *.split]
KazW has quit [*.net *.split]
s0ber has quit [*.net *.split]
TheNumb has quit [*.net *.split]
nat2610 has quit [*.net *.split]
rakm has quit [*.net *.split]
EvanR has quit [*.net *.split]
denysonique has quit [*.net *.split]
b3nt_pin has quit [*.net *.split]
klaas has quit [*.net *.split]
ziyadb has quit [*.net *.split]
SeanTAllen has quit [*.net *.split]
bengl has quit [*.net *.split]
hackeron has quit [*.net *.split]
er1c_ has quit [*.net *.split]
johnduhart has quit [*.net *.split]
sgronblom has quit [*.net *.split]
pradeepto has quit [*.net *.split]
matti has quit [*.net *.split]
pietr0 has quit [*.net *.split]
sejo has quit [*.net *.split]
Guest74504 has quit [*.net *.split]
Guest63274 has quit [*.net *.split]
thedonvaughn has quit [*.net *.split]
soulcake has quit [*.net *.split]
neektza has quit [*.net *.split]
__class__ has quit [*.net *.split]
Kovensky has quit [*.net *.split]
zigidias has quit [*.net *.split]
Gm4n has quit [*.net *.split]
ixx has quit [*.net *.split]
xybre_ has quit [*.net *.split]
Aaton_off has quit [*.net *.split]
hidek46 has quit [*.net *.split]
Prudhvi has quit [*.net *.split]
elspeth has quit [*.net *.split]
willb has quit [*.net *.split]
WanderingGlitch has quit [*.net *.split]
RichGuk has quit [*.net *.split]
tessi has quit [*.net *.split]
AwesomeGarethMan has quit [*.net *.split]
lantins has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
ckrailo has quit [*.net *.split]
Karmaon has quit [*.net *.split]
Kabaka has quit [*.net *.split]
SpitfireWP has quit [*.net *.split]
keyvan has quit [*.net *.split]
si14 has quit [*.net *.split]
frogstarr78 has quit [*.net *.split]
tris has quit [*.net *.split]
jeremy_c has quit [*.net *.split]
Derander_ has quit [*.net *.split]
elektronaut_ has quit [*.net *.split]
uxp has quit [*.net *.split]
brjannc has quit [*.net *.split]
David_Mi1ler has quit [*.net *.split]
Frippe has quit [*.net *.split]
lahwran has quit [*.net *.split]
telling has quit [*.net *.split]
mephux has quit [*.net *.split]
maddog_ has quit [*.net *.split]
JodaZ has quit [*.net *.split]
jayne has quit [*.net *.split]
undyingrage has quit [*.net *.split]
ghanima has quit [*.net *.split]
vbernetr has quit [*.net *.split]
45PAANW6S has quit [*.net *.split]
nilg`` has quit [*.net *.split]
oooPaul has quit [*.net *.split]
ipoval has quit [*.net *.split]
moshee has quit [*.net *.split]
joast has quit [*.net *.split]
billiamii has quit [*.net *.split]
cantonic has quit [*.net *.split]
geekfactor has quit [*.net *.split]
Occult has quit [*.net *.split]
deryl has quit [*.net *.split]
Dr4g has quit [*.net *.split]
Beoran__ has quit [*.net *.split]
wataken44 has quit [*.net *.split]
Asher has quit [*.net *.split]
robbyoconnor has quit [*.net *.split]
m_3 has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
irk3z has quit [*.net *.split]
rtl has quit [*.net *.split]
nilg has quit [*.net *.split]
koshian has quit [*.net *.split]
alienvenom has quit [*.net *.split]
ping-pong has quit [*.net *.split]
_root_ has quit [*.net *.split]
zizzyx has quit [*.net *.split]
ByteCrunch has quit [*.net *.split]
multi_io has quit [*.net *.split]
al-ol has quit [*.net *.split]
joppe has quit [*.net *.split]
jeedey has quit [*.net *.split]
benwoody_ has quit [*.net *.split]
srnty has quit [*.net *.split]
cespare has quit [*.net *.split]
SecretAgent has quit [*.net *.split]
akl has quit [*.net *.split]
kuranai|off has quit [*.net *.split]
FlyingFoX has quit [*.net *.split]
maahes has quit [*.net *.split]
GeekOnCoffee has quit [*.net *.split]
mikalv has quit [*.net *.split]
Tasser has quit [*.net *.split]
politoed has quit [*.net *.split]
ewag has quit [*.net *.split]
methoddk has quit [*.net *.split]
ybit2 has quit [*.net *.split]
Dratir has quit [*.net *.split]
sirecote has quit [*.net *.split]
mmercer has quit [*.net *.split]
fugit_ has quit [*.net *.split]
spathi has quit [*.net *.split]
JStoker has quit [*.net *.split]
maesbn has quit [*.net *.split]
nfluxx has quit [*.net *.split]
MasterIdler has quit [*.net *.split]
jchauncey has quit [*.net *.split]
kevinbond has quit [*.net *.split]
axl_ has quit [*.net *.split]
ananthakumaran has quit [*.net *.split]
CannedCorn has quit [*.net *.split]
niklasb has quit [*.net *.split]
iamjarvo has quit [*.net *.split]
pk1001100011 has quit [*.net *.split]
roolo has quit [*.net *.split]
looopy has quit [*.net *.split]
tomku has quit [*.net *.split]
punkrawkR has quit [*.net *.split]
dev_ has quit [*.net *.split]
lsone has quit [*.net *.split]
libertyprime has quit [*.net *.split]
ada2358 has quit [*.net *.split]
TheFuzzball has quit [*.net *.split]
bgupta has quit [*.net *.split]
shaman42 has quit [*.net *.split]
BrianE has quit [*.net *.split]
Jb_ has quit [*.net *.split]
myndzi has quit [*.net *.split]
Drewch has quit [*.net *.split]
ChloeD has quit [*.net *.split]
cout has quit [*.net *.split]
Spaceghostc2c has quit [*.net *.split]
undert has quit [*.net *.split]
gate has quit [*.net *.split]
nyuszika7h has quit [*.net *.split]
ben_alman has quit [*.net *.split]
jrist has quit [*.net *.split]
andrewhl has quit [*.net *.split]
Apocalypse has quit [*.net *.split]
internet_user has quit [*.net *.split]
lopin has quit [*.net *.split]
Facefox has quit [*.net *.split]
Hanmac has quit [*.net *.split]
socomm has quit [*.net *.split]
radic has quit [*.net *.split]
shevy has quit [*.net *.split]
yeggeps_ has quit [*.net *.split]
alanp_ has quit [*.net *.split]
balki has quit [*.net *.split]
jimrollenhagen has quit [*.net *.split]
locriani has quit [*.net *.split]
araujo has quit [*.net *.split]
drspin has quit [*.net *.split]
thomas has quit [*.net *.split]
banghouseAFK has quit [*.net *.split]
caveat- has quit [*.net *.split]
DarthGandalf has quit [*.net *.split]
Yarou has quit [*.net *.split]
stepnem has quit [*.net *.split]
joukokar has quit [*.net *.split]
conceal_rs_ has quit [*.net *.split]
philips has quit [*.net *.split]
nacengineer has quit [*.net *.split]
zeroXten has quit [*.net *.split]
fred has quit [*.net *.split]
jmeeuwen has quit [*.net *.split]
offby1 has quit [*.net *.split]
ickmund has quit [*.net *.split]
Nanuq has quit [*.net *.split]
MekkisScreen has quit [*.net *.split]
oddraisin has quit [*.net *.split]
jstarcher has quit [*.net *.split]
Ttech has quit [*.net *.split]
Muz has quit [*.net *.split]
mtkd_ has quit [*.net *.split]
zaiste has quit [*.net *.split]
lectrick has quit [*.net *.split]
DarkFoxDK has quit [*.net *.split]
Scub has quit [*.net *.split]
UdontKnow has quit [*.net *.split]
SirFunk has quit [*.net *.split]
emdub has quit [*.net *.split]
flori has quit [*.net *.split]
strcrzy has quit [*.net *.split]
MetaCosm has quit [*.net *.split]
matled has quit [*.net *.split]
Elfix has quit [*.net *.split]
bnagy has quit [*.net *.split]
examancer has quit [*.net *.split]
aef_ has quit [*.net *.split]
swistak35 has quit [*.net *.split]
deavid has quit [*.net *.split]
chiel has quit [*.net *.split]
zeknox has quit [*.net *.split]
tommyblue has quit [*.net *.split]
BadAtom has quit [*.net *.split]
makkura has quit [*.net *.split]
joni has quit [*.net *.split]
MissionCritical has quit [Max SendQ exceeded]
freakazoid0223 has joined #ruby
niv has joined #ruby
saltnvinegar has quit [Quit: saltnvinegar]
zemanel has joined #ruby
gate has joined #ruby
mucker has joined #ruby
hynkle has joined #ruby
d3vic3 has joined #ruby
qwerxy has joined #ruby
siksia has joined #ruby
carlyle has joined #ruby
Morkel has joined #ruby
gvz has joined #ruby
rmascarenhas has joined #ruby
tyman_ has joined #ruby
asuka_ has joined #ruby
adeponte has joined #ruby
b1rkh0ff has joined #ruby
_marvin has joined #ruby
khakimov has joined #ruby
rking has joined #ruby
ghanima has joined #ruby
gmci has joined #ruby
ben_alman has joined #ruby
Corey has joined #ruby
nilg`` has joined #ruby
aantix has joined #ruby
jhchabran_ has joined #ruby
JStoker has joined #ruby
noganex has joined #ruby
artOfWar_ has joined #ruby
jrist has joined #ruby
dcope has joined #ruby
maesbn has joined #ruby
jmccune has joined #ruby
lorandi has joined #ruby
nfluxx has joined #ruby
gregorg_taf has joined #ruby
darthdeu has joined #ruby
thone_ has joined #ruby
maccosmo has joined #ruby
oooPaul has joined #ruby
youdonotexist has joined #ruby
bfgun has joined #ruby
MasterIdler has joined #ruby
walbert has joined #ruby
pdtpatrick has joined #ruby
jchauncey has joined #ruby
billiamii has joined #ruby
BiHi has joined #ruby
recursive has joined #ruby
ckrailo has joined #ruby
moshee has joined #ruby
arturaz has joined #ruby
tcopp has joined #ruby
rippa has joined #ruby
simao has joined #ruby
bburhans has joined #ruby
rasbonics has joined #ruby
lxsameer has joined #ruby
nahhh has joined #ruby
anatop has joined #ruby
TheRealPygo has joined #ruby
PaciFisT has joined #ruby
Ankhers has joined #ruby
kevinbond has joined #ruby
becom33 has joined #ruby
andrewhl has joined #ruby
hashpuppy has joined #ruby
erichmenge has joined #ruby
awarner has joined #ruby
chienpo has joined #ruby
axl_ has joined #ruby
albemuth has joined #ruby
mikeycgto has joined #ruby
pu22l3r has joined #ruby
banisterfiend has joined #ruby
elux has joined #ruby
theRoUS has joined #ruby
uris has joined #ruby
CannedCorn has joined #ruby
nlc has joined #ruby
blacktulip has joined #ruby
niklasb has joined #ruby
Apocalypse has joined #ruby
internet_user has joined #ruby
fantazo has joined #ruby
jgarvey has joined #ruby
wangr_ has joined #ruby
fortysixandtwo has joined #ruby
lopin has joined #ruby
rgrinberg has joined #ruby
ramblex has joined #ruby
xaxisx has joined #ruby
DuoSRX has joined #ruby
heftig has joined #ruby
nanderoo has joined #ruby
krusty_ar has joined #ruby
`brendan has joined #ruby
iamjarvo has joined #ruby
keanehsiao has joined #ruby
cHarNe2 has joined #ruby
nfk has joined #ruby
jonathanwallace has joined #ruby
cantonic has joined #ruby
eddie_ has joined #ruby
geekfactor has joined #ruby
Facefox has joined #ruby
davidcelis has joined #ruby
Defusal has joined #ruby
tomb_ has joined #ruby
pk1001100011 has joined #ruby
ronniy has joined #ruby
fermion has joined #ruby
DMKE has joined #ruby
emmanuelux has joined #ruby
jimeh2 has joined #ruby
Progster has joined #ruby
roolo has joined #ruby
davidw has joined #ruby
Occult has joined #ruby
Vainoharhainen has joined #ruby
vjt has joined #ruby
mneorr has joined #ruby
looopy has joined #ruby
Hanmac has joined #ruby
dangerousdave has joined #ruby
busybox42 has joined #ruby
socomm has joined #ruby
kalleth has joined #ruby
tomku has joined #ruby
Karmaon has joined #ruby
yxhuvud has joined #ruby
skryking has joined #ruby
_blackbird has joined #ruby
Tricks has joined #ruby
mmsequeira has joined #ruby
getbitcoin1 has joined #ruby
deryl has joined #ruby
radic has joined #ruby
puff has joined #ruby
x0F has joined #ruby
LiquidInsect has joined #ruby
shevy has joined #ruby
akem has joined #ruby
test34 has joined #ruby
jetblack has joined #ruby
wvms has joined #ruby
ccooke has joined #ruby
mockillo has joined #ruby
drizz has joined #ruby
yeggeps_ has joined #ruby
xbayrockx has joined #ruby
NimeshNeema has joined #ruby
punkrawkR has joined #ruby
Croms has joined #ruby
Guest85767 has joined #ruby
RubyPanther has joined #ruby
Poapfel has joined #ruby
trvr has joined #ruby
Ammar01 has joined #ruby
JonnieCache has joined #ruby
Kwpolska has joined #ruby
affix has joined #ruby
_br_ has joined #ruby
Beoran__ has joined #ruby
Dr4g has joined #ruby
svnlto has joined #ruby
politoed has joined #ruby
benyarb has joined #ruby
Kabaka has joined #ruby
wataken44 has joined #ruby
adambeynon has joined #ruby
klip has joined #ruby
wookiehangover has joined #ruby
Asher has joined #ruby
robbyoconnor has joined #ruby
_sjs has joined #ruby
thomasfedb has joined #ruby
classix has joined #ruby
alanp_ has joined #ruby
balki has joined #ruby
fukushima has joined #ruby
beilabs has joined #ruby
jimrollenhagen has joined #ruby
regedarek has joined #ruby
TheMoonMaster has joined #ruby
Veejay has joined #ruby
__main__ has joined #ruby
rotor has joined #ruby
saispo has joined #ruby
madhatter has joined #ruby
d2s has joined #ruby
seitensei has joined #ruby
zeromodulus has joined #ruby
m_3 has joined #ruby
samuelkadolph has joined #ruby
SeySayux has joined #ruby
AwesomeGarethMan has joined #ruby
KazW has joined #ruby
offby1 has joined #ruby
locriani has joined #ruby
tfitts has joined #ruby
araujo has joined #ruby
mikekelly has joined #ruby
multi_io has joined #ruby
Emmanuel_Chanel has joined #ruby
palmfrond has joined #ruby
QKO has joined #ruby
drspin has joined #ruby
Smirnov has joined #ruby
passbe has joined #ruby
mfridh has joined #ruby
avtobiff has joined #ruby
starburst has joined #ruby
banghouseAFK has joined #ruby
thomas has joined #ruby
robacarp has joined #ruby
welterde has joined #ruby
s0ber has joined #ruby
magoo has joined #ruby
jstarcher has joined #ruby
Guedes has joined #ruby
Khyron320 has joined #ruby
lsone has joined #ruby
linduxed has joined #ruby
mlue has joined #ruby
caveat- has joined #ruby
iaj_ has joined #ruby
mvangala has joined #ruby
irk3z has joined #ruby
rtl has joined #ruby
mxweas has joined #ruby
TheNumb has joined #ruby
nat2610 has joined #ruby
hemanth has joined #ruby
ex0a has joined #ruby
nilg has joined #ruby
rakm has joined #ruby
tectonic has joined #ruby
moted has joined #ruby
koshian has joined #ruby
cynosure has joined #ruby
imami|afk has joined #ruby
xkx has joined #ruby
c3l has joined #ruby
ada2358 has joined #ruby
MekkisScreen has joined #ruby
libertyprime has joined #ruby
ddv has joined #ruby
jhowarth has joined #ruby
gabrtv has joined #ruby
alienvenom has joined #ruby
stockholm has joined #ruby
thoolihan has joined #ruby
TheFuzzball has joined #ruby
Azure has joined #ruby
vaicine has joined #ruby
Jck_true has joined #ruby
blast_hardcheese has joined #ruby
Limb_ has joined #ruby
zz_chrismcg has joined #ruby
SpitfireWP has joined #ruby
dekz has joined #ruby
relix has joined #ruby
nuba has joined #ruby
elliottcable has joined #ruby
DarthGandalf has joined #ruby
shaman42 has joined #ruby
etank has joined #ruby
bgupta has joined #ruby
pzol has joined #ruby
Shamgar has joined #ruby
Yarou has joined #ruby
jjp has joined #ruby
sam113101 has joined #ruby
EvanR has joined #ruby
whuffor has joined #ruby
bubu\a has joined #ruby
vandemar has joined #ruby
cid404 has joined #ruby
Sgeo has joined #ruby
stepnem has joined #ruby
alindeman has joined #ruby
denysonique has joined #ruby
ping-pong has joined #ruby
b3nt_pin has joined #ruby
yellow5 has joined #ruby
AlbireoX has joined #ruby
shikamaru has joined #ruby
medik has joined #ruby
_root_ has joined #ruby
nopper has joined #ruby
klaas has joined #ruby
joukokar has joined #ruby
Industrial has joined #ruby
trebaum has joined #ruby
jodell has joined #ruby
amar_key has joined #ruby
G has joined #ruby
musl has joined #ruby
sirdeiu has joined #ruby
MoMo has joined #ruby
nigman has joined #ruby
c0rn_ has joined #ruby
zizzyx has joined #ruby
crodas has joined #ruby
cryptfu has joined #ruby
nicksmith has joined #ruby
conceal_rs_ has joined #ruby
BrianE has joined #ruby
nw has joined #ruby
Jb_ has joined #ruby
ByteCrunch has joined #ruby
nyuszika7h has joined #ruby
philips has joined #ruby
statix has joined #ruby
pingveno has joined #ruby
pcboy_ has joined #ruby
limed has joined #ruby
mahlon has joined #ruby
stroem has joined #ruby
Urth|Away has joined #ruby
Icehawk78 has joined #ruby
notbrent has joined #ruby
randym has joined #ruby
voodoofish has joined #ruby
Eldariof-ru has joined #ruby
patricksroberts has joined #ruby
thorncp has joined #ruby
psino has joined #ruby
idoru has joined #ruby
epitron has joined #ruby
nacengineer has joined #ruby
Shrink has joined #ruby
preller has joined #ruby
devdazed has joined #ruby
al-ol has joined #ruby
jacobw has joined #ruby
zeroXten has joined #ruby
omry has joined #ruby
ziyadb has joined #ruby
joppe has joined #ruby
poindontcare has joined #ruby
anildigital_work has joined #ruby
SeanTAllen has joined #ruby
pigoz has joined #ruby
eam has joined #ruby
UNIXgod has joined #ruby
jeedey has joined #ruby
fred has joined #ruby
kmwhite has joined #ruby
xsdg has joined #ruby
keyvan has joined #ruby
icyfenix has joined #ruby
epochwolf has joined #ruby
rpgsimmaster has joined #ruby
benwoody_ has joined #ruby
jmeeuwen has joined #ruby
yugui has joined #ruby
rcs has joined #ruby
danheberden has joined #ruby
aetaric has joined #ruby
jhunter has joined #ruby
rudle has joined #ruby
sv- has joined #ruby
bengl has joined #ruby
GeekOnCoffee has joined #ruby
lupine_85 has joined #ruby
hackeron has joined #ruby
eighty4 has joined #ruby
az has joined #ruby
ickmund has joined #ruby
Nanuq has joined #ruby
myndzi has joined #ruby
jrgifford has joined #ruby
lantins has joined #ruby
kloeri has joined #ruby
er1c_ has joined #ruby
oddraisin has joined #ruby
ereslibre has joined #ruby
warebec|hat has joined #ruby
srnty has joined #ruby
Gekz has joined #ruby
AnswerGuy has joined #ruby
mrmist has joined #ruby
johnduhart has joined #ruby
neektza has joined #ruby
sei has joined #ruby
sonkei has joined #ruby
nimred has joined #ruby
Natch| has joined #ruby
neersight[d] has joined #ruby
godzirra has joined #ruby
ctevie has joined #ruby
Drewch has joined #ruby
Tick-Tock has joined #ruby
Kartagis has joined #ruby
snapcase has joined #ruby
cespare has joined #ruby
felipe has joined #ruby
monokrome has joined #ruby
BRMatt has joined #ruby
Mez has joined #ruby
tomaw has joined #ruby
Sp4rKy has joined #ruby
RichGuk has joined #ruby
tessi has joined #ruby
WanderingGlitch has joined #ruby
pavelz_ has joined #ruby
willb has joined #ruby
elspeth has joined #ruby
dju has joined #ruby
jeekl has joined #ruby
dr_Poggs has joined #ruby
gianlucadv has joined #ruby
joschi has joined #ruby
epochwolf|vps has joined #ruby
LowKey has joined #ruby
Prudhvi has joined #ruby
phrame has joined #ruby
hidek46 has joined #ruby
PhilK has joined #ruby
Aaton_off has joined #ruby
alexhanh has joined #ruby
xybre_ has joined #ruby
canton7 has joined #ruby
ozzloy has joined #ruby
ixx has joined #ruby
muse has joined #ruby
Gm4n has joined #ruby
zigidias has joined #ruby
jalljo has joined #ruby
phreax has joined #ruby
Kovensky has joined #ruby
wang_ has joined #ruby
dagobah has joined #ruby
Drakevr has joined #ruby
Rious has joined #ruby
__class__ has joined #ruby
jasond has joined #ruby
end3r- has joined #ruby
Fraeon has joined #ruby
babinho has joined #ruby
theoros has joined #ruby
zaargy has joined #ruby
Caius has joined #ruby
Sigma00 has joined #ruby
forestbird has joined #ruby
ohcibi has joined #ruby
thedonvaughn has joined #ruby
notwen has joined #ruby
gogiel has joined #ruby
Guest63274 has joined #ruby
ekaleido has joined #ruby
Jelco has joined #ruby
msch has joined #ruby
heph has joined #ruby
DefV has joined #ruby
fahadsadah has joined #ruby
dhodgkin has joined #ruby
soulcake has joined #ruby
oliwer has joined #ruby
kichawa has joined #ruby
Guest74504 has joined #ruby
cjk101010 has joined #ruby
sejo has joined #ruby
vitoravelino has joined #ruby
Gonzih has joined #ruby
jmcphers has joined #ruby
nisstyre has joined #ruby
wagle has joined #ruby
mattp_ has joined #ruby
pietr0 has joined #ruby
ViperMaul has joined #ruby
dphase has joined #ruby
kapowaz has joined #ruby
matti has joined #ruby
Kiall has joined #ruby
marienz has joined #ruby
DavidTiger has joined #ruby
pkondzior has joined #ruby
anekos has joined #ruby
gentz has joined #ruby
hoelzro|away has joined #ruby
kickroot has joined #ruby
rails has joined #ruby
pradeepto has joined #ruby
kaktus has joined #ruby
wereHamster has joined #ruby
KillerFox has joined #ruby
sgronblom has joined #ruby
eregon has joined #ruby
naquad has joined #ruby
rcj_ has joined #ruby
dubios has joined #ruby
yeltzooo7 has joined #ruby
Utkarsh has joined #ruby
jbpros has joined #ruby
ichilton has joined #ruby
xea_ has joined #ruby
bperry has joined #ruby
_axx has joined #ruby
ezra has joined #ruby
parus has joined #ruby
patronus has joined #ruby
brian- has joined #ruby
ged has joined #ruby
SecretAgent has joined #ruby
Ttech has joined #ruby
ChloeD has joined #ruby
mtkd_ has joined #ruby
akl has joined #ruby
Muz has joined #ruby
cout has joined #ruby
Spaceghostc2c has joined #ruby
zaiste has joined #ruby
lectrick has joined #ruby
kuranai|off has joined #ruby
DarkFoxDK has joined #ruby
SirFunk has joined #ruby
Scub has joined #ruby
si14 has joined #ruby
UdontKnow has joined #ruby
emdub has joined #ruby
flori has joined #ruby
maahes has joined #ruby
strcrzy has joined #ruby
MetaCosm has joined #ruby
frogstarr78 has joined #ruby
FlyingFoX has joined #ruby
tris has joined #ruby
Tasser has joined #ruby
mikalv has joined #ruby
matled has joined #ruby
jeremy_c has joined #ruby
Elfix has joined #ruby
bnagy has joined #ruby
undert has joined #ruby
BadAtom has joined #ruby
examancer has joined #ruby
ewag has joined #ruby
zeknox has joined #ruby
aef_ has joined #ruby
ybit2 has joined #ruby
methoddk has joined #ruby
chiel has joined #ruby
Dratir has joined #ruby
swistak35 has joined #ruby
deavid has joined #ruby
mmercer has joined #ruby
undyingrage has joined #ruby
fugit_ has joined #ruby
sirecote has joined #ruby
lahwran has joined #ruby
Derander_ has joined #ruby
uxp has joined #ruby
elektronaut_ has joined #ruby
tommyblue has joined #ruby
vbernetr has joined #ruby
brjannc has joined #ruby
JodaZ has joined #ruby
jayne has joined #ruby
maddog_ has joined #ruby
David_Mi1ler has joined #ruby
mephux has joined #ruby
Frippe has joined #ruby
telling has joined #ruby
spathi has joined #ruby
makkura has joined #ruby
joni has joined #ruby
dev_ has joined #ruby
kenichi has joined #ruby
maxok has joined #ruby
DMKE has quit [Quit: Pingpong.]
Drewch has quit [Ping timeout: 244 seconds]
mmsequeira has quit [Quit: mmsequeira]
LordDoskias has joined #ruby
iamjarvo1 has joined #ruby
mmsequeira has joined #ruby
ben_m has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<LordDoskias> i want to build a hash which hash key <=> array mapping, but in the same time i want each time a i have a match for a particular key to add an element to the array that this key maps to, how can i do that?
iamjarvo has quit [Read error: Connection reset by peer]
Urth|Away has quit [Ping timeout: 240 seconds]
savage- has quit [Write error: Connection reset by peer]
<ben_m> Hey there! Is there a builtin shortcut for this in Ruby? `x && x.foo` ie. check if x is actually non-nil, then call method
<LordDoskias> i have something like : words.each {|word| group[word.chars.sort_by(&:downcase).join] = [add word to the already existing list OR create a new list with just this word] }
Drewch_ has joined #ruby
savage- has joined #ruby
<Mon_Ouie> x && x.foo is already short
Araxia_ has joined #ruby
zomgbie has joined #ruby
<ben_m> Mon_Ouie, true, i just have very high expectations from Ruby nowadays
<ben_m> Thought there would be something like x.?foo
williamcotton has quit [Quit: williamcotton]
DuoSRX has quit [Remote host closed the connection]
DuoSRX has joined #ruby
Urth|Away has joined #ruby
jeebster has quit [Quit: Leaving.]
thecreators has joined #ruby
the_jeebster has joined #ruby
ank has joined #ruby
SegFaultAX|work2 has joined #ruby
schovi has joined #ruby
<lectrick> what is the plural of regex? regexen? regexes?
<Mon_Ouie> regular expressions?
<ben_m> regexps?
<Hanmac> ben_m: i prefer the non-short version: x.foo unless x.nil?
<yxhuvud> ben_m: if using rails, then you can use .try :foo
counterbeing has joined #ruby
<ben_m> yxhuvud, not using rails, but will remember that for when I am :)
crankycoder has joined #ruby
<lectrick> ben_m: Indeed eh
wallerdev has joined #ruby
<lectrick> Mon_Ouie: Oh you're so pedantic
<ben_m> Hanmac, it's part of a conditional already though, `end until h['key'] && h['key'].zero?`
joast has joined #ruby
joast has quit [Client Quit]
<Hanmac> lectrick: wiktionary says: regexes
mrsolo has joined #ruby
davidw has quit [Ping timeout: 252 seconds]
<yxhuvud> ben_m: h['key'] == 0
* ank votes regexes
<LordDoskias> words.each {|word| anagram_group[word.chars.sort_by(&:downcase).join] << word } is this valid?
peregrine81 has joined #ruby
bier has joined #ruby
MissionCritical has joined #ruby
wracoon has joined #ruby
maletor has joined #ruby
<shevy> looks to be valid
<lectrick> Hanmac: i still like regexen
<ben_m> yxhuvud, ooh, I thought that would break when the key doesn't exist. Oh well, thanks :)
flagg0204 has joined #ruby
<LordDoskias> but it doesn't do what it is supposed to do. I want to feed an array of words and then group them depending on whether they are anagrams, and to see if 2 words are anagrams I sort their letters case insensitive and use that as the key to my hash
BiHi has quit [Quit: Computer has gone to sleep]
habib has joined #ruby
<habib> Heya!
flagg0204 has quit [Client Quit]
zomgbie has quit [Read error: Connection reset by peer]
joast has joined #ruby
Codif has joined #ruby
<yxhuvud> LordDoskias: how is anagram_group defined?
neersight[d] is now known as neersighted
<LordDoskias> anagram_group = Hash.new([])
<Hanmac> LordDoskias: words.group_by {|word| word.each_char.sort_by(&:downcase).join }
<yxhuvud> LordDoskias: then it will reuse the same array as prototype.
sepp2k has quit [Quit: Leaving.]
<Hanmac> ["abc","CaB"] returns => {"abc"=>["abc"], "aBC"=>["CaB"]} or do you want an different output?
<LordDoskias> yxhuvud, I want new array for every group ?
<_br_> shevy: yep
flagg0204 has joined #ruby
jchauncey has quit [Quit: jchauncey]
Codif has quit [Remote host closed the connection]
blacktulip has quit [Remote host closed the connection]
<LordDoskias> Hanmac, your example should return {"abc"=>["abc", "CaB"]}
<Hanmac> words.group_by {|word| word.chars.map(&:downcase).sort.join}
<offby1> Is there any way to get dynamic binding other than writing it myself?
cha1tanya has joined #ruby
<Hanmac> hm better: words.group_by {|word| word.each_char.map(&:downcase).sort.join}
<Hanmac> offby1 you could try swig ... but i does NOT recoment it ...
<LordDoskias> Hanmac, i don't really understand your suggestions. i just started learning ruby
<LordDoskias> i mean i understand the block and the iterators
<LordDoskias> but where is this saved?
<yxhuvud> LordDoskias: yes. It also seems you need to use += [] instead of <<
<shevy> LordDoskias in that code nowhere
<shevy> or in words
<shevy> :P
<shevy> I dunno if group_by modifies self
mikepack has joined #ruby
<Hanmac> shevy: group_by returns an new hash
<shevy> ok
<LordDoskias> yxhuvud, erm, how exactly would that look because words.each {|word| anagram_group[word.chars.sort_by(&:downcase).join] += word } is not working
<yxhuvud> [word]
<shevy> LordDoskias you dont have to cram everything into one line man
<Hanmac> LordDoskias: why dont you want my code? ... your code does not work correct
dr_bob has joined #ruby
apok has joined #ruby
Vainoharhainen has quit [Quit: Leaving...]
<LordDoskias> yxhuvud, thanks, it is working now. but why do I need to do += [word] doesn't, this mean "append a 1-element list for this key" ?
<LordDoskias> or it is a short-hand for "append this element to the list which this key maps to "
<LordDoskias> Hanmac, because I don't understand :)
<yxhuvud> because apparently the array isn't set correctly if you never call Hash[]=
<LordDoskias> also which form is preferable: blah.each {|something| jhdfjhdf} or blach.each do |something| \ lines \ of \ code \ end
maesbn has quit [Remote host closed the connection]
darthdeu has quit [Quit: Linkinus - http://linkinus.com]
ringotwo has joined #ruby
c0rn has joined #ruby
fermion has quit [Quit: P]
flagg0204 has quit [Quit: leaving]
flagg0204 has joined #ruby
Aaton_off is now known as Aaton
<Hanmac> LordDoskias: word.each_char.map(&:downcase).sort.join does this: each_char creates an iterator/enumerator, map transforms the chars into ins little variants, sort and join creates a new string ... your code only runs sort_by wich is NOT what you want
<shevy> LordDoskias both are almost identical, the {} form has higher binding than do/end though. also it is 2 characters, whereas do/end is 5 characters :D
<LordDoskias> Hanmac, but with my code (After yxhuvud intervention) i get the expected result
counterbeing has quit [Ping timeout: 265 seconds]
<yxhuvud> LordDoskias: what version of ruby do you have?
<shevy> 2.0
<LordDoskias> shevy, the thing is i'm following a course that uses ruby and the instructors said that in the world of ruby it is better to use iterators and the likes rather than loops
<LordDoskias> yxhuvud, 1.9.3
<shevy> LordDoskias what loops exactly?
simao has quit [Ping timeout: 265 seconds]
<shevy> loop {} I like a lot
<LordDoskias> shevy, in general like for
<shevy> yeah, for I cant stand
<shevy> also not too fond of while
<LordDoskias> in java the shorthand for each is awesome :D
jrist is now known as jrist-mtg
<yxhuvud> anyhow, anagram_group = words.group_by {|word| word.downcase.chars.sort.join} is probably easier to read and understand.
anatop has quit []
lxsameer has quit [Quit: Leaving]
joshcheek has joined #ruby
jchauncey has joined #ruby
joshman_ has joined #ruby
shadoi has joined #ruby
the_jeebster has quit [Ping timeout: 245 seconds]
carloslopes has joined #ruby
qwerxy has quit [Quit: Computer has gone to sleep.]
<LordDoskias> how do i view the available documentation for an enumerator?
tewecske has joined #ruby
<LordDoskias> on ruby-docs i see for example that chars → an_enumerator so how do i go to an_enumerator's documentation?
flak has joined #ruby
<shadoi> I recommend http://start.gotapi.com/ for searching
flak is now known as Guest44443
phantasm66 has joined #ruby
maxaok has joined #ruby
joshcheek has quit [Client Quit]
maxok has quit [Read error: Connection reset by peer]
yonggu_ has joined #ruby
rippa has quit [Ping timeout: 260 seconds]
the_jeebster has joined #ruby
tomb_ has quit [Quit: Computer has gone to sleep.]
yonggu has quit [Ping timeout: 245 seconds]
phantasm66 has quit [Quit: *sleeeeep*]
phantasm66 has joined #ruby
sbanwart has joined #ruby
adamkittelson has joined #ruby
zinjacoder has quit [Remote host closed the connection]
cousine has joined #ruby
luxurymode has joined #ruby
xaq has joined #ruby
dankest has joined #ruby
eddie_ has quit [Quit: Ex-Chat]
Faris has joined #ruby
maesbn has joined #ruby
kuranai|off is now known as kuranai
n1x has joined #ruby
jgrevich has joined #ruby
<LordDoskias> where can I get a good starting tutorial regarding class_eval ?
<shadoi> It evaluates code in the class context. There's not much to say about it other than that.
azm has joined #ruby
azm has quit [Changing host]
azm has joined #ruby
maesbn has quit [Remote host closed the connection]
zinjacoder has joined #ruby
<Mon_Ouie> Well, there is — how exactly it affects self, method definition and constant and class variables lookup
b3gott3n has joined #ruby
kenperkins has joined #ruby
ronniy has quit [Remote host closed the connection]
minijupe has joined #ruby
moosya has joined #ruby
fserb has joined #ruby
cha1tanya has quit [Quit: Leaving]
Morkel has quit [Quit: Morkel]
chimkan has joined #ruby
kevinbond has quit [Quit: kevinbond]
outworlder has joined #ruby
<habib> what IDE for win u can advice?
outworlder has left #ruby [#ruby]
<habib> can anyone advice ruby ide for win?
<epochwolf> Hanmac: do you need a full ide or a text editor?
roolo has quit [Quit: Linkinus - http://linkinus.com]
<habib> full
<habib> i need full one
<banisterfiend> Habib: habibi
<epochwolf> there is an eclipse based one out there called RadRails
<LordDoskias> epochwolf, i use rubymine, it seems to be good, it is paid though you can easily find a cracked copy
<habib> thnx
<epochwolf> LordDoskias: not interested, I don't like full ides
<LordDoskias> Hanmac, that is
<LordDoskias> epochwolf, wrong person ;d
<shevy> yeah
<shevy> 2012 is just not his epoch :(
<Hanmac> epochwolf: i use eclipse for big projects, and gedit for small ones
* epochwolf uses sublime for all projects.
joshman_ has quit [Quit: Computer has gone to sleep.]
<shevy> if god would need a bulldozer
<shevy> he'd use eclipse
<epochwolf> no, he would just have his son do it
bigoldrock has joined #ruby
azm has quit [Read error: Connection reset by peer]
Faris has quit [Read error: Connection reset by peer]
tomb_ has joined #ruby
brianpWins has joined #ruby
ringotwo has quit [Ping timeout: 260 seconds]
kirun has joined #ruby
celm has joined #ruby
LordDoskias has quit [Quit: Leaving]
dmerrick has joined #ruby
strnx has quit [Excess Flood]
ananthakumaran1 has quit [Quit: Leaving.]
anatop has joined #ruby
azm has joined #ruby
azm has quit [Changing host]
azm has joined #ruby
apok has quit [Quit: apok]
cousine has quit [Remote host closed the connection]
Eldariof59-ru has joined #ruby
macmartine has joined #ruby
jedmtnman has joined #ruby
strnx has joined #ruby
d3vic3 has quit [Ping timeout: 260 seconds]
ph^ has joined #ruby
Faris has joined #ruby
<Cpudan80> How do you get the path of a file object?
<shevy> Cpudan80 what info do we have from that file object?
<Cpudan80> Im looking at the API docs thinking it should be trivial --- but there doesn't appear to be a method for that?
<Cpudan80> shevy: not sure what you mean by that?
<shevy> it is a File.new?
<Cpudan80> yeah, some other utility class passes me something that was created with File.new
<Cpudan80> but I need to get the basename of the file object....
<shevy> x.path # => "xtrace-0.0.5.tar.bz2"
<Hanmac> fileobj.path ?
choffstein has joined #ruby
<shevy> I think he meant to give you that link Cpudan80 :)
<shevy> basename works
<shevy> File.basename x.path
<Cpudan80> oh ok
<Cpudan80> no basename doesn't work...
<shevy> (or whatever other variable your File.new has, in my case it was x = File.new 'test.txt')
Kruppe has joined #ruby
<shevy> not?
<shevy> lemme check...
<jedmtnman> oh right shevy => Cpudan80 that link
bashdy has joined #ruby
Naatan has joined #ruby
king313 has joined #ruby
king313 has quit [Changing host]
king313 has joined #ruby
<Cpudan80> yeah thanks
tchebb has quit [Quit: Leaving.]
d3vic3 has joined #ruby
jrist-mtg is now known as jrist
cousine has joined #ruby
<jedmtnman> anyone know what stable 1.9.2 is? is it p320?
<shevy> Cpudan80 hmm it works? hmm
<Cpudan80> shevy: hm, Im only on 1.8.6
<shevy> Cpudan80, it should, it has it in the official docu http://www.ruby-doc.org/core-1.9.3/File.html#method-c-basename
<shevy> aaah that explains it perhasp
<Cpudan80> And I think the 1.8.6 that I have is .... customized
<shevy> it works on 1.8.7 though
<shevy> they backported quite a bit
v0n has joined #ruby
<Cpudan80> It's some damn google sketchup screwed up ruby
<Cpudan80> It doesnt even have Tempfile
<shevy> it should not be too difficult to write your own version though
zommi has joined #ruby
fumduq has joined #ruby
<shevy> class File; def self.basename ... hmm
<Cpudan80> No, it wasn't - that's what I did :-)
<shevy> and inside that method, split on '/'
<shevy> ok
<Cpudan80> But it just bothers me that google packaged their own ruby...
<Cpudan80> but, it is google
<Cpudan80> Thou shalt not question anything
<shevy> indeed
<shevy> they will one day destroy javascript with ...
<shevy> dart !!!
<Cpudan80> I've worked primarily with their stuff for about 4 years
<shevy> well
tchebb has joined #ruby
<Cpudan80> I've yelled and screamed at my google rep before
<shevy> what I like is ... google search (still ...) and gmail
<Cpudan80> all to no avail
<Cpudan80> They do what they want, not what is correct, or what the customer wants
<shevy> google+ I think sucks, most other google things are in between... ah... google maps is useful
srid_ has joined #ruby
srid_ has quit [Changing host]
srid_ has joined #ruby
srid_ has joined #ruby
<shevy> but I kinda think they got too big :\
srid_ is now known as srid
lopin has quit [Ping timeout: 250 seconds]
<jedmtnman> shevy: dart = "javascript"[0..3]
<shevy> :D
<shevy> I think that is what I disliked the most about it ... it seemed even more verbose than javascript
jjjj has joined #ruby
<shevy> I also dont understand how things evolve anyway... we then have a terser language (coffeescript), and one that is more verbose (dart)
<shevy> wish I could use ruby instead
atmosx has joined #ruby
<jedmtnman> shevy: I only looked at it briefly, but it seemed to take the standard OOP approach, instead of making the most out of the best parts like functions and prototypes
sepp2k has joined #ruby
apok has joined #ruby
williamcotton has joined #ruby
<jedmtnman> shevy: well being as this is the ruby channel, i can only say that coffeescript was the implied alternative to my last statement.
monoman has joined #ruby
<jedmtnman> and now back to ruby :D
<monoman> how can I check to see if the class of variable X is Y?
<jedmtnman> anyway, bump to my original question, anyone know the current patch number of 1.9.2 stable?
tchebb has quit [Ping timeout: 245 seconds]
<monoman> x.class.name =~ /Y/ ?
<jedmtnman> monoman: try is_a?
<jedmtnman> {}.is_a? Hash
thecreators has quit [Remote host closed the connection]
<monoman> jedmtnman: cool, thanks
<jedmtnman> monoman: np
looopy has quit [Remote host closed the connection]
tchebb has joined #ruby
joshcheek has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
undersc0re97 has joined #ruby
<habib> how to update PATH to include build tools?
<habib> cos i'm trying to instalncurses gem and it won't install without updating tPATH
shadoi has quit [Remote host closed the connection]
<Cpudan80> Are there any built ins for creating zip files in ruby?
eph3meral has joined #ruby
looopy has joined #ruby
eddie has joined #ruby
eddie is now known as Guest32200
Guest32200 is now known as eddie_
looopy has quit [Remote host closed the connection]
jrist is now known as jrist-afk
<jedmtnman> anyone have a guess at this error? is it a bug or the intended limitation of Hash syntax in 1.9.2 http://pastie.org/4026865
Defusal has quit [Ping timeout: 248 seconds]
<jedmtnman> Cpudan80: probably just call out to the shell
tchebb1 has joined #ruby
tchebb has quit [Ping timeout: 245 seconds]
mdw has joined #ruby
Alied has joined #ruby
gearaholic has joined #ruby
b3gott3n has quit [Ping timeout: 265 seconds]
Alied has left #ruby [#ruby]
ringotwo has joined #ruby
<tscolari> try a space between : and the value
<jedmtnman> tscolari: tried that :/
<tscolari> hummm
<Cpudan80> Hanmac: so that's in the standard library?
beneggett has joined #ruby
<Hanmac> yeah
<jedmtnman> tscolari: in fact the space fails the basic use case too. {foo : "foo"} => throws syntax error
erratic has joined #ruby
<tscolari> jedmtnman: i think it should work, but I'm not sure if hash keys are limited to symbols on >=1.9.
<Hanmac> NO hash keys are not limited to symbols, but the new syntax is
xaq has quit [Remote host closed the connection]
<jedmtnman> Hanmac: thats unfortunate
wracoon has quit [Ping timeout: 252 seconds]
blacktulip has joined #ruby
<tscolari> yeah, especially when using haml =p
joshcheek has quit [Quit: joshcheek]
imami|afk is now known as banseljaj
<erratic> hey guys I've got this problem
Faris has quit [Quit: Leaving.]
afallows has joined #ruby
<erratic> thats from two files
<jedmtnman> tscolari: ironically, I'm actually writing a templating alternative
<erratic> one a ruby template the other a view type of thing
<tscolari> jedmtnman hehehe
<erratic> on line 44 that never works right
<erratic> can you not use next inside of a until
<erratic> oh I see at least one thing I should fix
<Cpudan80> Hanmac: the docs on that are terrible... do you know how to use it?
looopy has joined #ruby
<Hanmac> i only use it for (de)compression ... not for zip files ...
<Mon_Ouie> Ruby doesn't "hang" on String#empty?
<jedmtnman> tscolari: its a port of clojure's hiccup lib
krusty_ar has quit [Ping timeout: 265 seconds]
<Mon_Ouie> It means there's something else that is wrong with your code
<erratic> Mon_Ouie I noticed it was the other day actually
<erratic> whats the point of that
<erratic> welp the bathroom is destroyed
<erratic> not going in there for a while
krusty_ar has joined #ruby
Kruppe has quit [Ping timeout: 252 seconds]
b3gott3n has joined #ruby
<tscolari> jedmtnman i'm googling it, is it some kind of sexp/ast?
bricker88 has joined #ruby
<jedmtnman> tscolari: its the primary html/xml builder for clojure
<jedmtnman> tscolari: basic premise is that an xml doc is just a tree data structure, so just use a tree data structure to represent it
<jedmtnman> tscolari: a list of lists, basically
<erratic> so basically its a serializer / deserializer
rmascarenhas has quit [Quit: leaving]
<bricker88> Hello, I'm converting an object to json using to_json, and it's getting encoded when I want it to just be an actual JSON object. https://gist.github.com/2870102 What is the proper way to do this?
tchebb1 is now known as tchebb
wmoxam has joined #ruby
<bricker88> Probably an obvious answer but I'm drawing a blank
<tscolari> interesting
berserkr has quit [Quit: Leaving.]
<jedmtnman> tscolari: so an unordered list might look like this: http://pastie.org/4026958
b3gott3n has quit [Ping timeout: 260 seconds]
williamcotton_ has joined #ruby
icooba has joined #ruby
<jedmtnman> tscolari: because its a real data structure, you have access to all the enumerables, not just the subset that haml felt like implementing for iteration, you also have the 'safety', if you will, that on file load, its either a valid data structure, or not, rather than having to wait for the haml parser to interpret your view
<afallows> Hey guys - I've got a Sinatra app, and I'd like to be able to kick off a command line operation and have a page gradually update with the stdout results in approximately real time (a few seconds of offset is quite fine). What gems/classes should I be reading up on?
simao has joined #ruby
choffstein has quit [Remote host closed the connection]
looopy has quit [Remote host closed the connection]
williamcotton has quit [Ping timeout: 245 seconds]
williamcotton_ is now known as williamcotton
TheRealPygo is now known as pygospa
<jedmtnman> tscolari: gonna have to look into that. maybe i can build on it, or they already solved my problem :)
<tscolari> jedmtnman :)
<tscolari> jedmtnman in this templating solution there could be no logic at all in the view?
undersc0re97 has quit [Quit: Leaving]
<jedmtnman> tscolari: i thought i would hate hiccup, but ended up loving it. has the s/n ratio of haml without having to switch context
<jedmtnman> also Hanmac this is unfortunate: k = "foo";{k:"foo"}
undersc0re97 has joined #ruby
<tscolari> jedmtnman I'll definitely give it a look
<Hanmac> jedmtnman: you could do this: k = :"foo"
<bricker88> Just needed html_safe on there, duh… *facepalm*
simao has quit [Ping timeout: 265 seconds]
<jedmtnman> tscolari: normally i am not on this channel, but if you're a regular, i'll send you back a link when i publish (hopefully friday), otherwise you can DM me with your contact info
JohnBat26 has joined #ruby
<erratic> robby
<erratic> ruby robbed me of my senses
<erratic> and didnt do anything for me
<erratic> now I have a busted laptop
<erratic> big old fist print in the lcd
arturaz has quit [Ping timeout: 252 seconds]
<jedmtnman> tscolari: or you can get me here: github.com/jedschneider
mdw has quit [Ping timeout: 240 seconds]
<tscolari> jedmtnman you could build you hash this way maybe: k="foo"; Hash[k, "foo", ...]. But then I would rather use the old syntax.
<jedmtnman> tscolari: indeed. Hanmac I hadn't thought of that alternative
b3gott3n has joined #ruby
keanehsiao has quit [Quit: keanehsiao]
apok has quit [Remote host closed the connection]
banghouseAFK is now known as banghouse
jenrzzz-mac has joined #ruby
apok has joined #ruby
choffstein has joined #ruby
moshee has quit [Ping timeout: 244 seconds]
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
sonicpond has joined #ruby
lsone has left #ruby [#ruby]
maxok has joined #ruby
maxaok has quit [Read error: Connection reset by peer]
piotr_ has joined #ruby
aantix has quit [Quit: aantix]
ZachBeta has joined #ruby
monoman has left #ruby [#ruby]
maxok has quit [Read error: Connection reset by peer]
andrewhl has quit [Remote host closed the connection]
cousine has quit [Remote host closed the connection]
nonotza has joined #ruby
Defusal has joined #ruby
FlyingFoX has quit [Ping timeout: 244 seconds]
gmci has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
FlyingFoX has joined #ruby
bosphorus_ has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
bosphorus_ has quit [Remote host closed the connection]
qwerxy has joined #ruby
EzeQL has joined #ruby
williamcotton has quit [Quit: williamcotton]
tchebb has quit [Quit: Leaving.]
bosphorus has quit [Ping timeout: 245 seconds]
tchebb has joined #ruby
icooba has quit [Quit: icooba]
ZachBeta has quit [Quit: Computer has gone to sleep.]
crankycoder has quit [Remote host closed the connection]
gmci has joined #ruby
dr_bob has quit [Ping timeout: 248 seconds]
dr_bob has joined #ruby
jtdowney has joined #ruby
gearaholic has quit [Remote host closed the connection]
SAn has joined #ruby
jenrzzz-mac has quit [Quit: jenrzzz-mac]
<SAn> Hi! does anyone knows how to debug without using ruby-debug (i can't install it)? (i am a ruby newbie)
<eph3meral> SAn, puts "Some var #{somevar}"; exit
sam113101 has quit [Remote host closed the connection]
<eph3meral> SAn, or better, SomeClass.log_debug "Some var #{somevar}"
<eph3meral> make a logger class for your app
<SAn> thanks for the answers, i am looking for a full interpreter
<eph3meral> SAn, yeah well that'd be ruby-debug, so, good luck
jmcphers has quit [Ping timeout: 245 seconds]
sam113101 has joined #ruby
<Hanmac> irb or pry could be interesting
<jedmtnman> SAn: pry might be helpful, also just calling inspect on your object and printing out the console with puts is pretty effective
<jedmtnman> STDERR.puts foo.inspect
<SAn> its not so effective, i have to write and whait 2 minutes to the webrick to start
<erratic> how do I check to see if a string is empty in ruby
<erratic> erb specificallyh
ZachBeta has joined #ruby
emmanuelux has quit [Remote host closed the connection]
<jedmtnman> SAn: thats probably exaggerating the boot time, even on jruby :)
<SAn> jedmtnman: :) ok, 30 seconds, but feels like 2 hours, i am a tootal ruby newby trying to make a redmine plugin
adac has joined #ruby
<jedmtnman> SAn: that can be frustrating when you are working with a full stack solution and you don't know much about how all the parts go together.
emmanuelux has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
<SAn> jedmtnman: yes, of course, so an interactive repl is my best option
<jedmtnman> SAn: try if you can to get the smallest parts of the plugin working outside the framework, maybe just in IRB.
atmosx has left #ruby [#ruby]
<SAn> jedmtnman: i have to monkeypatch the redmine
<jedmtnman> SAn, you should deff consider monkeypatching the last option
<SAn> yeah, i can fork it :P
jmcphers has joined #ruby
<SAn> anyway, ruby-debug will be very helpfull to learn also
<SAn> so maybe i have to fight some more trying to install it
<jedmtnman> well, forking and monkeypatching are two diff issues
<shevy> hmm
<shevy> how hard is it to use ruby-debug ?
<shevy> I kinda never used it so far
beneggett has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<jedmtnman> shevy: I dont know I"ve never used it (in 4 years of ruby dev)
itnomad has joined #ruby
<SAn> shevy: the hard part for me is installing it
<shevy> hmmm
<shevy> how is it installed? gem install ruby-debug ?
mikeg has joined #ruby
<SAn> yes, i am trying that, but that throws an error
<shevy> yeah jedmtnman ... perhaps I am missing something... there must be some useful thing in ruby-debg
<SAn> cause it can't build linecache
eddie_ has quit [Quit: Ex-Chat]
fserb has quit [Quit: ttyl]
hynkle has quit [Read error: No route to host]
<macmartine> Given a Date, say Thursday May 17th, how can I find out if this is the 2nd, 3rd, or 4th Thurdday of the week, etc?
mneorr has quit [Remote host closed the connection]
<macmartine> er, of the month
Vainoharhainen has joined #ruby
Vainoharhainen has quit [Changing host]
Vainoharhainen has joined #ruby
<jedmtnman> shevy: probably if you need a debugger, your methods are doing to much :)
hynkle has joined #ruby
anatop has quit []
<shevy> hehe
<jedmtnman> shevy: my debug is should + RSpec::Matcher
<SAn> jedmtnman: its a good weapong when you are new to a codebase and you dont have time to read it all
<jedmtnman> SAn: haven't worked on redmine in a long time, but you might read the specs and features files first
<SAn> here is the output of the gem install ruby-debug http://paste.usla.org.ar/show/62/
Axsuul has joined #ruby
monomanman has joined #ruby
<monomanman> who here has dealt with compressed sites and net/http?
<SAn> jedmtnman: thanks for the tip
niklasb has quit [Quit: WeeChat 0.3.7]
<jedmtnman> SAn: install and learn rvm https://rvm.io//
Habib1983 has joined #ruby
qwerxy has quit [Quit: Computer has gone to sleep.]
<jedmtnman> it sandboxes your gem and ruby environments
phantasm66 has quit [Ping timeout: 244 seconds]
<Habib1983> Hey everyone!) did anyone use win32console gem?
<SAn> jedmtnman: thanks, i will give it a chance
<deryl> instead of asking who has used X Z Y, just ask your question
skum has joined #ruby
<deryl> if someone knows the answer they'll answer, if they don't they won't
Synthead has joined #ruby
Vainoharhainen has quit [Ping timeout: 252 seconds]
Guest44443 has quit [Ping timeout: 265 seconds]
virunga has joined #ruby
<Habib1983> Ok. Then how to set text color using this gem?
Jackneill has quit [Read error: Connection reset by peer]
virunga has quit [Client Quit]
Squarepy has joined #ruby
skum is now known as Vainoharhainen
Vainoharhainen has quit [Changing host]
Vainoharhainen has joined #ruby
mneorr has joined #ruby
<SAn> jedmtnman: just an update, i had to install ruby-debug19 ....
Helius has joined #ruby
<Ankhers> Win32 console is depricated. Should use ANSICON
dorei has joined #ruby
<dorei> hello, how can i convert a unix timestamp (seconds from 1970) into something more readable?
phantasm66 has joined #ruby
qwerxy has joined #ruby
<Habib1983> Ansicon is gem?
<Tasser> how do I read a gzipped file + extract?
<eam> dorei: Time.at() ?
jrist-afk is now known as jrist
Naatan has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<dorei> eam: thanx :)
nanderoo has left #ruby [#ruby]
jchauncey has quit [Quit: jchauncey]
<jedmtnman> SAn: that makes sense
jchauncey has joined #ruby
looopy has joined #ruby
robert_ has joined #ruby
<jedmtnman> SAn: also, fyi there is a #redmine irc channel
fserb has joined #ruby
<SAn> jedmtnman: :)
<jedmtnman> SAn: also, fyi. redmine doesnt seem to support 1.9 http://www.redmine.org/projects/redmine/wiki/RedmineInstall
<jedmtnman> SAn: never mind
<jedmtnman> misread
<SAn> the problem is that actually theres a bug in ruby-debug19
<banisterfiend> SAn: use debugger gem instead
Squarepy has quit [Changing host]
Squarepy has joined #ruby
roams has joined #ruby
andrewhl has joined #ruby
daniel_hinojosa has joined #ruby
hynkle_ has joined #ruby
hynkle has quit [Read error: No route to host]
hynkle_ is now known as hynkle
<SAn> banisterfiend: yes! :) it worked
youdonotexist has quit [Ping timeout: 265 seconds]
youdonotexist has joined #ruby
dax has joined #ruby
<eph3meral> so, i wanna get this right, and, effectively I've not had much of a problem with this before, but... what exactly are the rules on local var names being the same as, e.g. method names on the current class? also esp re: class methods, like when do I need to call self.foo vs just foo to be sure I get a desired effect, be that using a local var or calling a class method?
blooberr has joined #ruby
<SAn> banisterfiend: how can i use it? google only talks about ruby-debug
Tricks has quit [Read error: Connection reset by peer]
<banisterfiend> SAn: it's the same
<banisterfiend> SAn: just reuqire 'debugger' instead
<banisterfiend> eph3meral: locals always win
<SAn> banisterfiend: great, thanks :)
<banisterfiend> eph3meral: if u want the method instead of the local then use self.method_name
<eph3meral> banisterfiend, ok, does that apply for both instance and class methods?
<eph3meral> because also, i've seemed to be able to call class methods and instance methods on the current object without using self.
<banisterfiend> eph3meral: you cant call class methods on the instance
<banisterfiend> so it wont be an issue
<eph3meral> k, but i'm not talking crossing between instance and class methods
<banisterfiend> eph3meral: well there's nothing special about class methods, they're just instance methods on the metaclass. So the same rules apply re locals
<banisterfiend> locals always win :)
siksia has quit [Ping timeout: 244 seconds]
<eph3meral> so, i guess here's the crux of where I'm stuck, does that only apply if you have assigned to the var? like if you've never done: foo = "blarp"; then would attempting to call the method foo still result in the system essentially evaluating nothing and moving on to the next line?
<eph3meral> cuz like I said, I seem to have been able to call instance methods before, without using self.
ph^ has quit [Ping timeout: 265 seconds]
<eph3meral> and from within class methods, i can call other class methods, without using self.
tyman_ has quit [Quit: tyman_]
celm has quit [Quit: Leaving]
<banisterfiend> eph3meral: you dont need to use 'self' if there's no locals with the same name. 'self' is just used to disambiguate methods from locals in the case locals with the same name exist
<eph3meral> gotcha, ok thanks that makes sense
<Mon_Ouie> erratic: Don't ask questions in private messages
<Mon_Ouie> and, String#empty?
billiamii has left #ruby ["Leaving"]
Eldariof59-ru has quit []
Habib1983 has quit [Ping timeout: 245 seconds]
s0ber has quit [Read error: Connection reset by peer]
lorandi has quit [Quit: Leaving]
hashpuppy has quit [Quit: hashpuppy]
jenrzzz-mac has joined #ruby
s0ber has joined #ruby
fserb has quit [Quit: ttyl]
Tricks has joined #ruby
undersc0re97 has quit [Ping timeout: 244 seconds]
crankycoder has joined #ruby
siksia has joined #ruby
williamcotton has joined #ruby
addi is now known as ICanChangeNick
jjjj has quit [Quit: Leaving.]
mengu has quit [Quit: Konversation terminated!]
ICanChangeNick is now known as addi
<habib> can i set pos of cursor in terminal using ANSICON?
n1x has quit [Quit: "zZZzzz time"]
Helius has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
<Ankhers> Habib: Yes, I sent you the github page, look at the readme, it will be under the 'sequences recognised' section
jrist is now known as jrist-afk
shadoi has joined #ruby
brianpWins has joined #ruby
sepp2k1 has joined #ruby
fserb has joined #ruby
theRoUS has quit [Quit: Leaving]
sepp2k has quit [Ping timeout: 245 seconds]
bosphorus has joined #ruby
theRoUS has joined #ruby
fserb has quit [Client Quit]
theRoUS has quit [Client Quit]
theRoUS has joined #ruby
fserb has joined #ruby
bdnelson has joined #ruby
<habib> <Ankhers> yeah gthnx i found it
joshcheek has joined #ruby
simao has joined #ruby
Helius has joined #ruby
joshcheek has quit [Client Quit]
Ankhers has quit [Remote host closed the connection]
fserb has quit [Client Quit]
joshcheek has joined #ruby
joshcheek has quit [Client Quit]
mneorr_ has joined #ruby
ryan0x2 has quit [Read error: Connection reset by peer]
nonotza_ has joined #ruby
ryan0x2 has joined #ruby
erratic has quit []
JohnBat26 has quit [Ping timeout: 245 seconds]
carloslopes has quit [Quit: Leaving]
nonotza has quit [Ping timeout: 252 seconds]
nonotza_ is now known as nonotza
simao has quit [Ping timeout: 265 seconds]
DanBoy has joined #ruby
mneorr has quit [Ping timeout: 248 seconds]
cbuxton has joined #ruby
neersighted is now known as neersight[d]
ryan0x2 has quit [Remote host closed the connection]
azm has quit [Ping timeout: 265 seconds]
yxhuvud has quit [Ping timeout: 245 seconds]
mts7 has joined #ruby
hynkle has quit [Read error: No route to host]
DRCALKIN has joined #ruby
binaryplease has joined #ruby
hynkle has joined #ruby
Raduwen has quit [Quit: Leaving...]
mts7 has quit [Remote host closed the connection]
qwerxy has quit [Quit: Computer has gone to sleep.]
elux has quit [Quit: Bye!]
binaryplease has quit [Quit: WeeChat 0.3.7]
tommyvyo has joined #ruby
fbernier has quit [Ping timeout: 245 seconds]
habib has quit []
jenrzzz-mac has quit [Quit: jenrzzz-mac]
hynkle has quit [Read error: No route to host]
hynkle has joined #ruby
werdnativ has quit [Quit: werdnativ]
lkba has joined #ruby
kylemcgill has joined #ruby
bashdy has quit [Quit: leaving]
hynkle has quit [Read error: No route to host]
hynkle has joined #ruby
qwerxy has joined #ruby
billiamii has joined #ruby
davidw has joined #ruby
davidw is now known as Guest16903
fmcgeough has joined #ruby
fmcgeough has quit [Client Quit]
mengu has joined #ruby
phantasm66 has quit [Quit: *poof*]
zommi has quit [Remote host closed the connection]
williamcotton has quit [Quit: williamcotton]
becom33 has quit [Ping timeout: 252 seconds]
nilg`` has quit [Remote host closed the connection]
Gavilan has joined #ruby
pu22l3r has quit [Ping timeout: 260 seconds]
alanp has joined #ruby
balki_ has joined #ruby
qwerxy has quit [Quit: Computer has gone to sleep.]
hynkle has quit [Quit: hynkle]
balki has quit [Read error: Connection reset by peer]
alanp_ has quit [Read error: Connection reset by peer]
Helius has quit [Remote host closed the connection]
internet_user has quit [Remote host closed the connection]
kevinbond has joined #ruby
balki_ is now known as balki
PaciFisT has quit [Quit: Leaving.]
PaciFisT has joined #ruby
looopy has quit [Remote host closed the connection]
<_marvin> hi
geekbri has quit [Remote host closed the connection]
moshee has quit [Ping timeout: 260 seconds]
jgrevich has quit [Read error: Connection reset by peer]
moshee has joined #ruby
PaciFisT has quit [Client Quit]
jgrevich has joined #ruby
jrist-afk is now known as jrist
cbuxton1 has joined #ruby
Morkel has joined #ruby
cbuxton has quit [Ping timeout: 244 seconds]
monomanman has left #ruby [#ruby]
qwerxy has joined #ruby
DRCALKIN has quit [Quit: Leaving]
Nanuq has quit [Quit: leaving]
alexim has joined #ruby
chessguy has quit [Remote host closed the connection]
becom33 has joined #ruby
dross has quit [Ping timeout: 245 seconds]
nisstyre has quit [Changing host]
nisstyre has joined #ruby
wallerdev has quit [Quit: wallerdev]
nonotza has quit [Quit: nonotza]
mdw has joined #ruby
yoklov has joined #ruby
Nanuq has joined #ruby
counterbeing has joined #ruby
blacktulip has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
blacktulip has joined #ruby
williamcotton has joined #ruby
siksia has quit [Ping timeout: 252 seconds]
chomp has joined #ruby
balki_ has joined #ruby
SAn has left #ruby [#ruby]
Morkel has quit [Quit: Morkel]
alanp has quit [Read error: Connection reset by peer]
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
undersc0re97 has joined #ruby
balki has quit [Read error: Connection reset by peer]
balki_ is now known as balki
mikeg has quit [Ping timeout: 260 seconds]
choffstein has quit [Remote host closed the connection]
siksia has joined #ruby
akem has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
jackiechan0 has joined #ruby
tommylommykins has joined #ruby
bluenemo_ has joined #ruby
bluenemo_ has quit [Changing host]
bluenemo_ has joined #ruby
stewart_ has joined #ruby
bluenemo_ has quit [Remote host closed the connection]
bluenemo_ has joined #ruby
bluenemo_ has quit [Changing host]
bluenemo_ has joined #ruby
dross has joined #ruby
ChloeD has quit [Quit: leaving]
bluenemo_ has quit [Remote host closed the connection]
chienpo has left #ruby [#ruby]
bluenemo_ has joined #ruby
bluenemo_ has quit [Changing host]
bluenemo_ has joined #ruby
bluenemo_ has quit [Remote host closed the connection]
itnomad has quit [Quit: Leaving]
hakunin has quit [Remote host closed the connection]
peregrine81 has quit [Quit: Goodbye.]
hakunin has joined #ruby
iamjarvo1 has quit [Quit: Leaving.]
wilmoore has joined #ruby
<Cpudan80> Is there a concept of a UI thread in ruby?
dr_bob has quit [Read error: Connection reset by peer]
mneorr_ has quit [Remote host closed the connection]
<Cpudan80> err rather, UI operations must be performed on a specific thread
jackiechan0 has quit [Quit: Sto andando via]
jackiechan0 has joined #ruby
supergiantrobot_ has quit [Quit: supergiantrobot_]
supergiantrobot_ has joined #ruby
ph^ has joined #ruby
supergiantrobot_ has quit [Client Quit]
billiamii has quit []
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
dorei has quit [Ping timeout: 245 seconds]
looopy has joined #ruby
akem has quit [Read error: Connection reset by peer]
looopy has quit [Remote host closed the connection]
werdnativ has joined #ruby
dorei has joined #ruby
banseljaj is now known as imami|afk
cousine has joined #ruby
jchauncey has quit [Quit: jchauncey]
crankycoder has quit [Remote host closed the connection]
ph^ has quit [Remote host closed the connection]
Squarepy has quit [Quit: Leaving]
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
ph^ has joined #ruby
recursive has quit [Quit: leaving]
chson has quit [Remote host closed the connection]
niku4i has joined #ruby
jenrzzz-mac has joined #ruby
theRoUS has quit [Ping timeout: 260 seconds]
noganex has quit [Ping timeout: 265 seconds]
ph^ has quit [Ping timeout: 260 seconds]
<eph3meral> Cpudan80, I don't think so?
noganex has joined #ruby
<eph3meral> Cpudan80, i mean, it may largely depend on what UI you're using
<eph3meral> i usually just build web UIs, so they're not connected to whatever the main app engine is
<eph3meral> they just read from the same db is all
walbert has quit []
bglusman has quit [Remote host closed the connection]
ZachBeta has quit [Quit: Computer has gone to sleep.]
bglusman has joined #ruby
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
bglusman has quit [Read error: Connection reset by peer]
bglusman has joined #ruby
td123 has joined #ruby
DuoSRX has quit [Remote host closed the connection]
<becom33> hi is anyone here ?
<Tasser> nah, just about 666 other people
looopy has joined #ruby
joshman_ has joined #ruby
dangerousdave has quit [Quit: Leaving...]
minijupe has quit [Quit: minijupe]
davidpk has joined #ruby
<CannedCorn> hey guys, im having a bit of trouble with encodings
<CannedCorn> when i try to run my program it says invalid multibyte char (US-ASCII)
kuranai is now known as kuranai|off
noganex has quit [Ping timeout: 244 seconds]
<becom33> Tasser, yea usually alot of them spend time sleeping
noganex has joined #ruby
<Tasser> CannedCorn, yeah, because you told it to read some unicode as ascii
<tommylommykins> If that is the case, you can fix it with your_string.force_encoding('utf-8')
choffstein has joined #ruby
looopy has quit [Remote host closed the connection]
joshcheek has joined #ruby
<CannedCorn> what is the defualt encoding when reading from a file?
wallerdev has joined #ruby
carlyle has quit [Remote host closed the connection]
<CannedCorn> in windows
<CannedCorn> when i print it out
fserb has joined #ruby
jrajav has joined #ruby
<CannedCorn> it seems to say ibm437
mdw has quit [Ping timeout: 245 seconds]
jenrzzz-mac has quit [Remote host closed the connection]
dotnull has joined #ruby
balki has quit [Ping timeout: 250 seconds]
schovi has quit [Remote host closed the connection]
<tommylommykins> http://blog.grayproductions.net/articles/ruby_19s_string might shed some light
jenrzzz-mac has joined #ruby
Cpudan80 has quit [Read error: Connection reset by peer]
qwerxy has quit [Quit: Computer has gone to sleep.]
balki has joined #ruby
Paradox has joined #ruby
bdnelson has quit []
kylemcgill has quit [Read error: Connection reset by peer]
shtirlic_ has quit [Read error: Connection reset by peer]
<Paradox> i've been messing around with highline for a script im writing, and while using it to get multiple line input via gather works, its not elegant.
[Neurotic] has joined #ruby
<Paradox> is there any way to launch an editor, such as vim
<Paradox> and then get the results back?
kylemcgill has joined #ruby
joshcheek has quit [Quit: joshcheek]
Bosma has joined #ruby
moshee has quit [Ping timeout: 250 seconds]
<Paradox> i know pry does this, but was hoping someone could save me the trouble of digging through the code to find it
shtirlic has joined #ruby
moshee has joined #ruby
iocor has joined #ruby
jenrzzz-mac has quit [Remote host closed the connection]
dv310p3r has quit [Ping timeout: 245 seconds]
jenrzzz-mac has joined #ruby
siksia has quit [Ping timeout: 252 seconds]
Guest16903 has quit [Read error: Operation timed out]
wangr_ has quit [Ping timeout: 248 seconds]
jenrzzz-mac has quit [Remote host closed the connection]
siksia has joined #ruby
jenrzzz-mac has joined #ruby
<eam> Paradox: you mean system "vi", your_tempfile ?
roams has quit [Ping timeout: 256 seconds]
fserb has quit [Quit: ttyl]
benatwork has quit [Remote host closed the connection]
jenrzzz-mac_ has joined #ruby
<eam> the nice thing to do is to check ENV['EDITOR'] first though
Urth|Away has quit [Quit: Probably quit ZNC]
jenrzzz-mac_ has quit [Client Quit]
Blob has joined #ruby
mneorr has joined #ruby
bglusman has quit [Remote host closed the connection]
bglusman has joined #ruby
bbttxu has quit [Quit: bbttxu]
jenrzzz-mac has quit [Ping timeout: 245 seconds]
<Paradox> eam, hrm, i might be a big derp, but that seems to be what i want to do, but isnt working
test34- has joined #ruby
test34- has quit [Changing host]
test34- has joined #ruby
jackiechan0 has quit [Quit: Sto andando via]
test34 has quit [Ping timeout: 245 seconds]
<eam> Paradox: more context?
<Paradox> let me poke at it more because "not working" can mean anything
<Paradox> yeah
<Paradox> hold on
<Paradox> so i make a new string called "temp"
<Paradox> and run system "vi", temp
<Paradox> (correct?)
jenrzzz-mac has joined #ruby
kevinbond has quit [Quit: kevinbond]
fantazo has quit [Remote host closed the connection]
<Paradox> i run that
<eam> well, you probably want to use Tempfile somewhere like /tmp
<eam> but yes
<Paradox> but it opens vim in directory listing
<Paradox> ah, so i'd have to readline /tmp
<eam> do you have a directory called "temp" in your current directory?
bglusman has quit [Ping timeout: 245 seconds]
Blob is now known as Homunculus
arvidkahl has joined #ruby
sepp2k1 has quit [Remote host closed the connection]
Homunculus is now known as Diffraction
dnyy has joined #ruby
Beoran_ has joined #ruby
<Paradox> yes, that was it :/
<eam> Paradox: my_tmpfile = Tempfile.new("myprog").path; system "vi", my_tmpfile; File.read(my_tmpfile) ...
<CannedCorn> thanks tommylommykins
<eam> Tempfile will make sure you don't collide with existing filenames
<Paradox> that would work
<Paradox> thanks
<eam> Paradox: also consider checking the value of $EDITOR before forcing the user into vi
<Paradox> i will
<Paradox> because i dont use vi
<Paradox> i use sublimeText
<eam> damn I was hoping you'd say emacs
<eph3meral> screw vi
<Paradox> and i know some people are strange and may want to use emacs
<eph3meral> vim rocks :)
<eph3meral> i already have an OS, thanks
<eam> eph3meral: viper-mode > vim
<Paradox> nah, i like my hands
Diffraction has quit [Remote host closed the connection]
<eph3meral> nah, not really, i tried it
<eph3meral> few times
<eph3meral> i was actually a hardcore emacs user at first... for about 5 years, then vim for the past 10
Foxandxss has joined #ruby
jtdowney has quit [Remote host closed the connection]
indian has joined #ruby
indian has quit [Changing host]
indian has joined #ruby
<jrajav> To this day I still don't understand why vim and emacs are still so wildly popular
Beoran__ has quit [Ping timeout: 244 seconds]
<jrajav> Guess people in dvelopment just don't like adapting to new paradigms :/
<jrajav> Hey, to each his own
<eam> by new paradigms do you mean taking your hands off the keyboard to use the mouse?
<jrajav> No?
<jrajav> Keyboard-responsive apps exist outside of terminal-mode applications, you know
<eam> I just don't see any other "new paradigms" in the last 20 years or so
rorrego has joined #ruby
<Paradox> sublimeText is a perfect example jrajav
<jrajav> ^
MasterIdler_ has joined #ruby
MasterIdler_ has quit [Client Quit]
<Paradox> i can do everything in it on the keyboard
<Paradox> or on the mouse
<Paradox> i dont have to switch to one or the other
<Paradox> ⌘⇧P
<eam> I'm honestly curious, what does it do that other editors don't?
<jrajav> eam: Let's see, visually representing any information at all aside from the file content? :P
<Paradox> its got absurdly good navigation
<jrajav> That's a paradigm
<Paradox> like, say you're in a rails app
mxweas_ has joined #ruby
<Paradox> and you are waist-deep in views
<Paradox> and you want to edit a test
c3l has quit [Ping timeout: 245 seconds]
<Paradox> you just ⌘P, type the partial name of the test, and it autocompletes to it and lets you jump right to it
roams has joined #ruby
fivetwentysix has joined #ruby
<eam> yeah but emacs does that too
<eam> I was wondering what's new
vlad_starkov has joined #ruby
<Paradox> it also does multi-selection
<Paradox> you can drop multiple cursors throughout the document and edit from all at once
<Paradox> they dont have to be continuous
jgarvey has quit [Remote host closed the connection]
<eam> none of that sounds new
<jrajav> eam: One major DISadvantage of low-level, cross-platform editors like vim and emacs is very poor integration with the OS if you want to or have to use it together with other tools
MasterIdler has quit [Ping timeout: 244 seconds]
<eam> I'm pretty sure it's not an issue of new paragigms and more an issue of not knowing how older tools work
khakimov has joined #ruby
<eam> color me unconvined
<banisterfiend> Paradox: what does your program do
<jrajav> eam: Wha?! Haha how are you turning that around so backwards
<Paradox> banisterfiend, right now?
tomb_ has quit [Quit: Computer has gone to sleep.]
<Paradox> its a wip that sends a message to all moderators of a reddit subreddit
<jrajav> My original point was that poeple who use older editors don't want to adapt to newer tools
<banisterfiend> Paradox: i mean why do u want this functionality
<jrajav> And you're saying it's actually people who use newer tools who can't "adapt" to old tool
<jrajav> Wrong direction
<eam> jrajav: you claimed there's something they do which isn't provided -- but this seems to be false
<Paradox> because reddit private message bodies let people use newlines and other characters
<jrajav> eam: I named at least one significant thing, lack of OS integration
<eam> the implication that newer is necessarily better is fundamentally flawed
<Paradox> and using Highline, even with gather and readline on, doesn't provide a nice editing system
<banisterfiend> Paradox: oh ok
<Paradox> eam, one can also argue that just because something has been "that way" for a long time doesn't mean its the right way to do something
<eam> Paradox: right, which is why I asked for specifics. Decisions should be made based on knowledge
<eam> not seeing any specifics though
<Paradox> TMOWTDI
<jrajav> Gonna ignore me again if I say it a third time?
<Paradox> or whatever
<eam> jrajav: I don't understand what you mean by "os integration"
<jrajav> Hey idc that much. Again, to each his own
PerlPuma has joined #ruby
<eam> honestly, the reason I ask is that I've looked at various hip editors and none seem to be as powerful as emacs so I haven't adopted them
roams has quit [Ping timeout: 244 seconds]
Vainoharhainen has quit [Ping timeout: 245 seconds]
<jrajav> eam: Well on OS X, for instance, you miss out on services, scripting, and there may be clipboard issues, not to mention you miss out on all the window management like full screening, spaces, expose (if you depend on something like screen instead)
<eam> and I'm curious as to why they might be better -- but I can never get a concrete (or factually accurate) answer
PerlPuma has quit [Client Quit]
vlad_starkov has quit [Ping timeout: 260 seconds]
<jrajav> eam: Whole different board of problems on Windows
<eam> jrajav: ah, got it
<jrajav> eam: This isn't essential, ofc, it's just a point
<eam> so you mean native UI features
<jrajav> It's not all UI
<eam> no?
<jrajav> Scripting can tie together tools on OS X in a manner just as powerful as an IDE
adac has quit [Quit: Leaving]
<eam> uh, but ...
<eam> scripting is why emacs dominates other options =/
<avtobiff> hi! i have problems with rubymail's tests which don't run under ruby1.9.1. paste -> http://paste.debian.net/172902/
Vainoharhainen has joined #ruby
<jrajav> eam: But then you're tied to just emacs
<avtobiff> the test/testbase.rb file -> http://paste.debian.net/172903/
fserb has joined #ruby
<jrajav> eam: What if you want to or have to use another tool for something
xaq has joined #ruby
<avtobiff> i don't understand where the variable "name" is set
youdonotexist has quit [Quit: youdonotexist]
<jrajav> What if I'm insane and want to use a graphical git manager :P
<eam> jrajav: totally possible? Sorry, I don't get what you're getting at
<Paradox> jrajav, i keep a copy of tower floating around for code reveiews, because its easy to see where and how much a file changed than one big diff
fserb has quit [Client Quit]
mneorr has quit [Remote host closed the connection]
darrenlooby has quit [Quit: Leaving]
<jrajav> eam: My main point is that it's totally possible to use newer alternatives to do the same things that emacs and vim are always touted for
cesario has quit [Quit: Connection closed for inactivity]
<DanBoy> sublime looks good
<eam> jrajav: that's quite a bit different than your initial statement that there is some fundamental paradigm shift which old timers can't keep up with
<eam> We can agree that both tools are useful
xaxisx has quit [Quit: xaxisx]
<jrajav> eam: They're still terminal-mode apps and that still limits them
<jrajav> And I do check out the GUI options for both occasionally, I haven't seen them keep up amazingly
<jrajav> Not that anyone would really want them, that's not what they're designed for
bbttxu has joined #ruby
tcopp has quit [Quit: Lost terminal]
becom33 has quit [Ping timeout: 244 seconds]
<jrajav> It's not like I can lay out a single concrete reason for you to value a native, GUI mode application and tight OS integration. But it's a valid concern when all else is equal
bosphorus has quit [Read error: Connection reset by peer]
becom33 has joined #ruby
<avtobiff> where did the method name() in test/unit in Test::Unit::TestCase go and how do i port usage of that from ruby 1.8 to ruby 1.9 ?
joshcheek has joined #ruby
joshcheek has quit [Client Quit]
chimkan___ has joined #ruby
<eph3meral> for the record, I don't hardly ever use vim, always gvim, so OS integration is moot, i've got drag'n'drop, clipboard and mouse support, also vim has fuzzy find as well: command-t, fuzzy find, etc
<eph3meral> nerdtree, command-t, about all I usually need
<eph3meral> ctags is pretty nice
Criztian has quit [Remote host closed the connection]
jonathanwallace has quit [Remote host closed the connection]
<eam> jrajav: that's why I was asking if the feature was "take hands off keyboard" -- I'm unaware of anything else the gui is good for (and it's much worse UI overall, once you spend some time learning)
<eam> you'll forgive me if I don't agree it's a valid concern, in the absense of any material rationale
ZachBeta has joined #ruby
xaq has quit [Remote host closed the connection]
gvz has quit [Quit: Leaving]
chimkan has quit [Ping timeout: 244 seconds]
chimkan___ is now known as chimkan
jstarcher has quit [Quit: leaving]
xaq has joined #ruby
heftig has quit [Quit: leaving]
Chryson has joined #ruby
heftig has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
youdonotexist has joined #ruby
fserb has joined #ruby
bbttxu has quit [Quit: bbttxu]
maccosmo_ has joined #ruby
<DanBoy> anyone wanna comment
<DanBoy> The Ruby Way vs Ruby Cookbook
macmartine has quit [Quit: macmartine]
andrewhl has quit [Remote host closed the connection]
<Tasser> google wars!
maccosmo has quit [Ping timeout: 252 seconds]
maccosmo_ is now known as maccosmo
RudyValencia has joined #ruby
davidpk has quit [Ping timeout: 252 seconds]
robdodson has joined #ruby
uris has quit [Quit: leaving]
chimkan_ has joined #ruby
chimkan has quit [Read error: Connection reset by peer]
chimkan_ is now known as chimkan
dotnull has quit [Remote host closed the connection]
kevinbond has joined #ruby
davidpk has joined #ruby
xaq has quit [Remote host closed the connection]
luxurymode has quit [Quit: Computer has gone to sleep.]
khakimov has joined #ruby
itnomad has joined #ruby
kevinbond has quit [Client Quit]
benson has joined #ruby
jrist is now known as jrist-afk
blacktulip has quit [Remote host closed the connection]
king313 has quit [Quit: .]
<benson> can variable names not end in question marks? I want to assign a lambda to a variable with a name that ends in a question mark and I'm getting an error
<samuelkadolph> benson: Nope, only method names can end in ! or ?
mxweas_ has quit [Quit: Computer has gone to sleep.]
<benson> samuelkadolph: thanks. that's too bad
jonathanwallace has joined #ruby
bbttxu has joined #ruby
kevinbond has joined #ruby
kevinbond has quit [Client Quit]
davidpk has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
davidpk has joined #ruby
S1kx has quit [Read error: Connection reset by peer]
S1kx has joined #ruby
S1kx has joined #ruby
joshman_ has quit [Quit: Computer has gone to sleep.]
cscribble_ is now known as cscribble
zinjacoder has quit [Remote host closed the connection]
<CannedCorn> guys why is the default external encoding in windows ibm437
<CannedCorn> that doesn't make sense
<eph3meral> why are you using windows?
<eph3meral> that doesn't make sense
<eph3meral> :P
<eam> CannedCorn: why not?
<CannedCorn> i have to test in windows
<CannedCorn> guy is reading a files
<CannedCorn> and saying the encoding is all whack
kevinbond has joined #ruby
<eam> CannedCorn: what do you expect?
<epochwolf> CannedCorn: where is the encoding screwy? In the command prompt?
<werdnativ> I'm prepping a staging environment, my asset pipeline is not precompiling js or css. I see only images. Any ideas?
<socomm> CannedCorn: Control Panel->Region and Language
<werdnativ> sorry, should be a #ror question...
kirun has quit [Quit: Client exiting]
<epochwolf> werdnativ: I think you should be asking in #rubyonrails
<werdnativ> ya, wrong channel, thanks.
<CannedCorn> ok nice socomm and eph3meral
<CannedCorn> err epochwolf
<CannedCorn> one sec
billiamii has joined #ruby
<epochwolf> CannedCorn: unless you explicit set the encoding, ruby will set it from the environment it's run in.
mikeg has joined #ruby
kevinbond has quit [Client Quit]
fserb has quit [Quit: ttyl]
ZachBeta has quit [Quit: Computer has gone to sleep.]
Vert has joined #ruby
<the_jeebster> what's the best approach to check if all values of a hash are nil?
xaq has joined #ruby
nari has joined #ruby
<the_jeebster> iterate through the hash.values method? eavh_value method?
tayy has joined #ruby
<CannedCorn> ok epochwolf
crankycoder has joined #ruby
yannis has joined #ruby
bambanx has joined #ruby
<bambanx> hi
liluo has joined #ruby
seanstickle has joined #ruby
kmlawson has joined #ruby
wmoxam has quit [Ping timeout: 244 seconds]
liluo has quit [Remote host closed the connection]
<tommylommykins> the_jeebster: some_hash.each_value.all? &:nil?
dev_ has quit [Ping timeout: 245 seconds]
bambanx has quit [Read error: Connection reset by peer]
td123 has quit [Quit: WeeChat 0.3.8]
rmascarenhas has joined #ruby
redgetan has joined #ruby
kmlawson has quit [Quit: Linkinus is updating...]
youdonotexist has quit [Read error: Operation timed out]
kmlawson has joined #ruby
zinjacoder has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
mxweas_ has joined #ruby
Vainoharhainen has quit [Quit: Leaving...]
mattwildig has joined #ruby
niku4i has quit [Remote host closed the connection]
itnomad has quit [Quit: Leaving]
kmlawson has quit [Quit: Bye!]
<the_jeebster> tommylommykins: what's the name of the &: operator?
<tommylommykins> & converts something to a proc
<tommylommykins> so it takes the symbol :nil?
awarner has quit [Remote host closed the connection]
<tommylommykins> and converts it into something like {|thing| thing.nil?}
cbuxton1 has quit [Quit: Leaving.]
<the_jeebster> ah cool, thanks
<tommylommykins> hmm, I think technically I didn't explain it quite right
<tommylommykins> google 'Ruby Unary Ampersand' for better explanations :)
<the_jeebster> I don't quite understand the all? on each_value
<the_jeebster> is that a proc that iterates through each value as well?
kenperkins has quit [Ping timeout: 252 seconds]
<tommylommykins> hmm
<the_jeebster> I see, thanks
xaq has quit [Remote host closed the connection]
<tommylommykins> In this case, a block was not supplied to each_value
<tommylommykins> so all? is called on an enumerator
jedmtnman has quit [Quit: Leaving.]