ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
<zenspider> huh.... well... let's deal with that build problem first
<zenspider> I assume it was installing json and blew up?
<zenspider> do you have a C compiler installed on that slice?
<dospod> I believe it comes with one by default
<zenspider> gcc -v
<zenspider> flog 3.0.0.b3 released
<dospod> 4.6.3
headius has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
<dospod> wait would a until loop provide what I need
r0bby_ has joined #ruby-lang
<zenspider> what's the error wrt the native extension?
<zenspider> you can prolly test with a simple `sudo gem install json`
krohrbaugh has quit [Quit: Leaving.]
<dospod> yea it didn't like that last command
kain has joined #ruby-lang
kurko_ has quit [Quit: Computer has gone to sleep.]
<zenspider> dude... I can't do shit with "didn't like"
<dospod> well I recieved a failing to install json error and failed to build gem native extension
<zenspider> and it pointed you at a log file...
<dospod> 'require': cannot load suc$ from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in 'require' from extconf.rb:1:in '<main>'
perryh has quit [Excess Flood]
r0bby_ has quit [Ping timeout: 244 seconds]
perryh has joined #ruby-lang
kain has quit [Ping timeout: 256 seconds]
rwilcox has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<zenspider> that's not 1.8.7...
<dospod> I had to install 1.9.1 for gem
<zenspider> *sigh* no... you didn't.
headius has quit [Quit: headius]
<zenspider> welcome to ubuntu hell... I can't help you.
<zenspider> that error message doesn't even make sense ...
<zenspider> so you've got a completely borked ruby packaging system as a result.
tenderlove has quit [Remote host closed the connection]
<zenspider> fine. you'll have to use ruby-doc.org or the like instead. please go read the documentation on Array and Enumerable. Everything you could possibly want is there. you just can't easily access it locally until you fix your f'd up ruby/rubygems
<steveklabnik> ugh
<zenspider> everytime you try to do something in a C++ way... there is a 10x better way to do it in ruby
<zenspider> not MY ugh to fix... I disavow once ubuntu's bullshit gets in the way. they're the world's most unhelpful asshole developers ever. we've tried. multiple times. fuck em. dtm
<dospod> lol
blazes816 has quit [Quit: blazes816]
<dospod> I just need to write a loop to check 2 elements and display a message if the 2 elements match
<zenspider> and I blame the fact that you consciously chose to go to school in corpus as the reason why you didn't install rubygems the way I said. :P
<dospod> I actually had no choice :/
<dospod> parents told me they would pay for me to go to school anywhere in texas
<dospod> until the time actually came around to go to school , then they told me to fuck off
<zenspider> if the choice were to go to school in corpus vs not going to school... I know what _I_ would choose :P
<dospod> so I choose to stay home, mooch off their electricity , and save money here !
<zenspider> hah
kain has joined #ruby-lang
mrsolo has quit [Quit: Leaving]
<dospod> and honestly for what I really want to do it's a great school , but the cs department besides what I want to do is falling apart
<zenspider> rice has a damn strong CS program... otherwise there is no reason to be in texas
<dospod> my teacher is a first year teacher as well -_-
<dospod> my school is actually rather strong for cyber security
<tdy> how does she work for OSU and teach in texas?
<dospod> that I do not know
<dospod> I know she works remotely for OSU
<dospod> and then "teaches"
<zenspider> prolly where she did her graduate work and still has resources there
<dospod> nice lady, more than likely is a way better programmer than me, but the whole crame php , javascript , ruby , rails etc into 16 weeks isn't a good idea
<dospod> cram*
<zenspider> get into rice. learn scheme from the heavy hitters. then worry about getting out of texas :P
<dospod> haha I've looked at the programs across the state and when it comes to security classes in the cs field
<zenspider> ok. must go. I've got some maya coba beans in my freezer calling my name
<dospod> they are all week
kurko_ has joined #ruby-lang
<zenspider> so is your spelling :P
<dospod> that I will gladly agree with you
<dospod> so is my programming as well
<zenspider> meh security... it is weak.
<zenspider> anyhow. I need to go
<zenspider> read Enumerable
<zenspider> ALL of it
<dospod> well thank you
<zenspider> read Array
<dospod> and will do
<zenspider> most of it
<dospod> I need to get this stuff done -_-
<eam> any recommendations on a ruby gem for parsing and manipulating zone files?
kurko_ has quit [Ping timeout: 245 seconds]
dospod has quit [Ping timeout: 256 seconds]
dospod has joined #ruby-lang
kurko_ has joined #ruby-lang
[1]dospod has joined #ruby-lang
dospod has quit [Ping timeout: 256 seconds]
kurko_ has quit [Ping timeout: 276 seconds]
kurko_ has joined #ruby-lang
lsegal has joined #ruby-lang
[1]dospod has quit [Quit: I love my HydraIRC -> http://www.hydrairc.com <-]
nitti has joined #ruby-lang
dospod has joined #ruby-lang
<dospod> can somebody help with my syntax
sailias has joined #ruby-lang
<drbrain> dospod: don't indent else, "name 1" is not the same as "name1"
<drbrain> dospod: every line that starts with "if" must have a line that starts with "end"
sailias has quit [Client Quit]
irleif has quit [Quit: Computer has gone to sleep.]
woollyams has quit [Read error: Connection reset by peer]
havenn has joined #ruby-lang
<dospod> why is it saying private method 'chop' called for nil:NilClass (NoMethodError)
kain has quit [Quit: exit]
nitti has quit [Ping timeout: 256 seconds]
<drbrain> dospod: gets can return nil
woollyams has joined #ruby-lang
<steveklabnik> dospod: because it's nil
<drbrain> dospod: ruby -e 'p gets', then type ctrl-D
<dospod> I fixed it :)
headius has joined #ruby-lang
mistym has quit [Remote host closed the connection]
<drbrain> bus time
krohrbaugh has joined #ruby-lang
nertzy2 has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
gsav has joined #ruby-lang
cardoni has quit [Quit: cardoni]
Necoco has joined #ruby-lang
dospod has quit [Quit: HydraIRC -> http://www.hydrairc.com <- It'll be on slashdot one day...]
^sandbags^ has quit [Remote host closed the connection]
Ziioynx has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
thone_ has quit [Ping timeout: 246 seconds]
CrazyHorse18 has joined #ruby-lang
lsegal has quit [Read error: Connection reset by peer]
seanstickle has joined #ruby-lang
lsegal has joined #ruby-lang
perryh has quit [Excess Flood]
CrazyHorse181 has joined #ruby-lang
perryh has joined #ruby-lang
perryh has quit [Changing host]
perryh has joined #ruby-lang
Necoco has left #ruby-lang [#ruby-lang]
CrazyHorse18 has quit [Ping timeout: 272 seconds]
ryanlecompte has quit [Remote host closed the connection]
zspencer has joined #ruby-lang
Karunamon has joined #ruby-lang
<Karunamon> Actually did that last line get through or is my client lying
<Karunamon> eeeyup. client lying. thanks in advance :)
kain has joined #ruby-lang
sailias has joined #ruby-lang
bcardarella has left #ruby-lang [#ruby-lang]
nettsundere has quit [Ping timeout: 260 seconds]
kurko_ has quit [Quit: Computer has gone to sleep.]
krohrbaugh has quit [Quit: Leaving.]
thone has joined #ruby-lang
krohrbaugh has joined #ruby-lang
nertzy3 has joined #ruby-lang
nertzy2 has quit [Ping timeout: 265 seconds]
Karunamon has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Karunamon has joined #ruby-lang
stardiviner has joined #ruby-lang
jgomez has quit [Ping timeout: 244 seconds]
cardoni has joined #ruby-lang
jgomez has joined #ruby-lang
thone has quit [Ping timeout: 240 seconds]
nettsundere has joined #ruby-lang
codewrangler has joined #ruby-lang
jgomez has quit [Quit: Leaving]
codewrangler has quit [Client Quit]
m3nd3s has quit []
bfreeman has joined #ruby-lang
Karunamon has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
nitti has joined #ruby-lang
pbjorklund has quit [Read error: Connection reset by peer]
pbjorklund has joined #ruby-lang
cosah has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
nitti has quit [Ping timeout: 240 seconds]
kurko_ has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
seanstickle has quit [Quit: seanstickle]
kurko_ has quit [Ping timeout: 245 seconds]
dospod has joined #ruby-lang
<dospod> http://codepad.org/G9RH3WPx can somebody help me with the syntax of my for loop
kurko_ has joined #ruby-lang
justinmcp has joined #ruby-lang
dous has quit [Remote host closed the connection]
<lianj> dospod: positives, negatives = gets.split.map(&:to_i).partition{|i| i > 0 }
kurko_ has quit [Quit: Computer has gone to sleep.]
havenn has quit [Remote host closed the connection]
<lianj> dospod: or arrayNum.each{|n| ... } instead of for
havenn has joined #ruby-lang
<freedrull> guh i really wish there was nil#to_hash = {} sometimes. i think i'm gonna add it myself until its added to ruby 2.0 or whatever.....
<dospod> lianj how is that going to grab the element from the arrayNum
<matti> lianj: Or, if he insistes then while would do too.
<lianj> matti: true
<dospod> so would changing it to while i != arrayNum.length work
CrazyHorse181 has quit [Ping timeout: 256 seconds]
thone has joined #ruby-lang
<matti> i += 1
<lianj> dospod: yes, but add i += 1 then
<matti> And use << over push
* lianj died a little inside
<matti> Anyway .each is the Ruby way.
<dospod> I have the i += 1 in the until loop currently
<matti> lianj: Why
<matti> lianj: I can sense him coming from Perl background.
havenn has quit [Ping timeout: 244 seconds]
<dospod> I have used perl before, but I have a mostly c++ background
<matti> A.
<matti> ;p
kurko_ has joined #ruby-lang
<dospod> and if you dont mind matti could you elaborate on using << over push
<lianj> BOOST_FOREACH
<lianj> << is an alias for .push
<lianj> [] << 1 => [1]
<matti> lianj: I know.
<lianj> i didnt tell you
<matti> lianj: But have you seen a lot of Ruby guys using push in a more idiomatic code?
<matti> ;]
<matti> Oh, OK
<matti> Aa.
<matti> He asked.
<matti> Apologies.
* matti tired
<matti> :/
<lianj> hehe np
<matti> :>
<dospod> http://codepad.org/sWjTHJxJ now I have a new problem -_-
<dospod> If the only job offer I get after school is to be a full time programmer I may just bring a flask to work every day
<lianj> while i < a.length
CrazyHorse18 has joined #ruby-lang
<matti> dospod: Why?
<matti> dospod: Its matter of learning tools of trade.
<matti> dospod: And having hacker mentality.
<dospod> I honestly don't care for programming at all
<matti> dospod: I just blew up a job interview, because I am not a hard-core CS nerd ;]
<dospod> I want to do more cyber security , pen testing or network admin stuff
<lianj> lol
<tdy> cyber security w/o programming?
<matti> dospod: You'd be surprised how much a programming knowlege that requires.
<matti> dospod: And on a very low level.
<tdy> extremely low level
<dospod> I have slowly realized
<dospod> I'm starting to think I just wasted my money
<matti> dospod: You have to be really devoted.
tallship has joined #ruby-lang
<lianj> not to be rude, but if you dont care about programming and now about coding, better kill that thought
<lianj> s/now/know/
<dospod> I'm 20k too deep
<dospod> :/
<lianj> wth
<dospod> school debt
CrazyHorse181 has joined #ruby-lang
CrazyHorse181 has quit [Client Quit]
<erikh> doesn't matter what you paid if you don't work for it
<matti> dospod: Try to move some of your points over to a different degree.
<tallship> If you keep taking classes at a junior college after you graduate you can continue to get deferrals and never have to pay the loans back ;)
<dospod> I'm already at a university
CrazyHorse18 has quit [Ping timeout: 256 seconds]
<tallship> After you graduate
<erikh> my wife started with a business degree and got her master's of education. it's not easy, but you can change your career.
<erikh> IIRC, I think that most people will have like 7 careers before they die
<dospod> it's more of a I'm on a time limit to get out of school
<erikh> but I'd have to look it up to get the exact number, it's surprisingly large though.
cardoni has quit [Quit: cardoni]
<dospod> http://codepad.org/uk39IZEM is there a reason my puts array.inspect is displaying nothing when the script runs
<erikh> your while loop never runs
<erikh> unless arrayNum has a length of 0
<dospod> doh
<erikh> #each might be better there.
<dospod> I changed it to !=
Karunamon has joined #ruby-lang
<erikh> that won't work either
<dospod> just ran fine
<erikh> actually, nm, it should work fine.
<erikh> missed the +=1
<dospod> I understand I keep missing little things all day
<erikh> uh, that is every programmer from a 6 year old with a copy of BASIC to Donald Knuth
<erikh> and if you think it's different in any other industry, you're wrong.
<matti> erikh: 7?
<matti> erikh: I am stuck with one ;s
<dospod> it's part of being human
<erikh> matti: something like that, yeah.
<matti> erikh: I am constantly trying to move from Ops to Dev ;p
<dospod> well thank you for the help
<matti> erikh: Maybe one day before I will be 80.
<erikh> look, I gotta go but if you can get this far and can tolerate making mistakes (there are a variety of techniques to help) and have some persistence, I'm sure you'll be just fine in this industry
<erikh> most of us computer professional are a pampered spoiled lot
<matti> Haha
<matti> dospod: Like in the Hackers movie.
<erikh> you could do a lot worse
<dospod> I tend to like the system admin , network admin , packet analysis, bt5 stuff
<matti> dospod: "Never give up; never surrender"
<dospod> programming seems to kick my ass
<dospod> I need motivation
<dospod> I seemed to lost that some years ago
<matti> dospod: Then be an excellent systems administrator.
<dospod> that is the plan
<matti> dospod: Learn how to design complex architecture, and automation.
<dospod> or a pen tester
<matti> dospod: And there is a bright future.
<matti> dospod: I'd defer from security. It has become extremely complex nowadays.
<dospod> but untl I graduate I have to suck it up and keep programming/ scripting
<matti> dospod: And running off-the-shelf tools is not pen-testing.
<matti> dospod: Is making a fun of oneself.
<dospod> honestly from what I have seen in class I like it
rking has quit [Ping timeout: 252 seconds]
<Karunamon> testing-
<matti> dospod: Write a shellcode against a formatstring in C.
<Karunamon> ah there we go
<dospod> but our school doesn't have the funds for anything but bt5 stuff , I'm starting to think the program itself is a joke
<matti> dospod: By yourself.
<matti> Karunamon: :)
<dospod> which is sad because my school is one of the few I have seen that actually offers security based cs classes
<Karunamon> heh, there was no indication that i had to be registered to talk
<Karunamon> .. or it could be because i'm using a new irc app
<dospod> but I will probably be back later but until then thank you all for the help
<erikh> says you're logged in. use /whois Karunamon
<Karunamon> yeah, i wasn't until a few seconds ago
<Karunamon> you have to understand i'm breaking a 12 year long mIRC habit :)
enebo has quit [Quit: enebo]
<erikh> you liked your irc client and got ridiculed into using another one?
<Karunamon> nah, just got tired of it
<erikh> ah
<Karunamon> actually annoyance at micrscript is what got me writing ruby
<matti> mIRC...
<matti> ;d
<matti> irssi <3
<erikh> ah; well I know weechat has ruby plugins and I think limechat can do them too
* Karunamon notes those names down
<Karunamon> actually that's what brings me here today.. what was a mirc irc bot that i'm trying to reimplement in ruby
<CaptainJet> pre-emptive: look into the Cinch gem
<Karunamon> already using it :)
<erikh> ah! check out cinch. there's also an irc channel with a pretty responsive maintainer @ #cinch
<erikh> dominik's good people
<Karunamon> that actually is my question though - i'm trying to use activerecord for some database shenanigans
<matti> Night folks ;]
<matti> BTW, anyone plays ME3 MP?
<erikh> matti: night
tallship has quit [Remote host closed the connection]
dospod has quit [Ping timeout: 256 seconds]
<Karunamon> nite! and no, not since my origin account got owned and EA was useless
<Karunamon> but that's a rant for another time :P
tallship has joined #ruby-lang
<matti> Karunamon: ;p
<Karunamon> anyways, on that bit of code i just posted, i set up my AR schema inside a class's initializer.. then when I go actually try to reference it in a subclass, IDE tells me that it's not found
<Karunamon> Memobox will get instantiated on the bot's startup, so that's where i'm getting confused
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
kurko_ has quit [Ping timeout: 256 seconds]
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
alvaro_o_ has quit [Quit: Ex-Chat]
sush24 has joined #ruby-lang
ryanlecompte has joined #ruby-lang
nitti has joined #ruby-lang
erichmenge has quit [Quit: Be back later]
nitti has quit [Ping timeout: 264 seconds]
naquad has quit [Excess Flood]
cardoni has joined #ruby-lang
naquad has joined #ruby-lang
kurko_ has joined #ruby-lang
havenn has joined #ruby-lang
havenn has quit [Remote host closed the connection]
krohrbaugh has quit [Quit: Leaving.]
kurko_ has quit [Ping timeout: 245 seconds]
<Karunamon> barring that.. is there a simple way to, inside a script, have it dump you into an IRB shell within the context of the script that's running?
kurko_ has joined #ruby-lang
<foca> Karunamon: require "irb"; IRB.start
kain has quit [Ping timeout: 244 seconds]
krohrbaugh has joined #ruby-lang
CaptainJet has quit []
dhruvasagar has joined #ruby-lang
cardoni has quit [Quit: cardoni]
cardoni has joined #ruby-lang
kurko_ has quit [Quit: Computer has gone to sleep.]
dc5ala has joined #ruby-lang
nertzy3 has quit [Quit: This computer has gone to sleep]
imperator2 has joined #ruby-lang
woollyams has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
wallerdev has quit [Quit: wallerdev]
nitti has joined #ruby-lang
perryh has quit [Excess Flood]
krz has joined #ruby-lang
perryh has joined #ruby-lang
nitti has quit [Ping timeout: 256 seconds]
therod has joined #ruby-lang
ryanlecompte has quit [Remote host closed the connection]
rking has joined #ruby-lang
flowerpot has joined #ruby-lang
ryanlecompte has joined #ruby-lang
Karunamon has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
sush24 has quit [Quit: This computer has gone to sleep]
sush24 has joined #ruby-lang
headius has quit [Quit: headius]
kain has joined #ruby-lang
nazty has quit [Quit: Leaving]
nazty has joined #ruby-lang
imperator2 has quit [Quit: Leaving]
kain has quit [Ping timeout: 246 seconds]
corsican has quit [Quit: leaving]
corsican has joined #ruby-lang
gsav has quit [Ping timeout: 246 seconds]
kain has joined #ruby-lang
mistym has quit [Remote host closed the connection]
Karunamon has joined #ruby-lang
<Karunamon> welp, activerecord is still broken, but I did figure out the answer to like 5 other burning questions :3
<Karunamon> there's one other though.. say I'm generating an array on the fly from a large string: (object).split(" ")
<Karunamon> how do I reference an item from that array on the same line?
esad has joined #ruby-lang
kain has quit [Ping timeout: 264 seconds]
cardoni has quit [Quit: cardoni]
sush24 has quit [Quit: This computer has gone to sleep]
therod has quit [Quit: Leaving...]
anannie has quit [Ping timeout: 272 seconds]
chendo_ has quit [Ping timeout: 255 seconds]
chendo_ has joined #ruby-lang
<manveru> Karunamon: you're from php?
pbjorklund has quit [Read error: Connection reset by peer]
<manveru> obj.split(' ')[123]
pbjorklund has joined #ruby-lang
<Karunamon> Nope, I actually don't know a single line of PHP
<manveru> heh, ok
<Karunamon> I did figure it out though, the "at" method on arrays
<manveru> yeah, at works too
<Karunamon> (object).split("_").at(1)
<manveru> why do you write (object) ?
<Karunamon> just genericized what it actually is
<Karunamon> (m.message) in this case
<manveru> i mean, why the parenthesis around it?
chendo_ has quit [Ping timeout: 245 seconds]
<Karunamon> i'm a little unclear on that myself. i've been using my ide's clues to put this script together
<Karunamon> m.message is actually a string
<Karunamon> yet it wouldn't show me the .split method until i had enclosed it
<Karunamon> IIRC you embracket something like that if you want to call an object quickly without having to define it separately?
<manveru> usually not
yxhuvud has joined #ruby-lang
<Karunamon> :timeset => (Time.new).ctime
<manveru> it's just that you won't know the type of an object without running the code
chendo_ has joined #ruby-lang
<Karunamon> ah, so it is just ide weirdness then
<manveru> yeah, it looks really strange to me :)
<manveru> anw, whatever works for you... they don't hurt
<Karunamon> ^^ another one bites the dust - now if I could figure out this activerecord scope thing i'd be cooking with gas
<manveru> the best way to handle activerecord is to throw it in front of a bus and hope nobody inside gets hurt
<Karunamon> hehe, the only reason i'm even using it for something like this (I know SQL and could just as easy use sqlite directly) is for learning purposes
<manveru> i recommend the sequel library, unless you have a good reason to need activerecord
<Karunamon> ooh. Sure looks simple enough.
<manveru> and it doesn't pull in half of rails :)
<Karunamon> that too. my external libraries list doubled in size the moment i included AR
justinmcp has quit [Ping timeout: 260 seconds]
justinmcp has joined #ruby-lang
kain has joined #ruby-lang
flowerpot has quit [Ping timeout: 244 seconds]
ramonmaruko has quit [Remote host closed the connection]
ramonmaruko has joined #ruby-lang
xsdg has quit [Ping timeout: 248 seconds]
sush24 has joined #ruby-lang
xsdg has joined #ruby-lang
therod has joined #ruby-lang
kain has quit [Ping timeout: 276 seconds]
nettsundere has quit [Ping timeout: 272 seconds]
lun_ has joined #ruby-lang
kitallis has joined #ruby-lang
therod has quit [Ping timeout: 276 seconds]
areil has joined #ruby-lang
brianpWins has joined #ruby-lang
wyhaines has joined #ruby-lang
nettsundere has joined #ruby-lang
booyakah has quit [Ping timeout: 245 seconds]
sush24 has quit [Quit: Leaving]
Mon_Ouie has quit [Ping timeout: 260 seconds]
<reactormonk> welcome to AR
<certainty> moin everyone ... can someone please explain to me why in this expression: callcc{ |out| [1].each{|_| out(3) } } ... the continuation bound by 'out' isn't visible inside the inner block?
kain has joined #ruby-lang
therod has joined #ruby-lang
vlad_starkov has joined #ruby-lang
kain has quit [Ping timeout: 240 seconds]
anannie has joined #ruby-lang
therod has quit [Ping timeout: 256 seconds]
<reactormonk> certainty, maybe you want to call it?
<certainty> reactormonk: i really woul like to but the binding is not visible
<reactormonk> callcc{ |out| [1].each{|_| out.call(3) } }
<certainty> reactormonk: oh boy
<reactormonk> ruby is not javascript
<certainty> reactormonk: silly me. I guess i need a coffee
<certainty> reactormonk: yeah, i know i know
<reactormonk> in case you didn't know about the ()
<certainty> reactormonk: i guess i confused with the new callable syntax and messed up
<certainty> out.(3) should work no?
<certainty> yepp, it does
<certainty> reactormonk: thanks again :)
vlad_starkov has quit [Ping timeout: 244 seconds]
<reactormonk> certainty, I'd use call or [] ;-)
<certainty> reactormonk: yeah i usually use []. I don't know what was wrong with my head with this ohne
<certainty> one
jbwiv has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby-lang
<Karunamon> :O I kind of just stumbled across the answer to my problem but I'm not sure why
<Karunamon> the moment i switched from using an in memory sqlite table to a physical one, it immediately starts working
charliesome has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 252 seconds]
anannie has quit [Read error: Connection reset by peer]
ramonmaruko has quit [Ping timeout: 252 seconds]
anannie has joined #ruby-lang
ramonmaruko has joined #ruby-lang
mytrile has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
ryanlecompte has quit [Remote host closed the connection]
ryanlecompte has joined #ruby-lang
timinat0r has joined #ruby-lang
therod has joined #ruby-lang
kain has joined #ruby-lang
coryf has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
therod has quit [Ping timeout: 256 seconds]
tonni has quit [Remote host closed the connection]
kain has quit [Ping timeout: 255 seconds]
timinat0r has quit [Quit: Leaving]
justinmcp has quit [Remote host closed the connection]
solars has joined #ruby-lang
klaut has joined #ruby-lang
workmad3 has quit [Ping timeout: 240 seconds]
<yorickpeterse> Morning
therod has joined #ruby-lang
dr_bob has joined #ruby-lang
spuk has quit [Ping timeout: 265 seconds]
therod has quit [Ping timeout: 252 seconds]
spuk has joined #ruby-lang
kain has joined #ruby-lang
cosah has joined #ruby-lang
cosah has quit [Client Quit]
therod has joined #ruby-lang
cosah has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
rue|w has joined #ruby-lang
kain has quit [Ping timeout: 264 seconds]
cosah has quit [Client Quit]
cosah has joined #ruby-lang
ryanlecompte has quit [Remote host closed the connection]
ryanlecompte has joined #ruby-lang
cyri_ has joined #ruby-lang
ryanlecompte has quit [Remote host closed the connection]
burgestrand has joined #ruby-lang
kitallis has quit [Quit: Computer has gone to sleep.]
yxhuvud has quit [Ping timeout: 256 seconds]
cyri_ has quit [Client Quit]
justinmcp has joined #ruby-lang
gnufied has joined #ruby-lang
cschwartz has joined #ruby-lang
<cschwartz> morning
blacktulip has joined #ruby-lang
kain has joined #ruby-lang
cosah has quit [Remote host closed the connection]
cyri_ has joined #ruby-lang
nitti has joined #ruby-lang
kain has quit [Ping timeout: 255 seconds]
Hakon has joined #ruby-lang
nitti has quit [Ping timeout: 256 seconds]
justinmcp has quit [Remote host closed the connection]
runeb has joined #ruby-lang
Axsuul has quit [Ping timeout: 264 seconds]
Hakon has quit [Quit: Leaving...]
mytrile has joined #ruby-lang
toretore has joined #ruby-lang
anannie has quit [Read error: Connection reset by peer]
klaut has quit [Remote host closed the connection]
vmoravec has joined #ruby-lang
anannie has joined #ruby-lang
vlad_starkov has joined #ruby-lang
bastilian has joined #ruby-lang
chendo_ has quit [Ping timeout: 256 seconds]
chendo_ has joined #ruby-lang
chendo_ has quit [Changing host]
chendo_ has joined #ruby-lang
robotmay has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
kain has joined #ruby-lang
tonni has joined #ruby-lang
irleif has joined #ruby-lang
chendo_ has quit [Ping timeout: 240 seconds]
chendo_ has joined #ruby-lang
workmad3 has joined #ruby-lang
futurechimp has joined #ruby-lang
kain has quit [Read error: Operation timed out]
<andrewvos> erikh: You around?
<andrewvos> erikh: And sober :)
Assurbanipal has joined #ruby-lang
<andrewvos> (actually that doesn't matter)
ryanf has quit [Quit: leaving]
vlad_starkov has quit [Remote host closed the connection]
shtirlic has joined #ruby-lang
kain has joined #ruby-lang
Hakon has joined #ruby-lang
kain has quit [Ping timeout: 246 seconds]
Hakon has quit [Quit: Leaving...]
sepp2k has joined #ruby-lang
<manveru> the around or the sober?
<andrewvos> The sober
<andrewvos> It's always late in California when I'm at work, I think
<andrewvos> Or wait maybe it's early
jgomez has joined #ruby-lang
WillMarshall has joined #ruby-lang
WillMarshall has quit [Client Quit]
Spellanser has joined #ruby-lang
kain has joined #ruby-lang
Spellanser has quit [Ping timeout: 268 seconds]
irleif has quit [Quit: Computer has gone to sleep.]
kitallis has joined #ruby-lang
irleif has joined #ruby-lang
kain has quit [Ping timeout: 255 seconds]
kitallis has quit [Quit: Computer has gone to sleep.]
jarib has quit [Excess Flood]
jarib has joined #ruby-lang
kitallis has joined #ruby-lang
nitti has joined #ruby-lang
nitti has quit [Ping timeout: 244 seconds]
Hakon has joined #ruby-lang
kgrz has joined #ruby-lang
kain has joined #ruby-lang
Assurbanipal has quit [Quit: Konversation terminated!]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
rippa has joined #ruby-lang
anannie has quit [Ping timeout: 240 seconds]
kain has quit [Ping timeout: 252 seconds]
banisterfiend has joined #ruby-lang
kitallis has quit [Quit: Computer has gone to sleep.]
esad has quit [Quit: Computer has gone to sleep.]
anannie has joined #ruby-lang
lun_ has quit [Remote host closed the connection]
justinmcp has joined #ruby-lang
rolfb has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
jamjam has joined #ruby-lang
adambeynon has joined #ruby-lang
kurko_ has joined #ruby-lang
runeb has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 244 seconds]
robotmay has quit [Ping timeout: 256 seconds]
runeb has joined #ruby-lang
robotmay has joined #ruby-lang
m3nd3s has joined #ruby-lang
lolzie has joined #ruby-lang
dous has quit [Remote host closed the connection]
kgrz has quit [Quit: Computer has gone to sleep.]
spuk has quit [Ping timeout: 268 seconds]
mwjcomputing has joined #ruby-lang
sush24 has joined #ruby-lang
nofxx has quit [Ping timeout: 246 seconds]
Mon_Ouie has joined #ruby-lang
<Kero> Looking for a rest client or http client that can do http pipelining (asynchronous processing of results, so requests can be done faster; the HW we are talking http+json to is slower than advertized when doing synchronous calls)
<andrewvos> em-http(something something)
adambeynon has quit [Quit: Computer has gone to sleep.]
<darix> so
<Kero> What are your experiences with those tools? 'just works'? quirks?
<andrewvos> I want to do `grep chrome-web-history meh.com`
lun_ has joined #ruby-lang
adambeynon has joined #ruby-lang
<DefV> andrewvos: sqlite3 ~/Library/Application\ Support/Google/Chrome/Default/History "SELECT url FROM urls WHERE url LIKE \"%$URL%\""
<andrewvos> DefV: Wow that's a bit quicker than me
<andrewvos> DefV: Was about to google "sqllite command line"
<DefV> :-p
<andrewvos> DefV: "database is locked"
nibbo has quit [Ping timeout: 260 seconds]
dreamhaw1 has quit [Ping timeout: 260 seconds]
kurko_ has quit [Ping timeout: 240 seconds]
runeb has quit [Remote host closed the connection]
<darix> isnt there a search function in chrome://history ?
<DefV> well that sucks :-)
<andrewvos> darix: It is useless
<darix> ok
kurko_ has joined #ruby-lang
banisterfiend has quit [Ping timeout: 245 seconds]
<DefV> andrewvos: happy b-day, btw
<andrewvos> DefV: Now I can do `search-chrome-history | grep google.com"
<andrewvos> DefV: Thanks :)
<andrewvos> DefV: You follow me on twitter?
<DefV> just did yeah
<andrewvos> 1499 followers, who will be number 1500?
<DefV> your count's at 1.5k for me
<andrewvos> Oh yeah me too
<andrewvos> DefV: You win!
<DefV> jay
<DefV> what did I win
nitti has joined #ruby-lang
<andrewvos> Mediocrity
runeb has joined #ruby-lang
<andrewvos> Damnit now I can't even remember what I was going to dowith this script
yorickpeterse is now known as yorick-cowboy
nitti has quit [Ping timeout: 256 seconds]
fromhet has joined #ruby-lang
fromhet has quit [Client Quit]
Hakon has quit [Quit: Leaving...]
sailias has joined #ruby-lang
Hakon has joined #ruby-lang
<Kero> kthx, HW/server does not support pipelining, so I have to do the parallelism client-side :(((
wyhaines has joined #ruby-lang
Hakon has quit [Remote host closed the connection]
Hakon has joined #ruby-lang
chendo_ has quit [Ping timeout: 245 seconds]
sailias has quit [Ping timeout: 256 seconds]
yorick-cowboy is now known as yorick-sysadmin
chendo_ has joined #ruby-lang
jxie_ has joined #ruby-lang
jxie has quit [Ping timeout: 260 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
mistym has quit [Remote host closed the connection]
lolzie has quit [Quit: Page closed]
shtirlic has quit [Remote host closed the connection]
m3nd3s has quit [Remote host closed the connection]
Hakon has quit [Quit: Leaving...]
irleif has quit [Quit: Computer has gone to sleep.]
nitti has joined #ruby-lang
runeb has quit [Remote host closed the connection]
cantonic_ has joined #ruby-lang
wyhaines_ has joined #ruby-lang
wyhaines has quit [Read error: Connection reset by peer]
uuair has joined #ruby-lang
cantonic has quit [Ping timeout: 246 seconds]
cantonic_ is now known as cantonic
nitti has quit [Ping timeout: 256 seconds]
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
scampbell has joined #ruby-lang
lcdhoffman has joined #ruby-lang
chimkan_ has joined #ruby-lang
Hakon has joined #ruby-lang
uuair has quit [Remote host closed the connection]
<andrewvos> Umm, how do I call a class method from inside an instance of the same class?
uuair has joined #ruby-lang
<injekt> andrewvos: self.class.method ?
<andrewvos> injekt: Really? But that's so long
<injekt> yeah, you can't use 'class' without self because keyword
<rolfb> you could use NameOfClass.method
<rolfb> which would be shorter
<rolfb> but heavily coupled
<andrewvos> rolfb: Not in this case:/
<rolfb> also
<injekt> hahaha
<andrewvos> Anyway, thanks injekt rolfb
<injekt> FactoryFactoryFactory.method
<andrewvos> heeheh
<rolfb> andrewvos: i'd like to see this code
<injekt> it's sekret
<andrewvos> rolfb: I bet you would
<injekt> andrewvos: happy birthday!
<rolfb> also ... "too long" what kind of nonsense is that?
<rolfb> :P
<andrewvos> Thanks injekt!
<andrewvos> rolfb: OnDemandNavigationPromoItem
<injekt> !
<andrewvos> Don't ask
<injekt> I think you kinda dropped the ball with 'OnDemand' :P
<rolfb> andrewvos: was thinking about self.class.method being too long
<rolfb> also happy birthday
<rolfb> ^^
<andrewvos> It's not about how long your class name is, it's how you use it.
<rolfb> the what now?
<injekt> that's what she.. no she didn't
<andrewvos> Hmm, guess being 29 hasn't made me any funnier.
<injekt> oldie
<rolfb> oh, i'm sorry
<rolfb> didn't mean to be too serious
<rolfb> ^^
<andrewvos> hehe
<rolfb> my mom always said to be nice and understanding to those that are younger than me
<andrewvos> :)
<rolfb> (and older, and the same age)
<andrewvos> There's a mom joke in there, but I'll refrain.
<rolfb> (pretty much everyone)
<injekt> so everyone
bastilian has quit [Quit: Leaving...]
<injekt> andrewvos: see, you ARE getting old. never refrain!
<rolfb> injekt: nicely injected
<injekt> nicely inkjet'd right
<injekt> right guys?
<injekt> haha right?
<rolfb> ^^
<rolfb> andrewvos: what did you go with?
sduckett has joined #ruby-lang
<andrewvos> hahaha
<andrewvos> rolfb: huh?
<rolfb> your solution to your problem?
<rolfb> that specific one you mentioned earlier
esad has joined #ruby-lang
<andrewvos> Oh
<andrewvos> Um
<andrewvos> self.class.meh
sailias has joined #ruby-lang
Hakon has quit [Quit: Leaving...]
<rolfb> _m_(o O )_m_
<matti> >_>
Cordax has joined #ruby-lang
deryl-android has joined #ruby-lang
<andrewvos> hehe
yorick-sysadmin is now known as yorickpeterse
Madis has joined #ruby-lang
uuair has quit [Quit: uuair]
uuair has joined #ruby-lang
<andrewvos> ergh
<andrewvos> compiling android app
<andrewvos> what should I do for the next few minutes
deryl-android is now known as deryl
nettsundere has quit [Ping timeout: 252 seconds]
<cschwartz> coffee?
<andrewvos> cschwartz: Hmm, I go for coffee too often. My boss is eyeing me out.
runeb has joined #ruby-lang
<cschwartz> ew
kurko_ has quit [Ping timeout: 245 seconds]
<andrewvos> What?
<cschwartz> forceful reduction of caffeine intake is pretty close to torture
<andrewvos> I do go for coffee about three times a day, and also take lunch.
deryl has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
outoftime has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<matti> drbrain: How long it takes for usa-san to usually respond? ;]
nettsundere has joined #ruby-lang
chimkan_ has quit [Ping timeout: 272 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
mistym has quit [Remote host closed the connection]
<ttilley> I really wish I knew how to access the frame-local data of parent frames in ruby from C
bastilian has joined #ruby-lang
<ttilley> rather, i want to know "what line of code in ruby-land resulted in this call into this C extension"
<matti> ttilley: Have a look.
lcdhoffman has joined #ruby-lang
<ttilley> ...not a bad idea at all
* ttilley hands matti a beer
Cordax has quit [Quit: Computer has gone to sleep.]
<matti> :>
<matti> Thanks!
zomgbie has joined #ruby-lang
<Kero> EventMachine looks nice, but where is its HttpRequest ? examples do not work. It has deprecated HttpClients (pl) but fails to announce where the replacing Request can be found...
<ttilley> opting for this instead: https://github.com/cldwalker/debugger
m3nd3s has joined #ruby-lang
zomgbie has quit [Client Quit]
m3nd3s has quit [Remote host closed the connection]
<ttilley> Kero: EM isn't the best maintained or documented piece of software, but I think you might actually want https://github.com/igrigorik/em-http-request
uuair has left #ruby-lang [#ruby-lang]
uuair has joined #ruby-lang
chimkan_ has joined #ruby-lang
chimkan_ has left #ruby-lang [#ruby-lang]
* Kero must be half-asleep, that gem was already mentioned here :) Was looking at eventmachine-prefixed gems now... (abbrs are not always good)
gearaholic has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
zomgbie has joined #ruby-lang
<Kero> is there a way to wait for EM.run() to finish? (a callback would call EM.stop() to trigger such a finish-of-run()
slyphon has joined #ruby-lang
Karunamon has quit [Ping timeout: 246 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
methods has joined #ruby-lang
krz has quit [Quit: krz]
kain has joined #ruby-lang
<gnufied> look into deferables
ttilley has quit [Quit: ttilley]
<gnufied> you can call EM.stop() from any of deferable callbacks
bastilian has quit [Quit: Leaving...]
nitti has joined #ruby-lang
zomgbie has left #ruby-lang [#ruby-lang]
erichmenge has joined #ruby-lang
rolfb has quit [Quit: Linkinus - http://linkinus.com]
Serial_Killer_C has joined #ruby-lang
ttilley has joined #ruby-lang
esad has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
methods has left #ruby-lang [#ruby-lang]
irleif has joined #ruby-lang
gearaholic has quit [Remote host closed the connection]
judofyr has joined #ruby-lang
uuair has quit [Remote host closed the connection]
uuair has joined #ruby-lang
earthquake has joined #ruby-lang
uuair_ has joined #ruby-lang
VGoff is now known as VGoff_afk
uuair has quit [Read error: Connection reset by peer]
uuair_ is now known as uuair
enricostn has joined #ruby-lang
VGoff_afk is now known as VGoff
gsav has joined #ruby-lang
gsav has quit [Client Quit]
gsav has joined #ruby-lang
gsav has quit [Client Quit]
gsav has joined #ruby-lang
erichmenge has quit [Quit: Be back later]
gsav_ has joined #ruby-lang
<burgestrand> Kero: EM.run blocks
<burgestrand> (or rather, enters the event loop and never exits until an EM.stop)
alessio has joined #ruby-lang
gsav has quit [Quit: Lost terminal]
tonni has quit [Remote host closed the connection]
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
elux has joined #ruby-lang
Hakon has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
bastilian has joined #ruby-lang
erichmenge has joined #ruby-lang
booyakah has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
bastilian has quit [Ping timeout: 245 seconds]
nofxx has joined #ruby-lang
nofxx has quit [Changing host]
nofxx has joined #ruby-lang
solars has quit [Ping timeout: 265 seconds]
coryf has joined #ruby-lang
therod has quit [Quit: Leaving...]
havenn has joined #ruby-lang
gnufied has joined #ruby-lang
nettsundere has quit [Ping timeout: 255 seconds]
enebo has joined #ruby-lang
elux has quit [Quit: Bye!]
bfreeman has quit [Quit: bfreeman]
gearaholic has joined #ruby-lang
m3nd3s has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
m3nd3s_ has joined #ruby-lang
m3nd3s has quit [Read error: Connection reset by peer]
uuair has quit [Quit: uuair]
rippa has joined #ruby-lang
nettsundere has joined #ruby-lang
lun_ has quit [Remote host closed the connection]
uuair has joined #ruby-lang
Hakon has quit [Ping timeout: 256 seconds]
Hakon has joined #ruby-lang
sush24 has quit [Read error: No route to host]
erichmenge has quit [Quit: Be back later]
sush24 has joined #ruby-lang
m3nd3s_ has quit [Remote host closed the connection]
m3nd3s has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
gearaholic has quit [Remote host closed the connection]
therod has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
runeb has quit [Remote host closed the connection]
enricostn has quit [Remote host closed the connection]
m3nd3s has quit []
<andrewvos> FFS is there an easier way to do this? https://gist.github.com/3939620
<andrewvos> There must be
krohrbaugh has joined #ruby-lang
chendo_ has quit [Ping timeout: 245 seconds]
chendo_ has joined #ruby-lang
rindolf has joined #ruby-lang
tbuehlmann has joined #ruby-lang
<rindolf> Hi all, is there an easier way to do something like that without the need to declare an iterator class (that includes Enumerable/etc.) - https://github.com/shlomif/binary-puzzle-garden/commit/68f1a195cf402e590b42d1377faf1bd0623716b5 .
gnufied has quit [Quit: Leaving.]
<rindolf> I had tried using .map and it didn't work well.
m3nd3s has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
<andrewvos> You don't need the include and the iter method.
gnufied has joined #ruby-lang
<tdy> andrewvos: params.keys.each {|name| instance_variable_set("@#{name}", params[name] }
<mistym> rindolf: Rather than use a separate iterator class, why not define #each directly on RowHandle and include Enumerable there?
ryanlecompte has joined #ruby-lang
<tdy> missing end paren
hikimonk has joined #ruby-lang
kurko_ has joined #ruby-lang
<rindolf> mistym: that won't help me much.
mwjcomputing has quit [Quit: Leaving]
<mistym> rindolf: What were you hoping to do differently?
<rindolf> mistym: well, I was hoping to do so without the need to define a class.
<rindolf> mistym: just something like return @col.map { |x| return|yield [x, Foo.bar(x)] }
<andrewvos> tdy: Ahh yeah! Thanks. I swear I'm slowly losing all my memory.
<tdy> haha
cschwartz has quit [Ping timeout: 246 seconds]
kurko_ has quit [Ping timeout: 245 seconds]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
kurko_ has joined #ruby-lang
sush24 has quit [Quit: Leaving]
<mistym> rindolf: What I meant was: https://gist.github.com/caf4cb5e8409fd43ae8e define this on RowHandle, and you can eliminate the separate iterator class.
sush24 has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
<rindolf> mistym: it doesn't help me much.
<rindolf> mistym: and it will block other uses of RowHandle as an iterator.
<mistym> rindolf: How so? #each returns an enumerator if called without a block, the same way Array#each does, etc.
runeb has joined #ruby-lang
Ziioynx has joined #ruby-lang
<rindolf> mistym: but I can iterate on an array too.
<rindolf> mistym: I mean - what if I want other loops to be available?
<rindolf> mistym: why can't I do @array.map { |x| [x, myfunc(x)]; } and iterate over that
<rindolf> ?
workmad3 has quit [Ping timeout: 244 seconds]
erichmenge has joined #ruby-lang
tenderlove has joined #ruby-lang
havenn has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
kurko_ has quit [Ping timeout: 276 seconds]
<Uranio> I wonder if are posible to anticipate a 404, I eman, for check if a page will return a 404
kurko_ has joined #ruby-lang
<Uranio> could Net::HTTP do it
<Uranio> ?
<CoverSlide> Uranio: usually issue a HEAD request to a server
blazes816 has joined #ruby-lang
<CoverSlide> Net::HTTP should be capable of that
<CoverSlide> though usually i use typhoeus for http stuff so I wouldn't know
runeb has quit [Ping timeout: 255 seconds]
hikimonk has quit [Quit: Leaving.]
<Uranio> how is that of the HEAD request, you connect and ask the apge without pull it?
<Uranio> apge = page
<mistym> rindolf: Sure - you could define a simpler iteration as RowHandle's #each, and either define other iteration types as alternate iteration methods that build on #each, or move that logic into the specific places they're used. I don't think I have a really clear idea where you're going with this/what you want to do, so maybe if you wanted to explain more?
<CoverSlide> Uranio: it's in the HTTP spec. a HEAD request should only return the headers that you would if you do a GET request
<Uranio> interesting...
burgestrand has joined #ruby-lang
<CoverSlide> so it would check for a 404, but the client and server would have less work to do
<Uranio> thanks CoverSlide
d3vic3 has joined #ruby-lang
<rindolf> mistym: I want to create a way to iterate over both the indices and the cells they point to.
<rindolf> mistym: I though I could do that with @indexes.map { |x| [x, Cell(x)] }
<rindolf> mistym: I thought I could do that with @indexes.map { |x| [x, Cell(x)] }
<mistym> rindolf: Which class context is that in? I don't see an instance variable named indexes.
<mistym> Oh, @idx?
<rindolf> mistym: no, not that.
<rindolf> mistym: it's just pseudocode.
<mistym> rindolf: Right.
<rindolf> mistym: it's v.dim_range(@row.col_dim())
<rindolf> mistym: which returns a range.
havenn has joined #ruby-lang
dpatel has joined #ruby-lang
sush24 has quit [Ping timeout: 272 seconds]
kurko_ has quit [Ping timeout: 240 seconds]
kurko_ has joined #ruby-lang
bougyman has quit [Ping timeout: 248 seconds]
justinram has joined #ruby-lang
mrsolo has joined #ruby-lang
nettsundere has quit [Ping timeout: 264 seconds]
<mistym> rindolf: You wanted that to return a list, or provide an enumerable object to the caller? Why wasn't it working?
bougyman has joined #ruby-lang
bougyman has quit [Changing host]
bougyman has joined #ruby-lang
yxhuvud has joined #ruby-lang
<rindolf> mistym: I wanted to provide something I can use each «do |x, cell|» on. And it didn't work.
^sandbags^ has joined #ruby-lang
^sandbags^ has quit [Changing host]
^sandbags^ has joined #ruby-lang
sush24 has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
sandbags has quit [Ping timeout: 244 seconds]
Ziioynx has quit [Ping timeout: 276 seconds]
Kingy has joined #ruby-lang
bfreeman has joined #ruby-lang
pulleasy has joined #ruby-lang
<rindolf> mistym: oh, now it worked.
judofyr has quit [Remote host closed the connection]
nettsundere has joined #ruby-lang
dr_bob has quit [Read error: Connection reset by peer]
lcdhoffman has quit [Quit: lcdhoffman]
<rindolf> mistym: sorry for the noise. PEBKAC.
<mistym> rindolf: No problem!
<rindolf> mistym: thanks.
alessio has quit [Read error: Connection reset by peer]
alessio has joined #ruby-lang
<mistym> rindolf: Like I said earlier, rather than just define an "iter" method, you could also define #each right on RowHandle and include the Enumerable mixin. Presumably that would iterate rows, then you could define a "#each_row_with_column" iterator (or similar) built on top of #each.
Serial_Killer_C has quit [Remote host closed the connection]
Serial_Killer_C has joined #ruby-lang
^sandbags^ is now known as sandbags
anachronistic has joined #ruby-lang
jgomez has quit [Remote host closed the connection]
futurechimp has quit [Quit: Leaving]
thillux has joined #ruby-lang
shtirlic has joined #ruby-lang
ananna has joined #ruby-lang
<nofxx> 'rescue' should always come last ? and when there's an 'ensure' too? *code style guidelines
cyri_ has quit [Quit: cyri_]
<mistym> nofxx: begin; rescue; ensure; end
savage- has joined #ruby-lang
<nofxx> mistym, cool, thank you
anannie has quit [Ping timeout: 240 seconds]
irleif has quit [Quit: Computer has gone to sleep.]
ryanlecompte has quit [Ping timeout: 260 seconds]
brianpWins has joined #ruby-lang
pulleasy has quit [Quit: Linkinus - http://linkinus.com]
brianpWins has quit [Client Quit]
Serial_Killer_C has quit [Remote host closed the connection]
Kingy has quit [Quit: Leaving]
yats has joined #ruby-lang
nettsundere has quit [Ping timeout: 252 seconds]
Serial_Killer_C has joined #ruby-lang
wallerdev has joined #ruby-lang
havenn has quit [Remote host closed the connection]
kurko_ has quit [Ping timeout: 265 seconds]
Serial_Killer_C has quit [Remote host closed the connection]
kurko_ has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
nitti_ has joined #ruby-lang
irleif has joined #ruby-lang
nitti has quit [Ping timeout: 265 seconds]
havenn has joined #ruby-lang
sepp2k1 has joined #ruby-lang
headius has joined #ruby-lang
jordan_ has joined #ruby-lang
jordan_ has quit [Remote host closed the connection]
yats has quit [Ping timeout: 265 seconds]
sepp2k has quit [Ping timeout: 240 seconds]
nettsundere has joined #ruby-lang
d3vic3 has quit [Quit: leaving]
methods has joined #ruby-lang
<drbrain> Don't forget then! begin; rescue; then; ensure; end
methods has left #ruby-lang [#ruby-lang]
ridders24 has joined #ruby-lang
<ridders24> anyone used ocra on windows?
wyhaines has joined #ruby-lang
wyhaines_ has quit [Read error: Connection reset by peer]
cyri_ has joined #ruby-lang
Serial_K_ has joined #ruby-lang
justinram has quit [Remote host closed the connection]
ridders24 has quit [Quit: Leaving]
lun__ has joined #ruby-lang
Uranio has quit [Quit: WeeChat 0.3.8]
sush24 has quit [Quit: This computer has gone to sleep]
robotmay has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
<imperator> nope
havenn has joined #ruby-lang
brianpWins has joined #ruby-lang
Rizzle has joined #ruby-lang
havenn has quit [Remote host closed the connection]
_Mon_Ouie_ has quit [Ping timeout: 244 seconds]
areil has quit [Remote host closed the connection]
_Mon_Ouie_ has joined #ruby-lang
intellitech has joined #ruby-lang
adambeynon has joined #ruby-lang
m3nd3s has joined #ruby-lang
mrsolo has quit [Quit: Leaving]
savage- has quit [Remote host closed the connection]
justinram has joined #ruby-lang
ryanlecompte has joined #ruby-lang
lun__ has quit [Remote host closed the connection]
havenn has joined #ruby-lang
mattsgarrison has joined #ruby-lang
alvaro_o has joined #ruby-lang
lun_ has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
Serial_K_ has quit [Remote host closed the connection]
nitti_ has quit [Remote host closed the connection]
hakunin_ is now known as hakunin
Serial_Killer_C has joined #ruby-lang
uuair has quit [Quit: uuair]
kith has quit [Quit: kith]
kith has joined #ruby-lang
dbussink has quit [Quit: Coyote finally caught me]
dbussink has joined #ruby-lang
cyri_ has quit [Quit: cyri_]
nitti has joined #ruby-lang
m3nd3s has quit [Read error: No route to host]
m3nd3s has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
justinmcp has quit [Ping timeout: 246 seconds]
CoverSlide has quit [Read error: No route to host]
swarley has joined #ruby-lang
CoverSlide has joined #ruby-lang
justinmcp has joined #ruby-lang
kurko_ has quit [Ping timeout: 245 seconds]
kurko_ has joined #ruby-lang
lcdhoffman has joined #ruby-lang
nickdc has joined #ruby-lang
kurko_ has quit [Ping timeout: 272 seconds]
kurko_ has joined #ruby-lang
achiu has quit [Read error: Operation timed out]
nickdc has quit [Ping timeout: 244 seconds]
m3nd3s has quit []
m3nd3s has joined #ruby-lang
headius has quit [Quit: headius]
nitti has quit [Remote host closed the connection]
kurko_ has quit [Ping timeout: 246 seconds]
tenderlove has quit [Remote host closed the connection]
kurko_ has joined #ruby-lang
burgestrand has joined #ruby-lang
jarib has quit [Excess Flood]
kurko_ has quit [Ping timeout: 245 seconds]
jarib has joined #ruby-lang
kurko_ has joined #ruby-lang
rippa has quit [Ping timeout: 272 seconds]
krohrbaugh has quit [Quit: Leaving.]
<erikh> hi folks
kurko_ has quit [Ping timeout: 255 seconds]
<freedrull> hi
Serial_Killer_C has quit [Remote host closed the connection]
kurko_ has joined #ruby-lang
headius has joined #ruby-lang
<rindolf> erikh: hi.
Serial_Killer_C has joined #ruby-lang
krohrbaugh has joined #ruby-lang
kurko_ has quit [Ping timeout: 245 seconds]
kurko_ has joined #ruby-lang
<matti> Hi erikh
<erikh> hi folks
wallerdev has quit [Quit: wallerdev]
<rue> Your fingers forgiven you, I take it?
<rindolf> erikh: sup?
<erikh> rue: oh no. I'm pretty sure I'm not going to drink for a month after this week is over.
elux has joined #ruby-lang
<elux> hey guys
headius has quit [Quit: headius]
<rindolf> elux: meow.
<elux> whats wrong with this..? x = lambda { something }; something.instance_eval(&x) ..?
<elux> this works fine if i define x = Proc.new { something }
<elux> er .. "something" is arbitrary .. those should be different..
<elux> x = lambda { something }; obj.instance_eval(&x) versus x = Proc.new { something }; obj.instance_eval(&x)
<elux> its like i can instance_eval a lambda?
<elux> cant*
hakunin has quit [Remote host closed the connection]
thillux_ has joined #ruby-lang
<rue> That so?
<elux> nevermind
<elux> i just used instance_exec
<elux> rue: yea.. its so when the method that gets run in the block doesnt exist.. i was just doing some block / method_missing magic for my dsl when building an AST .. long story
<elux> got it figured out..
<elux> thx
basicxman has joined #ruby-lang
basicxman has quit [Changing host]
basicxman has joined #ruby-lang
basicxman has left #ruby-lang [#ruby-lang]
thillux has quit [Ping timeout: 248 seconds]
ehutzelman has joined #ruby-lang
setmeaway has quit [Quit: Leaving]
tenderlove has joined #ruby-lang
<freedrull> does anyone know if there will ever be nil#to_hash or something
hakunin has joined #ruby-lang
<matti> Hi tenderlove
<tenderlove> hello!
<matti> freedrull: No.
blacktul_ has joined #ruby-lang
wallerdev has joined #ruby-lang
<rindolf> tenderlove: hi.
blacktulip has quit [Ping timeout: 248 seconds]
<matti> rindolf: I love your nick.
<rindolf> matti: thanks.
<matti> rindolf: Every time I see it, it reminds me about Santa Claus.
alexkane has quit [Quit: alexkane]
<rindolf> matti: OK.
wyhaines has quit [Ping timeout: 244 seconds]
<matti> rindolf: Which is a happy memory ;]
<matti> rindolf: +1
<rindolf> matti: I am actually Randolph's and Rudolph's Evil Twin Brother.
wyhaines has joined #ruby-lang
<rindolf> matti: I am a chief engineer in the Evil Reindeer conspiracy.
Carnage\ has joined #ruby-lang
<matti> rindolf: ;]
BigFatFatty has joined #ruby-lang
<matti> rindolf: I love the name Evil Reindeer Inc.
<matti> rindolf: If I will go to name a company one day...
<matti> ;]
Paradox has joined #ruby-lang
<rindolf> matti: OK.
<rindolf> matti: :-)
<rindolf> matti: well, actually, Rindolf was the name of a Dwarven warrior I played on some AD&D sessions.
<matti> rindolf: My nick also has roots in AD&D
<rindolf> matti: he was killed by a http://en.wikipedia.org/wiki/Doppelg%C3%A4nger
<rindolf> matti: ah.
<rindolf> matti: nice.
<rindolf> matti: how is it related to that?
<matti> rindolf: I managed to do a dice roll.
<matti> rindolf: And selected Matti from a name guide book.
<matti> rindolf: And I was playing this character for long time, so it stick.
<rindolf> Ah.
<rindolf> Matt is short for Matthew.
<matti> Matti is a Finnish name.
<rindolf> Which stems from the Hebrew name Matithyahu.
<matti> In this case.
<rindolf> Ah.
nitti has joined #ruby-lang
ehutzelman has quit [Remote host closed the connection]
bluepojo has joined #ruby-lang
<rindolf> matti: are you Finnish?
<matti> No.
<rue> He just took it in my honor
<matti> I am from country that has this letter -- ł
<rindolf> matti: Poland?
<matti> That was quick.
<matti> How did you know?
<rindolf> matti: I saw some Polish words.
<matti> Ah.
<rindolf> matti: I don't know Polish.
nitti has quit [Ping timeout: 245 seconds]
<rindolf> matti: my grandfather was born and raised in Poland.
<matti> rindolf: Oh, interesting.
<rindolf> matti: well, my grandfather on my father's side.
<matti> rindolf: Are you in the US?
<rindolf> matti: no, I'm Israeli.
<rindolf> matti: my grandfather was Jewish.
kurko_ has quit [Ping timeout: 264 seconds]
<rindolf> Well, the rest of my ancestors were as well.
* rindolf is Jewish.
<rue> Ruby isn’t kosher, though
fletch_ has joined #ruby-lang
<rindolf> rue: I don't keep Kosher.
kurko_ has joined #ruby-lang
<rindolf> rue: I'm not an observant Jew.
<rue> Ah. I wonder if snakes are kosher
erichmenge has quit [Quit: Be back later]
<rindolf> rue: don't think they are.
<matti> rindolf: Cool.
<matti> rindolf: At least you have amazing weather ;
<matti> rindolf: And super pretty girls ;]
<rindolf> matti: :-)
<matti> I went to Telaviv once.
<rindolf> matti: ah, nice.
<rindolf> matti: http://www.flickr.com/photos/shlomif/ - here are some photos I took.
<matti> Hot, sunny.
<matti> Loved it.
havenn has quit [Remote host closed the connection]
<rindolf> matti: I'm glad you did.
<rindolf> matti: did you go during the summer?
<matti> Yes ;s
<matti> rindolf: For two weeks in 2010.
<rindolf> matti: ah.
<matti> rindolf: Its like getting year worth of vitamin D supply ;p
<rindolf> matti: during the summer, it can get too hot for my taste.
<matti> rindolf: When coming back to UK.
<rindolf> matti: ah, do you live in the United Kingdom?
nitti has joined #ruby-lang
<matti> Yes
<rindolf> matti: when did you move?
<matti> Circa 8 years ago
<rindolf> matti: BTW, is your company looking for workers who are going to live in Israel?
havenn has joined #ruby-lang
<rindolf> matti: ah, a long time ago.
rolfb has joined #ruby-lang
<matti> rindolf: No idea. I am jobless at the moment ;]
<rindolf> matti: ah.
<matti> Hahah
rolfb has quit [Client Quit]
<rindolf> matti: so am I. :-(
<matti> rindolf: Cheer up! :)
<rindolf> matti: yes.
<rindolf> matti: well, the problem of many - half a consolation.
<rindolf> Or as my teacher used to say - the problem of many - the consolation of fools.
<rindolf> Maybe it sounds better in Hebrew.
<rindolf> matti: do you have experience with Rails/etc.?
<matti> rindolf: Not with Rails.
<rindolf> matti: ah.
<rindolf> matti: then with what?
nickdc has joined #ruby-lang
havenn has quit [Ping timeout: 244 seconds]
<rindolf> matti: so far I've only written algorithmic, sys admin and text processing Ruby code.
<rindolf> Not a lot of web stuff.
<rindolf> Which is what employers are looking for.
<matti> rindolf: Quite similar to me.
ttilley has quit [Remote host closed the connection]
ttilley has joined #ruby-lang
<rindolf> matti: ah.
<rindolf> matti: what experience do you have in other languages?
havenn has joined #ruby-lang
lteo has joined #ruby-lang
headius has joined #ruby-lang
nickdc has quit [Ping timeout: 245 seconds]
zafarksaw has joined #ruby-lang
zafarksaw has quit [Client Quit]
havenn has quit [Remote host closed the connection]
zafarksaw has joined #ruby-lang
zafarksaw has quit [Client Quit]
ksaw has joined #ruby-lang
ksaw has quit [Client Quit]
tonni has joined #ruby-lang
conorreedy has quit [Ping timeout: 246 seconds]
zafar has joined #ruby-lang
perryh has quit [Excess Flood]
perryh has joined #ruby-lang
conorreedy has joined #ruby-lang
intellitech has quit [Quit: Leaving]
headius has quit [Quit: headius]
zafar has quit [Quit: irc2go]
voker57 has quit [Remote host closed the connection]
blacktul_ has quit [Ping timeout: 255 seconds]
blacktulip has joined #ruby-lang
adamjleonard has joined #ruby-lang
yxhuvud has quit [Ping timeout: 244 seconds]
postmodern has joined #ruby-lang
shtirlic has quit [Remote host closed the connection]
crudson has joined #ruby-lang
sailias has quit [Quit: Leaving.]
kurko_ has quit [Quit: Computer has gone to sleep.]
<lteo> is there a way to get the actual ruby script name if i have already modified $0 ?
<swarley> you could pray for $PROGRAM_NAME
<matti> rindolf: C, Java, Ruby, Python
<rindolf> matti: ah.
<swarley> nevermind, its bound
<swarley> lteo; you could get __FILE__
<swarley> but that's only if the script being run is in that file
therod has quit [Quit: Leaving...]
wallerdev has quit [Quit: wallerdev]
conorreedy has quit [Quit: conorreedy]
<lteo> swarley: thanks. yeah __FILE__ is almost it, but as you said only if the script is being run in that file.
<lteo> i'll just use another way to work around it
<matti> rindolf: I am not a developer.
<swarley> you can always do something like
<mistym> lteo: Why did you modify $0?
<swarley> $__PROGRAM_NAME__ = __FILE__
<swarley> in the main script
<lteo> mistym: this ruby script runs in the background and i wnated a way for it to show what it's doing from the process list
<drbrain> $PROGRAM_NAME
<drbrain> ruby19 -e 'p $PROGRAM_NAME; $0 = "hello"; p $PROGRAM_NAME'
<naquad> are there any lightweight frameworks for ruby other than sinatra or ramaze?
<swarley> drbrain; but he has already modified $0
<drbrain> swarley: and?
<drbrain> swarley: what does that have to do with $PROGRAM_NAME?
<swarley> They are bound
<mistym> lteo: Does that actually work? I thought $0 didn't actually affect what the terminal displays. (Or maybe that's platform-dependent.)
<drbrain> swarley: no they are not
<swarley> [3] pry(main)> $0 = "hi"
<swarley> => "hi"
<swarley> => "hi"
<swarley> [4] pry(main)> $PROGRAM_NAME
<swarley> yes they are
<lteo> mistym: it works for me on OpenBSD
<drbrain> swarley: don't use pry, use ruby: http://paste.segment7.net/zg.html
<rindolf> matti: ah, are you a sys-admin?
<swarley> irb(main):001:0> $0 = "hi"
<swarley> => "hi"
<swarley> irb(main):002:0> $PROGRAM_NAME
<swarley> => "hi"
toretore has quit [Quit: This computer has gone to sleep]
<swarley> I'm sorry, I can't hear you over me being right
slyphon has quit [Ping timeout: 245 seconds]
<mistym> lteo: Interesting. Doesn't seem to work for me on OS X.
Kingy has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
<lteo> mistym: hmm ok i guess it's platform-dependent after all
<swarley> swarley@OctaviasViolin ~/Documents/Programming/Ruby/ruby-1.9.3-p286 $ ruby -e"\$0='hi';p \$PROGRAM_NAME"
<swarley> "hi"
<drbrain> ah, damnit, sorry
<lteo> mistym: i have a script called blah that does $0 = "hey there" and sleeps.. the ps output shows:
<lteo> lteo 5317 0.0 0.4 800 2004 p3 S+ 5:15PM 0:00.02 ruby: hey there (ruby)
<mistym> lteo: Oh yeah, never mind. It does show as that in ps.
<lteo> woot
<mistym> I was going by the process name in the Terminal.app tab header, which is still 'ruby'.
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby-lang
wyhaines_ has joined #ruby-lang
justinmcp has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
nitti has quit [Remote host closed the connection]
wyhaines has quit [Ping timeout: 252 seconds]
wyhaines has joined #ruby-lang
justinram has quit [Remote host closed the connection]
wyhaines_ has quit [Ping timeout: 244 seconds]
headius has joined #ruby-lang
__butch__ has joined #ruby-lang
__butch__ has quit [Remote host closed the connection]
blacktulip has quit [Remote host closed the connection]
swarley has quit [Ping timeout: 246 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
nitti has joined #ruby-lang
elux has quit [Quit: Bye!]
scampbell has quit [Remote host closed the connection]
zspencer has quit [Quit: zspencer]
wyhaines_ has joined #ruby-lang
wyhaines has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby-lang
nitti has quit [Remote host closed the connection]
sebastiandeutsch has joined #ruby-lang
coryf has quit [Remote host closed the connection]
<sebastiandeutsch> Hi I have a method that takes def flagger(*args) - in the code it's usually called flagger :flag, :another_flag no I want to collect all flags in a map and pass it to that method - how can I archive that flagger @map does not do the thing i want :-(
slyphon has joined #ruby-lang
therod has joined #ruby-lang
<heftig> sebastiandeutsch: @map is an array like [:foo, :bar, :baz]?
<sebastiandeutsch> heftig: @map like { flag: true, another_flag: true }
workmad3 has quit [Ping timeout: 255 seconds]
<sebastiandeutsch> I inspected the code of flagger and it's checking if certain keys are within args (and then it's doing magic stuff)
<heftig> why a hash?
<sebastiandeutsch> heftig: don't know I can construct what I want
anachronistic has quit [Quit: anachronistic]
sailias has joined #ruby-lang
sailias has quit [Client Quit]
<heftig> would be easier to just make it an array
nickdc has joined #ruby-lang
<heftig> then you can do flagger(*@flags)
<sebastiandeutsch> heftig: good pointer
<sebastiandeutsch> heftig: just found that our
<sebastiandeutsch> *t
<sebastiandeutsch> heftig: thank you
<nickdc> How can I use/convert a string to refer to an existing class instance? e.g. https://gist.github.com/58bf6ae618a9f90d104f
<drbrain> nickdc: use a Hash
gsav has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
therod has quit [Ping timeout: 255 seconds]
<nickdc> drbrain: A hash of the existing objects?
uuair has joined #ruby-lang
mistym has quit [Remote host closed the connection]
tenderlo_ has joined #ruby-lang
<zzak> yes, with a symbol key since they are immutable
tenderlove has quit [Ping timeout: 260 seconds]
uuair has quit [Client Quit]
Carnage\ has quit []
gsav has quit [Ping timeout: 252 seconds]
alessio has quit [Remote host closed the connection]
gsav_ has quit [Ping timeout: 272 seconds]
adamjleonard has quit [Quit: Leaving...]
rindolf has quit [Quit: Yay! I'm a llama again. http://www.shlomifish.org/]
<drbrain> zzak: in this case, a string would be better
<drbrain> since that's what the user passes in, you don't have to do extra conversions
<zzak> my_hash.store obj.to_s, obj
nitti has joined #ruby-lang
<zzak> oh, yah in that case
slyphon has quit [Ping timeout: 245 seconds]
amirinator has joined #ruby-lang
coryf has joined #ruby-lang
<amirinator> hello
<nickdc> Thanks very much all. That's been very helpful.
m3nd3s has quit [Remote host closed the connection]
<matti> Ohai zzak
<zzak> hi
<amirinator> If anyone wants to take a shot at this issue and help me I would appreciate it!
intellitech has joined #ruby-lang
Serial_Killer_C has quit [Remote host closed the connection]
slyphon has joined #ruby-lang
Madis_ has joined #ruby-lang
imperator has quit [Quit: Leaving]
kurko_ has joined #ruby-lang
enebo has quit [Quit: enebo]
Madis has quit [Ping timeout: 252 seconds]
cyri_ has joined #ruby-lang
tenderlo_ has quit [Read error: Connection reset by peer]
wyhaines_ has quit [Ping timeout: 252 seconds]
Madis has joined #ruby-lang
wyhaines has joined #ruby-lang
tenderlove has joined #ruby-lang
havenn has joined #ruby-lang
milestone has joined #ruby-lang
<milestone> hi all
tenderlove has quit [Read error: Connection reset by peer]
<milestone> i have defined a class
<milestone> in which i want to use zipruby
tenderlove has joined #ruby-lang
<milestone> but i keep getting in `initialize': uninitialized constant Jarfile::Zip (NameError)
<milestone> in the line i am calling Zip::Archive.open(filename) do |archive|
headius has quit [Quit: headius]
Madis_ has quit [Ping timeout: 255 seconds]
<milestone> how can i use the gem from inside a class?
<milestone> Jarfile is the name of my class
NOKAH has joined #ruby-lang
ddd1 has joined #ruby-lang
nitti has quit [Remote host closed the connection]
ddd is now known as Guest41332
ddd1 is now known as ddd
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
Hakon has quit [Ping timeout: 272 seconds]
Guest41332 has quit [Ping timeout: 245 seconds]
coryf has quit [Remote host closed the connection]
<blazes816> milestone: use :: to get to the root namespace
<blazes816> milestone: ::Zip instead of just Zip
<milestone> blazes816: i did that
nickdc has quit [Quit: [leaving...]]
<blazes816> and what happened? at the very least it should be a different error
<blazes816> ::Zip::Archive.open(filename) do |archive|
<blazes816> should work
<milestone> blazes816: see the comment https://gist.github.com/ebb6cdfcc2f9b25d9e2b#comments
<blazes816> hmm
<blazes816> perhaps it's an issue with Mavenizer
<blazes816> (never used or heard of it)
<blazes816> but it's saying it can't find "puts"
<blazes816> which is insane
<milestone> blazes816: this is my script
<blazes816> lol
<milestone> Mavenizer is my little ruby script
<blazes816> gotcha
<blazes816> well, you COULD use Kernel.puts
<blazes816> but you shouldn't need to
<blazes816> and that's awful looking
<bluepojo> You're subclassing BasicObject
<bluepojo> you don't have Kernel included
<bluepojo> so you don't have puts
<blazes816> lol, I didn't notice that
<blazes816> good call
<bluepojo> subclass Object and you'll get Kernel
<andrewvos> rue: I thought you were calling me pretty there for a second when I looked on Twitter :/
<andrewvos> hahaha
<andrewvos> xx
<blazes816> milestone: jesus
<blazes816> ::Kernel
<blazes816> any particular reason your subbing BasicObject instead of Object?
<milestone> blazes816: i would guess it is because i am a complete idiot? ;)
<milestone> blazes816: i am a total noob with ruby
<blazes816> lol
<blazes816> np
<blazes816> don't inherit from something unless you have a reason to
<blazes816> start with just a plain old ruby object
<milestone> blazes816: yes it works now :)
<blazes816> woot!
<milestone> blazes816: thanks a bunch bluepojo as well
<erikh> drbrain: around?
sepp2k1 has quit [Remote host closed the connection]
<drbrain> erikh: hi
<erikh> herro. how far is vivace from 1st street?
<drbrain> ride the 49
<erikh> ok. trying to bring a guy that's here for the summit that wrote a pure-ruby constraint solver (based on gecode) as a library
<erikh> figured it (and his insights into his own code) might be relevant to your interests
<drbrain> o_O
<drbrain> that's sweet
<drbrain> you can type "opscode to espresso vivace brix" into google maps
<erikh> if you want to poke at it
<andrewvos> erikh: Oi!
<zzak> having nerd club?
outoftime has quit [Quit: Leaving]
<drbrain> erikh: Aaron with the pinkish/redish hair is also coming up
<drbrain> … Aaron from Chicago
<erikh> aaron who?
<erikh> oh, he's sitting right next to me
<erikh> sec
sandbags has quit [Remote host closed the connection]
<drbrain> Aaron Kalin, we think
fletch_ has quit []
<drbrain> if you come at sixish we'll be going to dinner
<drbrain> otherwise, seven
<erikh> cool; just talked to aaron, it's a deal
imajes has quit [Excess Flood]
<erikh> drbrain: reset might not be able to make it, but you two should talk
<drbrain> ok
imajes has joined #ruby-lang
lun__ has joined #ruby-lang
<erikh> anyhow if I don't shake off this hangover I will probably not be very exciting
<erikh> TO THE COFFEE
chessguy has quit [Remote host closed the connection]
BigFatFatty has left #ruby-lang [#ruby-lang]
lun_ has quit [Ping timeout: 240 seconds]
philiphale1 has joined #ruby-lang
jkyle has joined #ruby-lang
<jkyle> is there a way to uninstall all gems that were installed as a dependency of a gem that is no longer installed? (like apt-get autoremove or port uninstall leaves)
<andrewvos> jkyle: Just delete all the things
<jkyle> is that another way of saying "manually"?
<andrewvos> jkyle: Short answer: Yes
<andrewvos> jkyle: Long answer: Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes
cyri_ has quit [Quit: cyri_]
<heftig> a reason to prefer bundler
WillMarshall has joined #ruby-lang
zspencer has joined #ruby-lang
swarley has joined #ruby-lang
nertzy3 has joined #ruby-lang
m3nd3s has joined #ruby-lang
kurko_ has quit [Ping timeout: 246 seconds]
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
kurko_ has joined #ruby-lang
tenderlove has quit [Ping timeout: 244 seconds]
tenderlove has joined #ruby-lang
ilyam has joined #ruby-lang
kurko_ has quit [Ping timeout: 245 seconds]
wyhaines has quit [Ping timeout: 252 seconds]
<jkyle> bundler and rvm introduce a whole new level of madness when trying to script stuff
kurko_ has joined #ruby-lang
kurko_ has quit [Ping timeout: 276 seconds]
philiphale1 has quit [Quit: Leaving.]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
WillMarshall has quit [Quit: Computer has gone to sleep.]
x0F_ is now known as x0F
kurko_ has joined #ruby-lang
nitti has joined #ruby-lang
erichmenge has joined #ruby-lang
gsav has joined #ruby-lang
NOKAH has quit [Quit: Leaving...]
nitti has quit [Ping timeout: 264 seconds]
milestone has quit [Ping timeout: 248 seconds]
bfreeman has quit [Quit: bfreeman]
anachronistic has joined #ruby-lang
test__ has joined #ruby-lang
zspencer has quit [Quit: zspencer]
kurko_ has quit [Ping timeout: 245 seconds]
zspencer has joined #ruby-lang
therod has joined #ruby-lang
Madis has quit [Quit: ChatZilla 0.9.89 [Firefox 15.0/20120830123745]]
kurko_ has joined #ruby-lang