skade has quit [Quit: Computer has gone to sleep.]
<injekt>
I think I've changed the docs a little on head which is why i pointed there instead of the actual docs as i've written more since they were last updated
benlovell has joined #ruby-lang
<injekt>
which reminds me.. really need to release
thebastl has joined #ruby-lang
dr_bob1 is now known as dr_bob
gnufied has joined #ruby-lang
sepp2k has joined #ruby-lang
datanoise has quit [Ping timeout: 258 seconds]
islander has joined #ruby-lang
barttenbrinke has joined #ruby-lang
jigfox has joined #ruby-lang
<injekt>
manveru: are you still at iron?
psycho_one has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
maxmanders has joined #ruby-lang
jg has joined #ruby-lang
Vektur has quit [Ping timeout: 245 seconds]
hasimo has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
xxaM has quit [Quit: ZzZz]
Axsuul has quit [Ping timeout: 246 seconds]
skade has joined #ruby-lang
alessio_rocco has joined #ruby-lang
islander has quit [Remote host closed the connection]
simi has quit [Ping timeout: 264 seconds]
noop has quit [Ping timeout: 245 seconds]
JohnBat26 has joined #ruby-lang
blacktulip has joined #ruby-lang
security has quit [Ping timeout: 255 seconds]
gnufied has quit [Quit: Leaving.]
security has joined #ruby-lang
adambeynon has joined #ruby-lang
skade has quit [Read error: Connection reset by peer]
marr has joined #ruby-lang
marr has quit [Client Quit]
hasimo has joined #ruby-lang
dcwu has quit [Quit: Leaving.]
chendo_ has quit [Ping timeout: 264 seconds]
noop has joined #ruby-lang
gnufied has joined #ruby-lang
beho has quit [Remote host closed the connection]
chendo_ has joined #ruby-lang
skade has joined #ruby-lang
judofyr has joined #ruby-lang
<yorickpeterse>
morning
<judofyr>
morning
beiter has joined #ruby-lang
sush24 has quit [Quit: Leaving]
blacktulip has quit [Remote host closed the connection]
blacktulip has joined #ruby-lang
datanoise has joined #ruby-lang
wallclockbuilder has joined #ruby-lang
<apeiros_>
möin
beho has joined #ruby-lang
r0bby has joined #ruby-lang
datanoise has quit [Ping timeout: 255 seconds]
wallclockbuilder has quit [Read error: Connection reset by peer]
jayne_ has joined #ruby-lang
hagebake has joined #ruby-lang
<injekt>
moin
wallclockbuilder has joined #ruby-lang
<injekt>
judofyr: I think sequel won the showdown
<judofyr>
\o/
<injekt>
well, it looks wayyyy nicer
babinho_ has joined #ruby-lang
eam_ has joined #ruby-lang
benlovel_ has joined #ruby-lang
dumfries_ has joined #ruby-lang
Kuukunen- has joined #ruby-lang
jtoy_ has joined #ruby-lang
hasimo has quit [Remote host closed the connection]
<judofyr>
injekt: I like how Sequel doesn't try to create a whole new abstraction on top of SQL
<injekt>
yeah
<judofyr>
injekt: in ARel I feel I must (1) know the SQL I want and (2) know the ARel abstraction
<judofyr>
although I guess they aim for you to only know about (2)…
<injekt>
judofyr: that's exactly how i felt yesterday, with sequel i just wrote the sql in ruby and everything kinda worked
<injekt>
I didn't refer to docs, i pinged jeremy but then just tried it myself and it sort of just worked
<judofyr>
injekt: this is also how I feel a bit about DM2
<judofyr>
and the whole relational algebra engine
<injekt>
judofyr: I've never used dm, I never liked how it was all separate
meizaps_ has joined #ruby-lang
* apeiros_
no like ORM
mixandgo has joined #ruby-lang
<judofyr>
I should probably finish my meta-ORM
<apeiros_>
for simple cases it looks always nice. but for any reasonably complex system, it becomes a disadvantage in about every regard IMO
<judofyr>
it will be awesome1
<injekt>
these orms are all pretty much bloated though I guess, they do way more than an orm should do in simple terms
benlovell has quit [*.net *.split]
jayne has quit [*.net *.split]
dumfries has quit [*.net *.split]
robbyoconnor has quit [*.net *.split]
pasties has quit [*.net *.split]
jtoy has quit [*.net *.split]
eam has quit [*.net *.split]
hagabaka has quit [*.net *.split]
babinho has quit [*.net *.split]
Kuukunen has quit [*.net *.split]
eban has quit [*.net *.split]
randym has quit [*.net *.split]
meizaps has quit [*.net *.split]
<injekt>
or 'could do' i guess
<injekt>
apeiros_: yeah that's what I've noticed this week
<injekt>
the query isn't really even that advanced
<injekt>
it's just one subquery
pepper_chico has quit [Quit: Computer has gone to sleep.]
<apeiros_>
injekt: I made good experiences with using views and read-only models to hide DB/data complexity
techlife has quit [Ping timeout: 252 seconds]
<apeiros_>
I think it'd even be possible to have "write-through" views, which allow read/write models on views too
hasimo has joined #ruby-lang
hasimo has quit [Remote host closed the connection]
<apeiros_>
and I have by now done it both ways - use views to show only part of a huge table (since separating it out into multiple made no sense - but validations/workflows demanded multiple models)
hasimo has joined #ruby-lang
<apeiros_>
and views to have complex joins over multiple tables
<apeiros_>
or with subselects for certain fields
hasimo has quit [Remote host closed the connection]
<apeiros_>
or even aggregate views (lag - awesome function)
skade has quit [Ping timeout: 264 seconds]
hasimo has joined #ruby-lang
hasimo has quit [Read error: Connection reset by peer]
eban has joined #ruby-lang
techlife has joined #ruby-lang
hasimo has joined #ruby-lang
GarethAdams has joined #ruby-lang
dcwu has joined #ruby-lang
wallclockbuilder has quit [Ping timeout: 248 seconds]
wallclockbuilder has joined #ruby-lang
tms has joined #ruby-lang
tms has left #ruby-lang [#ruby-lang]
nkr has joined #ruby-lang
skade has joined #ruby-lang
randym has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
shirokuro11 has joined #ruby-lang
skade has quit [Read error: Connection reset by peer]
security has quit [Quit: WeeChat 0.4.0]
jg has quit [Ping timeout: 258 seconds]
baba has joined #ruby-lang
baba is now known as Guest13870
Guest13870 has quit [Client Quit]
dcwu has quit [Read error: Connection reset by peer]
<darix>
moin
<darix>
injekt: you are back to the topic from yesterday?
tbuehlmann has quit [Quit: Quitting.]
<darix>
apeiros_: at least in pgsql you can have triggers that intercept the write to the view and rewrite the query to the other tables
brianpWins has quit [Quit: brianpWins]
<apeiros_>
hm, I've never explored it, but I think oracle can do that automatically for you
<apeiros_>
would be sad if there's a thing which oracle does better than pg :-/
io_syl has quit [Ping timeout: 252 seconds]
hasimo has quit [Remote host closed the connection]
r0bby_ has joined #ruby-lang
<darix>
apeiros_: i am not sure that pg wants to be as good as oracle at ruining opensource projects. ;)
<apeiros_>
(I might be mistaken, though. as said I've never explored it)
<darix>
some some things you just have to give them credits.
<darix>
s/some some/for some/
<apeiros_>
I don't see how a transparent view is ruining OS projects…
<darix>
apeiros_: you didnt get the joke :p
io_syl has joined #ruby-lang
<apeiros_>
nope, still don't
r0bby has quit [Ping timeout: 252 seconds]
fire has joined #ruby-lang
francisfish has joined #ruby-lang
realDAB has joined #ruby-lang
nXqd has quit [Quit: leaving]
<injekt>
:)
nXqd has joined #ruby-lang
vlad_starkov has joined #ruby-lang
tsou has quit [Remote host closed the connection]
cultureulterior_ has joined #ruby-lang
skade has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
codejury_ has joined #ruby-lang
postmodern has quit [Quit: Leaving]
<nXqd>
hi guys is there any method which is alternative for present? which just returns false if the upper array is not available
<injekt>
'upper array'? also present? isn't a Ruby method, it's added by active support
<nXqd>
for example : params[:user][:id].present? will raise an error if :user is not available
<nXqd>
is there any alternative method that just return false instead ?
<injekt>
nXqd: no, params[:user] and params[:user][:id].present? or params[:user].try(:[], :id)
<injekt>
or Hash[params[:user]][:id].present? (or if you're on Ruby 2.0: params[:user].to_h[:id].present?)
<nXqd>
hat downs ! :)
<nXqd>
does try return only true and false ?
<injekt>
no it returns nil or the method return
<nXqd>
i'm new to ruby what is method return. what will it return when [:user][:id] available ?
<injekt>
nXqd: params[:user].try(:[], :id) will return params[:user][:id] if it exists, else nil
<injekt>
it will not raise an exception like I presume it's doing now
skade has quit [Ping timeout: 245 seconds]
<nXqd>
thanks injekt.
<injekt>
[] is just a method on Hash, params is a (custom hash like object that rails creates), so [:user] is doing hash.[](:user)
techlife has quit [Ping timeout: 264 seconds]
shirokuro11 has quit [Ping timeout: 272 seconds]
skade has joined #ruby-lang
S1kx has quit [Ping timeout: 252 seconds]
S1kx has joined #ruby-lang
S1kx has quit [Changing host]
S1kx has joined #ruby-lang
toretore has joined #ruby-lang
<nXqd>
param_id = params[:user].try(:[], :id) <newline> if params_id do .. end
<nXqd>
is there anything like
<nXqd>
if param_id = params[:user].try(:[], :id) do .. end
<injekt>
yes
<nXqd>
great
<injekt>
if x do; is invalid ruby, though
<injekt>
well.. heh
<nXqd>
okay without do* my mistake
<nXqd>
more love for the minimal syntax :P
Guedes has joined #ruby-lang
Guedes has joined #ruby-lang
tsou has joined #ruby-lang
codejury_ is now known as codejury
<nXqd>
but should I create a small little method
<injekt>
yeah, personally I'd avoid try in this sense because I think confusing at first look
<injekt>
if params[:user] and user_id = params[:user][:id]
<injekt>
is probably how I'd write it
<darix>
doesnt activesupport give such a .try method?
<injekt>
darix: yes do you never scroll back?
<nXqd>
which is called is_available_user_id or just let it be
<darix>
injekt: not far enough it seems:p
<injekt>
nXqd: you use it that often?
<nXqd>
one time for sure
<injekt>
I think you need to refactor in general
<injekt>
i see code smells already
<nXqd>
thanks injekt, I want to talk a little bit more about this after having lunch now :P but it's great to have your help
tbuehlmann has joined #ruby-lang
<nXqd>
because sometimes I'm a bit confused
<nXqd>
when to create another function
<injekt>
nXqd: no problem, you might want to move your questions to #ror as the rails channel is a little more specific for your questions
<nXqd>
which makes it more understandable [ without writing comment ] or when it's used in multiple places
skade has quit [Quit: Computer has gone to sleep.]
Wildhoney has joined #ruby-lang
techlife has joined #ruby-lang
retro|cz has joined #ruby-lang
datanoise has joined #ruby-lang
bluepojo has joined #ruby-lang
ioga_wrk has quit [Ping timeout: 240 seconds]
S2kx has joined #ruby-lang
datanoise has quit [Ping timeout: 276 seconds]
S1kx has quit [Ping timeout: 255 seconds]
retro|cz is now known as simi
benlovel_ is now known as benlovell
beiter has quit [Quit: beiter]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
jonahR has joined #ruby-lang
Guedes has quit [Remote host closed the connection]
Domon has quit [Remote host closed the connection]
S3kx has joined #ruby-lang
havenwood has quit [Ping timeout: 260 seconds]
Guedes has joined #ruby-lang
Guedes has quit [Changing host]
Guedes has joined #ruby-lang
Bartov has joined #ruby-lang
S2kx has quit [Ping timeout: 258 seconds]
Bartov has left #ruby-lang [#ruby-lang]
wobblini has joined #ruby-lang
jonahR has quit [Quit: jonahR]
skade has joined #ruby-lang
jonahR has joined #ruby-lang
wallcloc_ has joined #ruby-lang
wallclockbuilder has quit [Ping timeout: 258 seconds]
psycho_one has quit [Remote host closed the connection]
jonahR has quit [Quit: jonahR]
realDAB has quit [Quit: realDAB]
gnufied1 has joined #ruby-lang
gnufied has quit [Ping timeout: 252 seconds]
bluepojo has quit [Read error: Connection reset by peer]
bluepojo has joined #ruby-lang
realDAB has joined #ruby-lang
wobblini has quit [Ping timeout: 252 seconds]
sebasoga has joined #ruby-lang
kentos has quit [Ping timeout: 252 seconds]
thebastl has quit [Remote host closed the connection]
benlovell has quit [Quit: Computer has gone to sleep.]
barttenbrinke has quit [Remote host closed the connection]
hasimo has joined #ruby-lang
dustint has quit [Remote host closed the connection]
carloslopes has joined #ruby-lang
<yorickpeterse>
heh, co-workers got bitten by Ruby's pre-scanning for variable assignments
kentos has joined #ruby-lang
<yorickpeterse>
Fun to explain that that's a "feature" and not a bug
barttenbrinke has joined #ruby-lang
s1n4 has joined #ruby-lang
<rking>
yorickpeterse: Hrm. The feature being the way local scopes work?
<yorickpeterse>
The code was a bit more complex but basically there was reader X and a local variable created with the same name, this conflicted and threw a "undefined method blabla on NilClass"
<yorickpeterse>
If you've never seen that before that's one big omgwtfbbq
<rking>
But if it acted differently, wouldn't it be like: if cond; x = 1 end; x.hihi # 'x' would be inaccessible outside the block if there wasn't some "promote outside this block" rule
<yorickpeterse>
conditions/statements don't create a new scope
<rking>
Well, actually, I'm not sure I can justify why local_variables needs to do it there
mistym has joined #ruby-lang
<rking>
Is it just an implementation detail that it pre-scans?
<yorickpeterse>
During parsing it prescans code for assignments
<yorickpeterse>
Yeah
<yorickpeterse>
interesting sidenote: Ripper's output does not contain information that suggests this
<yorickpeterse>
it just returns the variables as @ident nodes
dustint has joined #ruby-lang
<rking>
Hrm
scampbell has joined #ruby-lang
<yorickpeterse>
Ha, this is one of the things I should show to people on Euroko if I ever get around making a proposal
<yorickpeterse>
"HAI MY NAME IS YORICK. DO YOU THINK YOU KNOW RUBY? BRRZZT< WRONG"
<rking>
Those kinds of talks are fun/popular and also useful. You've seen Gary Bernhardt's 'wat' one, right?
mistym has quit [Remote host closed the connection]
<rking>
Actually, I think you really should publish your list in some form or another. I'm sure you've discovered some stuff that would take the rest of us longer to find (and longer to realize what's happening once we do find it)
kurko__ has joined #ruby-lang
kurko__ has quit [Max SendQ exceeded]
kurko__ has joined #ruby-lang
<yorickpeterse>
Well I do plan to speak on Euruko, I'm just waiting for the CFP to open
<rking>
Cool.
workmad3 has joined #ruby-lang
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has quit [Remote host closed the connection]
realDAB has quit [Quit: realDAB]
Honeycomb has quit [Quit: Leaving.]
cupakromer has joined #ruby-lang
wmoxam has joined #ruby-lang
mistym has joined #ruby-lang
mistym has joined #ruby-lang
breakingthings has joined #ruby-lang
nkr has quit [Ping timeout: 252 seconds]
nkr has joined #ruby-lang
hasimo has quit [Remote host closed the connection]
benlovell has joined #ruby-lang
sush24 has joined #ruby-lang
hachiya_ has left #ruby-lang [#ruby-lang]
hasimo has joined #ruby-lang
hachiya has joined #ruby-lang
Wildhoney has quit [Ping timeout: 252 seconds]
Wildhoney has joined #ruby-lang
Guest90984 has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 246 seconds]
nyuszika7h has quit [Quit: Here we are, going far to save all that we love - If we give all we've got, we will make it through - Here we are, like a star shining bright on your world - Today, make evil go away!]
nyuszika7h has joined #ruby-lang
nyuszika7h has quit [Client Quit]
nyuszika7h has joined #ruby-lang
rsl has joined #ruby-lang
hasimo has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
dustint has quit [Remote host closed the connection]
dustint has joined #ruby-lang
vlad_starkov has joined #ruby-lang
hasimo has joined #ruby-lang
publicvoid has joined #ruby-lang
rippa has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
jg has joined #ruby-lang
tbuehlmann has quit [Quit: Quitting.]
anonymuse has joined #ruby-lang
Wildhoney has quit [Ping timeout: 276 seconds]
datanoise has joined #ruby-lang
Wildhoney has joined #ruby-lang
hasimo has quit [Remote host closed the connection]
Swimming_Bird has quit [Quit: Computer has gone to sleep.]
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
solars has quit [Ping timeout: 252 seconds]
mbull9 has joined #ruby-lang
fragamus has joined #ruby-lang
shirokuro11 has joined #ruby-lang
<mehwork>
how come if use the command-line 'gem install tzinfo-0.3.37' it says it can't find it in the sources, but if i put that in a Gemfile and run 'bundle install' it finds it?
<mehwork>
the only thing i can think of is that the gem command-line isn't using rubygems.org as a source, but how can i tell if it is or not?
<Mon_Ouie>
Because you put the version in the name of the gem probably
<Mon_Ouie>
gem install thing -v 0.3.37
<mehwork>
hmm! ok let's me see
akamike has left #ruby-lang [#ruby-lang]
<mehwork>
yep that was it. Thank's so much
joevandyk has quit [Quit: joevandyk]
GarethAdams has quit [Quit: Leaving...]
nXqd_ has quit [Ping timeout: 255 seconds]
judofyr has quit [Remote host closed the connection]
znz_jp has quit [Ping timeout: 240 seconds]
tylersmith has joined #ruby-lang
Swimming_Bird has joined #ruby-lang
Swimming_Bird has quit [Max SendQ exceeded]
GarethAdams has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
amerine has joined #ruby-lang
Swimming_Bird has joined #ruby-lang
Swimming_Bird has quit [Max SendQ exceeded]
Swimming_Bird has joined #ruby-lang
Swimming_Bird has quit [Max SendQ exceeded]
znz_jp has joined #ruby-lang
Swimming_Bird has joined #ruby-lang
a_black_develope has quit [Remote host closed the connection]
tenderlove has quit [Remote host closed the connection]
__Big0__ has joined #ruby-lang
tenderlo_ has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby-lang
apeiros_ has joined #ruby-lang
tenderlo_ is now known as tenderlove
benlovell has quit [Quit: Computer has gone to sleep.]
francisfish has quit [Ping timeout: 258 seconds]
skade has quit [Quit: Computer has gone to sleep.]
havenwood has quit [Remote host closed the connection]
kith_ has joined #ruby-lang
mwjcomputing has joined #ruby-lang
kith has quit [Ping timeout: 248 seconds]
rippa has quit [Read error: Connection reset by peer]
rippa has joined #ruby-lang
Stilo has joined #ruby-lang
dc5ala has joined #ruby-lang
bluepojo has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
bluepojo has joined #ruby-lang
bluepojo has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Ping timeout: 252 seconds]
baba has joined #ruby-lang
fire has quit [Ping timeout: 255 seconds]
gregmoreno has joined #ruby-lang
dhruvasagar has joined #ruby-lang
tonni has quit [Remote host closed the connection]
skade has joined #ruby-lang
baba has quit [Quit: WeeChat 0.4.0]
beho has quit [Ping timeout: 260 seconds]
vlad_sta_ has quit [Remote host closed the connection]
rippa has quit [Read error: Connection reset by peer]
gearaholic has joined #ruby-lang
carloslopes has joined #ruby-lang
jonahR has quit [Quit: jonahR]
gearaholic has quit [Client Quit]
Axsuul has joined #ruby-lang
rippa has joined #ruby-lang
gearaholic has joined #ruby-lang
sepp2k has joined #ruby-lang
gearaholic has quit [Client Quit]
dhruvasagar has quit [Read error: Operation timed out]
marr has quit []
cstrahan has quit [Ping timeout: 246 seconds]
brianpWins has joined #ruby-lang
tylersmith has quit [Quit: tylersmith]
tonni has joined #ruby-lang
tylersmith has joined #ruby-lang
gearaholic has joined #ruby-lang
brianpWins has quit [Client Quit]
breakingthings has quit []
srbaker has quit [Ping timeout: 252 seconds]
realDAB has joined #ruby-lang
gearaholic has quit [Client Quit]
francisfish has joined #ruby-lang
rippa has quit [Ping timeout: 240 seconds]
tbuehlmann has quit [Remote host closed the connection]
jonahR has joined #ruby-lang
Randroid has joined #ruby-lang
swav has quit [Remote host closed the connection]
mwjcomputing has quit [Ping timeout: 245 seconds]
GarethAdams has quit [Quit: Leaving...]
headius has joined #ruby-lang
gearaholic has joined #ruby-lang
jigfox has quit [Quit: jigfox]
gearaholic has quit [Remote host closed the connection]
rippa has joined #ruby-lang
scampbell has quit [Ping timeout: 240 seconds]
asdfqwer has quit [Ping timeout: 258 seconds]
soypirate has quit [Ping timeout: 258 seconds]
gnufied has quit [Quit: Leaving.]
bantic has quit [Quit: bantic]
dhruvasagar has joined #ruby-lang
havenwood has joined #ruby-lang
barttenbrinke has quit [Remote host closed the connection]
grough has joined #ruby-lang
grough has left #ruby-lang [#ruby-lang]
ddfreyne has quit [Excess Flood]
ddfreyne has joined #ruby-lang
melter has quit [Ping timeout: 245 seconds]
scampbell has joined #ruby-lang
barttenbrinke has joined #ruby-lang
ddfreyne has quit [Excess Flood]
ddfreyne has joined #ruby-lang
Swimming_Bird has quit [Quit: Computer has gone to sleep.]
martynas has joined #ruby-lang
martynas is now known as Guest80370
shirokuro11 has quit [Remote host closed the connection]
ryanf has quit [Quit: leaving]
mbull9 has quit [Remote host closed the connection]
mbull9 has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
maxmanders has joined #ruby-lang
madish has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
realDAB has quit [Quit: realDAB]
melter has joined #ruby-lang
tbuehlmann has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
brianpWins has joined #ruby-lang
sush24 has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
kgrz has quit [Quit: Computer has gone to sleep.]
headius has quit [Quit: headius]
outoftime has joined #ruby-lang
davidbalbert is now known as davidbalber|away
<outoftime>
anyone got a favorite (free) resource for an experienced programmer who is new to ruby?
maxmanders has quit [Quit: Computer has gone to sleep.]
breakingthings has joined #ruby-lang
barttenbrinke has quit [Remote host closed the connection]
jonahR_ has joined #ruby-lang
skade has quit [Ping timeout: 252 seconds]
randallagordon has quit [Quit: leaving]
skade has joined #ruby-lang
jonahR has quit [Ping timeout: 255 seconds]
jonahR_ is now known as jonahR
<ddd>
iwanttolearnruby.com
<ddd>
craploads for both ruby, and the rails framework (when you're ready/willing to look into that). most of whats there isn't rails specific/related
sush24 has quit [Quit: This computer has gone to sleep]
vlad_starkov has joined #ruby-lang
havenwood has joined #ruby-lang
intellitech has joined #ruby-lang
fragamus has quit [Ping timeout: 248 seconds]
torrieri has joined #ruby-lang
cultureulterior_ has quit [Quit: cultureulterior_]
francisfish has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 245 seconds]
thejspr_ has quit [Ping timeout: 256 seconds]
cultureulterior_ has joined #ruby-lang
guilleiguaran_ has quit [Ping timeout: 260 seconds]
L0rdShrek____ has quit [Ping timeout: 245 seconds]
herpless has quit [Ping timeout: 245 seconds]
bpot has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Ping timeout: 276 seconds]
grandy has quit [Ping timeout: 240 seconds]
UziMonkey has quit [Ping timeout: 256 seconds]
Spaceghost|cloud has quit [Ping timeout: 264 seconds]
beawesomeinstead has quit [Ping timeout: 240 seconds]
bluepojo has joined #ruby-lang
tonni has quit [Remote host closed the connection]
srbaker has quit [Quit: Computer has gone to sleep.]
joevandyk has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
breakingthings has joined #ruby-lang
francisfish has joined #ruby-lang
jigfox has joined #ruby-lang
nXqd has joined #ruby-lang
headius has joined #ruby-lang
cultureulterior_ has joined #ruby-lang
dhruvasagar has joined #ruby-lang
cultureulterior_ has quit [Client Quit]
banisterfiend has quit [Ping timeout: 245 seconds]
headius has quit [Ping timeout: 252 seconds]
srbaker has joined #ruby-lang
mwjcomputing has joined #ruby-lang
headius has joined #ruby-lang
t_ has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 245 seconds]
realDAB has joined #ruby-lang
wallclockbuilder has joined #ruby-lang
guilleiguaran_ has joined #ruby-lang
banisterfiend has joined #ruby-lang
pepper_chico has joined #ruby-lang
r0bby_ has joined #ruby-lang
Axsuul has joined #ruby-lang
scampbell has quit [Remote host closed the connection]
skade has quit [Ping timeout: 240 seconds]
mbull9_ has joined #ruby-lang
chrismar035 has quit [Quit: chrismar035]
barttenbrinke has joined #ruby-lang
__butch__ has joined #ruby-lang
chrismar035 has joined #ruby-lang
wallclockbuilder has quit [Remote host closed the connection]
mbull9 has quit [Ping timeout: 252 seconds]
francisfish has quit [Remote host closed the connection]
<joevandyk>
is there something in the stdlib (or in activesupport) that let's me easily get the "the last 5 pm" or "the next 7 pm"? Or should I roll my own function?
davidbalber|away is now known as davidbalbert
cupakromer has left #ruby-lang [#ruby-lang]
psycho_one has quit [Remote host closed the connection]
barttenbrinke has quit [Ping timeout: 276 seconds]
skade has joined #ruby-lang
<yorickpeterse>
Sometimes I wish there was a compiled, object oriented language with a sane syntax
<yorickpeterse>
sometimes I also wish I could ride a unicorn
<darix>
yorickpeterse: well something like CoffeeC?
francisfish has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
fragamus has joined #ruby-lang
<whitequark>
yorickpeterse: like... foundry? :D
<darix>
whitequark: link?
<yorickpeterse>
darix: don't tell me that exists
<darix>
yorickpeterse: i dont know
<yorickpeterse>
whitequark: well yeah, once it's out and I can start writing bindings for it
<yorickpeterse>
I'd abuse it on anything but embedded hardware
<darix>
yorickpeterse: also ... mirah comes to mind
<darix>
could probably do something similar with llvm as backend instead of the jvm
skade has quit [Read error: Connection reset by peer]
<yorickpeterse>
isn't Erlang super slow to start up?
<yorickpeterse>
at least from what I've read
<darix>
yorickpeterse: who cares about start up. just dont shut your system down :p
<whitequark>
yorickpeterse: JUST LIKE RAILS
znz_jp has quit [Quit: kill -QUIT $$]
<whitequark>
also there's bare-metal erlang iirc, on xen
<darix>
you can do live code changing in erlang
<whitequark>
darix: under certain circumstances
Ridders24 has joined #ruby-lang
drumond19 has quit [Remote host closed the connection]
znz_jp has joined #ruby-lang
<yorickpeterse>
whitequark: of course the question remains, is Foundry webscale?
skade has joined #ruby-lang
Honeycomb has joined #ruby-lang
<whitequark>
yorickpeterse: I plan to write a mongodb backend
<yorickpeterse>
get out
<whitequark>
it will have sharding
<yorickpeterse>
k, I'll write a Node.js adapter
* whitequark
slaps yorickpeterse around a bit with a large trout
<yorickpeterse>
"a bit" that's it?
<whitequark>
yes.
<whitequark>
nodejs doesn't deserve more.
<yorickpeterse>
I'm so glad we don't use i...oh fuck we do
<yorickpeterse>
Because fucking Hubot runs it
<whitequark>
hubot is meh
<whitequark>
but there's etherpad and etherpad lite
soypirate has joined #ruby-lang
<whitequark>
one is nodejs. the other one is Scala and something so heavy for the storage that my server OOMs even before I hit <enter> on the start command
<yorickpeterse>
I like the part where Hubot is written in Node but still blocks when you do "heavy" tasks
<whitequark>
isn't that the whole point of node?
<whitequark>
to have concurrency even worse than in ruby?
<Ridders24>
Does anyone have any experience with Anemome?
<yorickpeterse>
what exactly are you having trouble with?
herpless_ has joined #ruby-lang
mwjcomputing has quit [Quit: Leaving]
barttenbrinke has joined #ruby-lang
<Ridders24>
on its website it states "Anemone will only crawl pages from the same domain as the start URL" meaning that if another website url is on the webpage it won't start crawling that one?
havenn_ has quit [Remote host closed the connection]
L0rdShrek____ has joined #ruby-lang
Spaceghost|cloud has joined #ruby-lang
UziMonkey has joined #ruby-lang
grandy has joined #ruby-lang
kgrz has quit [Quit: Computer has gone to sleep.]
<darix>
hmm what's the advantage over using mechanize?
bpot has joined #ruby-lang
swav has joined #ruby-lang
beawesomeinstead has joined #ruby-lang
<yorickpeterse>
Ridders24: basically it means that if the hostname is "a.com" it will not crawl URLs such as "b.com", "b.com/foo", etc
<yorickpeterse>
darix: it uses Mechanize I believe
<darix>
yorickpeterse: no
<darix>
from a glance it doesnt
<Ridders24>
yorickpeterse: even if a url from b.com is present on a.com ?
<yorickpeterse>
Ah. Well, as far as I know Mechanize would require you to extract URLs yourself, loop through them, store them, etc
barttenbrinke has quit [Ping timeout: 276 seconds]
<yorickpeterse>
Ridders24: yes
<yorickpeterse>
Basically what it means is "I will not leave domain a.com"
<yorickpeterse>
At least that's what I'd expect
<Ridders24>
yorickpeterse: can i change that ?
<darix>
Ridders24: you have the code
<yorickpeterse>
I'm afraid I have no idea
miquella has quit [Read error: Connection reset by peer]
MehLaptop has quit [Remote host closed the connection]
<Ridders24>
darix: I don't see any rule in the code that stays stay within with domain
realDAB has quit [Quit: realDAB]
torrieri has quit [Quit: Leaving...]
enebo has joined #ruby-lang
thejspr_ has joined #ruby-lang
wizonesolutions has quit [Ping timeout: 245 seconds]
<joevandyk>
How hard would it be to write an extension that let me make and restore a snapshot of a database? (without needing to create a new database?) Say it worked like "select snapshot.make('label')" and "select snapshot.restore('label')"
<joevandyk>
would be handy when running hundreds of tests against a database where you want to restore the data each time.
rippa has quit [Ping timeout: 240 seconds]
<joevandyk>
oops, wrong channel
wizonesolutions has joined #ruby-lang
jerrytgarcia has quit [Read error: Connection reset by peer]
<yorickpeterse>
I really, really need to auto generate at least the method declarations and such
forrest has quit [Quit: Leaving]
kentos has joined #ruby-lang
setmeaway has quit [Read error: Connection reset by peer]
setmeaway has joined #ruby-lang
tomzx_mac has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 246 seconds]
wmoxam has quit [Ping timeout: 264 seconds]
Mon_Ouie has joined #ruby-lang
<andrewvos>
`gem install pope`
<adam12>
lol
breakingthings has quit []
<whitequark>
yorickpeterse: didn't diamondback ruby contain a type-annotated reference of most stdlib methods?
brianpWins has joined #ruby-lang
jmeeuwen has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby-lang
<ryanf>
zenspider: hey, how come ZenTest is a runtime dependency of RubyInline?
wnd has quit [Excess Flood]
jmeeuwen has joined #ruby-lang
wnd has joined #ruby-lang
<drbrain>
ryanf: name conversion from C to ruby
skade has joined #ruby-lang
blacktulip has quit [Remote host closed the connection]
bantic has quit [Quit: bantic]
blacktulip has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 252 seconds]
blacktulip has quit [Ping timeout: 256 seconds]
srbaker has quit [Ping timeout: 252 seconds]
srbaker has joined #ruby-lang
pepper_chico has joined #ruby-lang
pepper_chico has quit [Max SendQ exceeded]
lcdhoffman has joined #ruby-lang
pepper_chico has joined #ruby-lang
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby-lang
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby-lang
pepper_chico has quit [Max SendQ exceeded]
headius has joined #ruby-lang
dustint has quit [Quit: Leaving]
pepper_chico has joined #ruby-lang
mixandgo has quit [Quit: mixandgo]
torrieri has quit [Ping timeout: 252 seconds]
jmeeuwen has quit [Ping timeout: 260 seconds]
__butch__ has quit [Quit: Leaving.]
<ryanf>
drbrain: thanks
Ridders24 has quit [Quit: Leaving]
wmoxam has joined #ruby-lang
mistym has quit [Remote host closed the connection]
jmeeuwen has joined #ruby-lang
randallagordon has joined #ruby-lang
r0bby_ is now known as robbyoconnor
jerrytgarcia has joined #ruby-lang
jerrytgarcia has quit [Read error: Connection reset by peer]
alessio_rocco has quit [Remote host closed the connection]
jerrytgarcia has joined #ruby-lang
swav has quit [Remote host closed the connection]
blacktulip has joined #ruby-lang
enebo has quit [Quit: enebo]
mixandgo has joined #ruby-lang
dostoyevsky has joined #ruby-lang
<dostoyevsky>
Hey, I have released a gem in the past and want to release a new version but the last time I've done this was some years ago and I did it on rubyforge.org... how would I do it today? Any hints?
<apeiros_>
dostoyevsky: gem push your.gem
<dostoyevsky>
how does it know that I am the author of the gem and can push a new version?
<apeiros_>
you need your rubyforge credentials
<apeiros_>
from back then
<dostoyevsky>
Ah, ok
<apeiros_>
tbh, I barely remember. I made my setup like ages ago.
<apeiros_>
and now I never need anything beyond `gem push` :)
MehLaptop has quit [Remote host closed the connection]
<brianpWins>
Anyone know where the Symbol implementation is for ruby? (side not the c files in ruby-docs are broken)
<brianpWins>
s/not/note
davidbalbert is now known as davidbalber|away
<brianpWins>
Specifically my interest is learning where/how it gets instantiated and allocated etc.
martynas has joined #ruby-lang
martynas is now known as Guest31807
vlad_starkov has joined #ruby-lang
blacktulip has quit [Ping timeout: 260 seconds]
<apeiros_>
brianpWins: a couple of it is in string.c
<brianpWins>
apeiros_: with ruby-docs being broken where is the best place for me to peruse that file? Could I find it in the ruby install on my system?
<apeiros_>
depends on how you installed it
<apeiros_>
else ruby's github or svn
pepper_chico has joined #ruby-lang
pepper_chico has quit [Max SendQ exceeded]
<brianpWins>
apeiros_: well that was easy lol. Why i didn't think to check github i have no idea. Thanks =D
pepper_chico has joined #ruby-lang
<zenspider>
brianpWins: it's all in string.c
pepper_chico has quit [Max SendQ exceeded]
<zenspider>
if you want to spelunk in the depths of ruby, you should have a checkout
<apeiros_>
brianpWins: (re: why didn't I think) or ruby-lang.org ;-p
<zenspider>
or at least a tarball
<apeiros_>
(incredible, but it links the source!)
<brianpWins>
ruby-lang is broken.
<brianpWins>
all the source file links are down
<apeiros_>
and damn you time! when did you fly by that fast?
pepper_chico has joined #ruby-lang
pepper_chico has quit [Max SendQ exceeded]
<zenspider>
also, exuberant c tags to tag and navigate the source
<zenspider>
brianpWins: github.com/ruby/ruby
<apeiros_>
brianpWins: works fine here
<apeiros_>
brianpWins: behind proxy?
<zenspider>
I suggest you clone with a depth 0
<brianpWins>
apeiros_: strange. yeah maybe it's my connection
pepper_chico has joined #ruby-lang
pepper_chico has quit [Max SendQ exceeded]
pepper_chico has joined #ruby-lang
<brianpWins>
zenspider: thanks. I check out exuberant. I haven't spent any time in c so it's all new to me
<zenspider>
all good editors support ctags
vlad_starkov has quit [Ping timeout: 245 seconds]
datanoise has joined #ruby-lang
<headius>
anyone on Windows with a recent JRuby handy?
<brianpWins>
just incase it's something you've come across before. Part of my interest is knowing exactly what happens when you type :some_symbol into irb. Like the code that executes to know "Hey we're about to make a symbol"
miquella has quit [Remote host closed the connection]
<banisterfiend>
we use pretty_inspect in pry though
<banisterfiend>
+ some coloration
<brianpWins>
banisterfiend: so is that all still happening at an object level I'd be used to or is that happening in C?
<banisterfiend>
brianpWins: pure ruby
poga has joined #ruby-lang
<banisterfiend>
brianpWins: the only magic behind all ruby REPLs is really Binding#eval
<brianpWins>
That makes sense
<banisterfiend>
oh, and figuring out when u have a complete expression
<banisterfiend>
there's various strategies for that
<banisterfiend>
IRB takes a weird route, it has its own lexer
<brianpWins>
banisterfiend any suggested reading (including source files) you think i might be interested in reading?
kurko__ has quit [Quit: Computer has gone to sleep.]
<brianpWins>
also I use pry all the time. One of those first day on a new project add pry to the bundle things
<banisterfiend>
brianpWins: well, the pry source might be more accessible than the irb source, but im not sure
datanoise has quit [Ping timeout: 276 seconds]
<banisterfiend>
we try to add comments for most of our methods/classes, but we addmitedly still have some weird code in there that is perhaps hard to grok
mbull9_ has quit [Remote host closed the connection]
<banisterfiend>
brianpWins: the best way to read pry source is in pry itself ;)
<brianpWins>
cool. I will poke around in there tonight. It really all kind of came about by playing with symbols last night and I realized they don't have a public initialize method and needed to figure out why they become what they do.
<banisterfiend>
brianpWins: i dont think any classes have public initialize methods
<banisterfiend>
initialize is usually private
<banisterfiend>
but Symbols are immediate values
<brianpWins>
this is true. but I couldn't think of any way to create a symbol except the standard way and it made me curious what actually happens in that process
<banisterfiend>
so they're not created in the normal way
<banisterfiend>
brianpWins: Symbols are similar (in some ways) to Fixnums
<banisterfiend>
you don't 'create' the number 5 in any other way than specifying it, really
realDAB has joined #ruby-lang
<brianpWins>
that makes sense. I guess I ignorantly always just assumed at some level something would have been like Fixnum.new(5) and now we have a 5. I really don't know. lol what I just wrote was ridiculous haha