bzalasky has quit [Remote host closed the connection]
pkrnj has quit [Ping timeout: 245 seconds]
cads has joined #ruby-lang
pkrnj has joined #ruby-lang
ledestin has quit [Ping timeout: 264 seconds]
tomzx_mac has quit [Ping timeout: 264 seconds]
pkrnj__ has joined #ruby-lang
pkrnj has quit [Ping timeout: 268 seconds]
Ch00k has joined #ruby-lang
pkrnj__ is now known as pkrnj
solars has joined #ruby-lang
pkrnj has quit [Ping timeout: 264 seconds]
pkrnj has joined #ruby-lang
pkrnj has quit [Ping timeout: 248 seconds]
Voker57 has quit [Ping timeout: 264 seconds]
pkrnj has joined #ruby-lang
pkrnjevic has joined #ruby-lang
pkrnj has quit [Read error: Operation timed out]
Ch00k has quit [Quit: Ch00k]
pkrnjevic has quit [Read error: Operation timed out]
pkrnj has joined #ruby-lang
poga has joined #ruby-lang
pkrnj has quit [Remote host closed the connection]
poga has joined #ruby-lang
leekiern_ has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
mdedetrich has joined #ruby-lang
scmx has joined #ruby-lang
naturtrunken has joined #ruby-lang
hogeo_ has quit [Remote host closed the connection]
tonni has joined #ruby-lang
hogeo has joined #ruby-lang
workmad3 has joined #ruby-lang
vlad_starkov has joined #ruby-lang
Domon has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tonni has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby-lang
workmad3 has quit [Ping timeout: 260 seconds]
skade has joined #ruby-lang
tonni has joined #ruby-lang
rue has quit [Remote host closed the connection]
leekiern_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cmckni3 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Bosox20051 has joined #ruby-lang
yatish27 has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
ledestin has joined #ruby-lang
eoinkelly has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duard has joined #ruby-lang
charliesome has joined #ruby-lang
<erikh>
rickhull: still around?
hhatch has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dc5ala has joined #ruby-lang
mistym has quit [Remote host closed the connection]
mbj has joined #ruby-lang
mdedetrich has joined #ruby-lang
<yorickpeterse>
OLD MCDONALD HAD A YAK, HEEYA HEEYA HO
<yorickpeterse>
HE HAD TO SHAVE THAT BIG FAT YAK, HEEYA HEEYA HO
<yorickpeterse>
also good morning
Ch00k has joined #ruby-lang
leekiern_ has joined #ruby-lang
postmodern has joined #ruby-lang
rikai_ has joined #ruby-lang
sedrickcz has joined #ruby-lang
hashkey has quit [Quit: Leaving]
rikai has quit [Ping timeout: 264 seconds]
bzalasky has joined #ruby-lang
<yorickpeterse>
heh, somebody behind me has the worst British accent
<yorickpeterse>
sounds like me!
duard has quit [Remote host closed the connection]
sstrickl has joined #ruby-lang
sstrickl has joined #ruby-lang
eoinkelly has quit [Quit: eoinkelly]
pipework has joined #ruby-lang
eoinkelly has joined #ruby-lang
eoinkelly has quit [Client Quit]
buranshe has joined #ruby-lang
sedrickcz has quit [Remote host closed the connection]
tonni has quit [Remote host closed the connection]
buranshe has quit [Client Quit]
sstrickl has quit [Quit: sstrickl]
sedrickcz has joined #ruby-lang
Guest57273 has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 248 seconds]
y2k2u has joined #ruby-lang
tonni has joined #ruby-lang
Kabaka has quit [Ping timeout: 240 seconds]
Kabaka_ has joined #ruby-lang
wudofyr has quit [Remote host closed the connection]
diegoviola has joined #ruby-lang
wudofyr has joined #ruby-lang
eoinkelly has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
benlovell has joined #ruby-lang
eoinkelly has quit [Quit: eoinkelly]
hashkey has joined #ruby-lang
sjltaylo_ has joined #ruby-lang
sepp2k has joined #ruby-lang
<ljarvis>
heh
sjltaylo_ has quit [Client Quit]
charliesome has joined #ruby-lang
rickruby has joined #ruby-lang
<ledestin>
guys do you mind rails questions?
<maloik>
best to try in #rubyonrails imo
charliesome has quit [Client Quit]
<ljarvis>
:)
<ledestin>
maloik: don't like that channel
richardburton has quit [Quit: Leaving.]
<ljarvis>
ledestin: what's your question?
<ledestin>
ljarvis: I have model Episode, which has_one A and B
<ledestin>
ljarvis: I want to validate that B can't be present if A isn't present
<maloik>
I know what you mean but there's little to do about it I'm afraid... I personally don't mind one in here every now and then (but others mind), but on the other hand this is still a ruby channel after all :P
<maloik>
validates_presence_of :a, if: ->{b.present?} (from the top of my head), syntax may be off a bit
hogeo has quit [Remote host closed the connection]
<sedrickc_>
Hi guys, I created my own engine and I want to print out current version of this engine in app where it is mounted. In dummy app in engine I used ENGINE_NAME::VERSION, but in normal app this didn't work. Any help? thanks
jxie has quit [Quit: leaving]
skade has joined #ruby-lang
<ljarvis>
sedrickc_: lets not cross post
charlescooke_ has joined #ruby-lang
hogeo has joined #ruby-lang
wmoxam has quit [Ping timeout: 268 seconds]
hogeo has quit [Remote host closed the connection]
mdedetrich has joined #ruby-lang
ikrima has quit [Quit: Computer has gone to sleep.]
Voker57 has quit [Ping timeout: 245 seconds]
ledestin has quit [Quit: ledestin]
tyman has quit [Quit: tyman]
ssb123 has joined #ruby-lang
jp- has quit [Ping timeout: 268 seconds]
sirupsen has joined #ruby-lang
Voker57 has joined #ruby-lang
solars has quit [Ping timeout: 264 seconds]
<yorickpeterse>
NOOOOOOO, a song I really liked vanished from Soundcloud
<yorickpeterse>
like, I really liked it :<
<yorickpeterse>
yet I can't remember the name
Criztian has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
joshuairl has joined #ruby-lang
fbernier has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<maloik>
Trying to render a bunch of json in a view, in a <code> element... anyone know of an easy way to properly format that using ruby or some kind of gem ?
<maloik>
it's just one long line atm
<lianj>
JSON.generate_pretty
<lianj>
or pretty_generate
<maloik>
really? hah :-) lets see
<lianj>
always mix them up
<maloik>
works like a charm, thanks
<maloik>
had no idea that even existed
scmx has quit [Ping timeout: 264 seconds]
<lianj>
np
antulik has quit [Remote host closed the connection]
ssb123 has quit [Remote host closed the connection]
skade has quit [Remote host closed the connection]
MaddinXx_ has quit [Remote host closed the connection]
sirupsen has quit [Remote host closed the connection]
sirupsen has joined #ruby-lang
ssb123 has joined #ruby-lang
solars has joined #ruby-lang
ssb123 has quit [Ping timeout: 245 seconds]
ikrima has joined #ruby-lang
buranshe has joined #ruby-lang
yatish27 has quit [Read error: Connection reset by peer]
y2k2u has joined #ruby-lang
yatish27 has joined #ruby-lang
yatish27 has quit [Read error: Connection reset by peer]
anonymuse has quit [Remote host closed the connection]
jp- has joined #ruby-lang
breakingthings has joined #ruby-lang
yatish27 has joined #ruby-lang
yatish27 has quit [Read error: Connection reset by peer]
thebastl has joined #ruby-lang
hashkey has quit [Quit: Leaving]
yxhuvud has joined #ruby-lang
scmx has joined #ruby-lang
MaddinXx_ has joined #ruby-lang
thebastl has quit [Remote host closed the connection]
sirupsen has quit [Quit: sirupsen]
thebastl has joined #ruby-lang
yatish27 has joined #ruby-lang
yatish27 has quit [Read error: Connection reset by peer]
yatish27 has joined #ruby-lang
thebastl has quit [Remote host closed the connection]
yatish27 has quit [Read error: Connection reset by peer]
linc01n has joined #ruby-lang
solars has quit [Ping timeout: 248 seconds]
wallerdev has joined #ruby-lang
hashkey has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 248 seconds]
Caius is now known as Ca1us
sirupsen has joined #ruby-lang
Ca1us is now known as Caius
tkuchiki has joined #ruby-lang
charliesome has joined #ruby-lang
solars has joined #ruby-lang
bungoman has joined #ruby-lang
tonni has quit [Remote host closed the connection]
scampbell has joined #ruby-lang
rickruby has quit [Remote host closed the connection]
joshuawscott has joined #ruby-lang
rolfb has quit [Quit: Leaving...]
pipework has quit [Remote host closed the connection]
umgrossco has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
ruby-lang919 has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
rolfb has joined #ruby-lang
<ljarvis>
i am so full
<yorickpeterse>
of dicks?
<maloik>
of shit, of course
<yorickpeterse>
why not both
<ljarvis>
assholes
<ljarvis>
um, not full of assholes, you ARE assholes
<maloik>
:D
<maloik>
I was already typing there..
<ljarvis>
see, proves my point
<maloik>
I could eat some more, but I suppose there'll be very few times when I can't in the next couple months
<maloik>
kinda happens when trying to lose 10kg
<ljarvis>
heh
<ljarvis>
save it for one day a week, I dropped ~15kg in 2 months
<maloik>
save what? fasting ?
<ljarvis>
oh right I read it wrong, but i meant save the indulging to once a week
<maloik>
oh
<maloik>
yea that's kinda the plan
<ljarvis>
:)
<maloik>
plan to have one day / week where I allow myself to have beer, and one day where I try to fast for 24h
<buranshe>
ah like the 5:2 diet ?
<maloik>
only just started though so dunno how that's going to work out
<ljarvis>
make sure you drink lots of water on that fast day
<maloik>
no idea, I just made that up, but apparently fasting is good
<ljarvis>
and when you have the cheat day, do it properly
<maloik>
and I'm also doing that weight watchers thing because I need to track stuff or I'll never manage this
<ljarvis>
i dont mean a beer or two, i mean get trashed and eat cake
<yorickpeterse>
"hurddurr we measure shit in feet and stones"
<ljarvis>
sorry 188cm
<ljarvis>
yorickpeterse: i dont really use stones
<ljarvis>
but ya feet
<yorickpeterse>
you use my feet?
<ljarvis>
ya i use ya feet
<yorickpeterse>
k
<yorickpeterse>
but meh, I'm tiny for Dutch standards
<maloik>
havent read through it all but it seems I'm at exactly the same point
<ljarvis>
tell me in cm like one of your french girls
<maloik>
last winter we went hiking (as in, strap ski's to your pack and walk up a mountain to come down the other side)
<yorickpeterse>
ljarvis: 175cm
<maloik>
and I died a couple times walking up that thing
<ljarvis>
maloik: but then I was about 105kg
<maloik>
while our guide was like smoking while climbing up there, it was insane
<yorickpeterse>
60kg
Boohbah has quit [Ping timeout: 256 seconds]
<ljarvis>
yorickpeterse: my girlfriend is your height
kirin` has quit [Ping timeout: 264 seconds]
<maloik>
so now I'm "fuck that I'm going running" with a couple months left before my next trip
<ljarvis>
maloik: :D
<yorickpeterse>
ljarvis: I could make so many lame jokes now
<yorickpeterse>
but I won't
<ljarvis>
yorickpeterse: agreed
<ljarvis>
and appreciated
<ljarvis>
maloik: meh, running is bad for you
<maloik>
last time I tried going to the gym, but results werent at all what I expected... didnt lose weight and I didn't feel like I was stronger
<maloik>
so I just want to be fitter and lighter now
<yorickpeterse>
maloik: get a bike
<maloik>
should help while climbing
joonty has quit [Quit: WeeChat 0.4.1]
<maloik>
problem with a bike is that the same workout takes longer (thats what it feels like anyway)
<ljarvis>
bike or uphill walking = ta-ra fat
<ljarvis>
you aint going fast enough
<yorickpeterse>
maloik: if you bike to/from work every day that will already help
<yorickpeterse>
Go figure why most Dutch people are pretty fit
<maloik>
I walk to work, takes me 3 minutes and 16 seconds
<maloik>
just saying
<ljarvis>
because of the prostitues
sirupsen has joined #ruby-lang
<ljarvis>
also i cant spell
<yorickpeterse>
well sex *is* a good exercise
<ljarvis>
i walk to work.. from my bedroom to my study
<ljarvis>
takes about 9 seconds
arooni-mobile has joined #ruby-lang
<maloik>
but what you're saying is, a 45min bikeride has the same advantage as a 45min run ?
<yorickpeterse>
My journey involves a 5-10 minute bike ride, depending on how much is disregard safety, a 20 minute train ride and then a 20 minute walk
<yorickpeterse>
It's also pretty normal here for kids to bike to school
<ljarvis>
why dont you take your bike with you on the train?
<yorickpeterse>
even when that's like 20km
arooni-mobile has quit [Max SendQ exceeded]
<yorickpeterse>
ljarvis: too big
<ljarvis>
stop riding a penny farthing
<yorickpeterse>
Only allowed to take regular bikes with you outside of rush hour
<yorickpeterse>
and costs extra money
bf4 has joined #ruby-lang
<ljarvis>
ah
<yorickpeterse>
People actually take their tandem bikes on the train
<yorickpeterse>
or on the subway because they're too lazy to bike one stop
arooni-mobile has joined #ruby-lang
<ljarvis>
damn americans in holland
<yorickpeterse>
Still thinking of biking to/from Amsterdam one day when the weather is nice
<yorickpeterse>
shouldn't take more than an hour or so
<yorickpeterse>
Or maybe walk it, but that would take like 6 hours
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alekst has joined #ruby-lang
wmoxam has joined #ruby-lang
<ljarvis>
heh
<ljarvis>
it would take me 15 hours to walk to london
<yorickpeterse>
takes 6 hours and 11 minutes according to El Google
soba has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby-lang
tomzx_mac has joined #ruby-lang
wallerdev has joined #ruby-lang
nofxx has quit [Ping timeout: 248 seconds]
tkuchiki has joined #ruby-lang
wems has joined #ruby-lang
wudofyr has quit [Read error: Connection reset by peer]
nofxx has joined #ruby-lang
nathanstitt has joined #ruby-lang
wudofyr has joined #ruby-lang
leekiern_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoviola has joined #ruby-lang
joonty has joined #ruby-lang
Saffronique-afk has quit [Ping timeout: 246 seconds]
nathanstitt has quit [Quit: Laters]
relix has joined #ruby-lang
rolfb has quit [Quit: Leaving...]
nathanstitt has joined #ruby-lang
richardburton has joined #ruby-lang
<yorickpeterse>
HAHAHAHA MONGO
siberia has joined #ruby-lang
<yorickpeterse>
So we have this field called "id_on_review_site". Apparently sometimes Mongo thinks its a String, yet other times a Fixnum
<yorickpeterse>
of course when you then try to find fields by that ID it doesn't work
yatish27 has quit [Remote host closed the connection]
<yorickpeterse>
Thus we now have duplicate data, YAY
<yorickpeterse>
fuck you mongo
yatish27 has joined #ruby-lang
yatish27 has quit [Read error: Connection reset by peer]
futile has joined #ruby-lang
yatish27 has joined #ruby-lang
<futile>
Right now I spawn up a short-lived thread for each message I want to send, and throw it over a concurrent-queue to a central thread that communicates over a unix socket. Would it be more efficient to use select() instead?
Saffronique-afk has joined #ruby-lang
rwilcox has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_tockitj has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
[[thufir]] has joined #ruby-lang
ssb123_ has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
robbyoconnor has quit [Quit: Konversation terminated!]
jxie has joined #ruby-lang
loincloth has joined #ruby-lang
<[[thufir]]>
how do I use the event machine telnet API to print the server response to the screen? http://pastebin.com/fHA0Dx7j
bungoman_ has quit [Remote host closed the connection]
bungoman has joined #ruby-lang
Silex has joined #ruby-lang
jxie has quit [Read error: Connection reset by peer]
jxie has joined #ruby-lang
sedrickcz has joined #ruby-lang
rolfb has quit [Ping timeout: 264 seconds]
Bosox20051 has quit [Remote host closed the connection]
Kabaka_ has quit [Remote host closed the connection]
umgrossco has quit [Ping timeout: 268 seconds]
jwoods has quit [Remote host closed the connection]
solars has joined #ruby-lang
Kabaka_ has joined #ruby-lang
jwoods has joined #ruby-lang
tylersmith has joined #ruby-lang
vbatts has quit [Quit: WeeChat 0.3.6]
vbatts has joined #ruby-lang
scmx has quit [Ping timeout: 260 seconds]
solars has quit [Read error: Operation timed out]
jwoods has quit [Remote host closed the connection]
jwoods has joined #ruby-lang
jonahR has joined #ruby-lang
mistym has joined #ruby-lang
jwoods has quit [Remote host closed the connection]
Buranshe is now known as buranshe
jwoods has joined #ruby-lang
jwoods has quit [Remote host closed the connection]
jwoods has joined #ruby-lang
solars has joined #ruby-lang
jwoods has quit [Remote host closed the connection]
jwoods has joined #ruby-lang
jwoods has quit [Client Quit]
phracker has quit [Ping timeout: 240 seconds]
cstrahan has joined #ruby-lang
jwoods has joined #ruby-lang
jwoods has quit [Client Quit]
lfox has quit [Quit: ZZZzzz…]
mmorga has quit [Read error: Connection reset by peer]
mmorga has joined #ruby-lang
benlovell has quit [Ping timeout: 260 seconds]
antulik has joined #ruby-lang
leekiernan has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rikai has quit [Read error: Connection reset by peer]
saarinen has joined #ruby-lang
_jpb_ has quit [Remote host closed the connection]
phracker has joined #ruby-lang
<banisterfiend>
yorickpeterse what does fris mean
killthe|afk is now known as killtheliterate
MaddinXx_ has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 240 seconds]
umgrossco has joined #ruby-lang
Ch00k has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
<ljarvis>
hah method definitions in ruby 2.1 return symbols instead of nil
antulik has quit [Remote host closed the connection]
antulik has joined #ruby-lang
Guest23939 has joined #ruby-lang
Guest23939 is now known as diegoviola
havenwood has quit [Remote host closed the connection]
<apeiros>
ljarvis: yupp, which was long overdue and very nice :)
<apeiros>
DSLs might get more interesting now ^^
havenwood has joined #ruby-lang
<banisterfiend>
decorators might become more a thing now
<banisterfiend>
then again things move very slowly, i don't think anyone is using private constants yet and they've been around for > 1 year
havenwood has quit [Read error: Connection reset by peer]
havenn has joined #ruby-lang
phracker has quit [Ping timeout: 240 seconds]
<banisterfiend>
apeiros do u know the incantation to install 2.1 via dvm? :)
<banisterfiend>
rv*
<banisterfiend>
rvm*
<apeiros>
I usually run rvm stable and wouldn't expect it there. but rvm get head + rvm install ruby-head might do it
<apeiros>
#rvm surely can tell you, though
<apeiros>
banisterfiend: private constants are uninteresting
<apeiros>
especially in ruby
<apeiros>
visibility setting in ruby merely has a documentative character
* xuser
hasn't heard of private constants
<banisterfiend>
apeiros do u feel the same way about private methods?
<apeiros>
yes
<apeiros>
in ruby, that is
<banisterfiend>
well even in c++ you can access private members with a bit of hocus pocus :)
<apeiros>
I don't think it's a bad thing either
Astralum has quit [Ping timeout: 260 seconds]
<apeiros>
babysitting developers is stupid IMO.
skmp1 has quit [Ping timeout: 240 seconds]
skmp has joined #ruby-lang
<banisterfiend>
so you just use documentation to indicate a method is unstable?
iliketur_ has joined #ruby-lang
<apeiros>
banisterfiend: no, I do use the visibility
<apeiros>
but I don't consider it a critical/important feature
<apeiros>
because it could be done by docs alone
sstrickl has joined #ruby-lang
<banisterfiend>
apeiros what use cases do you imagine for method definitions returning symbols
yatish27 has joined #ruby-lang
elia has joined #ruby-lang
<apeiros>
none in my head right now. but I remember that I had ideas. iirc some were along AOP lines.
rolfb has joined #ruby-lang
<yxhuvud>
privateness?
hhatch has joined #ruby-lang
antulik has quit [Remote host closed the connection]
rolfb has quit [Ping timeout: 248 seconds]
Pupeno has quit [Ping timeout: 256 seconds]
ssb123 has quit [Remote host closed the connection]
ssb123 has joined #ruby-lang
<apeiros>
well, that's an obvious one, yes
<apeiros>
private def foo; end # will now be valid
<apeiros>
but I doubt I'll use that
<apeiros>
if I have private methods, it's usually more than one, and then I use standalone private
<apeiros>
I'd still love if there was `private do … end`
hahuang65 has joined #ruby-lang
boytoy has left #ruby-lang [#ruby-lang]
VTLob has joined #ruby-lang
iliketur_ has quit [Quit: zzzzz…..]
iliketur_ has joined #ruby-lang
ssb123 has quit [Ping timeout: 245 seconds]
romain_ has joined #ruby-lang
<banisterfiend>
apeiros one thing that interests me a little bit is implementing overloaded methods, i wanted to do this: dispatch(Fixnum, Integer) def hello(x, y) …; end dispatch(String, String) def hello(x, y) … ; end but i then remembered ruby doesn't support partially applied methods :(
havenn has quit [Remote host closed the connection]
rails_smith has quit [Quit: Leaving.]
<banisterfiend>
you could still do: dispatch(X,Y) { def hello; end; } but that's less pretty
havenwood has joined #ruby-lang
wems has quit [Ping timeout: 268 seconds]
<banisterfiend>
or even dispatch X, Y, def hello..end
<banisterfiend>
but that breaks the illusion that you're using keywords
phracker has joined #ruby-lang
tylersmith has quit [Read error: Connection reset by peer]
<banisterfiend>
apeiros anyway, it does allow you to get rid of a lot of method_added stuff
tylersmith has joined #ruby-lang
<banisterfiend>
instead of using method_added hook, you could just define a class-level method that you stick in front of the method definition
<apeiros>
mhm
* apeiros
got to commute
<apeiros>
cya guys
apeiros has quit [Remote host closed the connection]
sedrickcz has quit [Remote host closed the connection]