apeiros changed the topic of #ruby-lang to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com
Johz has quit [Quit: Leaving]
CoreData has quit [Ping timeout: 264 seconds]
diegoviola has joined #ruby-lang
Coincidental has quit [Remote host closed the connection]
CoreData has joined #ruby-lang
Coincidental has joined #ruby-lang
jp- has quit [Ping timeout: 260 seconds]
<cored> andrewvos: just don't
mdedetrich has quit [Quit: Computer has gone to sleep.]
eugenejen has quit [Quit: eugenejen]
jp- has joined #ruby-lang
jp- has joined #ruby-lang
Kero has quit [Ping timeout: 264 seconds]
<andrewvos> :(
kurko_ has quit [Ping timeout: 260 seconds]
kurko_ has joined #ruby-lang
nathanstitt has joined #ruby-lang
GaelanAintAround is now known as Gaelan
ryez has quit [Ping timeout: 250 seconds]
seanlerner has quit [Remote host closed the connection]
julweber_ has joined #ruby-lang
kurko_ has quit [Ping timeout: 264 seconds]
hogeo has joined #ruby-lang
Kero has joined #ruby-lang
kurko_ has joined #ruby-lang
mistym has quit [Quit: Leaving]
benlovell has joined #ruby-lang
julweber has quit [Ping timeout: 264 seconds]
Coincidental has quit [Ping timeout: 246 seconds]
kitak has joined #ruby-lang
tharindu has joined #ruby-lang
benlovell has quit [Ping timeout: 264 seconds]
JoshuaPaling has joined #ruby-lang
dmitrykorotkov_ has quit [Remote host closed the connection]
mdedetrich has joined #ruby-lang
diegoviola has quit [Ping timeout: 248 seconds]
stamina has quit [Ping timeout: 240 seconds]
tylersmith has joined #ruby-lang
Coincidental has joined #ruby-lang
vxxr has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
lfox has joined #ruby-lang
tylersmith has quit [Ping timeout: 245 seconds]
Coincidental has quit [Ping timeout: 260 seconds]
pkrnj has quit [Quit: Computer has gone to sleep.]
bantic has quit [Quit: bantic]
diegoviola has joined #ruby-lang
kurko_ has quit [Ping timeout: 264 seconds]
kurko_ has joined #ruby-lang
seanlerner has joined #ruby-lang
Coincidental has joined #ruby-lang
kitak has quit [Read error: Connection reset by peer]
kitak has joined #ruby-lang
hogeo_ has joined #ruby-lang
hogeo has quit [Read error: Connection reset by peer]
charliesome has joined #ruby-lang
knu has quit [Ping timeout: 248 seconds]
tkuchiki has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
seanlerner has quit [Ping timeout: 252 seconds]
kgrz has joined #ruby-lang
nisstyre has quit [Ping timeout: 248 seconds]
julweber_ has quit [Remote host closed the connection]
kvs has quit [Ping timeout: 260 seconds]
bzalasky has quit [Remote host closed the connection]
VTLob has quit [Quit: VTLob]
iliketurtles has quit [Quit: zzzzz…..]
Guest3997 has quit [Ping timeout: 260 seconds]
jsullivandigs has joined #ruby-lang
robbyoconnor has joined #ruby-lang
cored has quit [Quit: leaving]
cstrahan has joined #ruby-lang
kvs has joined #ruby-lang
bzalasky has joined #ruby-lang
vlad_starkov has joined #ruby-lang
knu has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
Coincidental has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 248 seconds]
diegoviola has quit [Ping timeout: 260 seconds]
robbyoconnor has quit [Quit: Konversation terminated!]
skmp has quit [Ping timeout: 260 seconds]
hahuang65 has quit [Ping timeout: 260 seconds]
mdedetrich has joined #ruby-lang
mdedetrich has quit [Max SendQ exceeded]
mdedetrich has joined #ruby-lang
julweber has joined #ruby-lang
kurko_ has quit [Quit: Computer has gone to sleep.]
mdedetrich has quit [Ping timeout: 245 seconds]
iliketurtles has joined #ruby-lang
Gaelan is now known as GaelanAintAround
sleepy_keita has joined #ruby-lang
kurko_ has joined #ruby-lang
<sleepy_keita> does anybody know why Class has to_s but not to_sym?
jsullivandigs has quit [Remote host closed the connection]
julweber has quit [Ping timeout: 246 seconds]
kuja has quit [Quit: ZNC - http://znc.sourceforge.net]
GaelanAintAround is now known as Gaelan
mdedetrich has joined #ruby-lang
mdedetrich has quit [Max SendQ exceeded]
mdedetrich has joined #ruby-lang
Cakey has joined #ruby-lang
Domon has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby-lang
diegoviola has joined #ruby-lang
mitchty has quit [Ping timeout: 240 seconds]
mitchty has joined #ruby-lang
cstrahan has quit [Ping timeout: 245 seconds]
<bfleischer> wouldn't it make more sense to convert an instance to a symbol?
seanlerner has joined #ruby-lang
GeissT has joined #ruby-lang
lsegal has joined #ruby-lang
benlovell has joined #ruby-lang
Cakey has left #ruby-lang [#ruby-lang]
<sleepy_keita> bfleischer: my problem (well..) is that to get the class name as a symbol, I need to do Class.to_s.to_sym
benlovell has quit [Ping timeout: 264 seconds]
fuhgeddaboudit has joined #ruby-lang
headius has quit [Quit: headius]
iliketurtles has quit [Quit: zzzzz…..]
NemesisD has joined #ruby-lang
_whitelogger_ has joined #ruby-lang
topaz has quit [Ping timeout: 264 seconds]
seanlern_ has joined #ruby-lang
KM has joined #ruby-lang
seanlerner has quit [Ping timeout: 264 seconds]
flip_digits has joined #ruby-lang
anonymuse has joined #ruby-lang
Guest36090 is now known as Kabaka
nathanstitt has quit [Quit: I growing sleepy]
bantic has joined #ruby-lang
<bfleischer> or :"#{Class.name}"
<bfleischer> I would do that with e.g. Object.const_get :Foo
tharindu has quit [Remote host closed the connection]
seanlern_ has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 240 seconds]
Voker57 has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby-lang
<sleepy_keita> bfleischer: but both of those are going through strings, which means an extra string would have to be allocated, right?
Bosox20051 has joined #ruby-lang
<bfleischer> what's the use case? does instantiating a string cause a problem? Why do you need a symbol?
* bfleischer going to sleep
<sleepy_keita> nothing really, just thought it's kind of a waste. good night!
pkrnj has joined #ruby-lang
Voker57 has joined #ruby-lang
kurko__ has joined #ruby-lang
flip_digits has quit [Remote host closed the connection]
kurko_ has quit [Ping timeout: 245 seconds]
kurko__ is now known as kurko_
soba has joined #ruby-lang
machuga is now known as machuga|away
kitak has quit [Remote host closed the connection]
kitak has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.1]
bantic has quit [Quit: bantic]
Gaelan is now known as GaelanAintAround
bzalasky has joined #ruby-lang
Torrieri has joined #ruby-lang
Torrieri has quit [Read error: Connection reset by peer]
anonymuse has quit [Remote host closed the connection]
lfox has quit [Quit: ZZZzzz…]
imperator has left #ruby-lang ["Leaving"]
imperator has quit [Quit: Leaving]
anonymuse has joined #ruby-lang
kitak_ has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
kitak has quit [Ping timeout: 246 seconds]
anonymuse has quit [Remote host closed the connection]
tharindu has joined #ruby-lang
robbyoconnor has joined #ruby-lang
heftig has quit [Ping timeout: 260 seconds]
heftig has joined #ruby-lang
thepumpkin has quit [Remote host closed the connection]
kurko_ has quit [Ping timeout: 264 seconds]
kurko_ has joined #ruby-lang
richardburton has joined #ruby-lang
vxxr has quit [Quit: leaving]
Coincidental has joined #ruby-lang
mdedetrich has joined #ruby-lang
schaerli has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 245 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
benlovell has joined #ruby-lang
kgrz has joined #ruby-lang
jxie has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby-lang
headius has joined #ruby-lang
richardburton has quit [Quit: Leaving.]
mayday_jay has joined #ruby-lang
jxie has joined #ruby-lang
benlovell has quit [Ping timeout: 252 seconds]
mistym has joined #ruby-lang
kgrz has quit [Ping timeout: 260 seconds]
loincloth has joined #ruby-lang
kgrz has joined #ruby-lang
loincloth has quit [Ping timeout: 245 seconds]
richardburton has joined #ruby-lang
nofxx has joined #ruby-lang
iliketurtles has joined #ruby-lang
kurko_ has quit [Quit: Computer has gone to sleep.]
gnufied has quit [Ping timeout: 260 seconds]
fragamus has joined #ruby-lang
gnufied has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
richardburton has quit [Quit: Leaving.]
jxie has quit [Read error: Connection reset by peer]
jxie has joined #ruby-lang
KM has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
jxie has quit [Quit: leaving]
mistym has quit [Ping timeout: 245 seconds]
jxie has joined #ruby-lang
hahuang65 has quit [Ping timeout: 248 seconds]
julweber has joined #ruby-lang
hogeo_ has quit [Read error: Connection reset by peer]
hogeo has joined #ruby-lang
julweber has quit [Ping timeout: 248 seconds]
nneko001__ has joined #ruby-lang
hhatch has joined #ruby-lang
skade has joined #ruby-lang
arBmind has joined #ruby-lang
malev has quit [Remote host closed the connection]
hachiya has quit [Ping timeout: 264 seconds]
fuhgeddaboudit has quit [Ping timeout: 248 seconds]
shireesh has joined #ruby-lang
richardburton has joined #ruby-lang
jonahR has joined #ruby-lang
mistym has joined #ruby-lang
kgrz has quit [Ping timeout: 264 seconds]
shireesh has quit [Ping timeout: 245 seconds]
bzalasky has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
apeiros has joined #ruby-lang
bzalasky has joined #ruby-lang
symm- has joined #ruby-lang
richardburton has quit [Quit: Leaving.]
richardburton has joined #ruby-lang
shireesh has joined #ruby-lang
sevvie has quit [Ping timeout: 240 seconds]
bzalasky has quit [Remote host closed the connection]
richardburton has quit [Client Quit]
tbuehlmann has joined #ruby-lang
nneko001__ has quit [Ping timeout: 264 seconds]
postmodern has quit [Remote host closed the connection]
tonni has quit [Remote host closed the connection]
CoreData has quit [Quit: CoreData]
CoreData has joined #ruby-lang
JohnBat26 has joined #ruby-lang
loincloth has joined #ruby-lang
tonni has joined #ruby-lang
loincloth has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
NemesisD has quit [Ping timeout: 245 seconds]
Coincidental has quit [Remote host closed the connection]
tonni has quit [Read error: Connection reset by peer]
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
Coincidental has joined #ruby-lang
relix has joined #ruby-lang
kgrz has joined #ruby-lang
vlad_starkov has joined #ruby-lang
tonni has joined #ruby-lang
qba73 has joined #ruby-lang
Pupeno has joined #ruby-lang
Pupeno has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
mistym has quit [Remote host closed the connection]
headius has quit [Quit: headius]
jsaak has joined #ruby-lang
h_kon has joined #ruby-lang
tonni has quit [Read error: Connection reset by peer]
dagobah has joined #ruby-lang
kgrz has quit [Ping timeout: 264 seconds]
hahuang65 has joined #ruby-lang
mdedetrich has joined #ruby-lang
kvs_ has joined #ruby-lang
kvs has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
minivan has joined #ruby-lang
minivan has quit [Client Quit]
bzalasky has joined #ruby-lang
tonni has joined #ruby-lang
jonahR has quit [Quit: jonahR]
JoshuaPaling has quit [Quit: Textual IRC Client: www.textualapp.com]
minivan has joined #ruby-lang
nofxx has quit [Ping timeout: 248 seconds]
dc5ala has joined #ruby-lang
JoshuaPaling has joined #ruby-lang
<yorickpeterse> morning
<gnufied> morning yorick
nofxx has joined #ruby-lang
mytrile has joined #ruby-lang
ikrima has joined #ruby-lang
yfeldblum has quit [Ping timeout: 248 seconds]
bzalasky has quit [Remote host closed the connection]
hachiya has joined #ruby-lang
yfeldblum has joined #ruby-lang
Coincidental has quit [Remote host closed the connection]
tonni has quit [Read error: Connection reset by peer]
<yorickpeterse> installing Gems over this train wifi is some proper science
<yorickpeterse> of course it fails at the very end with some SSL error
<yorickpeterse> oooh it might actually work
skade has joined #ruby-lang
<maloik> configuring development machines is hard :(
<yorickpeterse> what, OS X?
<yorickpeterse> bundle success
<xybre> maloik: I script most of that stuff out of existance.
tsou has quit [Quit: off]
<maloik> OSX yea... and I just got myself some dotfiles from thoughtbot, did minor modifications
<maloik> almost there but it's the details that make it hard
<yorickpeterse> I never got why Homebrew gets permissions so awfully wrong
mark- has quit [Ping timeout: 260 seconds]
arBmind has quit [Ping timeout: 260 seconds]
wallerdev has quit [Quit: wallerdev]
mark- has joined #ruby-lang
schlubbi has joined #ruby-lang
<maloik> the new window behaviour in OSX is so nice
<maloik> can now swipe between fullscreen windows on a single screen instead of it moving both your screens around
<maloik> used to be utterly useless
<xybre> Yeah, I've built up my own dotfiles over the years that get installed on every machine I touch pretty much.
arBmind has joined #ruby-lang
tonni has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
Forgetful_Lion has joined #ruby-lang
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
kek has joined #ruby-lang
tonni has quit [Remote host closed the connection]
solars has joined #ruby-lang
barttenbrinke has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
hashkey has quit [Quit: Leaving]
<maloik> s/cloud/butt
<gnufied> maloik: running mavericks?
<maloik> yes
qba73 has quit [Remote host closed the connection]
schlubbi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sleepy_keita has quit [Quit: sleepy_keita]
benlovell has joined #ruby-lang
tonni has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
<andrewvos> yorickpeterse: Aww man I don't miss homebrew
<andrewvos> aptitude makes me happy
<andrewvos> yorickpeterse: Got a full dev box running perfectly now
<andrewvos> yorickpeterse: Like, everything just works
<andrewvos> <3 ubuntu
Coincidental has joined #ruby-lang
<yorickpeterse> until it breaks
<yorickpeterse> but yeah, lol homebrew
<yorickpeterse> install in /usr/local, fix permissions to a single user
<yorickpeterse> MAKES SENSE
ikrima has quit [Quit: Computer has gone to sleep.]
sleepy_keita has joined #ruby-lang
runeb has joined #ruby-lang
<yorickpeterse> also holy shit, the Mongoid codebase is a maze
adambeynon has joined #ruby-lang
sjltaylor has joined #ruby-lang
toretore has joined #ruby-lang
elia has joined #ruby-lang
sjltaylor has quit [Client Quit]
sjltaylor has joined #ruby-lang
sjltaylor has quit [Max SendQ exceeded]
julweber has joined #ruby-lang
benlovell has quit [Ping timeout: 245 seconds]
robbyoconnor has quit [Max SendQ exceeded]
robbyoconnor has joined #ruby-lang
benlovell has joined #ruby-lang
benlovell has quit [Client Quit]
charliesome has joined #ruby-lang
charliesome has quit [Client Quit]
<ljarvis> ur a maze
barttenbrinke has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 245 seconds]
Coincidental has quit [Remote host closed the connection]
CoreData has quit [Ping timeout: 260 seconds]
<andrewvos> ljarvis: I looked out of my 18th floor window today and literally could not see a thing
<ljarvis> andrewvos: yeah so foggy
<andrewvos> hahah
<ljarvis> even my ground floor window was the same
<andrewvos> ljarvis: Pretty scary man
<andrewvos> clearing a bit now, but that shit was not cool man
shireesh has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby-lang
<yorickpeterse> Ah, so that's where our fog went
<andrewvos> DEY TUK OUR FOOG
barttenbrinke has joined #ruby-lang
jxie has joined #ruby-lang
jxie has quit [Ping timeout: 264 seconds]
benlovell has joined #ruby-lang
<yorickpeterse> enjoy it suckers
schlubbi_ has joined #ruby-lang
kek has quit [Remote host closed the connection]
ikrima has joined #ruby-lang
symm- has quit [Ping timeout: 246 seconds]
malusalexandru has joined #ruby-lang
shireesh has joined #ruby-lang
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby-lang
<gnufied> your a maze
<andrewvos> gnufied: Wow man you got here late for that one
<gnufied> its never too late to respond to a yorickrant
<yorickpeterse> dat's wut ur mum said m8
<andrewvos> i'll av u
sascha_d has quit [Quit: obai]
<ljarvis> shut it u fuckin priks
<ljarvis> also
<yorickpeterse> #chav-lang
<yorickpeterse> well I think I just found a name for an esoteric programming language
<ljarvis> im using permutations and would like the output to include the same values as a permutation, is there an easy way to do that without messing with another loop? ie [1,2].permutations(2) would return [1, 2] [2, 1] but I also want [1, 1], [2, 2]
<yorickpeterse> hm, then it wouldn't be a true permutation
<ljarvis> correct
<yorickpeterse> that would probably be a two step process: 1) generate the permutation 2) add pairs for every value
<ljarvis> so i guess i need a permutation and then merge existing values too
<ljarvis> yeah
<ljarvis> heh
kvs_ is now known as kvs
jonathanmarvens has joined #ruby-lang
<matti> yorickpeterse: ;]
dc5ala has quit [Quit: Ex-Chat]
jonathanmarvens has quit [Remote host closed the connection]
jonathanmarvens has joined #ruby-lang
malusalexandru has quit [Quit: Page closed]
<ljarvis> meeehhh, arr.map { |x| [x, x] } + arr.permutation(2).to_a will do
<ljarvis> ugly ass
<gnufied> a.zip(a) + a.permutation(2).to_a
<ljarvis> also, fuck you ruby for "TypeError: can't convert Enumerator into Array"
<ljarvis> gnufied: ooo good idea
<yorickpeterse> (data migration, not a DB structure one)
otakrosak has joined #ruby-lang
<yorickpeterse> awww yiss, managed to get a migration to run in about 2 minutes instead of > 30
otakrosak has left #ruby-lang [#ruby-lang]
schlubbi_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lolmaus has joined #ruby-lang
<lolmaus> I'm good in HTML and CSS/SASS. I know the basics of Ruby and client-side JS. I would like to try AngularJS, but i can't decide which backend to use. Rails seems to be an overkill, as i only need serving JSON via REST and some very minimal HTML for Google crawler and old IEs. I don't want Node-based stuff (e. g. Express) because it has an extremely entering threshold. Please suggest an
<lolmaus> appropriate backend.
<lolmaus> I'm sure Rails is great for Angular if you know Rails already. But i'm concerned that Rails' extensive capabilities of generating HTML (that i completely don't need) will be a huge obstacle for me in the process of learning those Rails basics that i do need for Angular (e. g. the notorious MVC concept). Every Rails book and tutorial is HTML-centric. :(
Johz has joined #ruby-lang
<jrobeson> there are plenty of tutorials just for angular.js or ember.js for rails lolmaus
<lolmaus> jrobeson, but is Rails really the only good choice?
<jrobeson> i doubt it
<jonathanmarvens> lolmaus: IMHO, the threshold for Node.js isn't really that high.
<yorickpeterse> If you just want to shit JSON there's no point in Rails
<yorickpeterse> Use something like Sinatra for that instead, it's hells faster
<andrewvos> YES USE SINATRA
<yorickpeterse> and easier to get up and running
<jonathanmarvens> lolmaus: Yeah, use Sinatra, or try PHP (with Laravel or Slim).
<jrobeson> i wouldn't recommend slim..
<jrobeson> silex would be better
<jonathanmarvens> jrobeson: And why is that?
<jrobeson> because silex has a better design
<jonathanmarvens> jrobeson: Example?
<jrobeson> and is based on battle tested reusable components
<lolmaus> yorickpeterse, andrewvos, now we're talking. The problem with Sinatra is that Sinatra is not a framework. Using pure Sinatra will doom me into reinventing the wheel dozens of times.
<jrobeson> seems pretty obvious
<jrobeson> lolmaus, padrino
<canton7> lolmaus, in what way will you be reinventing the wheel?
<andrewvos> lolmaus: That's not really true at all
<jrobeson> padrino is a framework built on sinatra
<jrobeson> jonathanmarvens, look at the components silex is made up of.. and you tell me .. :)
<jrobeson> it's pretty clear
<jrobeson> perhaps not as decoupled as aura components
<gnufied> I have found grape + rails to be pretty good solution
<gnufied> or even grape + activerecord
<jrobeson> i was going to play with grape next
<jonathanmarvens> jrobeson: I've used both. They're both really great frameworks. You're right though that Symfony's battle-tested components are an advantage :) .
<jrobeson> not just battle tested, but the design is proven.. by the same components being used in multiple frameworks
<jrobeson> without changes to them
<jrobeson> drupal, silex, symfony, yolo, laravel 4
<lolmaus> canton7, andrewvos, writing a web app with only Sinatra is almost like writing it in pure Ruby. You'll have to create your own MVC, own DB atapter, own user permissions, etc.
<jrobeson> at least some of them are relevant :)
<jrobeson> lolmaus, did you look at padrino?
<jonathanmarvens> jrobeson: True to some extent, but let's leave that conversation for #laravel or something :) .
<canton7> lolmaus, huh? You get to use your favourite libraries for each of those
<andrewvos> lolmaus: I feel like you're asking a question and when I'm answering you're trying to teach me something?
<lolmaus> jrobeson, not yet. I've heard about it and was waiting for someone to mention it.
<jrobeson> using libraries isn't the problem.. it's building a nice integration layer on top
<jonathanmarvens> lolmaus: Well, you know MVC is just a pattern right? You don't always have to use it.
<yorickpeterse> lolmaus: you need a framework for JSON?
<lolmaus> andrewvos, i'm just explaining my point
<yorickpeterse> it really is just `JSON(data-here)`, done
kek has joined #ruby-lang
<yorickpeterse> you can still use ActiveRecord and friends and what not
<jrobeson> lolmaus, using rails would be for for prototyping your app ..
<jonathanmarvens> lolmaus: I've used micro-frameworks like Sinatra just fine with no MVC.
<jrobeson> then if it's still too big you can always down size
<jrobeson> if it's proven you don't use most of it
<jrobeson> but padrino might fit the bill right away
<jrobeson> i haven't acdtually looked at it in more than reading the blurb on the page though..
<jrobeson> you should give it a try
<jrobeson> see what you miss
<yorickpeterse> "own DB adapter" that's BS
<lolmaus> yorickpeterse, i need a framework to conveniently organize that data. I'll have users and content and all the usual stuff. As i'm a newbie, doing everything by hand will produce spaghetti code. I would like to use a framework that imposes certain code organization/structure, so that i don't mess it up.
<jrobeson> then just use rails..
<jrobeson> and/or padrino..
<yorickpeterse> If you're new, sure stick with Rails
bastilian has joined #ruby-lang
<andrewvos> lolmaus: It sounds like you already have decided on rails
<yorickpeterse> if you're experienced and want a webscale API, fuck no use something else
<jonathanmarvens> lolmaus: Yeah, just use Ruby on Rails then.
<jrobeson> lolmaus, was worried that all the tutorials focused on the html stuff and not api stuff and not using angular
<jrobeson> i think that just means your search queries need to be more specific
kitak_ has quit [Remote host closed the connection]
<jrobeson> because there are tons of tutorials for that and ember
<jonathanmarvens> lolmaus: But if you're a newbie, I'd actually advise giving PHP a shot and using something like Laravel ... way way way easier to pick up then Ruby on Rails.
<jrobeson> and/or backbone
<yorickpeterse> NO
<yorickpeterse> DONT USE
<yorickpeterse> PHP
<yorickpeterse> NEVER
<jrobeson> yorickpeterse, you'rea feisty one that's for sure
<yorickpeterse> That's like the worst fucking advice to give any newbie
<jonathanmarvens> yorickpeterse: Bullshit.
<jonathanmarvens> yorickpeterse: Why not?
<jrobeson> jonathanmarvens, based on idling in this channel.. i wouldn't test yorickpeterse
<yorickpeterse> Because the language at it's very code teaches everything that's bad
<lolmaus> jrobeson, you got my point. ^_^
<yorickpeterse> * core
<yorickpeterse> Don't make me link to the famous rant
<jrobeson> lolmaus, there are plenty of tutorials
<lolmaus> Okay, i'll try Padrino first.
<jrobeson> yorickpeterse, but that rant isn't completely true.. and becomes less and less true on the important points
<yorickpeterse> jrobeson: it's still very, very much true
<yorickpeterse> don't be fooled
<jrobeson> i code in php somewhat often and keep up with the language development
<jrobeson> so i'm pretty familiar
<jrobeson> stuff like function naming and argument order differences won't likely be fixed ..
<jonathanmarvens> yorickpeterse: Like what? PHP has evolved my friend. Yeah, it has its problems (and a good amount), but that's about every language.
<andrewvos> yorickpeterse: I feel like we're being trolled by a team of professionals.
<yorickpeterse> I've coded it for around 4 years, I know enough to hate it
<jrobeson> but.. there is way less on the list
<jrobeson> andrewvos, i code in php and ruby (and sometimes python).. i don't like php very much
<jonathanmarvens> yorickpeterse: Most of the problems most people had with PHP have been long fixed since 5.3 and 5.4.
<yorickpeterse> again, go read that
<jrobeson> i think the only one on the list that seriously messes with me is the bad coercing
<jonathanmarvens> yorickpeterse: I've read that, but I don't make up my mind from reading other people's opinions. I make up my mind from experience.
<jrobeson> that's the only one that i really feel bad about
<darix> jonathanmarvens: and the language is still inconsistent
<yorickpeterse> jonathanmarvens: then you haven't seen enough PHP to hate it
<jrobeson> i've coded in php on and off since 2001 :(
<yorickpeterse> I'm not going to rant about it here because I have to eat lunch but seriously, if you recommend PHP to a newbie to actually learn something stop coding right now
<jrobeson> it was better than perl for what i wanted..
<jonathanmarvens> yorickpeterse: Oh, I've seen enough PHP. Like WordPress' codebase ... yuck. However, as I said, the language itself has evolved.
kek has quit [Ping timeout: 240 seconds]
<ljarvis> 21>> RUBY_VERSION
<jrobeson> it's still too easy to write crap
<ljarvis> aw
<andrewvos> PHP sympathisers
<jrobeson> not that ruby is tons better..
<darix> jonathanmarvens: just a recent example: isset($a[0]) -> no warning | !is_null$a[0]) -> generates a warning ... they are essentially doing the same thing
<darix> silly things like that.
<jrobeson> they aren't essentially doing the same thing..
<darix> jrobeson: they do
<jrobeson> not that i i like that inconsistency
<jrobeson> i've have plenty of vars that would pass is_null but not isset
<ljarvis> derp https://eval.in/50368
<jrobeson> err !is_null
<jrobeson> been awhile though since i tried
<darix> ruby or python are good languages for teaching programming imho
<jrobeson> i rarely use is_niull
<jrobeson> darix, i recommend python..
<jonathanmarvens> darix: I totally understand and agree with you, but you should also remember that you can't completely break the language. These are definitely interesting concerns, but they're known and will be fixed at some point.
<jrobeson> i think python is better than pretty well any other teaching language
<jrobeson> except maybe lua
<jrobeson> nah python is better
<jrobeson> lua only due to limited focus..
<darix> later
<jonathanmarvens> yorickpeterse: But the PHP I knew pre-5.3 is not the same PHP now.
<jrobeson> jonathanmarvens, noboody is contesting that
<jrobeson> the ecosystem is better, some important features were added
<jrobeson> but some of the most annoying stuff can't be fixed
<jrobeson> imo syntax does matter
schaerli has joined #ruby-lang
<jrobeson> and php's syntax is overly verbose
<jrobeson> there are still points that just can't be done anything about.. like that stupide \ for namespaces ;(
<jrobeson> andrewvos, try not to be such a hater.. talking about sympathizers ..
<jrobeson> as you an well tell..some people do know the difference
<jrobeson> i mean they can know the goods and bads of a language
<andrewvos> Sigh, why can't I copy to the system clipboard oin vim yorickpeterse :)
sleepy_keita has quit [Quit: sleepy_keita]
<jrobeson> yorickpeterse, only that ? :)
<jrobeson> stupid vim keyboard copy/paste :(
<jrobeson> how about mysql?
<yorickpeterse> it's also the only language that physically angers me up to the point of me buying a shovel and wacking people with it
<andrewvos> I honestly don't give a shit
<andrewvos> yorickpeterse: Been using unnamed for a few day
<yorickpeterse> and
<andrewvos> s
<yorickpeterse> PHP might've changed but it's still a bucket of shit
<jrobeson> that's an evil thing
sleepy_keita has joined #ruby-lang
<jonathanmarvens> jrobeson: A lot of stuff just can't be fixed yet and will most likely be fixed in PHP 6 (whenever that comes around ... LOL). I mostly agree with you though. My only point is that we can find faults in just about every language.
<darix> yeah you need vim with X support
<darix> andrewvos: osx or linux?
<andrewvos> yorickpeterse: I got that
<yorickpeterse> andrewvos: sec, I'll show a fix
<yorickpeterse> andrewvos: because Linux has N clipboards
<darix> andrewvos: vim-nox ?
<andrewvos> :) == :(
<andrewvos> darix: Seems I need xterm_clipboard compiled in. Yes vim-nox
<andrewvos> darix: ubuntu
<jonathanmarvens> jrobeson: For example, just as you mentioned how `\` bother you in PHP, I can tell you that it truly bothers me that Ruby allows optional parentheses because they sometimes have side-effects.
<jonathanmarvens> Alrighty, I'm done :) .
<jrobeson> well "there is more than one way to do things" in ruby
<jrobeson> you'd probably enjoy python more
<yorickpeterse> andrewvos: the command is some weird one, hold on
<yorickpeterse> It's in my muscle memory but I can't actually remember it
<jrobeson> yorickpeterse, clipboard unnamed? hmm
<jrobeson> i'll try to remember that
<jonathanmarvens> jrobeson: "there is more than one way to do things" - that bothers me too! Yes, I heart Python.
<andrewvos> yorickpeterse: "+y
<yorickpeterse> andrewvos: "+y for copying
<yorickpeterse> yeah
<yorickpeterse> and "+p for pasting
<andrewvos> yorickpeterse: Doesn't work in terminal vim though
<andrewvos> I should probably compile from source or something
<andrewvos> meh
<yorickpeterse> nope
<yorickpeterse> hold on
<yorickpeterse> andrewvos: for one make sure TERM is != "xterm"
<yorickpeterse> e.g. runner.create_new_connections(args[:file])
<yorickpeterse> runner.close
<yorickpeterse> gah fuck wrong
<yorickpeterse> export TERM='screen-256color'
<yorickpeterse> that
<yorickpeterse> fixes some colouring too
ryez has joined #ruby-lang
<yorickpeterse> Other than that you should be able to copy-paste stuff properly in the terminal too
ichilton has joined #ruby-lang
<naquad> i have a collection [1, 2, 3, 4] and i want some method that will return me first non nil result of block. kind of [1, 2, 3, 4].xxx {|t| t.even? && t + 1} => 3
<ljarvis> find
<ichilton> Anyone around know capistrano?
<naquad> ljarvis, nope
<naquad> find will return *element*
<naquad> i need block result
<andrewvos> yorickpeterse: Yeah got that
<apeiros> naquad: split it
<naquad> ichilton, and whats your quesion?
<andrewvos> yorickpeterse: Apparently I need vim-gnome
<yorickpeterse> ha
<apeiros> ary.find { |t| t.even? } + 1
<ljarvis> ^
<yorickpeterse> also worth installing is xclip
<apeiros> naquad: not that difficult
<naquad> apeiros, won't do. this was just an example
<naquad> mapping is not possible
<naquad> it'll break stuff
<yorickpeterse> so you can do stuff like `echo "copy me nerd" | xclip -selection clipboard`
<apeiros> naquad: will do, unless your example has nothing to do with your real case, and then it's a useless example.
<yorickpeterse> (I aliased that as just `copy`)
<ichilton> I'm including dotenv/capistrano in my deploy.rb (https://github.com/bkeepers/dotenv/blob/master/lib/dotenv/capistrano/recipes.rb) but the task is role: :app and I need it to run on :role :worker too - how can I override that in my deploy.rb?
<apeiros> naquad: anyway, write a map_find then. not too difficult to implement.
<ichilton> Can I write a task with :role [:app, :worker] that some how calls the dotenv task?
<naquad> apeiros, yup, doing that
<naquad> ichilton, don't know what is dotenv, so can't help here sorry
<ichilton> naquad: you don't need to, it's just a task :)
<naquad> ichilton, i would try to copy task and modify its options
<ichilton> ok, thanks
<naquad> i mean in runtime
<naquad> thats a hack, but could do
sjltayl__ has joined #ruby-lang
Darkchaos has joined #ruby-lang
ecnalyr has joined #ruby-lang
VTLob has joined #ruby-lang
schlubbi_ has joined #ruby-lang
shireesh has quit [Ping timeout: 245 seconds]
barttenbrinke has quit [Remote host closed the connection]
stamina has joined #ruby-lang
schlubbi_ has quit [Client Quit]
shireesh has joined #ruby-lang
Darkchaos has quit [Read error: Connection reset by peer]
sleepy_keita has quit [Quit: sleepy_keita]
sjltayl__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
schlubbi_ has joined #ruby-lang
odcinek has joined #ruby-lang
dmitrykorotkov_ has joined #ruby-lang
schlubbi_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tovias has joined #ruby-lang
tovias has joined #ruby-lang
JoshuaPaling has quit [Quit: Textual IRC Client: www.textualapp.com]
tbuehlmann has quit [Ping timeout: 264 seconds]
sleepy_keita has joined #ruby-lang
malusalexandru has joined #ruby-lang
kek has joined #ruby-lang
tovias is now known as tbuehlmann
schaerli has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
jxie has quit [Quit: leaving]
ldnunes has joined #ruby-lang
malusalexandru has quit [Quit: Page closed]
malusalexandru has joined #ruby-lang
ikrima has quit [Quit: Computer has gone to sleep.]
Domon has quit [Remote host closed the connection]
Domon has joined #ruby-lang
<malusalexandru> problem with datepicker..
<lianj> capi: count = RARRAY_LEN(ary) what value is count if ary is a string?
Domon has quit [Ping timeout: 240 seconds]
<matti> lianj: The value would be a duck.
schlubbi_ has joined #ruby-lang
vlad_starkov has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
<yorickpeterse> lianj: segfault quite possibly, though I'm not 100% sure
kgrz has joined #ruby-lang
<lianj> matti: then i hate this from now on :D https://github.com/ffi/ffi/blob/master/ext/ffi_c/AbstractMemory.c#L117 spent 2 hours debugging in a totally ffi unrelated area before finding my mistake
<yorickpeterse> depends on if RARRAY_LEN has any type checking in it
<lianj> well guess it a compromise between performance and raising error
<matti> No type checking.
<matti> RARRAY_LEN is just a macro for convenience.
<lianj> FFI::MemoryPointer.new(:uint8, 256).put_array_of_uint8(0, ("A"*256)).read_string(256) trolled me hardcore. (forgot the As.unpack("C*"))
<yorickpeterse> I'd rather have an error here
<yorickpeterse> If you do an array operation on a string it should scream in terror, not just suck it up like PHP
skade has quit [Quit: Computer has gone to sleep.]
arBmind1 has joined #ruby-lang
<yorickpeterse> (heh here we go)
<lianj> yorickpeterse: agreed, thats why im in a little rage mode atm
<yorickpeterse> ah
<matti> if (!NIL_P(value) && Check_Type(value, T_STRING)) { ... }
<banisterfiend> well if the RArray struct is laid out similarly to RString it'll work
<banisterfiend> but that's just an implementation quirk/luck
<yorickpeterse> I wonder to what other parts of MRI that would apply :>
Pupeno_ has joined #ruby-lang
arBmind has quit [Ping timeout: 240 seconds]
<matti> yorickpeterse: Better not to know.
<matti> ;]
<yorickpeterse> STOP WINKING
<banisterfiend> that square-jawed grin is disturbing too
<yorickpeterse> next thing you know you start asking what colour underwear I'm wearing
Pupeno has quit [Ping timeout: 246 seconds]
<matti> yorickpeterse: Pink!
<matti> yorickpeterse: Everyone knows that.
<yorickpeterse> blue actually
<yorickpeterse> I just checked, I wasn't even sure
<matti> There, I didn't even have to ask.
<matti> :>
Forgetful_Lion has quit [Ping timeout: 245 seconds]
Forgetful_Lion has joined #ruby-lang
kek has joined #ruby-lang
kek has quit [Ping timeout: 264 seconds]
schaerli has joined #ruby-lang
charliesome has joined #ruby-lang
skade has joined #ruby-lang
sleepy_keita has quit [Quit: sleepy_keita]
kgrz has quit [Ping timeout: 260 seconds]
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
banisterfiend has quit [Quit: Computer has gone to sleep.]
robbyoconnor has quit [Ping timeout: 253 seconds]
intellitech has joined #ruby-lang
kgrz has joined #ruby-lang
<malusalexandru> hi folks :0
<malusalexandru> any opinion regarding this issue?
Johz has quit [Ping timeout: 264 seconds]
runeb has quit [Remote host closed the connection]
alekst has joined #ruby-lang
breakingthings has joined #ruby-lang
<toretore> malusalexandru: this is not a ruby issue. try ##javascript or #css
<maloik> (nor do I see an issue there?)
<toretore> or #rubyonrails
<malusalexandru> output is an empty field, clicked should have opened the datepicker, instead it does nothing
<malusalexandru> but thank you for the feedback, will try on those channels
_whitelogger_ has joined #ruby-lang
machuga|away is now known as machuga
sleepy_keita has joined #ruby-lang
diegoviola has joined #ruby-lang
cads has quit [Ping timeout: 248 seconds]
_whitelogger__ has joined #ruby-lang
_whitelogger_ has quit [Remote host closed the connection]
CoreData has joined #ruby-lang
mark- has joined #ruby-lang
anonymuse has joined #ruby-lang
kek has joined #ruby-lang
relix has quit [*.net *.split]
hhatch has quit [*.net *.split]
hogeo has quit [*.net *.split]
Kero has quit [*.net *.split]
IteratorP has quit [*.net *.split]
fbernier has quit [*.net *.split]
skinny_much has quit [*.net *.split]
musl has quit [*.net *.split]
Cope has quit [*.net *.split]
Rubennn has quit [*.net *.split]
thang has quit [*.net *.split]
zeusmns has quit [*.net *.split]
ironcamel has quit [*.net *.split]
Cope has joined #ruby-lang
Rubennn has joined #ruby-lang
ironcamel has joined #ruby-lang
thang has joined #ruby-lang
Kero has joined #ruby-lang
skinny_much has joined #ruby-lang
relix has joined #ruby-lang
zeusmns has joined #ruby-lang
musl has joined #ruby-lang
hogeo has joined #ruby-lang
kek has quit [Write error: Broken pipe]
tharindu has quit [Remote host closed the connection]
jonathanmarvens has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
znz_jp has quit [Quit: kill -QUIT $$]
fbernier has joined #ruby-lang
znz_jp has joined #ruby-lang
jonathanmarvens has joined #ruby-lang
kek has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
<yorickpeterse> 6 minutes until I have to run my migration of 320K rows on production
<yorickpeterse> oh boy
<yorickpeterse> I swear to god if Mongo fucks up
<lupine> hey, at least it's not couch
<yorickpeterse> not sure if that's a good thing
IteratorP has joined #ruby-lang
spuk has quit [Ping timeout: 245 seconds]
GaelanAintAround is now known as Gaelan
<maloik> gl yorickpeterse :-)
<yorickpeterse> well, here we go
<yorickpeterse> leeroooy
<maloik> ljarvis: is that train bed yours ?
malev has joined #ruby-lang
schlubbi_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spuk has joined #ruby-lang
<jonathanmarvens> yorickpeterse: "hey, at least it's not couch" - I swear I read that as "hey, at least it's not a couch" ... LOL.
nathanstitt has joined #ruby-lang
_whitelogger___ has joined #ruby-lang
_whitelogger__ has quit [Remote host closed the connection]
odcinek has quit [Quit: odcinek]
<maloik> yorickpeterse: why would you have to benchmark that ?
<yorickpeterse> Because we're moving away from it and I want some solid numbers so we can compare old/new
<yorickpeterse> it also allows us to calculate cost reductions/increases, etc
<yorickpeterse> I want to go down to the point where I can get the cost per single job we process (in our daemons in that case)
<yorickpeterse> That's pretty hard though since we use spot instances for a large part, their prices change every hour
<maloik> hmm suppose you're just dealing with something entirely different than us
<maloik> we don't have to worry about that at all
<yorickpeterse> We're moving to a completely new deployment platform, better have some numbers to actually justify it beyond "it's faster, because stuff"
<maloik> happy I don't have to deal with hierarchy other than 'can I have a day off' :-)
ldnunes_ has joined #ruby-lang
<yorickpeterse> CTO's rough estimate was that we can save around 30% of our hosting costs this way
<yorickpeterse> it's about "did we actually gain anything out of this financially/time wise"
<yorickpeterse> It has nothing to do with hierarchy
<maloik> by changing the way you deploy ?
Gaelan is now known as GaelanAintAround
<yorickpeterse> Yes
<yorickpeterse> It leads to the ability to scale up/down much more aggressively, meaning we can shut down instances a lot faster
jonathanmarvens has quit [Remote host closed the connection]
<maloik> thats insane
<yorickpeterse> You pay per hour on AWS, so if you run something 1 hour and 5 minutes you pay for 2 full hours
ldnunes has quit [Quit: Leaving]
<lupine> even for cloud hosting, amazon is pricey
<lupine> if you've got a reasonable baseline load, you can start comparing it to proper hosting, at which point it looks even pricier
jonathanmarvens has joined #ruby-lang
<yorickpeterse> depends on how you host things
<yorickpeterse> it's super expensive for just running some VPS cranking out some blag
jonathanmarvens has left #ruby-lang [#ruby-lang]
<yorickpeterse> it becomes interesting when you buy into the whole package
ldnunes_ has quit [Client Quit]
kurko_ has joined #ruby-lang
<lupine> I'm sure there's a few cases where it's competitive
<lupine> it's impossible to be that uniformly bad at pricing
ldnunes has joined #ruby-lang
<yorickpeterse> though that's also our shitty network (fiber my ass)
<yorickpeterse> note that the end drop means it still sits at around 80 sec
<yorickpeterse> average was 89,209 seconds
<lupine> mind you, I work for an ISP that isn'st amazon, so I'm going to be a bit biased
GaelanAintAround is now known as Gaelan
<yorickpeterse> heh
Gaelan is now known as GaelanAintAround
wmoxam has joined #ruby-lang
csaunders has joined #ruby-lang
<maloik> hosting company here as well
fuhgeddaboudit has joined #ruby-lang
mbj has joined #ruby-lang
kek has quit [Remote host closed the connection]
jiuweigui has joined #ruby-lang
<naquad> https://gist.github.com/6684740 - what do you think? can it be written better? are there any refactoring moments? thanks
hogeo has joined #ruby-lang
<charliesome> naquad: Evented.included is a bit meh
<charliesome> i could see confusion arising over whether you're calling the methods in Evented on the class or an instance
<charliesome> where they'll have different state
<naquad> charliesome, why so? common pattern, i've seen it used pretty much everywhere
<charliesome> naquad: what are you trying to actually achieve?
raj__ has joined #ruby-lang
<charliesome> oh whoops read shit wrong
<naquad> charliesome, the idea with Evented is to provide event source and couple of dsl methods for explicitly listing class events (on class level)
<charliesome> yeah my bad
<charliesome> seems legit
vlad_starkov has quit [Remote host closed the connection]
<naquad> there's Evented#call_handlers method that bothers me
raj__ has quit [Client Quit]
eugenejen has joined #ruby-lang
banisterfiend has quit [Ping timeout: 240 seconds]
itcharlie has joined #ruby-lang
<yorickpeterse> and a crash helmet
<yorickpeterse> Hm, reckon I need to get myself a t-shirt with the text "RAILS_ENV=production" on it
h_kon has quit [Read error: Connection reset by peer]
hogeo has quit [Remote host closed the connection]
<naquad> yorickpeterse, in ~/.bashrc: export RAILS_ENV=production
<naquad> got it on all production servers
<naquad> helps a lot
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<yorickpeterse> I'm doing this from my local laptop
kek has joined #ruby-lang
<yorickpeterse> you're not getting it
<yorickpeterse> Mysql2::Error: MySQL server has gone away: INSERT INTO connections
<yorickpeterse> HAHA
<yorickpeterse> I think I hit MySQL's limit
<yorickpeterse> poor MySQL
<naquad> do you have reconnect in configuration?
kek has quit [Remote host closed the connection]
<yorickpeterse> huh interesting, I don't
<yorickpeterse> oh wait, it is set
<yorickpeterse> I just missed it
momomomomo has joined #ruby-lang
tkuchiki has joined #ruby-lang
soba has quit [Ping timeout: 246 seconds]
kek has joined #ruby-lang
nofxx has joined #ruby-lang
malusalexandru has quit [Quit: Page closed]
csaunders has quit [Ping timeout: 248 seconds]
sascha_d has joined #ruby-lang
bondar has joined #ruby-lang
diego1 has joined #ruby-lang
diegoviola has quit [Ping timeout: 248 seconds]
diego1 is now known as diegoviola
csaunders has joined #ruby-lang
banisterfiend has joined #ruby-lang
toertore has joined #ruby-lang
machuga is now known as machuga|away
mayday_jay has quit [Ping timeout: 240 seconds]
toretore has quit [Ping timeout: 240 seconds]
elia has quit [Ping timeout: 264 seconds]
mayday_jay has joined #ruby-lang
schlubbi has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
schlubbi has quit [Client Quit]
elia has joined #ruby-lang
adambeynon has joined #ruby-lang
wallerdev has joined #ruby-lang
deception has joined #ruby-lang
guns has joined #ruby-lang
nathanstitt has joined #ruby-lang
scampbell has joined #ruby-lang
loincloth has joined #ruby-lang
fragamus has quit [Quit: Computer has gone to sleep.]
bantic has joined #ruby-lang
gnufied has quit [Ping timeout: 260 seconds]
kek has quit [Remote host closed the connection]
<yorickpeterse> OH NICE FUCKING GOING MONGO
Hauleth has joined #ruby-lang
<yorickpeterse> A remove that does fuck all apparently
jonathanmarvens has joined #ruby-lang
<yorickpeterse> but if I use the same query to find data it does return rows
Squarepy has quit [Quit: Leaving]
gnufied has joined #ruby-lang
<yorickpeterse> oh and now it's gone...maybe it's a sync issue between the master and arbiters
<yorickpeterse> ffs
arBmind1 has quit [Quit: Leaving.]
sjltaylo_ has joined #ruby-lang
benlovell has quit [Read error: Connection reset by peer]
benlovell has joined #ruby-lang
cstrahan has joined #ruby-lang
kek has joined #ruby-lang
richardburton has joined #ruby-lang
eugenejen has quit [Ping timeout: 245 seconds]
eugenejen has joined #ruby-lang
shireesh has quit [Quit: Leaving]
tonni has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
mistym has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
mark- has quit [Ping timeout: 260 seconds]
mark- has joined #ruby-lang
schaerli has joined #ruby-lang
runeb has quit [Remote host closed the connection]
elia has quit [Ping timeout: 240 seconds]
tubbo has joined #ruby-lang
elia has joined #ruby-lang
mistym has quit [Remote host closed the connection]
csaunders has quit [Ping timeout: 248 seconds]
GeissT has quit [Quit: MillBroChat AdIRC User]
Voker57 has quit []
bgant has joined #ruby-lang
sjltaylo_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anonymuse has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
bzalasky has joined #ruby-lang
anonymuse has joined #ruby-lang
setmeaway has joined #ruby-lang
tonni has joined #ruby-lang
sevvie has joined #ruby-lang
runeb has joined #ruby-lang
hogeo has joined #ruby-lang
jxpx777 has joined #ruby-lang
runeb has quit [Remote host closed the connection]
shinnya has joined #ruby-lang
jonathanmarvens has left #ruby-lang [#ruby-lang]
jmeeuwen has quit [Write error: Broken pipe]
jmeeuwen has joined #ruby-lang
stamina has quit [Quit: WeeChat 0.4.1]
elia has quit [Ping timeout: 256 seconds]
stamina has joined #ruby-lang
snarfmason has joined #ruby-lang
sniffingcats has joined #ruby-lang
ecnalyr has quit [Ping timeout: 245 seconds]
bzalasky has quit [Remote host closed the connection]
bgant has quit [Quit: Leaving.]
skade has quit [Quit: Computer has gone to sleep.]
elia has joined #ruby-lang
__butch__ has joined #ruby-lang
<igalic> yorickpeterse: it's all about *eventual* consistency.
<andrewvos> meaning "sometime next week, during working hours"
<andrewvos> mongo is like the post office
CoreData has quit [Ping timeout: 260 seconds]
jxie has joined #ruby-lang
mistym has joined #ruby-lang
bantic has quit [Quit: bantic]
csaunders has joined #ruby-lang
Voker57 has joined #ruby-lang
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
<yorickpeterse> the post office is something I would trust a little bit
tubbo has quit [Read error: Connection reset by peer]
scottschecter has quit [Ping timeout: 260 seconds]
jonathanmarvens has joined #ruby-lang
julweber has quit [Remote host closed the connection]
runeb has joined #ruby-lang
tubbo has joined #ruby-lang
mayday_jay has quit [Ping timeout: 264 seconds]
sascha_d has quit [Ping timeout: 248 seconds]
sascha_d has joined #ruby-lang
toertore has quit [Quit: Leaving]
seanlerner has joined #ruby-lang
wallerdev has joined #ruby-lang
metus_violarium has joined #ruby-lang
im_jebus is now known as bf4
<yorickpeterse> that one is old
<yorickpeterse> The Java driver one was better
<bf4> yeah, but I thought of it w/r/t your mongo comment. didn't see the Java one
<yorickpeterse> something about only logging stuff every 10th message but instead doing it only every 1th or so
<yorickpeterse> they basically did shit like if rand() % 10 == ....
hashkey has joined #ruby-lang
mistym has quit [Remote host closed the connection]
<bf4> anyhow, sorry for the OT. /done
guns has quit [Quit: guns]
mayday_jay has joined #ruby-lang
<yorickpeterse> yeah that one
iliketurtles has joined #ruby-lang
rippa has joined #ruby-lang
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
sevvie has quit [Ping timeout: 245 seconds]
tubbo has quit [Quit: WeeChat 0.4.1]
solars has quit [Ping timeout: 252 seconds]
runeb has quit [Remote host closed the connection]
tubbo has joined #ruby-lang
arope28 has quit [Quit: arope28]
Johz has joined #ruby-lang
sevvie has joined #ruby-lang
havenwood has joined #ruby-lang
imperator2 has joined #ruby-lang
anonymuse has quit [Remote host closed the connection]
tharindu has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
julweber has joined #ruby-lang
<matti> % 10
<matti> :)
iliketurtles has quit [Quit: zzzzz…..]
flip_digits has joined #ruby-lang
machuga|away is now known as machuga
tbuehlmann has quit [Quit: Konversation terminated!]
minivan has quit [Ping timeout: 264 seconds]
rue has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
momomomomo has joined #ruby-lang
rue has joined #ruby-lang
DarkBushido has quit [Ping timeout: 240 seconds]
nisstyre has joined #ruby-lang
jonathanmarvens has quit [Remote host closed the connection]
adambeynon has joined #ruby-lang
elia has quit [Ping timeout: 260 seconds]
metus_violarium has quit [Ping timeout: 268 seconds]
elia has joined #ruby-lang
metus_violarium has joined #ruby-lang
CoreData has joined #ruby-lang
flip_digits has quit [Remote host closed the connection]
elia has quit [Client Quit]
MaddinXx_ has joined #ruby-lang
benlovell has quit [Ping timeout: 246 seconds]
dagobah has quit [Remote host closed the connection]
DarkBushido has joined #ruby-lang
kek has quit [Remote host closed the connection]
<naquad> is there some kind of protection from indirect recursion? i've got a method that calls another method in another object and it can call my method again. currently i've added a guard variable, but it doesn't look to be a good solution
julweber has quit [Remote host closed the connection]
skade has joined #ruby-lang
sepp2k has joined #ruby-lang
znz_jp has quit [Quit: kill -QUIT $$]
iliketurtles has joined #ruby-lang
znz_jp has joined #ruby-lang
CoreData has quit [Ping timeout: 260 seconds]
CoreData has joined #ruby-lang
richardburton has left #ruby-lang [#ruby-lang]
sevvie has quit [Quit: leaving]
imperator2 has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
apeiros has quit [Remote host closed the connection]
MaddinXx_ has quit [Remote host closed the connection]
stamina has quit [Ping timeout: 245 seconds]
hashkey has quit [Quit: Leaving]
<maloik> I'm just trying out chruby for the first time (coming from rvm) and while the version switching seems to be working it doesn't appear to work with bundler and/or pow
<maloik> anyone have any expierience with that ?
<maloik> experience*
<breakingthings> without going into it, assuming that you had bundler and pow running before, you're probably now in possession of two different ruby installs, where bundler and pow are on the system ruby and you are trying to use your chruby install that doesn't have those. Reinstall those gems.
<breakingthings> and etc.
<maloik> freshly installed machine, rvm isn't on this machine no more
<maloik> im on mavericks so only had 2.0.0 installed, then got chruby and now have both 2.0.0 and 1.9.3 in /opt/rubies (or similar folder)
<maloik> but I suppose it's possibly that bundler or pow are using system ruby, but question is how do I change that behaviour ?
<maloik> surely I'm not the first one to try that combination
elia has joined #ruby-lang
<csaunders> might just be a path issue
<havenwood> maloik: Whatever Ruby you set chruby to point at will be the bundler you're getting.
<maloik> that didn't make a whole lot of sense :(
<havenwood> maloik: Check the chruby wiki on Pow: https://github.com/postmodern/chruby/wiki/Pow
vlad_starkov has quit [Remote host closed the connection]
<maloik> ooh
<maloik> I missed that somehow
<maloik> lets see
carcajou has joined #ruby-lang
skade has joined #ruby-lang
adambeynon has quit [Ping timeout: 256 seconds]
tylersmith has joined #ruby-lang
<maloik> says the profile.d script doesnt even exist
<havenwood> maloik: That would be if you setup chruby with profile.d. If you used a .bashrc or .zshrc file point it to that instead.
Pupeno_ has quit [Ping timeout: 264 seconds]
<maloik> I've changed it to source /usr/local/share/chruby/chruby.sh
<maloik> which does exist
<maloik> suppose that's the one I want
<maloik> still not doing the right thing though
imperator has joined #ruby-lang
<havenwood> maloik: The wiki could be made more clear there, will fix. What is expected in the file is: source /usr/local/share/chruby/chruby.sh
jsullivandigs has joined #ruby-lang
<maloik> right, I managed to figure that out at least, yay me
<maloik> now if that doesn't work, what else should I check ?
Guedes has joined #ruby-lang
Guedes has left #ruby-lang [#ruby-lang]
<maloik> whereis ruby says /usr/bin/ruby is that even the correct one ?
pellenation has joined #ruby-lang
<havenwood> maloik: Hop over to #chruby? Seems you need to get it setup.
<maloik> oh my bad didn't realize there was that channel
runeb has joined #ruby-lang
MaddinXx has joined #ruby-lang
saarinen has joined #ruby-lang
__butch__ has quit [Ping timeout: 246 seconds]
runeb has quit [Ping timeout: 256 seconds]
hahuang65 has quit [Ping timeout: 245 seconds]
_whitelogger___ has joined #ruby-lang
__butch__ has joined #ruby-lang
jonathanmarvens has joined #ruby-lang
benanne has joined #ruby-lang
diegoviola has quit [Ping timeout: 252 seconds]
dmitrykorotkov has joined #ruby-lang
dmitrykorotkov_ has quit [Ping timeout: 252 seconds]
__butch__ has quit [Ping timeout: 240 seconds]
__butch__ has joined #ruby-lang
elia has quit [Ping timeout: 252 seconds]
runeb has joined #ruby-lang
lfox has quit [Quit: ZZZzzz…]
minivan1 has joined #ruby-lang
ledestin has quit [Ping timeout: 248 seconds]
ledestin has joined #ruby-lang
schaerli has joined #ruby-lang
hahuang65 has joined #ruby-lang
aspires has joined #ruby-lang
lfox has joined #ruby-lang
julweber has joined #ruby-lang
kurko_ has quit [Ping timeout: 260 seconds]
kurko_ has joined #ruby-lang
Tearan has joined #ruby-lang
stamina has joined #ruby-lang
julweber has quit [Ping timeout: 252 seconds]
imperator2 has joined #ruby-lang
tharindu has quit [Ping timeout: 260 seconds]
scottschecter has joined #ruby-lang
apeiros has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
anonymuse has joined #ruby-lang
apeiros has quit [Ping timeout: 240 seconds]
mistym_ has joined #ruby-lang
mistym_ has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
mbj has quit [Ping timeout: 252 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
pellenation has joined #ruby-lang
apeiros has quit [Read error: Operation timed out]
mytrile has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
pellenation has quit [Client Quit]
tubbo has quit [Ping timeout: 276 seconds]
<maloik> zzak: are you actually involved in that contest ?
anonymuse has quit [Remote host closed the connection]
<maloik> in any case, my 2 cents: if you compare it to a developer participating in something like this, it'd be providing a full-on solution to a problem not knowing if it will be accepted
<maloik> there's a difference between creating a fork on a project based on your own needs and submitting it for other people to use then get rejected
<maloik> the proper way forward is opening this up to be handled as an open source project, perhaps with someone taking the lead via wireframes or sketches or something
<maloik> I reckon some designers WANT to get involved in open source (Jon Gold wrote an article on this, I believe on Medium, and people seemed to repsond very well)
<maloik> so while it may be an entirely different task of actually getting designers to contribute, such a contest probably won't deliver the best results and will hurt people the same way other spec work does
<maloik> </rant>
<maloik> man, I need a blog
<maloik> actually I need to get off my ass and write :(
metus_violarium has quit [Quit: Konversation terminated!]
mbj has joined #ruby-lang
tubbo has joined #ruby-lang
aspires has quit [Quit: aspires]
stamina has quit [Read error: Operation timed out]
metus_violarium has joined #ruby-lang
<maloik> although upon looking closely it's headed in the right direction, it just comes off as being spec work
mbj has quit [Ping timeout: 248 seconds]
tonni has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
eevar has joined #ruby-lang
eevar has left #ruby-lang [#ruby-lang]
retro|cz has quit [Ping timeout: 252 seconds]
znz_jp has quit [Quit: kill -QUIT $$]
znz_jp has joined #ruby-lang
sniffingcats has quit [Ping timeout: 240 seconds]
arBmind has joined #ruby-lang
wm3|zzz is now known as workmad3
sniffingcats has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
anonymuse has joined #ruby-lang
sniffingcats has quit [Ping timeout: 268 seconds]
apeiros has joined #ruby-lang
Xzyx987X_ has joined #ruby-lang
Xzyx987X has quit [Ping timeout: 240 seconds]
kgrz has joined #ruby-lang
vlad_starkov has joined #ruby-lang
sniffingcats has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
melter has quit [Quit: Client exiting]
kgrz has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Ping timeout: 240 seconds]
jonathanmarvens has quit [Remote host closed the connection]
rickhull has joined #ruby-lang
bantic has joined #ruby-lang
retro|cz has joined #ruby-lang
brianpWins has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
momomomomo has joined #ruby-lang
anonymuse has quit [Remote host closed the connection]
stamina has joined #ruby-lang
anonymuse has joined #ruby-lang
nneko001__ has joined #ruby-lang
vlad_starkov has joined #ruby-lang
hashkey has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
sniffingcats has left #ruby-lang ["Til rivido Idisti!"]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
workmad3 is now known as wm3|away
mbj has joined #ruby-lang
alekst has quit [Quit: Computer has gone to sleep.]
havenwood has quit [Read error: Connection reset by peer]
enebo has joined #ruby-lang
havenwood has joined #ruby-lang
ikrima has joined #ruby-lang
enebo has quit [Client Quit]
enebo has joined #ruby-lang
mistym_ has joined #ruby-lang
havenwood has quit [Ping timeout: 240 seconds]
kgrz has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
ecnalyr has joined #ruby-lang
ecnalyr has quit [Remote host closed the connection]
jonathanmarvens has joined #ruby-lang
fcahoon has joined #ruby-lang
fcahoon has quit [Remote host closed the connection]
devn has joined #ruby-lang
<devn> hey everybody -- is there a reason why ruby's range can't handle a negative step?
<devn> is that something I could submit a patch for?
kgrz has quit [Ping timeout: 245 seconds]
<devn> ive never really looked into the contribution process. could someone point me in the right direction?
pellenation has joined #ruby-lang
alekst has joined #ruby-lang
anonymus_ has joined #ruby-lang
anonymuse has quit [Read error: Connection reset by peer]
pellenation has quit [Quit: Leaving.]
tonni has joined #ruby-lang
jonathanmarvens has quit [Ping timeout: 245 seconds]
nofxx has quit [Ping timeout: 245 seconds]
shinnya has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby-lang
<darix> devn: step where?
kurko_ has quit [Ping timeout: 264 seconds]
kurko_ has joined #ruby-lang
<devn> darix: (0..-3).step(-1).to_a => [0, -1, -2, -3]
<devn> Negative steps are currently not allowed
havenwood has quit [Ping timeout: 260 seconds]
<darix> you can kinda express it with (-3..0).step(1).to_a.reverse but yeah not as efficient
<darix> though if you are going to use .each or so on it
<darix> you could do (0..-3).step(1).reverse_each
mistym_ has quit [Remote host closed the connection]
<canton7> you still need to read the whole lot into memory
<darix> canton7: huh?
<darix> canton7: (0..-3).step(1) gives you an enumerator
irlrobot has joined #ruby-lang
deception has quit [Quit: Goodbye]
<canton7> darix, did you mean (-3..0).step(1).reverse_each? your varient's giving me an empty enumerator
anonymuse has joined #ruby-lang
<darix> oh right
<darix> yeah
<darix> sry
anonymus_ has quit [Read error: Connection reset by peer]
schaerli has quit [Remote host closed the connection]
<devn> canton7: could you comment then, you seem to be speaking my language here
<devn> there are lots of ways to get the same value out, but having negative step size is nice
<devn> in addition, i don't see why we couldn't have (0..-10)
<canton7> also, Enumerable#reverse_each builds a temporary array, then traverses that, hence my "you still need to read the whole lot info memory"
<devn> fiddle with a comparator and that's it
<devn> it should be a simple change
nofxx has joined #ruby-lang
<canton7> devn, yeah I appreciate that, your request pops up now and again
<canton7> no-one seems to have cared to do enough about it though :P
<devn> canton7: what is the proper way to submit a patch to core?
<canton7> devn, I'm not too sure I'm afraid
<devn> ive never done this
<darix> devn: open a bug
<darix> and start a discussion
<devn> where? :)
<darix> ruby-core mailinglist
<devn> it's not really a bug per se
<darix> devn: as this kind of changes the design of the range class
<darix> other implementations like jruby, rubinius might join the discussion
<darix> devn: well then start a thread on the ml for starters
<devn> it's clear it's intended to work this way given (3..-1).step(-1).to_a throws an error explaining negative steps aren't supported
<devn> cool, will do
<devn> i think ill write a patch first
<devn> and lead with that
pellenation has joined #ruby-lang
csaunders has quit [Ping timeout: 246 seconds]
iliketurtles has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
ecnalyr has joined #ruby-lang
tonni has quit [Remote host closed the connection]
Bosox20051 has quit [Remote host closed the connection]
lele has quit [Quit: Coyote finally caught me]
ecnalyr has quit [Remote host closed the connection]
pellenation has quit [Quit: Leaving.]
runeb has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
paul_ has joined #ruby-lang
benlovell has joined #ruby-lang
yfeldblum has quit [Ping timeout: 264 seconds]
paul_ has quit [Client Quit]
kgrz has quit [Ping timeout: 260 seconds]
lele has joined #ruby-lang
aspires has joined #ruby-lang
benlovell has quit [Ping timeout: 246 seconds]
deception has joined #ruby-lang
DarkBushido has quit [Ping timeout: 245 seconds]
duckinator has quit [Ping timeout: 245 seconds]
cschneid has quit [Ping timeout: 259 seconds]
ikrima has quit [Quit: Computer has gone to sleep.]
dvarrui has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
tylersmith has quit [Read error: Connection reset by peer]
nathanstitt has quit [Quit: I growing sleepy]
tylersmith has joined #ruby-lang
deception has quit [Remote host closed the connection]
ecnalyr has joined #ruby-lang
ecnalyr has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
mistym has quit [Quit: Leaving]
arBmind has quit [Quit: Leaving.]
postmodern has joined #ruby-lang
kurko_ has quit [Ping timeout: 240 seconds]
mistym has joined #ruby-lang
metus_violarium has quit [Quit: Konversation terminated!]
Coincidental has joined #ruby-lang
kurko_ has joined #ruby-lang
cads has joined #ruby-lang
yfeldblum has quit [Ping timeout: 248 seconds]
carcajou has quit [Quit: WeeChat 0.4.0]
runeb has joined #ruby-lang
ikrima has joined #ruby-lang
Guest4964 has joined #ruby-lang
breakingthings has quit []
<zzak> maloik: ?
ldnunes has quit [Quit: Leaving]
<zzak> i'm not directly involved in judging or anything
<maloik> aight :)
<maloik> I mailed the address they mentioned
<maloik> wonder if I'll get anything back
VTLob has quit [Quit: VTLob]
runeb has quit [Ping timeout: 245 seconds]
Guest4964 is now known as diegoviola
<zzak> :D
yfeldblum has joined #ruby-lang
toretore has joined #ruby-lang
julweber has joined #ruby-lang
alekst has quit [Quit: Computer has gone to sleep.]
jonathanmarvens has joined #ruby-lang
DarkBushido has joined #ruby-lang
jonathanmarvens has quit [Remote host closed the connection]
tonni has joined #ruby-lang
cschneid has joined #ruby-lang
duckinator has joined #ruby-lang
heftig has quit [Quit: Quitting]
alekst has joined #ruby-lang
jiuweigui has quit [Quit: Gone...]
sevvie has joined #ruby-lang
retro|cz has quit [Ping timeout: 246 seconds]
kurko_ has quit [Ping timeout: 240 seconds]
mdedetrich has joined #ruby-lang
vasinov has joined #ruby-lang
znz_jp has quit [Ping timeout: 245 seconds]
kurko_ has joined #ruby-lang
vasinov has left #ruby-lang [#ruby-lang]
tubbo has quit [Read error: Connection reset by peer]
tubbo` has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 240 seconds]
tubbo` has quit [Client Quit]
heftig has joined #ruby-lang
ldnunes has joined #ruby-lang
thepumpkin has joined #ruby-lang
thepumpkin has quit [Remote host closed the connection]
schlubbi has joined #ruby-lang
anonymu__ has joined #ruby-lang
anonymuse has quit [Read error: Connection reset by peer]
dmitrykorotkov has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 256 seconds]
sevvie has joined #ruby-lang
yfeldblum has joined #ruby-lang
dvarrui has quit [Quit: Saliendo]
sevvie has quit [Read error: Connection reset by peer]
anonymuse has joined #ruby-lang
anonymu__ has quit [Ping timeout: 246 seconds]
__butch__ has joined #ruby-lang
kurko_ has quit [Ping timeout: 240 seconds]
Authenticator has joined #ruby-lang
kurko_ has joined #ruby-lang
julweber has quit [Remote host closed the connection]
julweber has joined #ruby-lang
lfox has quit [Quit: ZZZzzz…]
anonymus_ has joined #ruby-lang
benanne has quit [Quit: kbai]
lfox has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
anonymuse has quit [Ping timeout: 256 seconds]
irlrobot has quit [Quit: irlrobot]
apeiros has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
carcajou has joined #ruby-lang
charliesome has joined #ruby-lang
DarkBushido has quit [Ping timeout: 245 seconds]
duckinator has quit [Ping timeout: 245 seconds]
bf4 has quit [Ping timeout: 264 seconds]
aef_ has quit [Ping timeout: 264 seconds]
<naquad> how do i execute a block within given object context? instance_eval & instance_exec are not an option because block can take arguments *and* another block
meise has quit [Ping timeout: 246 seconds]
<toretore> instance_eval{ block[*a, &b] }
<naquad> got that and it doesn't work :(
<naquad> in block self = main
heftig has quit [Quit: Quitting]
<toretore> oh right
<toretore> nm
heftig has joined #ruby-lang
yfeldblum has quit [Ping timeout: 268 seconds]
DarkBushido has joined #ruby-lang
<toretore> what are you doing with it anyway?
<naquad> i have a dsl
<naquad> f*ck, i hate ruby dsls. they seem to be nice and awesome until you open the trunk
duckinator has joined #ruby-lang
<toretore> yup, that's how it works
<toretore> try to be more explicit, it's usually better that way
nneko001__ has quit [Quit: Konversation terminated!]
<toretore> even if it's not as "pretty"
<naquad> the problem is that being explicit in this case will kill whole idea
ldnunes_ has joined #ruby-lang
carcajou has left #ruby-lang [#ruby-lang]
ldnunes has quit [Quit: Leaving]
Veejay has joined #ruby-lang
yfeldblum has joined #ruby-lang
scampbell has quit [Remote host closed the connection]
jxpx777 has quit [Quit: Leaving...]
Authenticator has left #ruby-lang [#ruby-lang]
jxpx777 has joined #ruby-lang
mbj has left #ruby-lang [#ruby-lang]
CoreData has quit [Remote host closed the connection]
CoreData has joined #ruby-lang
CoreData has quit [Remote host closed the connection]
<Veejay> Hello everyone. I wanted to know if there's a way to turn some_auth(@user, @provider) into some_auth(@user).for(provider: @provider) (sorry if I've asked the very same question 2 minutes ago, can't remember if it was here or another channel)
heftig has quit [Quit: Quitting]
<imperator> Ruby 2.1: http://rkh.im/ruby-2.1
<Veejay> The first version works in my code, no worries, just curious to see if there's a way in Ruby to create the second version (that I find visually pleasing)
<chris2> Veejay: return an intermediate object?
heftig has joined #ruby-lang
jonathanmarvens has joined #ruby-lang
vxr74 has joined #ruby-lang
bantic has quit [Quit: bantic]
macmartine has joined #ruby-lang
<toretore> Veejay: clean code > visually pleasing
<toretore> usually the former suffers when you focus on the latter
<Veejay> toretore: I won't change my code
<imperator> omg, def foo now returns a symbol!
<imperator> that only took 10 years
<Veejay> I am literally just curious
<toretore> should return a Method :(
<mistym> Prefix every `def` with a puts and annoy the hell out of users of my code
<imperator> toretore, whoa, one step at a time ;)
<toretore> Veejay: like chris2 said, just return an object that responds to "for"
<imperator> maybe in another 10 years
CoreData has joined #ruby-lang
Hauleth has quit [Quit: Wychodzi]
<Veejay> toretore, chris2: OK
<Veejay> Kind of not the magic I was expecting though. I want my money back.
<Veejay> j/k thx guys
<toretore> imperator: mostly joking, i know we won't have first class functions in ruby
<toretore> (whish is what i was implying)
cads has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
znz_jp has joined #ruby-lang
sleepy_keita has quit [Quit: sleepy_keita]
bf4 has joined #ruby-lang
ryez has quit [Quit: Page closed]
cads has joined #ruby-lang
<naquad> how do i walk through all objects currently instantiated?
<naquad> i mean literally all
mdedetrich has quit [Quit: Computer has gone to sleep.]
Coincidental has quit [Remote host closed the connection]
<chris2> ObjectSpace.each_object
<naquad> tried that
<chris2> and dont ;)
<naquad> didn't work out
<naquad> i've literally lost a method
<naquad> it is defined, but i don't know where
<imperator> toretore, it actually first came up in may, 2001
<chris2> perhaps gced?
<naquad> no
matti has quit [Quit: Oh dear...]
hashkey has quit [Quit: Leaving]
<chris2> uh, methods arent objects?
<toretore> ^
<naquad> true
<toretore> but they could be!
<chris2> toretore: at the cost of having to write foo() :/
julweber has quit [Remote host closed the connection]
<toretore> yeah
<chris2> sucks too :)
<naquad> still doesn't find it :\ ObjectSpace.each_object(Method) do |o| puts o if o.name == :xyz! end
<toretore> it's either exposed properties or hidden methods
<toretore> naquad: it's not supposed to
<naquad> well then how should that work?
<chris2> naquad: iterate over all modules and check
<chris2> (does that find singleton classes? it should...)
sepp2k1 has joined #ruby-lang
schlubbi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<naquad> hell
<naquad> it went to Objects private methods
<chris2> yep
<chris2> defined on toplevel?
<naquad> still can't figure out how did this happen? i've got method definition in block. block is rebound to given object and only then executed
<chris2> with def?
<naquad> yes
<naquad> def xyz! 1 end
sepp2k has quit [Ping timeout: 245 seconds]
<chris2> is run bfore the block runs, no?...
<Veejay> toretore: Ended implementing this with an AuthenticationRequest object that gets filled with success chained methods who tap into the AuthRequest object, works great
<naquad> i've tried in IRB, it doesn't look like
<chris2> dont try such stuff in irb
thiagoborges has joined #ruby-lang
<toretore> Veejay: congrats. and eww ;)
<imperator> String#scrub, heh
<imperator> i wonder what constitutes "garbage bytes"
cads has quit [Ping timeout: 264 seconds]
<chris2> imperator: invalid utf8 eg
<imperator> ooh, Socket.getifaddrs, that's nice
<imperator> tried to implement something similar myself, but oof, cross-platform issues made it mad hard
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<imperator> bignums are now 128 bit, intawesting
jonathanmarvens has quit [Remote host closed the connection]
<Veejay> In English, do you execute a request? Do you formulate it?
<toretore> first you formulate, then execute ;)
<toretore> :) i mean
mbj has joined #ruby-lang
<toretore> but probably execute
mdedetrich has joined #ruby-lang
<Veejay> Thanks
<toretore> well, it's not that clear either i think.. but in computation it's usually execute
<toretore> <- not a native speaker
diegoviola has quit [Ping timeout: 241 seconds]
<toretore> or if you're the receiving side, process
fuhgeddaboudit has quit [Ping timeout: 252 seconds]
jonathanmarvens has joined #ruby-lang
<imperator> chris2, i guess i'm curious how it will work with different encodings
<imperator> or rather, my initial reaction is to not trust it
itcharlie has left #ruby-lang [#ruby-lang]
toretore has quit [Quit: Leaving]
lfox has quit [Quit: ZZZzzz…]
bantic has joined #ruby-lang
jxpx777 has quit [Quit: Leaving...]
charliesome has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
runeb has joined #ruby-lang
julweber has joined #ruby-lang
<imperator> oh, bignum is now using libgmp behind the scenes
jonathanmarvens has quit [Remote host closed the connection]
seanlerner has quit [Remote host closed the connection]
mdedetrich has joined #ruby-lang
runeb has quit [Ping timeout: 256 seconds]
jonathanmarvens has joined #ruby-lang
macmartine has quit [Ping timeout: 245 seconds]
x0f_ has joined #ruby-lang
kitak has joined #ruby-lang
fuhgeddaboudit has joined #ruby-lang
fuhgeddaboudit has quit [Remote host closed the connection]
CoreData has quit [Ping timeout: 245 seconds]
x0f has quit [Ping timeout: 248 seconds]
CoreData has joined #ruby-lang
GaelanAintAround is now known as Gaelan
mbj has quit [Ping timeout: 268 seconds]
seanlerner has joined #ruby-lang
woollyams has joined #ruby-lang
JoshuaPaling has joined #ruby-lang
seanlerner has quit [Remote host closed the connection]
<drbrain> imperator: I requested Socket.getifaddrs for IPv6 multicast
<drbrain> akr implemented it
GeissT has joined #ruby-lang
julweber has quit [Remote host closed the connection]
<imperator> drbrain, nice
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<drbrain> I also updated Rinda to work on multicast (IPv4 and IPv6) and added Resolv::MDNS for one-shot MDNS resolution
Coincidental has joined #ruby-lang
lianj has quit [*.net *.split]
dvorak_ has quit [*.net *.split]
vbatts1 has quit [*.net *.split]
badeball has quit [*.net *.split]
dominikh has quit [*.net *.split]
coffeejunk has quit [*.net *.split]
freedrull has quit [*.net *.split]
brownies has quit [*.net *.split]
sindork has quit [*.net *.split]
dabradley has quit [*.net *.split]
jayne has quit [*.net *.split]
chris2 has quit [*.net *.split]
vivekrai has quit [*.net *.split]
beawesomeinstead has quit [*.net *.split]
jonathanmarvens has quit [*.net *.split]
Xzyx987X_ has quit [*.net *.split]
hachiya has quit [*.net *.split]
gix has quit [*.net *.split]
jbsan has quit [*.net *.split]
cmckni3 has quit [*.net *.split]
x0nic has quit [*.net *.split]
LanceHaig has quit [*.net *.split]
eam has quit [*.net *.split]
jroesch has quit [*.net *.split]
threedaymonk has quit [*.net *.split]
mihar has quit [*.net *.split]
jacknagel has quit [*.net *.split]
Veejay has quit [*.net *.split]
IteratorP has quit [*.net *.split]
tommyblu` has quit [*.net *.split]
chendo has quit [*.net *.split]
CoreData has quit [*.net *.split]
imperator2 has quit [*.net *.split]
hahuang65 has quit [*.net *.split]
malev has quit [*.net *.split]
kingman has quit [*.net *.split]
t0h has quit [*.net *.split]
UziMonkey has quit [*.net *.split]
norplr_ has quit [*.net *.split]
zz_dlu has quit [*.net *.split]
ericwood has quit [*.net *.split]
bri has quit [*.net *.split]
Phoop has quit [*.net *.split]
wudofyr has quit [*.net *.split]
jperry has quit [*.net *.split]
jarib has quit [*.net *.split]
drbrain has quit [*.net *.split]
PacketMonkey has quit [*.net *.split]
dhoss_ has quit [*.net *.split]
rtl has quit [*.net *.split]
Asher has quit [*.net *.split]
nirix has quit [*.net *.split]
serhart has quit [*.net *.split]
GitNick has quit [*.net *.split]
ljarvis has quit [*.net *.split]
bantic has quit [*.net *.split]
iliketurtles has quit [*.net *.split]
jxie has quit [*.net *.split]
DEac- has quit [*.net *.split]
ndrst has quit [*.net *.split]
oddmunds has quit [*.net *.split]
wasnotrice has quit [*.net *.split]
_rgn has quit [*.net *.split]
ggherdov has quit [*.net *.split]
imajes has quit [*.net *.split]
chuck_ has quit [*.net *.split]
DefV has quit [*.net *.split]
crankharder has quit [*.net *.split]
wang has quit [*.net *.split]
mahlon has quit [*.net *.split]
samkottler has quit [*.net *.split]
rebelcan has quit [*.net *.split]
wnd has quit [*.net *.split]
ReinH has quit [*.net *.split]
cub1c_ has quit [*.net *.split]
jtoy has quit [*.net *.split]
soahccc has quit [*.net *.split]
ammar has quit [*.net *.split]
devn has quit [*.net *.split]
shaman42 has quit [*.net *.split]
kitak has quit [*.net *.split]
woollyams has quit [*.net *.split]
closer has quit [*.net *.split]
yfeldblum has quit [*.net *.split]
tylersmith has quit [*.net *.split]
imperator has quit [*.net *.split]
sascha_d has quit [*.net *.split]
zeusmns has quit [*.net *.split]
wm3|away has quit [*.net *.split]
MartynKeigher has quit [*.net *.split]
priodev has quit [*.net *.split]
ryanf has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
brixen has quit [*.net *.split]
conceal_rs_____0 has quit [*.net *.split]
lianj has joined #ruby-lang
badeball has joined #ruby-lang
freedrull has joined #ruby-lang
lianj has quit [Changing host]
lianj has joined #ruby-lang
dvorak has joined #ruby-lang
coffeejunk has joined #ruby-lang
sindork has joined #ruby-lang
imperator has joined #ruby-lang
<imperator> that netsplit actually froze my irc client :/
charliesome has joined #ruby-lang
fuhgeddaboudit has joined #ruby-lang
sepp2k1 has quit [Read error: Connection reset by peer]
conceal_rs_____0 has joined #ruby-lang
brownies has joined #ruby-lang
ryanf has joined #ruby-lang
yfeldblum has joined #ruby-lang
CoreData has joined #ruby-lang
bantic has joined #ruby-lang
MartynKeigher has joined #ruby-lang
samuelkadolph has joined #ruby-lang
kingman has joined #ruby-lang
chris2 has joined #ruby-lang
zeusmns has joined #ruby-lang
imperator2 has joined #ruby-lang
dominikh has joined #ruby-lang
vbatts1 has joined #ruby-lang
tylersmith has joined #ruby-lang
jbsan has joined #ruby-lang
hachiya has joined #ruby-lang
closer has joined #ruby-lang
ndrst has joined #ruby-lang
sascha_d has joined #ruby-lang
PacketMonkey has joined #ruby-lang
beawesomeinstead has joined #ruby-lang
Xzyx987X_ has joined #ruby-lang
zz_dlu has joined #ruby-lang
jroesch has joined #ruby-lang
wasnotrice has joined #ruby-lang
jacknagel has joined #ruby-lang
dhoss_ has joined #ruby-lang
UziMonkey has joined #ruby-lang
threedaymonk has joined #ruby-lang
jxie has joined #ruby-lang
serhart has joined #ruby-lang
LanceHaig has joined #ruby-lang
DefV has joined #ruby-lang
Veejay has joined #ruby-lang
brixen has joined #ruby-lang
malev has joined #ruby-lang
gix has joined #ruby-lang
drbrain has joined #ruby-lang
t0h has joined #ruby-lang
cmckni3 has joined #ruby-lang
jperry has joined #ruby-lang
_rgn has joined #ruby-lang
ljarvis has joined #ruby-lang
rtl has joined #ruby-lang
kitak has joined #ruby-lang
Asher has joined #ruby-lang
chendo has joined #ruby-lang
eam has joined #ruby-lang
vivekrai has joined #ruby-lang
rebelcan has joined #ruby-lang
cub1c_ has joined #ruby-lang
IteratorP has joined #ruby-lang
Phoop has joined #ruby-lang
workmad3 has joined #ruby-lang
oddmunds has joined #ruby-lang
soahccc has joined #ruby-lang
wnd has joined #ruby-lang
ReinH has joined #ruby-lang
DEac- has joined #ruby-lang
crankharder has joined #ruby-lang
bri has joined #ruby-lang
ggherdov has joined #ruby-lang
priodev has joined #ruby-lang
mahlon has joined #ruby-lang
jonathanmarvens has joined #ruby-lang
iliketurtles has joined #ruby-lang
x0nic has joined #ruby-lang
mihar has joined #ruby-lang
wang has joined #ruby-lang
wudofyr has joined #ruby-lang
jtoy has joined #ruby-lang
nirix has joined #ruby-lang
tommyblu` has joined #ruby-lang
norplr_ has joined #ruby-lang
samkottler has joined #ruby-lang
shaman42 has joined #ruby-lang
woollyams has joined #ruby-lang
ammar has joined #ruby-lang
ericwood has joined #ruby-lang
GitNick has joined #ruby-lang
chuck_ has joined #ruby-lang
imajes has joined #ruby-lang
jarib has joined #ruby-lang
hahuang65 has joined #ruby-lang
devn has joined #ruby-lang
kstuart1 has joined #ruby-lang
kstuart has quit [Remote host closed the connection]
brownies is now known as Guest78788
jayne has joined #ruby-lang
kurko_ has quit [Ping timeout: 256 seconds]