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
ianbrandt has quit [Quit: ianbrandt]
havenn has quit [Remote host closed the connection]
ePirat has joined #ruby
sebastorama has quit [Quit: Computer has gone to sleep.]
nari has quit [Ping timeout: 252 seconds]
mwilson_ has quit [Excess Flood]
mwilson_ has joined #ruby
eykosioux has joined #ruby
ben_alman has quit [Excess Flood]
silentpost has joined #ruby
k_89 has quit [Ping timeout: 250 seconds]
vDubG has joined #ruby
vitoravelino is now known as vitoravelino`afk
benson has quit [Quit: Leaving]
ben_alman has joined #ruby
ciopte7 has joined #ruby
bglusman has quit [Remote host closed the connection]
subbyyy has joined #ruby
zer0s has joined #ruby
olrrai has quit [Quit: Saliendo]
mwilson_ has quit [Excess Flood]
ephemerian has quit [Quit: Leaving.]
Aaton is now known as Aaton_off
mwilson_ has joined #ruby
mahmoudimus has joined #ruby
<mahmoudimus> hi, i'm trying to implement similar to python's generator in ruby (i'm using ruby 1.9.1), is the appropriate thing here to use fibers?
bradhe has quit [Remote host closed the connection]
bowlowni has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
joshman_ has quit [Quit: Computer has gone to sleep.]
Foxandxss has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
BrokenCog has quit [Quit: leaving]
k_89 has joined #ruby
sebastorama has joined #ruby
bowlowni has quit [Ping timeout: 248 seconds]
stephenjudkins has joined #ruby
vladiim has quit [Quit: vladiim]
jblack has quit [Quit: Lost terminal]
silentpost has quit [Ping timeout: 240 seconds]
bricker88 has quit [Quit: Leaving.]
btanaka has quit [Remote host closed the connection]
saschagehlich has joined #ruby
liluo has quit [Remote host closed the connection]
hunglin has joined #ruby
vitor-br has joined #ruby
beilabs has joined #ruby
silentpost has joined #ruby
dankest has quit [Quit: Leaving...]
hunglin has quit [Remote host closed the connection]
billiamii has quit [Read error: Connection reset by peer]
hunglin has joined #ruby
hunglin has left #ruby [#ruby]
ckrailo has quit [Quit: Computer has gone to sleep.]
Maniacal has quit [Ping timeout: 252 seconds]
jsilver_ has joined #ruby
<jsilver_> what's the best ruby parser i can use from inside ruby
digitalcakestudi has quit [Quit: Leaving.]
bradhe has joined #ruby
eykosioux has quit [Quit: eykosioux]
dnyy has joined #ruby
saschagehlich has quit [Quit: saschagehlich]
headius has quit [Quit: headius]
jxf has quit [Ping timeout: 265 seconds]
balki_ is now known as balki
vitor-br has quit [Quit: Saindo]
bluenemo has quit [Remote host closed the connection]
<jsilver_> stephenjudkins: will have a look, thanks
<offby1> Seattle, eh?
<jsilver_> yes I was there, it looks like the best thanks
* offby1 really ought to get his butt down to Seattle Ruby Hack Night one o' these days
jfoley has joined #ruby
alexch has joined #ruby
bglusman has joined #ruby
kpshek has quit []
silentpost has quit [Ping timeout: 252 seconds]
Natch has joined #ruby
dv310p3r has joined #ruby
<stephenjudkins> mahmoudimus: yes, fibers are what you would use
<stephenjudkins> keep in mind that fibers are very inefficient in JRuby
iocor has quit [Quit: Computer has gone to sleep.]
bigoldrock has quit [Quit: Leaving.]
mengu has joined #ruby
Goles has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
R_Macy has quit [Quit: Leaving...]
havenn_ has quit [Remote host closed the connection]
artOfWar has joined #ruby
quest88 has joined #ruby
artOfWar_ has joined #ruby
notjohn has joined #ruby
VegetableSpoon has joined #ruby
artOfWar has quit [Ping timeout: 240 seconds]
sailias has joined #ruby
Ontolog has quit [Ping timeout: 245 seconds]
akem has quit [Ping timeout: 252 seconds]
thecreators has joined #ruby
dsa has joined #ruby
jsilver_ has quit [Remote host closed the connection]
vitor-br has joined #ruby
EzeQL has quit [Ping timeout: 260 seconds]
hadees has joined #ruby
Farhan has joined #ruby
<Farhan> What is PDFkit and how do I install it?
EzeQL has joined #ruby
<k_89> Farhan, how do you install other gems?
jarray52 has joined #ruby
bglusman has quit [Remote host closed the connection]
dsa has quit [Ping timeout: 260 seconds]
c0rn_ has quit [Quit: Computer has gone to sleep.]
<jarray52> I'm trying to translate a C program to ruby. In one line, I have a socket write command. The return value in C should be 14. In ruby, socket.write is giving me a 13. The socket declaration was TCPSocket.open(ip,port). What does the return value of 13 stand for?
quest88 has quit [Quit: quest88]
quest88 has joined #ruby
manizzle has quit [Read error: Operation timed out]
moshee has quit [Ping timeout: 240 seconds]
moshee has joined #ruby
<offby1> I'd guess "number of bytes written".
<offby1> Take a look at the GNU C Library docs for that function
<jarray52> offby1: Are the return values in ruby the same as those in C?
<offby1> probably.
Chryson has quit [Quit: Leaving]
<offby1> when you say "the return value should be 14" ... where does that 14 come from?
<jarray52> offby1: In the C program, I believe the exact bytes sent were counted. After your comment about the return value being number of bytes sent, I realized I didn't have the newline character.
<snail> offby1: either the number of bytes or a negative number describing an error condition
Farhan has quit [Quit: Leaving.]
<jarray52> snail: I believe it is the number of bytes. I added the newline, and the number of bytes increased to 14, and the problem was resolved.
dankest has joined #ruby
dankest has quit [Client Quit]
<jarray52> offby1: Thanks. That resolves the problem I was encountering. Ironic that you were the one to answer the question... given the screenname.
dankest has joined #ruby
shadoi has quit [Ping timeout: 245 seconds]
jfoley has quit [Quit: jfoley]
apok_ has joined #ruby
dhodgkin has quit [Read error: Operation timed out]
apok_ has quit [Client Quit]
Stefunel has quit [Ping timeout: 246 seconds]
kenperkins has joined #ruby
blazes816 has quit [Quit: Leaving]
Stefunel has joined #ruby
dv310p3r has quit [Ping timeout: 255 seconds]
thatRD has quit [Ping timeout: 244 seconds]
jarred has quit [Quit: jarred]
apok has quit [Ping timeout: 244 seconds]
artOfWar_ has quit [Ping timeout: 245 seconds]
dhodgkin has joined #ruby
savage- has quit [Remote host closed the connection]
thatRD has joined #ruby
mdszy has joined #ruby
keppy has joined #ruby
Travis-42 has quit [Quit: Travis-42]
mockra has quit [Remote host closed the connection]
xpot-station has quit [Ping timeout: 252 seconds]
busybox42 has quit [Read error: Operation timed out]
busybox42 has joined #ruby
dbgster has joined #ruby
thatRD has quit [Ping timeout: 264 seconds]
null- has joined #ruby
jrajav has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
thatRD has joined #ruby
<Paradox> this is amusing
<Paradox> "stay away from oo"
<Paradox> why use a language in which OO was an after-thought as a modern teaching language
<Paradox> why not use one where it is so fundamental that you can't help but use it
<Paradox> i'm obviously talking about CLU
<Gavilan> why not use one where it is so fundamental that you can't help but use it ---> that's not possible....
<null-> Java
<null-> what is CLU?
* offby1 whistles innocently
* Gavilan throws a rock at offby1 innocently
<offby1> Paradox: I read that blog
<Paradox> i mean
<Gavilan> (I'm free of sin)
<seanstickle> I like that blog.
<Paradox> from a pedagogic standpoint
<seanstickle> I agree that OO is mostly bullshit.
* offby1 innocently hires professional terrorists to wreak doom and destruction upon Gavilan, his favorite football team, and other people whose names contain some of the same letters
<Paradox> proceedural is far easier to learn than OO
<Paradox> however
<seanstickle> Functional is even easier, for such a one as me
<Paradox> Functional == Proceedural
<seanstickle> Ok
cantonic_ has joined #ruby
Jay_Levitt has quit [Ping timeout: 244 seconds]
* Gavilan hires Chuck Norris to protect him and defeat offby1... Against Chuck Norris the fight finish before it starts...
<Paradox> you're describing a procedure in the order in wich you want it to execute
<Paradox> However
<Paradox> OO isn't difficult to learn, if you do it right
<Paradox> i had a bet with a friend (we were teaching CS courses at a local summer camp for kids)
thatRD has quit [Ping timeout: 252 seconds]
<Paradox> he would teach via python, and i would teach via ruby
<Paradox> at the end of the 8 weeks (last weekend)
<Paradox> we compared notes
<null-> who won?
<null-> :)
<Gavilan> Paradox: I like teaching with cooking recipies...
<Paradox> of the two languages, ruby was a little harder to pick up, but they scored higher on the tests
<Paradox> python was easier to get started on
<Paradox> but had a mean test average of 78%
<Paradox> ruby had one of 87%
deco has joined #ruby
<Paradox> students in ruby seemed to more intuitively grasp OO programming
<Paradox> as well as concepts such as lambdas
<Paradox> which only 10% of the python students answered correctly
cantonic has quit [Ping timeout: 244 seconds]
cantonic_ is now known as cantonic
<deco> what's a good book to learn ruby for a non programmer ?
stat1x has quit [Ping timeout: 246 seconds]
<Gavilan> deco: SICP
<Paradox> Pickaxe book
<Paradox> thats what we used
<deco> Paradox: thanks! i'll take a look
<Paradox> tryruby.org for the first day, pickaxe book for the rest
<Paradox> deco, its by pragmatic press
stat1x has joined #ruby
<deco> Paradox: you used that in school ?
<Paradox> summer camp
<deco> oh
<Paradox> for geek kids
<deco> awesome
<Paradox> the ruby kids all loved IRC
<Paradox> so we did a lot of projects involving cinch-rb
<deco> man i don't know why i get a bunch of hate from friends when i told them i was going to learn ruby :/
<deco> it seems like a really nice language
<Paradox> i have a few theories on why there is so much ruby hate
<Paradox> i'm a mass-comm major, so part of it is psychology of crowds and masses of people
<Paradox> my largest is that ruby programmers seem to have more fun, more free time, can produce more in less time, and generally aren't quite as asocial as the average programmer
<null-> It can't be like java hate
ben_alman has quit [Excess Flood]
<Paradox> out of this comes a nature of us-vs-them
friskd has joined #ruby
<Paradox> as in "fucking ruby hipsters"
<null-> I don't really want to learn ruby, but I want Rails ;)
<Paradox> people will dismiss this with "but ruby is slow" (WRONG, 1.9 is faster than python and virtually every other scripting language)
<Paradox> or other reasons
thatRD has joined #ruby
<deco> haha thanks Paradox makes sense! :-)
<Paradox> however
ben_alman has joined #ruby
<Paradox> thats not all of it
ben_alman has quit [Excess Flood]
<Paradox> ruby is also very different than the standard, run-of-the-mill languages, such as python and java
<Paradox> Python and Java are what i call semi-OO languages
<Paradox> they have OO features
ben_alman has joined #ruby
<Paradox> but they aren't purely OO
<Paradox> my favorite example is the for loop and iterators
<Paradox> ruby, you want to iterate over a homemade collection, you just write a #each method that accepts a block
havenn has joined #ruby
<Paradox> python/java, you have to use iterators or iteratable or similar things
<Gavilan> Paradox: If you go that way, you don't have any language that is purely OO....
<Paradox> so since ruby is different, they dont understand it, and people fear that which they dont understand
<Paradox> finally
<Paradox> the final shard is the church of the technologist
hugoxrosa has quit [Read error: Connection reset by peer]
<Paradox> in many ways, people see easier, faster tools as devaluing technical knowledge
<Paradox> tearing down the technological priesthood
jesly has joined #ruby
<Paradox> this leads to hatred
<deco> like ubuntu i guess
<Paradox> yup
<Paradox> or OS X
<Paradox> or numerous other things
<Gavilan> Paradox: I think that the main problem is that a lot of people actually still belive that Programming has to do with maths...
<Paradox> Gavilan, well thats partially due to the way CS is taught
<Paradox> i went to Uni as a CS major
<Paradox> and got out as fast as i fucking could
<Paradox> CS you spend 1 semester actually programming
<null-> Paradox: you think I could learn Ruby pretty quick after coming from C?
<Paradox> the other 15 are writing proofs and theorems
<Paradox> null-, discard all but the most rudimentary knowledge of programming, and yes
<Paradox> and dont be scared when something is done differently
<Gavilan> null-: You just need a good teacher....
<seanstickle> I tend to think that programming has a lot to do with maths
hadees has quit [Quit: hadees]
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
<Paradox> when you come across 10.times { puts herp }
<seanstickle> But I'm just a programmer, so I might be terribly wrong
<Paradox> dont think of it as dumb
dnyy has quit [Remote host closed the connection]
<Paradox> seanstickle, all depends on the type of programming
<Paradox> data-crunching and backend? yeah that has math
<Gavilan> seanstickle: Math is useful for algorithms and making things fast... All the other things you do have nothing to do with math....
<null-> I bought the PickAxe ebook
<Paradox> but how do you use math to describe, say, a website that looks good?
<Paradox> null-, excellent choice
<Paradox> its a great book
<seanstickle> Gavilan: I have, perhaps, a more liberal definition of math
<Gavilan> seanstickle: Understanding client = no math; designing your app = no math; creating a good model = no math; understanding the domain = no math; thinking good names for your things = no math;
<null-> yeah, and it covers ruby 1.9.3
<seanstickle> I'd say creating a good model involves a great deal of math
<seanstickle> As does designing the app
<Paradox> what about a user profile?
<Gavilan> Math is useful if you think that Programming is about telling things to the computer...
<seanstickle> But I'll not quibble
andoriyu_ has joined #ruby
<Gavilan> Math sux when you realize that programming is about telling things to other programmers...
<Paradox> math has its place
<Paradox> but the problem is when people think its the ONLY thing computers can do
<Paradox> and with that im going to go eat at Ruby Tuesdays
<Paradox> lol
<Gavilan> seanstickle: Unless your domain is math related, it doesn't help that much....
<deco> Paradox: haha enjoy !
<seanstickle> I include mathematical logic, various process calculi, and relational algebras in math
<seanstickle> So maybe my operational definition differs from others
<null-> Computer scientist are mathematicians, programmers are not
<Gavilan> seanstickle: How would you solve the standard problem Teacher,Student,University,Semester etc....?
<seanstickle> The standard problem?
andoriyu has quit [Read error: Operation timed out]
<null-> A programmer can get a long way with good arithmetic
Guedes has quit [Ping timeout: 250 seconds]
<seanstickle> null-: I get a long way along with abstract algebra
Spooner has quit [Ping timeout: 248 seconds]
<seanstickle> And I am no mathematician, nor a computer scientist
Araxia has quit [Quit: Araxia]
thecreators has quit [Quit: thecreators]
perryh_away is now known as perryh
<seanstickle> But I do love me some formal methods
<seanstickle> Yay for Z!
yellow5 has quit [Ping timeout: 240 seconds]
perryh is now known as perry
shadoi has joined #ruby
noganex has quit [Ping timeout: 246 seconds]
voodoofish430 has quit [Quit: Leaving.]
<null-> why are there two ruby irc channels?
<seanstickle> null-: sleight of hand
<offby1> dunno; I wish the Powers that Be™ merged 'em
<seanstickle> The Powers That Be separated them
<seanstickle> So I don't think they will un-rend the fabric that is torn
noganex has joined #ruby
fbernier has joined #ruby
igotnolegs has joined #ruby
kenichi has quit [Remote host closed the connection]
yellow5 has joined #ruby
<offby1> how odd.
<offby1> I can see separating ruby from rubyonrails ...
<fowl> this channel is better
<fowl> #ruby-lang has dicks for moderators
<offby1> oh heck, I didn't even know about #ruby-lang; I was talking about #rails versus #Rubyonrails
<seanstickle> :D
<seanstickle> And that doesn't even count #rubyformalmethods
timonv has joined #ruby
pskosinski has quit [Ping timeout: 264 seconds]
Yugo has joined #ruby
Yugo is now known as Guest14152
JustinCampbell has quit [Remote host closed the connection]
pskosinski has joined #ruby
indian has quit [Ping timeout: 264 seconds]
JustinCampbell has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
Guest66238 has quit [Ping timeout: 244 seconds]
Cache_Money has quit [Ping timeout: 248 seconds]
mikeycgto has joined #ruby
mikeycgto has quit [Changing host]
mikeycgto has joined #ruby
banisterfiend has quit [Remote host closed the connection]
banisterfiend has joined #ruby
Farhan has joined #ruby
k_89 has quit [Ping timeout: 255 seconds]
pskosinski has quit [Ping timeout: 255 seconds]
chimkan_ has joined #ruby
seanstickle has quit [Quit: Nihil sub sole novum]
Sweet_P has joined #ruby
banisterfiend has quit [Ping timeout: 244 seconds]
Sweet-P has quit [Ping timeout: 245 seconds]
JustinCampbell has quit [Ping timeout: 245 seconds]
bglusman has joined #ruby
dbgster has quit [Quit: dbgster]
manizzle has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
bglusman has quit [Ping timeout: 264 seconds]
td123 has joined #ruby
hadees has joined #ruby
ben_alman has quit [Excess Flood]
ciopte7 has quit [Quit: ciopte7]
ben_alman has joined #ruby
jfoley has joined #ruby
ben_alman has quit [Excess Flood]
havenn has quit [Remote host closed the connection]
krz has joined #ruby
Farhan has left #ruby [#ruby]
kevinbond has joined #ruby
jrs0390 has joined #ruby
umttumt has joined #ruby
fbernier has quit [Ping timeout: 245 seconds]
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
ben_alman has joined #ruby
tds has quit [Quit: tds]
zer0s has quit [Quit: Page closed]
ipoval has joined #ruby
nari has joined #ruby
cousine has quit [Remote host closed the connection]
jgrevich has quit [Ping timeout: 246 seconds]
stefanp_ has joined #ruby
mengu has quit [Remote host closed the connection]
fbernier has joined #ruby
jgrevich has joined #ruby
stefanp has quit [Ping timeout: 265 seconds]
ciopte7 has joined #ruby
radic has quit [Ping timeout: 246 seconds]
fbernier has quit [Ping timeout: 264 seconds]
RainbowDashh has joined #ruby
jamesaxl has quit [Ping timeout: 240 seconds]
RainbowDashh has quit [Disconnected by services]
PinkiePiee has joined #ruby
mwilson_ has quit [Excess Flood]
oooPaul has quit [Quit: Ciao for now!]
mwilson_ has joined #ruby
ridingwithrails has joined #ruby
radic has joined #ruby
jrs0390 has quit [Quit: jrs0390]
PinkiePiee has quit [Ping timeout: 246 seconds]
krz has quit [Quit: krz]
Sheehan has joined #ruby
RainbowDashh has joined #ruby
pk1001100011 has joined #ruby
jesly has quit [Ping timeout: 246 seconds]
ilyam has quit [Quit: ilyam]
chimkan_ has quit [Quit: chimkan_]
R_Macy has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
davidpk has quit [Quit: Computer has gone to sleep.]
dbgster has joined #ruby
eykosioux has joined #ruby
Sheehan has quit [Quit: Sheehan]
stephenjudkins has quit [Quit: stephenjudkins]
robbyoconnor has quit [Max SendQ exceeded]
robbyoconnor has joined #ruby
jgrevich has quit [Quit: jgrevich]
dhruvasagar has joined #ruby
Sheehan has joined #ruby
baroquebobcat has joined #ruby
jxf has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
VegetableSpoon has quit [Quit: Leaving]
Cache_Money has joined #ruby
savage- has joined #ruby
kevinbond has quit [Quit: kevinbond]
robbyoconnor has joined #ruby
pting has quit [Quit: Ex-Chat]
kevinbond has joined #ruby
adeponte has joined #ruby
kevinbond has quit [Client Quit]
robbyoconnor has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
jarred has joined #ruby
davejacobs has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
robbyoconnor has quit [Read error: Connection reset by peer]
jarred_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
jarred has quit [Ping timeout: 248 seconds]
jarred_ is now known as jarred
pu22l3r has joined #ruby
pu22l3r has quit [Remote host closed the connection]
jerius has joined #ruby
pu22l3r has joined #ruby
jarray52 has left #ruby [#ruby]
dhodgkin has quit [Ping timeout: 244 seconds]
mdszy has quit [Quit: nini]
banisterfiend has joined #ruby
wagle has quit [Ping timeout: 250 seconds]
tewecske has joined #ruby
RubyPanther has quit [Quit: self.exit(:stage=>:left)]
t3hk0d3 has joined #ruby
araujo has quit [Quit: Leaving]
Beoran_ has quit [Ping timeout: 246 seconds]
t3hk0d3|2 has quit [Ping timeout: 264 seconds]
wagle has joined #ruby
olrrai has joined #ruby
joshcheek has joined #ruby
RainbowDashh has quit [Quit: SLEEP MODE. [NSFW!] [WIERD] [WTF] http://pastebin.com/6L0WjKRk]
pu22l3r has quit [Ping timeout: 246 seconds]
Beoran_ has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
umttumt has quit [Remote host closed the connection]
umttumt has joined #ruby
freeayu has quit [Ping timeout: 264 seconds]
gardnan has joined #ruby
jfoley has quit [Quit: jfoley]
jxf has quit [Read error: Operation timed out]
ananthakumaran has joined #ruby
Sheehan has quit [Quit: Sheehan]
wallerdev has quit [Remote host closed the connection]
olrrai has quit [Read error: Connection reset by peer]
savage- has quit [Remote host closed the connection]
wallerdev has joined #ruby
olrrai has joined #ruby
freeayu has joined #ruby
RainbowDashh has joined #ruby
pk1001100011 has quit [Ping timeout: 240 seconds]
kenneth has quit [Quit: kenneth]
erichmenge has quit [Quit: erichmenge]
dhruvasagar has quit [Ping timeout: 240 seconds]
<joshcheek> Hmm: $ ruby --1.9 -e 'File.write "a", "bc"' #NoMethodError: undefined method `write' for File:Class
dhruvasagar has joined #ruby
thatRD has quit [Ping timeout: 264 seconds]
chienpo has left #ruby [#ruby]
thatRD has joined #ruby
baroquebobcat has joined #ruby
adeponte has quit [Remote host closed the connection]
ridingwithrails has quit [Quit: Leaving.]
Sheehan has joined #ruby
dbgster has quit [Quit: dbgster]
umttumt_ has joined #ruby
umttumt has quit [Ping timeout: 248 seconds]
umttumt_ has quit [Remote host closed the connection]
mikeycgto has quit [Remote host closed the connection]
apok has joined #ruby
kenneth has joined #ruby
kenneth has quit [Client Quit]
minijupe has quit [Quit: minijupe]
Ayoo has joined #ruby
<Ayoo> hello
<Ayoo> anyone here?
Dreamer3 has quit [Quit: Leaving...]
tds has joined #ruby
itnomad has quit [Quit: Leaving]
manizzle_ has joined #ruby
wmoxam has joined #ruby
notjohn has quit [Quit: notjohn]
ananthakumaran has quit [Quit: Leaving.]
olrrai has quit [Remote host closed the connection]
<Ayoo> has anyone tried to install flvtool2 and got the error stating you need /ruby/?
<Ayoo> I would just install ruby but there isn't just a ruby there's rubygems and a whole load of other stuff.
thatRD has quit [Ping timeout: 252 seconds]
savage- has joined #ruby
thatRD has joined #ruby
jumpingcloud has joined #ruby
olrrai has joined #ruby
xscc has joined #ruby
null- has left #ruby [#ruby]
xscc has quit [Client Quit]
mlue has quit [Quit: leaving]
Sheehan has quit [Quit: Sheehan]
dankest has quit [Quit: Linkinus - http://linkinus.com]
RainbowDashh has quit [Quit: SLEEP MODE. [NSFW!] [WIERD] [WTF] http://pastebin.com/6L0WjKRk]
<deryl> duh. i don;t know many apps or even languages that don't have a shitload of helper apps that come with it
<deryl> the chances of JUST the *ruby* binary… next to nil
<deryl> unless you want to build a static version and even then there are still a myriad of existential tasks that you need helper applications for
ryanf has quit [Quit: leaving]
baroquebobcat has quit [Quit: baroquebobcat]
ananthakumaran has joined #ruby
RainbowDashh has joined #ruby
umttumt has joined #ruby
vitor-br has quit [Quit: Saindo]
sailias has quit [Ping timeout: 244 seconds]
quest88 has quit [Quit: quest88]
baroquebobcat has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
jumpingcloud has quit [Ping timeout: 252 seconds]
tommyvyo has joined #ruby
andoriyu_ has quit [Quit: This computer has gone to sleep]
nari has quit [Ping timeout: 245 seconds]
nachtwandler has joined #ruby
<Ayoo> deryl: so each one will work?
sailias has joined #ruby
<Ayoo> I don't care as long as it'll work
<deryl> ok, what grounds do you use to ask whetjer it would work or not. i mean really. do you really think that as commonly used and practiced a program as ruby would drop non working items into it, and put them out as PART of the package?
<deryl> do you really think that thats the way things work? or are you just being paranoid?
<Ayoo> what I'm asking is if I install rubygem or some shit like that would it also install ruby?
krusty_ar has quit [Ping timeout: 246 seconds]
<wmoxam> just because you're paranoid doesn't mean they're not out to get you
<deryl> rubygems is part OF ruby, not ruby part of them
<wmoxam> Ayoo: which OS?
<deryl> wmoxam: right?
<Ayoo> Centos 6
andoriyu has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<wmoxam> deryl: it just depends on how the package's dependancies are setup :p
<deryl> don't respond, just think on it. do you really think that ruby as a package, and as a project used as commonly as it is, would include a bunch of programs to go with it that didn't work
npras has joined #ruby
<Ayoo> god damn
<Ayoo> are you trollin me?
<deryl> human to human. do you really think they would add stuff to the main package taht didn't do what was advertised.
<wmoxam> Ayoo: you could install it and see :p
<Ayoo> I was going to
<deryl> no, i'm trying to make you thinka bout it actually
<deryl> not trying to troll you. its a waste of my time to do that.
<deryl> i'm asking you to think about it. rubygems is a part of ruby, not ruby a part of rubygems.
npras has left #ruby [#ruby]
<deryl> so, if thats the case, do you really think ruby would install a bunch of subservient programs that don't work
ckrailo has joined #ruby
<Ayoo> I could install rubygems but that doesn't mean it'll install the ruby binary.
<Ayoo> I never asked if any of those would work.
<wmoxam> Ayoo: yeah, if the package sucks :p
<deryl> wmoxam++
gardnan has left #ruby [#ruby]
<Ayoo> so non of you guys could tell me how to get just ruby installed?
ryanf has joined #ruby
<deryl> dude, ruby-lang.org follow their instructions
tds has quit [Quit: tds]
<deryl> install ruby using their instructions
<deryl> you get ruby and gem
<deryl> really. are we REALLY having this conversation?
MissionCritical has quit [Ping timeout: 245 seconds]
friskd has quit [Ping timeout: 264 seconds]
<wmoxam> Ayoo: see, it's different for each OS (if you ue their packages)
<wmoxam> *use
<ckrailo> what OS is Ayoo using? (i joined late in the conversation.)
<deryl> rvm.io for rvm. install rbenv, or rbfu
<wmoxam> ckrailo: Centos 6
nari has joined #ruby
eykosioux has quit [Quit: eykosioux]
<deryl> take your pick. you don't ahve to deal with OS apcakges.
<deryl> the packages install ruby split up as the *OS* sees the need.
<deryl> use one of the ruby environment managers out there and don't deal with the packages
<deryl> or, install the ruby program building from ruby-lang.org source.
<deryl> any of those ways are going to get you ruby on your system
Progster has joined #ruby
<deryl> and ALL of the sub programs that help ruby do its job are going to work. NO, no sub program is going to get you the ruby binary. thats part of the ruby package itself whether source or as a pacaklge from your OS.
dhruvasagar has quit [Read error: Connection reset by peer]
<deryl> its up to YOU to decide which of ALL of them is the best way to manage your ruby install. but NONE of them are going to give you a bunch of useless and broken programs or subservient support programs
<wmoxam> I doubt RVM is needed for this
<wmoxam> :p
<ckrailo> depends on if it's a server or dev box
<wmoxam> ^^ indicates that the ruby package for centos is sufficent
<deryl> rvm, rbfu, rbenv, or the OS distribution's packages. ANY of those will give you a working ruby install
<deryl> choose one
mohits has quit [Ping timeout: 250 seconds]
RainbowDashh has quit [Quit: SLEEP MODE. [NSFW!] [WIERD] [WTF] http://pastebin.com/6L0WjKRk]
<ckrailo> oh, he needed it for flvtool2?
yxhuvud has joined #ruby
<wmoxam> eah
<wmoxam> yeah
<ckrailo> well. shit. that would have simplified things greatly… heh.
<Ayoo> yeah
mockra has joined #ruby
<Ayoo> anyway thanks guys
td123 has quit [Quit: WeeChat 0.3.8]
ABK has joined #ruby
<Ayoo> got it working
<wmoxam> cool
<ckrailo> cheers
Mission-Critical has joined #ruby
tewecske has quit [Quit: Leaving.]
<Ayoo> wait I got an error
<Ayoo> still
<Ayoo> even after I installed ruby
<Ayoo> Error: Package: flvtool2-1.0.6-1.el6.rf.noarch (rpmforge) Requires: ruby Error: Package: flvtool2-1.0.6-1.el6.rf.noarch (rpmforge) Requires: /usr/bin/ruby You could try using --skip-broken to work around the problem ** Found 6 pre-existing rpmdb problem(s), 'yum check' output follows: bandmin-1.6.1-5.noarch has missing requires of perl(bandmin.conf) bandmin-1.6.1-5.noarch has missing requires of perl(bmversion.pl) ba
kevinbond has joined #ruby
<Ayoo> I do have /usr/bin/ruby
khakimov has quit [Quit: Computer has gone to sleep.]
<ryanf> I don't understand why you're asking #ruby about this
jsilver has joined #ruby
<ryanf> surely this is a problem for #yum?
<ryanf> or #flvtool2
<jsilver> what is the easiest way to find out the path to the init file of a gem?
<ryanf> or a mailing list somewhere
<jsilver> example
<jsilver> "./gherkin/lib/gherkin.rb"
<jsilver> true for Gherkin gem
<jsilver> "./term-ansicolor-1.0.4/lib/term-ansicolor-1.0.4.rb"
<jsilver> fail for Term::ANSIColor
<ryanf> jsilver: there is no init file of a gem. you require whatever file you want
<jsilver> got it
<ryanf> by convention, usually there's a lib/gemname.rb, which means you can require 'gemname'
<jsilver> thanks
<ryanf> but it varies sometimes
<jsilver> hmm
<jsilver> i see that
<ryanf> I guess you could look for files in lib/, but some gems will probably have more than one
Siphonblast has joined #ruby
<ryanf> if they're rude
<jsilver> yes, seems so
burgestrand has joined #ruby
<wmoxam> Ayoo: ah, you installed flvtool via a package. It should have installed deps if you installed it correctly. ryanf is right, you should try #centos
<jsilver> ah, this library is "rude" i see then
<jsilver> :)
<ryanf> I think actually
<jsilver> i will have to patch to accomdate rudesness
<ryanf> there is a convention that if there's a hyphen in the gem name
<Ayoo> wmoxam: I've already installed several other things and it works.
<jsilver> then... nest?
<ryanf> the require is e.g. "require 'term/ansicolor'" or whatever
<ryanf> yes
<jsilver> brilliant
<ryanf> so then there might not be any ruby file in lib/ at all
<jsilver> one must wonder where this knowledge would be attained if not IRC tho
<jsilver> lolz
<ryanf> yeah it's just convention really. you have to look at it on a case-by-case basis.
mockra has quit [Remote host closed the connection]
<jsilver> ah
<ryanf> ruby is a bit loose with the packaging stuff
Mission-Critical is now known as MissionCritical
<jsilver> very
fantazo has quit [Remote host closed the connection]
<jsilver> cool, thanks!
olrrai has quit [Quit: Saliendo]
RainbowDashh has joined #ruby
brianpWins has joined #ruby
<deryl> Ayoo: I need to throw an apology your way
<deryl> the way it was worded threw me, and I was looking at it from a completely different aspect than what you meant. someone showed me where i errored, and as a result, I apologize
davidpk has joined #ruby
<Ayoo> hey, it's not big deal.
Progster has quit [Ping timeout: 260 seconds]
ananthakumaran has quit [Quit: Leaving.]
savage- has quit [Remote host closed the connection]
kevinbond has quit [Quit: kevinbond]
mwilson_ has quit [Excess Flood]
nachtwandler has quit [Ping timeout: 255 seconds]
mwilson_ has joined #ruby
nilg has joined #ruby
timonv has joined #ruby
boondoggles is now known as midrange
ex0a has quit [Quit: peace]
mikepack has joined #ruby
ckrailo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
timonv has quit [Ping timeout: 245 seconds]
dnyy has joined #ruby
neersighted has quit [Quit: http://neersighted.com]
neersighted has joined #ruby
mockra has joined #ruby
subbyyy has quit [Quit: Leaving.]
cantonic has quit [Ping timeout: 265 seconds]
zodiac1111 has joined #ruby
lxsameer has joined #ruby
yoklov has quit [Quit: computer sleeping]
lxsameer has quit [Max SendQ exceeded]
andrewhl has quit [Remote host closed the connection]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
Stefunel has left #ruby [#ruby]
mockra has quit [Remote host closed the connection]
r126l has quit [Quit: leaving]
mikepack has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
burgestrand has quit [Quit: Leaving.]
r126l has joined #ruby
SegFaultAX|work2 has quit [Ping timeout: 246 seconds]
tagrudev has joined #ruby
nilg has quit [Remote host closed the connection]
nilg` has joined #ruby
jamesaxl has joined #ruby
mohits has joined #ruby
alexch has quit [Quit: The computer fell asleep]
zommi has joined #ruby
graspee has quit [Quit: dirty, dirty pangolin, wash your face! wash your face!]
sleetdrop has joined #ruby
nilg` has quit [Ping timeout: 252 seconds]
justsee has joined #ruby
andrewhl has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
khakimov has joined #ruby
Cache_Money has quit [Ping timeout: 240 seconds]
wmoxam has quit [Ping timeout: 252 seconds]
mikepack has joined #ruby
mikepack has quit [Remote host closed the connection]
tonini has joined #ruby
ciopte7 has quit [Read error: Connection reset by peer]
Siphonblast has quit [Remote host closed the connection]
banghouse has quit [Remote host closed the connection]
hoelzro|away is now known as hoelzro
ipoval has quit [Quit: ipoval]
Gavilan has left #ruby [#ruby]
wallunit has joined #ruby
wisconsin has joined #ruby
<wisconsin> hi
<wisconsin> i'd like to file a complaint
arkiver has joined #ruby
<hoelzro> yay, wisconsin!
workmad3 has joined #ruby
<wisconsin> umm.. do i know you?
<hoelzro> no, but I'm from Wisconsin =)
* hoelzro goes silent
RainbowDashh has quit [Ping timeout: 246 seconds]
stephenjudkins has joined #ruby
<wisconsin> so
<wisconsin> why does rack suck?
Rochefort has joined #ruby
<joshcheek> In general, it doesn't suck, but IIRC it doesn't handle streaming APIs well (e.g. you must complete the entire request, can't return content while still generating other content)
<wisconsin> joshcheek: yeah, that's what i meant
<wisconsin> why did they do it like that?
<joshcheek> I imagine it just went unconsidered.
<wisconsin> all the backends handle streaming
Yarou has quit [Quit: Leaving]
<joshcheek> The real culprit, I believe, is the way middleware work.
saschagehlich has joined #ruby
<joshcheek> but don't quote me, I haven't ever tried to implement anything that would need such features.
<joshcheek> So this is just things I heard or thought I heard, picked up from blogs and twitter.
RainbowDashh has joined #ruby
<wisconsin> i'm not really streaming even, just want to send the <head>...</head> to the browser before geneating the rest of the content
<wisconsin> generating*
<hoelzro> wisconsin: I think they're solving that in Rack 2
<hoelzro> joshcheek: what about middleware is wrong?
Guest14152 has quit [Ping timeout: 240 seconds]
<joshcheek> IDK, I haven't done any of this personally, If I had to guess, it's the way they're chained together.
andrewhl has quit [Remote host closed the connection]
<hoelzro> =/
wallerdev has quit [Quit: wallerdev]
<wisconsin> should be unchained
<wisconsin> oh my love, my darling
<wisconsin> i've hungered for your touch
Guest56132 has joined #ruby
davidpk has quit [Quit: Computer has gone to sleep.]
Peregrinu5 has quit [Ping timeout: 246 seconds]
shadoi has quit [Quit: Leaving.]
cuppsy has quit [Ping timeout: 246 seconds]
RainbowDashh has quit [Ping timeout: 246 seconds]
s0ber has quit [Ping timeout: 240 seconds]
nemesit has joined #ruby
wallunit has quit [Quit: Leaving.]
stephenjudkins has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
Hounddog has joined #ruby
stephenjudkins has joined #ruby
TPFC-SYSTEM has joined #ruby
RainbowDashh has joined #ruby
<Hounddog> good morning. i am just trying out vlad the deployer... not sure if i can get any help here but seems it is not creating the release directory...
g_rotbart has quit [Remote host closed the connection]
<Ayoo> I actually installed ruby wrong
sailias has quit [Quit: Leaving.]
imami|afk is now known as banseljaj
<Ayoo> I should've installed in /usr/bin/
dekroning has joined #ruby
dhruvasagar has joined #ruby
pygospa has quit [Disconnected by services]
TheRealPygo has joined #ruby
saschagehlich has quit [Quit: saschagehlich]
araujo has joined #ruby
lolmaus has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
arturas has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
ephemerian has joined #ruby
fridim_ has quit [Ping timeout: 264 seconds]
beneggett has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
davejacobs has quit [Ping timeout: 245 seconds]
davidpk has joined #ruby
aquarian_1981 has joined #ruby
arturas has quit [Quit: Leaving]
elhu has joined #ruby
djdb has joined #ruby
aquarian_1981 has left #ruby [#ruby]
fridim_ has joined #ruby
burgestrand has joined #ruby
perry is now known as perryh_away
araujo has quit [Read error: Connection reset by peer]
lkba has joined #ruby
araujo has joined #ruby
Morkel has joined #ruby
lxsameer has quit [Ping timeout: 265 seconds]
Sweet-P has joined #ruby
Eldariof-ru has joined #ruby
Sweet_P has quit [Ping timeout: 264 seconds]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
xbayrockx has quit []
wobr has joined #ruby
Targen has quit [Ping timeout: 246 seconds]
timonv has joined #ruby
adamkittelson has quit [Remote host closed the connection]
apeiros_ has joined #ruby
rakm has quit [Ping timeout: 240 seconds]
igotnolegs has quit [Quit: Computer has gone to sleep.]
g_rotbart has joined #ruby
rakm has joined #ruby
AlbireoX is now known as AlbireoX`Away
AlbireoX`Away is now known as AlbireoX
etehtsea has joined #ruby
Goles has joined #ruby
robotmay has joined #ruby
rakm has quit [Ping timeout: 248 seconds]
blacktulip has joined #ruby
<shevy> yeah
<shevy> package managers are supposed to simplify one's life
<shevy> if they don't, they suck
<banisterfiend> shevy: ima beat yo candy ass
<shevy> banisterfiend hi
<banisterfiend> shevy: sup
rakm has joined #ruby
iocor has joined #ruby
sebastorama has quit [Quit: Computer has gone to sleep.]
cezar has joined #ruby
cezar has quit [Client Quit]
Guest89338 has joined #ruby
<wisconsin> debian causes divorce
rakm has quit [Ping timeout: 264 seconds]
saschagehlich has joined #ruby
saschagehlich_ has joined #ruby
wobr has quit [Read error: No route to host]
wobr has joined #ruby
RudyValencia has quit [Read error: Connection reset by peer]
jimeh3 has joined #ruby
rakm has joined #ruby
saschagehlich has quit [Ping timeout: 255 seconds]
saschagehlich_ is now known as saschagehlich
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
olrrai has joined #ruby
<shevy> hehe
gilead has joined #ruby
rakm has quit [Ping timeout: 240 seconds]
jarred has quit [Quit: jarred]
lxsameer has quit [Ping timeout: 252 seconds]
rakm has joined #ruby
t4lk3r is now known as `heliar
Mon_Ouie has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
jesly has joined #ruby
eykosioux has joined #ruby
iocor has quit [Quit: Computer has gone to sleep.]
bier has quit [Ping timeout: 245 seconds]
bier|tp has quit [Ping timeout: 246 seconds]
davejacobs has joined #ruby
ciopte7 has joined #ruby
davejacobs has quit [Ping timeout: 252 seconds]
lindenle_ has quit [Ping timeout: 246 seconds]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
<kapowaz> hey there. I'm trying to get the mysql gem installed on a new machine and having some issues with it… not sure if it's actually that it's not been properly installed or if there's some other problem,
jesly has quit [Ping timeout: 245 seconds]
<kapowaz> gist of the error trace: https://gist.github.com/85d39327e82bed3d0b13
Hounddog has left #ruby [#ruby]
berserkr has joined #ruby
<shevy> rack 2 will come?
thisirs has joined #ruby
lindenle_ has joined #ruby
vlad_starkov has joined #ruby
bier has joined #ruby
g_rotbart has quit [Remote host closed the connection]
bier|tp has joined #ruby
Ionic` has quit [Ping timeout: 265 seconds]
<kapowaz> is the solution
[Neurotic] has quit [Quit: Leaving]
thone has quit [Read error: Connection reset by peer]
thone_ has joined #ruby
Criztian has joined #ruby
banseljaj is now known as imami|afk
jesly has joined #ruby
zz_chrismcg is now known as chrismcg
Ionic` has joined #ruby
workmad3 has joined #ruby
iocor has joined #ruby
Guest89338 is now known as davidw
davidw has quit [Changing host]
davidw has joined #ruby
tatsuya_o has joined #ruby
manizzle_ has quit [Ping timeout: 248 seconds]
apok has quit [Quit: apok]
manizzle has quit [Ping timeout: 265 seconds]
Helius has joined #ruby
manizzle has joined #ruby
budhram_ has joined #ruby
baphled has joined #ruby
Ionic` has quit [Ping timeout: 240 seconds]
gokul has joined #ruby
<budhram_> want to know which book is good for metaprogramming?
yannis has joined #ruby
<shevy> metaprogramming is good to make things complicated. there is only one book I know of ruby about metaprogramming
<shevy> I forgot the name... "ruby metaprogramming" ...
Goles has quit [Ping timeout: 264 seconds]
Spooner has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
Foxandxss has joined #ruby
baphled has quit [Quit: leaving]
<budhram_> thnks shevy
baphled has joined #ruby
<budhram_> will google it
Rochefort has quit [Remote host closed the connection]
qwerxy has joined #ruby
robozahn has joined #ruby
fridim_ has quit [Ping timeout: 264 seconds]
DarthGandalf has quit [Ping timeout: 260 seconds]
baphled has quit [Quit: leaving]
baphled has joined #ruby
eykosioux_ has joined #ruby
jesly has quit [Ping timeout: 250 seconds]
eykosioux_ has left #ruby [#ruby]
flype has joined #ruby
eykosioux has quit [Ping timeout: 264 seconds]
eykosioux has joined #ruby
lkba has quit [Ping timeout: 250 seconds]
arkiver has quit [Quit: Leaving]
tonini has quit [Remote host closed the connection]
lindenle_ has quit [Ping timeout: 265 seconds]
lindenle_ has joined #ruby
afd__ has joined #ruby
<afd__> hi guys. In a class, what does this line say? config :message, :validate => :string
<afd__> I'm a python developer, trying to hack on a ruby script
<afd__> I've looked at the ruby quick tutorials, but none of them gave me a clue
yannis has quit [Quit: yannis]
<canton7> there's a method called `config`, which takes two arguments, the first being the symbol :message, and the second being the hash {:validate => :string}
<hoelzro> afd__: :message is a symbol, as is :validate and :string
<afd__> oh, I see
<afd__> so, it would be like calling config("message", {'validate':'string'}) in python?
<canton7> yup
<hoelzro> pretty much
<afd__> ok, thanks!
AlbireoX`Laptop has quit [Remote host closed the connection]
<afd__> is there anywhere where the :notation is documented? What keyword should I search for?
<hoelzro> afd__: Ruby symbols
<afd__> "ruby symbols" ?
<afd__> ok
pk1001100011 has joined #ruby
<shevy> every :foo is a symbol
<fowl> :> and :< are my fav symbols
<jsilver> ruby is such a troll for this
<jsilver> it's the only language with symbols
<hoelzro> Lisp has them
<hoelzro> and Smalltalk
csmrfx has joined #ruby
<fowl> jsilver, symbols the same thing as atoms which lisp and erlang have
<csmrfx> 8)
sepp2k has joined #ruby
<jsilver> ah
<jsilver> i see
<hoelzro> fowl: ah, good call on Erlang
<hoelzro> Prolog too, then
<jsilver> lisp and erland and smalltalk ruby's friends
<jsilver> hehe
<afd__> in the irb prompt, is there a way to access readline history?
<afd__> I mean, how do I get the previous line that I entered, to edit it again?
<csmrfx> arrow up?
<afd__> didn't work
<csmrfx> ok
mohits has quit [Ping timeout: 264 seconds]
<csmrfx> you need to tweak the conf, then
eykosioux_ has joined #ruby
<csmrfx> which term/os?
<csmrfx> alsom do you have readline?
<afd__> Linux, ubuntu
<afd__> irb: /usr/bin/irb1.8 /usr/bin/irb /usr/bin/X11/irb1.8 /usr/bin/X11/irb /usr/share/man/man1/irb.1.gz
<afd__> I'm not using rvm, it's a system-wide install from Ubuntu packages, but it's good to know about the rvm, I'm using that to deploy on the server
<csmrfx> (ie. irbrc -tweak)
<afd__> ok, thanks
eykosioux__ has joined #ruby
eykosioux__ has quit [Client Quit]
eykosioux has quit [Ping timeout: 264 seconds]
eykosioux_ has quit [Ping timeout: 250 seconds]
sspiff has joined #ruby
sspiff has quit [Changing host]
sspiff has joined #ruby
<banisterfiend> csmrfx: i feel personally offended when you use irb
<banisterfiend> csmrfx: i thought u were my brother
ssspiff has quit [Ping timeout: 246 seconds]
olrrai has quit [Quit: Saliendo]
<csmrfx> banisterfiend: did you have a bad dream?
<csmrfx> where I used irb
<csmrfx> wakie!!
<banisterfiend> csmrfx: I'm here for you.
QaDeS has joined #ruby
<csmrfx> tell afd__ to use pry!
mengu has joined #ruby
Ayoo has quit [Quit: Page closed]
<shevy> we'll work for the day where pry comes bundled with default ruby
minijupe has joined #ruby
baphled has quit [Quit: leaving]
<jsilver> prys broken for me/doesnt work
baphled has joined #ruby
<jsilver> are you sure you tested this s/w?
<banisterfiend> jsilver: in what way is it broken for u?
<shevy> pry works fine for me except for when I press enter
Progster has joined #ruby
<jsilver> i cant find out how to get it to say my Quranic verses
<jsilver> or my Discordian ones
<csmrfx> you make system calls with system or backtic
baphled has quit [Client Quit]
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
baphled has joined #ruby
<jsilver> j/k i love pry
<shevy> Quranic verses hmmm
<jsilver> thanks banisterfiend for making it
<shevy> good that I dont need diabolic words in order to write ruby code
<jsilver> we using it to make evil shit right now
<jsilver> evil, evil shit
<jsilver> evil ruby shit!
<jsilver> yeah
<jsilver> I stick to Japanese honestly
<jsilver> but diablocial works too
<shevy> girls?
<jsilver> yeah
<jsilver> and girls too
<shevy> I used to love ninjas when I was young
dhruvasagar has quit [Ping timeout: 246 seconds]
<shevy> then I found out the movies lied to me :<
<jsilver> indded
vlad_starkov has quit [Remote host closed the connection]
<jsilver> indeed
<jsilver> bedtime
dhruvasagar has joined #ruby
krusty_ar has joined #ruby
jsilver has quit [Remote host closed the connection]
bfgun has quit [Ping timeout: 240 seconds]
yannis has joined #ruby
budhram_ has quit [Ping timeout: 245 seconds]
Asher1 has joined #ruby
Asher has quit [Read error: Connection reset by peer]
Asher1 has quit [Read error: Connection reset by peer]
Rochefort has joined #ruby
jeekl has quit [Ping timeout: 246 seconds]
bfgun has joined #ruby
<JonnieCache> wtf is going on in the ruby channel
<JonnieCache> it certainly appears to be 4am somewhere
<JonnieCache> discordian verses in pry?
krusty_ar has quit [Ping timeout: 246 seconds]
Progster has quit [Ping timeout: 272 seconds]
crz has joined #ruby
azm has joined #ruby
azm has quit [Changing host]
azm has joined #ruby
vlad_starkov has joined #ruby
otters has quit [Quit: Leaving]
crz has quit [Client Quit]
otters has joined #ruby
tvw has joined #ruby
Sweet_P has joined #ruby
nari has quit [Ping timeout: 245 seconds]
Sweet-P has quit [Ping timeout: 245 seconds]
jeekl has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
azm has quit [Ping timeout: 255 seconds]
Asher has joined #ruby
mohits has quit [Ping timeout: 264 seconds]
saschagehlich has quit [Ping timeout: 245 seconds]
JustinCampbell has joined #ruby
workmad3 has joined #ruby
mohits has joined #ruby
mohits has quit [Read error: Connection reset by peer]
jxf has joined #ruby
ramblex has joined #ruby
baphled_ has joined #ruby
baphled has quit [Ping timeout: 248 seconds]
saschagehlich has joined #ruby
tk___ has joined #ruby
indian has joined #ruby
cezar has joined #ruby
baphled has joined #ruby
cezar has quit [Client Quit]
arturas has joined #ruby
carpediembaby has joined #ruby
<carpediembaby> hi. i have multiple versions of ruby installed (1.8 using apt-get and 1.9.3 is self compiled). is it possible to now install rvm? or should i uninstall all rubies first? and gems?
baphled_ has quit [Quit: leaving]
baphled has quit [Client Quit]
wisconsin has quit [Remote host closed the connection]
kvirani has joined #ruby
ciopte7 has quit [Quit: ciopte7]
baphled has joined #ruby
<burgestrand> carpediembaby: I would recommend you uninstall any versions of ruby that you installed yourself using apt, but keeping the default ruby that was installed on your system
<workmad3> carpediembaby: you can install RVM, it can function fine, but it will shadow existing ruby installations
<burgestrand> carpediembaby: after that, you use RVM exclusively
<burgestrand> (but like workmad3 it usually works anyway)
niklasb has joined #ruby
<carpediembaby> burgestrand: by default ruby you mean 1.8? because i think i never installed it
saschagehlich has quit [Ping timeout: 248 seconds]
<burgestrand> carpediembaby: yeah :)
jesly has joined #ruby
<carpediembaby> well, my problem is that my installation can't seem to find readline (for rails) and i'm getting weird errors. while i installed ruby 1.9.3, when i do rails c, it shows me traces to 1.9.1
red-panda has joined #ruby
<carpediembaby> i found a solution to my problem that i should compile readline into my <ruby folder>/ext but i can't seem to find an ext folder in any of the ruby installations except 1.8
nemesit has quit [Quit: Leaving...]
<workmad3> carpediembaby: a) don't worry about 1.9.1 in the stdlib and gem paths... that's for abi purposes, nothing to do with the actual version of ruby
saschagehlich has joined #ruby
<workmad3> carpediembaby: b) compiling ruby will compile readline, but only if it can find the readline dev headers and dev libraries
<csmrfx> wuts abi purposes?
<csmrfx> ~api?
<banisterfiend> csmrfx: hey carl
<workmad3> csmrfx: it's something to do with compatibility versions... that's about all I really know, I've heard it referred to as abi though (not api)
<carpediembaby> workmad3: well, i am assuming that readline dev headers werent there when i installed. so what can i do now?
iocor has quit [Quit: Computer has gone to sleep.]
baphled has quit [Quit: leaving]
<workmad3> carpediembaby: make sure you've got them installed and recompile is the easiest... you can also try to install just the readline stuff from your ruby source directory, but I can't remember the exact process for that
baphled has joined #ruby
keymone has joined #ruby
keymone has left #ruby [#ruby]
jesly has quit [Ping timeout: 255 seconds]
justinmcp has joined #ruby
<JonnieCache> you find the ext directory in the ruby source directory, then the readline bit then you run the extconf.rb file thats in there
<JonnieCache> i think
baphled has quit [Client Quit]
baphled has joined #ruby
sleetdrop has quit [Remote host closed the connection]
azm has joined #ruby
azm has quit [Changing host]
azm has joined #ruby
ebanoid has joined #ruby
Berglund has joined #ruby
schovi has joined #ruby
<carpediembaby> workmad3: i compiled using this last time : ./configure --prefix=/usr/local/bin/ruby-1.9.3-p194 --enable-pthread --enable-shared. would this be okay?
<carpediembaby> workmad3: i already have the libreadline-dev package installed
phelps_ has joined #ruby
azm has quit [Ping timeout: 250 seconds]
emmanuelux has joined #ruby
schovi has quit [Remote host closed the connection]
lxsameer has quit [Quit: Leaving]
k_89 has joined #ruby
justsee is now known as justsee|away
indian has quit [Ping timeout: 252 seconds]
DarthGandalf has joined #ruby
<carpediembaby> workmad3: recompiled. same problem
seitensei has quit [Ping timeout: 240 seconds]
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
sspiff has quit [Ping timeout: 264 seconds]
robozahn_ has joined #ruby
sspiff has joined #ruby
sspiff has quit [Changing host]
sspiff has joined #ruby
iocor has joined #ruby
robozahn has quit [Ping timeout: 265 seconds]
emmanuelux has quit [Ping timeout: 245 seconds]
squatch_ has joined #ruby
justsee|away is now known as justsee
<JonnieCache> carpediembaby: can you gist the actual errors?
<carpediembaby> JonnieCache: https://gist.github.com/3059694
sbanwart has joined #ruby
gokul has quit [Remote host closed the connection]
<JonnieCache> hmm i dont think that prefix switch you quoted is right
phelps_ has quit [Remote host closed the connection]
xorspark has quit [Read error: Connection reset by peer]
phelps_ has joined #ruby
<JonnieCache> i mean i dont know how your system is set up but the prefix is more usually something like /usr/local/ or somesuch
<JonnieCache> it seems from that error that the ruby youre loading is in another directory from that anyway
<JonnieCache> things appear to have got confused somewhere along the line
heftig has quit [Ping timeout: 245 seconds]
<carpediembaby> JonnieCache: i don't know how the installation works. different versions and everything.. its a mess :/
<carpediembaby> JonnieCache: should the prefix be /usr/local/lib/ruby/1.9.1/ instead?
<JonnieCache> you shouldnt really have to specify
<JonnieCache> my advice would be to delete every ruby except any ones that came built into your OS
<JonnieCache> then use something like https://github.com/sstephenson/ruby-build/ to do it
iocor has quit [Quit: Computer has gone to sleep.]
<lae> anyone know what this kind of message means? "error 9 request 149 minor 4 serial 10095798"
ryanf has quit [Quit: leaving]
<workmad3> lae: context?
<lae> it's an app that uses net/http and json. it's randomly printing out that message, and I was thinking it might have been from ruby or one of those libraries itself
<JonnieCache> what so its just dumping that message to the console, all on its own?
<carpediembaby> JonnieCache: i'm not even sure now how to remove them. if i do apt-get purge, it'll purge 1.8 which is the default
<JonnieCache> carpediembaby: shouldnt be a problem to just delete any relevant directories
<JonnieCache> put them into zipfiles for safekeeping first if that worries you
ksergio has joined #ruby
JonnieCache has quit [Quit: Lost terminal]
iocor has joined #ruby
JonnieCache has joined #ruby
iocor has quit [Changing host]
iocor has joined #ruby
iocor has quit [Client Quit]
jxf has quit [Read error: Connection reset by peer]
jxf has joined #ruby
Sweet_P has quit [Quit: Sweet-P]
neku has joined #ruby
minijupe has quit [Quit: minijupe]
Tricks has quit [Read error: Connection reset by peer]
lkba has joined #ruby
squatch_ has quit [Quit: Computer has gone to sleep.]
notjohn has joined #ruby
jxpx777 has joined #ruby
jxpx777 has quit [Client Quit]
jxf has quit [Ping timeout: 244 seconds]
jxf has joined #ruby
robozahn has joined #ruby
robozahn_ has quit [Ping timeout: 265 seconds]
freeayu has quit [Ping timeout: 265 seconds]
fantazo has joined #ruby
afd__ has quit [Read error: Operation timed out]
red-panda has quit [Remote host closed the connection]
red-panda has joined #ruby
yoklov has joined #ruby
nilsine has joined #ruby
liuchong has joined #ruby
akem has quit [Read error: Connection reset by peer]
fbernier has joined #ruby
yoklov has quit [Client Quit]
<jxf> I have a list of objects, `arr = [:foo, :bar, ...]`. I want to run Analyzer.new(e) on each element `e` in the list, and find the first one for which the Analyzer's `passes?` method is true. Then I want to return the Analyzer I just generated for that object.
<jxf> Initially I thought I could just do `arr.detect { |e| Analyzer.new(e).passes? }`.
<jxf> But that returns the original item `e`, not an Analyzer instance.
<jxf> I could map them all beforehand but I'd prefer to create as few Analyzers as possible.
<jxf> Is there a way to do what I want?
<burgestrand> jxf: I don’t think there’s a built-in good way to do it without iterating the entire list, except doing a simple each/break-if-found
<burgestrand> Because, like you said, detect returns e
jewing has joined #ruby
<jxf> OK.
<burgestrand> You could do an ugly one with reduce, but that’s not very nice.
<jxf> Seems like that could be a good case for a new core method.
<JonnieCache> write it yourself and add it
<JonnieCache> this is ruby after all
ringotwo has quit [Remote host closed the connection]
<jxf> Alrighty. Thanks for the hints.
justsee is now known as justsee|away
sailias has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
arturas has quit [Remote host closed the connection]
krusty_ar has joined #ruby
akem has joined #ruby
twock has joined #ruby
akem has quit [Read error: Connection reset by peer]
heftig has joined #ruby
nilsine has quit [Quit: Quitte]
justsee|away is now known as justsee
neku is now known as neku|away
ben_alman has quit [Excess Flood]
subbyyy has joined #ruby
subbyyy has quit [Max SendQ exceeded]
bluenemo has quit [Ping timeout: 264 seconds]
baphled has quit [Ping timeout: 248 seconds]
nari has joined #ruby
squatch_ has joined #ruby
zodiac1111 has quit [Ping timeout: 244 seconds]
elhu has quit [Ping timeout: 252 seconds]
ben_alman has joined #ruby
schickung has joined #ruby
baphled has joined #ruby
freeayu has joined #ruby
elhu has joined #ruby
lolmaus has quit [Ping timeout: 255 seconds]
<ksk> hi
tatsuya_o has quit [Remote host closed the connection]
<ksk> whats the way to check if an external command was successful? like bashs "$?"?
cdepue has joined #ruby
notjohn has quit [Quit: notjohn]
neku|away is now known as neku
bluenemo has joined #ruby
<shevy> not many ways ksk
<shevy> return_value = `ls`
<banisterfiend> ksk: use $?
<shevy> system 'ls'
ph^ has joined #ruby
<banisterfiend> ksk: $?.success?
phelps_ has quit [Remote host closed the connection]
nanderoo has joined #ruby
phelps_ has joined #ruby
jxf has quit [Ping timeout: 244 seconds]
ridingwithrails has joined #ruby
baphled has quit [Ping timeout: 240 seconds]
jesly has joined #ruby
hunglin has joined #ruby
crankycoder has joined #ruby
robozahn has quit [Read error: Connection reset by peer]
windowsrefund has left #ruby ["WeeChat 0.3.8"]
robozahn has joined #ruby
lindenle_ has quit [Ping timeout: 252 seconds]
ananthakumaran1 has joined #ruby
ananthakumaran has quit [Ping timeout: 246 seconds]
hunglin has quit [Quit: Leaving.]
carloslopes has joined #ruby
ph^_ has joined #ruby
ph^ has quit [Ping timeout: 264 seconds]
moshee has quit [Ping timeout: 255 seconds]
ananthakumaran has joined #ruby
moshee has joined #ruby
sailias has quit [Quit: Leaving.]
davidpk has quit [Quit: Computer has gone to sleep.]
zbo09 has joined #ruby
IrishGringo has joined #ruby
ph^_ has quit [Remote host closed the connection]
jxf has joined #ruby
arturaz has joined #ruby
jesly has quit [Ping timeout: 245 seconds]
Travis-42 has joined #ruby
baphled has joined #ruby
ananthakumaran1 has quit [Ping timeout: 246 seconds]
<zbo09> hey guys; I am shamefully not that hot with math and have a problem I've been trying to solve. http://pastie.org/4210054 I'd be very grateful if someone could maybe help out/point me in the right direction.
<shevy> and what is the formula to create these numbers
<shevy> the pattern
<shevy> first group seems to take the sum of the individual numbers
umttumt has quit [Remote host closed the connection]
notjohn has joined #ruby
<shevy> second one just seems to repeat the leading number, and add + 1 and 0's
dekroning has quit [Quit: leaving]
<shevy> ah
<shevy> it is all the same right?
<zbo09> one series is 10 (with zero) and second is 11 (with the first digit)
<zbo09> yea
nari has quit [Ping timeout: 265 seconds]
<shevy> always lots of 0 in one
squatch_ is now known as tommyvyo
<zbo09> yep and then always with the first digit for the second
binaryplease has joined #ruby
<shevy> no idea how it goes from 333 to 5000
<shevy> but just write a method that tries that?
<zbo09> iv got the whole numbers
niku4i has joined #ruby
TPFC-SYSTEM has left #ruby [#ruby]
<zbo09> but its getting the 11111, 22222 etc
baphled has quit [Ping timeout: 240 seconds]
chson has quit [Remote host closed the connection]
neku is now known as neku|away
niklasb has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Remote host closed the connection]
larissa has joined #ruby
red-panda has quit [Remote host closed the connection]
Axsuul has quit [Ping timeout: 248 seconds]
<Mon_Ouie> zbo09: Why iterate over all numbers to know if they are meet your requirements?
iocor has joined #ruby
jfoley has joined #ruby
indian has joined #ruby
Vert has quit [Ping timeout: 252 seconds]
tagrudev has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
<JonnieCache> zbo09: I present the greatest website ever: the Online Encyclopedia of Integer Sequences! http://oeis.org/search?q=10%2C11%2C20%2C22&language=english&go=Search
<workmad3> zbo09: do you basically want to go from N000 to NNNN?
jesly has joined #ruby
<JonnieCache> I think you want this one: http://oeis.org/A193460
<JonnieCache> it includes haskell code to generate it
<JonnieCache> now you just have to translate that haskell into ruby. good luck :)
<zbo09> workmad3, yes man! sorry was trying to figure it out myself...
<zbo09> my math is embarrassing
<zbo09> cheers JonnieCache
uris has joined #ruby
ridingwithrails has quit [Quit: Leaving.]
Jay_Levitt has joined #ruby
Jay_Levitt has quit [Remote host closed the connection]
Jay_Levitt has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
Horofox_ has joined #ruby
tds has joined #ruby
tds has quit [Client Quit]
workmad3 has joined #ruby
R_Macy has quit [Quit: Leaving...]
Horofox has quit [Ping timeout: 244 seconds]
Horofox_ is now known as Horofox
<JonnieCache> oh my word. it turns out that the aforementioned OEIS can output midi files
<JonnieCache> i sense hours of fun ahead...
ridingwithrails has joined #ruby
joshcheek has quit [Quit: joshcheek]
baphled has joined #ruby
baphled_ has joined #ruby
baphled has quit [Client Quit]
baphled_ has quit [Client Quit]
ben_alman has quit [Excess Flood]
baphled has joined #ruby
mvangala_home has joined #ruby
andrewhl has joined #ruby
mvangala_home is now known as mvangala
renanoronfle has joined #ruby
jsime has joined #ruby
bowlowni has joined #ruby
choffstein has joined #ruby
dv310p3r has joined #ruby
neku|away is now known as neku
cascalheira has joined #ruby
bluenemo has quit [Remote host closed the connection]
vitoravelino`afk is now known as vitoravelino
<shevy> sex?
<shevy> oh wait
<shevy> hours ...
* shevy gives JonnieCache an encouraging pat on the back
saschagehlich_ has joined #ruby
kpshek has joined #ruby
Manhose has joined #ruby
Horofox has quit [Quit: Horofox]
<shevy> it's 34 degree Celsius here, I am not doing anything, not moving, but sweating. I hate this
<JonnieCache> what?
<JonnieCache> why did you immediately think of sex when i mentioned midi files
<shevy> oh the hours of fun
<shevy> I read the backlog backwards
<shevy> :)
ridingwithrails has left #ruby [#ruby]
kvirani has quit [Remote host closed the connection]
ben_alman has joined #ruby
crankycoder has quit [Remote host closed the connection]
Jay_Levitt has quit [Quit: Linkinus - http://linkinus.com]
<shevy> would anyone find a project useful that does little else than try to keep a list of available source programs
saschagehlich has quit [Ping timeout: 264 seconds]
saschagehlich_ is now known as saschagehlich
<shevy> like https://github.com/mxcl/homebrew/commits/master/Library/Formula but not stored in .rb files, instead in yaml files
axl_ has joined #ruby
jxf has quit [Ping timeout: 248 seconds]
saschagehlich has quit [Remote host closed the connection]
sailias has joined #ruby
tomask has joined #ruby
saschagehlich has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
tomask has left #ruby [#ruby]
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
mdszy has joined #ruby
<JonnieCache> shevy: what do you mean?
Manhose has quit [Quit: Gone fishing]
<JonnieCache> what would be the purpose?
ken_barber has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
<workmad3> shevy: so a yaml file containing the available formulae in homebrew?
saschagehlich has quit [Read error: Connection reset by peer]
shevy has quit [Ping timeout: 250 seconds]
<workmad3> shevy: or some sort of yaml representation of the actual recipe?
zodiac1111 has joined #ruby
<banisterfiend> workmad3: dont ask too many questions, the man is a lunatic
<banisterfiend> ;)
saschagehlich has joined #ruby
<workmad3> banisterfiend: yes, but by asking him questions, he reveals his lunacy to others and discredits himself :)
<mdszy> I really wish there was something similar to apt's "automatically installed packages" in Homebrew, where packages that were installed automatically as deps were marked as such and could be removed if not needed by like `brew clean` or something.
<mdszy> I've thought about forking Homebrew and adding it myself, but I don't know where to start.
keppy has quit [Read error: Operation timed out]
<workmad3> mdszy: fork and hack!
Targen has joined #ruby
<mdszy> workmad3: I think today might be the day I actually try XD
<workmad3> mdszy: you'd need to add some extra book-keeping into brew though, I believe
mucker has joined #ruby
<JonnieCache> well homebrew must be able to make a dependency tree for all its packages, thats how it resolves dependencies
<workmad3> JonnieCache: yeah, but it doesn't mark which ones were auto-installed, iirc
<mdszy> workmad3: Yeah, of course. Somehow keeping a list of the formulae that are installed, and then mark certain ones as automatically installed, and remove those with `brew clean`
<JonnieCache> so you just have to get that tree structure, then do a little CS101 magic on it
tatsuya_o has joined #ruby
lambdan has quit [Ping timeout: 264 seconds]
<workmad3> JonnieCache: so you need extra book-keeping to track which ones were auto-installed, and then yes, it's just dependency graph magic :)
<JonnieCache> you could roughly work it out after the fact to some degree of accuracy using graph theory though
<JonnieCache> i think...
<workmad3> not really
* mdszy doesn't know a thing about graph theory :<
billiamii has joined #ruby
<mdszy> except it has something to do with things being connected to other things, I think.
lxsameer has joined #ruby
<mdszy> and the un-solvable bridges problem thing.
benwoody has joined #ruby
jfoley has quit [Quit: jfoley]
<workmad3> you could take a naive assumption that all nodes that aren't a dependency of another node were auto-installed, but that would almost certainly be wrong
<JonnieCache> its not that hard if you approach it from a programming point of view. if you look at it from the algebraic side then its crazy
saschagehlich has quit [Read error: Connection reset by peer]
<JonnieCache> but thats because i suck at maths
<banisterfiend> i did a course on graph theory it's not hard
<banisterfiend> it's the easiest discrete math course i did, group theory was a lot harder
saschagehlich has joined #ruby
<JonnieCache> workmad3: that was kinda what i was thinking. it would be a good start, but obviously youd have to ask the user to confirm each one
<workmad3> JonnieCache: yeah, which would get annoying :)
saschagehlich has quit [Read error: No route to host]
<JonnieCache> youd only have to do it once, and i think it would be more accurate than you might think. depends on how you use homebrew i guess
<workmad3> JonnieCache: although I guess it's the only migration path initially - mark all dependencies as 'potentially auto-installed'
ABK has quit [Ping timeout: 250 seconds]
saschagehlich has joined #ruby
<mdszy> workmad3: but that could get bad if someone actually DID install something manually, and then ran `brew clean`
<workmad3> then new packages that get auto-installed get marked as such, and the flag gets flipped if you try to manually install
quest88 has joined #ruby
<workmad3> mdszy: yeah, JonnieCache's point is that a potential gets confirmed by a user before being removed
<JonnieCache> mdszy: youd have to have a big notice saying BE CAREFUL AND DO THIS AT YOUR OWN RISK
<mdszy> I'll probably never actually put this in a fork request to mxcl/homebrew, I just want this for myself XD
<JonnieCache> and a y/n prompt for each one
tatsuya_o has quit [Remote host closed the connection]
wmoxam has joined #ruby
<JonnieCache> no if you write it you should definitely send it upstream. lots of people want that feature
<mdszy> JonnieCache: I feel like, though, it'll get rejected because I'll probably end up doing it in the worst way possible.
<workmad3> yeah, and hell, even a naive approach is better than none, and gives people something to work with :)
jxf has joined #ruby
<mdszy> True
<mdszy> well, I'll work on it, use it myself for a bit, and pull request once I think it's ready
<JonnieCache> exactly. even if your code was great, it would be changed before it got added anyway. it just provides a base to work from
<JonnieCache> and the all important momentum
<mdszy> yeah
<mdszy> I just don't know how I'd store this stuff
<mdszy> without having to require any external libraries
<mdszy> or is YAML support built in to ruby?
<JonnieCache> just mimic how homebrew does it
<mdszy> because that might be a way to do it
<JonnieCache> yes it is
<workmad3> mdszy: it's stdlib, not core
yonggu_ has joined #ruby
<JonnieCache> homebrew must have some cache anyway, could well be YAML
<mdszy> workmad3: ah, okay. But you don't need to install any gems to use it?
<davidcelis> no
<davidcelis> its stdlib
<workmad3> mdszy: no, no gems
<mdszy> ah, okay
<workmad3> mdszy: just it won't be there if ruby was compiled without yaml (which is rare :) )
<mdszy> ah, okay
R_Macy has joined #ruby
<lectrick> In a regex, what does ?-mix: mean?
<workmad3> lectrick: looks like a look-behind (or maybe a look-ahead)
* mdszy forks homebrew
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
yonggu has quit [Ping timeout: 264 seconds]
<lectrick> it's part of the output of, for example, //.to_s << workmad3
<mdszy> maybe it's just a default thing part of every regex in Ruby?
joshcheek has joined #ruby
joshcheek has quit [Client Quit]
fermion has joined #ruby
<fowl> lectrick, regex in string form is not pretty
itnomad has joined #ruby
<fowl> for whatever reason
<mdszy> what's with this? LANGUAGE_MODULES = [ :chicken, :jruby, :lua, :node, :perl, :python, :rbx, :ruby ].freeze
hunglin has joined #ruby
<mdszy> shouldn't a constant already be frozen?
<mdszy> why call .freeze on it?
<workmad3> lectrick: in that case, no idea
<lectrick> fowl: I'm just wondering what the technical reason for it is
<workmad3> mdszy: constants aren't frozen
<lectrick> mdszy: Constants can be redefined. Shocker, I know. You WILL get a warning, though.
<JonnieCache> constants arent really anything special in ruby
<mdszy> ah, okay
shevy has joined #ruby
<workmad3> mdszy: constants give a warning if you redefine the reference, and have absolutely no check to make sure the object itself remains unchanged
<lectrick> also, someone start their rant about staying away from ruby's .freeze
krz has joined #ruby
kevinbond has joined #ruby
user__ has joined #ruby
<mdszy> workmad3, lectrick, JonnieCache: Ahh, okay. Thanks!
<fowl> lectrick, (?-mix:) is valid regex, i have no idea what it means
<lectrick> yeah, if you freeze anything, it can still just be wiped. you just can't change the contents
internet_user has joined #ruby
<JonnieCache> yeah well youre freezing the object not the vairable
<workmad3> lectrick: yeah, but a frozen constant will give you a warning when you do so ;)
<JonnieCache> makes sense
<mdszy> ergh
<workmad3> mdszy: welcome to dynamic ruby! :)
<mdszy> whenever I try to run anything involving Rubygems (pry, gem, etc.) I get this error
<mdszy> [BUG] cross-thread violation on rb_gc()
<mdszy> (null)
bbttxu has joined #ruby
<workmad3> mdszy: awesome :D
<JonnieCache> nasty
<mdszy> I have no clue what it means, nor how to fix it
<mdszy> Might try reinstalling ruby
<mdszy> I'm using RVM with ruby-1.9.3-p124
<workmad3> mdszy: you have something doing something bad with threads inside the garbage collector, by the looks of things
<JonnieCache> youre due for an upgrade then i think
piotr_ has joined #ruby
<JonnieCache> newest is p194
baphled has quit [Ping timeout: 252 seconds]
<mdszy> erm, 194, not 124
neku is now known as neku|away
<mdszy> XD
<fowl> $VERBOSE = nil; A = 4; A = 239; A = 9382 etc
<mdszy> mis-read RVM
<fowl> (:
saschagehlich_ has joined #ruby
<workmad3> mdszy: how about gem version?
<JonnieCache> that is a nasty bug. googled it?
<mdszy> workmad3: gem is one of the things that crashes like that XD
<mdszy> I'm just gonna try to reinstall Ruby
<workmad3> mdszy: you can't even do 'gem -v'? :(
<mdszy> nope
baphled has joined #ruby
akem has quit [Ping timeout: 264 seconds]
saschagehlich has quit [Ping timeout: 240 seconds]
saschagehlich_ is now known as saschagehlich
<lectrick> sepp2k: hehe I just negated your answer on this stackoverflow http://stackoverflow.com/questions/2648054/ruby-recursive-regex/11363936#11363936
chson has joined #ruby
* mdszy installs 1.9.3 again
pk1001100011 has quit [Ping timeout: 248 seconds]
lorandi has joined #ruby
jonathanwallace has joined #ruby
<mdszy> argh
<mdszy> still getting the error
<mdszy> maybe it's an issue with `gem` itself?
tommyvyo is now known as FourStarGeneralS
<workmad3> mdszy: check 'which gem'
<workmad3> mdszy: are you running the right one?
yonggu_ has quit [Remote host closed the connection]
yonggu has joined #ruby
baphled has quit [Ping timeout: 250 seconds]
<mdszy> when I run `which gem` it gives me the function that apparently rvm uses for the gem command
<mdszy> running `which -a gem` returns
joshman_ has joined #ruby
<sepp2k> lectrick: I guess I wasn't up-to-date with Onigurama's new features yet in 2010.
andrewhl has quit [Remote host closed the connection]
<mdszy> that function, ~/.rvm/rubies/ruby-1.9.3-p194/bin/gem, ~/.rvm/bin/gem, and /usr/bin/gem
mvangala has quit [Remote host closed the connection]
etehtsea has quit []
<JonnieCache> rvm does that. it replaces some of your normal binaries with its own functions
minijupe has joined #ruby
<JonnieCache> it even does it to cd
<mdszy> right
<mdszy> really
<JonnieCache> personally i dont like it
<mdszy> ?
<mdszy> huh
<mdszy> interesting
<workmad3> JonnieCache: you can turn them all off though
<workmad3> JonnieCache: I believe they're even all off by default now
<mdszy> I do `which -a cd` and all it returns is /usr/bin/cd and cd: built-in shell command
<mdszy> so RVM isn't messing with my cd command :D
<JonnieCache> ok maybe it stopped that then
lorandi has quit [Ping timeout: 248 seconds]
<workmad3> JonnieCache: it does it to perform project-specific .rvmrc file stuff, and even the super-simple rbfu hasn't found a good way around needing to if you want that feature
<JonnieCache> rbenv seems to manage it
<workmad3> JonnieCache: but it is opt-in, not opt-out
<mdszy> Personally, I love the .rvmrc feature
kvirani has joined #ruby
<workmad3> JonnieCache: I think because their shims look at it and change the symlinking based on it
<mdszy> well, according to RVM's troubleshooting page: "In every case of this I have seen thus far it has always ended up being that a ruby gem/library with C extensions was compiled against a different ruby and/or architecture than the one that is trying to load it."
<JonnieCache> yep. thats why i use it, it seems the neatest one
<mdszy> "this" being the error I'm getting
<JonnieCache> that sounds right
<lectrick> sepp2k: :)
<workmad3> mdszy: implode your rvm directory and start from scratch?
<mdszy> but I can't reinstall the gems! The `gem` command itself is crashing!
<mdszy> workmad3: sounds like a good idea, I'll try
<lectrick> fowl: I found it out. Of course, zenspider's reference had it: (?imx-imx:re) turns on/off imx options, localized in group.
indian has quit [Ping timeout: 252 seconds]
<workmad3> JonnieCache: I don't see something playing around with symlinks while launching binaries as any 'neater' than a 2-line cd function myself :)
<workmad3> JonnieCache: hell, make than 1 line for rbfu :)
* mdszy reinstalls RVM and Ruby
<JonnieCache> i guess its because rbenv only messes with my rubies binaries, which is its job, so thats cool
<JonnieCache> a ruby manager has no business acting whenever i change directory
<workmad3> unless you've asked it to
<JonnieCache> but i recognise thats an emotive rather than a rational view
<mdszy> JonnieCache: it does so so it can use the .rvmrc put in directories so you can, for instance, change gemsets when cd'ing into a project directory
<mdszy> which I think is an awesome feature
<workmad3> and hey, there's options out there for each viewpoint now :)
andrewhl has joined #ruby
<JonnieCache> yeah i used to use rvm with per project gemsets
<JonnieCache> then i realised all my projects use bundler anyway so it was a watse of time
saschagehlich has quit [Read error: Connection reset by peer]
saschagehlich_ has joined #ruby
erichmenge has joined #ruby
<JonnieCache> but yeah its not important
<mdszy> JonnieCache: I use Bundler + gemsets, so everything is seperate and clean
<Mon_Ouie> mdszy: I find it very intrusive still. Also, I don't always cd in the directory of the project I'm working on, so it's not reliable for me.
PaciFisT has joined #ruby
<JonnieCache> i did think all the drama when rbenv came out was pretty hilarious though
<mdszy> is it bad that I have no clue what rbenv is? XD
<JonnieCache> its just a lightweight version of rvm essentially
<mdszy> ah
<shevy> like a simpler RVM
ananthakumaran has joined #ruby
wmoxam has quit [Quit: leaving]
<JonnieCache> when it came out, its readme said something like "RBENV! COS RVM SUCKS MAN! YOU DONT HAVE TO USE THAT AWFUL RVM ANYMORE!"
<mdszy> x3
<JonnieCache> and the rvm guy got upset and wrote a blog post about it
<mdszy> hah
<shevy> poor guys
<JonnieCache> and there was much wailing and gnashing of teeth on hacker news
<mdszy> I kinda wonder if I should try this
<mdszy> because rvm has given me some problems
<mdszy> like for instance, if I have something like `pry` installed
<shevy> any piece of software with some complexity will give problems
<mdszy> I have to run `rvm reload` before I can use it
bfgun has quit [Ping timeout: 248 seconds]
<mdszy> otherwise I'll get command not found
<shevy> banisterfiend!!! RVM is messing up pry ^^^^
<mdszy> nono
<mdszy> shevy: that's just an example
<JonnieCache> rbenv has that too. you ahve to call rbenv rehash when you install a new binary
jxf has quit [Read error: Connection reset by peer]
<shevy> cool
<mdszy> shevy: anything that's installed with Gem that has a binary associated does that
<JonnieCache> its unavoidable really
<workmad3> JonnieCache: well, it didn't help that the rbenv guy was basically spreading FUD based on either old or wrong information about RVM to get people to switch :P
jxf has joined #ruby
<mdszy> JonnieCache: That's every time I launch a shell, not every time I install
<JonnieCache> thats not right
<JonnieCache> reinstall rvm i guess
<mdszy> I just now did
<workmad3> but still... I'm happy with rbfu now (with a minor hack to support my own workflow :) )
<mdszy> and it seems to have fixed the crashing bug I got
<JonnieCache> workmad3: i have no real investment in the issue, i just find nerd-drama amusing
<shevy> hehe
<JonnieCache> good on him though, he obviously puts a lot into his work
<workmad3> considering my rvm use had dropped to the simplest possible on my dev machine, the simplest possible version manager, with ruby-build to build things, made sense (and I was getting annoying with the rubygems-bundler crap)
pk1001100011 has joined #ruby
<shevy> WHY U NO LOVE BUNDLER!!!
<workmad3> shevy: I love bundler... I dislike the way rubygems-bundler attempts to solve a non-issue
<mdszy> the `rvm reload` issue persists
<fowl> workmad3, all i needed to choose rbenv was all the people coming in with questions about rvm, it must be a pain in the ass lol. never had any problems with rbenv
<shevy> hehe
<workmad3> shevy: by basically hacking your gem binaries apart to get them to look for a gemfile and determining if it should run with bundle exec or not
<mdszy> https://gist.github.com/3060507 a little shell paste of the problem
sspiff has quit [Remote host closed the connection]
<workmad3> shevy: when instead, all you need to do is use 'bundle --binstubs' and make sure your bin directory is then at the front of the path
randomautomator has joined #ruby
<mdszy> I might try 'rbenv'
crankycoder has joined #ruby
<JonnieCache> you can install it with homebrew
<workmad3> no funky crap with gem binaries scanning up your working directory path to find a Gemfile and checking it then... gem binaries that are in your Gemfile get a binstub, gem binaries that aren't, don't
* mdszy `rvm implodes`
Targen has quit [Ping timeout: 240 seconds]
<JonnieCache> and the ruby-build bit that actually installs the rubies into it comes separately, its also in homebrew
<workmad3> mdszy: you'll need to install both rbenv and ruby-build btw
<mdszy> I see
<mdszy> why doesn't the `rbenv` formula just list `ruby-build` as a deP?
<mdszy> *dep
<workmad3> mdszy: because it isn't
<mdszy> ah
<workmad3> mdszy: you can install the rubies however you want, just ruby-build makes it easy
<fowl> mdszy, ruby-build is an addon, i only just started using it, seems nice
FourStarGeneralS is now known as Sasquatch
<mdszy> ah, okay
<workmad3> ruby-build is completely standalone, but has an rbenv integration :)
Sasquatch is now known as Guest9710
<workmad3> you can also install a gemsets plugin for rbenv, iirc
niku4i has quit [Remote host closed the connection]
dkissell_ has joined #ruby
<mdszy> I'm guessing that `rbenv` keeps separate Rubygems binaries for different versions?
niku4i has joined #ruby
Guest9710 is now known as tommyvyo
<mdszy> so like, you don't have to use `sudo` for doing stuff with gems?
<JonnieCache> yeah you dont use sudo at all
<fowl> your ruby is installed into a separate folder, so yes
<mdszy> awesome
<JonnieCache> homebrew puts it into its own place inside the Cellar or whatever it is, which is all owned by you
<workmad3> well, you'd need to use sudo if you chowned the rbenv build folder to root, I guess ;P
lorandi has joined #ruby
wallerdev has joined #ruby
<workmad3> hmm, I should get a coffee and do some work I guess
friskd has joined #ruby
dkissell has quit [Ping timeout: 265 seconds]
dkissell_ is now known as dkissell
<JonnieCache> workmad3: are you underwater up there right now?
<workmad3> why do fridays make it so hard to focus? :(
<mdszy> workmad3: because IRC
<mdszy> XD
<workmad3> JonnieCache: nah, it hasn't flooded that much yet :P
<workmad3> JonnieCache: how about you? did you take a barge to work today? :)
<JonnieCache> i got soaked on the way in today and now its sunny. fortunately my friend brought me some spare trousers
<JonnieCache> well im by the sea so it cant really flood
<JonnieCache> fortunately
friskd has quit [Remote host closed the connection]
<workmad3> JonnieCache: depends on just how much rain comes down at once :P
niku4i has quit [Ping timeout: 240 seconds]
chomp has joined #ruby
<workmad3> JonnieCache: but yes, in all realistic (rather than fevered imagination) scenarios, you're pretty safe from flooding :)
<workmad3> JonnieCache: just not from rising sea levels ;)
<JonnieCache> exactly was just thinking that.
<JonnieCache> at least we're not at the top of rapidly eroding cliffs
<workmad3> heh
<workmad3> right, coffee!
* mdszy fixes his zsh prompt to work with rbenv
RainbowDashh has quit [Quit: SLEEP MODE. [NSFW!] [WIERD] [WTF] http://pastebin.com/6L0WjKRk]
<JonnieCache> mdszy: what are you having to do for that? the combination seems to just work for me...
<JonnieCache> oh you mean the loading thing in zshenv
<mdszy> JonnieCache: Nono, I mean my zsh prompt shows the current RVM version, now I need to make it show the current rbenv version
<JonnieCache> ah right
<JonnieCache> i used to have that but it got in the way, my terminal is quite narrow
headius has joined #ruby
<JonnieCache> i just assume that its set right and it generally is
<JonnieCache> i have the git branch in there, thats really useful
pradeepto has joined #ruby
cakehero has joined #ruby
pradeepto has quit [Changing host]
pradeepto has joined #ruby
<mdszy> there we go, perfect
solidoodlesuppor has joined #ruby
baphled has joined #ruby
king313 has joined #ruby
king313 has quit [Changing host]
king313 has joined #ruby
RainbowDashh has joined #ruby
<mdszy> huh
<mdszy> when I try to install something with `gem`
<mdszy> You don't have write permissions into the /Library/Ruby/Gems/1.8 directory.
RainbowDashh has quit [Client Quit]
<Mon_Ouie> Use gem --user-install to install in ~/.gem
<mdszy> ah ha, that worked
<mdszy> ah, okay
<mdszy> I just did `rbenv exec gem install pry`
<mdszy> which worked
<mdszy> ugh
<mdszy> that means that I'll also have to do
<mdszy> rbenv exec pry
<Mon_Ouie> Doesn't that mean you need to add some directory to your PATH?
friskd has joined #ruby
<mdszy> ahh, yeah, forgot to do that
<mdszy> thanks, Mon_Ouie!
<ksk> hi again
andrewhl has quit [Remote host closed the connection]
freeayu has quit [Quit: 离开]
<ksk> im looking for something to calculate network values, eg i have an ip-address and a netmask and now want to know the network - is there some ruby thingy to do this?
<mdszy> what do you mean by "know the network"?
<mdszy> like, scan all the ip addresses in the network?
<shevy> he means skynet 2.0
<ksk> gettin the netword address.
<fowl> SKYNET
<sernin> I think he means subnetting.
<sernin> Like, given a bitmask and address, calculate hosts/net, etc
<ksk> yes, i want to do some subnet-calculating
<Mon_Ouie> If it's already implemented in Ruby, it would be in the ipaddr library
<ksk> its not that hard, one can do bitwise addition in plain bash. was just wondering if theres any lib in ruby which makes this cool and easy
<ksk> i take a look, thanks Mon_Ouie
tvw has quit [Remote host closed the connection]
saschagehlich_ has quit [Read error: No route to host]
mvangala has joined #ruby
<mdszy> awesome, rbenv doesn't have those stupid warnings that rvm does with .rvmrc files
saschagehlich has joined #ruby
lorandi has quit [Quit: Leaving]
<fowl> mdszy, ur life is going to be so much simpler
<mdszy> heh
<fowl> only two people in the history of the internet have ever had trouble installing rbenv
<mdszy> three
<fowl> ok three now
<mdszy> I keep getting this error
<mdszy> /usr/local/Cellar/rbenv/0.3.0/libexec/../completions/rbenv.bash:14: command not found: complete
* mdszy headdesks
<fowl> what is /usr/local/cellar
<mdszy> fowl: the directory that homebrew installs stuff to
<fowl> you installed rbenv with homebrew?!
<mdszy> yes...
thisirs has quit [Remote host closed the connection]
<fowl> mdszy, I can't help you, im not a mac person
ipoval has joined #ruby
<mdszy> ok
<mdszy> it's probably because it's meant for bash, not zsh
jfoley has joined #ruby
<mdszy> there's a rbenv.zsh file
<mdszy> but it's not loading it, maybe because I'm using tmux, and running zsh from there?
<shevy> what ever happened to simplicity
<hoelzro> mdszy: that shouldn't make a difference
<raz> anyone know a working binary to post gists from the command-line?
<hoelzro> zsh in tmux should still load your rc files
<raz> the gist-gem is a piece of shit, constantly broken
<mdszy> hoelzro: well, for some reason, my $SHELL is set to /bin/bash
<fowl> mdszy, i believe the complete problem is missing rbenv sources
<hoelzro> oh, that's fun.
<mdszy> fowl: No, I know what the issue is now.
<benwoody> raz: jist gem is not too bad
Synthead has joined #ruby
johnlcox has joined #ruby
wvms has quit [Quit: wvms]
<mdszy> sweet, that worked
dv310p3r has quit [Ping timeout: 264 seconds]
<mdszy> putting SHELL=$(which zsh) before rbenv's init thing in my .zshrc fixed it
darthdeus has joined #ruby
<Synthead> is there a way I can set a variable in a different class (while inside a class)?
mengu has quit [Quit: Konversation terminated!]
<raz> benwoody: trying th
<raz> thx
<Mon_Ouie> An instance variable?
<Synthead> Mon_Ouie: yeah
Progster has joined #ruby
<Mon_Ouie> As their name implies, you need an instance to be able to set one
binaryplease has quit [Quit: WeeChat 0.3.8]
<Mon_Ouie> It doesn't make sense to change it without knowing what object to change it on
<fowl> MyClass.instance_variable_set :@x, 239
<fowl> bing bang boom
banghouse has joined #ruby
<Synthead> fowl: ahhhh
<Mon_Ouie> Yeah, if you want to set the ivar on the class itself
<Mon_Ouie> I was assuming he wanted to set it on an instance of that class
<fowl> Mon_Ouie, he said a variable on a class so :p
<fowl> a variable in a different class
<Mon_Ouie> He said "in", not "on"
<fowl> i dunno
<fowl> Okay, Min_Ouie
<mdszy> argh, I'm still getting that error when I try to run `gem install`
<fowl> (;
<Synthead> Mon_Ouie, fowl: I'll pastebin something
zommi has quit [Remote host closed the connection]
umttumt has joined #ruby
Travis-42 has quit [Quit: Travis-42]
<mdszy> ah ha, found the issue
Berglund has quit [Quit: Computer died.]
<Synthead> Mon_Ouie, fowl: ^
<Synthead> Mon_Ouie, fowl: I understand that this isn't the point of instance variables, so I'm totally open to ideas
<Synthead> Mon_Ouie, fowl: maybe I need to be using a global
<mdszy> okay, perfect
<Mon_Ouie> Yeah, you need an instance of ThisClass in ThatClass
<Mon_Ouie> Otherwise, how would Ruby know what object to change?
<Synthead> Mon_Ouie: exactly, yeah
<mdszy> whoop! works perfect :D
<Whoop> thanks for letting me know
wobr has quit [Ping timeout: 245 seconds]
<Synthead> Mon_Ouie: I don't really want to define an object of ThisClass in ThatClass though
<Synthead> I might just make a global
crankycoder has quit [Remote host closed the connection]
arturaz has quit [Ping timeout: 264 seconds]
<Mon_Ouie> Then use class instance variables as suggested by fowl
crankycoder has joined #ruby
<Mon_Ouie> And class (or rather, module) methods
kenichi has joined #ruby
justsee is now known as justsee|away
<JonnieCache> mdszy: what was the issue?
<mdszy> JonnieCache: I had to add the current rbenv version's bin path to my $PATH
<mdszy> I did it like
<mdszy> RBENV_BIN="$HOME/.rbenv/$(cat $HOME/.rbenv/version)/bin"
<mdszy> PATH="$RBENV_BIN:$PATH"
<JonnieCache> very neat :)
<mdszy> and so if ever I change ruby versions, I'll need to run `reload` (an alias I have for `source ~/.zshrc`), but I almost never do that
<JonnieCache> you shouldnt have to...
<JonnieCache> you change ruby versions with the rbenv commands
<mdszy> JonnieCache: some people would, for projects and such that use different versions
<mdszy> right
<mdszy> but if I change versions, the bin path will still be the old one
Ionic` has joined #ruby
friskd has quit [Quit: friskd]
<JonnieCache> the bin will point to the rbenv shim
<JonnieCache> which changes automatically to point to the correct ruby
<JonnieCache> thats the whole point
<mdszy> JonnieCache: but the $PATH variable will be the same, though
Cache_Money has joined #ruby
<mdszy> so say if I go from 1.9.3 to 1.8.7 or something
<mdszy> the $PATH variable will still have 1.9.3's bin path in it
<fowl> mdszy, you missed the point
<mdszy> not 1.8.7's
jcluck has joined #ruby
<fowl> .rbenv/shims goes in PATH, then when you rehash the current ruby's bins get symlinked there
wvms has joined #ruby
<fowl> or they used to
<mdszy> fowl: Apparently that isn't working proplery for me
<mdszy> *properly
jcluck has quit [Client Quit]
<fowl> mdszy, ok scratch that, .rbenv/shims is full of rbenv stubs for your gems and bins
<mdszy> oh, huh
<mdszy> I didn't know about that
sonkei has quit [Quit: WeeChat 0.3.8]
bradhe has quit [Remote host closed the connection]
sonkei has joined #ruby
dv310p3r has joined #ruby
apeiros_ has quit [Remote host closed the connection]
sixtycakes has joined #ruby
oooPaul has joined #ruby
ckrailo has joined #ruby
saschagehlich_ has joined #ruby
wvms has quit [Ping timeout: 264 seconds]
Targen has joined #ruby
Eldariof-ru has quit [Read error: Operation timed out]
carloslopes has quit [Ping timeout: 248 seconds]
ipoval has quit [Quit: ipoval]
schovi has joined #ruby
Criztian has quit [Remote host closed the connection]
jianxioy has joined #ruby
umttumt has quit [Remote host closed the connection]
saschagehlich has quit [Ping timeout: 255 seconds]
saschagehlich_ is now known as saschagehlich
SQLStud has joined #ruby
hoelzro is now known as hoelzro|away
joukokar has quit [Ping timeout: 250 seconds]
baphled has quit [Read error: Connection reset by peer]
elhu has quit [Ping timeout: 252 seconds]
jianxioy has quit [Client Quit]
Cache_Money has quit [Ping timeout: 250 seconds]
dv310p3r has quit [Ping timeout: 264 seconds]
dhruvasagar has quit [Ping timeout: 245 seconds]
dv310p3r has joined #ruby
td123 has joined #ruby
elhu has joined #ruby
LBRapid has joined #ruby
baphled has joined #ruby
joukokar has joined #ruby
cousine has joined #ruby
mockra has joined #ruby
mockra has quit [Remote host closed the connection]
Sheehan has joined #ruby
kn330 has joined #ruby
<kn330> How do I avoid redundancy in this code (lines 2-4) > http://pastie.org/4210824 ?
benson has joined #ruby
itnomad has quit [Remote host closed the connection]
jumpingcloud has joined #ruby
R_Macy has quit [Ping timeout: 264 seconds]
internet_user has quit [Remote host closed the connection]
gilead has quit [Quit: Leaving]
<ramblex> kn330: strftime?
cloud|windoze has joined #ruby
<Synthead> got a new one: if I have class That ... end; that = That.new, and somewhere in class That, an @instance var is defined, is there a way access it while outside of 'that'?
RegEchse has joined #ruby
srji has joined #ruby
dekroning has joined #ruby
kenperkins has quit [Quit: Computer has gone to sleep.]
mahmoudimus has joined #ruby
Tomasso has joined #ruby
<shevy> you can access ivars only via method calls
ilyam has joined #ruby
<shevy> class Foo; attr_reader :foo; def initialize; @foo = 500; end; end; foo = Foo.new; foo.foo
digitalcakestudi has joined #ruby
<ramblex> Synthead: or instance_variable_get
bglusman has joined #ruby
robotmay has quit [Remote host closed the connection]
<kn330> ramblex: yeah it works :) Btw I was interested in knowing a DRY method of calling multiple methods on the same object
hoelzro|away is now known as hoelzro
<Mon_Ouie> You shouldn't normally use instance_variable_get — except for metaprpogramming, that is
cousine has quit [Remote host closed the connection]
saschagehlich has quit [Read error: No route to host]
saschagehlich has joined #ruby
hoelzro is now known as hoelzro|away
<rking> What's the idiom to take h = {a:1,b:2} and get {a:1,b:2,c:3} ?
quest88 has quit [Quit: quest88]
<rking> That is, I want a hash that includes one extra key-value pair.
<cloud|windoze> h.merge({:c=>3}) maybe ?
<rking> Ohshucks.
<rking> I was trying that without the ()s
<ramblex> rking: h[:c] = 3
<rking> ramblex: Yeah but that modifies the hash and also doesn't give the end result
<ramblex> tap?
apeiros_ has joined #ruby
silentpost has joined #ruby
<ramblex> meh, maybe merge is easier then
<cloud|windoze> it gives the end result. no?
<rking> Yeah, it is what I wanted. I was screwing it up because I was trying x.merge {c: 4}
zbo09 has quit [Remote host closed the connection]
<cloud|windoze> dont forget the ! after merge :P
<rking> cloud|windoze: I actually don't want that.
<rking> (For this)
<apeiros_> x.merge {c: 4} is invalid syntax
<apeiros_> either x.merge c: 4 or x.merge({c: 4})
mvangala has quit [Remote host closed the connection]
fbernier has quit [Ping timeout: 265 seconds]
AlbireoX has quit [Ping timeout: 245 seconds]
medik has joined #ruby
<rking> Hrm, I don't quite understand why.
medik has quit [Client Quit]
<rking> apeiros_: Thank you for dropping 4 chars from it, but I don't understand why {c: 4} doesn't work.
<apeiros_> because it looks like a block to ruby
cloud|windoze has quit [Quit: Leaving.]
<rking> Oh, right, of coruse.
<rking> And the {}s are only auto-imaginadded in the method call version, but are a syntax error in the block version.
bradhe has joined #ruby
silentpost has quit [Ping timeout: 244 seconds]
bglusman_ has joined #ruby
andrewhl has joined #ruby
Helius has quit [Remote host closed the connection]
johnernaut has joined #ruby
bglusman has quit [Ping timeout: 245 seconds]
kvirani has quit [Remote host closed the connection]
dekroning has quit [Ping timeout: 246 seconds]
jesly has quit [Read error: Connection reset by peer]
andrewhl has quit [Read error: Connection reset by peer]
andrewhl has joined #ruby
neku|away is now known as neku
khakimov has joined #ruby
burgestrand has quit [Quit: Leaving.]
savage- has joined #ruby
sailias has quit [Ping timeout: 244 seconds]
robozahn has quit [Ping timeout: 265 seconds]
stkowski has joined #ruby
baroquebobcat has joined #ruby
Ontolog has joined #ruby
zodiac1111 has quit [Ping timeout: 255 seconds]
kenperkins has joined #ruby
xorspark has joined #ruby
fridim_ has joined #ruby
vsg1990 has joined #ruby
tewecske has joined #ruby
brianpWins has quit [Quit: brianpWins]
btanaka has joined #ruby
andrewhl has quit [Ping timeout: 245 seconds]
cakehero has quit [Quit: Computer has gone to sleep.]
ttilley_off is now known as ttilley
jonathanwallace has quit [Remote host closed the connection]
davidw has quit [Ping timeout: 245 seconds]
Maoz_ has joined #ruby
bricker88 has joined #ruby
hadees has quit [Quit: hadees]
gmci has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<apeiros_> ping banisterfiend
<apeiros_> those things for the pry prompt in yet? :)
baphled has quit [Quit: leaving]
pk1001100011 has quit [Ping timeout: 264 seconds]
apok has joined #ruby
<fowl> apeiros_, ax in #pry
deryl has quit [Ping timeout: 244 seconds]
<shevy> I want a cell oriented programming language
pk1001100011 has joined #ruby
jxf has quit [Ping timeout: 264 seconds]
deco has quit [Quit: leaving]
DrShoggoth has joined #ruby
andrewhl has joined #ruby
yoklov has joined #ruby
oposomme has joined #ruby
kmwhite has quit [Quit: leaving]
<k_89> cell oriented?
k_89 has left #ruby ["Leaving"]
k_89 has joined #ruby
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]
fantazo has quit [Remote host closed the connection]
oposomme has quit [Excess Flood]
oposomme has joined #ruby
jimeh3 has quit [Read error: Operation timed out]
brianpWins has joined #ruby
emanu has joined #ruby
andoriyu has quit [Quit: This computer has gone to sleep]
ringotwo has joined #ruby
Sheehan has quit [Quit: Sheehan]
c0rn_ has joined #ruby
SegFaultAX|work2 has joined #ruby
flype has joined #ruby
jianxioy has joined #ruby
btanaka has quit [Ping timeout: 272 seconds]
hadees has joined #ruby
Maoz_ has quit [Ping timeout: 245 seconds]
dekroning has joined #ruby
apok has quit [Remote host closed the connection]
apok has joined #ruby
chienpo has joined #ruby
tzvi has quit [Remote host closed the connection]
cakehero has joined #ruby
Goles has joined #ruby
gmci has joined #ruby
dhruvasagar has joined #ruby
Sheehan has joined #ruby
<sernin> You mean CUDA?
darthdeus has quit [Quit: Linkinus - http://linkinus.com]
internet_user has joined #ruby
jxf has joined #ruby
someguy has joined #ruby
Rochefort has quit [Remote host closed the connection]
undersc0re has joined #ruby
btanaka has joined #ruby
horrror has joined #ruby
AlbireoX has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
khakimov has quit [Quit: Computer has gone to sleep.]
Ethan has quit [Ping timeout: 240 seconds]
AlbireoX_ has joined #ruby
axl_ has quit [Ping timeout: 246 seconds]
<shevy> CUDA?
<shevy> k_89: yeah something like where objects would be like cells. minicomputers on their own
sebastorama has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
schovi has quit [Read error: Connection reset by peer]
<fowl> you mean miniputer
<sernin> shevy: I thought you were referencing the ps3 cell processor
schovi has joined #ruby
lxsameer has quit [Quit: Leaving]
jfoley has quit [Quit: jfoley]
carloslopes has joined #ruby
vitoravelino is now known as vitoravelino`afk
jgrevich has joined #ruby
mrsolo has joined #ruby
RainbowDashh has joined #ruby
<shevy> if erlang would just have nicer syntax!!!
carloslopes has quit [Client Quit]
carloslopes has joined #ruby
elhu has quit [Quit: Computer has gone to sleep.]
nadirvardar has joined #ruby
azm has joined #ruby
internet_user has quit [Remote host closed the connection]
<shevy> I guess I am too superficial
burgestrand has joined #ruby
schovi has quit [Remote host closed the connection]
internet_user has joined #ruby
<vsg1990> Hi, I've used python before for a few projects, but I recently was informed about Ruby. Is one better than the other? I hope its not too biased asking in the #Ruby channel :P
<dekroning> hey Shevy how are you doing?
someguy has quit [Ping timeout: 245 seconds]
manizzle has quit [Read error: Connection reset by peer]
<johnernaut> vsg1990: both are excellent languages.
<vsg1990> johnernaut: so would you say its just preference on which one you like to use?
sailias has joined #ruby
<johnernaut> vsg1990: yes.
<shevy> hi dekroning. pretty well - finished a project today, "cookbooks". will make it a gem a bit later, as soon as I finished updating the docu
azm has quit [Ping timeout: 244 seconds]
kvirani has joined #ruby
ramblex has quit [Ping timeout: 264 seconds]
<dekroning> shevy: awesome
<vsg1990> johnernaut: thanks.
<dekroning> shevy: what kind of application is it ?
pk1001100011 has joined #ruby
designated has joined #ruby
jesly has joined #ruby
johnlcox has quit [Quit: Leaving]
internet_user has quit [Ping timeout: 265 seconds]
jarray52 has joined #ruby
mwilson_ has quit [Excess Flood]
mwilson_ has joined #ruby
qwerxy has quit [Ping timeout: 244 seconds]
mdszy has quit [Quit: bye for now]
srji has quit [Read error: Connection reset by peer]
zemanel has joined #ruby
johnlcox has joined #ruby
srji has joined #ruby
ik has joined #ruby
<ik> hi
<ik> is ruby web-scale?
<jarray52> ik: Do you mean rails?
<jarray52> Is there a Ruby equivalent of the following python code. a=[1,2] / [b,c]=a . This results in b being assigned 1 and c being assigned 2.
<ik> jarray52: I guess
<ik> jarray52: is it web scale?
axl_ has joined #ruby
<jarray52> ik: Depends on your goal.
webguynow has joined #ruby
stephenjudkins has joined #ruby
<sepp2k> jarray52: a = [1, 2]; b,c = a
<matled> jarray52: please don't use / to separate lines, it's really hard to read
<apeiros_> ik: ruby is roflscale
<jarray52> matled: what character should be used to separate lines?
<sepp2k> ; because that one actually works.
<matled> jarray52: ";" or "\n"
<jarray52> matled: Thanks.
* apeiros_ prefers writing the splat explicitly: b,c = *a
srji_ has joined #ruby
yoklov has quit [Quit: computer sleeping]
cdepue has quit [Remote host closed the connection]
<jarray52> ik: It might help to specify the potential size and type of content. I'm probably not the right person to ask. I believe JRuby supports sharing memory between multiple threads running synchronously whereas non JRuby variants do not. However, this is not necessary in every situation.
voodoofish430 has joined #ruby
<jarray52> ik: Also, there is #RubyOnRails.
<ik> So JRuby is web scale?
<apeiros_> ik: seriously, are you a troll?
srji has quit [Ping timeout: 264 seconds]
ringotwo has quit [Read error: Connection reset by peer]
<ik> apeiros_ please do not attack my character i came here to ask questions
ringotwo has joined #ruby
<apeiros_> ik: that's not an answer to my question.
<apeiros_> ik: if you want to be taken seriously, ask a substantiated question. "Is X webscale" isn't.
<ik> ok I'll try to rephrase
<ik> I guess what I'm asking is
<ik> if I turn it on, will it scale right up?
<jarray52> scale right up to what size?
<apeiros_> a) do you know what "to scale" means?
<apeiros_> b) do you know, what the limiting parameters in your setup are?
IrishGringo has quit [Remote host closed the connection]
tds has joined #ruby
<apeiros_> (if you don't know the answer to either question, then your question is meaningless in turn)
<ik> a) the scale is the web
<ik> b) my limiting parameters are the size of the web
<tds> no, you should always use assembler
<tds> if you really want it to scale
* apeiros_ wonders whether there's any reason left not to consider ik a troll
jonathanwallace has joined #ruby
<tds> or excel macros
<tds> all of my web scale projects use excel macros
xnm has joined #ruby
moshee has quit [Ping timeout: 246 seconds]
jlogsdon has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
D4T has quit [Quit: Computer has gone to sleep.]
<shevy> dekroning: hmm it is more a base framework, onto which people could eventually build a package manager in ruby perhaps. right now it has around 2140 entries
dhruvasagar has quit [Ping timeout: 264 seconds]
cek has joined #ruby
dhruvasagar has joined #ruby
<dekroning> shevy: that's already quite some entries
srji has joined #ruby
<shevy> yeah :)
phelps_ has quit [Remote host closed the connection]
axl_ has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
graspee has joined #ruby
axl_ has quit [Read error: Connection reset by peer]
Eiam has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
mdszy has joined #ruby
axl_ has joined #ruby
larissa has quit [Quit: Saindo]
<fowl> lol
<fowl> good show
srji_ has quit [Ping timeout: 245 seconds]
<tds> ik: you're mostly a perl hacker, right?
<tds> is perl web scale?
<ik> this one time I turned it on and it scaled right up
<tds> i think you just have to import the webscale module
<tds> is that freely available on cpan?
shadoi has joined #ruby
<tds> ik: your website has nothing on it, so i can see why its very scalable ;)
jarray52 has left #ruby [#ruby]
pcboy__ has quit [Ping timeout: 265 seconds]
stephenjudkins has quit [Quit: stephenjudkins]
blazes816 has joined #ruby
<cek> What's the standard REST route format style? I have pretty complex objects manipulated in my rails app, would like to have commonly used (standardized) URI to REST-manage them.
<apeiros_> cek: #rubyonrails
bambanx has joined #ruby
g0bl1n has joined #ruby
tk___ has quit [Quit: ばいばい]
<cek> that's a general question, not related to rails in particular
<cek> its about web standards if there are any
<blazes816> cek: google about crafting nice REST APIs.
<blazes816> there's no "standard" other than best practices.
<apeiros_> cek: the only rule is that every resource has a unique URI
<blazes816> or you could read Roy Fielding's dissertation on REST
<apeiros_> the only other rule is not about the URI but about using the proper http verb for your operations.
<apeiros_> if you use a rails app, you're advised to follow rails' conventions. and hence: #rubyonrails
<cek> actually, just found an internesting gem http://restfulie.caelum.com.br/
<lectrick> In my class, how do I control what gets returned when an instance of my class is evaluated?
billy_ran_away has joined #ruby
<apeiros_> lectrick: "an instance of my class is evaluated" <-- ???
akem has joined #ruby
<apeiros_> you mean in irb? that'd be inspect by default
<billy_ran_away> Anyone have an elegant one liner for generating a random number until that random number is 3? I know it's useless on the face of it, just playing with something.
cascalheira has quit [Quit: cascalheira]
user__ has quit [Read error: Connection reset by peer]
<lectrick> If I have a class Point, with internal representation as a 2 element array, and my code calls 'coord' which is a Point, I want it to evaluate to [x,y] for example
stephenjudkins has joined #ruby
<lectrick> apeiros_: ^ Or am I misunderstanding something?
<billy_ran_away> Something like, do until { Rand(3) == 3 }
jesly has quit [Remote host closed the connection]
<apeiros_> lectrick: an object evaluated is always that object
cdepue has joined #ruby
<apeiros_> obj # will never return anything but obj
<billy_ran_away> Like I'd like the result of the do until block to be considered in the condition without assigning it to a variable.
kirun has joined #ruby
<blazes816> lectrick, add a method called coord that returns the array?
<apeiros_> lectrick: if you want it to be an array, you can't. all you can do is *get* an array from it. and for that you call a method on it. like to_a
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
cmaujean has joined #ruby
LeBastard has joined #ruby
<lectrick> ok
<LeBastard> Hi there, anyone familiar with Rails 3.2?
<lectrick> apeiros_: Can I inherit from array and have it work that way?
<apeiros_> LeBastard: #rubyonrails
<apeiros_> lectrick: you can. but it's not a good idea usually.
<apeiros_> lectrick: what problem do you want to solve?
<fowl> lectrick, as a trick, you can make your Point expandable by implementing to_a() ie you can do x, y = *mypoint
<apeiros_> fowl: doesn't that need to_ary?
<lectrick> nice
<apeiros_> or does splat call to_a too?
<fowl> apeiros_, im pretty sure it was to_a but ive been wrong before
baroquebobcat has joined #ruby
<apeiros_> yeah, you're right, splat calls to_a
baroquebobcat has quit [Client Quit]
<fowl> <apeiros_> lectrick: if you want it to be an array, you can't. all you can do is *get* an array from it <- what if he subclasses array (:
ramblex has joined #ruby
<lectrick> fowl: / apeiros_ : http://bugs.ruby-lang.org/issues/3680
<apeiros_> fowl: then it's still not an array, but an instance of a subclass of array :-p
<LeBastard> Hi, apeiros_
Gneiss has joined #ruby
<LeBastard> I have been there.. but… ignored.
<fowl> lectrick, that says it was rejected, and it is from 2010
<apeiros_> fowl: also as said before, bad idea. a Point is not a class.
davidpk has joined #ruby
<apeiros_> LeBastard: ok. but that doesn't make this the right channel.
<LeBastard> Ok… sorry Thanks anyway!
<shevy> LeBastard: we are the nice guys, they are evil
<Mon_Ouie> On that channel, did you actually ask your question?
cdepue_ has joined #ruby
<apeiros_> LeBastard: notice that meta-questions are bad in any channel. of course people in #rubyonrails are familiar with rails 3.2, so asking that is pointless. ask the real question.
<apeiros_> LeBastard: also note that #rails != #rubyonrails
<LeBastard> no… i didn't ask that
williamcotton has quit [Ping timeout: 244 seconds]
<fowl> no, no, #rubyonrails and #rails love meta-questions
<LeBastard> I asked the real question
<LeBastard> ;)
<fowl> LeBastard, ask them the meta q
<shevy> apeiros_ is familiar with rails
<shevy> :D
<LeBastard> it's just… cause I am relative new to the subject… my question might be a bit stupid
<LeBastard> so… they must ignore me. I guess...
<Gneiss> ?
<tds> why don't you just ask the question
<Gneiss> What is it?
<Gneiss> I'm curious
<LeBastard> I am trying to setup a nested resource within a namespace but having a bit of trouble. I can do it with no Namespace.. but when I try with it… just gives me an error
<fowl> LeBastard, sometimes you have to wait a bit for an answer
<Gneiss> ?
<tds> have you tried posting to stack overflow?
<Mon_Ouie> To answer, we need to know how you try it and what's the error
shadoi has quit [Quit: Leaving.]
<shevy> LeBastard: if it is a ruby question then you can ask here
<shevy> but rubyonrails is a huge piece of software, people who know it hide on #rubyonrails
<shevy> but see, I am not even sure where the terminology comes from. what is a "nested resource"
baroquebobcat has joined #ruby
<Gneiss> Yeah man :/
kpshek has quit []
<Gneiss> Thats where I got stuck
cdepue has quit [Ping timeout: 264 seconds]
<Gneiss> Are you working with a framework or something?
williamcotton has joined #ruby
LeBastard has left #ruby [#ruby]
bambanx_ has joined #ruby
schickung has quit [Quit: schickung]
neku is now known as neku|away
horrror has quit [Quit: horrror]
baroquebobcat has quit [Client Quit]
<shevy> ok he gave up
pcboy_ has joined #ruby
dsa has joined #ruby
<tds> haha
g0bl1n has quit [Ping timeout: 240 seconds]
EzeQL has quit [Ping timeout: 265 seconds]
<Gneiss> LOL
neku|away is now known as neku
zeromodulus has joined #ruby
ik has left #ruby [#ruby]
imami|afk is now known as banseljaj
cantonic has quit [Quit: cantonic]
<shevy> anyone thinks that rails will become simpler in future versions?
qwerxy has joined #ruby
<blazes816> lmao
<blazes816> entropy my friend
<apeiros_> shevy: yes. and no.
saschagehlich has quit [Quit: saschagehlich]
<apeiros_> yes because the things that it can do today will probably rather become easier.
<apeiros_> no because it'll definitively keep adding functionality. becoming more complex as a whole.
lorandi has joined #ruby
Moon__ has joined #ruby
<sernin> And with the approach they use, adding functionality just means "remember this new set of default behaviors, which is radically different from previous iterations" :)
Morkel has joined #ruby
jimeh3 has joined #ruby
<apeiros_> with all the rails-hate I have, I don't think they've had too much of that actually.
bambanx has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
Morkel has quit [Read error: Connection reset by peer]
<apeiros_> rails stayed largely consistent the last couple of years.
<sernin> Not recently.
tommyvyo has joined #ruby
<sernin> But the railshate flows through me as well.
Morkel has joined #ruby
<fowl> gooood, gooooood, let the hate fuel you
<apeiros_> darth-fowl
ciopte7 has joined #ruby
<apeiros_> darth-fowlder?
<Paradox> do you like waffles
<dcope> Paradox: is this a trick question?
<Paradox> do you like pancakes?
cantonic has joined #ruby
<dcope> Paradox: I do.
<dcope> Pancakes > Waffles
<Paradox> do you like french toast?
moshef has joined #ruby
<apeiros_> Waffles < Pancakes?
andrewhl has quit [Remote host closed the connection]
moshef has quit [Client Quit]
<apeiros_> Waffles.superclass == Pancakes?
Vert has joined #ruby
Asher has quit [Quit: Leaving.]
<fowl> waffles =~ pancakes
<dcope> Paradox: Yeah, French Toast is pretty good.
<Paradox> waffles <==> pancakes
<Paradox> > 0
<yxhuvud> class Waffles; include Awesome; end;
Asher has joined #ruby
robbyoconnor has joined #ruby
arturas has joined #ruby
Tricks has joined #ruby
baroquebobcat has joined #ruby
Sheehan has quit [Quit: Sheehan]
dsa has quit []
EzeQL has joined #ruby
krz has quit [Quit: krz]
manizzle has joined #ruby
andrewhl has joined #ruby
jianxioy has quit [Quit: leaving]
zemanel has quit [Quit: zemanel]
Eiam has joined #ruby
oposomme has quit [Ping timeout: 252 seconds]
Ontolog has quit [Remote host closed the connection]
Progster has quit [Ping timeout: 248 seconds]
jfoley has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
PaciFisT1 has joined #ruby
cmaujean has quit [Quit: cmaujean]
mahmoudimus has joined #ruby
cmaujean has joined #ruby
PaciFisT has quit [Ping timeout: 246 seconds]
akem has quit [Read error: Operation timed out]
tvw has joined #ruby
jfoley has quit [Client Quit]
akem has joined #ruby
robozahn has joined #ruby
nachtwandler has joined #ruby
dekroning has quit [Ping timeout: 255 seconds]
<shevy> waffles + nutella chocolate
ananthakumaran has quit [Quit: Leaving.]
<shevy> I blame the industry for making me fat
mdszy has quit [Quit: bye for now]
t3hk0d3 has quit [Quit: Leaving. LIKE A BOUS]
Axsuul has joined #ruby
wpaulson has joined #ruby
robotmay has joined #ruby
qwerxy has quit [Quit: offski]
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
fbernier has joined #ruby
jxf has quit [Read error: Connection reset by peer]
darkc0met has quit [Changing host]
darkc0met has joined #ruby
darkc0met has joined #ruby
jxf has joined #ruby
neku is now known as neku|away
dnyy has quit [Remote host closed the connection]
jfoley has joined #ruby
<Paradox> how many trolls can a man stare down
<Paradox> before he rages and bans?
adamkittelson has joined #ruby
<apeiros_> 1.72 on average
stephenjudkins has quit [Quit: stephenjudkins]
baphled has joined #ruby
EstanislaoStan has joined #ruby
frogstarr78 has quit [Remote host closed the connection]
g0bl1n has joined #ruby
Guest17393 has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Guest17393 has quit [Client Quit]
<Paradox> ermargherd
<Paradox> rubbber
headius has quit [Quit: headius]
headius has joined #ruby
<EstanislaoStan> So I'm trying to learn how inheritance works with arguments. If I have a child class with one argument in its initialize method, but it's inheriting from a class that has a bunch of arguments, how do I send the argument in the child class to the parent class?
liuchong has quit [Quit: Leaving]
RainbowDashh has quit [Quit: QUIT! Accident or on purpose? :3]
RainbowDashh has joined #ruby
Ontolog has joined #ruby
<tds> EstanislaoStan: use super
<tds> with arguments
<tds> class A; def initialize(foo, bar, baz); end; end
<jlogsdon> super(here,are,args,weeeeeee)
<tds> class B; def initialize(foo); super(foo, bar, baz); end; end
<tds> oops class B < A
banseljaj is now known as imami|afk
<EstanislaoStan> does foo in super have to be named foo, or can it be called something else? As in does super just line up the arguments in order, as if they're stored in array, or does it only match it with the parent classes argument name?
<k_89> yeah thats one thing i need to get cleared up too
<k_89> EstanislaoStan, super in the method initialize would refer to parent's initialize method
mockra has joined #ruby
<EstanislaoStan> Right, so it's going to be order based?
andrewhl has quit [Remote host closed the connection]
fbernier has quit [Ping timeout: 250 seconds]
<k_89> EstanislaoStan, ?? what do you mean
<k_89> also is there any way in ruby to refer to the parent class's scope?
RainbowDashh has quit [Quit: SLEEP MODE. [NSFW!] [WIERD] [WTF] http://pastebin.com/6L0WjKRk]
mucker has quit [Read error: Operation timed out]
<burgestrand> k_89: parent class’s scope?
<k_89> burgestrand, for example, in php , there's the parent:: keyword
gmci has quit [Read error: Operation timed out]
Aaton_off is now known as Aaton
<EstanislaoStan> If I put super(dog, duck, cat); and we're still dealing with class B, would those be sent to (foo, bar, baz); in class A, even though the names are different?
qwerxy has joined #ruby
<burgestrand> k_89: ruby doesn’t have an equivalent of that, but then again ruby is not php so it’s not really needed :)
<k_89> yeah .. guess so .. i cant think of a proper use case for parent:: which self cant handle :P
<k_89> :s/self/super
gmci has joined #ruby
<burgestrand> it’s a bit awkward if you want to call some methods from the parent that you’ve overridden in the child, but entirely possible (but most likely frowned upon :p)
Ontolog has quit [Remote host closed the connection]
<k_89> yeah .. that came to mymind bt can't think of a situation where i'd need that
<k_89> EstanislaoStan, dont really get your problem :P
<k_89> probably if you can explain it via a code sample, it'd be better :)
zeromodulus has quit [Read error: Connection reset by peer]
akem has quit [Ping timeout: 246 seconds]
<k_89> hate the fact that so many ruby tols are built for rails .. trying to use activerecord with sinatra .. i need to setup my own migration commands
ringotwo has quit [Remote host closed the connection]
nacengineer has quit [Read error: Connection reset by peer]
<apeiros_> k_89: well, that's trivial, though.
neku|away is now known as neku
nacengineer has joined #ruby
<k_89> apeiros_, well not so much for a ruby noob who needs to google everything up :P
<apeiros_> ^^
<apeiros_> k_89: it's just class and instance methods on ActiveRecord::Migration
<apeiros_> e.g. you can just do: ActiveRecord::Migration.create_table :table_name do |t| t.integer :colname end
<k_89> yeah .. i'm setting up somehting in rakefile to allow me to create timestamped migrations and all
<apeiros_> it will immediatly run the migration
mdszy has joined #ruby
<apeiros_> you can also just copy the ones from rails…
<k_89> and run them via a rake command
<k_89> oh
<k_89> :P, nah
<apeiros_> all you probably have to exchange is the dependencies of the tasks…
<k_89> i sorta despise rails :P
<k_89> very bloat
ph^ has joined #ruby
<apeiros_> I can understand that
IrishGringo has joined #ruby
ph^_ has joined #ruby
<k_89> even ruby-activerecord i am using cos i can't find a decent lightweight ruby orm which follows activerecord pattern
<k_89> the amount of code in activerecord is a bit too much
<apeiros_> you find rails bloat, yet you want ORM? :)
<apeiros_> looked at sequel?
RainbowDashh has joined #ruby
<k_89> well i come from php world which has a pretty awesome lightweight orm implementation
<k_89> and no , i haven't given sequel a really serious look
wpaulson_ has joined #ruby
kpshek has joined #ruby
<apeiros_> php? lightweight orm?
jameshyde has joined #ruby
<k_89> php's awesome lightweight orm == eloquent(from laravel framework) .. its gonna be released as an independent package soon
<k_89> yup
<apeiros_> no, no, better not start that…
<k_89> hehe
<k_89> ok
wpaulson has quit [Ping timeout: 264 seconds]
wpaulson_ is now known as wpaulson
<k_89> but if you can bear with php do check it out
<apeiros_> I can't.
<k_89> haha
psmolen has quit [Ping timeout: 246 seconds]
<blazes816> $conn = create_a_new_data_base_connection($port, $host, $table_name, $db_name, $pass, $user);
<k_89> oh no
ph^ has quit [Ping timeout: 265 seconds]
<blazes816> sorry, I forgot $user should be &$user
<k_89> we no longer do that
<blazes816> lol, that's good. It's been years since I've done any PHP
ph^ has joined #ruby
qwerxy has quit [Quit: offski]
eph3meral has joined #ruby
<eph3meral> is XCode's LLVM still incapable of compiling ruby from RVM? must I still use osx-gcc-installer?
andrewhl has joined #ruby
<k_89> blazes816, its $pdo = new PDO($dsn, $username, $password, $cofig)
<eph3meral> o.0
<burgestrand> eph3meral: as far as I know at the very least it works fine with 1.9.3
ph^_ has quit [Read error: No route to host]
<burgestrand> was a while since I bothered with any of that though
<eph3meral> burgestrand, any of what now?
<eph3meral> using rvm?
<shevy> ack PHP code
bglusman_ has quit [Remote host closed the connection]
<burgestrand> eph3meral: bothering with llvm/gcc differences, I set up my laptop months ago and I don’t know which route I went, just that it works fine :)
<eph3meral> k
ph^_ has joined #ruby
ph^ has quit [Ping timeout: 245 seconds]
baroquebobcat has joined #ruby
smw_ has joined #ruby
nanderoo has quit [Quit: Leaving.]
baroquebobcat has quit [Client Quit]
psmolen has joined #ruby
shadoi has joined #ruby
kirun has quit [Ping timeout: 252 seconds]
mpereira has quit [Ping timeout: 245 seconds]
cek has quit [Quit: жопа диридай диридиридай]
<EstanislaoStan> k_89, I figured it out I think. What happens if you don't want to supply all the arguments to the parent class? Doesn't super force you to do that?
<k_89> NOPE
<k_89> sry for the caps :P
<k_89> nope it doesn't pass whatever arguments it needs
kpshek has quit []
axl__ has joined #ruby
<EstanislaoStan> Odd, because if I only supply one argument to super my program complains. http://pastie.org/4211915
<k_89> EstanislaoStan, well it'd, cos your super requires two arguments
<k_89> remove that random data thing from Command.initialize
<k_89> Command.initialize's definition
<k_89> and just pass cow to the super
axl_ has quit [Ping timeout: 245 seconds]
axl__ is now known as axl_
Ontolog has joined #ruby
<apeiros_> k_89: Command#initialize
<apeiros_> we use # to denote instance methods
<k_89> ok
hoelzro|away is now known as hoelzro
<k_89> i was about to write Command::initialize :P
hoelzro is now known as hoelzro|away
daxe has joined #ruby
billiamii has quit [Read error: Connection reset by peer]
billiamii has joined #ruby
<apeiros_> that'd be the notation for class methods
zamn has joined #ruby
<daxe> quit
yoklov has joined #ruby
eph3meral has left #ruby ["Leaving"]
daxe has quit [Client Quit]
<zamn> hey what is that one method that allows you to split up a file by line segments? I can't remember the specific occasion but at the time I was doing a counter-based traverse of a file and someone told me to use a method to do it :p
<king313> I always though that I like girls. This week I've been meeting Ruby. I was wrong.
<k_89> zaargy, File.new('filename').split("\n") ??
<k_89> oh
<k_89> by line segments
<k_89> sorry
<k_89> and the wrong name too
<k_89> ah
<zamn> for exmaple i have a file that has 3 lines, 2 of which i care about and a newline seperating it from other content
itnomad has joined #ruby
<zamn> so instead of using a counter and incrementing it to 2 and then resetting it
dekroning has joined #ruby
<zamn> what can i do
<EstanislaoStan> But if I remove the arguement from Command#initialize I can't pass that argument to it when I just working with the command class. So super requires all of the arguments in the parent class? So if I want to supply only some of the values I'd just have to set default values for all of the parent class arguments, right?
banisterfiend has quit [Read error: Connection reset by peer]
<k_89> EstanislaoStan, why do you want to pass two arguments to Command#initialize
ph^ has joined #ruby
<k_89> if you have to, and need to pass a default from child class, either set the Command#initialize'
<k_89> s second argument as optional by giving it a default
<k_89> or pass a default from each child class
banisterfiend has joined #ruby
ph^_ has quit [Ping timeout: 248 seconds]
renanoronfle has quit [Quit: Leaving...]
<EstanislaoStan> Right, that's what I wanted to know. On a side note, is there a method that lets you add a string to a string inside a variable?
<EstanislaoStan> Nvm.
cdepue has joined #ruby
hoelzro|away is now known as hoelzro
mockra has quit [Remote host closed the connection]
<EstanislaoStan> Just thought of how to do it. Sorry for the noob question. Thanks for your help.
Notimik has joined #ruby
alphabitcity has joined #ruby
<alphabitcity> Hi, anyone know why Webmock is not intercepting this request? The request URI is an exact match. http://pastie.org/4212000
dekroning has quit [Ping timeout: 245 seconds]
cdepue_ has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
habib has joined #ruby
QaDeS has quit [Quit: Ex-Chat]
mwilson_ has quit [Excess Flood]
mwilson_ has joined #ruby
ciopte7 has quit [Quit: ciopte7]
ph^ has quit [Ping timeout: 250 seconds]
mdszy has quit [Quit: bye for now]
ph^ has joined #ruby
berserkr has quit [Quit: Leaving.]
neku is now known as neku|away
habib has quit [Remote host closed the connection]
Notimik has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
bambanx_ has quit [Quit: Saliendo]
workmad3 has quit [Ping timeout: 246 seconds]
zeromodulus has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
ringotwo has joined #ruby
maxok has joined #ruby
neku|away is now known as neku
designated has quit [Ping timeout: 240 seconds]
andrewhl has quit [Remote host closed the connection]
phelps_ has joined #ruby
Tricks has quit [Read error: Connection reset by peer]
Tricks has joined #ruby
friskd has joined #ruby
andrewhl has joined #ruby
kirun has joined #ruby
dnyy has joined #ruby
mwilson_ has quit [Excess Flood]
mwilson_ has joined #ruby
ciopte7 has joined #ruby
Doc_X has quit [Quit: Leaving.]
horrror has joined #ruby
Doc_X has joined #ruby
RomainT has joined #ruby
<RomainT> Hi
EstanislaoStan has quit []
<RomainT> I want to port this little maths program in Python to Ruby https://gist.github.com/287a04bd8af35746cd65
<RomainT> But i'm lost in this Python, especially tuple-things and things from pylab
<Synthead> how can I make OptionParser display the "usage" screen if no options were given?
banisterfiend has quit [Read error: Connection reset by peer]
Ionic` has quit [Ping timeout: 265 seconds]
stepnem has quit [Ping timeout: 248 seconds]
maxok has quit [Quit: Linkinus - http://linkinus.com]
Ionic` has joined #ruby
phelps_ has quit [Remote host closed the connection]
phelps_ has joined #ruby
banisterfiend has joined #ruby
LBRapid has quit [Quit: Computer has gone to sleep.]
pk1001100011 has quit [Ping timeout: 240 seconds]
ksergio has quit [Quit: Leaving]
hoelzro is now known as hoelzro|away
kenyabob has joined #ruby
qwerxy has joined #ruby
<kenyabob> Im coming from php, where I usually just md5 a password before storing it or reading it. What would a rubyist typically use?
PaciFisT1 has quit [Remote host closed the connection]
<apeiros_> kenyabob: a) don't just md5, salt it
PaciFisT has joined #ruby
<apeiros_> b) md5 is considered weak nowadays. consider using a stronger hashing algorithm. I think bcrypt is common now
alphabitcity has left #ruby [#ruby]
<kenyabob> apeiros_: totally, Im not referring to what is best security wise, this is just a playground thing I'm working ion
<blazes816> kenyabob, use bcrypt. it's a hash specifically for password security
<kenyabob> apeiros_: bcrypt, great!
stepnem has joined #ruby
<apeiros_> kenyabob: you may wanna read this: http://bcrypt-ruby.rubyforge.org/files/README.html
<apeiros_> also read the part about salts
<apeiros_> kenyabob: "Im not referring to what is best security wise" - do it right or don't do it at all. and if you don't do it at all, better don't have login data…
wpaulson has joined #ruby
<kenyabob> apeiros_: my question wasn't regarding salting or simply hashing, but rather, what is the function that people use instead of md5 in ruby
<kenyabob> apeiros_: I'm asking for a piece of the process
sepp2k1 has joined #ruby
friskd_ has joined #ruby
<apeiros_> kenyabob: md5 is a common algorithm, of course it exists in ruby too…
<apeiros_> we don't use it because it's outdated.
<apeiros_> and you shouldn't use it in php anymore either.
<kenyabob> apeiros_: crypt looks perfect,thank you again, Ill make sure to look at the salting stuff
sepp2k has quit [Ping timeout: 264 seconds]
internet_user has joined #ruby
friskd has quit [Ping timeout: 244 seconds]
friskd_ is now known as friskd
<apeiros_> nitpicking, I know, but crypt exists too, and crypt != bcrypt
<kenyabob> apeiros_: that was a typo on my part, my apologies
stephenjudkins has joined #ruby
<kenyabob> apeiros_: I understood the gem you referred me to
<burgestrand> kenyabob: it’s a lot to read, but it’s well-written and teaches you pretty much all you need to know
<kenyabob> burgestrand: thanks!
davidw has joined #ruby
mroth has joined #ruby
davidw is now known as Guest16542
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
banisterfiend has quit [Remote host closed the connection]
banisterfiend has joined #ruby
mwilson_ has quit [Excess Flood]
jarred has joined #ruby
mwilson_ has joined #ruby
ph^ has quit [Remote host closed the connection]
xnm has quit [Read error: Connection reset by peer]
neku is now known as neku|away
fbernier has joined #ruby
gmci has quit [Ping timeout: 252 seconds]
pk1001100011 has joined #ruby
mvangala has joined #ruby
mengu has joined #ruby
zeromodulus has quit [Remote host closed the connection]
workmad3 has joined #ruby
gmci has joined #ruby
banisterfiend has quit [Ping timeout: 255 seconds]
silentpost has joined #ruby
Gavilan has joined #ruby
stephenjudkins has quit [Read error: Connection reset by peer]
kenyabob has quit [Quit: kenyabob]
Niamkik has joined #ruby
mvangala has quit [Remote host closed the connection]
adamkittelson has quit [Remote host closed the connection]
RainbowDashh has quit [Quit: SLEEP MODE. I NEED A MORE CREATIVE MESSAGE FOR MY DUMB LID CLOSING.]
designated has joined #ruby
deco has joined #ruby
mdszy has joined #ruby
digitalcakestudi has quit [Ping timeout: 246 seconds]
<shevy> dumdedum
<shevy> I miss xchat
g0bl1n has quit [Ping timeout: 240 seconds]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
designated has quit [Client Quit]
emanu has quit [Quit: emanu]
silentpost has quit [Ping timeout: 240 seconds]
<blazes816> shevy: what are you using? *sent from my xchat*
Goles has quit [Quit: Computer has gone to sleep.]
designated has joined #ruby
RainbowDashh has joined #ruby
<Gneiss> shevy: what do you mean you miss it?
<Gneiss> Just get it.
<Gneiss> >xchat on the mac app store even
<Gneiss> ]
carloslopes has quit [Quit: Leaving.]
<shevy> weechat right now
<shevy> using IRC feels completely different right now :( dont like it much at all
<shevy> all this stupid ctrl+n to switch to another channel is annoying
<Gneiss> hahaha
ixti has joined #ruby
davedevelopment has joined #ruby
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<shevy> it really never occured to me before... but this is one of the few areas where I actually like a mouse more
<Gneiss> LOL
<dcope> irssi > *
<dcope> irc in the shell is great
<Gneiss> Actually, I've never used irssi
notjohn has quit [Quit: notjohn]
<Gneiss> brew install irssi...
Morkel has quit [Quit: Morkel]
<Gneiss> make install....
RomainT has left #ruby [#ruby]
<shevy> hmm how do you switch to other channel buffers in irssi?
<zamn> shevy: use irssi
<zamn> alt + channel number
<deco> shevy: escape + 1-9
silentpost has joined #ruby
<zamn> or alt + arrow
<zamn> weechat sux
deco is now known as forlan
forlan has left #ruby [#ruby]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
<shevy> feels all a bit like
<shevy> vim...
atmosx has joined #ruby
goraxe has quit [Read error: Connection reset by peer]
joshman_ has quit [Quit: Computer has gone to sleep.]
nachtwandler has quit [Ping timeout: 244 seconds]
goraxe has joined #ruby
<sernin> ...nothing wrong with that
<Gneiss> vim <3
<Gneiss> I've been using macvim since I got this machine
<Gneiss> and I'm not gonna lie
<sernin> if it was emacs, it'd be ctrl-shift-meta-esc-0-shift-n-e-x-t to change windows
<Gneiss> the OS X bindings are kinda useful
<shevy> ctr+k to control the kitchen
* sernin loves a good vim/emacs "debate"
<zamn> never got into emacs
<zamn> just started off the bat with vim
<zamn> loved it ever since
<Gneiss> LISP SUCKS. EMACS IS GAY. BLARGH BLAH ASD
<Gneiss> I tried both
<Gneiss> vim stuck :P
d34th4ck3r has joined #ruby
<zamn> i see key combinations to do shit
<zamn> and i get scared
<sernin> nerdcommenter is the best thing since sliced bread. as is surround.vim
<Gneiss> Mainly because I DO actually hate using lisp. ever.
<Gneiss> surround.vim <3
fridim_ has quit [Remote host closed the connection]
<shevy> lisp is indeed annoying
<atmosx> emacs is an operating system
<atmosx> don't get fooled by the editor skin
billiamii has quit [Ping timeout: 244 seconds]
headius has quit [Quit: headius]
andrewhl has quit [Remote host closed the connection]
<Gneiss> I see we found the emacs user in the channel xD
<shevy> haha
ringotwo has quit [Remote host closed the connection]
<shevy> well it is better than GNU hurd
billiamii has joined #ruby
<atmosx> nah I'm used to vim :-P
<atmosx> shevy: yeah, better than minix also
<Gneiss> LOL nevermind
Tricks has quit [Quit: No Ping reply in 180 seconds.]
<Gneiss> any emacs guys here?
Tricks has joined #ruby
<Gneiss> Can we all agree that emacs is a better OS than windows ME.
<barefoot> lol
ringotwo has joined #ruby
tdmackey has quit [Ping timeout: 265 seconds]
<barefoot> course even windows 3.1.1 > ME
fayimora has joined #ruby
xclite has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
horrror has quit [Quit: horrror]
silentpost has quit [Ping timeout: 255 seconds]
<zamn> holy biscuit surround.vim is amazing
khakimov has joined #ruby
<benwoody> has anyone used janus with vim?
tommyvyo has joined #ruby
elhu has joined #ruby
itnomad has quit [Quit: Leaving]
billy_ran_away has quit []
yoklov has quit [Quit: computer sleeping]
elhu has quit [Client Quit]
apeiros_ has quit [Remote host closed the connection]
stephenjudkins has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
ringotwo_ has joined #ruby
<Gneiss> benwoody: is that the thing that comes with a bunch of plugins?
<sernin> Nah. I have a long and complicated vimrc of my own
hunglin has quit [Quit: Leaving.]
<Gneiss> and zamn, holy biscuits indeed
opus has joined #ruby
<zamn> ive never known about that until know Gneiss heh
<zamn> i never researched vim plugins :p
chienpo has quit [Quit: Leaving.]
workmad3 has quit [Ping timeout: 252 seconds]
<Gneiss> hahaha
<zamn> recently been finding good ones
<Gneiss> NERDTree
<zamn> i got nerdtree
<zamn> yeah
<zamn> dont know how to use it though haha
<Gneiss> is also awesome
<benwoody> nerdtree is nice
robbyoconnor has joined #ruby
<Gneiss> ummm
<Gneiss> :NERDTree
<Gneiss> :3
ringotwo has quit [Ping timeout: 265 seconds]
<Gneiss> " Toggle NERDTree
<Gneiss> " fn-f2 on OS X
<Gneiss> map <F2> :NERDTreeToggle<CR>
<Gneiss> put that in your vimrc
<Gneiss> zamn: ^
khakimov has quit [Ping timeout: 246 seconds]
<zamn> ok
<zamn> thanks
<Gneiss> np
<Gneiss> Oh, and pathogen.vim
<zamn> yera i got that also
<zamn> its nice
jarray52 has joined #ruby
<Gneiss> kk
<zamn> pathogen#infect()
<opus> I'm a fan of Vundle, ever messed with it?
<zamn> nope
<Gneiss> I have actually
<Gneiss> for like a day
<Gneiss> with a new machine
<opus> Still prefer pathogen?
qwerxy has quit [Quit: offski]
blacktulip has quit [Remote host closed the connection]
<Gneiss> Idk what really happened.
<zamn> thats nice
<Gneiss> I smoked a buttload of weed
<blazes816> he must if he got read of that machine so quick
mpereira has joined #ruby
yoklov has joined #ruby
<sernin> I'm a pathogen.vim advocate. Also, this. http://pastie.org/4212397
<Gneiss> So I ended up deleting ~/.vim
<opus> lol, I find it much simpler. Also really easy to setup a new machine.
<Gneiss> for some reason idk
<opus> To be honest though I never spent to much time with pathogen though
zeromodulus has joined #ruby
<sernin> Not much to 'do' with pathogen.
khakimov has joined #ruby
<sernin> I keep all my vim stuff from git as submodules in a dotfiles repo
<Gneiss> ^
<sernin> updates are as simple as pull and git submodule update --init
JustinCampbell has quit [Remote host closed the connection]
<atmosx> I keep then on dropbox an ln -sf
<opus> Fair enough, I keep the my vundle config in a repo then just run vundle update
alexim has joined #ruby
<atmosx> s/then/them
<Synthead> why doesn't this work? http://codepad.org/sy4ATiC1
<Gneiss> maybe I'll test vundle some more...
<Gneiss> hmmm
fbernier has quit [Ping timeout: 244 seconds]
<atmosx> why is #freebsd invite-only?
<atmosx> wtf..
<zamn> because its free
vlad_starkov has quit [Remote host closed the connection]
<Gneiss> >nested methods
<Gneiss> Synthead: why are you nesting methods?
vlad_starkov has joined #ruby
<Synthead> Gneiss: why not?
jsilver has joined #ruby
<jsilver> hello
<Gneiss> errr
<Gneiss> Good point, but still, it's a really uncommon patter
workmad3 has joined #ruby
<Gneiss> *pattern
<Gneiss> **design patter
<Gneiss> ********design pattern
wallerdev_ has joined #ruby
wallerdev has quit [Read error: Connection reset by peer]
wallerdev_ is now known as wallerdev
<Synthead> Gneiss: hah. how would you do it?
<jsilver> what is easiest way turn to this hash into an array with this order: {:file1 => [:lib1, :lib2, :lib3], :file2 => [:lib4, :lib5, :lib6]} into an array with this order [:lib1, :lib2, :lib3, :file1, :lib4, :lib5, :lib6, :file2]
ciopte7 has quit [Quit: ciopte7]
chson has quit [Remote host closed the connection]
<Synthead> jsilver: what do you mean turn "into an array"? are you looking to lose the hash indexes?
<Gneiss> I would use like, a nested class
<Gneiss> you would literally have to change one word
<jsilver> no i am tryign to use it to maintain an order while generating data from an AST
<Gneiss> and it would probably work
<Gneiss> errr
<Gneiss> okay
<Gneiss> jsilver: gimme a sec :P
<Synthead> Gneiss: what would that looks like? class Display? Then use Duration::Display.start?
<jsilver> sure
hunglin has joined #ruby
wookiehangover has quit [Ping timeout: 255 seconds]
<Synthead> Gneiss: or (lowercase) display?
RainbowDashh is now known as Discord
<Gneiss> okay, that change that too
<Gneiss> Yeah like that
Discord is now known as Discordd
johnlcox has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Ping timeout: 245 seconds]
<Synthead> Gneiss: lowercase?
<Gneiss> Uppercase is common convention
<Synthead> Gneiss: right on :) will try it, thanks!
Discordd is now known as RainbowDashh
Stumilowy has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
<Synthead> Gneiss: (irb):87: class/module name must be CONSTANT ... will use capital ;)
<Gneiss> Synthead: lemme know how it goes :)
wvms has joined #ruby
<Synthead> Gneiss: (I've defined Settings previously here) http://codepad.org/4DTw2bPE
yoklov has quit [Quit: computer sleeping]
qwerxy has joined #ruby
<Gneiss> jsilver: your solution is imminent
vlad_starkov has joined #ruby
<Gneiss> (I'm working on something else too lol)
<jsilver> i am close to it as well
<jsilver> id love to see your answer too tho
<Gneiss> okay
<Gneiss> a = Array.new
<Gneiss> errr
<Gneiss> I'll put it on gist
vlad_starkov has quit [Remote host closed the connection]
R_Macy has joined #ruby
jarred has quit [Quit: jarred]
bluenemo has quit [Ping timeout: 264 seconds]
<Stumilowy> someone using Eclipse as Ruby editor?
wookiehangover has joined #ruby
theRoUS has quit [Remote host closed the connection]
minijupe has quit [Quit: minijupe]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<jsilver> test.map do |i| i.reverse.flatten end.flatten
<jsilver> => {:file=>[:lib1, :lib2, :lib3], :file2=>[:lib4, :lib5, :lib6]}
<jsilver> => [:lib1, :lib2, :lib3, :file, :lib4, :lib5, :lib6, :file2]
<Gneiss> or that lol
<Gneiss> (Sorry I took so long, I'm cleaning up lol)
<jsilver> nice one
<jsilver> !!
<jsilver> no prob
<Gneiss> a.push *val
<Gneiss> is the splat operator
<Gneiss> if you've ever used it before
qwerxy has quit [Quit: offski]
bbttxu has quit [Quit: bbttxu]
<Gneiss> (I actually didn't know about it for a while)
<Gneiss> lol
<Mon_Ouie> a.concat val
tvw has quit [Remote host closed the connection]
<jsilver> right splat operator expands an array into args?
havenn has joined #ruby
<Gneiss> yup
<jsilver> rare-ish
oooPaul has quit [Quit: Ciao for now!]
<jsilver> yea
<Gneiss> It is :/
<jsilver> whats your output
<Gneiss> when I first saw it
<Gneiss> I was like
<jsilver> [:lib1, :lib2, :lib3, :file, :lib4, :lib5, :lib6, :file2]
<jsilver> ?
<Gneiss> IS THAT A POINTER WHAT THE FUCK
<jsilver> same here
<Gneiss> => [:lib1, :lib2, :lib3, :file1, :lib4, :lib5, :lib6, :file2]
<jsilver> n1
Alien_Elite has joined #ruby
Alien_Elite has quit [Client Quit]
srji has quit [Ping timeout: 264 seconds]
ebanoid has quit []
headius has joined #ruby
solidoodlesuppor has quit [Quit: ChatZilla 0.9.88.2 [Firefox 13.0.1/20120614114901]]
dhruvasagar has quit [Ping timeout: 245 seconds]
yoklov has joined #ruby
PaciFisT has quit [Quit: Leaving.]
atmosx has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
ben_alman has quit [Excess Flood]
chomp has quit [Quit: Leaving]
sebastorama has quit [Quit: :D]
jlogsdon has quit [Remote host closed the connection]
Gneiss has quit [Quit: Gneiss]
nathaniele has joined #ruby
jumpingcloud has quit [Ping timeout: 245 seconds]
keppy has joined #ruby
wobr has joined #ruby
arturas has quit [Remote host closed the connection]
ben_alman has joined #ruby
<Stumilowy> which ruby editor for windows? Notepad++ has poor syntax highlighting
<shevy> geany perhaps
jumpingcloud has joined #ruby
wpaulson has joined #ruby
erichmenge has quit [Quit: erichmenge]
zamn has quit [Quit: leaving]
<Stumilowy> ok i will try, thx
<k_89> Stumilowy, sublime text 2!!!
ronyrus has joined #ruby
yoklov has quit [Quit: computer sleeping]
mpereira has quit [Ping timeout: 250 seconds]
* tommylommykins wonders why it's not fashionable for such editors to do actual language parsing
Gneiss has joined #ruby
<tommylommykins> Sublime can't...
<josefig> ehem, vim ;>
PaciFisT has joined #ruby
PaciFisT has quit [Client Quit]
<josefig> vim rules!
<mdszy> Vim ,3
<mdszy> *<3
<tommylommykins> ...Does Vim fully parse ruby source?
<mdszy> tommylommykins: what do you mean?
<mdszy> like to find syntax errors?
<tommylommykins> Yeah
dross has quit [Ping timeout: 246 seconds]
<mdszy> there's a plugin, syntastic.vim
<mdszy> works for a bunch of languages
<Gneiss> hmm
<Gneiss> I've never seen that before
ghanima has quit [Quit: Leaving.]
* tommylommykins is still happy using Netbeans for ruby :s
<mdszy> I don't use it right now, but I have in the past
<Gneiss> ohhh
<Gneiss> It's by the nerdtree guy :P
anothervenue has joined #ruby
mdszy has quit [Quit: foods]
<Stumilowy> mdszy how about vim and bigger projects?
jsime has quit [Quit: Leaving]
internet_user has quit [Remote host closed the connection]
enriclluelles has joined #ruby
balki_ has joined #ruby
alanp has joined #ruby
<Stumilowy> k_89 i will try it ty
morf has joined #ruby
DrShoggoth has quit [Quit: Leaving]
billiamii has quit [Read error: Connection reset by peer]
alanp_ has quit [Ping timeout: 244 seconds]
balki has quit [Ping timeout: 244 seconds]
<Stumilowy> k89 59$ is a lot of money
<k_89> Sublime looks really good
<k_89> beta is free
<k_89> not beta
<k_89> but the demo version or whatever
<k_89> and you dont ever need to buy it
yxhuvud has quit [Ping timeout: 246 seconds]
<k_89> i started using Sublime text 2 because it looks so damn good, the cursor blinking is fadeIn/fadeOut instead of show/hide, the scrolling is smooth, etc, etc, it was very polished, however with its package manager and all the handy shortcuts, its quite powerful tooo
<k_89> used to stick with gedit before ST2
<keyvan> you'll end up buying it :] i did after like... 7 or 8 months....
<tommylommykins> ...just to get rid of the nag?
<k_89> no, cos its really good
ixti has quit [Quit: So Long, and Thanks for All the Fish!]
<k_89> i am inclined towards buying a license too
<k_89> the dude made a 'beautiful' text editor (yes i am calling a text editor beautiful :P)
jarray52 has left #ruby [#ruby]
sbanwart has quit [Ping timeout: 245 seconds]
<Stumilowy> interesting ;)
<tommylommykins> you ccouldn't even write a full language parser for sublime text if you wanted to :(
<k_89> i dont know what i'd do with a full language parser for ST2 :P ... run the language in its console??
workmad3 has quit [Ping timeout: 240 seconds]
<tommylommykins> You could find out that you missed an end or a ) or a , before you tried running it :P
horrror has joined #ruby
* tommylommykins <3 being told he's wrong quickly
hadees has quit [Quit: hadees]
nathaniele is now known as nathaniel
nathaniel is now known as Guest1640
Guest1640 is now known as nathaniele
ryanf has joined #ruby
workmad3 has joined #ruby
<Stumilowy> k_89 your have right, I just launched it and i think it will be now my main editor
<k_89> :D
hunglin has quit [Ping timeout: 244 seconds]
Moon__ has quit [Ping timeout: 264 seconds]
mdszy has joined #ruby
<k_89> Stumilowy, a handy shortcut i use all the time: Ctrl+P .. to quickly switch to a file from your project directories
<Stumilowy> k_89 has a tree view?
<k_89> yup
<k_89> add in as many folders as you want
elhu has joined #ruby
<k_89> project->add folder
neku|away is now known as neku
elhu has quit [Client Quit]
<shevy> ack
<shevy> php
jfoley has quit [Quit: jfoley]
<k_89> oh damn
yxhuvud has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
<shevy> k_89: did you try geany as editor yet?
wpaulson has quit [Ping timeout: 246 seconds]
<k_89> yeah
<k_89> used to use it before gedit
<k_89> it works, but nowhere near ST2
itnomad has joined #ruby
<shevy> I see
itnomad has quit [Client Quit]
wobr has quit [Quit: Leaving.]
piotr_ has quit [Remote host closed the connection]
sailias has joined #ruby
chienpo has joined #ruby
workmad3 has joined #ruby
adamkittelson has joined #ruby
<lectrick> So I just noticed that the Cloud9 IDE lets you clone a git repo and run Ruby scripts (although it seems to use 1.8.x by default, ewww), all in the browser (and theoretically with collab)
zeromodulus has quit [Remote host closed the connection]
Tricks has quit [Read error: Connection reset by peer]
Tricks has joined #ruby
vitoravelino`afk is now known as vitoravelino
jarred has joined #ruby
yoklov has joined #ruby
<Stumilowy> k_89 sublime can highlight "do" with his end?
<k_89> heh .. i usually code php .. just saw that :P
<k_89> php and js
<k_89> btw, arent those lines enough ??
mdszy has quit [Quit: bye for now]
<tommylommykins> Stumilowy: As a rule, sublime can't do bracket matching, apart from []{}()
dv310p3r has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
choffstein has quit [Remote host closed the connection]
horrror has quit [Quit: horrror]
daed has quit [Quit: Lost terminal]
phelps_ has quit [Remote host closed the connection]
phelps_ has joined #ruby
Guest16542 has quit [Read error: Operation timed out]
bo7m has joined #ruby
<bo7m> hey all! I've just finished writing my first ruby gem and now thinking about gem's name. this gem is a simple CLI tool that translates from one language to another. please help
Targen has quit [Quit: No Ping reply in 180 seconds.]
<erikwb> bo7m: translate
<erikwb> :)
Targen has joined #ruby
shvelo has joined #ruby
shvelo has quit [Changing host]
shvelo has joined #ruby
Hunner has quit [Remote host closed the connection]
Seventoes has quit [Ping timeout: 264 seconds]
<shvelo> ahoy!
ViperMaul has quit [Ping timeout: 248 seconds]
Rizzle has joined #ruby
uris has quit [Quit: leaving]
<gogiel> bo7m: your problem seems to be really tough ;)
<k_89> bo7m, babel_fish
havenn has quit [Remote host closed the connection]
ViperMaul has joined #ruby
kvirani has quit [Remote host closed the connection]
<bo7m> I want more simple :)
<k_89> babel_fish is simple ... and clever ;)
Rizzle has quit [Ping timeout: 244 seconds]
<bo7m> k_89: I wanted "t"
<k_89> haha
<gogiel> bo7m: 't' is taken
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
ViperMaul has quit [Remote host closed the connection]
<bo7m> gogiel: yup..
Rizzle has joined #ruby
<gogiel> bo7m: 'tr'. greate meaningless "simple" name
fbernier has joined #ruby
emanu has joined #ruby
vlad_starkov has joined #ruby
emanu has quit [Client Quit]
friskd has quit [Quit: friskd]
<shvelo> I've created my first gem
R_Macy has quit [Quit: Leaving...]
axl_ has quit [Quit: axl_]
<shvelo> it's domr
<shevy> yay!
<shevy> shvely!
<shvelo> lol
<shevy> I was lazy... I wanted to create "cookbooks" gem... but did not today :(
<shvelo> I've seen a Python script dom that searchs for available domain names, so i created domr in Ruby that does exactly the same
kyktommy has joined #ruby
codezombie has quit [Quit: Linkinus - http://linkinus.com]
<Ionic`> uhm
<Ionic`> wth
<bo7m> gogiel: thx, I'll think about it. writing project isn't as hard as thinking about it's name
<Ionic`> if can be used as an modifer, rigt?
phelps_ has quit [Remote host closed the connection]
phelps_ has joined #ruby
<Ionic`> but...
<Ionic`> it seels like ruby doesn't like a construct like that
mpereira has joined #ruby
umttumt has joined #ruby
neku has quit [Quit: Linkinus - http://linkinus.com]
vlad_starkov has quit [Ping timeout: 245 seconds]
<Ionic`> seems like in that case, ruby is interpreting the else as part of the if postfix modifier
shadoi has quit [Quit: Leaving.]
<Ionic`> do I have to specify blocks to solve this ambiguity?
<gogiel> Ionic`: because ruby is not whitespace sensitive
<gogiel> Ionic`: you can add a line of code after second if (for example nil)
mikeycgto has joined #ruby
jgrevich has quit [Read error: Connection reset by peer]
<Ionic`> gogiel: yeah, or that
<Ionic`> or maybe { } blocks?
<gogiel> just put if before asdf...
anothervenue has quit [Quit: WeeChat 0.3.7]
jgrevich has joined #ruby
Seventoes has joined #ruby
nadirvardar has quit [Quit: Computer has gone to sleep.]
sixtycakes has quit [Ping timeout: 244 seconds]
<Ionic`> hmmm
friskd has joined #ruby
bo7m has quit [Ping timeout: 245 seconds]
friskd has quit [Client Quit]
carpediembaby has quit [Ping timeout: 245 seconds]
<Ionic`> or maybe that's not even the problem... mmh
friskd has joined #ruby
friskd has quit [Remote host closed the connection]
fbernier has quit [Ping timeout: 252 seconds]
friskd has joined #ruby
<Ionic`> http://pastie.org/private/hpfs9x2amnmwgbcpa3znag seems like the interpreter is missing two "end"s, but I don't see why/where
RegEchse has quit [Quit: <3 WeeChat (v0.3.8-rc2)]
seanstickle has joined #ruby
<gogiel> Ionic`: ruby doesn't have -- and ++ operators
<Ionic`> oh
<opus> Yeah, gotta stick with the good old += -=
<gogiel> not sure why but it treated you unless as block
<Ionic`> indeed, huh
whowantstolivefo has joined #ruby
<whowantstolivefo> hi, iam newbie, i try to make a blog page create stuff and when i go localhost it says me "Routing Erroruninitialized constant WelcomeControllerTry running rake routes for more information on available routes." please help
beneggett has joined #ruby
<Ionic`> well ok, -=/+= 1 works too
<gogiel> i think it was interpeted as newindex - - [newline] unless ... end
<Ionic`> aaand there we go
<Ionic`> yeah
RainbowDashh has quit [Quit: SLEEP MODE. I NEED A MORE CREATIVE MESSAGE FOR MY DUMB LID CLOSING.]
<shevy> when I have an array = [1,2,3,4,5,6,8] how can I do this: "return 3 highest entries, as array, from this array" ?
k_89 has quit [Ping timeout: 245 seconds]
<Ionic`> array.max(3) maybe?
khakimov has quit [Quit: Computer has gone to sleep.]
baroquebobcat has joined #ruby
<Ionic`> hm
<Ionic`> ok,
stkowski has quit [Quit: stkowski]
Goles has joined #ruby
<Spooner> [3, 4, 2, 1].sort.last(3) # Not perhaps best...
<gogiel> shevy: array.sort.take(3)
<Spooner> gogiel : That will get the lowest 3.
jameshyde has quit [Ping timeout: 245 seconds]
<gogiel> Spooner: yeah, your version works
baroquebobcat has quit [Client Quit]
king313 has quit [Quit: .]
bfig has joined #ruby
dbgster has joined #ruby
ciopte7 has joined #ruby
<Paradox> huehuehue
umttumt has quit [Remote host closed the connection]
Criztian has joined #ruby
kenperkins has quit [Read error: Operation timed out]
stephenjudkins has quit [Quit: stephenjudkins]
cakehero has quit [Quit: Computer has gone to sleep.]
trend_ has joined #ruby
TheShadowFog has joined #ruby
jsilver has quit [Remote host closed the connection]
headius has quit [Quit: headius]
bowlowni has quit [Remote host closed the connection]
Stumilowy has quit [Ping timeout: 245 seconds]
k_89 has joined #ruby
SQLStud has quit [Read error: Connection reset by peer]
fridim_ has joined #ruby
tds has quit [Quit: tds]
benson has quit [Quit: Leaving]
williamcotton has quit [Quit: williamcotton]
cdepue_ has joined #ruby
Rizzle has quit [Ping timeout: 246 seconds]
umttumt has joined #ruby
Criztian has quit [Remote host closed the connection]
g0bl1n has joined #ruby
chienpo has left #ruby [#ruby]
headius has joined #ruby
cdepue has quit [Ping timeout: 264 seconds]
RainbowDashh has joined #ruby
lorandi_ has joined #ruby
<shevy> oh
<shevy> that is clever actually :) thanks
robbyoconnor has quit [Max SendQ exceeded]
robbyoconnor has joined #ruby
ryanf_ has joined #ruby
<Ionic`> uhm
<Ionic`> can't I call private methods from public ones?!
lorandi has quit [Ping timeout: 252 seconds]
friskd has quit [Quit: friskd]
<gogiel> Ionic`: show code
cdepue_ has quit [Remote host closed the connection]
octarine has quit [Quit: BOOHOO]
brianpWins has quit [Quit: brianpWins]
manizzle has quit [Remote host closed the connection]
<Ionic`> hmm
<Ionic`> wait
<Ionic`> seems like I can't access them via self.
opus has quit [Quit:]
<Ionic`> not even within the same object
<gogiel> Ionic`: you are doing something wrong
ryanf has quit [Ping timeout: 265 seconds]
<Ionic`> gogiel: probably
<Ionic`> http://git.ionic.de/website.git/blob/HEAD:/configparser/configparser.rb code, error:http://pastie.org/private/lyxwrhahf2vvpp1ftxlq9g
zemanel has joined #ruby
umttumt has quit [Remote host closed the connection]
<Ionic`> yeah...
<Ionic`> self.commented? doesn't work, but commented? does
khakimov has joined #ruby
<Ionic`> seems to be true for any private method
ramblex has quit [Quit: ramblex]
cdepue has joined #ruby
cdepue has quit [Read error: Connection reset by peer]
choffstein has joined #ruby
<ryanf_> yes, that is the definition of a private method
<Paradox> Anyone used RailsAdmin and know if it has a problem with ActiveRecords that have no... meaningful columns? The table has an id column and created/updated timestamps, but nothing else. Already googled it.
<ryanf_> it can only be called with an implicit receiver
<Ionic`> ryanf_: didn't know that until now
<gogiel> Ionic`: yes. calling method using self. is like calling method of object "self". it's like you called your method outside class
cdepue has joined #ruby
<Ionic`> gogiel: yeah... well, ruby-specific :)
kn330 has quit [Ping timeout: 244 seconds]
<gogiel> in c++ it will work AFAIR
<Ionic`> or java or anywhere else
Tomasso has quit [Ping timeout: 246 seconds]
<gogiel> like class MyClass { void method(MyClass o) { o.private_method(); } }
<Ionic`> nah, even simplier
<Ionic`> this.private_method();
choffstein has quit [Remote host closed the connection]
banisterfiend has joined #ruby
Tricks has quit [Read error: Connection reset by peer]
<Spooner> Generally we rarely use self. except in the case of 'self.fish = value' (where 'fish = value' would create a local, not set the attribute).
choffstein has joined #ruby
<gogiel> Ionic`: yes but my example show that in c++ you can call private method of other object of same class. AFAIR it will work
<Ionic`> gogiel: uhm it shouldn't... maybe protected
Tricks has joined #ruby
<Spooner> Isn't there a specific "friend" relationship to make that work? (my C++ is even more hazy, I think).
kn330 has joined #ruby
<Ionic`> C++ does have "friend", but I'm not sure what it does
randomautomator has quit [Remote host closed the connection]
emmanuelux has joined #ruby