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
olrrai_ has joined #ruby
<MrGando> banister_ also , why would you say it's almost non-idiomatic to use them (and/or) ... just curious :)
Sheehan has joined #ruby
sv-- has joined #ruby
emmanuelux has joined #ruby
<banister_> MrGando: because people dont use it :)
<MrGando> banister_ but why are they part of the language then ?
emmanuelux has quit [Remote host closed the connection]
olrrai__ has joined #ruby
olrrai__ has quit [Read error: Connection reset by peer]
<banister_> MrGando: im sure every language has things that aren't used often, ruby has more than just and/or ,too
g0bl1n has joined #ruby
brianpWins has joined #ruby
<banister_> MrGando: @@vars aren't used much either
<banister_> MrGando: and i'm sure c++ has a tonne
<MrGando> banister_ Yeah, I have a C++ background ( gamedev )
<Spooner> banister_ : I often use and/or - just don't like &&/||.
theRoUS has joined #ruby
<banister_> Spooner: yeah butyou're def. in the minority afaict
<MrGando> Spooner banister_ was telling me that and/or don't follow same precedence order than && ||
<Spooner> banister_ : @@vars are a bit diffferent, since they have been replaced with something that is massively better (class instance variables).
<Spooner> MrGando : Indeed they don't.
<Spooner> banister_ : Yes, I have yet to see other people using and/or, but I don't read a massive amount of other people's code.
Sheehan has quit [Client Quit]
Sheehan has joined #ruby
emmanuelux has joined #ruby
<MrGando> Spooner I was wondering what are they using in a big project like rails , I haven't checked out myself ... but I would tend to think they have some coding standards there ?
theRoUS is now known as theRoUS|home
<banister_> MrGando: srsly why is this such a big issue for u, time to move on... ;)
luckyruby has quit [Remote host closed the connection]
<maccosmo> they use almost everything what's possible in ruby
<maccosmo> sometimes it's an esthetic decision
minijupe has joined #ruby
werdnativ has quit [Ping timeout: 248 seconds]
pdtpatrick has quit [Quit: pdtpatrick]
<maccosmo> when you use loops in a language you can choose between different constructs and sometimes it doesn't matter what you choose.
<maccosmo> some prefer each and the other prefer for .. in
jenrzzz-mac has joined #ruby
xaq has quit [Remote host closed the connection]
<MrGando> banister_ nah , it's not ... I just wanted to know :)
cbuxton has quit [Quit: Leaving.]
Guest52008 has quit [Quit: Leaving]
minijupe has quit [Quit: minijupe]
jenrzzz-mac has quit [Read error: Connection reset by peer]
tintin has joined #ruby
cbuxton has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
<tintin> anyone?
<Spooner> MrGando: If you want to be "normal", just use &&||!
jenrzzz-mac has joined #ruby
<davidcelis> MrGando: Because 'and' and 'or' still have their use.
<davidcelis> MrGando: Sure, don't use them in boolean conditional statements, but they're nice to evaluate multiple expressions in one line.
seanstickle has joined #ruby
<MrGando> davidcelis I see, could you give me an example of proper and/or ussage ?
<davidcelis> MrGando: render_404 and return
tintin has left #ruby [#ruby]
khakimov has quit [Quit: Computer has gone to sleep.]
<MrGando> davidcelis ok , I understand
<MrGando> davidcelis that's cool :)
sleetdrop has joined #ruby
khakimov has joined #ruby
khakimov has quit [Client Quit]
Ripp__ has quit [Remote host closed the connection]
wmoxam has joined #ruby
cbuxton has quit [Quit: Leaving.]
looopy has joined #ruby
zinjacoder has joined #ruby
vitor-br has joined #ruby
A124 has joined #ruby
banister_ has quit [Remote host closed the connection]
cryptfu has quit [Quit: Leaving]
mpereira has joined #ruby
roams has joined #ruby
xaq has joined #ruby
albemuth has joined #ruby
fayimora has joined #ruby
kryptek_ has joined #ruby
wmoxam has quit [Ping timeout: 265 seconds]
albemuth has quit [Client Quit]
schickung has quit [Quit: schickung]
kenperkins has quit [Ping timeout: 252 seconds]
sepp2k1 has quit [Remote host closed the connection]
chessguy has quit [Remote host closed the connection]
SegFaultAX|work2 has quit [Quit: Lost terminal]
olrrai has quit [Quit: Saliendo]
olrrai has joined #ruby
nooodl has quit [Ping timeout: 260 seconds]
iocor has quit [Quit: Computer has gone to sleep.]
ringotwo has quit [Ping timeout: 244 seconds]
schickung has joined #ruby
zx has quit [Ping timeout: 244 seconds]
wilmoore has quit [Remote host closed the connection]
TomJ has quit [Quit: TomJ]
olrrai has quit [Quit: Saliendo]
olrrai_ has quit [Quit: Saliendo]
deryl has quit [Quit: deryl]
werdnativ has joined #ruby
savage- has quit [Remote host closed the connection]
luckyruby has joined #ruby
luckyruby has quit [Remote host closed the connection]
luckyruby has joined #ruby
pgentoolt has joined #ruby
pgentoo has quit [Ping timeout: 260 seconds]
savage- has joined #ruby
bigoldrock has quit [Quit: Leaving.]
savage- has quit [Remote host closed the connection]
ZachBeta has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
gurjeet has joined #ruby
<gurjeet> I am installing redmine on a personal machine running on Rackspace.
<gurjeet> I have got it running (CentOS 6.2) but need some help in tweaking it.
<gurjeet> Can someone tell me how to modify apache config so that I can access my redmine installation as mydomain.com/redmine instead of redmine.mydomain.com
maletor has quit [Quit: Computer has gone to sleep.]
zinjacoder has quit [Quit: Peace!]
ZifreCL has joined #ruby
xiaotian has quit [Ping timeout: 244 seconds]
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
pgentoolt has quit [Ping timeout: 245 seconds]
TomJ has quit [Client Quit]
ZachBeta_ has joined #ruby
becom33 has quit [Quit: Leaving]
ephemerian has quit [Quit: Leaving.]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
ZachBeta_ has quit [Client Quit]
ZachBeta has joined #ruby
<shevy> no real idea
ZachBeta has quit [Client Quit]
ZachBeta has joined #ruby
ZachBeta has quit [Client Quit]
azm has joined #ruby
azm has quit [Changing host]
azm has joined #ruby
alexim has quit [Quit: sleep]
gurjeet has quit [Read error: Connection reset by peer]
cbuxton has joined #ruby
ZachBeta_ has joined #ruby
Vainoharhainen has quit [Quit: Leaving...]
ZachBeta_ has quit [Read error: Connection reset by peer]
Spooner has quit [Ping timeout: 260 seconds]
A124 has left #ruby [#ruby]
cryptfu has joined #ruby
mengu has quit [Remote host closed the connection]
rdesfo has left #ruby [#ruby]
cbuxton has quit [Quit: Leaving.]
adamkittelson has joined #ruby
itnomad has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
pdtpatrick has joined #ruby
gurjeet has joined #ruby
moshee has quit [Ping timeout: 260 seconds]
moshee has joined #ruby
robdodson has joined #ruby
gurjeet has quit [Client Quit]
perryh_away is now known as perryh
luckyruby has quit [Remote host closed the connection]
chson has joined #ruby
ZachBeta has joined #ruby
banjara has joined #ruby
chienpo has left #ruby [#ruby]
_tomb has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
xaq has quit [Remote host closed the connection]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
fayimora has quit [Ping timeout: 240 seconds]
Enekoos has quit [Remote host closed the connection]
xaq has joined #ruby
xaq has quit [Remote host closed the connection]
jenrzzz-mac has quit [Quit: jenrzzz-mac]
kenperkins has joined #ruby
Hanmac1 has joined #ruby
deryl has joined #ruby
robdodson has quit [Quit: robdodson]
Hanmac has quit [Ping timeout: 252 seconds]
shevy2 has joined #ruby
perryh is now known as perryh_away
cbuxton has joined #ruby
wilmoore has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
nedbat has joined #ruby
kenperkins has quit [Quit: Computer has gone to sleep.]
<nedbat> if I have a class Foo, and I want to make a list of class instances, as literals, is there a way other than [ Foo.new("a"), Foo.new("b"), etc..] ?
shtirlic_ has joined #ruby
mrdtt has joined #ruby
Markvilla has quit [Quit: Markvilla]
thomas has quit [Read error: Operation timed out]
billiamii has joined #ruby
<bradb> %w(a b c d e f).map { |val| Foo.new(val) } might be a tad more concise
shtirlic has quit [Ping timeout: 246 seconds]
Markvilla has joined #ruby
<bradb> unless the literals have spaces in them, in which case you'd need to use, e.g. ["foo bar", "baz"].map { |v| Foo.new(v) }
thomas has joined #ruby
xaq has joined #ruby
ken_barber1 has joined #ruby
Corey has quit [Read error: Connection reset by peer]
<bradb> you could also write a class method, e.g. Foo.multiple_new, or something, which encapsulates that
iceslice has joined #ruby
ken_barber has quit [Ping timeout: 244 seconds]
<nedbat> bradb: thanks, I actually need a mix of objects in the array: [ Foo.new("a"), Bar.new("b"), Bar.new("c"), ...]
<iceslice> HI
jimeh2 has quit [Ping timeout: 252 seconds]
<iceslice> gem install zookeeper issue with windows 64 bit http://pastebin.com/nWEbDprR
<iceslice> can anyone help
<iceslice> new to ruby
<iceslice> win 7
xaq has quit [Remote host closed the connection]
<iceslice> I have devkit installed
khakimov has joined #ruby
<bradb> nedbat: ah ok
sbanwart has quit [Ping timeout: 245 seconds]
bglusman has quit [Remote host closed the connection]
<nedbat> bradb: no shortcut I guess? The .new is needed in there?
<bradb> is there any test you can do per element to know which class you will want to construct an instance of?
<bradb> nedbat: yeah, .new is needed
<nedbat> bradb: no, the class name is the only thing I've got. ok.
<bradb> ok
<nedbat> i'm an old hand at Python, trying out ruby.
<bradb> you could make Foo("blah") work if you wanted, by defining a function called Foo, but that's writing python in ruby :)
MrGando has quit [Quit: Bye]
<iceslice> bradb nedbat? http://pastebin.com/nWEbDprR
<nedbat> bradb: yeah, I want to learn the right way.
<bradb> iceslice: no idea, sorry
res0nat0r has joined #ruby
josefig_ has joined #ruby
fixl has joined #ruby
LiquidInsect has quit [Remote host closed the connection]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
any-key has quit [Quit: leaving]
ken_barber1 has quit [Remote host closed the connection]
hunglin has joined #ruby
anykey has joined #ruby
anykey is now known as any-key
vitor-br has quit [Ping timeout: 260 seconds]
<iceslice> HELPP gem install zookeeper issue, windows 7 64 bit, new to ruby installed ruby and dev kit, http://pastebin.com/PYvqu9h0
perryh_away is now known as perryh
mfridh has quit [Ping timeout: 252 seconds]
nedbat has left #ruby ["Leaving"]
tomzx_ has joined #ruby
cbuxton has quit [Quit: Leaving.]
bricker88 has quit [Quit: Leaving.]
niklasb has quit [Ping timeout: 240 seconds]
larissa has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
frogstarr78 has quit [Remote host closed the connection]
seanstickle has quit [Quit: seanstickle]
Corey has joined #ruby
kenperkins has joined #ruby
banister_ has joined #ruby
tomb__ has joined #ruby
<banister_> shevy2: you here?
maccosmo has quit [Quit: maccosmo]
ZachBeta has joined #ruby
radic has quit [Ping timeout: 245 seconds]
araujo has quit [Quit: Leaving]
<offby1> ♩♬ drove my shevy2 the levy etc etc♫♪
schickung has quit [Quit: schickung]
<banister_> offby1: hehehehe
<iceslice> banister_ offby1 http://pastebin.com/PYvqu9h0
<banister_> iceslice: stop using windows
<offby1> iceslice: I'm just guessing, but I assume that gem was never written to work on Windows.
<iceslice> offby1 it works fine
<offby1> oh
<iceslice> for like other things
tomzx_ has quit [Ping timeout: 260 seconds]
digitalcakestudi has quit [Quit: Leaving.]
deryl has quit [Quit: off to watch UFC fights then hit bar. Night all]
AlbireoX`Laptop has quit [Remote host closed the connection]
eywu has quit [Quit: Leaving.]
igotnolegs has joined #ruby
pcboy_ has joined #ruby
dfr|work has quit [Remote host closed the connection]
Azure is now known as MrDonut
azm has quit [Ping timeout: 245 seconds]
MrDonut is now known as Azure
g0bl1n has quit [Ping timeout: 252 seconds]
cousine has quit [Remote host closed the connection]
Kunda has joined #ruby
<Kunda> New to Ruby. Just installed the 'chimp' rubygem. how to i run the script once i've installed it ?
stefanp_ has joined #ruby
rossfuhrman has joined #ruby
<Kunda> Once I've installed this ruby gem, how do I run: https://github.com/cyx/chimp/blob/master/README.md ?
xaq has joined #ruby
stefanp has quit [Ping timeout: 265 seconds]
xaq has quit [Remote host closed the connection]
gongura has joined #ruby
<justsee> Kunda you could fire up irb, then require 'chimp' then type the examples in that synopsis to see it working
xaq has joined #ruby
<Kunda> justsee: LoadError: no such file to load -- chimp
sako has joined #ruby
ipoval has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
<banister_> anyone here have experience with vmware?
<banister_> how do i export a vm?
phidev has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
moshee has quit [Remote host closed the connection]
sako has quit [Quit: leaving]
nlc has quit [Remote host closed the connection]
nipra has joined #ruby
ZachBeta has quit [Read error: Connection reset by peer]
CannedCorn has joined #ruby
ipoval has quit [Quit: ipoval]
<CannedCorn> guys is there a rss reader that will let me get the author email
eft has joined #ruby
<Kunda> justsee, looks like i needed to use: require 'rubygems'
<Kunda> but now I have a new issue: http://pastebin.com/ruE9Z08F
ZachBeta has joined #ruby
EstanislaoStan has joined #ruby
thecreators has joined #ruby
<EstanislaoStan> Hi everyone. I was wondering if there was a method that works like split does, except instead of returning an array, it returns a hash.
EstanislaoStan is now known as register
register is now known as Guest17026
Guest17026 is now known as EstanislaoStan
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
minijupe has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
xaq has quit [Remote host closed the connection]
<Kunda> justsee, would i get these errors if I didn't install the 'rake' gem prior to ?
<_br_> banister_: Asking about VMWare in #ruby makes sense yes :)
maletor has joined #ruby
<banister_> _br_: #ruby can support the odd off-topic question :)
<Kunda> _br_: mind taking a look at the 2nd pastebin link I posted ?
rossfuhrman has quit [Ping timeout: 245 seconds]
<_br_> Kunda: This line "@data = { apikey: apikey }" tell me that you are using 1.9.x syntax which is incompatible with Ruby 1.8.x. So, either run this with the ruby 1.9 version from you packet manager installed or use rbenv/rvm
<_br_> Kunda: already did :)
hunglin has quit [Quit: Leaving.]
<_br_> banister_: hope you get an answer, otherwise, did you try #vmware ?
<banister_> _br_: of course, no answer in #vmware
<_br_> :(
<Kunda> oh ok..on Debian Squeeze. so i should uninstall ruby 1.8 and then install ruby 1.9 is what you're saying ?
<Kunda> what you are offering as an option, shall i say
<_br_> Kunda: Its kind of cumbersome with gems and different vm's on debian in my opinion. (I use it myself on a few servers) So, I would suggest RVM.
zeromodulus has joined #ruby
<Kunda> _br_, ok. I just installed 1.8 but an hour ago. So how should i proceed if I want to use RVM ?
antonishen has joined #ruby
<_br_> Kunda: Use the power of google :)
<Kunda> _br_, can you help me with the search query.
<_br_> lol sure one moment
<Kunda> thanks
antonishen has quit [Client Quit]
<_br_> Perfect website in this situations
antonishen has joined #ruby
<_br_> banister_: what tool are you using anyway? VMware player?
<banister_> _br_: work station
<_br_> banister_: and you want to export it to what exactly? You are aware that the .vmx files by themselves are already copyable?
<banister_> _br_: i dont know, i know nothing about vmware. Basically i received an osx vmware image from a friend, i loaded it, installed xcode on it, and now i want to send it back to taht friend. how do i do it?
<offby1> yow
<offby1> the main barrier will be simply: it's so damned big.
<_br_> banister_: find the .vmx files which were created by the software and send that to your friend - done.
<banister_> offby1: hello my emacs greybeard
<Kunda> _br_, rvm-install is not auto-completing looks like it's not in my $PATH
* offby1 shaves
<_br_> Kunda: there is a nice manual on that page how to do it
<banister_> offby1: 7 gig is no big deal actually, she downloads entire series of game of thrones that are about that :)
<offby1> I wonder if there's some clever binary-diffing tool that will let you send just the patches
<banister_> offby1: and boardwalk empire, and so on
<banister_> _br_: hmm, thanks, ill have a look
<offby1> and you're willing to upload that much?
<banister_> _br_: where are they saved?
<_br_> offby1: unison, git annex etc. ?
<banister_> offby1: Yeah. 7 gig is not that much in teh scheme of thines
<banister_> things
<offby1> seems like it ought to be easy then, as _br_ says
<offby1> not that I've ever done such a thing
<_br_> offby1: ah actually git bup does that. Git bup works on chunks.
Markvilla has quit [Quit: Markvilla]
<offby1> hm, /me needs to learn about that.
<banister_> _br_: where would i find the vmx files? im really new to vmware
<_br_> banister_: you configured that in the beginning when you installed the app
<_br_> So, time for coffee bbl
<offby1> banister_: try ``find ~/.vm*''
<offby1> banister_: for what it's worth -- vmware is about the only software that I've _happily_ paid for
<billiamii> Though isn't the vmx just the config file?
nipra has quit [Read error: Connection reset by peer]
<billiamii> like, vmx for config, vmdk for the actual disk image?
<banister_> offby1: i'm on windows 7
Juul has quit [Ping timeout: 246 seconds]
ramblex has quit [Quit: ramblex]
vitor-br has joined #ruby
<offby1> banister_: it'll be in %USERPROFILE%, maybe "Application Data"
<offby1> you'll find it. It'll be the 2 GB file :)
antonishen has quit []
fayimora has joined #ruby
indian has quit [Ping timeout: 248 seconds]
<offby1> _br_: bup looks _really_ slick. Do you use it?
moktod has quit [Read error: Connection reset by peer]
khakimov has joined #ruby
<_br_> offby1: Yes. Its nice, but a bit slow. Watch this, good intro http://www.youtube.com/watch?v=N5qj94B3WkE
zeromodulus is now known as ZeroModulus
robbyoconnor has joined #ruby
strnx has quit [Excess Flood]
strnx has joined #ruby
daed has joined #ruby
<offby1> I see I'm already "watching" it on github, but I never pay any attention to my github "watchlist" or whatever it's called
jenrzzz-mac has joined #ruby
CannedCorn has quit [Quit: Computer has gone to sleep.]
moktod has joined #ruby
moshee has quit [Ping timeout: 245 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
xaq has joined #ruby
<banister_> _br_: d u mean the .vmdk file?
<banister_> _br_: the .vmx file is only 3k
<banister_> it's the .vmdk file that is the largest
xaq has quit [Remote host closed the connection]
itnomad has quit [Quit: Leaving]
qos has joined #ruby
nigman is now known as ecigman
justsee has quit [Quit: Linkinus - http://linkinus.com]
Kunda has quit [Quit: Kunda]
charliesome has joined #ruby
Targen has quit [Ping timeout: 245 seconds]
recursive has joined #ruby
tk___ has joined #ruby
<recursive> im developing on a freebsd machine a program that will be used on mac osx computers, i would like it to have a user interface, what are my options?
<offby1> the command line!
nipra has joined #ruby
<offby1> Best and most portable user interface there is.
<offby1> I'm only 90% kidding.
<offby1> 80%.
<banister_> offby1: do you use org-mode?
<recursive> heh, if it were my company, that would be my choice
<RubyPanther> I dunno why you're 80% kidding, you were 95% correct.
<offby1> banister_: a bit, mostly for the tables
<banister_> offby1: cool. Do you use magit?
joshman_ has joined #ruby
williamcotton has quit [Quit: williamcotton]
recursive has left #ruby [#ruby]
rippa has joined #ruby
roams has quit [Ping timeout: 245 seconds]
balki_ is now known as balki
jenrzzz-mac has quit [Quit: jenrzzz-mac]
joshman_ has quit [Quit: Computer has gone to sleep.]
indian has joined #ruby
xbayrockx has quit [Remote host closed the connection]
xbayrockx has joined #ruby
ZachBeta has quit [Read error: Connection reset by peer]
ZachBeta has joined #ruby
mikepack has quit [Remote host closed the connection]
nari has joined #ruby
Jon[sBNC] has joined #ruby
Jon[sBNC] is now known as jonsparks
My_Hearing has joined #ruby
bradhe has joined #ruby
xaq has joined #ruby
Mon_Ouie has quit [Ping timeout: 245 seconds]
araujo has joined #ruby
<_br_> banister_: .vm*
<banister_> _br_: do i need the .vmem file too? or can they recreate that on the other side?
<banister_> it's an extra 2 gigs
<_br_> banister_: sorry, no idea.
Ripp__ has joined #ruby
Solnse has joined #ruby
sleetdrop has quit [Remote host closed the connection]
kevinbond has quit [Remote host closed the connection]
sleetdrop has joined #ruby
p4tux has joined #ruby
<bradhe> cross post from #RubyOnRails: Anyone familiar with Mongoid? What's a good way to iterate over all documents? Anything equivalent to ActiveRecord#find_each?
kevinbond has joined #ruby
krusty_ar has quit [Ping timeout: 265 seconds]
xaq has quit [Remote host closed the connection]
ZachBeta has quit [Read error: Connection reset by peer]
ZachBeta has joined #ruby
kevinbond has quit [Remote host closed the connection]
andrewhl has joined #ruby
jenrzzz-mac has joined #ruby
hadees has quit [Quit: hadees]
kevinbond has joined #ruby
borkman has joined #ruby
Targen has joined #ruby
joshman_ has joined #ruby
Hanmac1 is now known as Hanmac
yannis has joined #ruby
joshman_ has quit [Ping timeout: 256 seconds]
minijupe has quit [Quit: minijupe]
mrdtt has quit [Remote host closed the connection]
mfridh has joined #ruby
tewecske has joined #ruby
tewecske has quit [Max SendQ exceeded]
jonsparks has quit [Remote host closed the connection]
jonsparks has joined #ruby
jonsparks is now known as Guest26420
hadees has joined #ruby
Guest26420 has quit [Changing host]
Guest26420 has joined #ruby
kevinbond has quit [Quit: kevinbond]
Guest26420 is now known as jonsparks
bradhe_ has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
ipoval has joined #ruby
bradhe has joined #ruby
savage- has joined #ruby
adamkittelson has quit [Remote host closed the connection]
bradhe_ has quit [Ping timeout: 244 seconds]
td123 has quit [Quit: WeeChat 0.3.8]
ZachBeta has quit [Read error: Connection reset by peer]
ZachBeta has joined #ruby
ZachBeta has quit [Client Quit]
gongura_ has joined #ruby
gongura has quit [Ping timeout: 245 seconds]
gongura_ is now known as gongura
Solnse has quit [Read error: Connection reset by peer]
t0mmyvyo has quit [Quit: http://twitter.com/tommyvyo]
<Bonkers> bradhe, no need for find_each, each does the same thing
mikeycgto has quit [Remote host closed the connection]
mrdtt has joined #ruby
<bradhe> Bonkers: does it page results?
<Bonkers> it fetches in batches, yes
<Bonkers> it uses mongodb cursors
<bradhe> Oh, nice
niku4i has joined #ruby
EstanislaoStan has quit []
wvms has quit [Quit: wvms]
Solnse has joined #ruby
niku4i has quit [Ping timeout: 245 seconds]
nipra has quit [Ping timeout: 256 seconds]
Solnse2 has joined #ruby
Konboi has joined #ruby
Solnse has quit [Ping timeout: 248 seconds]
mxweas_ has joined #ruby
nilg` has joined #ruby
kenperkins has quit [Quit: Computer has gone to sleep.]
emmanuelux has quit [Ping timeout: 264 seconds]
kenperkins has joined #ruby
andrewhl has quit [Remote host closed the connection]
phidev has quit [Ping timeout: 245 seconds]
gongura has quit [Ping timeout: 245 seconds]
gongura has joined #ruby
mxweas_ has quit [Quit: Computer has gone to sleep.]
mxweas_ has joined #ruby
test34- has quit [Ping timeout: 260 seconds]
nipra has joined #ruby
jhunter has quit [Read error: Operation timed out]
kenperkins has quit [Quit: Computer has gone to sleep.]
Jackneill has joined #ruby
gtuckerkellogg has joined #ruby
jhunter has joined #ruby
Bonkers has quit [Quit: Leaving]
olrrai has joined #ruby
olrrai has quit [Client Quit]
ryanf has joined #ruby
jrajav has joined #ruby
cpg has joined #ruby
larissa has quit [Quit: gone]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
Solnse2 has quit []
Ripp__ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<cpg> i cannot seem to find a reference to * when passing a parameter to a method … like in:
<cpg> send("#{crypted_password_field}=", crypto_provider.encrypt(*encrypt_arguments(@password, false, act_like_restful_authentication? ? :restful_authentication : nil)))
<cpg> i think it's not the * of what the encrypt_arguments returns
<cpg> it's some sort of reference passing
<cpg> but i cannot find much about it in the various ruby sites i have searched
<cpg> looking for some pointers ...
codezombie has quit [Quit: Linkinus - http://linkinus.com]
gtuckerkellogg has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
igotnolegs is now known as anotak3
tomb__ has quit [Quit: Computer has gone to sleep.]
dv_ has joined #ruby
zomgbie has joined #ruby
anotak3 is now known as igotnolegs
skinny_much has joined #ruby
guardian has quit [Quit: Leaving.]
<cpg> ok, i can infer it explodes an array into variable arguments
<billiamii> yah.
<cpg> billiamii: thanks! .. i was looking for some official definition or something
<cpg> but i could not find it
nipra has quit [Read error: Connection reset by peer]
balki_ has joined #ruby
<cpg> billiamii: If for some reason the previous examples seemed like great ideas to you, you’ll be thrilled to know that the splat can also be used to coerce values into arrays
<cpg> hahaha
<cpg> billiamii: thanks for the link!
<billiamii> You bet :)
pygospa has quit [Disconnected by services]
TheRealPygo has joined #ruby
balki has quit [Ping timeout: 245 seconds]
yxhuvud has joined #ruby
qwerxy has joined #ruby
nari has quit [Ping timeout: 240 seconds]
phidev has joined #ruby
nipra has joined #ruby
socomm has quit [Ping timeout: 248 seconds]
gongura has quit [Quit: gongura]
gongura has joined #ruby
socomm has joined #ruby
savage- has quit [Remote host closed the connection]
gongura has quit [Client Quit]
adeponte has quit [Ping timeout: 265 seconds]
Sheehan has quit [Quit: Sheehan]
josefig_ has quit [Quit: Textual app]
ryanf has quit [Quit: leaving]
Sheehan has joined #ruby
TheHunter_1039 has quit [Quit: TheHunter_1039]
Morkel has joined #ruby
Sheehan has quit [Client Quit]
Bosma has quit [Ping timeout: 244 seconds]
shadoi has quit [Quit: Leaving.]
Morkel has quit [Quit: Morkel]
schovi has joined #ruby
jackiechan0 has joined #ruby
indian has quit [Ping timeout: 246 seconds]
igotnolegs has quit [Quit: Computer has gone to sleep.]
Morkel has joined #ruby
Morkel has quit [Client Quit]
Shoobdidoo has joined #ruby
schovi has quit [Ping timeout: 245 seconds]
skinny_much has quit [Quit: Leaving]
perryh is now known as perryh_away
Shoobdidoo has quit [Client Quit]
skinny_much has joined #ruby
lopin has joined #ruby
pdtpatrick has quit [Quit: pdtpatrick]
Eldariof-ru has joined #ruby
blacktulip has joined #ruby
olrrai has joined #ruby
olrrai_ has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
fayimora has quit [Quit: Busy…..zzzzz]
olrrai_ has quit [Client Quit]
olrrai has quit [Quit: Saliendo]
olrrai has joined #ruby
looopy has quit [Remote host closed the connection]
olrrai has quit [Client Quit]
olrrai has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
olrrai has quit [Quit: Saliendo]
olrrai has joined #ruby
Konboi_ has joined #ruby
Konboi has quit [Ping timeout: 245 seconds]
My_Hearing is now known as Mon_Ouie
olrrai_ has joined #ruby
alup has quit [Ping timeout: 245 seconds]
JohnBat26 has joined #ruby
schovi has joined #ruby
olrrai_ has quit [Quit: Saliendo]
radic has joined #ruby
olrrai_ has joined #ruby
jrajav has quit [Quit: Computer has gone to sleep.]
qwerxy has quit [Quit: offski]
hadees has quit [Quit: hadees]
nooodl has joined #ruby
nipra has quit [Ping timeout: 246 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
wallerdev has quit [Quit: wallerdev]
srnty has quit [Ping timeout: 244 seconds]
pk1001100011 has joined #ruby
zaydana has joined #ruby
nfk has joined #ruby
p4tux has quit [Quit: Leaving]
tdubz has joined #ruby
tdubz has quit [Client Quit]
nipra has joined #ruby
proghat has quit [Ping timeout: 245 seconds]
srnty has joined #ruby
olrrai_ has quit [Quit: Saliendo]
olrrai has quit [Quit: Saliendo]
olrrai has joined #ruby
blacktulip has quit [Ping timeout: 252 seconds]
jeffsebring has joined #ruby
d3c has joined #ruby
mdw has joined #ruby
sleetdrop has quit [Remote host closed the connection]
jeffsebringx has joined #ruby
jeffsebring has left #ruby [#ruby]
jeffsebringx has quit [Client Quit]
cj3kim has quit [Quit: This computer has gone to sleep]
joshman_ has joined #ruby
Croms has quit [Remote host closed the connection]
Croms has joined #ruby
joshman_ has quit [Quit: Computer has gone to sleep.]
olrrai has quit [Quit: Saliendo]
noganex has quit [Ping timeout: 265 seconds]
etehtsea has joined #ruby
shevy2 is now known as shevy
hemanth has quit [Read error: Connection reset by peer]
<banister_> does anyone here have a subscription to railscasts
<banister_> ?
hemanth_ has joined #ruby
olrrai has joined #ruby
olrrai has quit [Client Quit]
olrrai has joined #ruby
olrrai has quit [Client Quit]
qwerxy has joined #ruby
blacktulip has joined #ruby
akem has quit [Read error: Connection timed out]
zinjacoder has joined #ruby
olrrai has joined #ruby
tvw has joined #ruby
visof has joined #ruby
visof has quit [Changing host]
visof has joined #ruby
nu7hatch has joined #ruby
schovi has quit [Remote host closed the connection]
schovi has joined #ruby
werdnativ has quit [Quit: werdnativ]
<_br_> banister_: why
wilmoore has quit [Remote host closed the connection]
skinny_much has quit [Remote host closed the connection]
<banister_> _br_: i'd like to see this episode: http://railscasts.com/episodes/54-debugging-ruby-revised
bds_orsk has joined #ruby
bds_orsk has left #ruby [#ruby]
<banister_> _br_: only because it appears it may mention one of my projects, and im curious what it has to say about it
snearch has joined #ruby
zomgbie has quit [Ping timeout: 245 seconds]
jeff_sebring has joined #ruby
<banister_> _br_: you haev a subscription? :)
heftig has quit [Quit: leaving]
Solnse has joined #ruby
olrrai has quit [Quit: Saliendo]
olrrai has joined #ruby
<Solnse> x-post from rails chan, everybody sleeping: I keep receiving an error "Can't convert rand to integer" and I can't find anything helpful on Google... anybody had this problem before? code is very simple: <%= image_path("thumbnails/yana#{ rand(1..8).to_s }thumb.jpg") %>
jimeh2 has joined #ruby
zomgbie has joined #ruby
invictus1 has joined #ruby
skinny_much has joined #ruby
<_br_> banister_: you can't just buy that episode?
<banister_> _br_: doesnt look like it, i have to buy a monthly subscription
<_br_> banister_: have not sub unfortuantely
<banister_> np
phantasm66 has quit [Quit: *sleeeeep*]
<_br_> Solnse: weird, are you using 1.9 ?
<banister_> Solnse: rand(1..8) is only valid in 1.9.3+
<banister_> if you'r eon 1.9.2 it wont work
Squarepy has joined #ruby
Squarepy has quit [Changing host]
Squarepy has joined #ruby
xanaru has joined #ruby
olrrai has quit [Ping timeout: 260 seconds]
cheater_ has joined #ruby
xanaru has quit [Read error: Connection reset by peer]
Croms has quit [Ping timeout: 248 seconds]
the_drow has joined #ruby
cheater has quit [Ping timeout: 260 seconds]
<the_drow> Hi, I've installed puppet-module on Windows 7 b4bit but when I run puppet-module I get the folllowing error http://pastebin.com/qqeThACx
<Solnse> banister_ thank you, it works locally, but now I'm having problems pushing to heroku, that mean I have to wait for them to go 1.9.3+?
<the_drow> C:/Ruby193/lib/ruby/gems/1.9.1/gems/puppet-2.7.14/lib/puppet/util/monkey_patches.rb:3:in `maxgroups=': maxgroups=() func tion is unimplemented on this machine (NotImplementedError)
<the_drow> how come it's not implemented and how do I fix this?
<Solnse> is there an alternative to rand() that works before 1.9.3?
schovi has quit [Remote host closed the connection]
<shevy> Solnse you can kinda make your own rand method
<banister_> Solnse: yes
<banister_> Solnse: Random.new.rand(1..8)
<shevy> hmm that works on 1.8?
<banister_> Solnse: require 'random'
Vainoharhainen has joined #ruby
<banister_> shevy: no, 1.9 series
TheRealPygo is now known as pygospa
<shevy> I still feel strange using 1.9.3 these days, it's like a little ruby dialect compared to 1.8.7 :)
<Solnse> banister_: thanks, I'll try taht
<shevy> like a german where "Und" became "Uend" banister_
thecreators has quit [Ping timeout: 245 seconds]
nipra has quit [Ping timeout: 244 seconds]
cantonic_ has joined #ruby
zomgbie has quit [Ping timeout: 252 seconds]
cantonic has quit [Ping timeout: 260 seconds]
cantonic_ is now known as cantonic
<Solnse> banister_: fantastic, thank you for your help. it works now :)
thecreators has joined #ruby
qwerxy has quit [Ping timeout: 256 seconds]
<the_drow> anyone?
<banister_> the_drow: stop using windows
<the_drow> can't do that right now
<banister_> then expect random breakages :P ppl dont really care too much about supporting it fully
qwerxy has joined #ruby
Beoran__ has quit [Read error: Connection reset by peer]
<the_drow> Seriously?
<the_drow> dafuq?
<banister_> the_drow: Yeah, windows has never been a priority for ruby developers
QKO_ has joined #ruby
<banister_> the_drow: it's a terrible development platform for ruby, they even have to use a non standard C compiler to even build ruby binaries
<banister_> since visual studio can't compile c99
<the_drow> python manages to do it just fine
<the_drow> and I read they wanted to move to mingw
<banister_> the_drow: python probably doesnt use c99
nipra has joined #ruby
<the_drow> should I go and report an issue on this?
QKO has quit [Ping timeout: 265 seconds]
<banister_> the_drow: sure
<the_drow> So it's a bug right?
<banister_> the_drow: it seems like python doesnt use c99
<banister_> the_drow: it might not be a bug, they might have decided just not to implement it for windows because it was too hard, or maybe not even possible
<banister_> i dont know the specifics of that method
qos has quit [Quit: Linkinus - http://linkinus.com]
Leyhart has joined #ruby
Leyhart has quit [Quit: Leaving]
tvw has quit [Remote host closed the connection]
<shevy> the_drow whoa... puppet really has a file called monkey_patches.rb ? and that file does not work on windows ?
<the_drow> yup
<the_drow> and no one is answering on puppet
thecreators has quit [Read error: Connection reset by peer]
thecreators has joined #ruby
<shevy> these days I tend to prefer only projects that use github
<shevy> reporting issues is so simple there
<banister_> the_drow: is it written in C or ruby?
mxweas_ has quit [Quit: Computer has gone to sleep.]
<banister_> the_drow: why dont u look inside that method and see why it's raising the exception
<the_drow> because I don't know ruby at all?
<yxhuvud> best way to learn!
<shevy> if I have to make a guess, it is plain ruby
<the_drow> unless defined? JRUBY_VERSION Process.maxgroups = 1024 end
Morkel has joined #ruby
<shevy> yeah they should rescue NotImplementedError
mxweas_ has joined #ruby
<the_drow> why?
zeknox has quit [Read error: Connection reset by peer]
<shevy> because apparently it does not work for you on windows
zeknox has joined #ruby
<shevy> unless they stated that they do not support windows anyway
<shevy> but in which case, you should not be using it :P
<banister_> the_drow: shevy likes to babble :P Just file an issue
<the_drow> They do support windows
<the_drow> kk
<banister_> the_drow: whether or not it's a bug at least you'll find out what the situation is
<yxhuvud> well, if they look for jruby version, then it probably is an issue with not using jruby, and not of you using windows
<shevy> the puppy guys seem incompetent
schickung has joined #ruby
BeLucid has joined #ruby
iocor has joined #ruby
<the_drow> well after removing those lines it still doesn't work
Beoran__ has joined #ruby
<the_drow> PS C:\> puppet-module install puppetlabs/apt C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead. C:/Ruby193/lib/ruby/gems/1.9.1/gems/puppet-module-0.3.4/vendor/thor-852190ae/lib/thor/shell.rb:10: Use RbConfig instead of obsolete and deprecated Config. Could not load confine test 'operatingsystem': cannot load such file -- puppet/provider/co
Vainoharhainen has quit [Ping timeout: 248 seconds]
phidev has quit [Ping timeout: 244 seconds]
<shevy> sounds like another issue to be reported
<the_drow> crap Error: `puppet module` actions are currently not supported on Microsoft Windows
<shevy> :)
<the_drow> I just figured out how to get that message
<shevy> so at least they notify users about it
<shevy> that is nice
<the_drow> I FUCKING HATE WINDOWS
<shevy> it's bad, one can workaround some things though
<shevy> I uses msys on windows (I can use all bash aliases that way) and ruby works very well on windows for the most part too
<the_drow> Seriously all I want to do is to use puppet and vagrant so that I'll have an ubuntu machine that I can actually develop on
nari has joined #ruby
<shevy> one day we'll have a rubyOS
<shevy> banister_ is working on that via pry
<shevy> :D
cbuxton has joined #ruby
cbuxton has quit [Client Quit]
berserkr has joined #ruby
tomb__ has joined #ruby
phidev has joined #ruby
davidcelis has quit [Read error: Connection reset by peer]
davidcelis has joined #ruby
Natch| has quit [Ping timeout: 265 seconds]
wereHamster has quit [Changing host]
wereHamster has joined #ruby
rippa has quit [Quit: derp herp]
markp has joined #ruby
visof has quit [Ping timeout: 240 seconds]
jamesaxl has quit [Ping timeout: 245 seconds]
jbw_ has quit [Ping timeout: 260 seconds]
<markp> is there a free pdf rendering library in native ruby?
jamesaxl has joined #ruby
nirakara has joined #ruby
nirakara has quit [Max SendQ exceeded]
nirakara has joined #ruby
alup has joined #ruby
Markvilla has joined #ruby
Foxandxss has joined #ruby
<shevy> markp not sure... have a look at prawn https://github.com/prawnpdf/prawn
ipoval has quit [Quit: ipoval]
jeff_sebring has quit [Quit: Leaving]
Richmond has joined #ruby
twodollarz has quit [Ping timeout: 260 seconds]
cpg is now known as cpg|away
visof has joined #ruby
nirakara has quit [Ping timeout: 245 seconds]
jbw_ has joined #ruby
Boohbah has quit [Ping timeout: 276 seconds]
schovi has joined #ruby
vlad_starkov has joined #ruby
<markp> okay
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
ph^ has joined #ruby
zomgbie has joined #ruby
ph^ has quit [Remote host closed the connection]
ph^ has joined #ruby
Vendethiel has joined #ruby
davidcelis has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
zomgbie has quit [Ping timeout: 252 seconds]
twodollarz has joined #ruby
davidcelis has joined #ruby
snearch has quit [Quit: Verlassend]
freeayu has joined #ruby
sepp2k has joined #ruby
Morkel has quit [Quit: Morkel]
mxweas_ has quit [Ping timeout: 246 seconds]
gongura has joined #ruby
mxweas_ has joined #ruby
azm has joined #ruby
noganex has joined #ruby
srnty has quit [Ping timeout: 246 seconds]
sbanwart has joined #ruby
freeayu has quit [Ping timeout: 245 seconds]
skinny_much has quit [Ping timeout: 265 seconds]
nirakara has joined #ruby
cousine has joined #ruby
vitoravelino is now known as vitoravelino`afk
fantazo has quit [Remote host closed the connection]
freeayu has joined #ruby
gongura has quit [Quit: gongura]
visof_ has joined #ruby
zx has joined #ruby
visof has quit [Ping timeout: 245 seconds]
azm has quit [Ping timeout: 260 seconds]
hunglin has joined #ruby
hunglin has left #ruby [#ruby]
raz has joined #ruby
<raz> anyone know if there's a way to run only a specific spec interactively with guard?
punkrawkR has quit [Ping timeout: 240 seconds]
fayimora has joined #ruby
zx has quit [Quit: Leaving]
azm has joined #ruby
fayimora has quit [Read error: Connection reset by peer]
fayimora has joined #ruby
qwerxy has quit [Quit: offski]
joast has quit [Quit: Leaving.]
markp has quit [Quit: Leaving]
qwerxy has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
nari has quit [Quit: Ex-Chat]
ramblex has joined #ruby
jamesaxl has quit [Ping timeout: 245 seconds]
araujo has quit [Read error: Connection reset by peer]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
araujo has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
olrrai has joined #ruby
vitoravelino`afk is now known as vitoravelino
hemanth_ has quit [Read error: Connection reset by peer]
flype has joined #ruby
hemanth_ has joined #ruby
<shevy> class Array does not have .each_pair ?
krusty_ar has joined #ruby
ringotwo has joined #ruby
<shevy> ack
<shevy> where is .each_pair ???? seems my ruby does not have it?
<shevy> oh
<shevy> on class Hash
<shevy> there it works
<shevy> :)
punkrawkR has joined #ruby
jenrzzz-mac has quit [Quit: jenrzzz-mac]
joast has joined #ruby
visof__ has joined #ruby
araujo has joined #ruby
visof_ has quit [Ping timeout: 252 seconds]
cousine has quit [Remote host closed the connection]
rizzylt has joined #ruby
schaerli has joined #ruby
NoobNoob has joined #ruby
Vendethiel has quit [Quit: je ne suis plus là, tqvu]
seanstickle has joined #ruby
blacktulip has quit [Remote host closed the connection]
<sepp2k> shevy: each_pair yields key-value-pairs, so it doesn't really make sense for anything but hashes. You might be looking for each_slice(2)
Konboi_ has quit [Remote host closed the connection]
blacktulip has joined #ruby
looopy has joined #ruby
nirakara has quit [Ping timeout: 244 seconds]
liluo has joined #ruby
phantasm66 has joined #ruby
nirakara has joined #ruby
CannedCorn has joined #ruby
dekroning has joined #ruby
<dekroning> hi
Kunda has joined #ruby
<dekroning> i'm writing simple turn based game, but i'm trying to use the right name for my object. Anyone know the antonym for opponent? Somehow 'challenger' doesn't feel like the right one to me
pkondzior has quit [Quit: Connection closed for inactivity]
<CannedCorn> im having trouble getting the usr:usrname field from author in this feed with nokogiri: https://jira.mongodb.org/plugins/servlet/streams
<CannedCorn> i can get to author with css("feed entry author")
dekronin1 has joined #ruby
<CannedCorn> but i can't access the usr:username
<dekronin1> oops, got disconnected
ZachBeta has joined #ruby
<Kunda> How would I go about creating a form accessible via browser that I can pass variables to this https://github.com/cyx/chimp ?
<sepp2k> dekronin1: Can you explain the purpose of the object? I would have said friend or ally (if someone is not your opponent, he's your ally - maybe), but that doesn't seem to be what you're going for if you're thinking 'challenger'...
Natch| has joined #ruby
Natch| has quit [Excess Flood]
dekroning has quit [Ping timeout: 245 seconds]
liluo has quit [Remote host closed the connection]
yonggu has left #ruby [#ruby]
looopy has quit [Remote host closed the connection]
Natch| has joined #ruby
dekronin1 has quit [Ping timeout: 245 seconds]
heftig has joined #ruby
schickung has quit [Quit: schickung]
qwerxy has quit [Quit: offski]
<CannedCorn> nobody
<CannedCorn> ?
mvangala_home has joined #ruby
zealinux has joined #ruby
td123 has joined #ruby
<zealinux> In rails, How to mark a record when click delete, ex. one post, yet direct :destory
medik has quit [Read error: Connection reset by peer]
<zealinux> mark a record "deletion"
td123 has quit [Read error: Connection reset by peer]
roams has joined #ruby
<zealinux> help me, pls
schickung has joined #ruby
td123 has joined #ruby
niku4i has joined #ruby
heftig has quit [Ping timeout: 248 seconds]
niklasb has joined #ruby
Squarepy has quit [Read error: Connection reset by peer]
niku4i has quit [Ping timeout: 245 seconds]
xaxisx has joined #ruby
Squarepy has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
sam113101 has quit [Ping timeout: 260 seconds]
Squarepy has quit [Changing host]
Squarepy has joined #ruby
nirakara has quit [Quit: This computer has gone to sleep]
sam113101 has joined #ruby
kirun has joined #ruby
christo_m has joined #ruby
mob_ has joined #ruby
<christo_m> https://gist.github.com/2842373 getting NoMethodError: undefined method `esc' for "GET":String
akem has quit [Ping timeout: 265 seconds]
ringotwo has quit [Remote host closed the connection]
fmcgeough has quit [Quit: fmcgeough]
rizzylt has quit [Ping timeout: 240 seconds]
tomb__ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
heftig has joined #ruby
emmanuelux has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
sam113101 has quit [Read error: Connection reset by peer]
noganex has quit [Ping timeout: 252 seconds]
fixl has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
lxsameer has joined #ruby
fayimora has quit [Quit: Busy…..zzzzz]
flype has quit [Quit: Computer has gone to sleep.]
fayimora has joined #ruby
Spooner has joined #ruby
mdw_ has joined #ruby
xaxisx has quit [Quit: xaxisx]
sam113101 has joined #ruby
frogstarr78 has joined #ruby
mdw has quit [Ping timeout: 260 seconds]
Eldariof-ru has quit [Ping timeout: 252 seconds]
ZachBeta has joined #ruby
andrewhl has joined #ruby
<R3dy> trying to do string.gsub(/\\/, "\")
<R3dy> it's not working
<R3dy> I have a string with a bunch of hex like this \\x00\\x0a
<R3dy> i just want one slash
digitalcakestudi has joined #ruby
wallerdev has joined #ruby
roams has quit [Ping timeout: 245 seconds]
mob_ has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
Vainoharhainen has joined #ruby
mengu has joined #ruby
<Spooner> R3dy string.gsub(/\\\\/, "\")
seanstickle has quit [Quit: seanstickle]
flype has joined #ruby
<R3dy> spooner when I do that in irb
<R3dy> it blanks out the string
<Spooner> Mmm :$
minijupe has joined #ruby
binaryplease has joined #ruby
<_br_> R3dy: Looks like you are dealing with an encoding issue there. http://yehudakatz.com/2010/05/05/ruby-1-9-encodings-a-primer-and-the-solution-for-rails/
xaxisx has joined #ruby
the_drow has quit [Quit: Page closed]
<_br_> R3dy: Probably I am guessing you took a string which has a different encoding e.g. utf8 treat it wrongly and applied a escape on it?
sepp2k has quit [Quit: Leaving.]
sepp2k has joined #ruby
indian has joined #ruby
d3c has quit [Quit: Sleep]
liluo has joined #ruby
seanstickle has joined #ruby
Natch has joined #ruby
Natch has quit [Excess Flood]
Natch has joined #ruby
Natch has quit [Excess Flood]
Natch has joined #ruby
Natch has quit [Excess Flood]
Natch has joined #ruby
Natch has quit [Excess Flood]
schovi has quit [Ping timeout: 245 seconds]
Natch| has quit [Ping timeout: 245 seconds]
Natch| has joined #ruby
xaxisx has quit [Quit: xaxisx]
liluo has quit [Remote host closed the connection]
<Spooner> R3dy : '\\\\x00\\\\x0a'.gsub /\\\\/, '\\' => "\\x00\\x0a"
thmzlt has joined #ruby
<Spooner> Which is what you want, I think, though it might be confusion in what you are asking.
NoobNoob has quit []
krusty_ar_ has joined #ruby
roams has joined #ruby
krusty_ar has quit [Ping timeout: 248 seconds]
<offby1> R3dy: there's also a chance that you don't have two backslashes in a row at all, despite appearances; you might have just one which is _displaying_ as two.
jacobw2 has quit [Quit: leaving]
<offby1> 'cuz that's how they do
qwerxy has joined #ruby
A1241 has joined #ruby
jacobw has joined #ruby
jackiechan0 has quit [Ping timeout: 245 seconds]
CannedCorn has quit [Quit: Computer has gone to sleep.]
Mchl has joined #ruby
dross_ has joined #ruby
dross_ has quit [Changing host]
dross_ has joined #ruby
hadees has joined #ruby
dross has quit [Ping timeout: 244 seconds]
vlad_starkov has quit [Remote host closed the connection]
jackiechan0 has joined #ruby
jackiechan0 has quit [Remote host closed the connection]
jackiechan0 has joined #ruby
kenperkins has joined #ruby
deryl has joined #ruby
aige has joined #ruby
t0mmyvyo has joined #ruby
vlad_starkov has joined #ruby
meescha has joined #ruby
jackiechan0 has quit [Ping timeout: 245 seconds]
meescha has left #ruby [#ruby]
lesnik_ has joined #ruby
<lesnik_> Hi!
<Spooner> lesnik_ : hullo
zealinux has quit [Ping timeout: 265 seconds]
td123 has quit [Quit: WeeChat 0.3.8]
CheeToS has joined #ruby
mohits has joined #ruby
td123 has joined #ruby
mxweas_ has quit [Ping timeout: 244 seconds]
nipra has quit [Ping timeout: 244 seconds]
blacktulip has quit [Remote host closed the connection]
indian has quit [Ping timeout: 245 seconds]
Solnse has left #ruby [#ruby]
fgwaegeawgfwa has quit [Ping timeout: 256 seconds]
TheHunter_1039 has joined #ruby
flype has quit [Quit: Computer has gone to sleep.]
Richmond has quit [Quit: Leaving]
nipra has joined #ruby
Squarepy has quit [Read error: Connection reset by peer]
nirakara has joined #ruby
niklasb has quit [Ping timeout: 260 seconds]
Squarepy has joined #ruby
schaerli has quit [Remote host closed the connection]
Gavilan has joined #ruby
MasterIdler_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
Squarepy has quit [Client Quit]
hemanth_ has joined #ruby
nirakara has quit [Quit: This computer has gone to sleep]
thone has joined #ruby
remmy444 has joined #ruby
remmy444 has left #ruby [#ruby]
thone_ has quit [Ping timeout: 245 seconds]
thmzlt has quit [Remote host closed the connection]
ronniy has joined #ruby
schaerli has joined #ruby
schaerli has quit [Remote host closed the connection]
ringotwo has joined #ruby
schaerli has joined #ruby
jackiechan0 has joined #ruby
jacobw is now known as tango
tango is now known as jacobw
heftig has quit [Ping timeout: 245 seconds]
JohnBat26 has quit [Ping timeout: 260 seconds]
sleetdrop has joined #ruby
choi0hun_ has joined #ruby
bier has quit [Ping timeout: 240 seconds]
schaerli has quit [Ping timeout: 260 seconds]
schickung_ has joined #ruby
schickung has quit [Ping timeout: 265 seconds]
schickung_ is now known as schickung
gongura has joined #ruby
udante has joined #ruby
freeayu has quit [Quit: 离开]
mdw_ has quit [Remote host closed the connection]
ipoval has joined #ruby
perryh_away is now known as perryh
heftig has joined #ruby
wvms has joined #ruby
choi0hun_ has quit [Ping timeout: 245 seconds]
adeponte has joined #ruby
mdw has joined #ruby
looopy has joined #ruby
bier has joined #ruby
hydrozen has joined #ruby
schovi has joined #ruby
schaerli has joined #ruby
brianpWins has quit [Quit: brianpWins]
schaerli has quit [Remote host closed the connection]
emet has joined #ruby
enviable has joined #ruby
enviable has left #ruby [#ruby]
nirakara has joined #ruby
gongura has quit [Quit: gongura]
hydrozen has quit [Quit: Computer has gone to sleep.]
Eldariof-ru has joined #ruby
stockholm has quit [Ping timeout: 265 seconds]
jacobw has quit [Quit: leaving]
stockholm has joined #ruby
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
krz has joined #ruby
xaxisx has joined #ruby
xaxisx has quit [Client Quit]
liluo has joined #ruby
chessguy has joined #ruby
liluo has quit [Remote host closed the connection]
ZachBeta has quit [Quit: Computer has gone to sleep.]
rushed has joined #ruby
SeySayux_ has quit [Read error: Operation timed out]
fayimora has quit [Ping timeout: 252 seconds]
mikeycgto has joined #ruby
mikeycgto has quit [Changing host]
mikeycgto has joined #ruby
fayimora has joined #ruby
<iceslice> HELPP gem install zookeeper issue, windows 7 64 bit, new to ruby installed ruby and dev kit, http://pastebin.com/PYvqu9h0
IrishGringo_ has quit [Quit: ChatZilla 0.9.88.2 [Firefox 12.0/20120420145725]]
<shevy> iceslice I dont think you can find out the error from that alone
<shevy> "Check the mkmf.log file for more details."
<shevy> perhaps the real culprit lies in that
<shevy> problem is that it must compile something
<iceslice> shevy i cant find the mkmf.log file
<shevy> hmm
<shevy> gem uses a standard way to compile and install things
<shevy> for instance, all gems are stored in a cache/ directory, like /usr/lib/ruby/gems/1.8/cache/
<shevy> on your path... I think it must be ...
<shevy> C:/Ruby193/lib/ruby/gems/1.9.1/cache
baroquebobcat has joined #ruby
IrishGringo has joined #ruby
<shevy> you can try to have a look there
<iceslice> shevy C:\Ruby193\lib\ruby\gems\1.9.1\gems\zookeeper-1.2.8
<shevy> and will probably find zoekeeper*
<shevy> or there, yeah
baroquebobcat has quit [Client Quit]
<shevy> go into that dir and try to run that extconf.rb
<shevy> it will create a mkmf.log (or perhaps there already is)
visof__ has quit [Quit: Leaving]
mockillo has quit [Ping timeout: 252 seconds]
mockillo has joined #ruby
krusty_ar has joined #ruby
krusty_ar_ has quit [Ping timeout: 244 seconds]
boredomist has joined #ruby
<iceslice> shevy, i tried it but it doesnt output the mkmf.log http://pastebin.com/Rije8gG9
<iceslice> I did an entire search for it and it doesnt exist
SeySayux has joined #ruby
vitorpacheco has joined #ruby
etehtsea has quit [Ping timeout: 245 seconds]
vitor-br has quit [Ping timeout: 260 seconds]
akem has quit [Ping timeout: 245 seconds]
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
<shevy> hmm that is strange
<shevy> I usually get a mkmf.log when I run extconf.rb in that directory
<shevy> "'.' is not recognized as an internal or external command, operable program or batch file."
<shevy> not sure wha this means either
<shevy> it seems to try and run this command:
<shevy> ./configure --prefix=C:/Ruby193/lib/ruby/gems/1.9.1/gems/zookeeper-1.2.8/ext --with-pic --without-cppunit --disable-dependency-tracking 2>&1
<shevy> dont know what it means with '.'
<shevy> hmm
<shevy> iceslice, what if you remove the 2>&1 from that command?
<iceslice> from extconf.rb?
<shevy> hmm I think so. or perhaps try to run it directly, not sure
<shevy> I use windows only as secondary platform myself
<shevy> in these kind of things, linux makes work really easier :)
<iceslice> C:\Ruby193\lib\ruby\gems\1.9.1\gems\zookeeper-1.2.8\ext>./configure --prefix=C:/Ruby193/lib/ruby/gems/1.9.1/gems/zookeeper-1.2.8/ext --with-pic --without-cppunit --disable-dependency-tracking '.' is not recognized as an internal or external command, operable program or batch file.
<iceslice> same thing happens when i run it directly
<iceslice> without the 2>&1
radic has quit [Ping timeout: 256 seconds]
binaryplease has quit [Quit: WeeChat 0.3.8]
zomgbie has joined #ruby
digitalcakestudi has quit [Ping timeout: 245 seconds]
xaq has joined #ruby
Natch| has quit [Read error: Connection reset by peer]
schovi has quit [Remote host closed the connection]
Natch| has joined #ruby
Natch| has quit [Excess Flood]
jrallison has joined #ruby
Natch| has joined #ruby
Natch| has quit [Excess Flood]
Natch| has joined #ruby
Natch| has quit [Excess Flood]
Limb_ is now known as Limb
Natch| has joined #ruby
Natch| has quit [Excess Flood]
Natch| has joined #ruby
Natch| has quit [Excess Flood]
Natch| has joined #ruby
Natch| has quit [Excess Flood]
sleetdrop has quit [Remote host closed the connection]
Natch| has joined #ruby
sleetdrop has joined #ruby
Natch| has quit [Excess Flood]
mdw has quit [Remote host closed the connection]
Natch| has joined #ruby
_2easy has joined #ruby
_2easy has quit [Client Quit]
_2easy has joined #ruby
_2easy has quit [Client Quit]
sleetdrop has quit [Ping timeout: 252 seconds]
test34 has joined #ruby
test34 has quit [Changing host]
test34 has joined #ruby
CheeToS has quit [Ping timeout: 246 seconds]
ringotwo has quit [Remote host closed the connection]
lxsameer has quit [Quit: Leaving]
noganex has joined #ruby
Boohbah has joined #ruby
aige has quit [Ping timeout: 245 seconds]
noganex has quit [Read error: Operation timed out]
aige has joined #ruby
unlink has left #ruby ["unlink->i_nlink--;"]
Shrink has quit [Ping timeout: 252 seconds]
radic has joined #ruby
srnty has joined #ruby
stackato has joined #ruby
stackato has quit [Client Quit]
khakimov has joined #ruby
tomb__ has joined #ruby
Natch| has quit [Read error: Connection reset by peer]
heftig has quit [Ping timeout: 245 seconds]
mdw has joined #ruby
lkba has joined #ruby
cj3kim has joined #ruby
fayimora has quit [Quit: Busy…..zzzzz]
khakimov has quit [Quit: Computer has gone to sleep.]
adeponte has quit [Remote host closed the connection]
schovi has joined #ruby
<shevy> hmmm
<shevy> I dont know what this '.' means
Monofu has joined #ruby
indian has joined #ruby
<Monofu> How would I go about getting this to use my model? https://github.com/jeremyolliver/gvis#example
havenn has joined #ruby
seanstickle has quit [Quit: Nihil sub sole novum]
fayimora has joined #ruby
<Monofu> Not the gem itself, but to fill out the array of data with an iterator?
khakimov has joined #ruby
snearch has joined #ruby
enroxorz has joined #ruby
<enroxorz> I feel like a champ. Just published my first executable gem
lesnik_ has quit [Ping timeout: 245 seconds]
<Monofu> Sorry, just read the guidelines. https://gist.github.com/2901900
brianpWins has joined #ruby
<Monofu> Kind of desperate. Anybody got any suggestions?
christo_m has quit [Ping timeout: 265 seconds]
dbgster has joined #ruby
<Boohbah> Monofu: /join #rubyonrails
<Monofu> Boohbah: Yeah I just realized that this is the wrong room. Thanks! Going to cross post it now.
abstrusenick has joined #ruby
noganex has joined #ruby
abstrusenick has quit [Client Quit]
<shevy> Boohbah lol @ you announcing it ;)
<Boohbah> :D
mpereira has quit [Ping timeout: 245 seconds]
td123 has quit [Quit: WeeChat 0.3.8]
christo_m has joined #ruby
savage- has joined #ruby
kenperkins has quit [Quit: Computer has gone to sleep.]
schaerli has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
wvms has quit [Read error: Connection reset by peer]
wvms has joined #ruby
fayimora has quit [Quit: Busy…..zzzzz]
Jackneill has quit [Read error: Connection reset by peer]
fantazo has joined #ruby
rossfuhrman has joined #ruby
soulcake has quit [Quit: ZNC - http://znc.in]
jwbuurlage has joined #ruby
jwbuurlage has left #ruby [#ruby]
soulcake has joined #ruby
jwbuurlage has joined #ruby
cantonic has quit [Remote host closed the connection]
iceslice has quit [Quit: Page closed]
looopy has quit [Remote host closed the connection]
rushed has quit [Quit: rushed]
seitensei has joined #ruby
mdw_ has joined #ruby
Jackneill has joined #ruby
frishi has joined #ruby
kenperkins has joined #ruby
mdw has quit [Ping timeout: 260 seconds]
heftig has joined #ruby
chessguy has quit [Remote host closed the connection]
christo_m has quit [Ping timeout: 245 seconds]
bluenemo has quit [Read error: Connection reset by peer]
christo_m has joined #ruby
fserb has quit [Quit: ttyl]
indian has quit [Ping timeout: 245 seconds]
fserb has joined #ruby
savage- has quit [Remote host closed the connection]
looopy has joined #ruby
qwerxy has quit [Quit: offski]
schaerli has quit [Remote host closed the connection]
khakimov has quit [Quit: Computer has gone to sleep.]
Synthead has quit [Remote host closed the connection]
fayimora has joined #ruby
Synthead has joined #ruby
emet has quit [Remote host closed the connection]
cantonic has joined #ruby
LeoSh has joined #ruby
kenperkins has quit [Quit: Computer has gone to sleep.]
bradhe_ has joined #ruby
<LeoSh> is there a cleaner way to do this one liner? - first, second = name.split('::'); second ? [first, second] : [nil, first]
niklasb has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
Natch| has joined #ruby
Natch| has quit [Excess Flood]
digitalcakestudi has joined #ruby
Raduwen_ has joined #ruby
enroxorz has quit [Ping timeout: 245 seconds]
Raduwen__ has joined #ruby
berserkr has quit [Quit: Leaving.]
mikepack has joined #ruby
rippa has joined #ruby
Monofu has quit [Quit: quit]
jwbuurlage has left #ruby [#ruby]
Raduwen has quit [Ping timeout: 260 seconds]
werdnativ has joined #ruby
Raduwen_ has quit [Ping timeout: 260 seconds]
MasterIdler_ is now known as MasterIdler
Natch| has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
MasterIdler has quit [Quit: MasterIdler]
zeromodu_ has joined #ruby
quest88 has joined #ruby
looopy has quit [Remote host closed the connection]
azm has quit [Ping timeout: 240 seconds]
mnaser has quit [Quit: Computer has gone to sleep.]
looopy has joined #ruby
ZeroModulus has quit [Ping timeout: 265 seconds]
zeromodu_ has quit [Remote host closed the connection]
Vendethiel has joined #ruby
mrdtt has quit [Remote host closed the connection]
mdw_ has quit [Read error: Connection reset by peer]
mdw has joined #ruby
qwerxy has joined #ruby
kenperkins has joined #ruby
looopy has quit [Remote host closed the connection]
justsee has quit [Quit: Leaving...]
adamkittelson has joined #ruby
xaq has quit [Remote host closed the connection]
maccosmo has joined #ruby
qwerxy has quit [Client Quit]
Triston has joined #ruby
mdw has quit [Read error: Connection reset by peer]
simao has joined #ruby
simao has quit [Changing host]
simao has joined #ruby
mdw has joined #ruby
larissa has joined #ruby
Triston has quit [Client Quit]
ringotwo has joined #ruby
mdw_ has joined #ruby
snearch has quit [Quit: Verlassend]
dross_ is now known as insane_kangaroo
kenichi has joined #ruby
insane_kangaroo is now known as dross
mdw has quit [Ping timeout: 256 seconds]
Tricks has joined #ruby
kenperkins has quit [Quit: Computer has gone to sleep.]
ZeroModulus has joined #ruby
mdw_ has quit [Ping timeout: 260 seconds]
jackiechan0 has quit [Quit: Sto andando via]
mdw has joined #ruby
mxweas_ has joined #ruby
banjara has quit [Quit: Leaving.]
cpg|away is now known as cpg
simao has quit [Ping timeout: 265 seconds]
zaydana has quit [Quit: zaydana]
banister_ is now known as banisterfiend
niklasb has quit [Read error: Operation timed out]
Tricks has quit [Read error: No route to host]
christo_m has quit [Ping timeout: 240 seconds]
Tricks has joined #ruby
christo_m has joined #ruby
ringotwo has quit [Remote host closed the connection]
Tricks has quit [Read error: Connection reset by peer]
ringotwo has joined #ruby
dbgster has quit [Quit: dbgster]
niklasb has joined #ruby
qwerxy has joined #ruby
Tricks has joined #ruby
ronniy has quit [Remote host closed the connection]
Tricks has quit [Read error: Connection reset by peer]
RudyValencia has joined #ruby
Tricks has joined #ruby
kenichi has quit [Remote host closed the connection]
Monofu has joined #ruby
ringotwo_ has joined #ruby
srnty has quit [Ping timeout: 246 seconds]
jcromartie has quit [Read error: Connection reset by peer]
mrc has joined #ruby
jcromartie has joined #ruby
Tricks has quit [Ping timeout: 245 seconds]
mrc has left #ruby [#ruby]
mfridh has quit [Quit: ZNC - http://znc.in]
ringotwo has quit [Ping timeout: 240 seconds]
jcromartie has quit [Read error: Connection reset by peer]
Tricks has joined #ruby
kawaguchi has joined #ruby
kenperkins has joined #ruby
nowthatsamatt has joined #ruby
hunglin has joined #ruby
<shevy> LeoSh seems quite short already
srnty has joined #ruby
nowthatsamatt has left #ruby [#ruby]
<LeoSh> shevy: it is - I'm just new to ruby and wondering if there's a more rubylike way of soing that
nirakara has quit [Ping timeout: 248 seconds]
tintin has joined #ruby
tintin has left #ruby [#ruby]
ZachBeta has joined #ruby
Murr_ has joined #ruby
mxweas_ has quit [Quit: Computer has gone to sleep.]
krz has quit [Quit: krz]
Jackneill has quit [Remote host closed the connection]
Hounth has joined #ruby
Hounth has quit [Client Quit]
fayimora has quit [Ping timeout: 256 seconds]
Murr_ has quit [Remote host closed the connection]
christo_m has quit [Ping timeout: 260 seconds]
nirakara has joined #ruby
christo_m has joined #ruby
azm has joined #ruby
mikalv has quit [Ping timeout: 245 seconds]
mikalv has joined #ruby
maccosmo has quit [Quit: maccosmo]
maccosmo has joined #ruby
jimeh2 has quit [Ping timeout: 245 seconds]
eighty4_ is now known as eighty4
eighty4 has quit [Changing host]
eighty4 has joined #ruby
schickung has quit [Quit: schickung]
Monofu has quit [Quit: quit]
fayimora has joined #ruby
looopy has joined #ruby
LeoSh has quit []
cpg is now known as cpg|away
christo_m has quit [Ping timeout: 245 seconds]
christo_m has joined #ruby
looopy has quit [Remote host closed the connection]
niklasb has quit [Ping timeout: 244 seconds]
digitalcakestudi has quit [Ping timeout: 246 seconds]
looopy has joined #ruby
mdw has quit [Read error: Connection reset by peer]
mdw has joined #ruby
Bosma has joined #ruby
radic has quit [Ping timeout: 260 seconds]
christo_m has quit [Ping timeout: 246 seconds]
christo_m has joined #ruby
A1241 has left #ruby [#ruby]
bradhe has joined #ruby
Eldariof-ru has quit []
krusty_ar has quit [Read error: Connection reset by peer]
schovi has quit [Ping timeout: 252 seconds]
bradhe_ has quit [Ping timeout: 244 seconds]
evoltech has joined #ruby
krusty_ar has joined #ruby
<evoltech> how do I list the classes that have documentation for them on the system? Like is there a 'man -k <class_name>'?
robotmay has joined #ruby
medik has joined #ruby
<evoltech> it would be nice to read class documentation like man pages from the command line. Does this functionality exist?
<shevy> evoltech hmm not sure. there is the commandline tool ri and rdoc I think, perhaps it has such a switch
jeffreybaird has joined #ruby
<evoltech> shevy: great ri workks for what I need thanks!
sbanwart has quit [Quit: Konversation terminated!]
krusty_ar_ has joined #ruby
krusty_ar has quit [Ping timeout: 245 seconds]
tintin has joined #ruby
havenn has quit [Remote host closed the connection]
tintin has quit [Quit: tintin]
noganex has quit [Read error: Connection reset by peer]
pietr0 has quit [Remote host closed the connection]
heftig has quit [Quit: leaving]
jrist-afk is now known as jrist
akem has quit [Ping timeout: 245 seconds]
lkba has quit [Read error: Connection reset by peer]
AndChat- has joined #ruby
noganex has joined #ruby
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
cpg|away is now known as cpg
schovi has joined #ruby
tewecske has joined #ruby
schovi has quit [Remote host closed the connection]
<shevy> cool
<shevy> :)
fayimora has quit [Ping timeout: 245 seconds]
ryanf has joined #ruby
Vainoharhainen has quit [Ping timeout: 248 seconds]
niklasb has joined #ruby
cpg is now known as cpg|away
vlad_starkov has quit [Remote host closed the connection]
khakimov has joined #ruby
kenperkins has quit [Quit: Computer has gone to sleep.]
ryanf has quit [Ping timeout: 246 seconds]
fayimora has joined #ruby
<tommylommykins> hmm
ryanf has joined #ruby
* tommylommykins wonders what peoples opinions are on optional brackets in method calls in ruby
<tommylommykins> require('foo') looks odd to me,
<tommylommykins> but what about other things?
<epochwolf> tommylommykins: brackets are []
<tommylommykins> parentheses
<epochwolf> brackets = [], braces = {}, parentheses = ()
<epochwolf> angle brackets = <>
<epochwolf> tommylommykins: I use parens when I need to, otherwise I usually don't
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 260 seconds]
fayimora has quit [Client Quit]
elec has joined #ruby
mengu has quit [Remote host closed the connection]
<tommylommykins> style guides can get overprescriptive thoguh?
codespectator has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
elec has left #ruby ["Leaving"]
<epochwolf> tommylommykins: I think the guide says that. It's a guide, not the bible.
niklasb has quit [Ping timeout: 260 seconds]
adamkittelson has quit [Remote host closed the connection]
evoltech has quit [Quit: Leaving.]
niklasb has joined #ruby
dangerousdave has joined #ruby
<epochwolf> bible = follow exactly (exceptions: if jewish, ignore the second half, if christian, ignore the first half, if fundamentist christian, it all applies and execute anyone that doesn't agree)
sam113101 has quit [Remote host closed the connection]
evoltech has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
ZachBeta has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
perryh is now known as perryh_away
blacktulip has joined #ruby
digitalcakestudi has joined #ruby
banisterfiend has joined #ruby
CheeToS has joined #ruby
sam113101 has joined #ruby
thmzlt has joined #ruby
mohits has quit [Ping timeout: 260 seconds]
yannis has quit [Quit: yannis]
ryanf has quit [Quit: leaving]
rfitz has joined #ruby
jrist is now known as jrist-afk
rfitz has quit [Client Quit]
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
niklasb has quit [Ping timeout: 245 seconds]
kenperkins has joined #ruby
proghat has joined #ruby
rfitz has joined #ruby
rfitz has quit [Client Quit]
ryanf has joined #ruby
walterheck has joined #ruby
<walterheck> I did this, but it doesn't work properly: http://pastebin.com/f4vzz9d1
evoltech has quit [Quit: Leaving.]
<walterheck> it hangs on the line where it does blueprint create-node
<walterheck> anyone have any ideas?
<walterheck> (this is my first ruby code ever by the way
<epochwolf> walterheck: what happens when you run the command it hangs on manually?
<walterheck> it runs fine
evoltech has joined #ruby
<walterheck> there's a bunch of output and it creates a bunch f files
<epochwolf> walterheck: how long does it take when run manually
<walterheck> epochwolf: 1-2 seconds
<walterheck> I have waited 10 mins for the scripted version
bradhe has quit [Remote host closed the connection]
radic has joined #ruby
<epochwolf> walterheck: can you show the output of the command run manually and then the output of this script?
<walterheck> epochwolf: sure, hold on
<walterheck> (we're 18 hours into a hackathon, so keeping my eyes open is a challenge at the moment ;)
<epochwolf> wow.
<walterheck> superhappydevhouse in Singapore
<walterheck> free food, beer, coffee, wifi and hacking away
<walterheck> 5 oclock in the morning and still 20 people awake :)
<epochwolf> heh, I prefer to do work slowly and carefully.
<epochwolf> but I work on enterprise systems.
<epochwolf> I'll do what I can do help.
<walterheck> epochwolf: i like slow and lazy normally as well, but hackathons provide excellent chances to explore new tech
digitalcakestudi has quit [Quit: Leaving.]
digitalcakestudi has joined #ruby
<epochwolf> walterheck: does "blueprint create-node" need an interactive shell?
<walterheck> output from scripted run: http://pastebin.com/dRRjYJe1
tk___ has quit [Quit: ばいばい]
<walterheck> epochwolf: interactive run: http://pastebin.com/Z8ZqDm4R
<epochwolf> walterheck: try ssh root@10.0.1.39 "blueprint create debian-node-10062012045309" from your local console
<epochwolf> to execute the command in a non-interactive shell
<walterheck> epochwolf: ah, that hangs as well
<walterheck> what does that tell me?
<epochwolf> walterheck: there you go, it's not happy about the non-interactive shell
<walterheck> can i fake it into thinking it's in an interactive shell with Ruby?
evoltech has quit [Quit: Leaving.]
digitalcakestudi has quit [Ping timeout: 256 seconds]
jj`` has joined #ruby
<epochwolf> it's hanging on stdin, waiting for input
<epochwolf> when run in non-interactive mode, it does that
nirakara has quit [Read error: Connection reset by peer]
<epochwolf> walterheck: guessing here, but the --sh switch might kick it into the proper mode.
nirakara has joined #ruby
heftig has joined #ruby
<walterheck> epochwolf: hold on, let me try
rippa has quit [Ping timeout: 244 seconds]
evoltech has joined #ruby
<epochwolf> "If standard input is not a TTY, a blueprint is read from standard input rather than created from the system. See blueprint(5) for the details of the format"
<walterheck> epochwolf: this is the idea by the way: https://github.com/walterheck/cooltool
udante has quit [Quit: Leaving...]
<jj``> i'm writing a c++ program that loads libruby at runtime
<walterheck> epochwolf: I see :)
<jj``> on linux
<jj``> whenever i try to setup ruby in a thread that is not the main thread, ruby_init() segfaults
<jj``> it works fine with ruby1.8
mengu has joined #ruby
ZeroModulus has quit [Remote host closed the connection]
mengu has quit [Changing host]
mengu has joined #ruby
Beoran__ has quit [Ping timeout: 265 seconds]
<jj``> how can i make this work ?
<epochwolf> walterheck: I don't think --sh is what you want, I'll look for a ruby solution
<walterheck> epochwolf: yeah, it doesn't seem to work indeed
mdw has quit [Read error: Connection reset by peer]
mdw has joined #ruby
noganex has quit [Read error: Connection reset by peer]
weeb1e has joined #ruby
<epochwolf> walterheck: okay, stupid thought, you can launch an interactive subshell from a non-interactive one?
<epochwolf> prehaps by doing something with screen or tmux?
schovi has joined #ruby
<epochwolf> jj``: which ruby version?
<walterheck> epochwolf: sounds pretty hacky, doesn't it?
<walterheck> :)
<epochwolf> walterheck: I said it was stupid.
Kabaka has quit [Remote host closed the connection]
olrrai has quit [Ping timeout: 260 seconds]
<epochwolf> walterheck: you're at a hackthon, stupid but working code is prefered over non-working code.
<walterheck> epochwolf: nevertheless, 18 hours into a hackathon this is allowed :)
evoltech has quit [Ping timeout: 244 seconds]
<weeb1e> If anyone here happens to work with SourceMod in C++, drop me a message. Looking for someone interested in helping build an interface for mruby which I have embedded into SourceMod.
cpg|away is now known as cpg
<epochwolf> walterheck: Evil thought, set $PS1 before running that command.
Kabaka has joined #ruby
<epochwolf> walterheck: depending on what that script is keying off of it might be tricked into working.
proghat has quit [Ping timeout: 246 seconds]
<epochwolf> wait, nevermind, it expects STDIN to be a tty
ukd1 has joined #ruby
noganex has joined #ruby
<ukd1> Is there an easy way to not return something when using map?
<epochwolf> walterheck: /bin/bash -i "command"
<shevy> ukd1 hardly. .map means "work on each element and then return that"
minijupe has quit [Quit: minijupe]
<shevy> %w( abc def ).map(&:size) # => [3, 3]
<banisterfiend> ukd1: why would u not want to return something, map() is used for its retrn value, not its side effects
<epochwolf> ukd1: you can do [].map{|v| v.size == 0 ? nil : v.size }.compat
<epochwolf> compat removes nils from an array
<ukd1> perhaps I'm using it for the wrong thing - I just want to loop around each item and store the result in another array, but skip some
<epochwolf> ukd1: if you just want to remove stuff, use reject_if
zealinux has joined #ruby
Vainoharhainen has joined #ruby
blast_hardcheese has quit [Read error: Connection reset by peer]
<shevy> yeah
<epochwolf> ukd1: that's two steps, a remove operation and a map operation.
<shevy> it'll return your result in array form
Guest20110 has joined #ruby
<walterheck> epochwolf: http://pastebin.com/s0i3WBQH
<ukd1> awesome - compact
<ukd1> :D
riush has joined #ruby
<jj``> epochwolf: meh, it works with ruby1.9.3, i had ruby1.9.0, dumb debian
<jj``> thank
<jj``> s
<epochwolf> walterheck: crap
<epochwolf> jj``: yeah, if you're messing with C, you need to get the version right.
<walterheck> epochwolf: and another version of that : http://pastebin.com/0G7bmtX5
nirakara has quit [Quit: This computer has gone to sleep]
CannedCorn has joined #ruby
<epochwolf> walterheck: crap, no ideas. :(
<walterheck> epochwolf: in man bash I read:
<walterheck> An interactive shell is one started without non-option arguments and without the -c option whose standard input and error are both connected to terminals
<walterheck> (as determined by isatty(3)), or one started with the -i option. PS1 is set and $- includes i if bash is interactive, allowing a shell script or a
<walterheck> crap, sorry for the paste
<walterheck> startup file to test this state.
zealinux has quit [Ping timeout: 260 seconds]
cpg is now known as cpg|away
fserb has quit [Quit: ttyl]
ryanf has quit [Quit: leaving]
ryanf has joined #ruby
akem has quit [Read error: Connection reset by peer]
<epochwolf> that should allow you to get an interactive session via ssh instead of dicking around on the server.
<epochwolf> walterheck: also, this shit is buried. It's hard to find this stuff :D
Markvilla has quit [Quit: Markvilla]
heftig has quit [Ping timeout: 245 seconds]
niklasb has joined #ruby
heftig has joined #ruby
Markvilla has joined #ruby
akem has joined #ruby
brianpWins has quit [Ping timeout: 244 seconds]
jrallison has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
itnomad has joined #ruby
dcorbin has joined #ruby
nipra has quit [Ping timeout: 252 seconds]
<epochwolf> walterheck: okay, I need to head home.I don't plan on jumping back online but if it's an emergency, you can email me at epochwolf@gmail.com. I'll have my phone with me. :)
<epochwolf> It should only take me 20 minutes or so to get back.
<walterheck> epochwolf: thanks, i'll figure it out!
<epochwolf> get back home*
Guest20110 has quit [Ping timeout: 265 seconds]
noganex has quit [Ping timeout: 244 seconds]
<walterheck> thanks a bunch for the leads, I thought I was going insane :)
nilg` has quit [Remote host closed the connection]
larissa has quit [Quit: Saindo]
minijupe has joined #ruby
jamesaxl has joined #ruby
Guest20110 has joined #ruby
johnwarren has joined #ruby
noganex has joined #ruby
brianpWins has joined #ruby
cpg|away is now known as cpg
qwerxy has quit [Quit: offski]
noganex has quit [Ping timeout: 260 seconds]
klip has quit [Ping timeout: 252 seconds]
nipra has joined #ruby
jj`` has left #ruby [#ruby]
mxweas_ has joined #ruby
niku4i has joined #ruby
ryanf has quit [Ping timeout: 260 seconds]
ringotwo_ has quit [Remote host closed the connection]
noganex has joined #ruby
savage- has joined #ruby
<johnwarren> Newbie question about gems and dependencies. I have installed the gem thor (0.15.2). But when I try to install the E-commerce Ruby software "spree," it throws an error about how the gem "railties" requires thor (~> 0.14.6, runtime). Wonder what I should do? Any help much appreciated.
cousine has joined #ruby
minijupe has quit [Quit: minijupe]
cousine has quit [Remote host closed the connection]
<Nitrodist> johnwarren: ~> means that it requiers version 0.14.x
<Boohbah> gem 'thor', '~> 0.14.6'
niku4i has quit [Ping timeout: 265 seconds]
mnaser has joined #ruby
mnaser has quit [Changing host]
mnaser has joined #ruby
<Boohbah> johnwarren: in your Gemfile
<johnwarren> Oh, OK, so mine is too new and I should revert to the older one?
<Nitrodist> johnwarren: is there a Gemfile in the directory? you use the bundle command to automatically handle gem dependencies
<johnwarren> Nitrodist: OK…i just installed bundler and hope this will help
noganex has quit [Ping timeout: 240 seconds]
<johnwarren> Thanks.
krusty_ar_ has quit [Remote host closed the connection]
johnwarren has quit [Quit: johnwarren]
c0rn_ has joined #ruby
noganex has joined #ruby
looopy has quit [Remote host closed the connection]
fserb has joined #ruby
yxhuvud has quit [Ping timeout: 245 seconds]
ukd1 has quit [Ping timeout: 246 seconds]
ryanf has joined #ruby
noganex has quit [Ping timeout: 248 seconds]
Vendethiel has quit [Ping timeout: 245 seconds]
tewecske has quit [Quit: Leaving.]
c0rn_ has quit []
noganex has joined #ruby
<Nitrodist> johnduhart: got it sorted out?
zaychenok has joined #ruby
* johnduhart shurgs
wallerdev has quit [Quit: wallerdev]
noganex has quit [Ping timeout: 256 seconds]
Vendethiel has joined #ruby
blacktulip has quit [Remote host closed the connection]
zaychenok has quit [Quit: Page closed]
balki has joined #ruby
frishi has quit [Quit: Leaving...]
mxweas_ has quit [Quit: Computer has gone to sleep.]
friskd has joined #ruby
balki_ has quit [Ping timeout: 245 seconds]
ZeroModulus has joined #ruby
yoklov has joined #ruby
mxweas_ has joined #ruby
Kabaka has quit [Read error: Connection reset by peer]
ZeroModulus has quit [Ping timeout: 244 seconds]
Kabaka has joined #ruby
wallerdev has joined #ruby
recursive has joined #ruby
flype has joined #ruby
savage- has quit [Remote host closed the connection]
nooodl has quit [Ping timeout: 244 seconds]
mystictree has joined #ruby
jeffreybaird_ has joined #ruby
Natch| has quit [Read error: Connection reset by peer]
ringotwo has joined #ruby
schovi has quit [Remote host closed the connection]
Natch| has joined #ruby
ringotwo has quit [Remote host closed the connection]
<shevy> jondyoghurt!
cjs226 has joined #ruby
jenrzzz-mac has joined #ruby
looopy has joined #ruby
noganex has joined #ruby
cespare has quit [Ping timeout: 244 seconds]
Guest20110 has quit [Ping timeout: 245 seconds]
mystictree has left #ruby ["WeeChat 0.3.8"]
lopin has quit []
Beoran4 has joined #ruby
minijupe has joined #ruby
mdw has quit [Remote host closed the connection]
gregorg_taf has joined #ruby
gregorg has quit [Read error: Connection reset by peer]
coolwate_ has quit [Remote host closed the connection]
looopy has quit [Remote host closed the connection]
aige has quit [Quit: ...]
mvangala_home has quit [Ping timeout: 245 seconds]
jeffreybaird has quit [Quit: Page closed]
jeffreybaird_ is now known as jeffreybaird
Pedro has joined #ruby
zealinux has joined #ruby
saschagehlich has joined #ruby
igotnolegs has joined #ruby
azm has quit [Ping timeout: 256 seconds]
Vainoharhainen has quit [Quit: Leaving...]
looopy has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
Vainoharhainen has joined #ruby
olrrai has joined #ruby
andrewhl has quit [Read error: No route to host]
CheeToS has quit [Ping timeout: 252 seconds]
phidev has quit [Ping timeout: 252 seconds]
andrewhl has joined #ruby
nipra has quit [Ping timeout: 244 seconds]
robotmay has quit [Remote host closed the connection]
Tricks has quit [Remote host closed the connection]
Tricks has joined #ruby
nowthatsamatt has joined #ruby
Pedro has left #ruby [#ruby]
Tricks has quit [Remote host closed the connection]
Tricks has joined #ruby
zealinux has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
Tricks has quit [Remote host closed the connection]
td123 has joined #ruby
centipedefarmer has joined #ruby
carloslopes has joined #ruby
Tryke has joined #ruby
RBV has joined #ruby
looopy_ has joined #ruby
flype has quit [Quit: Computer has gone to sleep.]
recursive has quit [Quit: leaving]
evoltech has joined #ruby
looopy has quit [Ping timeout: 244 seconds]
S2kx has joined #ruby
S1kx has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
`brendan has joined #ruby
carloslopes has quit [Quit: Leaving]
carloslopes has joined #ruby
user__ has joined #ruby
akem has quit [Read error: Connection reset by peer]
brianpWins has quit [Ping timeout: 260 seconds]
Vendethiel has quit [Quit: je ne suis plus là, tqvu]
andrewhl has quit [Read error: Connection reset by peer]
andrewhl has joined #ruby
kawaguchi has quit [Ping timeout: 240 seconds]
blast_hardcheese has joined #ruby
centipedefarmer has quit [Quit: Leaving]
cantonic has quit [Quit: cantonic]
igotnolegs has quit [Quit: Computer has gone to sleep.]
Synthead has quit [Quit: p33 ba115]
heftig has quit [Quit: leaving]
minijupe has quit [Quit: minijupe]
<shevy> I want mRuby to power the rubyOS
<shevy> Hanmac should build a C++ scaffold for that :D
heftig has joined #ruby
fserb has quit [Quit: ttyl]
iocor has quit [Quit: Computer has gone to sleep.]
fserb has joined #ruby
larissa has joined #ruby
maccosmo_ has joined #ruby
maccosmo has quit [Ping timeout: 240 seconds]
maccosmo_ is now known as maccosmo