pkrnj has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 252 seconds]
<matti>
zzak: ;] drbrain ;]
ghanima has quit [Quit: Leaving.]
andrewhl has quit [Remote host closed the connection]
spike|spiegel has quit [Read error: Connection reset by peer]
rohit has joined #ruby-lang
ryanf has joined #ruby-lang
dhruvasagar has joined #ruby-lang
<drbrain>
zzak: mostly, #7326 is long
<drbrain>
I think it's ok, other than what I noted
spike|spiegel has joined #ruby-lang
<zzak>
just read your comment, thanks for the review, you really didnt have to :D
<drbrain>
mostly, I want to be sure we're moving to + for wrapping arguments
<zzak>
i sent him a link to the documenterhowto wiki page
<zzak>
which explains that
ruskie has quit [Excess Flood]
bluepojo has quit [Ping timeout: 245 seconds]
BigO has joined #ruby-lang
<drbrain>
I don't yet have a good plan on how to fix the email address munging bug in RDoc
<drbrain>
I know why it's happening now, at least
pkrnj has joined #ruby-lang
ruskie has joined #ruby-lang
lordnaz has quit [Ping timeout: 256 seconds]
BigO_ has joined #ruby-lang
BigO has quit [Ping timeout: 265 seconds]
dhruvasagar has quit [Ping timeout: 264 seconds]
krz has joined #ruby-lang
swarley has quit [Read error: Connection reset by peer]
rekky has joined #ruby-lang
cantonic has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby-lang
<zenspider>
yorickpeterse: josh susser is "far too eager to grab [his] pitchfork and find somebody to shame in the name of whatever movement they support" ?!?! wtf is wrong with you?
<yorickpeterse>
But the end idea is to keep validation in the specific objects themselves
<xeviox>
are there any ruby bindings for qt that doesn't depend on kde?
<ddd>
qt shouldn't depend on kde. kde depends on qt
<xeviox>
I know
<ddd>
oh gotta be a distrib thing
<xeviox>
but the qt bindings for ruby are both made from kde
<xeviox>
yep
<xeviox>
on arch there is a dependency on kdebase-runtime (through other dependencies)
<kalleth>
yorickpeterse: sec, reading
<kalleth>
ah, okay :)
<kalleth>
that's a good approach -- so wrap up the individual objects and then they can handle their validity/invalidity with potential error messages attached too
<kalleth>
rails-like :)
<kalleth>
thanks
r0bby has joined #ruby-lang
<xeviox>
or what's preferred to write a guy with ruby?
<gjaldon>
that's my orig usecase and tried to update gem as a way to try and resolve it
<gjaldon>
but got the same error. you're right that it seems to happen on any gem cmd
srji has quit [Quit: Lost terminal]
<zenspider>
hrm... do you have the rdoc gem installed?
<zenspider>
fuck that. that's just noise
<zenspider>
nuke that gem... it seems at fault. google seems to agree
<zenspider>
ls -ld /home/gjaldon/.rvm/gems/ruby-1.9.3-p125@global/*/rubygems-bundler*
<zenspider>
if that output looks correct
<zenspider>
^ls -ld^rm -rf
leopard_me has joined #ruby-lang
<zenspider>
AFTER that... you prolly want to install the rdoc gem to get newer codes
Nisstyre has quit [Ping timeout: 265 seconds]
<zenspider>
gjaldon: looks like newer versions of the rubygems-bundler gem are fine. but you'll still have to manually remove it first
kain has quit [Quit: exit]
kain has joined #ruby-lang
<gjaldon>
done
<gjaldon>
removed rubygems-bundler manually
<zenspider>
so now `gem i rubygems-bundler` should get it back and working... should... I don't actually use that gem
<gjaldon>
so should I go ahead and remove rdoc too?
<zenspider>
no
<zenspider>
ruby ships with rdoc
<zenspider>
just install a newer gem and it'll win
<zenspider>
gem cleanup rdoc just in case
faces has quit [Read error: Connection reset by peer]
<apeiros_>
hi zenspider
<apeiros_>
you played with gosu?
faces has joined #ruby-lang
<gjaldon>
still not working
<gjaldon>
i just checked again and the error I got was for rubygems-bundler in another dir
<zenspider>
apeiros_: yeah. some.
<zenspider>
nothing terribly advanced
<apeiros_>
you like it?
<zenspider>
gjaldon: well then ... fuck rubygems-bundler.
<zenspider>
sorry... but anything with "bundler" and "rubygems" in its name is already suspect as buggy
<zenspider>
apeiros_: very much
<zenspider>
but... I'm biased towards simplicity
<gjaldon>
zenspider, turns out I have: ~/.rvm/gems/ruby-1.9.3-p125/gems/rubygems-bundler and ~/.rvm/gems/ruby-1.9.3-p125@global/gems/rubygems-bundler
<zenspider>
but... I had to write a circle primative in C to get fast circles so... yeah.
<zenspider>
gjaldon: hah
<apeiros_>
zenspider: yeah, that's from where I know that you used gosu :)
<zenspider>
yet another reason to not like rvm's complexity
<apeiros_>
you prefer it over rubygame?
<zenspider>
I never used rubygame
<zenspider>
I don't think...
<zenspider>
I did something in SDL before... but I think it was raw sdl
mytrile has joined #ruby-lang
<zenspider>
gosu was MUCH easier... esp since it was a plain gem install and you were up and running
<zenspider>
and the update/draw API is brilliant
<zenspider>
just wish there were a bit more with it
<zenspider>
you know... circles :P
<zenspider>
all I wanted to do was visualize my collision detection fields :)
Hakon has joined #ruby-lang
<zenspider>
ok. it's pushing into 5am here... bed...
Nisstyre has joined #ruby-lang
<zenspider>
good luck gjaldon
<apeiros_>
:)
judofyr_ has left #ruby-lang [#ruby-lang]
<apeiros_>
gn8
judofyr has joined #ruby-lang
<judofyr>
can someone un-ban judofyr_ from here?
<judofyr>
Error(435): judofyr #ruby-lang Cannot change nickname while banned on channel
<gjaldon>
thanks a lot for your help zenspider
<judofyr>
kinda annoying to have to leave this channel before I change nick…
<ddd>
judofyr: means you're probably not authenticated to nickserv
Hakon has quit [Client Quit]
<ddd>
usually happens when nickserv forgets your authentication in a channel that requires registered nicks to enter, and you try to change a nick, it will block you
<judofyr>
ddd: yeah, I'm trying to *change* my nick so I can authenticate
<ddd>
you don't need to. /msg nickserv identify blah pass
<judofyr>
but I don't have an account for "judofyr_"
<ddd>
blah being whatever your registered nick is
<ddd>
i know. you identify and then you can change
<judofyr>
still broken crap
<ddd>
welcome to irc
<ddd>
:shrug:
<apeiros_>
judofyr: you sure you're banned here? doesn't look like…
<judofyr>
apeiros_: then I guess ddd is correct
<apeiros_>
probably
<apeiros_>
oh, sorry, judofry
<judofyr>
judofyr_ is just unuathenticated, which are "banned" here
<judofyr>
ah, it's okey apieros
<apeiros_>
atta boy
<apeiros_>
meh, gosu's Window#scale considered broken, moving on…
<ddd>
man the human brain is funny. I was watching Josh Susser's Thinking In Objects talk at RubyConf2012. He made one little innocuous statement that atoms can't be chopped up, and my mind dwelled on the untruth of that so much so that i lost the entire train of thought he was trying to actually pass on. lol
<ddd>
he was covering uniques, things that can't be made smaller (like nil, true, false, symbols) when he said it, but man did my mind lock onto that comment and hard
<judofyr>
ddd: I always thought "Atom" was a weird name for a RSS format. I mean, each Atom feed *consists* of blog posts.
<ddd>
judofyr: hehe *exactly!*
kurko_ has joined #ruby-lang
<ddd>
i got to thinking about all the outdated knowledge in society at large. can't write shit for content for my own website but i could fill a book with what i came up with about outdated knowledge. go figure :)
<gjaldon>
can anyone here help with rvm
<ddd>
and i'm quite sure he knows about quarks, it was just funny
<ddd>
gjaldon: #rvm
<judofyr>
ddd: have you been hanging around here a long time?
<gjaldon>
i want to clean it up and reinstall ruby
<judofyr>
gjaldon: yeah, I heard #rvm is a pretty good channel for help with RVM :)
<ddd>
in here? hmm, little over a year maybe
<gjaldon>
lol thanks guys
<judofyr>
gjaldon: but no, really. they do take their IRC channel very seriously :)
<ddd>
yep
<judofyr>
ddd: are you famous?
<judofyr>
:)
<ddd>
doubtful. My only claim to fame is having been one of the RVM developers for awhile, and doing technical review of a book or two. Beyond that, I'm just some guy in Timbucktoo out on the intarwebz
esad has quit [Quit: Computer has gone to sleep.]
<ddd>
i'm definitely no susser, klabnick, dhh, or matz :)
<ddd>
true true. mental typo that made it to the fingers :)
judofyr has quit [Read error: Connection reset by peer]
judofyr has joined #ruby-lang
<judofyr>
ddd: doing anything fun these days?
rohit has quit [Quit: Leaving]
<apeiros_>
who's matz?
<ddd>
i think so. other than contract work, I'm trying my hand at making a testing framework aimed at being able to use ruby to test anything using ruby as the wrapper, with database collection of various bits about the SUT for use in reusable suites (or batteries).
<ddd>
fun stuff, even if no one else uses it
<judofyr>
nice
<judofyr>
apieros: nice
* apeiros_
got his success of the day - link (from NES Zelda) walking - now back to work…
mytrile has quit [Remote host closed the connection]
<ddd>
basically an umbrella gem with multiple additional plugin gems
<ddd>
apeiros_: hehe nice
<apeiros_>
ddd: you can code C?
<ddd>
apeiros_: yes
<apeiros_>
what do I have to do to lure you into the team? :)
<ddd>
haven't in quite some time, but i can
<ddd>
hehe, find me a way to get more available time :)
<apeiros_>
carefull… I'might call your employer 0:-)
<apeiros_>
careful?
<apeiros_>
meh, engris
<ddd>
lol. i run my own business from home.
<judofyr>
ah, I remember the day I learned the difference between an union and a struct in C. spent hours in gdb wondering why the hell the fields of that thing (union) changed all time!
chah_ayu has joined #ruby-lang
nXqd has joined #ruby-lang
<apeiros_>
oh, that makes it easier to call your boss
<whitequark>
apeiros_: you need someone C-proficient?
<ddd>
but being at home means little time as someone has to care for the place, and the kids, and the wife, and the… :)
<apeiros_>
whitequark: probably. ruby will most likely cause one or two bottlenecks
nXqd has quit [Client Quit]
<apeiros_>
also if gosu is troublesome (though gosu is C++)
<judofyr>
whitequark: what's up?
<apeiros_>
my C is on entry level at max…
<apeiros_>
whitequark: why? can I persuade you? :)
<ddd>
my C is intermediate at max. I can do a lot, but pointers frustrate me, and they're like *core* to C
<apeiros_>
ddd: haha, yeah, pointers… it sounds like the easiest thing in theory… I mean… really… but then in code… I leak them like a swiss cheese… :-S
<ddd>
yep
<whitequark>
apeiros_: well, depends on the meaning of "team". if it's core ruby or something related I might be interested
<apeiros_>
so frustrating. I feel like an idiot when I run valgrind on my code.
<apeiros_>
whitequark: no, RPG game
<apeiros_>
I'm not a core dev
<whitequark>
oh ok
chah_ayu has quit []
<ddd>
yeah i wouldn't put myself out there yet to work on ruby-core. self doubt would kill me on such a high profile code base, nevermind that most members of that team would run circles around me
<judofyr>
ddd: whitequark is implementing his own Ruby implementation :)
<whitequark>
ddd: high profile lol
Mon_Ouie has quit [Ping timeout: 240 seconds]
apeiros_ has quit [Remote host closed the connection]
<judofyr>
whitequark: or, are you still working on it?
<whitequark>
judofyr: doing that right now
<judofyr>
nice
<whitequark>
heh, that's a journey for years :)
<ddd>
whitequark: compared to *my* code base, its like night and day. i'm some guy out in podunk, usa. most of the core work on this stuff day in and day out. i'd be like a mouse in a den of lions :) give me another year or so, then maybe
<judofyr>
whitequark: I'm kinda working on a language, but I'm stuck at the syntax and semantics. y'know, to OOP or not.
<whitequark>
judofyr: make a prototype-based OO system
<whitequark>
y'know, like that fancy self thing
<ddd>
lol
<chris2>
oop is so 1990 :P
<judofyr>
nah, not a fan
<ddd>
whitequark: hah, you hav esuch a way with words
<judofyr>
chris2: then hit me with 2010 :)
<judofyr>
whitequark: oh, and concurrency. that's trickky.
<chris2>
the go thing looks good right now, but perhaps a bit too unsophisticated
<ddd>
ok, methinks its time to put on some Deadmau5 and do some actual work
<whitequark>
chris2: there's nothing interesting in go. it's stagnation. no actual useful features at all.
<whitequark>
chris2: check Rust if you want to see a new and good language
<chris2>
i like it :P
<chris2>
yeah, i looked at rust
voker57 has quit [Ping timeout: 260 seconds]
<ddd>
whitequark: what do you think of scratch :)
<chris2>
in 3 years perhaps
rsl has joined #ruby-lang
<chris2>
its in a superfluid state of flux
<whitequark>
chris2: I mean, if Rust would be ready right now, Ruby dominance would be seriously threatened for some tasks I do
<ddd>
AIDE makes it so you can code android apps directly on the tablet
<ddd>
so that pdf is a bit.. off
<whitequark>
judofyr: yeah, you can also build houses with wooden children cubes. doesn't mean it is a good idea.
<judofyr>
whitequark: replying to Touch or typing now?
<andrewvos>
"Wooden children cubes"
<whitequark>
judofyr: Speed of Touch
<judofyr>
ah
<judofyr>
just a silly research paper :)
apeiros_ has quit [Remote host closed the connection]
<ddd>
ahh should have scanned the pdf a bit more. its not saying that you can't or shouldn't
<whitequark>
each programming environment which couldn't be programmed in itself doesn't have a right to exist
<andrewvos>
whitequark: What about regular expressions?
<whitequark>
andrewvos: lolwhat
<whitequark>
not turing complete
<whitequark>
=> not a programming language
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
<whitequark>
in fact the same kind of applies to C++ templates, which, as you all know, were accidentally defined as turing-complete
<whitequark>
still, they do not have a right to exist as a _programming environment_ indeed
x0F_ is now known as x0F
<whitequark>
or brainfuck
<whitequark>
or whatever
<andrewvos>
whitequark: Make?
<whitequark>
andrewvos: yeah you can add features and make them turing-complete. see the part about C++ templates above.
<andrewvos>
Sorry I'm not trolling you, I'm just trying to think of languages that couldn't be made in themseles
<ddd>
judofyr: i wouldn't program directly on a tablet either visually or in text unless the tablet had a dockable keyboard. the tablet by itself (if my 9" Transformer Tablet was any proof) is too cumbersome, the touchscreen for typing out code isn't responsive enough nor sensitive enough to non-dead-on typing touches which increases the number of mistakes dramatically.
judofyr has quit [Read error: Connection reset by peer]
<andrewvos>
themselves*
judofyr has joined #ruby-lang
<ddd>
the only reason i did any coding on my tablet was *because* i had a keyboard dock. otherwise i wouldn't have even thought of attempting it
dr_bob has quit [Quit: Leaving.]
<judofyr>
ANYWAY
<whitequark>
ddd: I've seen some solutions which people coding on their tablets employ
<ddd>
like?
<whitequark>
basically they are turning these tablets in something not entirely unlike dumb terminals of past century
<whitequark>
VT-52 and so on
<ddd>
ahh ssh out to a remote or something?
<whitequark>
either that's tmux, or something more sophisticated and browser-based
<whitequark>
which is basically the exact same thing but with more javascript
<whitequark>
I don't get how is that "coding on tablet"
<whitequark>
your input and display device don't matter
<whitequark>
you're not programming on your keyboard or your monitor.
<whitequark>
even more, the fact that you are turning tablet into something very closely representing a laptop only confirms the fact that traditional tools are suited better for the task
aetcore has quit [Remote host closed the connection]
<whitequark>
in other words, fucking hipsters.
nXqd has joined #ruby-lang
nXqd has quit [Client Quit]
<ddd>
think thats the point i was trying to make. i had to turn my tablet back into basically a netbook to get anything really done.
nXqd has joined #ruby-lang
<ddd>
my biggest problem was the touchscreen when entering text, if you hit say the edge of a letter it would either not type the letter or do the one next to it, the spell checker would constantly kick in and screw me up etc.
<whitequark>
ddd: try the new android 4.2 input method aka swype
<ddd>
things not a concern with my keyboard or on my MBP.
<whitequark>
it's plain awesome
<ddd>
4.2 is jellybean correct?
<whitequark>
I can input text with maybe just 1/2 or 1/3 of the speed I can do that on my keyboard
<whitequark>
as opposed to 1/10 or less
<whitequark>
ddd: 4.1.x-4.2 are all jellybean
tbuehlmann has joined #ruby-lang
<whitequark>
but the new IM is only in 4.2. I bet someone has already extracted it and put into market.
<whitequark>
*on market probably
<judofyr>
whitequark: I can't find it in the App Store
<ddd>
oh cool
<whitequark>
judofyr: wrong device manufacturer? you're expected to have something manufactured by a G-company, not an A-company :)
<whitequark>
hmm
<ddd>
whitequark: you played with the NExus 7 at all by chance?
esad has quit [Quit: Computer has gone to sleep.]
<whitequark>
ddd: I have it
<ddd>
friend of mine has been raving about it (fellow coder) but i;ve not got to so much as glimpse one yet
<ddd>
nevermind handle it and see how it is
<ddd>
oh, how do you like it?
lcdhoffman has joined #ruby-lang
<whitequark>
ddd: cool device. I mean, it's really good, nice hardware and case, polished software
<whitequark>
but unfortunately it's as useless as any other tablet
<ddd>
hehe
<whitequark>
three things: 1. read pdfs 2. browse web 3. play games
<judofyr>
you're too much a hacker
esad has joined #ruby-lang
<ddd>
yeah my tablet other than messing with AIDE was almost all email, web, pdfs, and angry birds :)
<whitequark>
I mean, I'm ready to give $250 for doing those three things
<ddd>
oh no doubt
dr_bob has joined #ruby-lang
<judofyr>
so, OOP or not? how to do concurrency?
<whitequark>
and I'm absolutely enjoying reading some blog entries while going to the office in underground
<whitequark>
judofyr: try trait-based OOP
<whitequark>
and exclusively actor-based concurrency without shared mutable data
BlaXpirit has joined #ruby-lang
<ddd>
i figure 250-300 for just those capabilities is worth it. I have to admit wanting an iPad3 possibly, but that has to do with because I'm getting into writing some apps targeting Apple's platform.
<judofyr>
whitequark: how to deal with the sharing issue?
<judofyr>
copy everywhere?
<whitequark>
ddd: honestly, starting with android >=4 I don't really get how anyone not already locked in to Apple's ecosystem would want to buy an iDevice
<whitequark>
but that's a little offtopic
<ddd>
my brother wants me to code a couple apps for him and his studio, quite a few of the people I know IRL have iphones and ipads, far more than android devices, so its become a target thing
<whitequark>
judofyr: not necessary
<whitequark>
you can also force data immutability
judofyr has quit [Read error: Connection reset by peer]
<whitequark>
i.e. you can only pass constant data to other actors
judofyr has joined #ruby-lang
<whitequark>
as in "let" opposed to "let mut", "const x", "final int x"...
<whitequark>
you got the idea
dc5ala has quit [Quit: Ex-Chat]
<whitequark>
ddd: that's what I meant by "locked in". it's indirect in your case
<judofyr>
whitequark: I didn't get anything before 14:33 whitequark: as in "let" opposed to "let mut", "const x", "final int x"...
<ddd>
whitequark: agreed. what I might do is get an android tablet and the ipad (kids can do their homework on it if nothing else and leave my MBP to me for once) and target both at once.
<whitequark>
ddd: how can kids do homework on a tablet?..
apeiros_ has joined #ruby-lang
<ddd>
on the ipad? they can do their research, there's various apps for writing docs, can push to the wireless printer, etc.
<ddd>
they did it all the time on my android tablet too. they used to have ipads until they got broken (damned kids and their no clue of the cost of things)
<whitequark>
^ why you don't give ipads to kids
<ddd>
heheh
<whitequark>
android tablets are kinda becoming disposable
<ddd>
agreed
<whitequark>
I wonder if someone already offers them for free
<whitequark>
for some marketing reasons
zmack has joined #ruby-lang
<ddd>
i know a few of the cellphone companies are
<ddd>
get the family plan, get 2 or more phones and get a nexus or galaxy whatever they are, free
<ddd>
galaxy S i think it is.. trying to recall the commercial in my head
retro|cz has joined #ruby-lang
chris2 has quit [Read error: Operation timed out]
<ddd>
no thats the phone
<ddd>
in any case. if you got the family plan and a cuple phones they gave you a low grade tablet free in the deal.
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mwjcomputing has joined #ruby-lang
wyhaines has joined #ruby-lang
<ddd>
whitequark: you familiar with locations in canada at all? i was living in port elgin, ontario for awhile and the local phone company (bruce telecom) was offering something similar.
gmci has joined #ruby-lang
chris2 has joined #ruby-lang
gmci is now known as Guest28589
<whitequark>
ddd: canada?!
<whitequark>
on which side of globe it is?
<ddd>
hah
<ddd>
arse ;
<ddd>
)
<whitequark>
hehe, just kidding
<whitequark>
I live in Russia
<ddd>
gotcha
* judofyr
lives in Norway
<judofyr>
in case anyone wondered
<ddd>
always wanted to visit there. then again, in truly american fashion it was because I grew up with it as this mysterious place filled with KGB agents and vodka drinking gangsters :)
<whitequark>
ddd: not entirely untrue (our president was/is a KGB agent after all), but much less fancier than you think.
<ddd>
hehehe
<ddd>
I also want to visit australia, but again in truly american fashion its because i have this thing for the aussie accent, dingos, and the movie Kangaroo Jack :)
<ddd>
now augmented by the fact my friend Ryan Biggs lives there :)
Uranio has joined #ruby-lang
<whitequark>
ddd: I want to live in Australia
<ddd>
and Rebecca Skinner, (sevenseacat)
<whitequark>
nice place. warm. far, far away from anything remotely resembling conflict. nice.
<ddd>
whitequark: when i go there, I want to go places *not* on the tourist map.
<whitequark>
ddd: tourist maps? what's that
mytrile_ has joined #ruby-lang
mytrile_ has quit [Client Quit]
mytrile has joined #ruby-lang
<ddd>
everyone including the US shows their flashy side when you hit the tourist spots. I'd rather go and see how other people actually live. We're all (in North American at least) so isolated in our own cultures, beliefs, etc. I liked traveling because you got to see real people living real lives based on the things that happen where they live. Not some tourism guide's idea of granduer.
<ddd>
travel, in most cases, for me is about educating yourself about how others live life. different than your own, because well, they grew up differently. social impacts, governments, environments, etc. i guess i like getting an appreciation for the realities of others, not just my own. but i admit, i'm totally weird like that
jxie has joined #ruby-lang
<whitequark>
ddd: exactly what I've tried to say. I don't get "tourism". who the hell needs yet another fridge-attached photo of [well known place of interest name here]?
<ddd>
yea exactly
<ddd>
i mean sure, i'd like to see Sydney, but the rest.. put me outside my comfort zone. just don't get me killed :)
<whitequark>
ddd: gotta watch for things with more than two legs
<ddd>
i'd like to see moscow too, but again, put me outside my comfort zone, and don't get me killed :)
<ddd>
yeah. they got some of the most if not THE most deadliest animals on the planet.
<ddd>
they got most of the deadliest snakes and spiders
<whitequark>
ddd: not exactly. scariest yes
<whitequark>
but most of the living creatures don't really want to do any business with you
imperator has joined #ruby-lang
<whitequark>
whereas in more tropical areas there are tons of those who do, and most of them want it internally.
<whitequark>
and that doesn't often end nicely for you.
<ddd>
hehehe
<ddd>
great white anyone?
<whitequark>
huh?
<ddd>
well take a trip to africa, most of the food chain sees you as pretty low on it
<ddd>
oh was referencing the Great White Shark
<whitequark>
ah. I think more about critters like hookworms, and some of protea species
<whitequark>
it's not that hard to avoid a shark.
<whitequark>
much harder to dodge an encouter with something micrometer-sized
<ddd>
ohh! yeah. whats that one fish we guys have to look out for? trying to remember where in the world its from. swims up your piss hole and has barbs so coming out aint easy :)
<whitequark>
south america
<ddd>
candiru
<ddd>
thats the other problem i have with big cities and tourist areas. everyone is so insulated from the realities of life.
<ddd>
but they think they're not. totally forget (and rightfully they should thats the whole daned point) that the host country is going out its way to make it super pleasant, as few 'shockers' as possible, just an all out bath in heaven's waters. i mean it behooves the host to make you forget that if you want repeat business hehe
<ddd>
dont' get me wrong. i love a good weekend at the beach as much as anyone, i just want to learn something along the way. OTHER than keep your wallet next to your balls :)
benjamin-patch has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
vlad_starkov has quit [Remote host closed the connection]
judofyr has quit [Remote host closed the connection]
thatdutchguy has joined #ruby-lang
agarcia has quit [Quit: Konversation terminated!]
CaptainJet has joined #ruby-lang
imajes has quit [Excess Flood]
dc5ala has joined #ruby-lang
imajes has joined #ruby-lang
mksm has quit [Read error: Operation timed out]
apeiros_ has joined #ruby-lang
TheMoonMaster has quit [Ping timeout: 264 seconds]
mksm has joined #ruby-lang
TheMoonMaster has joined #ruby-lang
banisterfiend has joined #ruby-lang
cyri_ has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
hidekin has quit [Quit: Leaving]
gnufied has quit [Quit: Leaving.]
Weems has joined #ruby-lang
Weems has quit [Changing host]
Weems has joined #ruby-lang
sailias has quit [Ping timeout: 245 seconds]
sent-hil has joined #ruby-lang
<sent-hil>
does Gem::DependencyInstaller in Rubygems use/obey gemrc?
MaddinXx has joined #ruby-lang
dhruvasagar has quit [Read error: Operation timed out]
ryanf has joined #ruby-lang
ryanf has quit [Client Quit]
jtoy has joined #ruby-lang
nXqd has quit [Ping timeout: 276 seconds]
cardoni has joined #ruby-lang
sush24 has quit [Ping timeout: 260 seconds]
sailias has joined #ruby-lang
methods has joined #ruby-lang
gnufied has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
llaskin1 has joined #ruby-lang
vlad_starkov has joined #ruby-lang
sush24 has joined #ruby-lang
dankest has joined #ruby-lang
dous has quit [Remote host closed the connection]
cardoni has quit [Quit: cardoni]
vlad_sta_ has joined #ruby-lang
llaskin1 has quit [Changing host]
llaskin1 has joined #ruby-lang
<llaskin1>
can a method with one variable "def foo(bar)" be called as "foo" thus making "bar" an optional variable?
gaveen has quit [Ping timeout: 248 seconds]
<mistym>
llaskin1: def foo(bar=default_value)
<llaskin1>
what if the default value = nil ?
<llaskin1>
oh i got it
vlad_starkov has quit [Ping timeout: 252 seconds]
cardoni has joined #ruby-lang
alvaro_o has joined #ruby-lang
ryanlecompte has joined #ruby-lang
blazes816 has joined #ruby-lang
BigO has joined #ruby-lang
krohrbaugh has joined #ruby-lang
r0bby is now known as robbyoconnor
knu has quit [Read error: Connection reset by peer]
esad has quit [Quit: Computer has gone to sleep.]
llaskin1 is now known as llaskin
sush24 has quit [Quit: This computer has gone to sleep]
GarethAdams has quit [Ping timeout: 244 seconds]
wyhaines has quit [Remote host closed the connection]
dankest is now known as dankest|away
gaveen has joined #ruby-lang
aetcore has joined #ruby-lang
wallerdev has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
__butch__ has joined #ruby-lang
wyhaines has joined #ruby-lang
dankest|away is now known as dankest
Smol has joined #ruby-lang
__butch__ has quit [Remote host closed the connection]
dr_bob has quit [Quit: Leaving.]
gregmoreno has joined #ruby-lang
__butch__ has joined #ruby-lang
esad has joined #ruby-lang
swarley has quit [Ping timeout: 265 seconds]
brianpWins has joined #ruby-lang
R_Macy has quit []
<yorickpeterse>
Maybe a bit offtopic but could anyone explain to me why I'd want to use zsh instead of Bash? Every article I read talks about it's auto completion system but that's most likely the one thing I'll use the least.
<yorickpeterse>
* its
<chris2>
yorickpeterse: sure?
<yorickpeterse>
"sure?"?
<chris2>
yorickpeterse: imagine you could do scp foo.org:src/fo<TAB>
<chris2>
and it would work
<yorickpeterse>
wat
<yorickpeterse>
Well, does that require any plugins? I tried some of the auto completion stuff for `kill` but it wasn't very impressive (at least not as much as what I saw)
<chris2>
or do man bas<TAB>
<chris2>
yeah, kill kinda sucks
<chris2>
because it doesnt take names
<chris2>
killall completes better
<yorickpeterse>
hm
<chris2>
and you need to enable completion first
<yorickpeterse>
I know, I did follow the "installer"
<chris2>
then its activated
<yorickpeterse>
Or do you still need to install command specific completions a la bash?
<chris2>
most are included
esad has quit [Quit: Computer has gone to sleep.]
<lianj>
i also like that sc<up> only shows history entries starting with sc
<chris2>
because you configured it that way :P
<chris2>
but bash can do that too
<yorickpeterse>
hmm
<yorickpeterse>
So besides the completion, what other cool things can it do?
asaaki has quit [Quit: »So foul and fair a day I have not seen.«]
<yorickpeterse>
I also read some things about "It's just better!" but I'm not 100% convinced about that
MaddinXx has quit [Remote host closed the connection]
<chris2>
yorickpeterse: its a matter of taste
muckerr has joined #ruby-lang
ttilley has joined #ruby-lang
<zzak>
bash, because im an old stick in the mud
<yorickpeterse>
Suppose I should give it a spin
banisterfiend has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
davidbalbert is now known as davidbalber|away
MaddinXx_ has joined #ruby-lang
sent-hil has quit [Remote host closed the connection]
llaskin has quit [Read error: Connection reset by peer]
<imperator>
my god, netflix is down...panic!
cyri_ has quit [Quit: cyri_]
<darix>
*panics*
<mitchty>
just grab your towel
llaskin has joined #ruby-lang
sepp2k has quit [Ping timeout: 264 seconds]
jtoy has quit [Quit: jtoy]
dasil003 has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby-lang
mwjcomputing3 has joined #ruby-lang
<zzak>
just goto blockbu.... oh wait
zz_chrismcg is now known as chrismcg
<Smol>
hello folks. it seems like the fix http://bugs.ruby-lang.org/issues/4246 here was never backported to ruby 1.8. should I write a patch against the ruby_1_8 or ruby_1_8_7 branch (or perhaps both)? haven't contributed to ruby before so not sure what the standard procedure is.
mwjcomputing has quit [Disconnected by services]
mwjcomputing3 has left #ruby-lang [#ruby-lang]
solars has quit [Ping timeout: 276 seconds]
cultureulterior_ has quit [Quit: cultureulterior_]
<macclearich_>
I'm investigating doing something with adding method_missing to NilClass but i fear me that'll have global implications… not so awesome
qwerxy has quit [Quit: offski]
<macclearich_>
and what's stumping me is getting the fully qualified call chain back at the end of all those method_missings
<zzak>
imperator: avengers is awesome
davidbalber|away is now known as davidbalbert
JohnBat26 has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
vlad_starkov has joined #ruby-lang
jtoy has joined #ruby-lang
Eol has joined #ruby-lang
Axsuul has joined #ruby-lang
sent-hil has joined #ruby-lang
<sent-hil>
why is there multiple gempaths in gemrc file?
<sent-hil>
i mean aside from installing it in multiple locations, but i don't see the point of that
chrismcg is now known as zz_chrismcg
wyhaines_ has joined #ruby-lang
wyhaines has quit [Ping timeout: 248 seconds]
judofyr has joined #ruby-lang
<macclearich_>
so, has anyone got any idea how to intercept a call to foo.bar.something, when foo has no method or variable called bar? I want to be able to make it return foo.fields['bar.something']
<macclearich_>
method_missing only exposes the "bar" part
muckerr has left #ruby-lang [#ruby-lang]
MaddinXx_ has quit [Remote host closed the connection]
cardoni has quit [Quit: cardoni]
<sent-hil>
macclearich_: bar returns nil, so you're calling something on nil
<macclearich_>
right
<sent-hil>
instead having bar return self, so it is calling something on foo again
<sent-hil>
*have
<sent-hil>
and keep track of it internally
<macclearich_>
hmmm
<macclearich_>
so something like self.class.send(:define_method, :bar, proc { return self })
vlad_starkov has quit [Remote host closed the connection]
cardoni has joined #ruby-lang
retro|cz has joined #ruby-lang
<manveru>
kinda :)
<whitequark>
macclearich_: no no no
<whitequark>
not quite
<whitequark>
let me explain
<whitequark>
btw, does anyone know a nice online ruby interpreter? like jsfiddle
<manveru>
ideone
<manveru>
not that nice, but at least an interpreter :)
<drbrain>
whitequark: tryruby.org?
<whitequark>
drbrain: does not allow to save a snippet and then show it
<whitequark>
repl.it has 1.8.7 *gasp*
<drbrain>
I'm not sure
<whitequark>
ah right, emscripten. and no pthreads there. sigh...
<whitequark>
macclearich_: you actually have a problem there: how to distinguish a method call on the delegator itself from a method call on an object contained in the fields hash
<whitequark>
i.e. suppose there are both foo.fields['bar.to_i'] and foo.fields['bar'] = 0
<whitequark>
now, what should foo.bar.to_i return?
<whitequark>
of course you could check for the presence of the item, but then the behavior would be radically different depending on whether you actually have a particularly named field
<whitequark>
I'd say that is a very bad design
<whitequark>
you could kind of get away by encapsulating Hash and redefining method_missing to return an element with the same name
<whitequark>
and just nest these objects one into another
<whitequark>
this pattern has been explored countless times, and, well, I believe there is a kind of consensus that resulting name clashes just make it not worth it.
xaph has joined #ruby-lang
<whitequark>
I'd go as far as to say that method_missing should be static, that is, its result should only depend on a runtime type of the object
emptyflask has joined #ruby-lang
<whitequark>
not its contents
<whitequark>
(by "result" I mean the sequence of actions invoked, not the return value)
<whitequark>
otherwise it gets unwieldy quite fast.
retro|cz has quit [Ping timeout: 244 seconds]
havenn has joined #ruby-lang
sent-hil has quit [Remote host closed the connection]
<macclearich_>
whitequark: I *think* I get what you're saying; but does that present problems when calling these unknown methods on an instance of class Foo?
<sent-hil>
where is rubygems installed? i can't seem to find it
Uranio has quit [Quit: WeeChat 0.3.8]
<drbrain>
sent-hil: gem which rubygems
<lianj>
sent-hil: gem env
ghanima has joined #ruby-lang
<sent-hil>
thx
<ghanima>
hello all... question when the scan method on a String object and one do a regex search for things between a string
havenn has quit [Read error: Operation timed out]
<macclearich_>
whitequark: looking...
<ghanima>
sorry I am let me restate... I am trying to run the scan method against a String object looking for substring in between a set of characters. Is that possible?
s0ber has quit [Read error: Connection reset by peer]
s0ber has joined #ruby-lang
solars has joined #ruby-lang
<sent-hil>
drbrain: could you give me through how '-user-install' flag in .gemrc is being parsed/used by rubygems?
<drbrain>
sent-hil: not right now, I'm busy with work
<drbrain>
sent-hil: look at Gem::ConfigFile though
<drbrain>
and Gem::CommandManager, IIRC
<sent-hil>
drbrain: oh ok
<drbrain>
… and Gem::Command
esad has quit [Quit: Computer has gone to sleep.]
gregmoreno has quit [Ping timeout: 255 seconds]
<sent-hil>
drbrain: i understand the ConfigFile, will look at the other two, thx
havenn has joined #ruby-lang
KA_ has joined #ruby-lang
esad has joined #ruby-lang
Hakon has joined #ruby-lang
<macclearich_>
whitequark: that seriously works, man
<macclearich_>
… almost
<whitequark>
macclearich_: it's not in my practice to post broken examples...
<whitequark>
crap.
<macclearich_>
still trouble with the setter
<macclearich_>
:)
<macclearich_>
but I'm working on that too
<whitequark>
well it's tested
<macclearich_>
yeah
<whitequark>
so it works to the spec :)
<macclearich_>
trying to figure that part out right now
cyri_ has quit [Quit: cyri_]
<macclearich_>
ohhh
<macclearich_>
lol
<macclearich_>
assert_raises NoMethodError do; api.quick = true ; end
dankest is now known as dankest|away
<whitequark>
yup, I don't allow to create fields
<macclearich_>
so I can alter fields that exist, but not set them.
<macclearich_>
or… bah, you know what I meant. hopefully.
<whitequark>
ya
<whitequark>
the fix is left an exercise to the patient reader
<whitequark>
*as an
<macclearich_>
my gratitude, sir
ddd has quit [Quit: Leaving.]
<whitequark>
it's funny how you assume things about my gender, even through they're correct
<whitequark>
especially in the recent context
KA_ has quit [Quit: KA_]
<macclearich_>
I call everyone either sir or boss anyway?
KA_ has joined #ruby-lang
<whitequark>
imo it's fine either way :)
<whitequark>
but there are some people who snap into a murderous rage
<havenn>
whitequark: Nice when honorifics are gender neutral, like Esq.
<havenn>
Though actually there *is* a female Esquire, it just historically has been Goodwife, and lady lawyers prolly wouldn't appreciate that. >.>
workmad3 has joined #ruby-lang
<whitequark>
havenn: I find it exceptionally pleasant that 1) English has gender-neutral verbs and 2) English has one distinctive form of second-person pronoun
KA_ has quit [Client Quit]
ddd has joined #ruby-lang
<whitequark>
because in Russian verbs aren't, and there are three different ways of saying "you" depending on how formal the context is; and like 99% of people don't get an important distinction between two of those.
<whitequark>
hint: chances that a person writing "You" in mid-sentence is Russian.
<whitequark>
annoys me to no extent.
SoAwesomeMan has joined #ruby-lang
statim has quit []
guns has joined #ruby-lang
vlad_starkov has joined #ruby-lang
KA_ has joined #ruby-lang
workmad3 has quit [Ping timeout: 245 seconds]
gregmoreno has joined #ruby-lang
<zzak>
...remove rdoc from stdlib? troll level: > 9000!!
<naquad>
is there any way to make Nokogiri ignore namespaces in xpath queries, but don't actually remove them?
mistym_meeting is now known as mistym
KA_ has quit [Quit: KA_]
<zzak>
remove rdoc, and rubygems from stdlib.. so slop can be added and replace optparse
<zzak>
makes sense
dankest|away is now known as dankest
wallerdev has quit [Quit: wallerdev]
<erikh>
I doubt injekt would have suggested that
<erikh>
just doesn't seem like him.
<zzak>
he didnt
kurko_ has quit [Quit: Computer has gone to sleep.]
<yorickpeterse>
Ah yes, logic right there
<eam>
I really wish everyone would just use getopt long
<yorickpeterse>
Remove OptionParser so people don't end up re-inventing teh wheel, then suggest for them to re-invent the wheel by parsing ARGV manually
<yorickpeterse>
* the
<eam>
weird option parsing libraries just make it hard to move between languages
<yorickpeterse>
though I have to admit that OptionParser is pretty wack
<bougyman>
i've never had a problem with optionparser
<erikh>
eam: it's a side effect of getopt being a total pile of ass
<erikh>
most modern C programs don't even use it
<rindolf>
eam: ah, you're here too. :-)
<eam>
I'm not going to defend it too much, I just wish there was some consistency. I'm a lot less happy with OptionParser
<eam>
rindolf: :)
<rindolf>
eam: I'm usually not here.
cyri_ has joined #ruby-lang
R_Macy has joined #ruby-lang
* manveru
<3 OptionParser :)
sandbags2 has joined #ruby-lang
<havenn>
I like Slop more than OptionParser for its more concise DSL. But as Injekt mentions "there's already two option parsing libraries in stdlib and ... adding another is just bloat".
<havenn>
And RDoc and RubyGems having legacy OptionParser support plus Slop for Ruby 2.0 sounds... bad.
workmad3 has joined #ruby-lang
<drbrain>
also, OptionParser is used in hundreds of gems
<whitequark>
drbrain: are you aware of some automated gem parser for such cases?
<drbrain>
adding `default: 'whatevs'` and #to_hash would bring OptionParser to a similar level of conciseness as Slop has
banisterfiend has joined #ruby-lang
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
kith has quit [Read error: Connection reset by peer]
kith has joined #ruby-lang
<manveru>
yeah
<manveru>
well, i've done lots of stuff with OP, and it just never gets old, imho :)
<manveru>
then again, i've never tried slop much, and i hate getopt
havenn has quit [Ping timeout: 252 seconds]
<whitequark>
trollop is kind of nice
<manveru>
i just don't like having dependencies outside stdlib, and these days there's really not much need to have more than a handful of deps
sepp2k has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
tdy has joined #ruby-lang
cirenyc has joined #ruby-lang
nazty has joined #ruby-lang
<sent-hil>
can i create a temp dir in ruby with nonwritable permissions?
joenobody has quit [Quit: This computer has gone to sleep]
CaptainJet has quit [Ping timeout: 268 seconds]
<drbrain>
sent-hil: Dir.mktmpdir 'my_temp_dir' do |dir| begin; File.chmod 0, dir; …; ensure; File.chmod 700, dir; end; end
qwerxy has quit [Quit: offski]
dalekurt has quit [Quit: Zzz...]
joenobody has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
blacktulip has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
nazty has quit [Remote host closed the connection]
KA_ has joined #ruby-lang
<eam>
I spy a race condition
<sent-hil>
drbrain: thx!
cirenyc has quit [Quit: Leaving...]
zmack has quit [Remote host closed the connection]
<eam>
Dir.mktmpdir should take a mode
KA_ has quit [Client Quit]
anjen has joined #ruby-lang
<eam>
drbrain: why the double chmod?
<drbrain>
eam: Dir.mktmpdir removes the directory at the end of the block
<drbrain>
if you don't use the block you can remove those parts
<eam>
you can unlink a file without having access to it
<drbrain>
maybe it's an Dir.mktmpdir bug then
<eam>
I bet it tries to stat() or access() it
dmwuw_ has quit [Remote host closed the connection]
<eam>
yup, it sure does
<drbrain>
eam: can you file a bug on bugs.ruby-lang.org?
<eam>
will do
wallerdev has joined #ruby-lang
musl has quit [Quit: WeeChat 0.3.9]
<ddd>
poor mame trying to get hold of me for the kgio no-compile issue, I finally get some time to answer him and can no longer reproduce the problem. now that sucks