apeiros changed the topic of #ruby-lang to: Nick registration required to talk || Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com
ryotarai has quit [Client Quit]
ryotarai has joined #ruby-lang
pr0ton has joined #ruby-lang
ryotarai has quit [Client Quit]
ryotarai has joined #ruby-lang
pr0ton has quit [Client Quit]
ryotarai has quit [Client Quit]
ryotarai has joined #ruby-lang
kgrz has joined #ruby-lang
iliketurtles has joined #ruby-lang
stamina has joined #ruby-lang
pr0ton has joined #ruby-lang
GaelanAintAround is now known as Gaelan
Gaelan is now known as GaelanAintAround
tylersmith has quit [Remote host closed the connection]
kgrz has quit [Ping timeout: 265 seconds]
stamina has quit [Ping timeout: 264 seconds]
GaelanAintAround is now known as Gaelan
mannyt has joined #ruby-lang
saarinen has quit [Quit: saarinen]
a1ph4g33k has quit [Quit: Leaving]
mistym has quit [Quit: Leaving]
micalexander has quit [Remote host closed the connection]
micalexander has joined #ruby-lang
micalexander has quit [Ping timeout: 240 seconds]
lfox has joined #ruby-lang
kurko_ has quit [Ping timeout: 264 seconds]
bastilian has quit [Quit: Linkinus - http://linkinus.com]
hogeo has joined #ruby-lang
kurko_ has joined #ruby-lang
Andrevan has quit [Quit: WeeChat 0.4.2-rc1]
Coincidental has quit [Remote host closed the connection]
Asher2 has quit [Quit: Leaving.]
Asher has joined #ruby-lang
Coincidental has joined #ruby-lang
bastilian has joined #ruby-lang
GeissT has joined #ruby-lang
Johz has quit [Quit: Leaving]
Coincidental has quit [Ping timeout: 248 seconds]
jejacks0n has joined #ruby-lang
benlovell has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
Coincidental has joined #ruby-lang
havenwood has joined #ruby-lang
Kabaka has quit [Remote host closed the connection]
benlovell has quit [Ping timeout: 240 seconds]
iliketurtles has quit [Quit: zzzzz…..]
EvolutionXJ has joined #ruby-lang
mark06 has joined #ruby-lang
tkuchiki has joined #ruby-lang
<jejacks0n> Hi.
Kabaka has joined #ruby-lang
<jejacks0n> I've faced this issue before, and I don't need code or anything, but I wanted to see if there were any novel approaches to the problem. I'm considering writing a gem that uses ActiveModel::Serializers to collect those serializers into JSON, which can then be used to help document an api resources, or to generate client friendly representations of your resources -- eg. backbone/spine models.
havenwood has quit [Ping timeout: 245 seconds]
kgrz has joined #ruby-lang
<jejacks0n> I know I can use #descendants, but the serializers are autoloaded.
<jejacks0n> so, do I require every file in a given path, or is there a nicer way to accomplish this?
Nortmobile has joined #ruby-lang
<jejacks0n> think annotate_models or something similar, but for serializers (since that what a client would care about).
shinnya has quit [Ping timeout: 264 seconds]
EvolutionXJ has quit [Quit: Leaving]
<jejacks0n> is this maybe not ruby-lang enough for here?
<mark06> why there are two channels, #ruby and #ruby-lang?
<mark06> I don't remember why I'm using Ruby 1.8, any particular reason for not upgrading to 1.9? I found out e.g. 1.23.round(2) does not work in 1.8
kgrz has quit [Ping timeout: 248 seconds]
hahuang65 has quit [Ping timeout: 264 seconds]
knu has quit [Ping timeout: 248 seconds]
kurko_ has quit [Quit: Computer has gone to sleep.]
jonathanmarvens has quit [Remote host closed the connection]
fosky has joined #ruby-lang
fosky has quit [Client Quit]
tylersmith has joined #ruby-lang
bungoman has joined #ruby-lang
nathanstitt has joined #ruby-lang
tylersmith has quit [Ping timeout: 240 seconds]
jejacks0n has quit [Quit: jejacks0n]
lfox has quit []
tylersmith has joined #ruby-lang
eoinkelly_ has joined #ruby-lang
eoinkelly_ has left #ruby-lang [#ruby-lang]
ldnunes has quit [Quit: Leaving]
iliketurtles has joined #ruby-lang
cored has joined #ruby-lang
Gaelan is now known as GaelanAintAround
mark06 has left #ruby-lang [#ruby-lang]
Coincidental has quit [Remote host closed the connection]
Coincidental has joined #ruby-lang
pr0ton has quit [Ping timeout: 264 seconds]
mistym has joined #ruby-lang
Coincidental has quit [Ping timeout: 240 seconds]
deception has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
cored has quit [Ping timeout: 240 seconds]
cored has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
mannyt has quit [Ping timeout: 245 seconds]
micalexander has joined #ruby-lang
mannyt has joined #ruby-lang
charliesome has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
GaelanAintAround is now known as Gaelan
kurko_ has joined #ruby-lang
fijimunkii has quit [Ping timeout: 252 seconds]
Gaelan is now known as GaelanAintAround
nvg has quit [Quit: ircII EPIC5-1.1.2 -- Are we there yet?]
pkrnj has quit [Quit: Computer has gone to sleep.]
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
mistym has quit [Remote host closed the connection]
fuhgeddaboudit has joined #ruby-lang
epitron has joined #ruby-lang
<epitron> has anyone seen this before? https://gist.github.com/6911890
<epitron> i'm not sure which version of ruby this appeared in, but i've bumped into it a few times recently
pkrnj has joined #ruby-lang
kgrz has joined #ruby-lang
robbyoconnor has joined #ruby-lang
kgrz has quit [Ping timeout: 248 seconds]
<charliesome> epitron: it's been around for ages i'd say
<epitron> what's the deal? is it implicitly reading from ARGF or something?
jonathanmarvens has joined #ruby-lang
<charliesome> epitron: yeah
<charliesome> epitron: use $stdin.gets instead to fix it
<epitron> that's so weird
kireevco_ has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
JoshuaPaling has quit [Quit: Textual IRC Client: www.textualapp.com]
jonathanmarvens has quit [Remote host closed the connection]
nisstyre has quit [Ping timeout: 265 seconds]
kireevco_ has quit [Ping timeout: 248 seconds]
flip_digits has quit [Remote host closed the connection]
nisstyre has joined #ruby-lang
mannyt has quit [Quit: mannyt]
GaelanAintAround is now known as Gaelan
hahuang65 has joined #ruby-lang
Gaelan is now known as GaelanAintAround
kireevco_ has joined #ruby-lang
kurko_ has quit [Quit: Computer has gone to sleep.]
havenwood has joined #ruby-lang
imperator has joined #ruby-lang
intellitech has joined #ruby-lang
robbyoconnor has quit [Max SendQ exceeded]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benlovell has joined #ruby-lang
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
kurko_ has joined #ruby-lang
mmorga has joined #ruby-lang
benlovell has quit [Ping timeout: 265 seconds]
kurko_ has quit [Client Quit]
io_syl has quit []
cored has quit [Ping timeout: 248 seconds]
Guest__ has joined #ruby-lang
soba has joined #ruby-lang
fuhgeddaboudit has quit [Ping timeout: 240 seconds]
kgrz has joined #ruby-lang
mmorga has quit [Read error: Connection reset by peer]
mistym has joined #ruby-lang
<imperator> evenin'
knu has joined #ruby-lang
<havenwood> g
<havenwood> g'eve*
Guest__ has quit [Quit: Textual IRC Client: www.textualapp.com]
kgrz has quit [Ping timeout: 245 seconds]
soba has quit [Ping timeout: 248 seconds]
kenta_ has quit [Remote host closed the connection]
kenta_ has joined #ruby-lang
<micalexander> When would be the best time to use a class variable vs an attr_accessor
<micalexander> Im wondering if im using them wrong
rafeed has joined #ruby-lang
rafeed has quit [Client Quit]
hahuang65 has quit [Ping timeout: 245 seconds]
<imperator> micalexander, do you need something that propogates through subclasses?
<imperator> if not, attr_accessor
<imperator> that's my rule, anyway
<micalexander> imperator: no, just need it to be available through out the whole class
kenta_ has quit [Ping timeout: 248 seconds]
<havenwood> micalexander: then @class_instance_variables not @@class_variables, and attrs as needed if you wish to expose em
<micalexander> havenwood: cool dont need to expose them just needs to access them with in the class
ta_ has quit [Remote host closed the connection]
<micalexander> havenwood: actually I might need to us it out side the class by another class. In that case do I need to use a class variable
<micalexander> ?
<havenwood> micalexander: instance variables can be exposed via methods
nathanstitt has quit [Quit: I growing sleepy]
<havenwood> micalexander: Here's a nice read: http://www.rubyist.net/~slagell/ruby/accessors.html
knu has quit [Ping timeout: 248 seconds]
<micalexander> havenwood: just like class variables using Module::Class.method ? Without having to instantiate it?
<imperator> micalexander, if you used a class accessor, you can just call YourClass.foo
<imperator> class Foo; class << self; attr_accessor stuff; end; end
<imperator> Foo.stuff =1; Foo.stuff # => 1
<micalexander> is there a class accessor? or do I have to create a reader and writer?
<havenwood> micalexander: there are class methods and instance methods, you can expose an instance variable by either
<havenwood> micalexander: ^ is like `def self.the_ivar_exposing_method`
<imperator> micalexander, you'll have to roll your own accessor for a class variable, unless you use a 3rd party lib
fijimunkii has joined #ruby-lang
<micalexander> like rails has cattr right?
<havenwood> micalexander: in general just avoid @@ class variables imho
<imperator> ^
jithu has joined #ruby-lang
<micalexander> havenwood: imperator: thanks for the help
faces has quit [Ping timeout: 245 seconds]
ecnalyr has joined #ruby-lang
woollyams has joined #ruby-lang
<micalexander> imperator: Im looking at this piece of code class Foo; class << self; attr_accessor stuff; end; end really not catching what its doing?
tomzx_mac has quit [Read error: Operation timed out]
Coincidental has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
<imperator> in short, class variable vs class instance variable.
deception has quit [Quit: Goodbye]
havenwood has joined #ruby-lang
Coincidental has quit [Remote host closed the connection]
Coincidental has joined #ruby-lang
havenwood has quit [Read error: Connection reset by peer]
Oloryn_lt2 has joined #ruby-lang
imperator has left #ruby-lang ["Leaving"]
Coincidental has quit [Ping timeout: 248 seconds]
io_syl has joined #ruby-lang
kgrz has joined #ruby-lang
hahuang65 has joined #ruby-lang
ingof has joined #ruby-lang
dhruvasagar has joined #ruby-lang
jithu has quit [Quit: Mother, did it need to be so high?]
hagabaka has joined #ruby-lang
ingof has quit [Ping timeout: 248 seconds]
soba has joined #ruby-lang
jonathanmarvens has joined #ruby-lang
iliketurtles has joined #ruby-lang
hahuang65 has quit [Ping timeout: 240 seconds]
soba_ has joined #ruby-lang
fuhgeddaboudit has joined #ruby-lang
jonathanmarvens has quit [Remote host closed the connection]
kireevco_ has quit [Remote host closed the connection]
soba has quit [Ping timeout: 248 seconds]
ecnalyr has quit [Remote host closed the connection]
ecnalyr has joined #ruby-lang
fragamus has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
diegoviola has joined #ruby-lang
jonathanmarvens has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
kgrz has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
kgrz has quit [Ping timeout: 248 seconds]
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
hahuang65 has joined #ruby-lang
Coincidental has joined #ruby-lang
mdedetrich has joined #ruby-lang
alexju has joined #ruby-lang
heftig has quit [Quit: Quitting]
robbyoconnor has joined #ruby-lang
sevvie has quit [Read error: Connection reset by peer]
sevvie has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
hahuang65 has quit [Ping timeout: 264 seconds]
ledestin has quit [Ping timeout: 252 seconds]
benlovell has joined #ruby-lang
iliketurtles has joined #ruby-lang
jonathanmarvens has quit [Remote host closed the connection]
benlovell has quit [Read error: Operation timed out]
jsullivandigs has quit [Ping timeout: 245 seconds]
hahuang65 has joined #ruby-lang
kitak has quit [Read error: Connection reset by peer]
kitak_ has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
woollyams has joined #ruby-lang
jsullivandigs has joined #ruby-lang
fosky_ has quit [Ping timeout: 248 seconds]
fuhgeddaboudit has quit [Ping timeout: 248 seconds]
momomomomo has joined #ruby-lang
sevvie has quit [Quit: leaving]
bungoman has quit [Remote host closed the connection]
bungoman has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
woollyams has quit [Ping timeout: 252 seconds]
bungoman has quit [Ping timeout: 252 seconds]
JohnBat26 has joined #ruby-lang
headius has quit [Quit: headius]
vbatts has quit [Ping timeout: 245 seconds]
arBmind has joined #ruby-lang
vbatts has joined #ruby-lang
fosky_ has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
jsullivandigs has quit [Ping timeout: 264 seconds]
mdedetrich has joined #ruby-lang
knu has joined #ruby-lang
jithu has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
schaerli has joined #ruby-lang
apeiros has joined #ruby-lang
jsullivandigs has joined #ruby-lang
kgrz has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby-lang
kenta_ has joined #ruby-lang
apeiros has quit [Ping timeout: 248 seconds]
schaerli has quit [Ping timeout: 245 seconds]
iliketurtles has quit [Quit: zzzzz…..]
iliketurtles has joined #ruby-lang
ruby-lang246 has joined #ruby-lang
ruby-lang246 has left #ruby-lang [#ruby-lang]
iliketurtles has quit [Ping timeout: 264 seconds]
postmodern has quit [Quit: Leaving]
postmodern has joined #ruby-lang
infecto_ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
Tearan has joined #ruby-lang
momomomomo has joined #ruby-lang
havenwood has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
jonathanmarvens has joined #ruby-lang
mistym has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
jonathanmarvens has quit [Remote host closed the connection]
fosky_ has quit [Ping timeout: 265 seconds]
knu has quit [Ping timeout: 248 seconds]
iliketurtles has joined #ruby-lang
iliketurtles has quit [Ping timeout: 252 seconds]
Tearan has quit [Quit: Sleepy Badger....]
ryanf has joined #ruby-lang
bf4 has joined #ruby-lang
toretore has quit [Read error: No route to host]
toretore has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 248 seconds]
skade has joined #ruby-lang
mdedetrich has joined #ruby-lang
schaerli has joined #ruby-lang
kitak_ has quit [Remote host closed the connection]
kitak has joined #ruby-lang
infecto_ has quit [Ping timeout: 248 seconds]
iliketurtles has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
kenta_ has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
kenta_ has joined #ruby-lang
kenta_ has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
JohnBat26 has joined #ruby-lang
havenwood has quit [Read error: Connection reset by peer]
bf4 has quit [Ping timeout: 248 seconds]
arBmind has quit [Quit: Leaving.]
kenta_ has joined #ruby-lang
benlovell has joined #ruby-lang
mistym has quit [Remote host closed the connection]
stamina has joined #ruby-lang
benlovell has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
rolfb has joined #ruby-lang
h_kon has joined #ruby-lang
nettsundere has joined #ruby-lang
ingof has joined #ruby-lang
ingof has quit [Remote host closed the connection]
arBmind has joined #ruby-lang
alexju_ has joined #ruby-lang
tbuehlmann has joined #ruby-lang
sr78ger has joined #ruby-lang
alexju has quit [Ping timeout: 245 seconds]
mdedetrich has quit [Quit: Computer has gone to sleep.]
dagobah has joined #ruby-lang
Nortmobile has quit [Read error: Connection reset by peer]
Nortmobile has joined #ruby-lang
ta has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
mdedetrich has joined #ruby-lang
ta has quit [Remote host closed the connection]
banisterfiend has quit [Quit: Computer has gone to sleep.]
Oak has joined #ruby-lang
banisterfiend has joined #ruby-lang
tylersmith has quit [Ping timeout: 248 seconds]
nettsundere has quit [Quit: nettsundere]
io_syl has quit []
iliketurtles has quit [Quit: zzzzz…..]
majjoha has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby-lang
<majjoha> I've had some problems with my Ruby environment lately. When I try to install capybara-webkit, I receive a 'Failed to build gem native extension error' and I cannot really find out how to solve this error. I have pasted my terminal output here: https://gist.github.com/majjoha/5db5234e0d3765b18918 Can any of you give me a hint on what I am doing wrong?
nettsundere has joined #ruby-lang
schaerli has quit [Ping timeout: 252 seconds]
iliketurtles has joined #ruby-lang
iliketurtles has quit [Client Quit]
axsuul has joined #ruby-lang
caral has joined #ruby-lang
caral has left #ruby-lang [#ruby-lang]
Guest95586 has joined #ruby-lang
diegoviola has quit [Ping timeout: 240 seconds]
<maloik> majjoha: I would probably start by looking at xcode command line tools, gcc and all that
<maloik> don't know much about it but I get the feeling they're sometimes related
<maloik> What do you run in terms of OS ? Already on Mavericks ?
<majjoha> I recently updated them, so I think that might be why I've had these issues. Apparently, though, this error was caused by not having Qt installed.
<ndrst> maybe reinstall QT
<maloik> yep I've noticed that some of them need to be reinstalled
<maloik> still having some issues with homebrew/gcc etc myself
<maloik> but GM is now out so I hope everything will be fixed soon
<ndrst> try to resolve this first
<maloik> so I can at least install vim 7.4 without too much trouble
<majjoha> ndrst: More of less.
<ndrst> then make it more!
ta has joined #ruby-lang
alexju_ has quit [Remote host closed the connection]
<ndrst> (:
alexju has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
kek has joined #ruby-lang
ta has quit [Ping timeout: 248 seconds]
alexju has quit [Ping timeout: 248 seconds]
pglombardo has joined #ruby-lang
Coincidental has quit [Remote host closed the connection]
pglombar_ has joined #ruby-lang
Coincidental has joined #ruby-lang
skade has joined #ruby-lang
pglombardo has quit [Ping timeout: 248 seconds]
benlovell has joined #ruby-lang
Coincidental has quit [Ping timeout: 264 seconds]
<maloik> Is there anything like camelize, classify in ruby itself ?
<maloik> to turn 'some_task' into SomeTask
cnivolle has joined #ruby-lang
<maloik> or even just 'SomeTask' will do for now
<maloik> could use regexp here but meh
<yorickpeterse> morning
knu has joined #ruby-lang
kgrz has quit [Ping timeout: 245 seconds]
mdedetrich has quit [Quit: Computer has gone to sleep.]
relix has joined #ruby-lang
jonathanmarvens has joined #ruby-lang
x0f_ has joined #ruby-lang
<yorickpeterse> > Push random Gem
<yorickpeterse> > 29 downloads
<yorickpeterse> pretty sure 29 of those are bots
jiuweigui has quit [Quit: iQuit!]
jiuweigui has joined #ruby-lang
x0f has quit [Ping timeout: 240 seconds]
nettsundere has quit [Quit: nettsundere]
m6n has joined #ruby-lang
<yorickpeterse> https://npmjs.org/doc/files/package.json.html I...I....what?
adambeynon has joined #ruby-lang
pglombardo has joined #ruby-lang
ichilton has joined #ruby-lang
<ichilton> What's the best way of saying set x to x if it's defined, otherwise set it to ENV['x'] if it's defined, if not fall back and set x = y ?
<yorickpeterse> euh, wat
<ichilton> I thought I could say: x = x || ENV['x'] || y but it errors because x is undefined
pglombar_ has quit [Ping timeout: 245 seconds]
nettsundere has joined #ruby-lang
FlyingLeap has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
zz_dlu has quit [Ping timeout: 245 seconds]
GaelanAintAround has quit [Ping timeout: 240 seconds]
FlyingLeap has joined #ruby-lang
hhatch has joined #ruby-lang
zz_dlu has joined #ruby-lang
GaelanAintAround has joined #ruby-lang
heftig has joined #ruby-lang
nettsundere has quit [Quit: nettsundere]
jerrytgarcia has quit [Ping timeout: 264 seconds]
nettsundere has joined #ruby-lang
<joonty> ichilton: do you not want: x ||= (ENV['x'] || y)
symm- has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby-lang
<ljarvis> maloik: no, "some_task".gsub(/(?:^|_)(.)/) { $1.upcase }
hogeo has quit [Read error: Connection reset by peer]
<ljarvis> then use const_get
hogeo has joined #ruby-lang
<ljarvis> >> require 'optparse'; Object.const_get 'option_parser'.gsub(/(?:^|_)(.)/) { $1.upcase }
<ljarvis> awesome
elia has joined #ruby-lang
<ljarvis> eval-in__: BRO
nettsundere has quit [Quit: nettsundere]
hogeo has quit [Read error: Connection reset by peer]
<maloik> :D
hogeo has joined #ruby-lang
<ichilton> joonty: that looks good, but it seems it doesn't work in capistrano as it seems to need you to use exists?(:var) :(
<joonty> blergh
<ichilton> any ideas how to make it neater than this? - http://pastebin.com/DcyJuw56
<joonty> well ENV is still just a hash
<ichilton> yeah, sorry
<joonty> you could use fetch
<joonty> ENV.fetch('gw_user', user)
<ichilton> this seems ok I think:
arBmind has quit [Quit: Leaving.]
<joonty> ichilton: yeh, but you could reduce the inner `if` to `username = ENV.fetch('gw_user', user)`
<ichilton> ah, I see
<ichilton> what's fetch?
jithu_ has joined #ruby-lang
<gnufied> fetch is like []
<gnufied> except default value you can provide
<gnufied> ri Hash#fetch
<ichilton> ah, ok
<ichilton> thanks
jithu has quit [Ping timeout: 240 seconds]
<ichilton> So I guess I can reduce that back to one line with:
<ichilton> gw_user = ENV.fetch('gw_user', user) unless exists?(:gw_user)
<ichilton> humm, that's odd - that works, except if gw_user is already set, in which case it seems to mess it up
<ichilton> I guess it's trying to do: ENV.fetch('gw_user', user)) unless exists?(:gw_user) and assign the result of that to gw_user?
<postmodern> is there a way to combine readline and curses?
<postmodern> i want to write a little terminal console, where you have an output window and an input window
nettsundere has joined #ruby-lang
<postmodern> but curses doesn't support a history buffer
<joonty> ichilton: yeh i think so
Guest95586 is now known as diegoviola
<joonty> ichilton: maybe a ternary?
<ichilton> hmm, this is odd
<joonty> gw_user = exists?(:gw_user) ? gw_user : ENV.fetch...
benlovell has quit [Quit: leaving]
<ichilton> if I split it on to multiple lines like this:
<ichilton> unless exists?(:gw_user)
<ichilton> gw_user = ENV.fetch('gw_user', user)
<ichilton> end
jithu_ has quit [Ping timeout: 248 seconds]
<ichilton> it doesn't seem to work either - odd
benlovell has joined #ruby-lang
jithu has joined #ruby-lang
<joonty> ichilton: try defined? instead of exists?
<ichilton> nope
<joonty> and instead of the symbol, pass the actual variable
<joonty> so `defined?(gw_user)`
<ichilton> that's then using the ENV
<ichilton> so that condition was false
<joonty> and is that expected?
<ichilton> no
<joonty> bummer
<ichilton> I don't get why the above unless I pasted doesn't work...
<joonty> so gw_user is defined
<ichilton> yes
<joonty> try going back to exists? but still using the actual variable
<joonty> let's try ALL THE THINGS
<ichilton> drat, got to pop out
<ichilton> bbiab - thanks for your help
<joonty> np
CoreData has quit [Quit: CoreData]
CoreData has joined #ruby-lang
<maloik> is it me or could you just use gw_user ||= ENV.fetch... there ?
jithu_ has joined #ruby-lang
jithu has quit [Ping timeout: 265 seconds]
nettsundere has quit [Quit: nettsundere]
pglombardo has quit [Remote host closed the connection]
h_kon has quit [Remote host closed the connection]
nettsundere has joined #ruby-lang
h_kon has joined #ruby-lang
h_kon has quit [Remote host closed the connection]
kenta_ has quit [Remote host closed the connection]
jithu has joined #ruby-lang
kek has quit [Remote host closed the connection]
jithu_ has quit [Ping timeout: 264 seconds]
h_kon has joined #ruby-lang
Pupeno_ has joined #ruby-lang
Guest has joined #ruby-lang
kek has joined #ruby-lang
nofxx has quit [Ping timeout: 265 seconds]
arBmind has joined #ruby-lang
<ljarvis> correct
tbuehlmann has quit [Ping timeout: 264 seconds]
tbuehlmann has joined #ruby-lang
nettsundere has quit [Quit: nettsundere]
jithu_ has joined #ruby-lang
jithu has quit [Ping timeout: 248 seconds]
Johz has joined #ruby-lang
mhenrixon has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
MrZYX|off is now known as MrZYX
jsullivandigs has quit [Ping timeout: 265 seconds]
ScaredWee has joined #ruby-lang
weems has quit [Read error: Connection reset by peer]
hramrach has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby-lang
<ichilton> maloik: in ruby yet, but seemingly not in capistrano
Guest has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schaerli has joined #ruby-lang
mhenrixon has quit [Quit: Computer has gone to sleep.]
arBmind has quit [Quit: Leaving.]
<maloik> ichilton: what do you mean ?
<ichilton> maloik: in cap you have to do exists?(:var)
<maloik> makes no sense :/ it's regular ruby
<ichilton> *shrugs*
<ichilton> well it doesn't work...
<ichilton> x ||= y will *always* set x to the value of y in capistrano
apeiros has joined #ruby-lang
<maloik> :o
kitak has quit [Remote host closed the connection]
topaz has quit [Ping timeout: 246 seconds]
richardburton1 has joined #ruby-lang
richardburton has quit [Ping timeout: 240 seconds]
axsuul has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
barttenbrinke has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby-lang
symm- has quit [Ping timeout: 248 seconds]
schaerli has quit [Ping timeout: 248 seconds]
diegoviola has quit [Ping timeout: 248 seconds]
schaerli has joined #ruby-lang
<yorickpeterse> CTO having a go at Mongo
<yorickpeterse> because it's a slow pig again
nettsundere has joined #ruby-lang
<yorickpeterse> I should write "Learn Mongo the hard way", the first chapter would tell you how to install PostgreSQL/MySQL
mhenrixon has joined #ruby-lang
tonni has joined #ruby-lang
fijimunkii has quit [Ping timeout: 248 seconds]
rolfb has quit [Quit: Leaving...]
jithu_ has quit [Quit: Mother, did it need to be so high?]
jithu has joined #ruby-lang
Squarepy has joined #ruby-lang
Nortmobile has left #ruby-lang [#ruby-lang]
jithu has quit [Client Quit]
jithu has joined #ruby-lang
jithu is now known as Guest35850
Guest35850 has quit [Client Quit]
jithu_ has joined #ruby-lang
tonni has quit [Read error: Connection reset by peer]
tonni has joined #ruby-lang
mdedetrich has joined #ruby-lang
<ljarvis> fuck the dentist
<yorickpeterse> awww, brit bieber got a booboo? :>
ldnunes has joined #ruby-lang
<ljarvis> also i cant tell if relativeline in vim is more useful than the normal numbers
<ljarvis> yorickpeterse: lol speaking of 'bieber', zzak decided to bring that up with everyone at the gh drinkup
<yorickpeterse> haha what?
<ljarvis> srsly
<yorickpeterse> wait you mean just the term or that picture I shopped?
<ljarvis> the term haha, if he pulled the picture out i would be worried
<yorickpeterse> rofl
<ljarvis> also, not 1 person called me inkjet, so success \o/
arBmind has joined #ruby-lang
<yorickpeterse> took a bit longer going through the pile of screenshots
<yorickpeterse> put that on a business card :P
<yorickpeterse> ljarvis: will you be at dotRB?
<ljarvis> tbh it hides my forhead, which is bigger than an airport runway
Rarrikins has joined #ruby-lang
Rarrikins has left #ruby-lang [#ruby-lang]
<ljarvis> yorickpeterse: i dunno if i can afford it so prob not, its next friday eh?
<yorickpeterse> Yeah
<yorickpeterse> it was like...
jxie has quit [Ping timeout: 240 seconds]
<yorickpeterse> around 350 euros for me I think
<yorickpeterse> In total
<yorickpeterse> not that much
<ljarvis> heh
<yorickpeterse> 380 to be exact
topaz has joined #ruby-lang
kgrz_ has joined #ruby-lang
jithu_ has quit [Quit: Mother, did it need to be so high?]
jithu_ has joined #ruby-lang
jithu_ has quit [Client Quit]
barttenbrinke has quit [Remote host closed the connection]
jithu_ has joined #ruby-lang
kgrz has quit [Ping timeout: 252 seconds]
barttenbrinke has joined #ruby-lang
jithu_ has quit [Client Quit]
benlovell has quit [Ping timeout: 248 seconds]
jithu_ has joined #ruby-lang
kgrz_ has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
dhruvasagar has quit [Quit: leaving]
hogeo has quit [Remote host closed the connection]
barttenbrinke has quit [Ping timeout: 245 seconds]
hogeo has joined #ruby-lang
vlad_starkov has joined #ruby-lang
kgrz has quit [Ping timeout: 264 seconds]
xxaM has joined #ruby-lang
charliesome has joined #ruby-lang
hogeo has quit [Ping timeout: 265 seconds]
jithu_ is now known as jithu
jithu has quit [Quit: Mother, did it need to be so high?]
jithu has joined #ruby-lang
jithu has quit [Client Quit]
jithu has joined #ruby-lang
arBmind has quit [Ping timeout: 252 seconds]
arBmind1 has joined #ruby-lang
dhruvasa1ar has joined #ruby-lang
stamina has quit [Ping timeout: 264 seconds]
charliesome has quit [Ping timeout: 248 seconds]
Oak has quit [Quit: Later guys... :) (me liking http://hexchat.github.io/ very much)]
h_kon has quit [Remote host closed the connection]
h_kon has joined #ruby-lang
dhruvasa1ar has quit [Client Quit]
jithu_ has joined #ruby-lang
dhruvasagar has joined #ruby-lang
jithu has quit [Ping timeout: 248 seconds]
kek has quit [Remote host closed the connection]
kek has joined #ruby-lang
hatoishi has joined #ruby-lang
jonathanmarvens has quit [Remote host closed the connection]
jithu_ has quit [Client Quit]
jithu has joined #ruby-lang
diegoviola has joined #ruby-lang
kek has quit [Read error: Operation timed out]
h_kon has quit [Remote host closed the connection]
jonathanmarvens has joined #ruby-lang
h_kon has joined #ruby-lang
panpainter has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
heftig has quit [Ping timeout: 248 seconds]
benlovell has joined #ruby-lang
<ljarvis> set a new record of 1.3s for these rails tests
<ljarvis> cant for the life of my get them below 1s
breakingthings has joined #ruby-lang
nettsundere has quit [Quit: nettsundere]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
hatoishi has left #ruby-lang [#ruby-lang]
tonni has quit [Ping timeout: 265 seconds]
relix has joined #ruby-lang
xxaM has quit [Read error: Connection reset by peer]
tonni has joined #ruby-lang
cored has joined #ruby-lang
tonni has quit [Ping timeout: 248 seconds]
<yorickpeterse> that was without actually loading Rails right?
<workmad3> yorickpeterse: I'd be really impressed if rails loading was < 1s :D
<workmad3> yorickpeterse: I'd also go hunting for ljarvis's quantum supercomputer...
<yorickpeterse> dat secret sauce
<yorickpeterse> but no, Rails in <1s is impossibru
<workmad3> 'lets do our tests in a universe where we've already loaded rails!'
<yorickpeterse> Though I managed to get our average Rails engine to boot in about 6 seconds I think, which is still 5,5 seconds too much
jbsan has quit [Quit: jbsan]
tomzx_mac has joined #ruby-lang
soba_ has quit [Ping timeout: 240 seconds]
jvrmaia has joined #ruby-lang
<ljarvis> yeah no rails loading
<ljarvis> with rails loading its 3 seconds
<yorickpeterse> you cheating bastard
<ljarvis> i dont need rails for the unit tests
tonni has joined #ruby-lang
<yorickpeterse> "My Rails tests..." - doesn't load Rails
<ljarvis> :D
Ahti333 has joined #ruby-lang
<ljarvis> it's testing models and controllers for a rails app, id call that 'rails tests'
ryotarai has quit [Quit: ZNC - http://znc.in]
<yorickpeterse> meanwhile I'm dealing with Heisenbugs
ryotarai has joined #ruby-lang
<ljarvis> heisenlolz
<yorickpeterse> "What's that bro, you don't want to store X in collection Y? Ok, I'll remove it as expected" - X still stored in collection Y
<yorickpeterse> and it does indeed remove it properly
<yorickpeterse> so yeah, what the fuck
<yorickpeterse> the fact that this code is basically one big giant method doesn't really help either
kgrz has joined #ruby-lang
bungoman has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
kgrz has quit [Ping timeout: 264 seconds]
sr78ger has quit [Ping timeout: 264 seconds]
<ljarvis> inb4 debug.rb
kek has joined #ruby-lang
ryotarai has quit [Quit: ZNC - http://znc.in]
ryotarai has joined #ruby-lang
<yorickpeterse> I think I can write a Halloween story about these things
<yorickpeterse> 't was but a dark and windy night when Yorick was coding not very alone, in a room filled with horror and co-workers
ryotarai has quit [Quit: ZNC - http://znc.in]
ryotarai has joined #ruby-lang
kgrz has joined #ruby-lang
famemonster has joined #ruby-lang
Guest26260 has joined #ruby-lang
momomomomo has joined #ruby-lang
diegoviola has quit [Ping timeout: 252 seconds]
momomomomo has quit [Client Quit]
panpainter has quit [Quit: panpainter]
<maloik> Anyone here happen to know the proper way to do realtime logging in simple rack apps ?
<maloik> I just opened a file and redirected stdout there, but my puts messages are not showing up at all
<gnufied> did you try file_handle.sync = true ?
<maloik> never heard of that, lets see
<gnufied> ri IO#sync=
<gnufied> it may or may not give desired result though
headius has joined #ruby-lang
tbuehlmann has quit [Quit: Konversation terminated!]
<whitequark> maloik: do $stdout.flush after each complete message
<whitequark> sync=true is SLOW
<maloik> sync seems to work
<whitequark> strace it and you'll see
<maloik> well I was trying to get commonlogger to work but that didn't do a whole lot either
tbuehlmann has joined #ruby-lang
ryotarai has quit [Quit: ZNC - http://znc.in]
ryotarai has joined #ruby-lang
h_kon has quit [Remote host closed the connection]
<yorickpeterse> lololol found the Heisenbug
Guest26260 is now known as diegoviola
ryotarai has quit [Client Quit]
<yorickpeterse> http://hastebin.com/qiqovigala.diff the actual fix
<yorickpeterse> lol
ryotarai has joined #ruby-lang
<yorickpeterse> (that's the actual actual intended fix, it's not some dirty workaround)
ryotarai has quit [Client Quit]
alekst has joined #ruby-lang
ryotarai has joined #ruby-lang
alexju has joined #ruby-lang
kurko_ has joined #ruby-lang
kgrz has quit [Ping timeout: 252 seconds]
ryotarai has quit [Client Quit]
ryotarai has joined #ruby-lang
jithu_ has joined #ruby-lang
tonni has quit [Remote host closed the connection]
<maloik> :nerdrage: I'm clearly not getting this logging thing
stamina has joined #ruby-lang
jithu has quit [Ping timeout: 264 seconds]
ryotarai has quit [Client Quit]
ryotarai has joined #ruby-lang
diegoviola has quit [Ping timeout: 240 seconds]
topaz has quit [Changing host]
topaz has joined #ruby-lang
Nortmobile has joined #ruby-lang
ryotarai has quit [Quit: ZNC - http://znc.in]
ryotarai has joined #ruby-lang
panpainter has joined #ruby-lang
ryotarai has quit [Client Quit]
yorickpeterse is now known as yorick-cowboy
ryotarai has joined #ruby-lang
ryotarai has quit [Client Quit]
ryotarai has joined #ruby-lang
ryotarai has quit [Client Quit]
ryotarai has joined #ruby-lang
fuhgeddaboudit has joined #ruby-lang
jiuweigui has quit [Quit: iQuit!]
JohnBat26 has quit [Ping timeout: 248 seconds]
ryotarai has quit [Client Quit]
ryotarai has joined #ruby-lang
<rue_XIW> qiqovigala will be my new D&D name
tomzx_mac has quit [Ping timeout: 245 seconds]
mannyt has joined #ruby-lang
CoreData has quit [Ping timeout: 248 seconds]
pglombardo has joined #ruby-lang
kurko_ has quit [Ping timeout: 245 seconds]
mdedetrich has quit [Quit: Computer has gone to sleep.]
yorick-cowboy is now known as yorickpeterse
<micalexander> im getting an `initialize': undefined method `[]' for nil:NilClass (NoMethodError), I am passing this class a variable and trying to set two instance variables with it. When I change the instance variables (inside the initialize method) to class methods, it seems to work fine. Any ideas?
kurko_ has joined #ruby-lang
jerrytgarcia has joined #ruby-lang
kgrz has joined #ruby-lang
<ljarvis> micalexander: some code would help
robbyoconnor has quit [Ping timeout: 264 seconds]
<micalexander> ljarvis: ok one sec
adam__ has joined #ruby-lang
adam__ has quit [Remote host closed the connection]
fragamus has quit [Quit: Computer has gone to sleep.]
bean__ has joined #ruby-lang
nathanstitt has joined #ruby-lang
<micalexander> ljarvis: ok I've seem to have simulate the issue here https://eval.in/53766
nettsundere has joined #ruby-lang
blackcoffee89 has joined #ruby-lang
blackcoffee89 has quit [Client Quit]
<micalexander> ljarvis: ok I may have more to go on. I think the project path variable is nil
barttenbrinke has joined #ruby-lang
<ljarvis> micalexander: @config_settings is not set
<ljarvis> which means it's nil, and you're calling #[] on it
<micalexander> obviously in the url I provided it was nil, however in my code I forgot to add that it is being set like this @config_settings = Configuration.settings, from a class called configuration
<ljarvis> so you didn't add the part that's going wrong?
<ljarvis> that's not incredibly helpful to me
<micalexander> that part is added in my actual code
<ljarvis> then that's the problem, it's returning nil
<micalexander> I apologize, I did say I forgot to mention it
<ljarvis> micalexander: can you provide full working reproduction of your problem?
<micalexander> is it because I have it as an instance variable instead of a class variable
alexju has quit [Remote host closed the connection]
alexju has joined #ruby-lang
kenta_ has joined #ruby-lang
mhenrixon has quit [Quit: Computer has gone to sleep.]
<maloik> how do I automatically require the tasks dir in this app? https://github.com/hannesfostie/jekyll_catcher
<maloik> I used $:.unshift twice, first on current dir via File.dirname(__FILE__) and then on File.dirname(__FILE__ + '/tasks') but apparently that wasnt enough
rsl has quit [Quit: Textual IRC Client: www.textualapp.com]
mmorga has joined #ruby-lang
<ljarvis> maloik: just do require file
<ljarvis> maloik: the .rb suffix doesn't matter, and the path is absolute
<ljarvis> so the basename/extname stuff is superflous
<maloik> you're talking about line 8 right ?
mmorga has quit [Read error: Connection reset by peer]
<ljarvis> correct
<maloik> k lets see
<ljarvis> (you dont need to do any of the $:.unshift stuff either)
mmorga has joined #ruby-lang
enebo has joined #ruby-lang
<ljarvis> but i dont see that in your code even though you mentioned it
havenwood has joined #ruby-lang
tylersmith has joined #ruby-lang
<maloik> yea I'm in the process of debugging it
<maloik> it's being a big PITA
<ljarvis> :)
<ljarvis> Dir globbing returns absolute paths, so in general you can just throw the files at require
tubbo has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
yalue has joined #ruby-lang
VTLob has joined #ruby-lang
micalexander has quit [Remote host closed the connection]
<maloik> no clue why im getting uninitialized constant on that task class
<ljarvis> LocalDeploy?
micalexander has joined #ruby-lang
<maloik> one similar to that yea
Pupeno has joined #ruby-lang
Pupeno has joined #ruby-lang
Pupeno has quit [Changing host]
<maloik> basically the one in the examples dir copied into tasks/
<ljarvis> it's defined on JekyllCatcherTask not JekyllCatcher::Task
<maloik> (the repo is a bit of a mess atm)
mistym has joined #ruby-lang
<maloik> I know that one is wrong and shouldnt be in there
<ljarvis> ah
<ljarvis> heh
<maloik> example one should be fine
<ljarvis> it's being loaded correctly?
<maloik> you mean through the require ?
<ljarvis> yeah
<ljarvis> like, can you access the constant directly?
nettsundere has quit [Quit: nettsundere]
MaddinXx_ has joined #ruby-lang
fragamus has joined #ruby-lang
tkuchiki has quit [Ping timeout: 245 seconds]
<maloik> puts defined?(JekyllCatcher).to_s seems to return 'constant' lol
Pupeno_ has quit [Ping timeout: 248 seconds]
<workmad3> maloik: that's about right
<workmad3> maloik: defined? will return nil if the arg isn't defined, otherwise it'll return a string of what it is :)
nettsundere has joined #ruby-lang
<maloik> oh hold on
micalexander has quit [Ping timeout: 248 seconds]
<maloik> booyah
<maloik> the glob thing missed a /
fragamus has quit [Read error: Connection reset by peer]
<maloik> it said tasks/*.rb instead of /tasks
<ljarvis> :)
momomomomo has joined #ruby-lang
wallerdev has joined #ruby-lang
jondot has joined #ruby-lang
<maloik> alright, next up, debugging my actual jekyll build script
mistym has quit [Remote host closed the connection]
GeissT has quit [Ping timeout: 248 seconds]
<maloik> I wish I knew minitest properly, testdriving this thing would have been so much faster
<maloik> and I cba to use rspec on such a little app
<workmad3> maloik: minispec it?
nettsundere has quit [Quit: nettsundere]
<ljarvis> minitest is simple
<ljarvis> minitest/spec is nice if you're from rspec background
<maloik> still, not used to it especially something like this so I'd be suuuuuuper slow
nettsundere has joined #ruby-lang
<ljarvis> maloik: did you check marks talk at arrrrcamp?
<maloik> parts of it
<maloik> I think I saw about 25% of each talk
<yorickpeterse> Given you're on instance level of a class, is there a way to call a class method without using something along the lines of `self.class`?
<ljarvis> i guess you were super busy
<yorickpeterse> and without class_eval
<maloik> (both rooms as I was running around taking pics)
mmoore_ has joined #ruby-lang
<ljarvis> yorickpeterse: no, use self.class
<yorickpeterse> hm, guess I can hijack self.extended
<ljarvis> bro
<yorickpeterse> tl;dr: basically want instance variables on class level to be inherited
<workmad3> yorickpeterse: do you mean 'inherited' or 'easily accessible to instances'?
mhenrixon has joined #ruby-lang
<ljarvis> he wants "herp derp"
mbj has joined #ruby-lang
Pupeno_ has joined #ruby-lang
<yorickpeterse> basically a class variable that isn't a class variable
<yorickpeterse> here, sec
<yorickpeterse> hm wait, context probably easier
<yorickpeterse> tl;dr making some Sinatra-like option system, figured it would be neat to somehow inherit options
<yorickpeterse> but I have a better solution for this one particular case where I'd need that
Pupeno has quit [Ping timeout: 264 seconds]
mmorga has quit [Remote host closed the connection]
Squarepy has quit [Ping timeout: 245 seconds]
Ahti333 has quit [Ping timeout: 245 seconds]
mistym has joined #ruby-lang
rippa has joined #ruby-lang
jithu_ has quit [Quit: Mother, did it need to be so high?]
jithu has joined #ruby-lang
charliesome has joined #ruby-lang
vlad_starkov has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Remote host closed the connection]
nettsundere has quit [Quit: nettsundere]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
MaddinXx_ has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
kek has quit [Remote host closed the connection]
sevvie has joined #ruby-lang
apeiros has quit [Ping timeout: 252 seconds]
dwknoxy has joined #ruby-lang
jiuweigui has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 248 seconds]
bf4 has joined #ruby-lang
mhenrixon has quit [Quit: Computer has gone to sleep.]
45PAAB1XT has joined #ruby-lang
Ahti333 has joined #ruby-lang
benlovell has quit [Ping timeout: 248 seconds]
arBmind1 has quit [Quit: Leaving.]
mmorga has joined #ruby-lang
Ahti333 has quit [Ping timeout: 240 seconds]
Ahti333 has joined #ruby-lang
_jpb_ has quit [Quit: leaving]
_jpb_ has joined #ruby-lang
jxie has joined #ruby-lang
micalexander has joined #ruby-lang
imperator has joined #ruby-lang
dhruvasagar has joined #ruby-lang
shinnya has joined #ruby-lang
tbuehlmann has quit [Ping timeout: 264 seconds]
saarinen has joined #ruby-lang
Pupeno has joined #ruby-lang
benlovell has joined #ruby-lang
tbuehlmann has joined #ruby-lang
tkuchiki has joined #ruby-lang
deception has joined #ruby-lang
Pupeno_ has quit [Ping timeout: 248 seconds]
Squarepy has joined #ruby-lang
Ahti333 has quit [Quit: Textual IRC Client: www.textualapp.com]
Tearan has joined #ruby-lang
Tearan has quit [Client Quit]
banisterfiend has quit [Quit: Computer has gone to sleep.]
__butch__ has joined #ruby-lang
cnivolle_ has joined #ruby-lang
pellenation has joined #ruby-lang
bf4 has quit [Ping timeout: 264 seconds]
banisterfiend has joined #ruby-lang
barttenbrinke has quit [Remote host closed the connection]
barttenbrinke has joined #ruby-lang
cnivolle has quit [Ping timeout: 240 seconds]
schaerli has quit [Remote host closed the connection]
cnivolle_ has quit [Ping timeout: 252 seconds]
schaerli has joined #ruby-lang
barttenb_ has joined #ruby-lang
barttenbrinke has quit [Read error: Connection reset by peer]
schaerli has quit [Ping timeout: 248 seconds]
mmorga has quit [Remote host closed the connection]
tonni has joined #ruby-lang
mistym has quit [Remote host closed the connection]
skade has joined #ruby-lang
sepp2k has joined #ruby-lang
skade has quit [Client Quit]
rippa has quit [Ping timeout: 248 seconds]
skade has joined #ruby-lang
nofxx has joined #ruby-lang
barttenb_ has quit [Remote host closed the connection]
barttenbrinke has joined #ruby-lang
sevvie has quit [Quit: love, love, love, here it comes]
banisterfiend has quit [Quit: Computer has gone to sleep.]
gnufied has left #ruby-lang [#ruby-lang]
tonni has quit [Remote host closed the connection]
barttenbrinke has quit [Ping timeout: 248 seconds]
stevepsharpe has quit [Quit: Linkinus - http://linkinus.com]
Pupeno has quit [Ping timeout: 248 seconds]
workmad3_ has joined #ruby-lang
workmad3 has quit [Quit: leaving]
workmad3 has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
iliketurtles has joined #ruby-lang
bf4 has joined #ruby-lang
tkuchiki has quit [Ping timeout: 248 seconds]
mistym has joined #ruby-lang
Tearan has joined #ruby-lang
benlovell has quit [Ping timeout: 240 seconds]
gix has quit [Ping timeout: 248 seconds]
gix has joined #ruby-lang
ruby-lang has joined #ruby-lang
metus_violarium has joined #ruby-lang
ruby-lang has left #ruby-lang [#ruby-lang]
alexh1 has joined #ruby-lang
45PAAB1XT has quit [Ping timeout: 248 seconds]
Tearan has quit [Quit: Sleepy Badger....]
iliketurtles has quit [Quit: zzzzz…..]
kek has joined #ruby-lang
Tearan has joined #ruby-lang
workmad3_ has joined #ruby-lang
workmad3_ has quit [Client Quit]
alexju has quit [Remote host closed the connection]
alexju has joined #ruby-lang
LanceHaig has joined #ruby-lang
apeiros has joined #ruby-lang
iliketurtles has joined #ruby-lang
alexju has quit [Ping timeout: 252 seconds]
hahuang65 has quit [Ping timeout: 248 seconds]
io_syl has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 252 seconds]
workmad3 has quit [Quit: leaving]
workmad3 has joined #ruby-lang
heftig has joined #ruby-lang
kenta_ has quit [Remote host closed the connection]
kenta_ has joined #ruby-lang
elia has quit [Ping timeout: 248 seconds]
Forgetful_Lion has quit [Remote host closed the connection]
kenta_ has quit [Ping timeout: 248 seconds]
ScaredWee has left #ruby-lang [#ruby-lang]
weems has joined #ruby-lang
linc01n has joined #ruby-lang
linc01n has quit [Client Quit]
linc01n has joined #ruby-lang
mmorga has joined #ruby-lang
panpainter has quit [Quit: panpainter]
hurrrtin has joined #ruby-lang
<hurrrtin> Hi all! I have a question about classes and modules
<maloik> shoot
<hurrrtin> in file a.rb, I have class A; ... ; end. In file b.rb, I have module B; ...; end. How can I load file A into the B module, without specifically naming class A as class B::A in a.rb?
<charliesome> hurrrtin: yah?
richardburton1 has quit [Quit: Leaving.]
<hurrrtin> So that I can require a.rb outside of B's namespace
panpainter has joined #ruby-lang
<hurrrtin> in another place..
<hurrrtin> make sense?
mhenrixon has joined #ruby-lang
dhruvasagar has joined #ruby-lang
<charliesome> you could use: B.instance_eval(File.read("a.rb"), "a.rb")
<charliesome> hurrrtin: but it's not the most elegant solution
Authenti1ator has joined #ruby-lang
Authenti1ator has quit [Client Quit]
<hurrrtin> So, the contents of a.rb have to be eval'd? I thought load would do it, but it does not without the namespace
tbuehlmann has quit [Quit: Konversation terminated!]
hahuang65 has joined #ruby-lang
<charliesome> hurrrtin: nah load/require eval everything in the global namespace
<charliesome> you can get it to run files in a wrapper module
<charliesome> but i think that wrapper module is just an anonymous module it creates
<hurrrtin> could I require a.rb, and in module B, do 'A = ::A' ?
<hurrrtin> or something along those lines?
banisterfiend has joined #ruby-lang
mmorga has quit [Read error: Connection reset by peer]
pellenation has quit [Quit: Leaving.]
mmorga has joined #ruby-lang
tubbo has quit [Ping timeout: 248 seconds]
<hurrrtin> That actually works it looks like...
symm- has joined #ruby-lang
<hurrrtin> I don't really get why, but it does lol
dhruvasagar has quit [Ping timeout: 264 seconds]
schaerli has joined #ruby-lang
<hurrrtin> One more question: Say file c.rb has a class C that has some instance methods. I would like to pull class C's methods into module B. So instead of having to call C.foo, I can call B.foo. Can that be done?
alexju has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Andrevan has joined #ruby-lang
headius has quit [Quit: headius]
iliketurtles has quit [Quit: Textual IRC Client: www.textualapp.com]
alexju has quit [Remote host closed the connection]
Squarepy has quit [Quit: Leaving]
dhruvasagar has joined #ruby-lang
mmoore_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Coincidental has joined #ruby-lang
Nortmobile has quit [Ping timeout: 240 seconds]
momomomomo has quit [Quit: momomomomo]
Nortmobile has joined #ruby-lang
hakunin has joined #ruby-lang
alexju has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
havenn has joined #ruby-lang
tubbo has joined #ruby-lang
havenwood has quit [Read error: Connection reset by peer]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
dhruvasagar has quit [Ping timeout: 265 seconds]
Coincidental has quit [Remote host closed the connection]
Coincidental has joined #ruby-lang
pglombardo has quit [Remote host closed the connection]
pglombardo has joined #ruby-lang
charliesome has joined #ruby-lang
<maloik> Oh man I'm really struggling getting this server of mine to work properly lol
<maloik> guess I won't have my auto jekyll build app ready tonight
Coincidental has quit [Ping timeout: 248 seconds]
pglombardo has quit [Ping timeout: 252 seconds]
mistym_ has joined #ruby-lang
headius has joined #ruby-lang
mistym has quit [Ping timeout: 264 seconds]
<maloik> fuck it, calling it a night
jonathanmarvens has quit [Remote host closed the connection]
pr0ton has joined #ruby-lang
pr0ton has quit [Remote host closed the connection]
momomomomo has joined #ruby-lang
pr0ton has joined #ruby-lang
bungoman has quit [Ping timeout: 248 seconds]
majjoha has quit [Ping timeout: 240 seconds]
jcf has joined #ruby-lang
havenn has quit [Remote host closed the connection]
jcf has quit [Client Quit]
jcf has joined #ruby-lang
momomomomo has quit [Client Quit]
majjoha has joined #ruby-lang
bungoman has joined #ruby-lang
gnufied has joined #ruby-lang
dhruvasagar has joined #ruby-lang
Squarepy has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 265 seconds]
tubbo is now known as epochwolfgangkil
epochwolfgangkil is now known as tubbo
jithu has quit [Quit: Mother, did it need to be so high?]
majjoha has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby-lang
fuhgeddaboudit has quit [Read error: Operation timed out]
jonathanmarvens has joined #ruby-lang
majjoha has joined #ruby-lang
bungoman has quit [Read error: Connection reset by peer]
bungoman has joined #ruby-lang
richardburton has joined #ruby-lang
bungoman has quit [Remote host closed the connection]
pellenation has joined #ruby-lang
bungoman has joined #ruby-lang
<charliesome> lol this is the best error message i've seen ruby come out with: https://eval.in/53835
nhmood has quit [Quit: leaving]
<apeiros> what the lol? :D
pr0ton has quit [Ping timeout: 240 seconds]
pellenation has quit [Client Quit]
<imperator> rubinius?
<breakingthings> "I don't even f@#$ing know anymore!"
schaerli has quit [Remote host closed the connection]
richardburton has quit [Ping timeout: 264 seconds]
<cout> charliesome: segfaults fro em
<cout> for me
<charliesome> lol
<charliesome> yeah it's doing nasty shit
<cout> (1.9.3)
<charliesome> i encapsulated the nasty shit into a gem though! https://rubygems.org/gems/frozen_core
<charliesome> lines 1-13 can be replaced with RubyVM::FrozenCore.instance
fuhgeddaboudit has joined #ruby-lang
<cout> "Only use this gem if you know what you're doing."
<cout> oh I see what that code is doing
tubbo has quit [Ping timeout: 248 seconds]
<cout> in Ludicrous I just did: rb_define_const(rb_mLudicrous, "RUBY_VM_FROZEN_CORE", rb_mRubyVMFrozenCore);
pellenation has joined #ruby-lang
IceyEC has joined #ruby-lang
IceyEC has left #ruby-lang [#ruby-lang]
kaldrenon has joined #ruby-lang
IceyEC has joined #ruby-lang
<charliesome> cout: what's ludicrous?
<apeiros> sounds like something for a game
<cout> charliesome: ruby JIT implemented in ruby that I was working on many years ago
banisterfiend has quit [Quit: Computer has gone to sleep.]
<charliesome> cout: o: awesome
<cout> probably doesn't work any more and I don't have time for it :(
pellenation has quit [Quit: Leaving.]
charliesome has quit [Ping timeout: 240 seconds]
stamina has quit [Ping timeout: 248 seconds]
fuhgeddaboudit has quit [Ping timeout: 240 seconds]
<cout> :(
tubbo has joined #ruby-lang
retro|cz has quit [Ping timeout: 264 seconds]
tubbo has quit [Client Quit]
pellenation has joined #ruby-lang
fijimunkii has joined #ruby-lang
pellenation has quit [Quit: Leaving.]
relix has joined #ruby-lang
JohnBat26 has joined #ruby-lang
charliesome has joined #ruby-lang
fuhgeddaboudit has joined #ruby-lang
fragamus has joined #ruby-lang
<charliesome> cout: that's pretty cool regardles
<charliesome> cout: have you got any opinion on libjit vs. llvm?
<cout> wb charliesome
<cout> charliesome: what are you using frozen core for?
<charliesome> mad hax
<cout> charliesome: I've heard llvm has gotten better/easier, but when I compared them, libjit was significantly easier
<charliesome> i was going to backport ruby 2.1's def-returns-method-name feature to 2.0 and 1.9
<charliesome> it almost works
<charliesome> except it doesn't work if you have something like
<charliesome> module Foo; module_function; def foo; end; end
<cout> oh
MaddinXx has joined #ruby-lang
<cout> because module_function saves state and you don't have access to that state, I guess
jbsan has joined #ruby-lang
<charliesome> yeah
<cout> oh interesting
symm- has quit [Ping timeout: 245 seconds]
<cout> I didn't know you could do that
<charliesome> you need the class_eval
<charliesome> because core#define_method inspects the current cref
<charliesome> to check what class it should define the method on
<cout> I don't think this was possible on 1.8
<charliesome> nup
<charliesome> it wasn't
<charliesome> 1.8 didn't have frozen core did it?
<cout> <-- old school :)
<cout> no
<charliesome> i'm a baby, I only came into the ruby world with 1.9.2
majjoha has quit [Ping timeout: 248 seconds]
pellenation has joined #ruby-lang
bastilian has quit [Quit: Leaving...]
mbj has quit [Quit: leaving]
crankhar1er is now known as crankharder
jonahR has joined #ruby-lang
<charliesome> cout: hmm I think plugging libjit into ruby would be pretty cool
fuhgeddaboudit has quit [Ping timeout: 248 seconds]
<charliesome> cout: you'd be able to get some mad speed if you did it as a hack to core, rather than a c ext
<cout> charliesome: compilation would be faster, yes
<cout> that's the "right" way to do it
<cout> but it's kinda fun to say that I have a jit that can jit itself
schaerli has joined #ruby-lang
pellenation has quit [Quit: Leaving.]
nisstyre has quit [Quit: Leaving]
majjoha has joined #ruby-lang
elia has joined #ruby-lang
fragamus has quit [Quit: Computer has gone to sleep.]
nhmood has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
stamina has joined #ruby-lang
pr0ton has joined #ruby-lang
banisterfiend has joined #ruby-lang
vbatts|work has joined #ruby-lang
axsuul has joined #ruby-lang
symm- has joined #ruby-lang
snarfmason has quit [Quit: Textual IRC Client: www.textualapp.com]
fuhgeddaboudit has joined #ruby-lang
alexju has quit [Remote host closed the connection]
alexju has joined #ruby-lang
bastilian has joined #ruby-lang
brianpWins has joined #ruby-lang
DefV has quit [Remote host closed the connection]
pellenation has joined #ruby-lang
TheMoonMaster has quit [Excess Flood]
TheMoonMaster has joined #ruby-lang
TheMoonMaster has joined #ruby-lang
famemonster has quit [Quit: Leaving]
alexju has quit [Ping timeout: 248 seconds]
fosky_ has joined #ruby-lang
s0ber has quit [Read error: Connection reset by peer]
yalue has quit [Read error: Connection reset by peer]
<yorickpeterse> MY BRAIN HURTS BUT OTHERWISE I AM DOING FINE
<yorickpeterse> ALSO WE NEED TO USE ELASTICSEARCH MORE FOR JUST LOGGING LOGS
<yorickpeterse> BECAUSE IT'S PRETTY AWESOME
<yorickpeterse> also good evening
<cout> um, the brain has no nociceptors..
<cout> also, good evening to you too :)
s0ber has joined #ruby-lang
mhenrixon has quit [Ping timeout: 240 seconds]
Coincidental has joined #ruby-lang
metus_violarium has quit [Quit: Konversation terminated!]
JohnBat26 has quit [Ping timeout: 245 seconds]
bastilian has quit [Quit: Leaving...]
richardburton has joined #ruby-lang
jonahR has quit [Quit: jonahR]
deception has quit [Quit: Goodbye]
JohnBat26 has joined #ruby-lang
ingof has joined #ruby-lang
* imperator buys yorickpeterse a snuggie to settle him down
richardburton has quit [Quit: Leaving.]
postmodern has joined #ruby-lang
majjoha has quit [Ping timeout: 252 seconds]
MrZYX is now known as MrZYX|off
jcf has quit [Quit: Adios!]
bf4 has quit [Ping timeout: 248 seconds]
pr0ton has quit [Quit: pr0ton]
<yorickpeterse> fuck snuggies, no pants ftw
Nortmobile has quit [Quit: I quit]
<yorickpeterse> now I have to read legal documents, yay
MaddinXx has quit [Read error: Operation timed out]
<epitron> no nociceptors? that's a double negative!
IceyEC has quit [Quit: IceyEC]
pr0ton has joined #ruby-lang
alexju has joined #ruby-lang
alexh1 has left #ruby-lang [#ruby-lang]
ingof has quit [Remote host closed the connection]
panpainter has quit [Quit: panpainter]
<yorickpeterse> YAY, 4 year legal case resolved and I'll be getting my money back....minus fucking 100 Euros
<epitron> was this on a job you did?
<yorickpeterse> No, this was a fat fuck owing me rent money (long story)
<yorickpeterse> his argument all along was literally "I don't have money therefor I don't have to pay you"
<epitron> hahah
pellenation has quit [Quit: Leaving.]
<yorickpeterse> My argument was basically "Dutch law thinks otherwise, here's a lawyer and a repo company"
<yorickpeterse> but fuck me next tim I'll just buy a 20 Euro baseball bat
<epitron> that might cost you YOUR freedom
<yorickpeterse> eh, that implies I'd actually employ violence
apeiros has quit [Remote host closed the connection]
<yorickpeterse> often just showing up would be enough
saarinen has quit [Quit: saarinen]
<epitron> is threatening people with a baseball bat legal?
<yorickpeterse> Who said anything about threatening?
apeiros has joined #ruby-lang
<epitron> haha
<epitron> "just practicing my swing"
<yorickpeterse> I'd just show up with it in my hand and say "You owe me money", there's nothing illegal with that
<yorickpeterse> ok and maybe look a bit angry
IceyEC has joined #ruby-lang
IceyEC has quit [Client Quit]
jvrmaia has quit [Quit: Leaving]
saarinen has joined #ruby-lang
<yorickpeterse> hihi, I like how these papers say "IN NAME OF THE QUEEN!"
<yorickpeterse> like that matters
fijimunkii has quit [Ping timeout: 252 seconds]
fijimunkii has joined #ruby-lang
ldnunes has quit [Quit: Leaving]
dhruvasagar has quit [Ping timeout: 248 seconds]
breakingthings has quit []
banisterfiend is now known as banister`sleep
<imperator> coincidentally, "In the name of the Queen!" is printed on said baseball bat
adambeynon has joined #ruby-lang
kaldrenon has quit [Remote host closed the connection]
<yorickpeterse> well we have a king now
richardburton1 has joined #ruby-lang
<imperator> king? i didn't vote for 'im!
<banister`sleep> yorickpeterse i got the job, welcome me to your rails world :)
<banister`sleep> yorickpeterse btw do you know about that weird leiden festival on oct 3rd?
<yorickpeterse> "the job"?
<yorickpeterse> and no I don't, don't pay much attention to the Leiden area
ruby-lang344 has joined #ruby-lang
<banister`sleep> yorickpeterse the NYC gig i told u about
Oloryn_lt2 has quit [Read error: Connection reset by peer]
<banister`sleep> anyway bbl, time to finally sleep
<yorickpeterse> Oh right
<yorickpeterse> congrats
mistym_ is now known as mistym
DefV has joined #ruby-lang
fosky_ has quit [Read error: Connection reset by peer]
joonty has quit [Ping timeout: 248 seconds]
joonty has joined #ruby-lang
bean__ has quit [Quit: Textual IRC Client: www.textualapp.com]
ldnunes has joined #ruby-lang
kurko_ has quit [Ping timeout: 264 seconds]
nathanstitt has quit [Quit: I growing sleepy]
nisstyre has joined #ruby-lang
hhatch has quit [Ping timeout: 240 seconds]
kurko_ has joined #ruby-lang
majjoha has joined #ruby-lang
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
majjoha has quit [Ping timeout: 265 seconds]
fuhgeddaboudit has quit [Ping timeout: 248 seconds]
ruby-lang344 has quit [Quit: Page closed]
ruby-lang987 has joined #ruby-lang
prestoUZH has joined #ruby-lang
pr0ton has quit [Quit: pr0ton]
JoshuaPaling has joined #ruby-lang
ldnunes has quit [Quit: Leaving]
<prestoUZH> Hello?
<prestoUZH> First time using an irc ;P
ldnunes has joined #ruby-lang
robbyoconnor has joined #ruby-lang
<prestoUZH> Can I ask here for help?
headius has quit [Quit: headius]
<prestoUZH> Trying to print messages to the terminal using Curses, and though I've got somewhere the syntax is 30 years old (apparently) and really un ruby-like
pr0ton has joined #ruby-lang
<prestoUZH> for instance, how can I change the color of the messages?
<prestoUZH> the text
headius has joined #ruby-lang
<prestoUZH> afk
Senjai has quit [Ping timeout: 248 seconds]
bastilian has joined #ruby-lang
Squarepy has quit [Remote host closed the connection]
elia has quit [Read error: Connection reset by peer]
skade has joined #ruby-lang
Squarepy has joined #ruby-lang
Squarepy has quit [Client Quit]
richardburton1 has quit [Quit: Leaving.]
<drbrain> prestoUZH: with attron using a predefined style
io_syl has quit []
enebo has quit [Quit: enebo]
elia has joined #ruby-lang
bungoman_ has joined #ruby-lang
firstdayonthejob has joined #ruby-lang
<drbrain> prestoUZH: create a style with Curses.init_pair and Curses.color_pair
<drbrain> and probably Curses.start_color
bungoman has quit [Ping timeout: 248 seconds]
richardburton has joined #ruby-lang
bastilian has quit [Quit: Leaving...]
firstdayonthejob has quit [Client Quit]
bungoman_ has quit [Ping timeout: 264 seconds]
panpainter has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has quit [Quit: Computer has gone to sleep.]
<rickhull> prestoUZH: welcome to IRC :) you are on a freenode server, dedicated to FOSS, and one particular etiquette point you should be aware of is, you never need to ask to ask. just ask
<rickhull> other IRC servers may have different etiquette
<drbrain> if I have to ask to ask, I generally don't want to be in that channel
<drbrain> because that's just silly
* rickhull nod
<rickhull> another etiquette point to be aware of, don't paste multiple lines of code into the chat — use a paste site. this is covered in this channel's MOTD
<drbrain> prestoUZH: ruby -rcurses -e 'Curses.init_screen; Curses.start_color; Curses.init_pair(Curses::COLOR_RED, Curses::COLOR_RED, Curses::COLOR_WHITE); Curses.attron(Curses.color_pair(Curses::COLOR_RED)) { Curses.addstr "hello" }; Curses.refresh; sleep 5; Curses.close_screen'
mdedetrich has joined #ruby-lang
sepp2k1 has joined #ruby-lang
dwknoxy has quit [Quit: Computer has gone to sleep.]
sepp2k has quit [Ping timeout: 248 seconds]
symm- has quit [Ping timeout: 248 seconds]
<prestoUZH> Right! Thanks for the help everyone
panpainter has quit [Quit: panpainter]
<prestoUZH> drbrain: Do you know of any good tutorials concerning Curses?
<drbrain> prestoUZH: not really
<drbrain> prestoUZH: I wrote this: https://github.com/rdoc/rdoc-browser/
<drbrain> using curses
Senjai has joined #ruby-lang
<prestoUZH> Ah that looks cool
<drbrain> it's more OO than most curses examples
<prestoUZH> Is it be more ruby-esque in that case?
<drbrain> prestoUZH: I think so
<prestoUZH> Awesome. Look into that
<drbrain> also, it uses noutrefresh to reduce window painting (a good curses technique)
<prestoUZH> So Curses is very much up-to-date then
<drbrain> the curses extension? yes
<drbrain> it even has the scroll pad (Curses::Pad)
<prestoUZH> What I mean is, there's barely any resources on Google so I was wondering if anyone actually uses it! :P
<prestoUZH> clearly so
<drbrain> there's no longer much demand for curses applications
<drbrain> browsers have taken over
<prestoUZH> True, but rails applications use the command line heavily
<drbrain> while I haven't investigated fully, curses doesn't support some key combinations well
<drbrain> at least, doesn't seem to
<prestoUZH> Basically , right, I'm creating a custom rake task, I have it working perfectly with standard puts and gets methods, and just thought I could make it prettier, so that's why I'm looking into curses
<prestoUZH> so I'm not doing anything crazy, just making input look nicer :)
<drbrain> yeah
mannyt has quit [Ping timeout: 245 seconds]
sepp2k1 has quit [Read error: Connection reset by peer]
<drbrain> looks good
kitak has joined #ruby-lang
fuhgeddaboudit has joined #ruby-lang
ruby-lang987 has quit [Ping timeout: 250 seconds]
<prestoUZH> drbrain: so you have to create a new Window instance if you want to interact with the user in anyway?
<drbrain> prestoUZH: curses has a default window
<drbrain> so you don't have to
<drbrain> I create windows when I do different things with different areas of the screen
<prestoUZH> Hmm okay..so the Window.new takes 4 parameters, is that right?
<drbrain> the rdoc browser has a window for the display area, a window for the message area and a window for the history view
<drbrain> if I had pop-up messages, I'd create windows for those too
<prestoUZH> right, new instances of Window?
tomzx_mac has joined #ruby-lang
<prestoUZH> See here http://pastebin.com/WZ78Lhy1
pr0ton has quit [Ping timeout: 264 seconds]
<prestoUZH> What are the 4 parameters when creating a new window?
symm- has joined #ruby-lang
<prestoUZH> I assume one is height, and one is width?
snarfmason has joined #ruby-lang
<drbrain> new instances of window, yes
<prestoUZH> :)
<prestoUZH> The first two parameters are height and width
<drbrain> height, width, top, left
<prestoUZH> ahhh
<drbrain> ri Curses::Window.new
<drbrain> (or check ruby-doc.org
nathanstitt has joined #ruby-lang
<prestoUZH> Awesome
<prestoUZH> getting somewhere now
<prestoUZH> win.box(?|, ?-) creates a box around the window. Automatically gets the width and height and creates a box from characters...could you explain the (?|, ?-) ?
nisstyre has quit [Quit: Leaving]
<drbrain> those are the border characters
<drbrain> ?| is the same as '|'
<prestoUZH> I see. If you make a Window instance larger than the actual Command Prompt window, does the script abort with a 'already closed window' error?
<prestoUZH> that's what I get
jiuweigui has quit [Quit: iQuit!]
asym is now known as yan_
yan_ has left #ruby-lang [#ruby-lang]
havenwood has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
<drbrain> I don't know, I've never tried that
<prestoUZH> hmm. okay. It's just if my window has a height greater than 64 it causes an 'already closed window' error?
<prestoUZH> doesn't really matter, just wondering
VTLob has quit [Quit: VTLob]
<drbrain> you can use Curses::Pad if you need to display an area larger than the window
<prestoUZH> Awesome!! That was really giving me worries. For some idiotic reason Command Prompt on windows 7 doesn't go full screen. It has a set width and set height for some reason known only to Bill Gates -_- I was worried my beautiful ouput would get all mangled on windows
<prestoUZH> unix systems don't so it of course
<prestoUZH> *don't do it
jbsan has quit [Quit: JB.. OUT!]
jbsan has joined #ruby-lang
fuhgeddaboudit has quit [Ping timeout: 240 seconds]
bastilian has joined #ruby-lang
kek has quit [Remote host closed the connection]
<prestoUZH> Apologies if what I'm doing is majorly beginner http://pastebin.com/uw5MAhxF
<prestoUZH> but this is getting me a uninitialized constant Pad error
<prestoUZH> I've required 'curses' and included Curses
<prestoUZH> do I need to requre another library?
pr0ton has joined #ruby-lang
alekst has quit [Ping timeout: 264 seconds]
<drbrain> what ruby?
<drbrain> prestoUZH: if you're on 1.9, either upgrade to ruby 2.0 or install the curses-pad gem
skade has joined #ruby-lang
skade has quit [Client Quit]
Johz has quit [Quit: Leaving]