apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste >3 lines of text on gist.github.com || Rails is in #rubyonrails || Log: http://irclog.whitequark.org/ruby
banisterfiend has quit [Ping timeout: 244 seconds]
nari has quit [Ping timeout: 249 seconds]
shadoi has quit [Quit: Leaving.]
wpaulson has joined #ruby
sepp2k has quit [Remote host closed the connection]
mohits has joined #ruby
mdszy has joined #ruby
qko_ has quit [Read error: Connection reset by peer]
qko has joined #ruby
luckman212_ has joined #ruby
thomasfedb has quit [Ping timeout: 272 seconds]
bfgun has quit [Ping timeout: 255 seconds]
thomasfedb has joined #ruby
mohits has quit [Read error: Connection reset by peer]
luckman212 has quit [Ping timeout: 248 seconds]
qko has quit [Ping timeout: 240 seconds]
ZachBeta has joined #ruby
qko has joined #ruby
yugui_zzz is now known as yugui
luckman212_ has quit [Remote host closed the connection]
kevinbond has joined #ruby
stewart_ has joined #ruby
banisterfiend has joined #ruby
alexch has quit [Read error: Connection reset by peer]
keyvan has quit [Excess Flood]
dhruvasagar has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
alexch has joined #ruby
bfgun has joined #ruby
alexch has quit [Read error: Connection reset by peer]
krisfields has joined #ruby
alexch has joined #ruby
keyvan has joined #ruby
wpaulson_ has joined #ruby
jsilver has joined #ruby
pdtpatrick_ has quit [Quit: pdtpatrick_]
tewecske has quit [Quit: Leaving.]
wpaulson has quit [Ping timeout: 264 seconds]
wpaulson_ is now known as wpaulson
alexch has quit [Read error: Connection reset by peer]
yy has joined #ruby
Spooner has quit [Ping timeout: 252 seconds]
Foxandxss has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
thone has quit [Read error: Operation timed out]
hunglin has joined #ruby
patient has quit [Quit: leaving]
kevinbond has quit [Quit: kevinbond]
stewart_ has quit [Read error: Connection reset by peer]
<krisfields> Hello
<seanstickle> Oy
LifeSF has quit [Ping timeout: 245 seconds]
LifeSF has joined #ruby
banisterfiend has quit [Ping timeout: 248 seconds]
h4mz1d has joined #ruby
cdepue has quit [Remote host closed the connection]
minijupe has quit [Quit: minijupe]
robert_ has quit [Read error: Connection reset by peer]
umttumt has joined #ruby
stewart_ has joined #ruby
ryanf has joined #ruby
BrokenCog has quit [Read error: Connection reset by peer]
BrokenCog has joined #ruby
stewart_ has quit [Read error: Connection reset by peer]
ramblex has quit [Quit: ramblex]
krisfields has quit [Remote host closed the connection]
keyvan has quit [Changing host]
keyvan has joined #ruby
h4mz1d has quit [Ping timeout: 244 seconds]
Tricks has joined #ruby
yannis has quit [Quit: yannis]
stewart_ has joined #ruby
cousine has quit [Remote host closed the connection]
lockweel has quit [Ping timeout: 245 seconds]
learc83 has quit [Quit: learc83]
c0rn_ has quit [Ping timeout: 264 seconds]
mohits has joined #ruby
mohits has joined #ruby
c0rn_ has joined #ruby
cantonic_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
wargasm has joined #ruby
cantonic has quit [Ping timeout: 265 seconds]
cantonic_ is now known as cantonic
eph3meral has quit [Quit: Leaving]
c0rn_ has quit [Ping timeout: 240 seconds]
wallerdev has quit [Client Quit]
wallerdev has joined #ruby
pk1001100011 has quit [Ping timeout: 244 seconds]
c0rn_ has joined #ruby
LifeSF has quit [Ping timeout: 248 seconds]
neohunter has joined #ruby
neohunter has left #ruby [#ruby]
minijupe has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
dhruvasagar has quit [Read error: Connection reset by peer]
kvirani has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
mohits has quit [Read error: Connection reset by peer]
kvirani has joined #ruby
akem has quit [Quit: Forget progress by proxy. Land on your own moon.]
dsa is now known as EzeQL
<rking> Hrm. gem install unroller && ruby -runroller -e 1 # gives me a facets/methodspace (LoadError). I wonder what's up.
<rking> I can fix that part by changing it to require facets/module/method_space, but then the next line fails (require 'facets/kernel/populate') which doesn't seem to be a valid facet thinger.
<rking> I suppose I'll try using the debugger's tracing.
<rking> But unroller really seemed to have some good facilities, e.g. a smartish list of Rails methods to skip tracing for.
Synthead has quit [Read error: Connection reset by peer]
JustinCampbell has quit [Remote host closed the connection]
tamaska has joined #ruby
choffstein has joined #ruby
d3c has quit [Quit: Sleep]
L-----D has joined #ruby
rubots has joined #ruby
wpaulson has joined #ruby
gh has joined #ruby
maletor has joined #ruby
maletor has quit [Client Quit]
Hanmac has quit [Ping timeout: 255 seconds]
gh has quit [Client Quit]
verto is now known as verto|off
mikeycgto has quit [Ping timeout: 264 seconds]
robozahn1 has joined #ruby
robozahn2 has joined #ruby
twock has quit [Quit: Lost terminal]
robozahn_ has quit [Ping timeout: 265 seconds]
robozahn has quit [Ping timeout: 265 seconds]
sleetdrop has joined #ruby
Corey has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
tdubz has joined #ruby
nari has joined #ruby
fumbe has joined #ruby
mikeycgto has joined #ruby
mikeycgto has quit [Changing host]
mikeycgto has joined #ruby
Hanmac has joined #ruby
<ryanf> I think facets has had a pretty unstable api over time, it might be written against a different version than the one you have
<rking> Yeah, seem sso.
<rking> s/ s/s
noganex has quit [Read error: Operation timed out]
sonkei has quit [Ping timeout: 248 seconds]
noganex has joined #ruby
<rking> The thing that puzzles me is that it seems to have been like this for quite a while. Surely people are using unroller.
justaguest has joined #ruby
xbayrockx has quit [Ping timeout: 265 seconds]
<ryanf> oh no wonder
<ryanf> its facets dep is >=
<ryanf> and a new version hasn't come out since 2009
<ryanf> try running it with facets 2.4.1, since that's the one in the gemspec
xbayrockx has joined #ruby
davidpk has joined #ruby
dhruvasagar has quit [Ping timeout: 244 seconds]
dhruvasagar has joined #ruby
igotnolegs has joined #ruby
* mdszy loves doing code-golfy stuff in Ruby
<rking> ryanf: Oh wow. I was marching downwards minor version at a time. =) Thanks for letting me know it's that far back.
_br_ has quit [Excess Flood]
<mdszy> like in this test I'm writing, I wanted to print the value I'm asserting and test it against another
<mdszy> p((a=[topic.parse_infix("1 + 3 * 5"), %w(1 3 5 * +)])[0])==a[1]
<rking> ryanf: Where are you even seeing the gemspec for unroller?
<rking> ryanf: It's not in my …gems/unroller-1.0.0 dir.
sleetdrop has quit []
_br_ has joined #ruby
<mdszy> whoops, sorry for invading a coversation D:
<ryanf> rking: I just looked at http://rubygems.org/gems/unroller
_br_ has quit [Excess Flood]
<rking> ryanf: Ahh, thanks.
<rking> mdszy: Don't apologize for the interruption. Apologize for the golfing. >=\
<mdszy> XD
<mdszy> rking: I program for fun, and golf is fun for me!
<rking> mdszy: You don't have to p() when you can assert_equals(), btw. =P
<mdszy> rking: I know, but this testing framework doesn't print out values if it fails, and I needed to!
<rking> (But mashing multiple concepts into one statement precludes that)
zodiac1111 has joined #ruby
<rking> mdszy: THAT IS A FAIL FRAMEWORK.
<rking> I can write a better framework in under 10 seconds.
<mdszy> XD
<rking> def assert_equals a, b; if a != b; puts "#{a.inspect} != #{b.inspect}" end end
<rking> Took 20 seconds.
_br_ has joined #ruby
seanstickle has quit [Quit: Nihil sub sole novum]
<mdszy> I like this framework, and I decided to screw around by writing a fun golfy thing
* rking shruggles. That behavior is not something I'd consider tolerating.
<rking> Might as well output, "Code's broke." and nothing else.
dv310p3r has joined #ruby
<rking> RSpec coughs up all the info. Expected, Actual, plus the backtrace and a snippet of the test code.
<mdszy> I don't want to use Rspec. I want to use this. It works fine for me. And I'm not crazy about a framework doing EVERYTHING for me.
<mdszy> It's just fine if there's a minor caveat to a framework. It's not like I'm doing this and getting paid for it, or doing it with a bunch of other people where everyone has to agree on what to use or soemthing.
<rking> mdszy: I'm curious what the framework does that you like?
<rking> ryanf: Hrm. Even with facets 2.4.1 exactly it fails (though this time with a different error message).
<mdszy> rking: It works. It's simple.
akem has joined #ruby
akem has joined #ruby
<mdszy> it's Riot, by the way
ctwiz has joined #ruby
ctwiz has quit [Client Quit]
Horofox has quit [Quit: horofox]
dhruvasagar has quit [Read error: Connection reset by peer]
fumbe has quit [Quit: Leaving]
<mdszy> rking: I just like doing things myself sometimes, and only when I need to. I almost never need my testing framework to print the values of what went wrong. When I do, I can just add it in myself.
dhruvasagar has joined #ruby
<rking> mdszy: Actually does look cool, but I can't believe the asserts(:first).equals("cookies") stuff wouldn't show what .first's actual value was.
lkba has quit [Ping timeout: 264 seconds]
<mdszy> rking: well, ask the programmer of the framework that. I don't know his reasoning. I just know that it works perfectly for me. And if you have a solution that works for you, more power to you.
dv310p3r has quit [Ping timeout: 246 seconds]
niklasb has quit [Read error: Operation timed out]
ryanf has quit [Ping timeout: 246 seconds]
itnomad has joined #ruby
<rking> mdszy: Looking at the code, assert().equals should be calling: fail expected_message(expected).not(actual), which seems to pass the `expected` contents all the way into Message#method_missing where it gets inspected.
<mdszy> rking: Okay?
<rking> mdszy: I just ran its tests, and this passed: + asserts :fail with message when block expectation not met is equal to [:fail, "expected \"bar\", not \"foo\""]
codezombie has quit [Quit: Linkinus - http://linkinus.com]
cakehero has joined #ruby
Azure has quit [Ping timeout: 250 seconds]
banisterfiend has joined #ruby
<mdszy> rking: Wow, I feel silly now. Turns out I was using this thing wrong the whole time.
<rking> K. =)
keppy has joined #ruby
<mdszy> rking: Well, thank you for helping me find that error!
<rking> Np. =)
niklasb has joined #ruby
Horofox has joined #ruby
Guest83274 has quit [Ping timeout: 244 seconds]
Guest40367 has joined #ruby
Azure has joined #ruby
Azure is now known as Guest47146
Horofox has quit [Client Quit]
<mdszy> also, is it bad that I use make for ruby stuff instead of rake? XD
c0rn_ has quit [Quit: Computer has gone to sleep.]
<ghanima> is there a way an ruby if I want to search for a search value in a has and do something like hash.value?("string") it returns the key associated with just that value
mockra has joined #ruby
lkba has joined #ruby
rubots has left #ruby [#ruby]
Guest47146 has quit [Ping timeout: 248 seconds]
<banisterfiend> ghanima: use find
Fezzler has joined #ruby
popl has quit [Quit: "If you understand what you're doing, you're not learning anything." ~ Anon]
Horofox has joined #ruby
justaguest has left #ruby [#ruby]
nazty has joined #ruby
choffstein has quit [Remote host closed the connection]
Progster has joined #ruby
ryanf has joined #ruby
RainbowDashh has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
radic_ is now known as radic
Whoop has quit [Read error: Connection reset by peer]
stefanp has joined #ruby
stefanp has quit [Changing host]
stefanp has joined #ruby
strnx has quit [Excess Flood]
stefanp_ has quit [Ping timeout: 265 seconds]
strnx has joined #ruby
rking has quit [Remote host closed the connection]
rking has joined #ruby
derekv has left #ruby [#ruby]
RainbowDashh has quit [Remote host closed the connection]
Fezzler has quit [Quit: Leaving]
RainbowDashh has joined #ruby
mockra has quit [Remote host closed the connection]
tamaska has quit [Quit: Heaven isn't a place, it's being with people who love you.]
manizzle has joined #ruby
BrokenCog has quit [Ping timeout: 246 seconds]
mdhopkins has joined #ruby
hunglin has quit [Quit: Leaving.]
zodiac1111 has quit [Quit: 离开]
mikeycgto has quit [Remote host closed the connection]
Azure|dc has joined #ruby
mockra has joined #ruby
jarred_ has joined #ruby
jarred has quit [Ping timeout: 240 seconds]
jarred_ is now known as jarred
mockra has quit [Remote host closed the connection]
Azure|dc is now known as Azure
rrradical has joined #ruby
daniellutz has joined #ruby
<rrradical> I wrote and compiled an extension using rice. I'm on OSX, so I have a 'name.bundle' file. I try to run "require 'name'" from irb but it says it "no such file to load -- name".
wpaulson has joined #ruby
<mdszy> rrradical: is in in the load path?
ryanf has quit [Quit: leaving]
<rrradical> oh, it's in my current directory. I assumed it would check there
<mdszy> yeah, it doesn't by default
<rrradical> thanks!
<mdszy> no problem!
<mdszy> rrradical: personally, I use: $: << File.expand_path(File.join(File.dirname(__FILE__),))
<mdszy> which adds the directory the current file is in to the load path (which can be represented by $LOAD_PATH or $:)
<rrradical> I see, that works great.
<mdszy> Awesome!
wpaulson has quit [Client Quit]
chico_chicote has quit [Remote host closed the connection]
Tony_Sidaway has joined #ruby
chico_chicote has joined #ruby
apok has joined #ruby
jarred_ has joined #ruby
jarred has quit [Ping timeout: 255 seconds]
jarred_ is now known as jarred
banisterfiend has quit [Ping timeout: 252 seconds]
otters has quit [Remote host closed the connection]
Horofox has quit [Quit: horofox]
daniellutz has quit [Read error: Connection reset by peer]
daniellutz has joined #ruby
daniellutz has quit [Read error: Connection reset by peer]
daniellutz has joined #ruby
mdszy has quit [Quit: nini]
savage- has joined #ruby
kevinbond has joined #ruby
subbyyy has quit [Quit: Leaving.]
ZachBeta has quit [Quit: Computer has gone to sleep.]
subbyyy has joined #ruby
subbyyy has quit [Max SendQ exceeded]
RainbowDashh has quit [Disconnected by services]
sonkei has joined #ruby
RainbowDashh has joined #ruby
kevinbond has quit [Quit: kevinbond]
davidpk has quit [Quit: Computer has gone to sleep.]
banisterfiend` has joined #ruby
pdtpatrick_ has joined #ruby
subbyyy has joined #ruby
minijupe has quit [Quit: minijupe]
otters has joined #ruby
kvirani has quit [Remote host closed the connection]
bradhe_ has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
bradhe has quit [Ping timeout: 244 seconds]
Synthead has joined #ruby
L-----D has quit [Ping timeout: 240 seconds]
ttilley_off is now known as ttilley
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
mohits has joined #ruby
andrewhl has quit [Remote host closed the connection]
mdhopkins has quit [Quit: mdhopkins]
offby1 is now known as offby
offby is now known as offby2
offby2 is now known as offby1
gh has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
Beoran__ has quit [Ping timeout: 264 seconds]
Progster has quit [Ping timeout: 252 seconds]
fumbe has joined #ruby
ghanima has quit [Quit: Leaving.]
LBRapid has joined #ruby
stewart_ has quit [Quit: Leaving.]
pos1x has joined #ruby
daniel_hinojosa has joined #ruby
stewart_ has joined #ruby
yoklov has joined #ruby
nwest has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
mdhopkins has joined #ruby
brianpWins has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby
nilg has joined #ruby
Beoran__ has joined #ruby
keppy has quit [Remote host closed the connection]
igotnolegs has quit [Quit: Fire walk with me]
gh has quit [Quit: gh]
bbttxu has joined #ruby
emmanuelux has quit [Read error: Operation timed out]
moshee has quit [Ping timeout: 244 seconds]
bradhe has joined #ruby
moshee has joined #ruby
bradhe_ has quit [Ping timeout: 265 seconds]
LBRapid has quit [Quit: Computer has gone to sleep.]
andrewhl has joined #ruby
niklasb has quit [Ping timeout: 264 seconds]
RainbowDashh has quit [Quit: SLEEP MODE. I NEED A MORE CREATIVE MESSAGE FOR MY DUMB LID CLOSING.]
ananthakumaran has joined #ruby
uris has quit [Quit: leaving]
LBRapid has joined #ruby
LBRapid has quit [Client Quit]
jarred has quit [Quit: jarred]
jarred_ has joined #ruby
davidpk has joined #ruby
Chryson has quit [Quit: Leaving]
cantonic has quit [Quit: cantonic]
robbyoconnor has quit [Read error: Connection reset by peer]
octarine has left #ruby [#ruby]
daniellutz has quit [Ping timeout: 255 seconds]
bglusman has quit [Remote host closed the connection]
slyfunky has left #ruby [#ruby]
bradhe has quit [Remote host closed the connection]
oscardelben has quit [Quit: oscardelben]
justsee has joined #ruby
zodiac1111 has joined #ruby
Tony_Sidaway has quit [Quit: Reality intrudes]
mohits has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
Juul has joined #ruby
itnomad has quit [Quit: Leaving]
popl has joined #ruby
mohits has joined #ruby
h4mz1d has joined #ruby
RainbowDashh has joined #ruby
bfgun has left #ruby ["Leaving"]
pdtpatrick_ has quit [Quit: pdtpatrick_]
noyb has joined #ruby
Shrink has joined #ruby
Shrink has quit [Changing host]
Shrink has joined #ruby
<jsilver> how do i chop some folders off of the front of a path.... without simple string manipulation
<jsilver> sorta like #basename prefix
<jsilver> but but with prefix not suffix
k_89 has joined #ruby
zommi has joined #ruby
mucker has joined #ruby
anothervenue has joined #ruby
robbyoconnor has joined #ruby
mathie has quit [Read error: Connection reset by peer]
pk1001100011 has joined #ruby
Natch has quit [K-Lined]
Eldariof-ru has joined #ruby
andrewhl has quit [Remote host closed the connection]
davejacobs has joined #ruby
davejacobs has quit [Client Quit]
wargasm has quit [Read error: Connection reset by peer]
igotnolegs has joined #ruby
lolmaus has joined #ruby
ananthakumaran1 has joined #ruby
mdpatrick has quit [Quit: mdpatrick]
jarred_ has quit [Quit: jarred_]
burgestrand has quit [Quit: Leaving.]
krisfields has joined #ruby
jarred has joined #ruby
ananthakumaran has quit [Ping timeout: 244 seconds]
quest88 has quit [Quit: quest88]
nazty has quit [Quit: WeeChat 0.3.7]
Berglund has quit [Quit: Computer died.]
daniel_hinojosa has quit [Ping timeout: 248 seconds]
Juul has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Ping timeout: 255 seconds]
<krisfields> quit
justsee is now known as justsee|away
krisfields has quit [Remote host closed the connection]
nazty has joined #ruby
tdubz_ has joined #ruby
Corey_ has joined #ruby
h4mz1d has quit [Ping timeout: 246 seconds]
justsee|away is now known as justsee
yxhuvud has joined #ruby
tdubz has quit [Ping timeout: 615 seconds]
Corey has quit [Ping timeout: 624 seconds]
pos1x has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
RainbowDashh has quit [Quit: SLEEP MODE. I NEED A MORE CREATIVE MESSAGE FOR MY DUMB LID CLOSING.]
joshcheek has joined #ruby
yoklov has quit [Quit: computer sleeping]
Corey_ is now known as Corey
td123 has quit [Read error: Operation timed out]
bglusman has joined #ruby
anothervenue has quit [Quit: WeeChat 0.3.7]
anothervenue has joined #ruby
RainbowDashh has joined #ruby
Eldariof-ru has quit []
khakimov has quit [Quit: Computer has gone to sleep.]
noyb has quit [Ping timeout: 250 seconds]
bglusman has quit [Ping timeout: 245 seconds]
tagrudev has joined #ruby
chico_chicote has quit [Ping timeout: 264 seconds]
jsilver has quit [Remote host closed the connection]
perry is now known as perryh_away
jimeh3 has joined #ruby
nazty has quit [Quit: WeeChat 0.3.7]
Ontolog has joined #ruby
perryh_away is now known as perryh
davidpk has quit [Quit: Computer has gone to sleep.]
davidpk has joined #ruby
umttumt has quit [Remote host closed the connection]
bradhe has joined #ruby
williamcotton_ has quit [Quit: williamcotton_]
apok has quit [Quit: apok]
rakm has quit [Ping timeout: 252 seconds]
timonv has quit [Remote host closed the connection]
RainbowDashh has quit [Remote host closed the connection]
Targen has quit [Ping timeout: 255 seconds]
jprovazn_away is now known as jprovazn
rakm has joined #ruby
wargasm has joined #ruby
justsee is now known as justsee|away
jimeh3 has quit [Quit: bye]
g_rotbart has joined #ruby
apeiros_ has joined #ruby
fantazo has quit [Remote host closed the connection]
workmad3 has joined #ruby
justsee|away is now known as justsee
digitalcakestudi has quit [Ping timeout: 245 seconds]
Rochefort has joined #ruby
<banisterfiend`> talk people
<banisterfiend`> this silence is deafening
tonini has joined #ruby
_md has joined #ruby
popl has quit [Quit: "If you understand what you're doing, you're not learning anything." ~ Anon]
stefanp has quit [Quit: Leaving...]
stefanp has joined #ruby
stefanp has quit [Changing host]
stefanp has joined #ruby
Morkel has joined #ruby
rekenerd has joined #ruby
savage- has quit [Remote host closed the connection]
anothervenue has quit [Quit: WeeChat 0.3.7]
rekenerd has quit [Quit: Leaving]
TPFC-SYSTEM has joined #ruby
rekenerd has joined #ruby
Ionic` has quit [Ping timeout: 245 seconds]
zommi has quit [Remote host closed the connection]
elliottcable is now known as elliottcable^
Berglund has joined #ruby
Natch has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
ryanf has joined #ruby
elhu has joined #ruby
rekenerd has quit [Quit: Leaving]
elhu has quit [Client Quit]
rekenerd has joined #ruby
elliottcable^ is now known as elliottcable
schaerli has joined #ruby
rrradical has quit [Read error: Connection reset by peer]
RudyValencia has quit [Read error: Connection reset by peer]
Berglund has quit [Quit: Computer died.]
bigkevmcd has joined #ruby
RudyValencia has joined #ruby
zz_chrismcg is now known as chrismcg
bbttxu has quit [Read error: Connection reset by peer]
bbttxu has joined #ruby
chson has quit [Read error: Connection reset by peer]
Seus has quit [Read error: Connection reset by peer]
AlbireoX` has quit [Read error: Connection reset by peer]
chson has joined #ruby
elhu has joined #ruby
Seus has joined #ruby
hoelzro|away is now known as hoelzro
AlbireoX` has joined #ruby
kstephens has quit [Ping timeout: 264 seconds]
devdazed has quit [Ping timeout: 264 seconds]
<bradhe> I'm writing a native extension ruby against MRI. What's the best way to keep a native pointer with a class? i.e. is there a way to wrap a pointer in a VALUE?
fumbe has quit [Ping timeout: 264 seconds]
<hoelzro> bradhe: I think that the extension README has an example for that
<bradhe> hmm I didn't see anything, but I'll take a look again
<Mon_Ouie> Yeah, see the Data_Wrap_Struct macro
rekenerd has quit [Ping timeout: 264 seconds]
<hoelzro> that's an example from a module of mine
opus has joined #ruby
adeponte has joined #ruby
xorspark has quit [Ping timeout: 264 seconds]
devdazed has joined #ruby
kstephens has joined #ruby
fumbe has joined #ruby
sam113101 has quit [Ping timeout: 264 seconds]
<bradhe> hoelzro: is Data_Make_Struct yours?
<hoelzro> no
<banisterfiend`> bradhe: yeah................it's his.
<hoelzro> banisterfiend`: ?
<bradhe> huhu
rekenerd has joined #ruby
igotnolegs has quit [Quit: Computer has gone to sleep.]
savage- has joined #ruby
xorspark has joined #ruby
keymone has joined #ruby
Eldariof-ru has joined #ruby
graspee has joined #ruby
<bradhe> crazy
davidpk has quit [Quit: Computer has gone to sleep.]
d-snp has quit [Ping timeout: 245 seconds]
itz has quit [Ping timeout: 245 seconds]
itz has joined #ruby
d-snp has joined #ruby
wobr has joined #ruby
dhruvasagar has joined #ruby
dpwright has joined #ruby
Whoop has joined #ruby
Whoop has joined #ruby
Whoop has quit [Changing host]
<dpwright> Hello
blacktulip has joined #ruby
<dpwright> I'm looking for a way to send a message / call a callback in a running ruby script from outside (from another ruby script, or the command line, or whatever)
opus has quit []
<dpwright> I wonder if anyone could point me in the direction of the right API/documentation/search terms to find out how best to do that
<apeiros_> dpwright: that depends entirely on your definition of 'best'
<apeiros_> see TCPServer, Drb, Kernel#trap
<apeiros_> alternatively some queue, like zeromq
<dpwright> apeiros_, thanks, I'll take a look
<dpwright> drb looks like a possibility
[Neurotic] has quit [Quit: Leaving]
<dpwright> this is all on the same machine so setting up a socket and everything seemed like it might be overkill, but..
bradhe has quit [Remote host closed the connection]
<apeiros_> well, if all you have to do is "ping" the script, then sending a signal (Kernel#trap) would probably be the most lightweight.
freeayu has joined #ruby
<apeiros_> but as I said - depends on your definition of "best" (and "best" is a horrible requirement description)
mdhopkins has quit [Quit: mdhopkins]
<dpwright> heh
<dpwright> yeah, and possibly misleading in this case -- it doesn't actually need to be that good :p
<dpwright> it's a little tool for my own use, so I'd favour simplicity over robustness
<dpwright> I do need to pass a string in, though, so I don't think Kernel#trap will do
rekenerd has quit [Quit: Leaving]
schovi has joined #ruby
abra has quit [Ping timeout: 246 seconds]
abra has joined #ruby
subbyyy has quit [Quit: Leaving.]
baphled has quit [Ping timeout: 240 seconds]
<apeiros_> dpwright: well, you can write to a file, ping the process and the process reads the file. and there we're right back at 'best' :-p
bosphorus has joined #ruby
_md has quit [Quit: Leaving...]
bradhe has joined #ruby
<dpwright> apeiros_, heh, the thought had occurred ;-)
robotmay has joined #ruby
<dpwright> thanks for the pointers, I'll take a look at them and decide which is best - er, I mean, most appropriate
jsilver has joined #ruby
jarred has quit [Quit: jarred]
AlbireoX` has quit [Remote host closed the connection]
timonv has joined #ruby
adamkittelson has quit [Remote host closed the connection]
ryanf has quit [Quit: leaving]
jimeh has joined #ruby
gilead has joined #ruby
arturaz has joined #ruby
berkes has joined #ruby
roolo has joined #ruby
etehtsea has joined #ruby
Ontolog has quit [Ping timeout: 245 seconds]
thesis has joined #ruby
thesis has quit [Client Quit]
cherrypeel has quit [Quit: Leaving]
S1kx has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
S1kx has joined #ruby
roolo has quit [Quit: Leaving...]
dekroning has joined #ruby
schickung has joined #ruby
undersc0re has quit [Quit: *poof*]
yannis has joined #ruby
yannis has quit [Client Quit]
Ethan has joined #ruby
perryh is now known as perryh_away
robozahn2 has quit [Ping timeout: 265 seconds]
robozahn1 has quit [Ping timeout: 265 seconds]
Criztian has joined #ruby
d3vic3 has joined #ruby
Guest16542 has joined #ruby
joshcheek has quit [Quit: joshcheek]
zommi has joined #ruby
marlun has joined #ruby
savage- has quit [Remote host closed the connection]
roolo has joined #ruby
schickung has quit [Quit: schickung]
<marlun> How do I update a specific ruby gem? If I for example have installed vimgolf which is a ruby gem, how do I make sure it's updated to the latest version?
ephemerian has joined #ruby
gtuckerkellogg has joined #ruby
yonggu_ has quit [Remote host closed the connection]
Ddesign has joined #ruby
arturaz has quit [Remote host closed the connection]
arturaz has joined #ruby
tdubz_ is now known as thomas
ABK has joined #ruby
bier|tp has quit [Read error: Operation timed out]
bier has quit [Ping timeout: 264 seconds]
Criztian has quit [Ping timeout: 245 seconds]
Ddesign has quit [Quit: ChatZilla 0.9.88.2 [Firefox 13.0.1/20120614114901]]
adeponte has quit [Remote host closed the connection]
berserkr has joined #ruby
freeayu has quit [Ping timeout: 255 seconds]
mucker has quit [Ping timeout: 252 seconds]
mmokrysz has joined #ruby
mmokrysz has left #ruby [#ruby]
<thomasfedb> marienz, gem update vimgolf
maasha has joined #ruby
<marlun> thomasfedb: thanks, thought it would be that easy but couldn't find any clear info about it.
cezar has joined #ruby
<thomasfedb> marlun, it's in the `gem help commands` output
justsee is now known as justsee|away
dankest has quit [Quit: Leaving...]
cezar has quit [Client Quit]
freeayu has joined #ruby
<maasha> why is this not upcasing the middle letters in s?: s = "foobar"; s[2 .. 3].upcase!
<fowl> maahes, s[2..3] is a new string
robozahn has joined #ruby
<maasha> so how?
<fowl> well
<fowl> you have this new string that is "ob" then you upcase! it, making it "OB"
<fowl> meanwhile, s is the same because you didnt alter it, you just copied from it
<maasha> sure. So I must do s = "foobar"; s[2 .. 3] = s[2 ..3].upcase ?
d3vic3 has quit [Quit: leaving]
d3vic3 has joined #ruby
bier has joined #ruby
bier|tp has joined #ruby
robozahn_ has joined #ruby
mengu has joined #ruby
<fowl> maasha, yes, or use gsub or something
<ABK> s[1..2].collect{|a| a.upcase}
<ABK> s[2..3].upcase would fail that's a string method
<fowl> no, s[1..2].collect would fail because there is no string#collect
<fowl> share some weed with me
<maasha> ok, ty
workmad3 has joined #ruby
schovi has quit [Remote host closed the connection]
<ABK> s[1..2] would be an array splice
<ABK> s[1] would be a string
<fowl> oh, it couldn't be a string string slice
<fowl> because string#[range] doesnt work right
<fowl> ABK, you need to refresh yourself http://ruby-doc.org/core-1.9.3/String.html
<ABK> oooops, I think I'm high
schovi has joined #ruby
ZachBeta has joined #ruby
<fowl> i said share your weed bro
<fowl> :(
lkba has quit [Ping timeout: 264 seconds]
<ABK> :) didn't see s = "foobar"; at all
tatsuya_o has joined #ruby
<ABK> pre-assumed 's'
<ABK> misssstake
<jsilver> im smokin purple rubies; they burnin' mah chest
D4T has joined #ruby
m4rtijn has joined #ruby
<m4rtijn> hi all
<m4rtijn> i have a encoding problem in ruby 1.9.3 -- I m using Mikel Mail Module... trying to get all content converted to UTF-8 ..
jsilver has quit [Remote host closed the connection]
<m4rtijn> problem is, that the quoted-printable does not play well.. and somehow.. unpack("M*") or M returns [""]
hemanth has joined #ruby
ramblex has joined #ruby
robozahn_ has quit [Read error: Connection reset by peer]
robozahn has quit [Read error: Connection reset by peer]
marlun has left #ruby [#ruby]
robozahn has joined #ruby
nari has quit [Ping timeout: 245 seconds]
baphled has joined #ruby
robozahn_ has joined #ruby
robozahn1 has joined #ruby
robozahn has quit [Ping timeout: 265 seconds]
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
stewart_ has quit [Read error: Connection reset by peer]
cousine has joined #ruby
nari has joined #ruby
psmolen has quit [Ping timeout: 265 seconds]
UNIXgod has quit [Ping timeout: 246 seconds]
ramblex has quit [Quit: ramblex]
justsee|away is now known as justsee
gilead has quit [Remote host closed the connection]
psmolen has joined #ruby
piotr has joined #ruby
UNIXgod has joined #ruby
bj0ern has joined #ruby
schickung has joined #ruby
Rochefort has quit [Remote host closed the connection]
sspiff has joined #ruby
sspiff has quit [Changing host]
sspiff has joined #ruby
stewart_ has joined #ruby
fermion has joined #ruby
Guest16542 is now known as davidw
davidw has quit [Changing host]
davidw has joined #ruby
cousine_ has joined #ruby
cousine has quit [Ping timeout: 240 seconds]
Spooner has joined #ruby
flype has joined #ruby
sepp2k has joined #ruby
vlad_starkov has joined #ruby
freeayu has quit [Ping timeout: 256 seconds]
akem has quit [Ping timeout: 264 seconds]
tomask has joined #ruby
tomask has joined #ruby
justinmcp has joined #ruby
dpwright has left #ruby [#ruby]
ananthakumaran has joined #ruby
freeayu has joined #ruby
ananthakumaran1 has quit [Ping timeout: 248 seconds]
lockweel has joined #ruby
<csmrfx> m4rtijn: got solved?
lxsameer has joined #ruby
keymone has left #ruby [#ruby]
<banisterfiend`> csmrfx: hey :)
Jrz has joined #ruby
Jrz has quit [Client Quit]
<csmrfx> happy mondays banisterfiend`!
<banisterfiend`> csmrfx: monday 10pm here
<csmrfx> 1pm 'ere
<banisterfiend`> csmrfx: wanna trade?
lockweel has quit [Ping timeout: 246 seconds]
<csmrfx> nope, would get out of this at 4am tue, does not want!
<chiel> banisterfiend`: you live in australia or so?
charlies_ has joined #ruby
piotr has quit [Read error: Connection reset by peer]
<banisterfiend`> chiel: even further east, new zealand
ramblex has joined #ruby
ramblex has quit [Client Quit]
<chiel> banisterfiend`: oh nice. i really want to visit those countries at some point. :)
freeayu has quit [Ping timeout: 245 seconds]
<banisterfiend`> chiel: you 'murcan?
charlies_ is now known as charliesome2
<csmrfx> Mr. Banner is from New Salad!
vlad_starkov has quit [Remote host closed the connection]
<chiel> banisterfiend`: haha nah, i'm dutch
<chiel> but i live in the uk at the moment
piotr has joined #ruby
<banisterfiend`> oh ok
<chiel> at some point i want to move to the far east though
<chiel> seems really nice to live there
<kalleth> s/nice/cheap
tomask has quit [Quit: Quit]
freeayu has joined #ruby
gtuckerkellogg has joined #ruby
ramblex has joined #ruby
D4T has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
vlad_starkov has joined #ruby
<bnagy> not really sure NZ counts as the 'far east'
<banisterfiend`> bnagy: yeah lol we're the eastern-most country in tth eworld yet we claim we're western
<oddmunds> what?
<oddmunds> there are countries farther east, surely?
<oddmunds> that polynesian stuff?
<oddmunds> all those tiny island countries
<bnagy> maptime!
<banisterfiend`> oddmunds: no, we're further east
<banisterfiend`> i think there's a couple of really, really tiny little countries further east
<banisterfiend`> but they're basically protectorates of NZ anyway iirc
<oddmunds> oh
<bnagy> which is pertty embarassing, if you ask me
<csmrfx> They going to move to your place once they sing, Tuvalu, Fidji, what have you
<banisterfiend`> bnagy: at least our PM isn't female and ginger
<bnagy> :<
<bnagy> every time (which is very rarely) I see her on int'l news I cringe
<bnagy> oh well
<csmrfx> PMs PMS
<kalleth> banisterfiend`: depends where you draw the crossover line, or which projection you use ;)
nari has quit [Ping timeout: 245 seconds]
<oddmunds> nz stuck a bit further out into the pacific void than i imagined
<banisterfiend`> she nasty she nasty
<bnagy> oddmunds: the phrase 'middle of fucking nowhere' would be well applied
k_89 has quit [Ping timeout: 265 seconds]
<fowl> lol, protectorates of NZ
<fowl> imagine being protected by hobbits
bier has quit [Ping timeout: 240 seconds]
<bnagy> the uruk hai in the films were kiwis too
<chiel> bnagy: yeah, NZ isn't usually what you call the far east
<chiel> but in the scope of the world... :)
<bnagy> probably with less makeup :D
<banisterfiend`> bnagy: yeah, maoris
bier|tp has quit [Ping timeout: 244 seconds]
<chiel> but yeah, would love to visit australia and new zealand at some point
<bnagy> chiel: where do you fancy? I recommend thailand.
vectorshelve has joined #ruby
<fowl> mmmmladyboyz
<chiel> bnagy: yeah been to thailand. :)
<chiel> my gf is half thai
<vectorshelve> hemanth: long time bhai
<chiel> thailand is splendid, but i was sweating my ass off for about 3 weeks straight
<bnagy> china too authoritarian, vietnam can be pushy, cambodia too much chance of getting shot, laos too poor, burma too much junta
<banisterfiend`> chiel: woah, half-thai, is she a looker?
<vectorshelve> can anyone explain what exactly is a cucumber test harness ? I am new to cucumber.. or point me to any doc where it's explained well... thanks
<bnagy> chiel: lots of the region is pretty fricking hot a lot of the time
<chiel> banisterfiend`: 'course she is! :p
<bnagy> maybe try korea or japan then
lxsameer has quit [Ping timeout: 240 seconds]
<chiel> bnagy: yeah, we went just before monsoon season, so it was huuuumid as hell
<bnagy> :> I'm in singapore at the moment
<bnagy> mmm humid
eurek has joined #ruby
<chiel> ahh nice, never been there
<chiel> i like moving about
<chiel> worked in holland, then sweden, now uk
__class__ has quit [Read error: Connection reset by peer]
atmosx has joined #ruby
<bnagy> singapore is like a cross between asia and switzerland
<chiel> all pretty close together so far, but i want to move all over
<chiel> hmm never been to switzerland :p
Rochefort has joined #ruby
hbs_ has joined #ruby
bier has joined #ruby
bier|tp has joined #ruby
__class__ has joined #ruby
<shevy> korea was damn cold when I was there
<shevy> was a shock to move from malaysia to korea in this regard
lxsameer has joined #ruby
hbs_ has quit [Client Quit]
<yy> i'm korean
<ramblex> is it cold?
hbs_ has joined #ruby
<yy> it can be
<shevy> :)
<yy> weather is probably similar to chicago or something
<yy> it's a peninsula to there's the water effect, and almos the same latitude
eurek has quit [Quit: Computer has gone to sleep.]
lxsameer has quit [Ping timeout: 244 seconds]
charnel has joined #ruby
<charnel> I am using rvm and it has one rake gem installed in bind directory however I want to use an older version of rake in my application how canI disable that gem and use older version in the application ?
<ramblex> charnel: could you use a gemset for your application?
<charnel> I am already using but when I gem list --local I see that rake 0.9.2.2 is installed when I gem uninstall rake I get rake is not installed
<charnel> I just did a recursive search and found it in the ~/.rvm directory which I want to remove right now without affecting any other application
vlad_starkov has quit [Remote host closed the connection]
g_rotbart has quit [Remote host closed the connection]
<atmosx> yy: seriously you're Korean?
arkiver has joined #ruby
<atmosx> shevy: you've been to Malaysia and Korea? I envy you :-(
* atmosx has been once to China as long as Asia is a concern… Turkey is not real Asia...
shavus has joined #ruby
BRMatt has quit [Ping timeout: 248 seconds]
lxsameer has joined #ruby
BRMatt has joined #ruby
hbs_ has quit [Quit: hbs_]
hbs_ has joined #ruby
nilg has quit [Read error: Connection reset by peer]
nilg has joined #ruby
cousine_ has quit [Remote host closed the connection]
hbs_ has left #ruby [#ruby]
tk___ has joined #ruby
shavus has quit []
shavus has joined #ruby
shavus has quit [Client Quit]
shavus has joined #ruby
TheFuzzball has quit [Ping timeout: 246 seconds]
joshwines has quit [Ping timeout: 244 seconds]
neku has joined #ruby
zbo09 has joined #ruby
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
yeggeps has joined #ruby
<zbo09> is there anyone here who could be so kind as to tranlate this to Ruby http://oeis.org/A193460 been trying for the last 3 days and not really getting anywhere
<zbo09> thanks
beilabs has quit [Ping timeout: 265 seconds]
<apeiros_> zbo09: you have higher chances if you show your approaches
<zbo09> where's pastie you guys use
<zbo09> my approaches are all wrong
<zbo09> basically
lxsameer has quit [Ping timeout: 246 seconds]
jonathanwallace has joined #ruby
TheFuzzball has joined #ruby
schovi has quit [Remote host closed the connection]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
graspee has quit [Quit: leaving]
joshwines has joined #ruby
lxsameer has quit [Ping timeout: 265 seconds]
<zbo09> aper
cascalheira has joined #ruby
<zbo09> apeiros_, have you any idea?
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
<zbo09> I meant about my approcahes (obviously they are off) but the actual haskell solution
imami|afk is now known as banseljaj
beilabs has joined #ruby
k_89 has joined #ruby
eurek has joined #ruby
liluo has joined #ruby
zbo09 has quit [Remote host closed the connection]
etehtsea has quit []
KevinSjoberg has joined #ruby
JustinCampbell has joined #ruby
bluenemo has joined #ruby
k_89 has quit [Ping timeout: 244 seconds]
zommi has quit [Ping timeout: 244 seconds]
xanaru has joined #ruby
gtuckerkellogg has joined #ruby
<shevy> atmosx: yeah but this was many years ago
<shevy> atmosx: the only place so far I wanna see again is Hong Kong
wobr has quit [Ping timeout: 252 seconds]
<banisterfiend`> apeiros_: ping
jmeeuwen has quit [Ping timeout: 252 seconds]
zommi has joined #ruby
<atmosx> hong kong must be nice
`brendan has joined #ruby
moshee has quit [Ping timeout: 250 seconds]
zommi has quit [Ping timeout: 246 seconds]
MatthewGA has quit [Quit: Leaving]
nilg has quit [Read error: Operation timed out]
niklasb has joined #ruby
zommi has joined #ruby
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
nari has joined #ruby
jmeeuwen has joined #ruby
<shevy> it's very cool. it is as if something is constantly happening there all the time
<regedarek> hello, could you help me with one rake task, which has to set up usernames for all users from email(username@some_text.com), i have problem with part which checks uniqness of username -> https://gist.github.com/3067635 this of course not works, maybe you can give me some advice
<shevy> atmosx: I think it has a lot to do with the "design" of the town. they dont have a lot of space, there is the ocean, a bit fland land, and then mountains/hills around it
<atmosx> I see
<atmosx> sounds really awesome
arkiver has quit [Ping timeout: 264 seconds]
<shevy> yeah!
<shevy> I was in Shanghai that same year too and the whole town felt like the chinese from beijing trying to clone Hong Kong there
<shevy> but it felt totally artifical and much more like "eh, we are awesome, we can do the same on our own too"
<ramblex> regedarek: in what way does it 'not work'?
<shevy> but they could not. shanghai sucked compared to hong kong
mpereira has quit [Quit: leaving]
<shevy> except for that high tower... that was quite nice
charnel has quit [Quit: Leaving]
<shevy> atmosx: I am now coding on the new version of the build tools in ruby. with some luck today I'll be able to compile in a linux-from-scratch like way from zero to a full linux build
akem has joined #ruby
thatRD has quit [Ping timeout: 248 seconds]
<regedarek> ramblex: hmm it has problem with this each_with_index part - one of username field are still empty and should be ex: 2testusername
thatRD has joined #ruby
<atmosx> shevy: good :-)
<atmosx> Gonna grab something to eat.
zommi has quit [Ping timeout: 252 seconds]
<workmad3> regedarek: it would help if you'd paid any attention to the suggestions I gave you the other day
<atmosx> I think my 'fail2ban.log' script is ready too. I need to re-read the code and optimize some lines in term of 'lines of code' and write the exec function using optparse options
<atmosx> and that's the most boring part...
<atmosx> anyway bb
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
wlievens has joined #ruby
<wlievens> when building ruby from source, how does one install the headers in /usr/lib/ruby/ ?
yugui is now known as yugui_zzz
<wlievens> something went wrong and they were removed by incorrect removal of other software
<wlievens> so I need to put them there again - I still have my ruby build folder so I'd like to just ... install them again
undersc0re has joined #ruby
djdb has joined #ruby
vlad_starkov has joined #ruby
zommi has joined #ruby
Tick-Tock has quit [Quit: ZNC - http://znc.in]
Ethan has quit [Ping timeout: 246 seconds]
vectorshelve has quit [Quit: Page closed]
pygospa has quit [Disconnected by services]
TheRealPygo has joined #ruby
<shevy> wlievens: I dont think this is possible
<shevy> headers default to include/
<wlievens> but Passenger expects them there
<wlievens> I could do yum install ruby-devel
<wlievens> but that's an older version ...
<shevy> then if it is true what you write, Passenger breaks standards
<wlievens> well
<wlievens> it's in the error description; ... maybe that's a fallback location or something?
<shevy> no that makes no sense really
<wlievens> let me paste the log
<shevy> the default standard is for --prefix to treat that target as the base level hierarchy
<shevy> ohhh
<shevy> ruby has no include/ dir actually :\
<shevy> only bin/ lib/ and share/ ... odd
<workmad3> shevy: mine has an include dir
larissa has joined #ruby
<wlievens> well, any idea on how I fix this?
<shevy> workmad3: how??? I compiled into a standalone prefix ...
<wlievens> something caused a few files to be removed - it's a mystery to me as to why that happened
<workmad3> shevy: I used ruby-build...
<shevy> workmad3: what is in that include/ dir?
<workmad3> shevy: the ruby includes :P
<workmad3> shevy: ruby-1.9.1/ruby.h for starters
<shevy> hmmm
<workmad3> also, looking at that, passenger is using mkmf.rb to configure the makefile, so it's that which is giving the header location as /usr/lib/ruby...
<shevy> really really odd
<shevy> why does workmad3 have an include/ dir and I don't ...
<shevy> oh sorry
<shevy> my fault
<workmad3> wlievens: it sounds like your source install has gotten a bit messed up... in all fairness, the best way to sort would be to recompile, I suspect
<wlievens> I did that
<wlievens> didn't help, I get the same error
<shevy> I was looking at the wrong target ... now I can see it: include/ruby-1.9.1/ruby/ruby.h
<workmad3> shevy: heh :)
<wlievens> by "I did that" I mean I did make clean make install
<shevy> wlievens: well we now know that there is a .h header file somewhere on your system too right? :D
<shevy> I was doing the brute force method ... find / -name ruby.h
lkba has joined #ruby
mongag has joined #ruby
<workmad3> shevy: and it found a match in the unarchived source before in the installed ruby? :)
<wlievens> is it just ruby.h
<wlievens> or will I be doing this for a couple dozen files
ZachBeta has quit [Quit: Computer has gone to sleep.]
<wlievens> you mean like this
<wlievens> ln -s /usr/lib/ruby/ruby.h /usr/local/include/ruby-1.9.1/ruby.h
<wlievens> (the reverse of course)
<wlievens> huh - I get the same error now
<wlievens> mkmf.rb can't find header files for ruby at /usr/lib/ruby/ruby.h
<wlievens> even though that file exists...
ABK has quit [Ping timeout: 246 seconds]
shavus has quit []
nyuszika7h has quit [Ping timeout: 264 seconds]
shavus has joined #ruby
LBRapid has joined #ruby
noone has joined #ruby
Lachryma has joined #ruby
wobr has joined #ruby
baphled_ has joined #ruby
noone has quit [Client Quit]
baphled has quit [Remote host closed the connection]
noone has joined #ruby
justinmcp has quit [Remote host closed the connection]
chrislgibson has joined #ruby
baphled_ has quit [Read error: Connection reset by peer]
jewing has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
baphled has joined #ruby
Vanitay has joined #ruby
noone has quit [Quit: Here we are, going far to save all that we love. - If we give all we've got, we will make it through. - Here we are, like a star shining bright on your world. - Today, make evil go away.]
mongag has quit [Quit: Leaving]
noone has joined #ruby
mdhopkins has joined #ruby
wangr has joined #ruby
stewart_ has quit [Read error: Connection reset by peer]
<shevy> workmad3: hmm no I removed the unarchived location already. I think I compiled ruby like 2 months ago
k_89 has joined #ruby
<workmad3> shevy: you were just being dumb then? :P
fflush has joined #ruby
<Vanitay> part
Vanitay has left #ruby [#ruby]
mdhopkins has quit [Ping timeout: 245 seconds]
Doc_X has quit [Quit: Leaving.]
Doc_X has joined #ruby
andrewpthorp has joined #ruby
<fflush> bonjour
<wlievens> shevy: so you have no idea how to fix my problem?
zodiac1111 has quit [Ping timeout: 265 seconds]
Criztian has joined #ruby
stewart_ has joined #ruby
<wlievens> can anyone please do ls -l /usr/lib/ruby/ for me and show me the contents?
TheRealPygo is now known as pygospa
Criztian has quit [Remote host closed the connection]
noone has quit [Quit: Here we are, going far to save all that we love. - If we give all we've got, we will make it through. - Here we are, like a star shining bright on your world. - Today, make evil go away.]
subbyyy has joined #ruby
<ramblex> wlievens: I'm on os x: https://gist.github.com/14dd51ba41f41d747585
banseljaj is now known as imami|afk
xanaru has quit [Remote host closed the connection]
subbyyy has quit [Client Quit]
<csmrfx> wlievens: 1.8/ 1.9.1/
<wlievens> thanks
<wlievens> it's so strange that Passenger expects a /usr/lib/ruby/ruby.h
<csmrfx> probably mangled path conf
<csmrfx> maybe Your bash_rc or someplace has bad PATH vars
<shevy> wlievens: I stand by it that the path is wrong
<csmrfx> *I mean: .bashrc
<wlievens> I'm perfectly willing to believe you :)
<shevy> .h files must not be in lib/ directories
<wlievens> so what's going on here
<shevy> I dont know why Passanger expects ruby.h to be there at the lib/ base
<shevy> Passenger
<shevy> from where can Passenger be downloaded?
<shevy> "gem install passenger" ?
<wlievens> I think I installed it like that yes
<wlievens> not sure - it's 3 months ago
<csmrfx> wlievens: first, try to print out bash variables and see if they make sense
<shevy> k lets see
<csmrfx> (given your env is bash)
arkiver has joined #ruby
<shevy> hmm installed without error
<wlievens> the error I get does not happen during instlal
<wlievens> it happens when I start apache and access a web page
<wlievens> (of the RoR app I use - Redmine)
mucker has joined #ruby
<shevy> oh?
<shevy> so it installs fine, but lateron it does not work?
<shevy> I thought there was a compile problem :)
<wlievens> It was installed months ago, and worked fine. Up until today: all I did was uninstall an unrelated application (munin)
<wlievens> there is
<shevy> aha
<wlievens> it compiles during startup because it's missing some .so file
<wlievens> Phusion Passenger: no passenger_native_support.so found for the current Ruby interpreter. Compiling one...
<shevy> ok so you miss a shared library here
<wlievens> yes
<wlievens> the "current Ruby interpreter" mistifies me
<shevy> and it wants to compile anew because it tries to be clever
<wlievens> maybe it's trying a wrong ruby version or something
<wlievens> exactly yes
baphled has quit [Read error: Connection reset by peer]
<wlievens> what confuses me here is the following
<shevy> well then in theory... if you would have that passenger_native_support.so things should work, right? hehe
baphled has joined #ruby
<wlievens> yes
<wlievens> but
<wlievens> I see lots of paths with 1.8 in it
<wlievens> yet I use ruby 1.9.2
<shevy> hehe
Horofox has joined #ruby
andrewpthorp has quit [Quit: Linkinus - http://linkinus.com]
<shevy> sounds as if the wrong ruby version is being picked up
lockweel has joined #ruby
<wlievens> yes
<csmrfx> which ruby?
<wlievens> hmm to be exact: ruby 1.9.3p194 (2012-04-20) [x86_64-linux]
<csmrfx> also, which os?
<wlievens> CentOS
<shevy> ok I just checked... I have installed passenger, but I do not have a passenger_native_support.so file at all
bier has quit [Remote host closed the connection]
<wlievens> no because it seems to compile that on first use
<wlievens> there are rpms for that so file
<wlievens> but of course old versions
<csmrfx> say "which ruby"
<wlievens> which is why I built ruby from source
<wlievens> which ruby /usr/local/bin/ruby
<shevy> aha
ananthakumaran has quit [Quit: Leaving.]
<shevy> I think /usr has higher precedence than /usr/local usually
eurek has quit [Quit: Computer has gone to sleep.]
<wlievens> uh wow
<wlievens> something weird I just noticed
<csmrfx> something weird you noticed have?
<wlievens> ruby -version ruby 1.9.3p194 (2012-04-20) [x86_64-linux] -e:1:in `<main>': undefined local variable or method `rsion' for main:Object (NameError)
<shevy> yoda!
<wlievens> that's not an error I expect there :)
<shevy> that is an odd error
<wlievens> no wait
<wlievens> ruby --version
<wlievens> two dashes - IGNORE MY STUPID BRAIN
drizz has quit [Remote host closed the connection]
<hoelzro> it's parsed as ruby -v -e rsion
<shevy> :)
<wlievens> yeah
jason^ has quit [Ping timeout: 248 seconds]
<wlievens> okay ... that aside
joshcheek has joined #ruby
<shevy> hmm wlievens
<csmrfx> ruby path confusion is.
jason^ has joined #ruby
<shevy> what if you add /usr/local/lib to /etc/ld.so.conf on first line and also add /usr/local to $PATH as first entry
<wlievens> ugh
<wlievens> this is ODD
<wlievens> VERY
<wlievens> look:
<shevy> ODD VERY THIS IS
<wlievens> # ll /usr/bin/ruby --version ls (GNU coreutils) 5.97
<shevy> fix must you problem soon
<shevy> that should be your old ruby right
<wlievens> it seems /usr/bin/ruby is a copy (not a symlink) of ls
joshcheek has quit [Client Quit]
<shevy> because your new one is at /usr/local/bin/ruby
<wlievens> is that even remotely normal lol
nyuszika7h has joined #ruby
<shevy> a shebang entry like this?
<csmrfx> have you told bash where ruby is?
<shevy> never saw such a shebang entry before
<wlievens> okay that was a typo again my bad, sigh
<shevy> oh
<shevy> hehehe
<wlievens> okay
<wlievens> my /usr/bin/ruby = ruby 1.8.7
<wlievens> is that the culprit?
<shevy> yeah
<shevy> I think so
<shevy> it also has no include/ directory
<wlievens> I only need my 1.9.3 or whatever version - the latest
<shevy> whereas 1.9.x has
<wlievens> how do I remove it
<shevy> as said try to change $PATH and perhaps also ld.so.conf then run ldconfig after you changed
<wlievens> it is possible this one was installed with yum whereas my 1.9.3 was installed from source
<shevy> rm /usr/bin/ruby
<shevy> rm /usr/bin/irb
<shevy> rm /usr/lib/ruby
<shevy> but
<shevy> you could just move it
<shevy> or copy it
<wlievens> first one removed, the others didn't exist
<shevy> wlievens: RVM compiles ruby into a directory other than /usr prefix
<shevy> uh?
<shevy> your ruby came without irb?
<wlievens> apparently ... no idea
<shevy> This. Is. Why. I. Hate. RPM and the other crap.
<wlievens> shouldnt I try to remove it with yum?
<wlievens> in case it's there?
<shevy> dunno
bier has joined #ruby
<wlievens> ruby.x86_64 1.8.7.352-5.el5 installed
<shevy> I dont use yum apt or any other of that shit. always from source, until I die.
<shevy> yeah. hard to break out of that prison.
<wlievens> I'm removing it
JustinCampbell has quit [Remote host closed the connection]
ken_barber has joined #ruby
<wlievens> okay different errors now, yay
<shevy> sounds like slight progress still
<wlievens> Could not start the spawn server: /usr/bin/ruby: No such file or directory
<shevy> well
<wlievens> yes I was not being ironic
<shevy> ln -s /usr/local/bin/ruby /usr/bin/ruby
<wlievens> yeah
<shevy> but btw
<shevy> you could compile with --prefix=/usr
<shevy> if you dont care about the other ruby anyway
<wlievens> I just need one, the latest, built from src
<shevy> other ways could be to ask yum to stop being an idiot and give you the latest, full ruby version :D
<shevy> yeah
<csmrfx> if you installed it with a package manager, remove it with pckmgr too
Lachryma has quit [Ping timeout: 248 seconds]
fabrice31 has joined #ruby
<wlievens> csmrfx: I installed it with yum (the old one) and removed it thus with yum erase
<shevy> for ruby it should be very simply. only /usr/lib/ruby and the few binaries... like /usr/bin/{ruby,irb,ri,rdoc} ... dunno if I forgot one here. and perhaps /usr/include/ruby too
<shevy> cool \o/
brucebot has joined #ruby
geekbri has joined #ruby
<wlievens> shevy: can I just do make install again then?
<wlievens> with that prefix
joast has quit [Quit: Leaving.]
<wlievens> or do I have to clean first
<shevy> I am not sure
<shevy> I think there is some way...
<shevy> make PREFIX=/lala/blabla; make install
<shevy> or somethingl ike that
<shevy> but
eurek has joined #ruby
brucebot has quit [Remote host closed the connection]
<shevy> I usually do make clean, then compile again with a new prefix :P
<wlievens> okay
<wlievens> could you spell out the exact make instruction just to be sure I dont screw up?
<wlievens> (building takes a while)
<shevy> for default ruby? I just use "make" then "make install", after configure... lemme find what configure switch I use
Shrink has quit [Ping timeout: 250 seconds]
<shevy> ./configure --prefix=/usr --enable-load-relative --enable-pthread --disable-shared --enable-install-doc --with-static-linked-ext
<shevy> hmm dont ask me why I tried --disable-shared
<shevy> I think I once wanted to have a static ruby
<shevy> but in 1.8 times this did not work well
<shevy> and I am on 1.9.x only since some weeks...
<wlievens> ah the prefix switch goes with configure, I'd forgotten that
<wlievens> so for the passenger gem
flype has joined #ruby
<wlievens> "gem install passenger" should be enough? Is there a way to remove the previous gem if there's a version conflict?
<shevy> as said I think make also knows PREFIX... that upcased one... lemme try to find an online example. http://selenic.com/pipermail/mercurial/2007-November/015511.html
<shevy> $ make install PREFIX=/opt/mercurial
<shevy> but in my experience, this does not work very well at all
<m4rtijn> wlievens: afaik gem uninstall
<wlievens> I'm rebuilding, it's fine
<shevy> you can do "gem list", then "gem uninstall passenger"
<wlievens> I still have /usr/lib64/ruby/gems/1.8/
<wlievens> ah
<shevy> also look at "gem env"
<shevy> oh
<m4rtijn> wlievens: i can recommend using RVM
cuppsy has joined #ruby
<wlievens> what is rvm
<shevy> gem is integrated in 1.9.x
<m4rtijn> wlievens: it reallz makes that stuff a lot easier
<shevy> with rvm you can use different ruby versions easily
<wlievens> I don't need that at all though :)
fflush has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
<m4rtijn> google it.. its a version manager
<shevy> rvm --default use 1.9.3
mohits has quit [Read error: Operation timed out]
<shevy> rvm install 1.9.3
slainer68 has joined #ruby
<m4rtijn> wlievens: for example, you can have unlimited ruby versions, and set the ruby version + gems for each application
<slainer68> hi
<csmrfx> rvm will be borked as well if you do not pay attention to bashrc / env paths
<wlievens> yeah I get the advantage but I'm not sure I need it
<csmrfx> altho rvm does help managing that
drizz has joined #ruby
tommyvyo has joined #ruby
<m4rtijn> wlievens: it might be a bit overkill at first.. but i do not want to go without anymore
<slainer68> i would like to rescue an exception, but just to do some logging, i would like the exception to eventually raise like there was no rescue block. is it possible to reraise the exception inside a rescue block ?
<wlievens> if I'm no longer using any ruby 1.8, is it safe to just remove /usr/lib64/ruby/gems/1.8/ ?
joast has joined #ruby
<shevy> wlievens: dont worry too much, I dont use RVM myself
<shevy> wlievens: depends on the prefix used
<shevy> that path means it used /usr prefix
fflush has joined #ruby
<wlievens> hmm I rebuilt with your prefix instruction
<wlievens> but
<wlievens> # which ruby /usr/local/bin/ruby
<shevy> whereas your earlier one, must have been in /usr/local/lib64 etc...
twock has joined #ruby
<shevy> well you still have the old one at /usr/local/bin/ruby right?
<wlievens> yeah
<wlievens> both now
<wlievens> # /usr/bin/ruby --version ruby 1.9.3p194 (2012-04-20)
<shevy> I mean you should decide on a path :)
<m4rtijn> slainer68: yes, you can raise it again in a rescue..
<shevy> ok well
<shevy> then you can kill the /usr/local/bin/ruby one
yoklov has joined #ruby
<shevy> and /usr/local/lib/ruby
yoklov has quit [Read error: Connection reset by peer]
<wlievens> # ruby --version -bash: /usr/local/bin/ruby: No such file or directory
<wlievens> that's odd
<shevy> I think it keeps an old hash
<wlievens> it looks like /usr/bin/ruby is not on my PATH?
<shevy> try "env" and perhaps "ldconfig" then try again "ruby --version"
<shevy> no I think bash has not picked up the change yet
<wlievens> same
<wlievens> though
<m4rtijn> exit console and start again
<wlievens> ah, thanks
rambda has quit [Ping timeout: 240 seconds]
<csmrfx> ldconfig? sounds weaird
<shevy> works for me without exiting... I usually do "env;ata;ldconfig"... where "ata" is my alias to source all my shell config things
jgarvey has joined #ruby
<shevy> csmrfx: a habit, as I often compile from source
<wlievens> though this is weird - ]# gem list -bash: /usr/local/bin/gem: /usr/local/bin/ruby: bad interpreter: No such file or directory
<csmrfx> ah
<shevy> well where is the gem
<wlievens> # which gem /usr/local/bin/gem
<shevy> is there one at /usr/local/bin/gem ?
<wlievens> hehe
<wlievens> yeah
<shevy> yeah that is the old one
<slainer68> m4rtijn: thanks, what is the best way to raise the exception inside a rescue block ? rescue => e; ..?..; end
<slainer68> the same exception
<shevy> btw, this is why RVM also compiles into a directory. that way, if you want to uninstall, you only remove one directory and that is it
<wlievens> I also have irb, rails, rake etc in that directory
<wlievens> which should I remove ?
<shevy> wha
<shevy> rails in /usr/local/bin ?
<shevy> yeah kill all the old stuff
<wlievens> hey I didn't put it there on purpose
Targen has joined #ruby
<shevy> then if you need it "gem install rails"
mdszy has joined #ruby
<shevy> or you can backup all the .gem files, which I do. they reside in cache/ subdirectory
rambda has joined #ruby
stewart_ has quit [Read error: Connection reset by peer]
<shevy> lib/ruby/gems/1.9.1/cache/
<m4rtijn> slainer68: just raise e
mdszy has quit [Client Quit]
<slainer68> m4rtijn: thank you very much :).
<shevy> gem makes this really easy
<m4rtijn> np
mdszy has joined #ruby
A124 has joined #ruby
Shrink has joined #ruby
A124 has left #ruby [#ruby]
chson has quit [Remote host closed the connection]
coderhut has joined #ruby
Seus has quit [Quit: Seus]
sailias has quit [Ping timeout: 264 seconds]
hunglin has joined #ruby
si14 has left #ruby [#ruby]
<wlievens> wow - I just found why I fucked it
<wlievens> my instructions in httpd.conf point all wrong
patient has joined #ruby
<shevy> huh? in httpd.conf are instructions?
<wlievens> well
bigkevmcd has quit [Read error: Operation timed out]
hunglin has left #ruby [#ruby]
<wlievens> that was in it, apparently
coderhut_ has joined #ruby
kedare has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
eurek has quit [Quit: Computer has gone to sleep.]
<wlievens> so working with ruby 1.9.3 but using passenger made for 1.8 ... it's a mircle it used to work at all
<shevy> hehe
bigkevmcd has joined #ruby
Lachryma has joined #ruby
ackz has joined #ruby
oscardelben has joined #ruby
saschagehlich has joined #ruby
<wlievens> hmm I did gem install passenger
<wlievens> but where is the module now? the apache module I mean
<wlievens> mod_passenger.so
dhruvasagar has quit [Ping timeout: 250 seconds]
Foxandxss has joined #ruby
coderhut has quit [Ping timeout: 245 seconds]
ananthakumaran has joined #ruby
<wlievens> ah yes there's a separate script: passenger-install-apache2-module
stewart_ has joined #ruby
asobrasil has joined #ruby
fflush has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
jsime has joined #ruby
groundnuty has joined #ruby
<groundnuty> hey, anyone could recomend any embended (file based; lile sqllite) nosql db? - pref. document driven (like mongodb).
SeySayux_ has joined #ruby
eurek has joined #ruby
Progster has joined #ruby
indstry has joined #ruby
johnlcox has joined #ruby
bglusman has joined #ruby
SeySayux has quit [Ping timeout: 264 seconds]
<apeiros_> banisterfiend`: a shy pong
jlogsdon has joined #ruby
<banisterfiend`> apeiros_: do u understand about to_ary and to_splat ?
hunglin has joined #ruby
<banisterfiend`> apeiros_: and the diff.s b/w 1.8 and 1.9 regarding this?
dv310p3r has joined #ruby
uris has joined #ruby
<apeiros_> I hear the first time about to_splat
bigkevmcd has quit [Ping timeout: 265 seconds]
<apeiros_> so does my ri :-/
<apeiros_> is to_splat official?
<banisterfiend`> apeiros_: cos, an object that implements to_ary, does not have to_ary invoked when i splat it
<banisterfiend`> which is really annoying
<banisterfiend`> apeiros_: i think so..
ziv has joined #ruby
<apeiros_> to_splat doesn't seem official…
mdpatrick has joined #ruby
<apeiros_> at least the latest stable 1.9.3 doesn't care about it
<banisterfiend`> hmm maybe im wrong
<banisterfiend`> apeiros_: so why isn't an object that implements to_ary splatted?
<apeiros_> for some reason it uses to_a
Ionic` has joined #ruby
<apeiros_> but I remember in the version I gave you I had to use to_ary…
Helius has joined #ruby
<banisterfiend`> apeiros_: to_ary is great for destructuring
<banisterfiend`> but it's not called for splatting
bbttxu has quit [Quit: bbttxu]
<hoelzro> I think to_a is used for a, b = c, and to_ary for for a, b = *c
<banisterfiend`> but yeah i'l ljust implement to_a and see what happens :)
<hoelzro> or the other way around...
<apeiros_> hoelzro: to_ary is not used for a,b = *c
<apeiros_> just tried
<apeiros_> also a,b = c and a,b = *c are supposed to be the same
<apeiros_> (sadly)
<hoelzro> I don't know if they are, though
bigkevmcd has joined #ruby
pdelgallego has joined #ruby
<banisterfiend`> apeiros_: so i just defined: def to_a() to_ary end
<banisterfiend`> seems to work :)
<banisterfiend`> seems slightly retarded though
niklasb has quit [Ping timeout: 246 seconds]
tzvi|work has joined #ruby
greasegum has joined #ruby
<hoelzro> that gist demonstrates which is called when
greasegum has quit [Client Quit]
<hoelzro> personally, I think the distinction is silly
bier has quit [Remote host closed the connection]
hatoishi has joined #ruby
greasegum has joined #ruby
bier has joined #ruby
<apeiros_> banisterfiend`: alias?
<apeiros_> the one occasion I actually approve of using alias…
<banisterfiend`> yeah i could, nice idea
<wlievens> shevy: it all works now btw, so thank you very much
<shevy> cool
staunch has joined #ruby
<shevy> wlievens: and you even avoided RVM! \o/
itnomad has joined #ruby
<shevy> I will like RVM as soon as you can build a whole distribution with it :P
mockra has joined #ruby
<apeiros_> hoelzro: shouldn't call it Test :-p
hatoishi has quit [Client Quit]
<m4rtijn> :p
<staunch> hey guys i want to learn ruby, and am in ruby koans with a pragmatic book as a reference which seems to be working, i was wondering if anyone has any advise. I was rethinking of digging into a micro framework next and building a baby app, before digging into rails, which framework do u think would be best as a light weight rails alternative with the goal of getting prepped fror rails :)
<apeiros_> hoelzro: hmmm… this worries me…
<hoelzro> apeiros_: even just for a one-off demo? =P
<staunch> specifically sinatra mere or camping
<hoelzro> messed up, isn't it?
<apeiros_> hoelzro: yepp, even then. I had to modify it as for some reason Test (from Test::Unit I guess) was already loaded…
<hoelzro> ah
<hoelzro> noted =)
digitalcakestudi has joined #ruby
<apeiros_> hoelzro: yeah, it is. but auto-splat on its own is already messed up IMO.
<hoelzro> agreed
<apeiros_> back to work!
indstry has quit [Remote host closed the connection]
<apeiros_> finding duplicates in your database! so much fun!
<apeiros_> (not)
<apeiros_> at least it's a challenge…
arkiver has quit [Quit: Leaving]
<m4rtijn> staunch: i wouldnt.. any MVC framework would do,. but rails dont need prepping..
<m4rtijn> just if you feel 'safe' in ruby, start with rails
<m4rtijn> you can even start with rails.. but its more fun if you know ruby a bit better
<m4rtijn> in my experience
minijupe has joined #ruby
emmanuelux has joined #ruby
bigkevmcd has quit [Ping timeout: 246 seconds]
k_89 has quit [Ping timeout: 246 seconds]
<zaargy> staunch: sinatra then rails
<zaargy> rails has too much magic to begin with imho
<zaargy> unless you're coming from another framework in another language
<m4rtijn> .. could be.. forgot about sinatra
stewart_ has quit [Read error: Connection reset by peer]
<staunch> m4rtjin: thanks for the tip, i had a lot of people tell me on here before though that a micro was a good idea,, guess everyone has a different learning style, i started a rails book, and it was fun but i did feel like i was learning a lot of magic spells and i just wanted to keep on programming, since i am just trying to get ruby down
SeySayux_ is now known as SeySayux
neku is now known as neku|away
<staunch> yea i have no framework experience
<staunch> sinatra is not mvc, though....
mockra has quit [Remote host closed the connection]
shavus has quit []
<m4rtijn> i came from java to ruby.. which was okay., then just dove into rails..
<m4rtijn> no problems so far :)
<staunch> i am also admittedly a mediocre programmer and like little baby steps
<staunch> or else i might get scared and quit :)
<m4rtijn> hehe
<staunch> i like small doable steps
<_axx> I have a question about Queues in Ruby. Should my "hello world" 1-10 run, without any lag for the queued function? https://gist.github.com/a0e2dde550adf1777ded
shevy has quit [Ping timeout: 265 seconds]
pk1001100011 has quit [Ping timeout: 248 seconds]
neku|away is now known as neku
rob_ has joined #ruby
tvw has joined #ruby
crankycoder has joined #ruby
<rob_> hi, im using debian lucid and have 'gem install bcrypt-ruby' but i get: `require`: no such file to load -- bcrypt (LoadError)
<rob_> if i do gem list i see bcrypt-ruby (3.0.1)
<rob_> can anyone tell me what's going on?
<rob_> oh
<rob_> ruby 1.8.. need require rubygems probably... curses
pu22l3r has joined #ruby
rob_ has left #ruby [#ruby]
bbttxu has joined #ruby
<workmad3> rob_: sounds likely :)
lolmaus has quit []
zommi has quit [Ping timeout: 244 seconds]
Musfuut has joined #ruby
berserkr has quit [Quit: Leaving.]
moisesv has joined #ruby
D4T has joined #ruby
mdhopkins has joined #ruby
akem has quit [Ping timeout: 246 seconds]
Seus has joined #ruby
bigkevmcd has joined #ruby
stewart_ has joined #ruby
m4rtijn has quit [Quit: Page closed]
ananthakumaran has quit [Quit: Leaving.]
ananthakumaran has joined #ruby
TheHairyWoodsman has joined #ruby
cantonic has joined #ruby
JohnBat26 has joined #ruby
thecreators has joined #ruby
sailias has joined #ruby
shevy has joined #ruby
andrewhl has joined #ruby
xaq has joined #ruby
kevinbond has joined #ruby
zodiac1111 has joined #ruby
verto|off is now known as verto
chrismcg is now known as zz_chrismcg
zz_chrismcg is now known as chrismcg
rcsheets has quit [Quit: to work!]
jmeeuwen has quit [Quit: Caught sigterm, terminating...]
ziv has quit [Remote host closed the connection]
internet_user has joined #ruby
ziv has joined #ruby
thisirs has joined #ruby
<zaargy> staunch: you can make sinatra mvc
PaciFisT has joined #ruby
kvirani has joined #ruby
the_jeebster has joined #ruby
joshman_ has joined #ruby
maasha has quit [Quit: Page closed]
kpshek has joined #ruby
axl_ has joined #ruby
wlievens has quit [Quit: Page closed]
jmeeuwen has joined #ruby
whalesalad has joined #ruby
chson has joined #ruby
etehtsea has joined #ruby
randomautomator has joined #ruby
Axsuul has quit [Ping timeout: 248 seconds]
greasegum has quit [Ping timeout: 246 seconds]
nari has quit [Ping timeout: 244 seconds]
superjoe has joined #ruby
dankest has joined #ruby
eurek has quit [Quit: Computer has gone to sleep.]
emmanuelux has quit [Ping timeout: 264 seconds]
fantazo has joined #ruby
dankest has quit [Client Quit]
charliesome2 has quit [Quit: Textual IRC Client: www.textualapp.com]
lxsameer has quit [Ping timeout: 252 seconds]
BRMatt has quit [Quit: ZNC - http://znc.sourceforge.net]
BRMatt has joined #ruby
tagrudev has quit [Remote host closed the connection]
<verto> hi guys :)
<ddv> sexist
<Ionic`> feminist
lxsameer has joined #ruby
<verto> lol
tonini has quit [Remote host closed the connection]
digitalcakestudi has quit [Quit: Leaving.]
ghanima has joined #ruby
shavus has joined #ruby
xclite has joined #ruby
mdpatrick has quit [Quit: mdpatrick]
lxsameer has quit [Client Quit]
erichmenge has joined #ruby
<zaargy> :O
kaisukaru__ has joined #ruby
<verto> hi girls :)
<verto> done
<verto> ^^
<kaisukaru__> What would you recommend for benchmarking?
khakimov has joined #ruby
<Mon_Ouie> The Benchmark module in stdlib?
tk___ has quit [Quit: ばいばい]
<kaisukaru__> Yes, but from available gems out there?
nari has joined #ruby
<apeiros_> still the benchmark module from stdlib
<Mon_Ouie> Why do you want to install an external gem if there's what you're looking for in stdlib?
<apeiros_> pay per dependency?
oooPaul has joined #ruby
TPFC-SYSTEM has quit [Quit: TPFC-SYSTEM]
lockweel has quit [Ping timeout: 265 seconds]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
ringotwo has quit [Remote host closed the connection]
<kaisukaru__> What you think about ruby-prof?
<apeiros_> that's a profiler, not a benchmark lib. but yes, ruby-prof is good.
EzeQL has quit []
objlinks has joined #ruby
_pdelgallego has joined #ruby
<objlinks> hello channel, i am newbie to ruby, i have a ques
pdelgallego has quit [Read error: Connection reset by peer]
_pdelgallego is now known as pdelgallego
<objlinks> while calling methods, i have seen abc: xyz as parameters
<objlinks> what does it mean?
<Mon_Ouie> It's a special syntax for hashes when symbols are used as keys
csmrfx has left #ruby ["ciao!"]
jsime has quit [Read error: Connection reset by peer]
<Mon_Ouie> abc: xyz is the same as :abc => xyz
mdpatrick has joined #ruby
nari has quit [Ping timeout: 245 seconds]
berserkr has joined #ruby
aroman has joined #ruby
rizzy_work has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
<apeiros_> objlinks: the complete expansion: foo 1, b: 2 --> foo(1, {:b => 2})
<kaisukaru__> Can I use ruby-prof without chaning existing codebase, for example for rspec tests?
KevinSjoberg has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
dv310p3r has quit [Ping timeout: 264 seconds]
greasegum has joined #ruby
<objlinks> thanks Mon_Ouie and apeiros
<aroman> hi, I'm a python guy. I want to learn ruby because i'm finding myself liking what I initially liked about python (really simple mental models, simplistic syntax, very "readable" code) not as important to me -- Python was my first language some years ago, and since then I've worked with a number of other languages and I find myself wanting a more expressive and "programmer-friendly" language. I have this odd conception that ruby is less performant than pyt
<aroman> in traditional language (read: number crunching) benchmarks. Can anyone comment on this? Is there any truth to this in 2012?
<objlinks> now i get it :)
<aroman> myself thinking*
sernin has joined #ruby
khakimov has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<banisterfiend`> aroman: i dont think it's true anymore, there was a recent benchmark that shows ruby was actually faster than python iirc
<banisterfiend`> aroman: also, the JRuby implementation (ruby on the JVM) is very fast, and will get ridiculously fast by the time of the next release with InvokeDynamic technology
bigkevmcd has quit [Ping timeout: 265 seconds]
<aroman> banisterfiend`: ah. but you do recall a historical notion that python was usually faster than ruby?
<aroman> (i.e i wasn't just recalling bs/anti-ruby sentiment)
<banisterfiend`> aroman: of course, it's true of ruby's 1.8 branch. But 1.8 was replaced by 1.9 about 3-4 years ago, and 1.9 was a complete rewrite, and it much much faster than 1.8
<shevy> aroman: it is no longer really true. I think python still is a bit faster than ruby 1.9.3 but the difference is really marginal at best, if at all
<aroman> banisterfiend`: is JRuby fully compatible with the reference implementation (matz's C implementation, iirc)
<aroman> *?
<shevy> I dont think it is
<banisterfiend`> aroman: Yes, pretty much.
<shevy> it treats threads differently for instance
Seus has quit [Quit: Seus]
<aroman> interesting
bbttxu has quit [Quit: bbttxu]
andrewhl has quit [Remote host closed the connection]
<banisterfiend`> aroman: what he means by that is that JRuby doesn't have a GIL
ghanima has quit [Quit: Leaving.]
<banisterfiend`> aroman: so threading is better in JRuby
jprovazn is now known as jprovazn_away
<aroman> so i guess it's like the canonical python (in C) vs PyPy situation on the other side of the fence
<aroman> how does it work without a GIL?
<banisterfiend`> aroman: more like python vs Jython
<banisterfiend`> aroman: though afaik Jython is dead, whereas JRuby is very much alive, with a heap of active development
<banisterfiend`> aroman: the ruby equivalent of pypy is rubinius
<aroman> ah. what's the story with that then?
<shevy> it's pretty much dead after evans left ;)
<banisterfiend`> aroman: Rubinius is great, but not quite ready for the big time yet :)
pdelgallego has quit [Read error: Connection reset by peer]
<banisterfiend`> shevy: that's not true..
pdelgallego has joined #ruby
quest88 has joined #ruby
<banisterfiend`> shevy: i thought it was going to be true, but it's not
<banisterfiend`> Rubinius is not dead at all :)
_andyl has quit [Ping timeout: 265 seconds]
<banisterfiend`> check out the commits on github, it's still developing at a fast rate
<rking> What is the goal of Rubinius? I mean, I like the purity and stuff, but what is a good use of it?
<aroman> gotcha. so i guess JRuby is what people have their bets on. are any notable companies using it in production?
<shevy> banister is a hopeful man. but I have seen how projects change... like when _why disappeared, today's shoes just isn't shoes anymore
<shevy> pry would be different if someone else would take over :(
<rking> Wait no I'm mixing them up. Ignore me.
<shevy> aroman: there is even an editor for jruby in ruby
<rking> I was wondering about the one that implements as much as possible in Ruby.
<shevy> redcar I think was its name
<banisterfiend`> aroman: check out this site: http://jruby.org/
<banisterfiend`> aroman: i dont know about companies myself, but i think there would be number of high profile ones
<shevy> aroman: dunno, I'll always use matz-ruby first
<banisterfiend`> aroman: but you'll have to find that out yourself :)
<shevy> I wanted to learn python but this python2 vs python3 is just no fun at all
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<banisterfiend`> aroman: also, the C implementation of Ruby (MRI) is still very good, and is developing quickly too. The ruby implementation ecosystem is actually really healthy. Have you heard of RubyMotion ?
<aroman> shevy: yeah that's kind of why i'm shying away from python
strnx has quit [Excess Flood]
<aroman> that, and i'm in love with cofeescript's syntax and I understand that it's largely inspired by ruby
<aroman> banisterfiend`: I have, looked like very cool stuff
<banisterfiend`> aroman: Yeah.
strnx has joined #ruby
<banisterfiend`> aroman: also, github was written by rubyists and is primarily written in ruby :) lots of cool stuff in the ruby world
pk1001100011 has joined #ruby
<banisterfiend`> aroman: there's al Ruboto for android, which is built on JRuby
<aroman> yep, twitter too. definitely lots of prolific ruby hackers out there ;)
<banisterfiend`> also*
<banisterfiend`> Rubuto is kind of like rubymotion
<banisterfiend`> but not with the same degree of polish, yet
<aroman> so then for someone like me who has been programming for a number of years, (with a lot of python and JS experience), how would you folks recommend I learn ruby? I'm looking for a concise explanation of ruby that skips the "how to program" stuff.
pdelgallego has quit [Read error: Connection reset by peer]
pdelgallego has joined #ruby
<banisterfiend`> aroman: get "the ruby programming language" by o'reilly
bbttxu has joined #ruby
<banisterfiend`> aroman: it's very concise, and will get you started quickly
<banisterfiend`> aroman: after that, to learn more about idiomatic ruby get: "eloquent ruby"
schaerli has quit [Remote host closed the connection]
<banisterfiend`> aroman: after that, consider getting "design patterns in ruby" and "refactoring: ruby edition"
bigkevmcd has joined #ruby
<shevy> aroman: work through "learn to program - by chris pine". dont mind the title, it has ruby examples. when you understood them all, you know the basics instantly
davidcelis has quit [Ping timeout: 252 seconds]
<shevy> after that, you must start your own first project as quickly as possible
<shevy> for me it was an IRC bot in ruby
<banisterfiend`> shevy: 'learn to program' is for people who dont know any programming, he already knows python and JS.
freeayu has quit [Quit: 离开]
<shevy> he'll miss great info if he skips it :(
MatthewGA has joined #ruby
<banisterfiend`> what, like the concept of an array? :P
<aroman> yeah and java and vala and stuff. i'm definitely no stranger to programming, esp. in dynamic interpreted languages like ruby
<shevy> yeah!
itnomad has quit [Quit: Leaving]
<banisterfiend`> it's too basic, even my brother found it too basic and he's never programmed before
<aroman> guise wat is OOP and where do i download it </troll>
ckrailo has joined #ruby
<banisterfiend`> hehe
<banisterfiend`> aroman: ah, that's another thing you'll find interesting about ruby, it has a message-passing OO model inspired by smalltalk
<aroman> i'll definitely check out that O'Reilly book, has extremely positive reviews. thanks banisterfiend`
<banisterfiend`> aroman: so it's a bit different to what you've been doing in python/java
mengu has quit [Read error: Connection reset by peer]
<banisterfiend`> but i think you'll like it a lot
<aroman> can't wait to dive in :)
<banisterfiend`> aroman: have you done any objective-c ?
<aroman> i can read it, but I can't write it. got pretty far into learning it, but i have almost no interest in writing mac/ios apps, so I don't have any experience writing real obj-c code.
<verto> aroman good book! you'll like it.
<banisterfiend`> aroman: Ruby terminology is infused with the message passing model. We talk a lot about "receivers" and "senders", and "explicit vs implicit receivers" etc
gtuckerkellogg has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<shevy> and ducks
<Gavilan> banisterfiend`: What's an explicit vs implicit receivers?
<kaisukaru__> Ruby-prof seems to show times for stdlib calls and I can't seem, how can I profile my classes
<aroman> banisterfiend`: cool. oh and one more thing,
<aroman> what's the situation like for async code?
<aroman> callback soup, or fibers?
<banisterfiend`> Gavilan: obj.method #=> obj is an explicit receiver of the 'method' message. whereas if i just wrote "method", then the implied receiver is 'self'
wvms has quit [Quit: wvms]
<banisterfiend`> aroman: celluloid is the newest thing there, and it's all fiber based
<banisterfiend`> aroman: it looks beautiful, but i haven't had a change to use it yet
<banisterfiend`> chance
neersighted has quit [Read error: Connection reset by peer]
<banisterfiend`> aroman: google ruby and celluloid
<aroman> cool, noted.
<Gavilan> banisterfiend`: ammm, okay....
SQLStud has joined #ruby
baroquebobcat has joined #ruby
whalesalad has quit [Quit: whalesalad]
neersighted has joined #ruby
<banisterfiend`> aroman: do you use ipython?
baphled_ has joined #ruby
baphled has quit [Read error: Connection reset by peer]
artOfWar has joined #ruby
<aroman> banisterfiend`: I have before, though not extensively.
<banisterfiend`> aroman: ah ok, this is the ruby equivalent: http://pry.github.com
<banisterfiend`> :P
SegFaultAX has joined #ruby
g0bl1n has joined #ruby
<aroman> looks nice, bookmarked as well. thanks!
oscardelben has quit [Quit: oscardelben]
dv310p3r has joined #ruby
artOfWar has quit [Remote host closed the connection]
<shevy> aroman go write your first project in ruby and turn it into a gem
artOfWar has joined #ruby
adeponte has joined #ruby
aroman has quit [Quit: aroman]
TheHairyWoodsman has quit [Quit: Leaving.]
objlinks has quit [Remote host closed the connection]
objlinks has joined #ruby
SQLStud has quit [Read error: Connection reset by peer]
larissa has quit [Quit: Saindo]
yonggu has joined #ruby
<shevy> pythonista have no patience
cousine has joined #ruby
Synthead has quit [Remote host closed the connection]
greasegum has quit [Remote host closed the connection]
Synthead has joined #ruby
<apeiros_> *sob* when you write .join instead of .joins on a large AR::Relation, you wait a loooong time… just to then figure out that you did something wrong…
wobr has quit [Ping timeout: 248 seconds]
<workmad3> apeiros_: heh, yup :)
<workmad3> apeiros_: testing? :P
TorpedoSkyline has joined #ruby
<apeiros_> workmad3: no, developing
<apeiros_> maybe I shouldn't develop against the anonymized production data…
<apeiros_> (far too much data :D)
<apeiros_> but even without that bug, the query is horribly slow… 30s for one query :-/
ben_alman has quit [Excess Flood]
shavus has quit [Quit: ChatZilla 0.9.88.2 [Firefox 13.0.1/20120614114901]]
ben_alman has joined #ruby
Eldariof-ru has quit [Ping timeout: 248 seconds]
enroxorz has joined #ruby
<workmad3> apeiros_: does it run that slowly in production?
dubios has quit [Ping timeout: 260 seconds]
<workmad3> apeiros_: or is it in part because you're running with an un-tuned db server on your dev machine? :)
strnx has quit [Excess Flood]
williamcotton_ has joined #ruby
<workmad3> apeiros_: also, if you're on rails and it's 3.2+, your log should contain an EXPLAIN of the long query :)
artOfWar has quit [Ping timeout: 240 seconds]
<apeiros_> workmad3: it will, or would
<apeiros_> it's a similarity match
<apeiros_> can't use an index
dubios has joined #ruby
<workmad3> apeiros_: bleh
<apeiros_> indeed
<workmad3> apeiros_: postgres?
<apeiros_> oracle
<apeiros_> utl_match.jaro_winkler
davidw has quit [Ping timeout: 240 seconds]
objlinks has quit [Remote host closed the connection]
<workmad3> hmm... do they have full-text indexing capabilities built in? (I expect they do, but I don't know for sure :) )
<apeiros_> sure. but you can't index against an edit-diff function :)
jsime has joined #ruby
<apeiros_> best you can get is O(n) afaik
djdb has quit [Read error: Connection reset by peer]
objlinks has joined #ruby
niklasb has joined #ruby
<workmad3> hmm... ok then :)
strnx has joined #ruby
<workmad3> is it just against a single varchar field then?
benson has joined #ruby
<apeiros_> haha
<apeiros_> you wish…
<apeiros_> I'm still working on that stupid duplicates search
<workmad3> refresh my memory? :)
<shevy> oracle makes people happy
<apeiros_> which should include "likely duplicates" - and that's where it gets hairy
bbttxu has quit [Quit: bbttxu]
<workmad3> shevy: yes, but only by amusing the entire IT community with how much they mess up their lawsuits :)
<apeiros_> workmad3: well, given that there are multiple sources from where you get new customers, but the same customer should not be added twice (or more often)
<JonnieCache> is this some sort of horrible data cleaning discussion?
andrewhl has joined #ruby
<JonnieCache> good luck ;)
<workmad3> apeiros_: ah right, so you're not looking for similarity matches in large TEXT blobs, which was what I was wondering :)
<apeiros_> you have to check whether that customer is already in your db. you have varying levels of information. sometimes first/last name, sometimes an address, sometimes a phone number, sometimes an email address…
wallerdev has joined #ruby
<apeiros_> JonnieCache: yes, kinda. it's to prevent having to do the data cleaning.
<workmad3> apeiros_: how often is this search meant to be run?
<apeiros_> workmad3: so you have all the horrible things like typos, last name changes (marriage), address changes, phone number changes…
<apeiros_> workmad3: every time you add a customer
<apeiros_> if possible, it should run "live", i.e., you enter data and a warning pops up "hey, we already know that one…"
objlinks has left #ruby [#ruby]
genjix has joined #ruby
<genjix> hi
<workmad3> apeiros_: hmm... I think you may need to consider other solutions if you're having to perform edit_distance calculations against massive data-sets
<apeiros_> probably not possible for similar matches, only for exact ones. but well, I'm still in the early phase. the last week I spent trying to normalize and sanitize our data.
<JonnieCache> have you seen that google dataset cleaning tool?
<sernin> So, the canonical way to read a file into memory is IO.readlines, correct? Does this take the entire file into memory? And if so (it's a large logfile), is there an idiomatic way to read and process line by line?
Criztian has joined #ruby
<workmad3> a nice message queue that sends new customer request messages to a NewCustomer service that is there exclusively to create or find an existing record :)
williamcotton_ has quit [Quit: williamcotton_]
k_89 has joined #ruby
<JonnieCache> its pretty swank
hoelzro is now known as hoelzro|away
mdszy has quit [Quit: bye for now]
staunch has quit [Ping timeout: 250 seconds]
ziv has quit []
timonv has quit [Remote host closed the connection]
<apeiros_> looks nice. but sensitive data, thus not an option.
<JonnieCache> they anticipated that: its a local app
<JonnieCache> even though it runs in a browser, you run the server locally
<JonnieCache> i think you can automate it too
<apeiros_> I doubt that it is applicable to our case
ixti has joined #ruby
<apeiros_> but the processes it mentions are similar to what I/the code I wrote did/do/does
<JonnieCache> fair. good luck man, those problems are tough, as im sure you know :)
kenichi has joined #ruby
ixti has quit [Client Quit]
ixti has joined #ruby
genjix has left #ruby [#ruby]
bradhe has quit [Remote host closed the connection]
robotmay has quit [Remote host closed the connection]
<apeiros_> JonnieCache: yupp. & thanks.
<apeiros_> workmad3: something along that line is probably what I'll do for iteration 1
<apeiros_> i.e., go for exact matches "live", and keep looking for similar matches in a queue
<JonnieCache> then you have the UX problem of presenting the results of the async search back to the user later on
<apeiros_> workmad3: anyway, as usual, there's still sooo many questions about the whole workflow open… so I'm mostly only concerned about finding the similar matches right now :)
zodiac1111 has quit [Ping timeout: 265 seconds]
berkes has quit [Quit: Ex-Chat]
<apeiros_> gotta run for the train. cya guys & girls
apeiros_ has quit [Remote host closed the connection]
liluo has quit [Remote host closed the connection]
Helius has quit [Remote host closed the connection]
savage- has joined #ruby
artOfWar has joined #ruby
artOfWar has quit [Remote host closed the connection]
artOfWar has joined #ruby
jfoley has joined #ruby
minijupe has quit [Quit: minijupe]
adeponte has quit [Remote host closed the connection]
apok has joined #ruby
jfoley has quit [Client Quit]
williamcotton has quit [Quit: williamcotton]
clockwize has joined #ruby
nachtwandler has joined #ruby
jrhorn424 has joined #ruby
<flagg0204> im working on a rails application that basically consumes data from an external api. Connecting to the API, pulling data down etc, should that be done in the model or via controller?
rcsheets has joined #ruby
<flagg0204> and this app (so far) uses no database.
<jrhorn424> flagg0204: probably the controller. #RubyOnRails is a better place to ask, though.
<flagg0204> jrhorn424: thanks.
tds has joined #ruby
etehtsea has quit []
stewart_ has quit [Read error: Connection reset by peer]
dv310p3r has quit [Ping timeout: 264 seconds]
mengu has joined #ruby
zemanel has quit [Quit: Remote hottie closed the connection]
htroyack has joined #ruby
nateberkopec has joined #ruby
cousine has quit [Remote host closed the connection]
apok has quit [Quit: apok]
htroyack has left #ruby [#ruby]
<tds> so it seems like if you use #method to get an object for a given method, and then cast it as a proc and pass it to instance_eval in another class, self will refer to the original instance, not the instance in which the proc is being called
troyack has joined #ruby
<tds> see here for an example: https://gist.github.com/471c249173b23f04ab43
coderhut_ has quit [Ping timeout: 245 seconds]
<tds> i can't seem to find anything about this behaviour, and i want to know if this is safe to rely on
jeff_sebring has joined #ruby
troyack has left #ruby [#ruby]
schickung_ has joined #ruby
zemanel has joined #ruby
Nies has joined #ruby
BeLucid_ has quit [Read error: Connection reset by peer]
aroman has joined #ruby
dv310p3r has joined #ruby
BeLucid has joined #ruby
schickung has quit [Ping timeout: 264 seconds]
schickung_ is now known as schickung
bradhe has joined #ruby
paulpalm has joined #ruby
EzeQL has joined #ruby
Criztian has quit [Ping timeout: 265 seconds]
<paulpalm> if i have a string date like: "9September2011", is there a ruby function to transform to Date?
kenperkins has joined #ruby
cbuxton has joined #ruby
<slainer68> paulpalm: dev your own custom parser
timonv has joined #ruby
Criztian has joined #ruby
<benson> paulpalm: Date.parse
<paulpalm> benson, thanks
<benson> paulpalm: Date.parse('9September2011') => Fri, 09 Sept 2011
<benson> paulpalm: no problem
Markvilla has joined #ruby
<paulpalm> wow. that's exactly what i want :)
_theriffer_ has joined #ruby
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
Nies has quit [Quit: Saliendo]
Goles has joined #ruby
brianpWins has quit [Quit: brianpWins]
justsee has quit [Quit: Leaving...]
the_jeebster1 has joined #ruby
the_jeebster has quit [Ping timeout: 245 seconds]
berserkr has quit [Quit: Leaving.]
kenichi has quit [Remote host closed the connection]
philips_ has quit [Excess Flood]
<Mon_Ouie> And if you're using a format that parse doesn't understand, there's strptime
philips- has joined #ruby
blazes816 has joined #ruby
robotmay has joined #ruby
berkes has joined #ruby
DrShoggoth has joined #ruby
mdhopkins has quit [Quit: mdhopkins]
thisirs has quit [Remote host closed the connection]
zommi has joined #ruby
hynkle has joined #ruby
ephemerian has quit [Quit: Leaving.]
apeiros_ has joined #ruby
Ontolog has joined #ruby
bbttxu has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
berkes has quit [Quit: Ex-Chat]
BeLucid has quit [Ping timeout: 248 seconds]
Markvilla has quit [Quit: Markvilla]
<tds> if someone can help answer this, i will be grateful: http://stackoverflow.com/questions/11399276/inconsistent-behaviour-with-instance-eval
TPFC-SYSTEM has joined #ruby
<rking> tds: Hehe. This is kind of confusing to me. =)
<Mon_Ouie> That's because your method is bound to the instance of B
bigoldrock has joined #ruby
<rking> (all the a's and b's)
sailias has quit [Quit: Leaving.]
<tds> Mon_Ouie: but instance_eval is meant to override the binding
<Mon_Ouie> You can't change self in the proc, no matter how you try
kvirani has quit [Remote host closed the connection]
<tds> i guess my assumption was was that a method once converted to a proc just acted like a proc
busybox42 has quit [Ping timeout: 244 seconds]
<Mon_Ouie> That's not related to the binding, Method#to_proc could be implemented like: m = self; proc { |*args, &block| m.call(*args, &block) }
daniel_hinojosa has joined #ruby
williamcotton has joined #ruby
roolo has quit [Quit: Linkinus - http://linkinus.com]
<tds> but my other proc has a binding to B as well, it just gets overwritten by instance_eval
<tds> it just seems arbitrary to say that one binding is 'harder' than the other
<Mon_Ouie> When I say "bound to the B instance", I'm talking about the method object
<tds> i know
<tds> but im not passing the method object
<tds> im passing a proc, aren't i?
Goles has quit [Read error: Connection reset by peer]
schaerli has joined #ruby
hynkle has quit [Quit: Computer has gone to sleep.]
imami|afk is now known as banseljaj
<tds> like if i do a puts on that proc, it will just evaluate to #<Proc:0x007f818c086988 (lambda)>
<Mon_Ouie> Sure, created from the method object — so all that proc does, is call the method object
<tds> oh ok
Araxia has joined #ruby
<tds> that makes sense
BeLucid has joined #ruby
<tds> thanks Mon_Ouie :)
<Mon_Ouie> Also, there's a reason you can't call a method from some class on an object of another class
<tds> what do you mean?
<Mon_Ouie> Imagine what it would do when the method is actually implemented as a C function
apok has joined #ruby
jimeh has quit [Ping timeout: 240 seconds]
bricker88 has joined #ruby
<tds> but
<tds> if i made it in an unbound method, i could rebind it
<Mon_Ouie> No you couldn't, it would raise an exception
<tds> really?
<Mon_Ouie> Yep
<tds> interesting
wallerdev has quit [Quit: wallerdev]
krusty_ar has joined #ruby
krusty_ar has quit [Remote host closed the connection]
berserkr has joined #ruby
<tds> Mon_Ouie: what would it do if it were implemented as a C function?
<tds> imagination is failing me ;)
allenathome has joined #ruby
<Mon_Ouie> e.g. if you tried to call Array#push on a hash
<Mon_Ouie> Since C functions don't usually bother to check the type of self because it should be known, it would treat the hash as an array — and crash
busybox42 has joined #ruby
<blazes816> Mon_Ouie, what a wonderfully correct answer
yonggu has quit [Quit: yonggu]
jeff_sebring has quit [Remote host closed the connection]
tatsuya_o has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
baphled_ has quit [Ping timeout: 264 seconds]
<tds> thanks a lot, Mon_Ouie
<tds> you have helped to resolve much uncertainty :)
clockwize has quit [Ping timeout: 264 seconds]
allenathome has left #ruby [#ruby]
c0rn_ has joined #ruby
schaerli has quit [Remote host closed the connection]
tatsuya_o has quit [Ping timeout: 264 seconds]
jeff_sebring has joined #ruby
jeff_sebring has quit [Remote host closed the connection]
quest88 has quit [Quit: quest88]
Lachryma has quit [Ping timeout: 248 seconds]
Targen has quit [Ping timeout: 248 seconds]
ringotwo has joined #ruby
timonv has quit [Remote host closed the connection]
allenathome has joined #ruby
allenathome has quit []
neku is now known as neku|away
allenathome has joined #ruby
MickeySoFine has joined #ruby
paulpalm has quit [Quit: leaving]
<MickeySoFine> hi all
elhu has quit [Ping timeout: 246 seconds]
<MickeySoFine> I'm learning ruby and I'm having a problem when I've installed rails using gem
<Tasser> MickeySoFine, ruby != rails
brianpWins has joined #ruby
<Tasser> MickeySoFine, what do you want to learn exactly?
ixti has quit [Ping timeout: 264 seconds]
<MickeySoFine> its not that I want to learn its that I've got a probelm using rhe rails gem
<MickeySoFine> i get /usr/bin/rails:7:in `require': no such file to load -- rails/cli (LoadError)
williamcotton has quit [Ping timeout: 264 seconds]
<oddmunds> you don't want to learn?
<MickeySoFine> when I run rails or vagrant after a brand new install
williamcotton has joined #ruby
<MickeySoFine> its seems to be that ruby is not finding them properly
kpshek_ has joined #ruby
robacarp has joined #ruby
allenathome has quit [Client Quit]
kpshek has quit [Ping timeout: 246 seconds]
kpshek_ is now known as kpshek
dankest has joined #ruby
robozahn has joined #ruby
<MickeySoFine> but I have checked the env settings for gems and they seem to point to the right locations
<oddmunds> i'd ask the vagrant people or the rails people
akem has joined #ruby
akem has joined #ruby
akem has quit [Changing host]
berserkr has quit [Remote host closed the connection]
apok has quit [Remote host closed the connection]
<blazes816> MickeySoFine, try asking in #rubyonrails
apok has joined #ruby
hynkle has joined #ruby
Ontolog has quit [Remote host closed the connection]
stewart_ has joined #ruby
hynkle has quit [Client Quit]
Ontolog has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
Beoran__ has quit [Ping timeout: 265 seconds]
pdelgallego has quit [Read error: Connection reset by peer]
pdelgallego has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
JustinCampbell has joined #ruby
mdszy has joined #ruby
brianpWins has quit [Quit: brianpWins]
kevinbond has quit [Quit: kevinbond]
ramblex has quit [Ping timeout: 244 seconds]
pk1001100011 has quit [Quit: I've got a feeling there's a fish in the floor; I'd better squish it or he'll swim out the door; Sometimes they take me for a walk in the sun; I see my fish and I have to run]
kaisukaru__ has quit [Quit: Leaving]
johnlcox has quit [Ping timeout: 244 seconds]
MickeySoFine has quit [Quit: Leaving]
mdszy has quit [Client Quit]
mdszy has joined #ruby
pdelgallego has quit [Remote host closed the connection]
pk1001100011 has joined #ruby
jgrevich has joined #ruby
kaspernj has joined #ruby
wallerdev has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
minijupe has joined #ruby
sam113101 has joined #ruby
Beoran has joined #ruby
slainer68 has quit [Remote host closed the connection]
LBRapid has joined #ruby
Rochefort has quit [Remote host closed the connection]
minijupe has quit [Client Quit]
hynkle has joined #ruby
hynkle has quit [Client Quit]
Morkel has quit [Quit: Morkel]
LifeSF has joined #ruby
<sernin> OK, regexp problem. I have a regex that when given a sample line of input (in pry, or on the web at rubular), matches just fine. When run from inside a script, it doesn't match. I've made sure the regexp is correct, but are there any other common gotchas to this?
SegFaultAX|work2 has joined #ruby
<oooPaul> Make sure the input in your script is what you think it is?
voodoofish430 has joined #ruby
sbanwart has joined #ruby
<ekaleido> i always get bit by runaway \n
<oooPaul> Yeah, that's one of the examples I was thinking of.
<oooPaul> Especially if your regex is bound to "end of string"
obryan has joined #ruby
mwilson_ has quit [Excess Flood]
shavus has joined #ruby
<sernin> Yeah, I thought of that and removed the /Z. It's using IO.foreach to read line by line. Let me try the \n thing.
mwilson_ has joined #ruby
LifeSF has quit [Ping timeout: 255 seconds]
<sernin> ...no dice.
MasterIdler_ has joined #ruby
jds has joined #ruby
<jds> Heya
jstew has joined #ruby
tewecske has joined #ruby
bondar has joined #ruby
<jds> I'm doing some timezone stuff with ActiveSupport. I'm starting with a string (eg "2012-07-09 17:23:44 +0100"), and would like to know its timezone. Time.parse correctly figures out the timezone, but the return value is converted to UTC, so Time.parse(foo).zone isn't helpful
sailias has joined #ruby
ananthakumaran has quit [Ping timeout: 240 seconds]
<sernin> http://pastie.org/4226848 <-- maybe I'm just doing something retarded. Just trying to get it to match, will do more interesting stuff later when I can populate the f'n match
<jds> I can see ways of hacking it with my own string parsing, but wondered if there was an official way.
kvirani has joined #ruby
IrishGringo has quit [Quit: ChatZilla 0.9.88.2 [Firefox 13.0.1/20120614114901]]
greasegum has joined #ruby
<sernin> The frustrating thing is that it works in pry.
bondar has quit [Client Quit]
bondar has joined #ruby
bondar has quit [Client Quit]
btanaka has joined #ruby
bondar has joined #ruby
bondar has quit [Excess Flood]
Lachryma has joined #ruby
shavus has quit [Remote host closed the connection]
dankest has quit [Quit: Leaving...]
mpereira has joined #ruby
yy is now known as awayy
<regedarek> Hi, i have simple problem: how to replace insert in this loop: https://gist.github.com/3077828
fayimora has joined #ruby
pdelgallego has joined #ruby
bluenemo has quit [Remote host closed the connection]
RainbowDashh has joined #ruby
awayy is now known as yy
cmaujean has quit [Ping timeout: 265 seconds]
Eldariof-ru has joined #ruby
neku|away is now known as neku
SQLStud has joined #ruby
<patient> hi regedarek, with insert you're always well... inserting a new character
adamkittelson has joined #ruby
<patient> if you want to modify a character, you can use str[index] = new char
shavus has joined #ruby
Seus has joined #ruby
r0bby has joined #ruby
cmaujean has joined #ruby
lxsameer has quit [Quit: Leaving]
ephemerian has joined #ruby
ken_barber has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
<patient> in your case i think you want something like
ken_barber has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
<patient> user.username = "#{prefix}#{email_part}"
cj3kim has joined #ruby
hynkle has joined #ruby
hynkle has quit [Client Quit]
<cj3kim> yo
Cicloid has joined #ruby
RainbowDashh has quit [Read error: Connection reset by peer]
minijupe has joined #ruby
ananthakumaran has joined #ruby
bluenemo has joined #ruby
RainbowDashh has joined #ruby
minijupe has quit [Client Quit]
bluenemo has quit [Remote host closed the connection]
ramblex has joined #ruby
andrewpthorp has joined #ruby
<bricker88> Is there any advantage in performance between a class method to which you pass the instance, and an instance method? Specifically, it's a method that is going to be called a lot in a short amount of time. Is it better for performance to do it one by one per instance, or just have one big class method that accepts an array of instances and iterates through them?
minijupe has joined #ruby
MasterIdler_ is now known as MasterIdler
aroman has quit [Quit: aroman]
<blazes816> bricker88, shouldn't be difficult to benchmark
kaspernj has quit [Read error: Operation timed out]
<bricker88> definitely, just wanted to see if it was common knowledge before I went ahead and did that. Thanks.
Horofox has quit [Quit: horofox]
<blazes816> not that I know of
ananthakumaran1 has joined #ruby
soulcutter has joined #ruby
<blazes816> it sounds like an interesting experiment.
ananthakumaran has quit [Ping timeout: 244 seconds]
tiripamwe has joined #ruby
_pdelgallego has joined #ruby
pdelgallego has quit [Read error: Connection reset by peer]
_pdelgallego has quit [Client Quit]
<mdszy> sj
<mdszy> whoops, derp
Seus has quit [Ping timeout: 248 seconds]
jsilver has joined #ruby
mpereira has quit [Ping timeout: 246 seconds]
soulcutter is now known as Sou|cutter
mdszy has quit [Quit: bye for now]
Seus has joined #ruby
fantazo has quit [Remote host closed the connection]
mpereira has joined #ruby
<cheako> Sorry, I passed out last night.
syamajala has joined #ruby
shadoi has joined #ruby
bj0ern has quit [Ping timeout: 244 seconds]
RainbowDashh has quit [Ping timeout: 246 seconds]
Criztian has quit [Remote host closed the connection]
daniel_hinojosa has quit [Remote host closed the connection]
cbuxton has quit [Quit: Leaving.]
Seus has quit [Quit: Seus]
a_a_g has joined #ruby
daniel_hinojosa has joined #ruby
Criztian has joined #ruby
beilabs has quit [Read error: Operation timed out]
<cheako> I'll bbl.
ananthakumaran1 has quit [Quit: Leaving.]
<regedarek> patient: thanks :)
adeponte has joined #ruby
Seus has joined #ruby
RainbowDashh has joined #ruby
a_a_g has quit [Ping timeout: 248 seconds]
nachtwandler_ has joined #ruby
etehtsea has joined #ruby
ramblex has quit [Quit: ramblex]
<patient> ;)
ramblex has joined #ruby
blazes816 has quit [Quit: Leaving]
mucker has quit [Quit: leaving]
robozahn_ has quit [Ping timeout: 265 seconds]
robozahn has quit [Ping timeout: 265 seconds]
robozahn1 has quit [Ping timeout: 265 seconds]
a_a_g has joined #ruby
nachtwandler has quit [Ping timeout: 245 seconds]
kenichi has joined #ruby
moisesv has quit [Quit: moisesv]
Kwpolska has quit [Read error: Operation timed out]
fermion has quit [Quit: P]
A124 has joined #ruby
linoj has joined #ruby
A124 has left #ruby [#ruby]
beilabs has joined #ruby
anothervenue has joined #ruby
LifeSF has joined #ruby
davidpk has joined #ruby
trend has joined #ruby
Ontolog has quit [Remote host closed the connection]
TorpedoSkyline has quit [Quit: Computer has gone to sleep.]
cbuxton has joined #ruby
Ontolog has joined #ruby
_theriffer_ has quit [Quit: Leaving.]
_theriffer_ has joined #ruby
Tricks has quit [Read error: Operation timed out]
Ontolog has quit [Remote host closed the connection]
sbanwart has quit [Remote host closed the connection]
fayimora has quit [Ping timeout: 245 seconds]
kirun has joined #ruby
fayimora has joined #ruby
mrsolo has joined #ruby
Ontolog has joined #ruby
Ontolog has quit [Remote host closed the connection]
Tricks has joined #ruby
Ontolog has joined #ruby
MatthewGA has quit [Ping timeout: 265 seconds]
baphled has joined #ruby
MatthewGA has joined #ruby
bosphorus has quit [Remote host closed the connection]
dv310p3r has quit [Ping timeout: 264 seconds]
cascalheira has quit [Quit: cascalheira]
LifeSF has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
neku is now known as neku|away
robacarp_ has joined #ruby
robacarp_ is now known as Guest82153
jsime has quit [Remote host closed the connection]
neku|away is now known as neku
cpruitt has joined #ruby
jsime has joined #ruby
kirun_ has joined #ruby
robacarp has quit [Ping timeout: 264 seconds]
mdszy has joined #ruby
kirun has quit [Ping timeout: 252 seconds]
TPFC-SYSTEM has quit [Quit: TPFC-SYSTEM]
jstew has quit [Quit: Lost terminal]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
rizzy_work has left #ruby ["Leaving"]
rizzy_work has joined #ruby
blazes816 has joined #ruby
kirun_ has quit [Ping timeout: 260 seconds]
dv310p3r has joined #ruby
<Synthead> how do I get an exit status from PTY.span in 1.8?
Seus has quit [Ping timeout: 246 seconds]
<Synthead> s/span/spawn/
berkes has joined #ruby
blacktulip has quit [Remote host closed the connection]
mariachi has joined #ruby
zeromodulus has joined #ruby
blacktulip has joined #ruby
mariachi has quit [Quit: WeeChat 0.3.8]
<sernin> For those who looked at my regex question earlier... /ix was in the wrong place. No shit it never matched...argh.
<sernin> note to self: %r{foo}ix not %r{foo/ix}
thomas is now known as bellz
bellz is now known as tdubellz
jarred has joined #ruby
mariachi has joined #ruby
kirun has joined #ruby
<mariachi> hey guys! I'm having some trouble with RMagick: http://pastebin.com/Am69zKuC I'm not familiar with ruby, did I install it correctly? I did "gem install rmagick"
Randokai has joined #ruby
<cheako> Make sure that `gem install eventmachine -v '0.12.10'` succeeds before bundling.
<enroxorz> rmagick is a bitch
stephenjudkins has joined #ruby
<enroxorz> mariachi: did you follow the instructions when you downlaoded the zip?
<enroxorz> specifically, did you install the executable bundled with that zip?
<cheako> ruby-eventmachine is already the newest version.
a_a_g has quit [Ping timeout: 255 seconds]
<cheako> What can I be doing whong?
<cheako> apt-get -f install ruby-eventmachine=0.12.10-3
<enroxorz> cheako: dont install via apt-get
<blazes816> cheako, don't use apt for ruby packages
<enroxorz> those repos hold old info
<blazes816> use gems
<cheako> Better, have gems use apt.
<enroxorz> cheako: what version of gem do you have?
<cheako> 0.12.10
<blazes816> no, just forget apt
<xclite> do not have gems use apt.
<enroxorz> not the gem, of rubygem
<cheako> ohh.
<enroxorz> xclite: the apt-repo's gem is old
<enroxorz> very old
<cheako> rubygems 1.8.24-1
<enroxorz> cheako: what version of ruby are you using?
adeponte has quit [Remote host closed the connection]
<cheako> 4.9
flype has joined #ruby
<oddmunds> :O
<enroxorz> ?
<xclite> enroxorz: wrong person? I'm just saying gems shouldn't use apt to begin with haha
<cheako> Most pkgs from wheezy.
<enroxorz> lol xclite you are right. i thought you meant to install gems go apt
<blazes816> lol
<enroxorz> cheako: open a terminal and do ruby -v for me
<xclite> enroxorz: oh hell no. I swapped distros so I could stop dealing with the ruby/gem mess that is apt
<cheako> ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
<enroxorz> if your using >1.9 gems is already in and isntalling event machine is just gem isntall eventmachine
<enroxorz> no apt
<enroxorz> xclite: i still stick with ubuntu. thank god for rvm, amirite?
kirun has quit [Ping timeout: 260 seconds]
<enroxorz> crap. cheako forgot
<enroxorz> sudo gem install eventmachine
<xclite> enroxorz: RVM is nice. I just stick to pretty new stuff so I just keep arch up to date with whatever version of ruby i'm u sing
<enroxorz> xclite: i would go arch but i dont trust rolling releases. heard ifconfig was depricated from arch and no longer there.
<cheako> K, I've got it. Half my gems are using another version of ruby.
<xclite> enroxorz: it's been an experience so far
<xclite> cheako: i had a fun time with that last night - had ruby 1.9 for my ruby version, but had a 1.8 version of gems and irb
<xclite> on my only remaining debian box
<enroxorz> xclite: arch is nice in theory, but i want to focus on developing my apps and not have to worry too much about the os not being stable
a_a_g has joined #ruby
mpereira has quit [Ping timeout: 244 seconds]
<enroxorz> cheako: if you arent using 187 i suggest cleaning out all your gems and removing 187 from your box.
<cheako> Yeah, I did that... and I'm finding without it I can't install "rubygems".
stephenjudkins has quit [Quit: stephenjudkins]
troulouliou_dev has joined #ruby
mpereira has joined #ruby
<enroxorz> 1.9.x should have gems already installed.
<troulouliou_dev> hi i have an hash with 12000 key value in it ; all the key are strings
<enroxorz> cheako: have you played with rvm yet?
<cheako> ruby-passenger ruby-rails-2.3 rubygems <--- these all need the ruby from squeese.
<troulouliou_dev> should i convert them to symbol to improve lookup speed ?
daniellutz has joined #ruby
<enroxorz> cheako: just a suggestion. purge all ruby implementations and use rvm
<enroxorz> just a lot easier to use on debian based oses
bluenemo has quit [Quit: Verlassend]
<enroxorz> pm me if you need help
<cheako> enroxorz: The Debian way is to split up source pkgs into smaller blocks for installation. Though it's upto the maintainer to decide what to do.
<cheako> enroxorz: So just because you have ruby installed does not mean you have every thing from the ruby source pkg installed.
<cheako> Hmm, I only want one version of ruby... Unless that will let me use gems cross versions?
<enroxorz> im confused in what you are trying to accomplish. do you want to depend on deb packages or depend on gems which are more up to date
LifeSF has joined #ruby
<cheako> You all know that an apllication developer writes an application once and hten admins install that application a bunch... So anything that makes things difficult for the admin, no matter how necessary for the application developer is a loosing proposition. I'd have to say that Ruby lost.
tvw has quit [Remote host closed the connection]
<blazes816> cheako, no, the deb package maintainers lost.
<enroxorz> cheako: see, now you are being rather mean and ignorant. Ruby is really easy to maintain as long as you know how to use itr outside of deb packages
<cheako> enroxorz: My only requirement is that I can get support and security updates using unaatended-upgrades.
<blazes816> then do it
<blazes816> with gems
mdhopkins has joined #ruby
<enroxorz> rvm was implemented because the maintainers of said packages were rather slow to update them. Not their faults, they are volunteers and work on tons of other stuff
<cheako> enroxorz: That's the thing isn't it. If every application has it's own thins "outside of every thing else." Then it's dissruptive to admins.
LifeSF has quit [Client Quit]
<cheako> ...so don't balze your own train until you can get apt to follow.
<blazes816> if your admin can only work with deb packages, you need a new one stat
RainbowDashh has quit [Read error: Connection reset by peer]
<enroxorz> cheako: if an linux sys admin cant handle ruby gems they sghouldnt mess with them
RainbowDashh has joined #ruby
<enroxorz> its easier than deb repos
<enroxorz> sorry
<enroxorz> i dont want to sound harsh but you arent listening to anything we are saying
brianpWins has joined #ruby
g0bl1n has quit [Ping timeout: 240 seconds]
wangr has quit [Remote host closed the connection]
<cheako> Where is the distribution? Is there a distribution that uses gems? Why should I learn two ways of doing the same thing.
<enroxorz> ok cheako
<enroxorz> gems are for the ruby MRI only
<cheako> I think you've lost touch with what is useful to others.
<enroxorz> there are cli bins available but as for ruby, gems are how you bring libs in
<cheako> Are only concerned about what you find useful.
<enroxorz> this is on top of your linux stack
wangr has joined #ruby
<cheako> kk, Where is the security repo for gems?
<cheako> Where can I get updates on issues and nessisary upgrades?
<blazes816> from the gems repo
<enroxorz> gems are hosted in various places, but mostly github and rubygems.org
<enroxorz> you can build your own gem server if you want
<enroxorz> but these gem libraries are maintained by the devs themselves
<cheako> A mailing list or feed I can subscribe to?
<blazes816> depends on the gem
<enroxorz> cheako: gems are a way for grabbing libraries easily
<enroxorz> its like CPAN
<cheako> Where do you track CVEs?
<mariachi> I followed the README for RMagick, but it still doesn't work
<blazes816> on the gems' issue tracker
<enroxorz> *sigh* cheako I believe I am done.
<mariachi> same error as before
<blazes816> gem's*
xaq has quit [Read error: Connection reset by peer]
LUEshi has joined #ruby
<LUEshi> hello
<enroxorz> mariachi: is ImageMagick in your PATH?
<cheako> Yeah, AFAIK CPAN isn't a viable source of pacakges because there is no security verification. Installing things from there will get you hacked and botted.
<blazes816> lol
<blazes816> hacked and botted
<blazes816> can't argue with that
xaq has joined #ruby
<LUEshi> I need some ruby halp
<blazes816> just write your application in C so it's extra safe
<cheako> Bye, thanks for the info.
<enroxorz> cheako: gems, CPAN...these are to grab libraries to use with your app. beyond that there isnt any "security" repo.
<enroxorz> bye cheako
cheako has left #ruby ["Client exiting"]
Guest82153 is now known as robacarp
<LUEshi> like, im inside irb
banseljaj is now known as imami|afk
<enroxorz> wats up LUEshi
Eldariof-ru has quit []
<mariachi> enroxorz: no. how do I add it?
<LUEshi> oh hold on
<LUEshi> I have to try something first
axl_ has quit [Read error: Connection reset by peer]
<enroxorz> mariachi: im assuming you are on windows right?
<mariachi> ah sorry
<mariachi> Linux ;)
<enroxorz> ok
axl_ has joined #ruby
LUEshi2 has joined #ruby
<LUEshi2> ok so, <im in irb
<enroxorz> mariachi: you need to edit your .bashrc to add it
<enroxorz> let me find an article for you
<LUEshi2> and on a certain webpage
Markvilla has joined #ruby
<LUEshi2> I go
<LUEshi2> s = b.text_field :id => 'b'
<enroxorz> wait, forget it. at the end of your .bashrc add PATH=$PATH:/path/to/imagemagick
<LUEshi2> and it doesnt work
Markvilla has quit [Client Quit]
Markvilla has joined #ruby
<LUEshi2> it says this : #<Watir::TextField:0x7fdb426c2170 located=false selector={:type=>"(any text type)", :tag_name=>"input or textarea", :id=>"b"}>
<enroxorz> LUeshi2 is this a watir question?
<LUEshi2> yes
<enroxorz> you need to get the value
<enroxorz> s = b.text_field(:id => 'b').value
tommyvyo_ has joined #ruby
<mariachi> enroxorz: thanks!
dv310p3r has quit [Ping timeout: 264 seconds]
<enroxorz> np mariachi tell me if it works
<LUEshi2> ?
<LUEshi2> i need to add .value?
<enroxorz> yes
<enroxorz> that is how you get the text value
<enroxorz> you should try #watir for these kinds of questions :)
<LUEshi2> Watir::Exception::UnknownObjectException: unable to locate element, using {:type=>"(any text type)", :tag_name=>"input or textarea", :id=>"b"}
<LUEshi2> from /usr/local/lib64/ruby/gems/1.8/gems/watir-webdriver-0.6.1/lib/watir-webdriver/elements/element.rb:365:in `assert_exists'
<LUEshi2> I will
<enroxorz> is the ID correct?
<enroxorz> Can you try name?
<enroxorz> LUEshi2: pastebin it for me
uris has quit [Ping timeout: 244 seconds]
Eldariof-ru has joined #ruby
<LUEshi2> ok
tommyvyo has quit [Ping timeout: 244 seconds]
tommyvyo_ is now known as tommyvyo
rdg has joined #ruby
IrishGringo has joined #ruby
<enroxorz> ok LUEshi2 I should have started with "what are you trying to do"
<rking> Hrm. How can I extract common class stuff from 2 classes? E.g., say I had Admin and Peon classes, but I needed both of their classes to call some common stuff in the declaration.
mdszy has quit [Quit: bye for now]
flype has quit [Quit: Computer has gone to sleep.]
<LUEshi2> im tring to put my username into a field
mariachi has quit [Ping timeout: 248 seconds]
cherrypeel has joined #ruby
<enroxorz> son of tatum oneim
<enroxorz> neil
mpereira has quit [Ping timeout: 250 seconds]
<enroxorz> b.text_field(:id => 'whatever').set "THIS IS WHAT I WANT TO SAY!"
Eldariof-ru has quit [Client Quit]
<enroxorz> also remember there is a watir-console
<LUEshi2> it gives the error i showed
<LUEshi2> whats a watir console?
<shevy> rking: see this is where traditional single-hierarchy subclassing tends to just suck
<shevy> or you let them subclass from the same class
<shevy> or use a module
Criztian has quit [Remote host closed the connection]
<patient> rking: can't you create a base class with the common behavior and then define class Admin < BaseClass?
<enroxorz> LUEshi2: couple of questions. what version of WATIR? is this watir-webdriver or classic watir? did you get the name/id from the element you are entering text in?
<LUEshi2> yes its b
<rking> patient: Here's the sketch: https://gist.github.com/ea1e7ebf3e07bddc82a3
<LUEshi2> I dont know what version it is, this is my first time ever with ruby
<patient> sorry, didn't saw shevy had already answered
<enroxorz> no worries
<rking> Urr, I goofed it up a bit.
<LUEshi2> actually with any prog language
<enroxorz> do this for me LUEshi2. open up a terminal and type in gem list watir
<enroxorz> should have the number there
<enroxorz> what OS are you on?
<LUEshi2> 0.6.1
<rking> This is more what I meant: https://gist.github.com/90b2ef4be88f658cfcba
<LUEshi2> gentoo
TorpedoSkyline has joined #ruby
<blazes816> rking, minus the User module inheriting from "Base", that should work nicely
<enroxorz> ok, you are using watir-webdriver. hav eyou played with this before LUEshi2 ?
<theRoUS> ruby 1.8.7: got a question about testing.. i have a gem that involves multiple versions of an api. each version is defined in a separate file. when you 'require "mygem"' you either get the latest version, or the one matching the API_VERSION constant defined before requiring the gem.
<LUEshi2> I just tested the watir demo thing on their frontpage, I tried to apply it to my website and it doesnt work
<rking> blazes816: Hrm, right.
<rking> blazes816: But the common parts are coming from Base, so I have to get them somehow.
yy is now known as AWAYY]]]]]]]]]]]
<theRoUS> the question is, how do i test this? (use default version, use specified version, varf if given bogus version) 'require' does some serious munging of the namespace environment
<blazes816> rking, then you should just be able to have A and B inherit from Base
<Synthead> is there some way I can catch all exceptions from OptionParser? It'd be nice to rescue the same way for OptionParser::MissingArgument and OptionParser::InvalidOption
<Synthead> like OptionParser::* or something
<rking> blazes816: OK, but then how do I refactor the common calls to the stuff from Base?
cj3kim has quit [Quit: This computer has gone to sleep]
<theRoUS> so i expect i'll need to have a completely separate file for each circumstance.
dv310p3r has joined #ruby
daniel_hinojosa has quit [Quit: Leaving.]
<blazes816> rking, not sure what you mean. If Base is a class you've created, put your code in there. Otherwise, subclass Base as "Person" or whatever, then subclass A and B from that.
davidw has joined #ruby
rdg has quit [Quit: [quit]]
davidw is now known as Guest86273
<rking> blazes816: Actually, in this case I think I have to reopen the class. Thanks for setting me in the right direction.
workmad3 has joined #ruby
* theRoUS looks hopefully in the direction of the wizard apeiros_
<apeiros_> hm?
<theRoUS> apeiros_: working a gem that includes an api def, version determined at run-time. how to write tests for something whose basic function is 'require' ?? :-)
<apeiros_> you start by requiring it…
<theRoUS> each test will pollute the environment
<apeiros_> fork
<apeiros_> spawn
<apeiros_> load into an anonymous namespace
<theRoUS> heh. 'API_VERSION = "7.1" ; require("apiload")' will load version 7.1 of the api.
chienpo has joined #ruby
TorpedoSkyline has quit [Ping timeout: 244 seconds]
kevinbond has joined #ruby
Randokai has quit [Ping timeout: 250 seconds]
Ontolog has quit [Remote host closed the connection]
<theRoUS> hmm, anonymous namespace? never heard of that, nor how to load into other than the top level. that might be the answer. know of any gems that have tests doing the fork/spawn thing?
tiripamwe has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
fridim_ has joined #ruby
erichmenge has quit [Quit: Be back later]
workmad3 has quit [Ping timeout: 264 seconds]
syamajala has quit [Remote host closed the connection]
Nisstyre has quit [Ping timeout: 246 seconds]
Ontolog has joined #ruby
daniel_hinojosa has joined #ruby
bosphorus has joined #ruby
jameshyde has joined #ruby
IrishGringo has quit [Remote host closed the connection]
<jameshyde> Is this possible, if using OptionParser, to handle verbose mode like this: "-v" means verbose, "-vv" means more verbose, "-vvv" means even more verbose?
a_a_g has left #ruby [#ruby]
<blazes816> lol
<blazes816> that's a high amount of verbosity
TorpedoSkyline has quit [Ping timeout: 244 seconds]
a_a_g has joined #ruby
<blazes816> but there's no reason you shouldn't be able to. Have a variable called "verbosity_level" or something.
<blazes816> that can be 0, 1, or 2
a_a_g has quit [Client Quit]
<jameshyde> if you look at "man lspci", it has "-v", "-vv", "-vvv"
<apeiros_> I think optionparser does not like single - args with multiple mentions
<apeiros_> --vv would work, or -v, -v2, -v3
<jameshyde> ok
schaerli has joined #ruby
daniel_hinojosa has quit [Read error: Connection reset by peer]
arturas has joined #ruby
linoj has quit [Quit: linoj]
nachtwandler_ has quit [Ping timeout: 244 seconds]
thone has joined #ruby
daniel_hinojosa has joined #ruby
itnomad has joined #ruby
syamajala has joined #ruby
mariachi has joined #ruby
ghanima has joined #ruby
daniel_hinojosa has quit [Remote host closed the connection]
tiripamwe has joined #ruby
zommi has quit [Remote host closed the connection]
maletor has joined #ruby
mpereira has joined #ruby
twock has quit [Quit: Lost terminal]
dsa has joined #ruby
<Xethron> With arrays you can go arr[0..2] = [1,2,3]
radu has joined #ruby
<Xethron> Is there something similar for hash tables?
IrishGringo has joined #ruby
ixti has joined #ruby
enroxorz has quit [Quit: Leaving]
strife25 has joined #ruby
syamajala has quit [Remote host closed the connection]
<apeiros_> no
<apeiros_> there is merge
blacktulip has quit [Read error: Connection reset by peer]
thone has quit [Quit: leaving]
blacktulip has joined #ruby
Axsuul has joined #ruby
EzeQL has quit [Ping timeout: 265 seconds]
mariachi has quit [Quit: WeeChat 0.3.8]
<Xethron> :(
AlbireoX` has joined #ruby
kjellski has joined #ruby
andrewpthorp has quit [Quit: Linkinus - http://linkinus.com]
fantazo has joined #ruby
ken_barber has quit [Remote host closed the connection]
Berglund has joined #ruby
sepp2k1 has joined #ruby
blacktulip has quit [Remote host closed the connection]
oscardelben has joined #ruby
s1n4 has joined #ruby
[Neurotic] has joined #ruby
sepp2k has quit [Ping timeout: 264 seconds]
troulouliou_dev has left #ruby ["Leaving"]
bbttxu has quit [Quit: bbttxu]
bglusman has quit [Remote host closed the connection]
dsa has quit []
workmad3 has joined #ruby
Jaxel has joined #ruby
<Jaxel> hello
axl_ has quit [Read error: Connection reset by peer]
oscardelben has quit [Quit: oscardelben]
<Jaxel> i am having trouble using a gem called 'ocra'
axl_ has joined #ruby
<Jaxel> it is telling me bad file descriptor (errno::EBADF)
<Jaxel> on this line: @of << [OP_CREATE_FILE, tgt.to_native, str.size, str].pack("VZ*VA*")
yxhuvud has quit [Ping timeout: 265 seconds]
Morkel has joined #ruby
strife25 has quit [Ping timeout: 246 seconds]
s1n4 has left #ruby ["Leaving"]
<Jaxel> golly i hope one of the 700 people in this channel is around
strnx has quit [Quit: Hosted by rdlBNC (Server 4 - United Kingdom)]
<cherrypeel> golly, even if one of them was, the might not know what your issue is
kevinbond has quit [Ping timeout: 255 seconds]
<Jaxel> golly, i just said it up there
<blazes816> a single line of code and a single error, does not an accurate problem description make
verto is now known as verto|off
<Jaxel> posted about it here: https://github.com/larsch/ocra/issues/52
<Jaxel> it appears to be unable to write the file
verto|off is now known as verto
<Jaxel> i don't think it has anything to do with the name, since i tried a couple, including recompiling files i'd used it on successfully in the past
kevinbond has joined #ruby
Guest86273 is now known as davidw
davidw has quit [Changing host]
davidw has joined #ruby
robozahn has joined #ruby
robozahn_ has joined #ruby
bglusman has joined #ruby
oscardelben has joined #ruby
noganex has quit [Read error: Operation timed out]
<jameshyde> is there an easy way to print elements of array in 2 or 3 columns in 80 char wide screen, aligned nicely?
workmad3 has quit [Read error: Operation timed out]
zeromodulus has quit [Ping timeout: 246 seconds]
noganex has joined #ruby
<shevy> Jaxel: problem is that this is a very narrow problem use case. for instance, of the people here, most dont know ocra at all, and most use non-windows as their OS
daniel_hinojosa has joined #ruby
<shevy> jameshyde: sprintf or % operator
<Jaxel> its possible
apeiros_ has quit [Remote host closed the connection]
<shevy> '%20s' % "abcdef" # => " abcdef"
<jsilver> ironruby's better
<shevy> jameshyde: also ... lpad or ljust...
<blazes816> jsilver, better than a difference engine?
<jsilver> what is
<Nowaker> is there ?. (null safe operator) in ruby?
<shevy> "abc".ljust 22 # => "abc "
oscardelben has quit [Quit: oscardelben]
<blazes816> jsilver, you said IronRuby is better. Better than what?
<shevy> null safe operator? what is this doing?
<jsilver> Nowaker: !!
<jsilver> blazes816: OCRA
<blazes816> ah
<Jaxel> jsilver: can it make things windows users can run
<Jaxel> without the ruby framework
<jsilver> Jaxel: this is the point of IronRuby
<jsilver> it's Ruby on top of .NET framework
<Jaxel> awesome, thanks
<jsilver> np
<Jaxel> i'll check it out
<jsilver> cool
<Nowaker> shevy: if var is null then return null else call method - it's in groovy like this: var?.do_sth?.do_something_more
<Jaxel> no, you're cool B)
<jsilver> thanks
bigkevmcd has quit [Ping timeout: 264 seconds]
<shevy> aha. well ruby has nil
<shevy> foo? would be a method call in ruby. "def foo?"
<Nowaker> yeah, i know, coding in ruby for 1,5 years
<shevy> otherwise you could try to use the ternary operator ?
schaerli has quit [Remote host closed the connection]
<Nowaker> but this nil-safe method call would be great in ruby
<Nowaker> i'm always angry when I have to write something like this:
geekbri has quit [Remote host closed the connection]
wargasm has quit [Read error: Connection reset by peer]
<jsilver> Nowaker: try disabling whiny nils
<Nowaker> var = ARGV[0].nil? ? nil : ARGV[0]
havenn has joined #ruby
<otters> that doesn't make any sense
<otters> var = ARGV[0] does the same thing
<Nowaker> yeah, bad example
<jsilver> true
<Nowaker> var x = ARGV[0].nil? nil : ARGV[0].some_method_call
<Nowaker> you get the point
Maniacal has joined #ruby
tiripamwe has quit [Ping timeout: 264 seconds]
<shevy> I don't like the ternary operator anyway :)
jgrevich has quit [Read error: Connection reset by peer]
jgrevich has joined #ruby
<Nowaker> jsilver: whiny nils? isn't it something from rails?
<shevy> my brain takes too long to process it. I write only very simple code so as to not confuse my poor brain
<jsilver> same idea
sailias has quit [Read error: Operation timed out]
Markvilla has quit [Quit: Markvilla]
<jsilver> override method messing on nil
<otters> Nowaker: class Object; def try(meth, *args, &blk) if nil? then nil else send(meth, *args, &blk) end end end
<Nowaker> shevy: yeah, i prefer var x = sth if condition
<shevy> jsilver: method messing? heheheh :D
<blazes816> Nowaker: x = ARGV[0].method_call rescue nil
<otters> I don't much like rescue nil
<shevy> I am gonna mess with your methods if you mess with mine!
<blazes816> me either
<jsilver> begin ARV[0].method_call rescue end
<shevy> yeah Nowaker
<blazes816> but he seems to want a 1 liner
<Nowaker> otters: thx, good idea
<otters> with my helper method
<otters> anything can be a one liner
<shevy> or return true if x > y; return false # on next line
<Nowaker> shevy: yup, same here
erichmenge has joined #ruby
kaspernj has joined #ruby
wargasm has joined #ruby
<the_jeebster1> hi guys, I'm using the following format for a datetime strftime: "%B %d, %Y %I:%M %p" however, this fails out when using the ruby csv module. any ideas why?
<the_jeebster1> not fails, but my formatting doesn't match
<otters> well
<otters> is that your output format? (strftime not strptime)
bbttxu has joined #ruby
<the_jeebster1> yeah, this is how I'm calling it in my method: order.created_at.getlocal.strftime("%B %d, %Y %I:%M %p")
<otters> what is the error exactly?
<the_jeebster1> no error, just strange output. I'm getting this: 7/5/12 13:57
<the_jeebster1> it should be July 5, 2012 1:57 PM
<otters> huh
<otters> yeah, no kidding
<the_jeebster1> renders fine in html
<the_jeebster1> shits the bed with csv
flashuni has joined #ruby
bigkevmcd has joined #ruby
<the_jeebster1> ah, it
<the_jeebster1> fucking microsoft excel
<the_jeebster1> of course it's not ruby's fauly :)
<otters> oh :P
<otters> be careful around excel and inputting any type of data
Ontolog has quit [Remote host closed the connection]
Ontolog has joined #ruby
bigkevmcd has quit [Ping timeout: 265 seconds]
<shevy> ohhhh excel
berkes has quit [Quit: Ex-Chat]
<shevy> I need to find out how to use ruby to fill up excel sheets
<the_jeebster1> csv module ftw
chrismcg is now known as zz_chrismcg
<shevy> csv module? one can use the csv thing to fill up excel sheets?
<eam> csv is a format excel reads, so sure
Cicloid has quit [Remote host closed the connection]
<shevy> cool
<shevy> I need to test this
Deele has joined #ruby
t0mmyvyo has joined #ruby
<Deele> could anyone help me with rails? noone in that channel answers me...
<Deele> I'm creating app skeleton for new application (I'm newbie), everything is set up, but when starting, "NoMethodError: private method 'open'called for Ge::Package:Class" pops up, and rake IS already installed and all gems updated, running on windows machine
<otters> hm
daniellutz has quit [Read error: Connection reset by peer]
daniellutz has joined #ruby
daniellutz has quit [Read error: Connection reset by peer]
hynkle has joined #ruby
daniellutz has joined #ruby
mdpatrick has quit [Read error: Connection reset by peer]
mdpatrick has joined #ruby
havenn has quit [Remote host closed the connection]
<Deele> otters, are you familiar with this problem?
undersc0re is now known as Ethan
<otters> I'm sorry, I am not
niklasb has quit [Ping timeout: 264 seconds]
pu22l3r has quit [Ping timeout: 244 seconds]
daniellutz has quit [Read error: Connection reset by peer]
daniellutz_ has joined #ruby
wvms has joined #ruby
tomb has quit [Quit: Computer has gone to sleep.]
Ontolog has quit [Read error: Operation timed out]
davidw has quit [Read error: Operation timed out]
Ontolog has joined #ruby
tomb has joined #ruby
Morkel has quit [Quit: Morkel]
jsime has quit [Quit: Leaving]
krz has joined #ruby
tiripamwe has joined #ruby
redxoom has joined #ruby
workmad3 has joined #ruby
tewecske has quit [Quit: Leaving.]
<axl_> how do i require a ruby module example 'builder' within the lib directory of a project ?
vlad_starkov has quit [Remote host closed the connection]
hynkle has quit [Quit: Computer has gone to sleep.]
<axl_> require seems to look for it in lib itself
Nisstyre has joined #ruby
jimeh has joined #ruby
syamajala has joined #ruby
<Tasser> begin ; foo ; rescue ; sleep 1 ; retry ; end # viable pattern?
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
robacarp has quit [Ping timeout: 246 seconds]
kaspernj has quit [Quit: Leaving]
robacarp has joined #ruby
robacarp is now known as Guest76693
darkf has joined #ruby
abra has quit [Read error: Operation timed out]
joshman_ has quit [Ping timeout: 248 seconds]
ixti has quit [Quit: So Long, and Thanks for All the Fish!]
jgarvey has quit [Quit: Leaving]
<workmad3> Tasser: not one I'd trust, no
<workmad3> Tasser: no way for it to ever end if the exception really is one that can't be recovered from
greasegum has quit [Ping timeout: 264 seconds]
mjb2k has joined #ruby
<workmad3> axl_: what are you trying at the moment?
redxoom has quit [Ping timeout: 264 seconds]
theRoUS has quit [Quit: Leaving]
biesiad has joined #ruby
<axl_> I have a ruby project and am trying to convert some data to xml
<axl_> for that I try to require 'builder' but then it looks for it in my lib file rather than taking it from the ruby lib
<workmad3> axl_: do you actually mean a gem?
<axl_> well, no, for example
DrShoggoth has quit [Quit: Leaving]
shavus has quit []
<workmad3> axl_: or do you mean you have both a builder.rb file in your lib/ directory, but you're trying to pull in builder from the standard lib/gem?
saschagehlich has quit [Ping timeout: 246 seconds]
syamajala has quit [Remote host closed the connection]
<axl_> i want to do something equivalent to this:
<workmad3> axl_: right... do you have the Builder gem installed?
<axl_> but in a ruby file in the lib folder of my project
<axl_> no its not in the Gemfile
<workmad3> axl_: that's probably a good start :P
<axl_> i thought i get that with ruby automatically
<workmad3> nope
<axl_> then, how do i get it in rib ?
<axl_> err.. irb
<workmad3> probably got it installed in your gems, but because it's not in your Gemfile, you can't access it from your project
balki has joined #ruby
alanp_ has joined #ruby
<axl_> k
balki_ has quit [Read error: Connection reset by peer]
alanp has quit [Read error: Connection reset by peer]
<workmad3> bundler isolates your dependencies, so you can't access anything you haven't declared as a project dependency
hunglin has quit [Quit: Leaving.]
<workmad3> it does this for various good reasons, but it does cause issues when just learning :)
c0rn_ has quit [Quit: Computer has gone to sleep.]
biesiad has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
baphled has quit [Ping timeout: 265 seconds]
c0rn_ has joined #ruby
SQLStud has quit [Quit: Leaving]
SQLStud has joined #ruby
banisterfiend has joined #ruby
Enekoos has joined #ruby
Enekoos has quit [Client Quit]
biesiad has joined #ruby
biesiad has quit [Client Quit]
dv310p3r has quit [Ping timeout: 264 seconds]
stephenjudkins has joined #ruby
banisterfiend` has quit [Ping timeout: 265 seconds]
<chiel> how can I check which version of a gem I have installed?
syamajala has joined #ruby
zemanel has quit [Quit: Remote hottie closed the connection]
<davidcelis> gem list | grep <name>
<chiel> ah
<chiel> cool, thamk you
<chiel> thank even
<davidcelis> that's okay, i'll take your thamks as well
minijupe has quit [Quit: minijupe]
abra has joined #ruby
kenichi has quit [Remote host closed the connection]
<chiel> davidcelis: :D
MasterIdler has quit [Ping timeout: 265 seconds]
<chiel> so in a gemfile, if I specify `gem 'sinatra', '~1.3.2'` that basically means >= 1.3.2 && < 2.0.0, correct?
<chiel> err, ~>1.3.2
<davidcelis> i think so
<davidcelis> no
<davidcelis> sorry, it means >= 1.3.2 but < 1.4.0
greasegum has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
workmad3 has quit [Ping timeout: 246 seconds]
thone has joined #ruby
neku has quit [Quit: Linkinus - http://linkinus.com]
graspee has joined #ruby
<chiel> davidcelis: hmm, so if I wanted <2.0 I'd have to use ~>1.3 or so?
kenichi has joined #ruby
<shevy> where could I find an example .csv file?
jsilver has quit [Remote host closed the connection]
<graspee> google "example csv file"
<graspee> first hit
cherrypeel has quit [Ping timeout: 244 seconds]
Guest76693 is now known as robacarp_
robacarp_ is now known as robacarp
<shevy> cool
kenichi has quit [Remote host closed the connection]
chrislgibson has quit [Quit: Linkinus - http://linkinus.com]
dbe has joined #ruby
<LUEshi2> how do I make a loop in ruby?
PaciFisT has quit [Quit: Leaving.]
<LUEshi2> like I need my program to repeat something endlessly
<shevy> loop { sleep 1; puts 'hi' }
<LUEshi2> I need it to repeat a few lines not just one
adamkittelson has quit [Remote host closed the connection]
jimeh has quit [Ping timeout: 245 seconds]
syamajala has quit [Remote host closed the connection]
<darkf> LUEshi2: then print your lines
<shevy> what do you mean "not just one"
<LUEshi2> i dunno really im a n00b
<shevy> the code above is an endless loop in ruby
<LUEshi2> im experimenting hold on
<shevy> do you use irb?
<shevy> you can test code in it
<LUEshi2> yeah
<LUEshi2> i need to repeat this
<mjb2k> LUEshi: the ; is a line terminator, put a new line there and you can have as many lines as you like
<LUEshi2> omg
Targen has joined #ruby
<shevy> what do you have to repeat :)
<LUEshi2> b.button(:name => 'submit').click
<LUEshi2> b.button(:name => 'submit').click
<LUEshi2> sleep 20 + rand(30)
<LUEshi2> this
<LUEshi2> well a bit more
mahmoudimus has joined #ruby
<LUEshi2> but you get what i mean
skrewler has joined #ruby
<shevy> good. put it into a loop { } block
<LUEshi2> ok
GeekOnCoffee has joined #ruby
GeekOnCoffee has quit [Read error: Connection reset by peer]
GeekOnCoffee has joined #ruby
kpshek has quit []
<shevy> hmm I tried to update the asciitable gem a bit
dv_ has quit [Ping timeout: 252 seconds]
<shevy> now one way I use it is to do "asciitable foo.yaml" to read in yaml dataset and display it in ascii table
kjellski has quit [Quit: This computer has gone to sleep]
<shevy> next thing will be for .csv data... but I wonder whether I should make it a new gem once finished or not
obryan has quit [Quit: Konversation terminated!]
sailias has joined #ruby
workmad3 has joined #ruby
banisterfiend has quit [Ping timeout: 245 seconds]
cpruitt has left #ruby [#ruby]
Berglund has quit [Quit: Computer died.]
banisterfiend has joined #ruby
mdszy has joined #ruby
arturas has quit [Remote host closed the connection]
jsilver has joined #ruby
wangr has quit [Ping timeout: 265 seconds]
<graspee> nah. everyone likes a bulky gem
<graspee> "i need to ... oh wow this gem i already have already does it! cool"
tiripamwe has quit [Quit: Leaving]
tiripamwe has joined #ruby
cherrypeel has joined #ruby
<denstark> Hello! I think I'm misunderstanding something here -- trying to push onto an Array and getting undefined method <<. Here's my code: https://gist.github.com/fa189e5de7d65a700a36
<denstark> The error is on line 11
<shevy> graspee: you don't like featureful gems?
<graspee> i do
mpereira has quit [Ping timeout: 248 seconds]
<shevy> denstark: it is not good to initialize @ivars outside methods
sepp2k1 has quit [Quit: Leaving.]
<graspee> i think you misunderstood my use of the word bulky and assumed i was being sarcastic, but i wasn't
<shevy> move it into initialize()
sepp2k has joined #ruby
dnyy has joined #ruby
<graspee> because bulky has a negative connotation
<denstark> shevy: I see, let me try that
<shevy> yeah graspee I kinda thought you meant fat
cjk101010 has quit [Ping timeout: 245 seconds]
<shevy> rails could be fat for instance
jlogsdon has quit [Remote host closed the connection]
mahmoudi_ has joined #ruby
<shevy> and I dont like rails very much
<graspee> me neither
Stumilowy has joined #ruby
<shevy> I dont hate it either though. it has its plus and cons
<denstark> shevy: works! thanks :) I didn't realize it wasn't getting initialized
<graspee> i despise it
mahmoudimus has quit [Ping timeout: 245 seconds]
<graspee> and wish to destroy it
seanstickle has joined #ruby
<shevy> hehe
<Stumilowy> i have a problem with native ruby extension on windows
<mjb2k> hey!, I am loving of the rails!
bglusman has quit [Read error: Connection reset by peer]
banisterfiend has quit [Ping timeout: 265 seconds]
bglusman has joined #ruby
<Stumilowy> this showed up when i tried install ruby-debug-base19
Liothen has quit [Remote host closed the connection]
<Stumilowy> any ideas how to fix it?
fantazo has quit [Remote host closed the connection]
<shevy> no idea. am on linux and never used debug-base19
chson has quit [Remote host closed the connection]
syamajala has joined #ruby
<Stumilowy> :/
ttilley is now known as ttilley_off
maahes has quit [Read error: Operation timed out]
bglusman has quit [Ping timeout: 264 seconds]
asobrasil has left #ruby [#ruby]
justinmcp has joined #ruby
jimeh has joined #ruby
Synthead has quit [Quit: p33 ba115]
fayimora has quit [Quit: Busy…..zzzzz]
ackz has quit [Quit: Leaving...]
justinmcp has quit [Remote host closed the connection]
Aaton_off is now known as Aaton
mengu has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
graft has quit [Ping timeout: 246 seconds]
khakimov has joined #ruby
jeff_sebring has joined #ruby
graft has joined #ruby
Stumilowy has quit [Quit: Page closed]
bradhe has quit [Remote host closed the connection]
robacarp_ has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
schickung has quit [Quit: schickung]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
robacarp_ is now known as Guest57151
x0F_ is now known as x0F
Araxia has joined #ruby
monkegjinni has joined #ruby
Guest57151 is now known as robacarp__
nari has joined #ruby
robacarp is now known as Guest42189
tatsuya_o has joined #ruby
jrhorn424 has quit [Ping timeout: 264 seconds]
randomautomator has quit [Remote host closed the connection]
Guest42189 has quit [Ping timeout: 264 seconds]
r0bby is now known as robbyoconnor
kvirani has quit [Remote host closed the connection]
jrhorn424 has joined #ruby
kvirani has joined #ruby
<Jaxel> okay so exerb is lying to me, it says it can't find encdb.so but encdb.so clearly exists, exactly where it says it can't find it
bradhe has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
<mjb2k> Jaxel: with permission to read it?
<Jaxel> good idea
<Jaxel> yep ran it as administrator, still lying
SQLStud has quit [Read error: Connection reset by peer]
g_rotbart has joined #ruby
<otters> I forget how to use replacement globals in blocks for sub
flashuni has quit [Ping timeout: 248 seconds]
graspee has quit [Quit: leaving]
kvirani has quit [Remote host closed the connection]
mahmoudi_ has quit [Quit: Computer has gone to sleep.]
<Jaxel> i feel like it's not allowed to lie to me like that, it's a computer, it's supposed to do what it's told
<mjb2k> I actually never have seen exerb before, that is just something I've run into in general with a file not found
<mjb2k> now that I see it can build a Windows exe on linux, I might have to check that out!
S1kx has quit [Ping timeout: 250 seconds]
<Jaxel> you might, but you might want to keep in mind i haven't gotten it to work yet
jrhorn424 has quit [Quit: jrhorn424]
<Jaxel> i am trying it after OCRA stopped working
pk1001100011 has quit [Ping timeout: 248 seconds]
tatsuya_o has joined #ruby
zalesz has joined #ruby
jeff_sebring has quit [Remote host closed the connection]
internet_user has quit [Remote host closed the connection]
fumduq has joined #ruby
bowlowni has quit [Remote host closed the connection]
bowlowni has joined #ruby
Progster has quit [Ping timeout: 260 seconds]
itnomad has quit [Quit: Leaving]
bowlowni has quit [Read error: Connection reset by peer]
bowlowni has joined #ruby
skrewler has quit [Quit: skrewler]
htroyack has joined #ruby
wargasm has quit [Ping timeout: 240 seconds]
jeff_sebring has joined #ruby
AWAYY]]]]]]]]]]] is now known as yy
robozahn has quit [Remote host closed the connection]
robozahn_ has quit [Remote host closed the connection]
yoklov has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
mahmoudimus has joined #ruby
strife25 has joined #ruby
Peregrinu5 has quit [Ping timeout: 265 seconds]
<mjb2k> anybody recommend a ruby-based DAO (ORM, whatever) like MyBatis / iBatis
htroyack has quit []
cdepue has joined #ruby
ramblex has quit [Quit: ramblex]
ryanf has joined #ruby
wargasm has joined #ruby
the_jeebster1 has quit [Quit: Leaving.]
fridim_ has quit [Ping timeout: 240 seconds]
graspee has joined #ruby
yonggu has joined #ruby
mjb2k has quit [Quit: Leaving]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
mdpatrick has quit [Quit: mdpatrick]
<Jaxel> well, i moved all of the files it needs into the folder with it so it couldn't deny their existence, and it compiled
<Jaxel> but it still does not work
<Jaxel> crashes when asked to use the 'assoc' method
<Jaxel> same as if i'd just compiled the .rb
cdepue_ has joined #ruby
mengu has quit [Remote host closed the connection]
sepp2k has quit [Quit: Leaving.]
sepp2k1 has joined #ruby
itnomad has joined #ruby
cdepue has quit [Ping timeout: 264 seconds]
larissa has joined #ruby
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
oooPaul has quit [Quit: Ciao for now!]
mahmoudimus has joined #ruby
lockweel has joined #ruby
Deele has quit [Ping timeout: 252 seconds]
greasegum has quit [Ping timeout: 245 seconds]
banisterfiend has joined #ruby
tatsuya__ has joined #ruby
wagle has quit [Remote host closed the connection]
mahmoudi_ has joined #ruby
kenichi has joined #ruby
wagle has joined #ruby
<Jaxel> mjb2k you might check out rubinius
mahmoudimus has quit [Ping timeout: 255 seconds]
<Jaxel> apparently that and jruby are supposed to be able to do it
Ontolog has quit [Remote host closed the connection]
tatsuya_o has quit [Ping timeout: 264 seconds]
Jaxel has quit [Quit: Leaving]
tatsuya_o has joined #ruby
theRoUS has joined #ruby
wagle has quit [Read error: Connection reset by peer]
Manhose has joined #ruby
tatsuya__ has quit [Ping timeout: 245 seconds]
tds has quit [Quit: tds]
Manhose has quit [Client Quit]
wagle has joined #ruby
robotmay has quit [Remote host closed the connection]
saschagehlich has joined #ruby
tatsuya__ has joined #ruby
tatsuya_o has quit [Ping timeout: 264 seconds]
hynkle has joined #ruby
atambo has joined #ruby
atambo has left #ruby ["bye"]
tomzx has joined #ruby
tatsuya_o has joined #ruby
Maniacal has quit [Quit: Leaving]
zalesz has quit [Quit: Wychodzi]
tatsuya__ has quit [Ping timeout: 246 seconds]
chriskk has joined #ruby