<Xzyx987X>
be nice if there was some way to get it working, even if flock isn't viable
tr-808 has joined #ruby-lang
<fowl__>
did you try wakka flock?
nofxx has joined #ruby-lang
bryancp has joined #ruby-lang
<Xzyx987X>
wakka flock?
nofxx has joined #ruby-lang
krzkrzkrz has joined #ruby-lang
savage- has joined #ruby-lang
nofxx has joined #ruby-lang
RORgasm has joined #ruby-lang
chessguy has joined #ruby-lang
krzkrzkrz has joined #ruby-lang
srbartlett has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
Tasser has joined #ruby-lang
<slyphon>
ok, bundler
savage- has joined #ruby-lang
<slyphon>
i'm getting fucking tired of your bullshit
jobicoppola has joined #ruby-lang
<slyphon>
fucking GAH
<slyphon>
why do you persist options between fucking invocations?!@
<slyphon>
ARGH
* slyphon
shoots bundler in the FACE
urbanmonk has joined #ruby-lang
savage- has joined #ruby-lang
nofxx has joined #ruby-lang
<samuelkadolph>
slyphon: Because typing them each time would be tedious?
<slyphon>
that's not how 99% of unix command-line tools behave
jobicoppola has joined #ruby-lang
<slyphon>
ok, be fair, 90%
<samuelkadolph>
Oh man, wait until you see rake, or rails.
<slyphon>
rake doesn't do that, at least not that i've found
<slyphon>
rails is an affliction unto itself
gix has joined #ruby-lang
gnufied has joined #ruby-lang
nofxx has joined #ruby-lang
travisjeffery has joined #ruby-lang
dankest has joined #ruby-lang
brianpWins has joined #ruby-lang
nofxx has joined #ruby-lang
vesan_ has joined #ruby-lang
nofxx has joined #ruby-lang
krzkrzkrz has joined #ruby-lang
nofxx has joined #ruby-lang
slimfit has joined #ruby-lang
krzkrzkrz has joined #ruby-lang
nofxx has joined #ruby-lang
cdnz has joined #ruby-lang
dr0id has joined #ruby-lang
andrewhl has joined #ruby-lang
nofxx has joined #ruby-lang
hagabaka has joined #ruby-lang
hagabaka has joined #ruby-lang
jhm` has joined #ruby-lang
cola_zero has joined #ruby-lang
rohit has joined #ruby-lang
nofxx has joined #ruby-lang
gouthamvel has joined #ruby-lang
nofxx has joined #ruby-lang
rippa has joined #ruby-lang
cola_zero has joined #ruby-lang
deobald has joined #ruby-lang
savage- has joined #ruby-lang
rohit has joined #ruby-lang
krzkrzkrz has joined #ruby-lang
nofxx has joined #ruby-lang
Vortex_Rikers has joined #ruby-lang
<michael_mbp>
hey rohit morning
<rohit>
michael_mbp, good morning :)
* michael_mbp
shakes his fist at the split gods
hagabaka has joined #ruby-lang
<michael_mbp>
how's you mate?
<michael_mbp>
heading to work, bbl in about an hour
nofxx has joined #ruby-lang
dfr|mac has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
nofxx has joined #ruby-lang
rohit has joined #ruby-lang
nofxx has joined #ruby-lang
oddmunds has joined #ruby-lang
travisjeffery has joined #ruby-lang
dvorak has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
gouthamvel has joined #ruby-lang
gouthamvel has quit [#ruby-lang]
yxhuvud has joined #ruby-lang
ttilley has joined #ruby-lang
kitallis has joined #ruby-lang
FACEFOX has joined #ruby-lang
nofxx has joined #ruby-lang
<zenspider>
woot!
machine2 has joined #ruby-lang
retro_ has joined #ruby-lang
gouthamvel has joined #ruby-lang
nofxx has joined #ruby-lang
<erikh>
hey
<Xzyx987X>
ok, now I'm trying to mess with fcntl, and it's not working either. can anyone tell me why this code is getting me a bad file descriptor error?: http://pastie.org/3802553
pabloh has joined #ruby-lang
<erikh>
I'm guessing by the pack statement that the last item in that array is the fd
<erikh>
you need to pass it file.fileno
<erikh>
err, nevermind
<erikh>
I'm not sure. sorry.
<Xzyx987X>
man, I had no idea locking files in ruby under *nix would be this difficult
<bnagy>
variable mismatch?
<erikh>
I don't think it is, ruby supports flock directly IIRC
<erikh>
can you describe in detail what you're trying to do?
<Xzyx987X>
I may actually do a Git for this. I could be wrong, but I don't think there is any existing code for ruby that allows you to create locks across processes like this
toretore has joined #ruby-lang
Hakon|mbp has joined #ruby-lang
shtirlic has joined #ruby-lang
heftig has joined #ruby-lang
<bnagy>
Xzyx987X: there are quite a few style issues, still
<zenspider>
Xzyx987X: line 31
<bnagy>
and you should probably use the block form of File#open more
futurechimp has joined #ruby-lang
<zenspider>
is that supposed to be an instance variable? or a class instance variable?
melter has joined #ruby-lang
<zenspider>
drop the returns
<zenspider>
all of them
<Xzyx987X>
sorry, but I like return. those stay
<zenspider>
an empty return at the end of a method is useless... less than useless
<Xzyx987X>
it may be a carry over from my days coding C, but I think they make the code more readable
<zenspider>
and they have a cost... not that it matters with this code
<zenspider>
if @file != nil then return true end
<zenspider>
return true if @file
<zenspider>
and again... @file... that sure looks like the class instance variable
<Xzyx987X>
I can keep track of the difference just fine
<Xzyx987X>
and as far as the if goes, it's a stylistic choice. I am aware of the other syntax, but I find it more readable if you start the line with if, since it defines the purpose of the statement
<zenspider>
well... in C you're right. in ruby you're dead wrong
<zenspider>
but have fun with that
diegoviola has joined #ruby-lang
<tobiasvl>
"<zenspider> if @file != nil then return true end" <- that made me laugh :D
<Xzyx987X>
lol, don't forget the ruby philosophy, there is no one right way to do things
<Xzyx987X>
if my way works for me, why complain?
<andrewvos>
There's fourteen. And a gem.
<bnagy>
Xzyx987X: yeah but there are lots of wrong ways, and you seem to have found about a dozen of them :)
<andrewvos>
But the gem is better, because the other fourteen ways are a ghetto.
mehulkar has joined #ruby-lang
<Xzyx987X>
if you want to rewrite my code to make it suit your taste, feel free. I like it fine the way it is
<zenspider>
Xzyx987X: seems imprudent to come in here asking for people to look at your code and then argue when you get good advice about how to improve it
<tobiasvl>
Xzyx987X: i have no problem with you saying "return true", but why do you use empty returns some places, and other places you don't?
<tobiasvl>
thatseems weird
<Xzyx987X>
so I don't return something that isn't nil
<Xzyx987X>
50-53 blocks if another process has the lock
<bnagy>
I hate it, but I accept that it's used sometimes
riffraff has joined #ruby-lang
<zenspider>
raising w/ no messages. testing against specific values instead of just truthyness. Not using block forms. Return statements in setter methods... I'd bother pointing out (many) more problems with this code but it's obvious you think this shit is perfect
workmad3 has joined #ruby-lang
<Xzyx987X>
it's not perfect, nothing is perfect. it just works the way I want it to
<zenspider>
you keep thinking that
r0bby has joined #ruby-lang
<andrewvos>
To be honest I can't bear to even try reading that code because the class name isn't obvious to me so I don't really know what I'm looking at.
<andrewvos>
Which is a big problem, if you ever want your fellow developers to not hate you.
<bnagy>
andrewvos: you should perservere, it has significant comedy value
<erikh>
you guys want to comment on my code?
<erikh>
I could use a review on some stuff.
<andrewvos>
erikh: YESSSS
<andrewvos>
hahah
<andrewvos>
Wait and you're storing state in class method
<erikh>
instrumentation is at the bottom of service.rb
<zenspider>
I would rename pid_check to assert_pid...
<zenspider>
and I'd use parens less
<zenspider>
but it looks good.
<erikh>
yeah, old habit.
<erikh>
thanks!
<zenspider>
what's a sm?
<erikh>
it's a service manager I'm working on
<erikh>
think monit/daemontools/etc
<erikh>
more or less, it leverages zeromq for concurrency and manages processes over the network
<erikh>
basically it's targetting installations with thousands of machines
<zenspider>
I know it's far fetched... but your getter/setter idiom... how would you set to nil?
<erikh>
oog
<erikh>
yeah, I don't want to think about that. :)
<erikh>
but I'll mark it down
<erikh>
any suggestions on how to solve that?
<zenspider>
UNSET = Object.new; arg = UNSET
<erikh>
oh good idea
Banistergalaxy has joined #ruby-lang
Tearan_ has joined #ruby-lang
<erikh>
oh yeah -- thanks for the comments. I really do appreciate it.
<erikh>
this is the third rewrite and the most cohesive, and about 9 months collective work
<DefV>
erikh: why the "begin" in allowed? method?
<DefV>
you could just do def allowed? .* rescue; end
<DefV>
or am I missing something vitally important about that technique that's wrong?
<DefV>
and I hate raising generic errors (raise "stuff") unless it's a programmer error
<DefV>
otherwise I always define custom StandardError subclasses so I can easily catch those specific cases
<DefV>
(actually I subclass a subclass of StandardError specific to my current codebase, so I can catch globally without having to catch StandardError)
<ddfreyne>
erikh: sm?
<ddfreyne>
what the heck is that :P
seoaqua has joined #ruby-lang
<erikh>
DefV: yeah, they're just basic for now
<erikh>
I plan on doing something more elaborate eventually.
<erikh>
ddfreyne: I said above
<erikh>
batman: arkham city is an amazing game
Banistergalaxy has joined #ruby-lang
WillMarshall has joined #ruby-lang
sei has joined #ruby-lang
gouthamvel has quit [#ruby-lang]
futurechimp has joined #ruby-lang
<andrewvos>
erikh: Didn't like the first though. Is it better?
mfournier has quit ["WeeChat 0.3.6"]
diegoviola has joined #ruby-lang
srbartlett has joined #ruby-lang
rolfb has joined #ruby-lang
justinmcp has joined #ruby-lang
sora_h has joined #ruby-lang
robgleeson|mba has joined #ruby-lang
robgleeson|mba has joined #ruby-lang
DMKE has joined #ruby-lang
moogs has joined #ruby-lang
Ethan has joined #ruby-lang
JohnBat26 has joined #ruby-lang
futurechimp has joined #ruby-lang
bryancp has joined #ruby-lang
apeiros_ has joined #ruby-lang
kings has joined #ruby-lang
futurechimp has joined #ruby-lang
jtoy has joined #ruby-lang
m3nd3s has joined #ruby-lang
andrewhl has joined #ruby-lang
elalande has joined #ruby-lang
Sailias|work has joined #ruby-lang
cjs226 has joined #ruby-lang
rohit has joined #ruby-lang
diegoviola has joined #ruby-lang
mark_locklear has joined #ruby-lang
morozovm has joined #ruby-lang
Boohbah_ has joined #ruby-lang
samuelkadolph has joined #ruby-lang
andrewhl has joined #ruby-lang
mistym has joined #ruby-lang
Xzyx987X_ has joined #ruby-lang
yorickpeterse1 has joined #ruby-lang
yorickpeterse1 has joined #ruby-lang
jmeeuwen_ has joined #ruby-lang
s0ber has joined #ruby-lang
Xzyx987X has joined #ruby-lang
tomzx has joined #ruby-lang
<andrewvos>
erikh: Askham Asylum I mean
FiXato has joined #ruby-lang
igaiga has joined #ruby-lang
codewrangler has joined #ruby-lang
bryancp has joined #ruby-lang
mattyoho has joined #ruby-lang
mattyoho has joined #ruby-lang
mstratman has joined #ruby-lang
justinmcp has joined #ruby-lang
dv310p3r has joined #ruby-lang
tbuehlmann has joined #ruby-lang
enebo has joined #ruby-lang
jobicoppola has joined #ruby-lang
fattastic has joined #ruby-lang
FACEFOX has joined #ruby-lang
futurechimp has joined #ruby-lang
futurechimp has joined #ruby-lang
Defusal has joined #ruby-lang
Austin__ has joined #ruby-lang
indeterminate has joined #ruby-lang
Sailias has joined #ruby-lang
gsav has joined #ruby-lang
achamian has joined #ruby-lang
bryancp has joined #ruby-lang
datanoise has joined #ruby-lang
gfhjkm1 has joined #ruby-lang
gfhjkm1 has quit [#ruby-lang]
Natch has joined #ruby-lang
krohrbaugh has joined #ruby-lang
hynkle has joined #ruby-lang
gouthamvel has joined #ruby-lang
futurechimp has joined #ruby-lang
nahhh has joined #ruby-lang
slyphon_away has joined #ruby-lang
Radium_ has joined #ruby-lang
outoftime has joined #ruby-lang
mistym has joined #ruby-lang
gouthamvel has quit [#ruby-lang]
JEG2 has joined #ruby-lang
savage- has joined #ruby-lang
<riffraff>
hi everyone
thone_ has joined #ruby-lang
bryancp has joined #ruby-lang
<riffraff>
it seems to me that psych generates some needless printouts (with $DEBUG=true) trying to parse integers out of strings with a digit in them, I could write a patch but how do I test that?
jtoy has joined #ruby-lang
Asher has joined #ruby-lang
dejongge has joined #ruby-lang
JEG2 has joined #ruby-lang
slyphon_away has joined #ruby-lang
msisk has joined #ruby-lang
michael_mbp has joined #ruby-lang
achamian has joined #ruby-lang
<andrewvos>
riffraff: Surely DEBUG=true means that you would see some needless printouts?
beiter has joined #ruby-lang
sandbags has joined #ruby-lang
Asher1 has joined #ruby-lang
CoverSlide has joined #ruby-lang
achamian has joined #ruby-lang
jxie has joined #ruby-lang
chittoor has joined #ruby-lang
olesu has joined #ruby-lang
crudson has joined #ruby-lang
imajes has joined #ruby-lang
krohrbaugh1 has joined #ruby-lang
<riffraff>
andrewvos, yeah, but I'd like them not to be in the standard library if they are not necessary
<riffraff>
these come out of calling #Integer on stuff where it can be avoided
<riffraff>
which raises ArgumentError which in turn causes the debug line to print
futurechimp has joined #ruby-lang
cyndis has joined #ruby-lang
achamian has joined #ruby-lang
achamian has joined #ruby-lang
<riffraff>
also, there seem to be some bit of code to do the same for floats, but I think it's wrong
rushed has joined #ruby-lang
<riffraff>
to do it only in one case
rickjoe has joined #ruby-lang
rickjoe has quit [#ruby-lang]
cdnz has joined #ruby-lang
nofxx has joined #ruby-lang
futurechimp has joined #ruby-lang
slyphon_away has joined #ruby-lang
dfr|mac has joined #ruby-lang
rippa has joined #ruby-lang
<jasiek>
lkotwitter
futurechimp has joined #ruby-lang
<andrewvos>
jasiek: uhh?
<andrewvos>
jasiek: This isn't VI
<mistym>
:wq
<andrewvos>
:x
nofxx has joined #ruby-lang
achamian has joined #ruby-lang
slimfit has joined #ruby-lang
shaman42 has joined #ruby-lang
chimkan has joined #ruby-lang
bryancp has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
m3nd3s has joined #ruby-lang
Psyche^ has joined #ruby-lang
paulha has joined #ruby-lang
<paulha>
is this the right place to ask a rake question?
m3nd3s has joined #ruby-lang
dfr|mac_ has joined #ruby-lang
<shevy>
paulha hard to say
<shevy>
it is ruby related, so sure. but how many use rake and are smart enough to answer a very difficult rake question
<shevy>
only way to find out is to try and ask
<paulha>
OK, I'll try-- It's a stupid question but I'm a rake newbie.
virunga has joined #ruby-lang
<paulha>
Does directory("name1/name2") create directories under the current directory (where the rake file is)?
<paulha>
Doesn't seem to work that way for me. Nothing is created.
<paulha>
send
nofxx has joined #ruby-lang
olesu has joined #ruby-lang
Kero_ has joined #ruby-lang
<TTilus>
paulha: dunno if rake has some extra dir creation magic, but at least require 'fileutils'; FileUtils.mkdir_p 'name1/name2' should work
<paulha>
OK, thanks I'll try that and quit believing the tutorials. :-(
m3nd3s has joined #ruby-lang
_dabradley has joined #ruby-lang
machine2 has joined #ruby-lang
savage-_ has joined #ruby-lang
Swimming_Bird has joined #ruby-lang
slyphon has joined #ruby-lang
crackity_jones has joined #ruby-lang
gouthamvel has joined #ruby-lang
Dreamer3 has joined #ruby-lang
olesu has joined #ruby-lang
gouthamvel has quit [#ruby-lang]
jperry has joined #ruby-lang
m3nd3s has joined #ruby-lang
DMKE has joined #ruby-lang
butchanton has joined #ruby-lang
achiu has joined #ruby-lang
m3nd3s has joined #ruby-lang
olesu has joined #ruby-lang
<tylergillies>
anyone know if typhoeus has requests per second ability config option?
dreieins has joined #ruby-lang
io_syl has joined #ruby-lang
<tylergillies>
or any other http lib that supports requests per second as a config option
<kiddorails>
drbrain: Also, I actually wanted to read ri of ERB#new.
<kiddorails>
require 'erb' returns true.
<kiddorails>
but, there is no gem with erb listed in gem list
<drbrain>
kiddorails: that's in stdlib
<fragmachine>
wtf is erb?
Carnage\ has joined #ruby-lang
<drbrain>
fragmachine: a template library that embeds ruby using <% %> for control flow and <%= %> to interpolate values
<kiddorails>
drbrain: [1] pry(main)> ri ERB#new
<kiddorails>
Nothing known about ERB#new
<kiddorails>
Error: there was a problem executing system command: ri ERB#new
<drbrain>
kiddorails: ERB.new
<drbrain>
kiddorails: usually you just want to use '.', ri will automatically find the class or instance method
<kiddorails>
drbrain: That solved it. Thanks
<drbrain>
use # or :: when you need to disambiguate because a class provides both (rare)
<kiddorails>
mm-hmm
<kiddorails>
okay. :
<kiddorails>
:)
<kiddorails>
drbrain: Also, pardon for ignorance, if I wish to read all about all documentation associated with ERB, can shell help me with that?
<drbrain>
kiddorails: no ☹
<drbrain>
kiddorails: but, if you run just `ri` it'll put you at a prompt that you can tab-complete with
<drbrain>
kiddorails: I've got a partially complete curses browser for ri
<drbrain>
… so I'm working on it, it's just not done yet
<kiddorails>
drbrain: partially curses browser, as in?
<any-key>
speaking of curses, has anyone here had issues getting rbcurses to work?
<drbrain>
kiddorails: do you know mutt?
<drbrain>
or lynx?
<kiddorails>
mutt client?
rolfb has joined #ruby-lang
<any-key>
if I use 1.9.1 I can get it to display widgets, but all of the text shows up as "(null)"
<drbrain>
yeah
wmoxam has joined #ruby-lang
<drbrain>
any-key: I just use the built-in curses library
hagabaka has joined #ruby-lang
<any-key>
drbrain: last I looked at it, it won't do a listbox-esque thing
<any-key>
drbrain: I could write my own I suppose
<any-key>
I got all excited about rbcurses having a listbox widget with a scrollbar
<drbrain>
any-key: I think you need a ScrollPad binding which isn't in the built-in curses for a released ruby
echoprinter has quit [#ruby-lang]
<drbrain>
any-key: trunk supports it, though!
<any-key>
drbrain: how long until that makes it into production? :)
<drbrain>
any-key: early 2013
<any-key>
:(
<any-key>
drbrain: is there an easy way to get a listbox widget going (ala mutt)?
<drbrain>
any-key: also, I should release my patch as a gem for 1.9 users
<drbrain>
so maybe sooner!
<any-key>
that would be amazing
<any-key>
I have this dumb mission to create an itunes clone in curses
flak has joined #ruby-lang
<kiddorails>
drbrain: An offtopic/off-channel question perhaps:
<kiddorails>
I have been using Linux (Mint, Ubuntu) from years on my desktop for development. Thinking to skip to Apple notebook now. If you are Mac user, does Air's base model work fine for Ruby/RoR, coding tasks?
<andrewvos>
kiddorails: Yes
<any-key>
the problem is that it means creating a separate window for each listbox in the column browser, and from what I can tell the curses lib ruby ships with won't help much beyond creating windows and drawing text
<any-key>
kiddorails: any *nix OS will work beautifully with ruby/rails
<drbrain>
any-key: curses newpad() saves a lot of work you'd need to do manually with newwin()
flak has joined #ruby-lang
<andrewvos>
kiddorails: But why would you want to switch to OSX? I've been meaning to switch to ubuntu for ages now but just too lazy.
<drbrain>
I need to ride the bus now
<any-key>
drbrain: thanks, I'll check it out...any tips for creating a listbox thing?
<kiddorails>
andrewvos: just need a notebook, that is.
<kiddorails>
hardware of Apple entices a lot. Nothing seems close.
<andrewvos>
kiddorails: Fair enough. I tried ubuntu on my macbook pro but the battery life made me switch back :(
<any-key>
agreed
<andrewvos>
kiddorails: But yeah the hardware is unbeatable.
<kiddorails>
64GB SSD will work fine?
<andrewvos>
Well, maybe it is beatable, but there's nothing else that's as pretty.
<kiddorails>
andrewvos: Aye Aye!
<andrewvos>
kiddorails: Yeah I don't use my harddrive for anything really.
<kiddorails>
Neither do I.
<andrewvos>
I literally only have a 5gb dropbox account, and anything that doesn't fit in there I will store somewhere else.
<kiddorails>
and 11" screen? Heard it has 1366*768 display. No?
<andrewvos>
kiddorails: Not sure about that. I'm on a 13 and it's perfect.
<kiddorails>
Air/Pro?
<andrewvos>
kiddorails: But those 11" ones are so damn cute.
<andrewvos>
Air
<kiddorails>
:D
<kiddorails>
Apple products are hell expensive in the country I live in.
<kiddorails>
andrewvos: Someone took BrainFuck too seriously!
<kiddorails>
or practiced
<andrewvos>
kiddorails: Hoping it's in response to the latest js drama.
<kiddorails>
Oh yes, 'Ruby devs tagged along and rose fuss regarding semicolon'
<kiddorails>
Don't know much in depth. Just heard something like that.
<drbrain>
Ok, back
mattyoho has joined #ruby-lang
<rolfb>
i like morgan freeman's method for getting rid of something: "stop talking about it"
<drbrain>
any-key: when I looked into doing scrollable windows when I first started rdoc-browser it looked like tons of work
<drbrain>
You'd need to calculate which text was visible and clip yourself
<yxhuvud>
rolfb: I prefer the way of Cato the elder when it comes to methods of getting rid of something.
<any-key>
drbrain: so what do you think my best option would be?
<drbrain>
newpad() takes that work away and lets you fill the window with text and tell it what line to show at the top
joooooo has joined #ruby-lang
<rolfb>
yxhuvud: which is?
<shevy>
stab at it with a sharp, pointed knife?
<yxhuvud>
"carthage must be destroyed"
<any-key>
drbrain: what library is that in? Just the standard lib ncurses?
<drbrain>
Bug me to release my newpad() patch as a gem, it should take me just a day
<drbrain>
any-key: I'll try to do it tonight :)
<any-key>
drbrain: haha okay, will do
<any-key>
drbrain: how'd you go about writing it?
<any-key>
just banging away at the standard curses lib?
<kiddorails>
andrewvos: more than 20-25 tabs in browser, rails deployment, cpp code etc? Air can deal with it all at once (without getting too hot), right?
<drbrain>
Right now it is in stdlib in ruby trunk
<any-key>
kiddorails: they're more powerful than their size lead you to believe :)
<any-key>
drbrain: awesome!
<any-key>
I'll take a look at it
<drbrain>
I searched a lot on google then finally found something that mentioned newpad()
<kiddorails>
any-key: Okay. :)
<drbrain>
There is not much useful high-level curses documentation
<erikh>
no problem. I don't want to pester you about it.
<drbrain>
I have to finish some RubyGems work today
<any-key>
drbrain: thank you so much, this is incredibly useful
<any-key>
it's a shame rbcurses is in disrepair
<drbrain>
any-key: I recommend subclassing to create a ListBox class that you can fill with content
<erikh>
any-key: get your patching hat on!
<any-key>
drbrain: while you're around...is there a way to switch focus between curses windows?
<any-key>
I'm a bit new to curses and didn't really find anything of that nature in the docs
<drbrain>
ruby's curses wrapper makes it easy to use the superior noutrefresh, too
<drbrain>
So you can do all your screen edits then refresh once from the event loop
<mistym>
I really wish Ruby's curses came with colour support.
<any-key>
hmmm I guess I could keep track of the "current" window, then update all of the windows accordingly and monitor keystrokes and change the current window
<drbrain>
any-key: yes, I do that in rdoc-browser through subwindows
<any-key>
perfect
<drbrain>
mistym: it does, I use them in rdoc-browser to color links
<any-key>
maybe this curses itunes clone will happen :P
<mistym>
drbrain: Really? I tried to colourize character output in my micro-roguelike and it was having none of it.
dajmon1 has joined #ruby-lang
<erikh>
could be a tty issue
<erikh>
well, termcap and friends
bglusman has joined #ruby-lang
<mistym>
drbrain: What platform?
<dajmon1>
hello, i'm a student observing this channel for a research study - more here http://pastie.org/3547791
<mistym>
dajmon1: How long is this study running anyway?
<drbrain>
mistym: OS X
<mistym>
drbrain: I must be doing something wrong. Where's the soruce for rdoc-browser? I should take a look at how you did it.
<dajmon1>
mistym: 2 more weeks, then i decide whether or not i continue observations in here or move to a different place
<mistym>
drbrain: Aha.
<mistym>
Er. dajmon1, rather
* mistym
should not just hit d-tab-enter
<dajmon1>
i presented at a conference on april 1 :p
<dajmon1>
participant observation, which is a little less creepy than panopticon-style watchtowering
<dajmon1>
i'm basically learning ruby while i hang out in here and talk to people about their experience programming & being part of the ruby community
rippa has joined #ruby-lang
<kiddorails>
ah cool!
<kiddorails>
Ruby is fun. Tag along. :)
<dajmon1>
it is much more fun than java, which is my only previous programming experience
<Mon_Ouie>
Semicolons have been a hot topic lately.
<kiddorails>
Mon_Ouie: Just what I was about to say.
<kiddorails>
Maybe the next flame topic.
<erikh>
stop
<erikh>
stop now
<erikh>
aaaaah
dankest has joined #ruby-lang
<rue>
;;;;
<dajmon1>
;_;
<kiddorails>
;|;
<dajmon1>
i didn't know semicolons were a hot topic, it wasn't meant to open a can of worms!!
<erikh>
8==|;;;;;;;;;;;;;;;;>
<mistym>
There should be a programming language that consists of only semicolons, parens, and curly braces.
<drbrain>
You have to allocate the color with color_pair then attron to apply it while drawing text
<mistym>
drbrain: I believe I mixed up the first step. I'll take another look at that - thanks!
<drbrain>
You could port whitespace to those characters
<mistym>
Yeah, looks like I didn't do the color_pair part. I'll have to take another look at that when I get home, see if I can get it up and running in colour.
outoftime has joined #ruby-lang
<drbrain>
I love LimeChat for iPhone!
olesu has joined #ruby-lang
<erikh>
linkinus for iphone is nice as well
* mistym
<3s the Mac version of LimeChat
tyman has joined #ruby-lang
<drbrain>
I've been IRCing on the bus with it
<dajmon1>
does limechat exist for androids
<drbrain>
I wish github line numbers worked on iPhone safari
tyman has quit [#ruby-lang]
jfelchner has joined #ruby-lang
<drbrain>
dajmon1: google did not give me good results :(
<dajmon1>
me neither, i was hoping for a surprise
<drbrain>
Lunch time for me
chimkan___ has joined #ruby-lang
dejongge has joined #ruby-lang
tyman has joined #ruby-lang
qpingu has joined #ruby-lang
mehulkar has joined #ruby-lang
workmad3 has joined #ruby-lang
IPGlider has joined #ruby-lang
Sailias has joined #ruby-lang
frangiz has joined #ruby-lang
olesu has joined #ruby-lang
<erikh>
I use yaaic for android
<erikh>
it's basically as close to irssi in a gui as you're going to get
<erikh>
plays well with proxies as well.
bglusman_ has joined #ruby-lang
* TTilus
uses irssi+screen from both desktop and mobile
<countskm>
nice
justinmcp has joined #ruby-lang
travisjeffery has joined #ruby-lang
setmeaway has joined #ruby-lang
setmeaway has joined #ruby-lang
krz has joined #ruby-lang
deobald has joined #ruby-lang
gouthamvel has joined #ruby-lang
deobald has joined #ruby-lang
tonesfrommars has joined #ruby-lang
* manveru
uses weechat+tmux for desktop and mobile :)
<countskm>
tmux on macos? had some issue on linux but didnt want to spend the time fixing the term settings (spent 8 hours w/ screen years ago ;-)
gouthamvel has quit [#ruby-lang]
<countskm>
ordered an airbook so might give it a try on macos
<manveru>
dunno about mac, i'm on linux
<countskm>
im a sysadm so im jumping thru boxes to solaris/aix might have been my problem
<countskm>
really liked the concept - even bought the pragprog ebook :-)
rdavila has joined #ruby-lang
mehulkar has joined #ruby-lang
Hakon|mbp has joined #ruby-lang
workmad3 has joined #ruby-lang
orange33 has joined #ruby-lang
kiddorails has quit [#ruby-lang]
<orange33>
Hi, I can't install the rack gem, and am seeing an ECONNREFUSED error in the verbose output for the gem install command. However I have successfully installed other gems. Any ideas?
<orange33>
'gem list -r rack' shows rack in the resulting list, but trying to install results in "Could not find a valid gem 'rack' (etc.); Possible alternatives: rack."
olesu has joined #ruby-lang
<canton7>
orange33, pastie the output of you trying to install rack?
<orange33>
So I could install daemonize and eventmachine, for example (all thin prerequisites).
<orange33>
(can't paste, different machine and network) The error in the verbose output is: "ECONNREFUSED: Connection refused - connect(2) (http://rubygems.org/quick/Marshal.4.8/rack-1.4.1.gemspec.rz) Falling back to local-only install." The verbose output for daemonize, for example, was basically the same but it installed successfully.
<canton7>
try going directly to that url in a browser? tis working fine for me
phlipper has joined #ruby-lang
<orange33>
Me too, unfortunately. Trying again on the specific server.
<jtoy>
uh, has anyone seen where copying and pasting into rib doesn't work because it doesnt copy over all the charcaters?
<drbrain>
jtoy: I've had problems typing UTF-8 characters into irb
<drbrain>
at least, when readline is wrapping libedit
<jtoy>
drbrain: this is the first time I've ever seen this, there are no crazy characters, just code i typed into an editor and then copy and pasted into a remove rib instance
rdavila has joined #ruby-lang
rdavila has joined #ruby-lang
Jake232 has joined #ruby-lang
<slyphon>
drbrain: do you have any advice on deprecation warnings?
<slyphon>
i've never had to think about it before
<drbrain>
slyphon: whatever you choose, you're damned
<slyphon>
oh, good
<drbrain>
slyphon: I use regular old warn and include a notice for when the feature will go away
<slyphon>
so Kernel.warn
<slyphon>
no way to make it do that only once?
<drbrain>
warn "RDoc::RDocError is deprecated and will be removed in RDoc 4"
* slyphon
nods
<drbrain>
you can wrap up warn in your own code
<Mon_Ouie>
I think using caller to print where that feature was used would help too
<slyphon>
it would be way easier if someone else did that for me
<nofxx>
Read a lot around here, and I think too that you can't respect a language that uses semicolons. This changes it http://pksunkara.github.com/semicolon
bryancp has joined #ruby-lang
<fowl__>
didnt you paste that link earlier nofoo
<fowl__>
nofxx, *
<nofxx>
fowl__: hmm.. nope, no tme
bryancp has joined #ruby-lang
<nofxx>
haha... found it, sorry
<nofxx>
well, not big deal anyway.. it just manage to be uglier than the whitespace lang (haha)
<nofxx>
but brainfuck still the uglier
<nofxx>
fowl__: was mistym_ who posted, some minutes ago, btw
<fowl__>
want an esoteric language with dancing kirbys (>o_O)> <(-_-^)
<fowl__>
nofxx, its cool i was just going to chide you for advertising :P
<Mon_Ouie>
Programming languages that have the same principle as piet are the ones that have the greatest potential for being beautiful
Sailias has joined #ruby-lang
<mistym>
fowl__: Yes! I want a dancing Kirbies language.
<Xzyx987X>
I am once again stumped. I'm trying to add activesupport to my project for some of it's classes, but it seems to be having some issues autoloading it's files: http://pastie.org/3807546
xpipe has joined #ruby-lang
<Xzyx987X>
autoload in theory works fine, as other files in the project autoload just fine
<Xzyx987X>
but in this case, it isn't working for some reason. my best guess is something to do with rubygems
<Xzyx987X>
I have confirmed the code doesn't work on two separate systems by the way, so I know it's not just my configuration on my dev box
<drbrain>
Xzyx987X: I don't see where you registered the autoload
<Xzyx987X>
I didn't, it's in active_record.rb
<Xzyx987X>
active_support.rb I mean
<drbrain>
Xzyx987X: can you show me where in active_record.rb there is an autoload?
<samuelkadolph>
Xzyx987X: Very little of activesupport is autoloaded so you can use it in a gem/project without having it all loaded.
<drbrain>
right
<samuelkadolph>
You are meant to require specific parts you want to use.
<drbrain>
Xzyx987X: I really doubt there is an autoload :TimeZone, 'active_support/values/time_zone' in ActiveSupport
<drbrain>
huh, interesting
<xpipe>
(ruby newbie here) Hi, could anybody help me instanciating a class from a COM DLL? I managed to load it with dl DL.dlopen('./dllhere.dll'), but i haven't figured how to create an objet from the class contained in the dll. Thanks in advance!