Sadin has quit [Remote host closed the connection]
leonmaia has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
urbanmonk has quit [Client Quit]
michaeldeol has joined #ruby-lang
michaeldeol has quit [Client Quit]
charliesome has quit [Quit: zzz]
red_menace has quit [Quit: Quit]
hendranata_ has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
shinnya has quit [Ping timeout: 244 seconds]
rahul_j has joined #ruby-lang
djbkd has joined #ruby-lang
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Newbie0086 has quit [Ping timeout: 245 seconds]
rbowlby has quit [Remote host closed the connection]
Forgetful_Lion has joined #ruby-lang
Miphix has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
charliesome has quit [Quit: zzz]
shubhamgoyal has quit [Remote host closed the connection]
rcvalle has quit [Quit: rcvalle]
kiyote23 has joined #ruby-lang
mattyohe has quit [Quit: Connection closed for inactivity]
Asher has quit [Read error: No route to host]
Asher has joined #ruby-lang
michaeldeol has joined #ruby-lang
<hakunin>
|jemc|: fyi, if you replace && with and, it bumps ruby to view return(…) as one thing
|jemc| has quit [Ping timeout: 264 seconds]
revath has joined #ruby-lang
kiyote23 has quit [Ping timeout: 256 seconds]
yusuf has quit [Quit: Leaving.]
pwnz0r has quit [Remote host closed the connection]
fclausen has quit [Quit: leaving]
wzjmit has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby-lang
michaeldeol has quit [Client Quit]
Musashi007_ has joined #ruby-lang
Musashi007 has quit [Ping timeout: 255 seconds]
Musashi007_ is now known as Musashi007
hahuang61 has quit [Ping timeout: 258 seconds]
yfeldblum has quit [Ping timeout: 244 seconds]
suavemint has quit [Remote host closed the connection]
rbowlby has joined #ruby-lang
hahuang61 has joined #ruby-lang
rahul_j has joined #ruby-lang
yfeldblum has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
djbkd has quit [Quit: My people need me...]
AKASkip has joined #ruby-lang
Newbie0086 has joined #ruby-lang
yock has joined #ruby-lang
yock has quit [Ping timeout: 244 seconds]
AKASkip has quit [Ping timeout: 265 seconds]
Newbie0086 has quit [Ping timeout: 245 seconds]
venture37 has joined #ruby-lang
<venture37>
hi
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<venture37>
I'm having some issues getting ext/dbm.c building from 1.9 & newer on OS X Tiger PowerPC, though Berkley DB is bundled with Tiger (libdb) both ndbm.h & db.h need to be included hence the test code generated from extconf.rb fails
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
gjaldon has joined #ruby-lang
Newbie0086 has quit [Ping timeout: 244 seconds]
elia has joined #ruby-lang
shubhamgoyal has quit [Ping timeout: 256 seconds]
shubhamgoyal has joined #ruby-lang
chinaboy_rubyfan has quit [Quit: 离开]
cantonic has quit [Quit: cantonic]
cantonic has joined #ruby-lang
elia has quit [Ping timeout: 256 seconds]
gbanis has quit [Quit: gbanis]
charliesome has joined #ruby-lang
charliesome has quit [Quit: zzz]
shinnya has quit [Ping timeout: 244 seconds]
fusillicode1 has quit [Ping timeout: 240 seconds]
yeltzooo9 has quit [Ping timeout: 244 seconds]
matp_ has quit [Ping timeout: 244 seconds]
aarellano has quit [Ping timeout: 244 seconds]
rahul_j has quit [Quit: rahul_j]
soahccc has joined #ruby-lang
soahccc has quit [Ping timeout: 244 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
<yorickpeterse>
morning
ledestin has quit [Ping timeout: 245 seconds]
ledestin has joined #ruby-lang
revath has quit [Ping timeout: 250 seconds]
ledestin has quit [Ping timeout: 244 seconds]
ledestin has joined #ruby-lang
yfeldblum has quit [Ping timeout: 272 seconds]
ledestin has quit [Remote host closed the connection]
skade has joined #ruby-lang
ledestin has joined #ruby-lang
mistym has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
<Eising>
yorickpeterse: morning, and merry christmas
tkuchiki has joined #ruby-lang
<ljarvis>
moin
tkuchiki has quit [Ping timeout: 250 seconds]
rbowlby has quit [Remote host closed the connection]
shubhamgoyal has quit [Remote host closed the connection]
cornerma1 has joined #ruby-lang
jxie has quit [Ping timeout: 255 seconds]
jxie has joined #ruby-lang
cornerman has quit [Ping timeout: 255 seconds]
cornerma1 is now known as cornerman
charliesome has joined #ruby-lang
jkad has joined #ruby-lang
fsvehla has quit [Quit: fsvehla]
jkad has quit [Client Quit]
<yorickpeterse>
ho ho ho
<yorickpeterse>
I have christmas presents at the office
<yorickpeterse>
and a tree
simi has joined #ruby-lang
<tbuehlmann>
moin
revath has joined #ruby-lang
<wnd>
I think I need to go to our office and loot a working monitor. My primary display is going through rough times and prefers not to switch on. I should've seen this coming as it has shown the symptoms (requiring two presses of the power button, coil whine kind-of-sound while doing so) for some time now. It's probably just a flaky capasitor or such as the thing works flawlessly once you manage to switch it on.
jo__ has quit [Quit: Connection closed for inactivity]
arBmind has joined #ruby-lang
Guest26597 has joined #ruby-lang
gianlucadv has quit [Ping timeout: 250 seconds]
skade has quit [Ping timeout: 240 seconds]
pepperbreath has joined #ruby-lang
rubyguy has joined #ruby-lang
<rubyguy>
How do I create a proxy website (something like this one : https://www.freeyoutubeproxy.org/) using Ruby (with Rails/Sinatra/..) ?
<uberjar>
bradland: why not ? It helps Ruby stop violating the principle of least surprise.. when I ask Object for a particular object I expect to get that object
<uberjar>
no matter how deeply nested
<uberjar>
*shrug*
<bradland>
maybe least surprise for you, but not at all for me
<bradland>
i wouldn’t expect the receiver to know about constants defined it its children
<bradland>
if i want to know the constants defined in Foo, i’ll specify Foo as the receiver
<uberjar>
well I expect my objects to be introspective whenever reasonable.. to be as intelligent as possible at all times
<bradland>
they are introspective
<uberjar>
then why is it unreasonable to expect an Object to know about it's ancestors ?
<bradland>
Object does not about its ancestors
<bradland>
sry
<bradland>
Object does _know_ about it’s ancestors
<bradland>
what you’re saying is that const_get should understand the namespace string specification
apeiros has quit []
<uberjar>
sure why not.. after all isn't that how objects are described in Ruby ?
<uberjar>
thats the approprate naming convention
<uberjar>
I'm just arguing for Objects to become slightly more intelligent
<bradland>
sigh
<uberjar>
I have high expectations of them :)
<bradland>
that does not make objects more intelligent
Bwild has joined #ruby-lang
<bradland>
read the docs for const_get
<uberjar>
you're saying that I shouldn't be able to ask an object for one of it's ancestor objects by name
<bradland>
I’m saying that if you know the ancestor, just ask it
<uberjar>
lol yea but
Torrieri has joined #ruby-lang
Torrieri has quit [Changing host]
Torrieri has joined #ruby-lang
<bradland>
but nothing
<uberjar>
lol
<bradland>
you’re talking about complicating const_get
<bradland>
which is part of Module
<bradland>
which is at the very core of ruby
<bradland>
to what end?
<bradland>
so you can type Object.const_get(“Foo::Bar”) instead of Foo.const_get(“Bar”) ?
<bradland>
what is the expense involved in making Module#const_get parse namespace strings?
<uberjar>
basically one shoudln't umm care where the improvement is in the codebase.. if it's an improvement it's an improvement
elia has quit [Quit: Computer has gone to sleep.]
<uberjar>
it's not a huge expense it just walks the graph
<uberjar>
it's 1 line of code
<uberjar>
but it makes the thing "just do what is expected"
<uberjar>
if anyone ever hands it that kind of string
<bradland>
ok, you go ahead and make that one line change
<bradland>
i’ll keep an eye out for the PR
<uberjar>
:) right on.. yea it's hard to find a reason where you'd *need it*
<gchristensen>
what if Foo is a module and Bar is a class, what is the expected behavior?
<uberjar>
but it'd be interesting to see what people think about the PR.. I'll drop the link in here
Lapide has joined #ruby-lang
<uberjar>
then it should return Foo:Bar (the class)
<gchristensen>
oof
<uberjar>
oh wait.. is a Class an object in Ruby ?
<uberjar>
hrmm
druznek has joined #ruby-lang
<uberjar>
Class.class.class => Class
<uberjar>
weird
druznek has quit [Client Quit]
<uberjar>
I always thought it was Object all the way down *sigh*
elia has joined #ruby-lang
<bradland>
i’m not even sure what you’re talking about now
lapideviridi has quit [Ping timeout: 258 seconds]
<yorickpeterse>
Class is a class that inherits from Module, which inherits from Object
<bradland>
Object > Module > Class
<yorickpeterse>
Class.class.class gives you the class of the singleton class of Class
<uberjar>
my bad.. I get it.. then yea absolutely gchristensen, Object.const_get_whatever("Foo:Bar") should return Bar (the class) since Bar the class is an ancestor of Object
<bradland>
here let me eval that for you lol
<uberjar>
lol
<bradland>
uberjar: what version of ruby are you using?
<bradland>
because based on what I see here, const_get already understands the namespace specification
<uberjar>
bradland: jruby 1.7.13 (1.9.3p392) 2014-06-24 43f133c on Java HotSpot(TM) 64-Bit Server VM 1.6.0_65-b14-462-11M4609 [darwin-x86_64]
<bradland>
in 2.1.5
<gchristensen>
oh wow
<bradland>
ok, so MRI ruby already supports what you’re looking for
<uberjar>
omg
<uberjar>
this is a JRUBY bug ??!!
<uberjar>
lol
<gchristensen>
also 1.9.3p392
<bradland>
i was looking at the docs and the source code, and started scratching my head
<bradland>
i’m like, “wait, this actually works”
<uberjar>
hahahah
nivardus has quit [Remote host closed the connection]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
uberjar has quit [Quit: uberjar]
havenwood has joined #ruby-lang
hinbody has quit [Quit: leaving]
rahul_j_ has joined #ruby-lang
rahul_j has quit [Ping timeout: 272 seconds]
rahul_j_ is now known as rahul_j
slawrence00 has joined #ruby-lang
yfeldblum has joined #ruby-lang
yock has joined #ruby-lang
ahmetkapikiran has joined #ruby-lang
yfeldblum has quit [Ping timeout: 256 seconds]
yock has quit [Ping timeout: 245 seconds]
<venture37>
Where can I find build documentation for ruby, I'm having issues getting the dbm extension building on OS X
j4cknewt_ has joined #ruby-lang
j4cknewt has quit [Read error: Connection reset by peer]
skade has quit [Quit: Computer has gone to sleep.]
<havenwood>
venture37: Have you already installed the brew or ports package for gdbm
<havenwood>
?
<pipework>
Did you try turning it off and leaving it, taking the kids and the dog, and watching it descend into depression before one final attempt at wrangling control in its life by ending it all? Or just turning it back on again, whatever.
<bradland>
that argument will be assigned the array element on each iteration
<bradland>
does that make sense?
<pipework>
Con7e: Have you read any guides or getting started stuff?
<Con7e>
I did
<Con7e>
But I can't retain sh*t
<Con7e>
I need to do some kind of progect
iamninja has quit [Quit: ZZZzzz…]
<pipework>
So, the reg is a block variable, and it's the value that the block is yielded from the enumerable when you call #each
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Con7e>
I thought of translating a python one I made
lapide_viridi has joined #ruby-lang
<bradland>
blocks are a really, _really_ important part of writing idiomatic Ruby
<bradland>
once you understand how they work though, you’ll see why
<bradland>
they’re all over the place in ruby
<pipework>
So if you had an array, and you pass a block whose block variable is registry, then `registries.each do |registry|` would be the particular object at that point in enumerating the collection.
<pipework>
Con7e: Read the docs for Enumerable.
_fritchie has joined #ruby-lang
<pipework>
In ruby we tend not to use `for` because of the leaky scope.
<Con7e>
Uhm, I better read more docs before asking
<bradland>
Con7e: have you used irb yet?
<bradland>
it’s the Ruby REPL
<Con7e>
Nope, just editor > interpreter
<bradland>
fire up irb and try out some iterators
<bradland>
here’s the most basic one i can think of