havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
cHarNe2 has joined #ruby-lang
cHarNe2 has left #ruby-lang [#ruby-lang]
saarinen has quit [Quit: saarinen]
imperator has quit [Quit: Valete!]
sevvie has quit [Ping timeout: 245 seconds]
havenwood has quit [Ping timeout: 260 seconds]
flip_digits has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
flip_digits has quit [Ping timeout: 245 seconds]
pellis has quit [Quit: Leaving]
mistym has quit [Quit: Leaving]
gaurangagrawal has joined #ruby-lang
VTLob has quit [Quit: VTLob]
iliketurtles has joined #ruby-lang
esad has joined #ruby-lang
nathanstitt has joined #ruby-lang
hahuang65 has quit [Ping timeout: 248 seconds]
richardburton has quit [Quit: Leaving.]
tkuchiki has joined #ruby-lang
richardburton has joined #ruby-lang
flip_digits has joined #ruby-lang
richardburton has quit [Client Quit]
richardburton has joined #ruby-lang
richardburton has quit [Client Quit]
Paradox has quit [Quit: off to herp the derps]
flip_digits has quit [Ping timeout: 256 seconds]
kurko_ has quit [Ping timeout: 256 seconds]
kurko_ has joined #ruby-lang
Paradox has joined #ruby-lang
bastilian has quit [Read error: Connection reset by peer]
hashkey_ has joined #ruby-lang
hashkey_ is now known as Guest92930
hashkey has quit [Ping timeout: 264 seconds]
saarinen has joined #ruby-lang
jperry_ has joined #ruby-lang
franckverrot has quit [Ping timeout: 256 seconds]
grandy has quit [Ping timeout: 256 seconds]
UziMonkey has quit [Ping timeout: 256 seconds]
Guest85414__ has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby-lang
norplr_ has quit [Ping timeout: 256 seconds]
IteratorP has quit [Ping timeout: 260 seconds]
nertzy has joined #ruby-lang
<nofxx>
Anyone doing internationalized apps? Looking for the best way to handle user/bots thing... en.domain messes a lil with sessions, domain/en/ ugly as hell, hide from url bad for bots... ugly for ugly end up with ?lang=en
<nofxx>
sorry the OT btw, but ain't a lot of ruby web related heh
stamina has quit [Ping timeout: 245 seconds]
sevvie has joined #ruby-lang
flip_digits has joined #ruby-lang
flip_digits has quit [Read error: Connection reset by peer]
flip_digits has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
sevvie has quit [Ping timeout: 246 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
mdedetrich has quit [Quit: Computer has gone to sleep.]
mdedetrich has joined #ruby-lang
mdedetrich has quit [Client Quit]
mdedetrich has joined #ruby-lang
nertzy has joined #ruby-lang
esad_ has joined #ruby-lang
mmorga has joined #ruby-lang
esad has quit [Ping timeout: 264 seconds]
mmorga has quit [Remote host closed the connection]
lfox has quit [Quit: ZZZzzz…]
nertzy has quit [Quit: This computer has gone to sleep]
jonahR has joined #ruby-lang
hahuang65 has joined #ruby-lang
D9_ has quit [Ping timeout: 260 seconds]
lfox has joined #ruby-lang
headius has joined #ruby-lang
gaurangagrawal has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 264 seconds]
soba has joined #ruby-lang
pothibo has joined #ruby-lang
kurko_ has quit [Ping timeout: 260 seconds]
kurko_ has joined #ruby-lang
buranshe has quit [Ping timeout: 246 seconds]
buranshe has joined #ruby-lang
skinny_much_ has quit [Ping timeout: 246 seconds]
lsegal has joined #ruby-lang
lfox has quit [Quit: ZZZzzz…]
skinny_much has joined #ruby-lang
cored has joined #ruby-lang
cored has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
Coincide_ has joined #ruby-lang
flip_digits has quit [Remote host closed the connection]
rwk1 has quit [Remote host closed the connection]
io_syl has quit []
jperry_ has quit [Ping timeout: 246 seconds]
mistym has joined #ruby-lang
seanlerner has quit [Remote host closed the connection]
thepumpkin has quit [Remote host closed the connection]
lfox has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
Coincide_ has quit [Remote host closed the connection]
mdedetrich has joined #ruby-lang
IteratorP has joined #ruby-lang
lfox has quit [Ping timeout: 256 seconds]
Guest92930 has left #ruby-lang [#ruby-lang]
ecnalyr has quit [Remote host closed the connection]
hashkey has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
kurko_ has quit [Quit: Computer has gone to sleep.]
lfox has joined #ruby-lang
jsullivandigs has joined #ruby-lang
flip_digits has joined #ruby-lang
lfox has quit [Ping timeout: 264 seconds]
jsullivandigs has quit [Ping timeout: 245 seconds]
lfox has joined #ruby-lang
bzalasky has joined #ruby-lang
GaelanAintAround has quit [Ping timeout: 246 seconds]
GaelanAintAround has joined #ruby-lang
D9_ has joined #ruby-lang
rwk1 has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
UziMonkey has joined #ruby-lang
franckverrot has joined #ruby-lang
norplr_ has joined #ruby-lang
vlad_starkov has joined #ruby-lang
heftig has quit [Ping timeout: 264 seconds]
Guest85414__ has joined #ruby-lang
grandy has joined #ruby-lang
heftig has joined #ruby-lang
crudson has joined #ruby-lang
bzalasky has joined #ruby-lang
_jpb_ has quit [Quit: Lost terminal]
vlad_starkov has quit [Ping timeout: 248 seconds]
heftig has quit [Ping timeout: 245 seconds]
heftig has joined #ruby-lang
shinnya has quit [Ping timeout: 240 seconds]
dhruvasagar has quit [Ping timeout: 246 seconds]
sevvie has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
franckverrot has quit [Ping timeout: 264 seconds]
thepumpkin has joined #ruby-lang
Guest85414__ has quit [Ping timeout: 264 seconds]
UziMonkey has quit [Ping timeout: 252 seconds]
grandy has quit [Ping timeout: 264 seconds]
norplr_ has quit [Ping timeout: 256 seconds]
IteratorP has quit [Ping timeout: 260 seconds]
cored has quit [Ping timeout: 245 seconds]
malev has quit [Quit: Leaving]
nathanstitt has quit [Quit: I growing sleepy]
rwk1 has quit [Ping timeout: 245 seconds]
rwk1 has joined #ruby-lang
brianpWins has joined #ruby-lang
pothibo has quit [Quit: pothibo]
PaulePanter has quit [Ping timeout: 246 seconds]
PaulePanter has joined #ruby-lang
saarinen has quit [Quit: saarinen]
hogeo has joined #ruby-lang
tharindu has joined #ruby-lang
hogeo has quit [Read error: Connection reset by peer]
bzalasky has joined #ruby-lang
havenwood has joined #ruby-lang
sevvie has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby-lang
JohnBat26 has joined #ruby-lang
jrobeson has quit [Quit: Leaving]
jperry has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 260 seconds]
jperry has joined #ruby-lang
sevvie has joined #ruby-lang
lele|w has quit [Ping timeout: 260 seconds]
ryez has joined #ruby-lang
<ryez>
how to read from standard input in a while loop that's processing piped input?
<ryez>
oh, wrong channel
Nilium has quit [Ping timeout: 256 seconds]
jrobeson has joined #ruby-lang
jperry has quit [Ping timeout: 252 seconds]
Nilium has joined #ruby-lang
lele|w has joined #ruby-lang
iliketurtles has joined #ruby-lang
hogeo has joined #ruby-lang
norplr_ has joined #ruby-lang
dhruvasagar has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
iliketurtles has quit [Quit: zzzzz…..]
jsullivandigs has joined #ruby-lang
jperry has joined #ruby-lang
hogeo has joined #ruby-lang
iliketurtles has joined #ruby-lang
richardburton has joined #ruby-lang
schaerli has joined #ruby-lang
richardburton has quit [Client Quit]
bzalasky has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
vlad_starkov has joined #ruby-lang
rippa has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 245 seconds]
sevvie has quit [Ping timeout: 256 seconds]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
bzalasky has joined #ruby-lang
jrobeson has quit [Read error: Operation timed out]
franckverrot has joined #ruby-lang
io_syl has joined #ruby-lang
UziMonkey has joined #ruby-lang
grandy has joined #ruby-lang
IteratorP has joined #ruby-lang
Guest85414__ has joined #ruby-lang
io_syl has quit [Read error: Connection reset by peer]
bzalasky has quit [Remote host closed the connection]
schaerli has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 248 seconds]
flip_digits has quit [Remote host closed the connection]
mbj has joined #ruby-lang
Coincidental has joined #ruby-lang
headius has quit [Quit: headius]
wallerdev has quit [Quit: wallerdev]
tomzx_mac has quit [Read error: Operation timed out]
Teddy2steper has joined #ruby-lang
sevvie has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
lfox has quit [Quit: ZZZzzz…]
thepumpkin has quit [Remote host closed the connection]
nneko001__ has joined #ruby-lang
sevvie has quit [Ping timeout: 264 seconds]
jperry has quit [Read error: Connection reset by peer]
jperry has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
Coincidental has quit [Remote host closed the connection]
schaerli has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
sevvie has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby-lang
dagobah has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
mdedetrich has joined #ruby-lang
charliesome has joined #ruby-lang
<havenwood>
davetoxa: So you have an Array of Hashes. What is the result you're looking for, a single Hash? Can you give an example of what it'd look like?
benlovell has quit [Read error: Operation timed out]
<gnufied>
reminds me of ruby 1.8.3 days
<gnufied>
ruby and signals get along exactly either
<gnufied>
didn't
<gnufied>
damnit
<gnufied>
but what exactly go is doing erikh ?
<gnufied>
swallowing some of them?
<erikh>
no, it ignores them
<erikh>
well, it installs default handlers but provides no interface to manipulate them
<erikh>
because fibers
<erikh>
it's a semi-sane decision. I can see why they did it
benlovell has joined #ruby-lang
skade has joined #ruby-lang
jonahR has quit [Quit: jonahR]
headius has joined #ruby-lang
adambeynon has joined #ruby-lang
headius has quit [Client Quit]
ledestin has joined #ruby-lang
toretore has joined #ruby-lang
scottschecter has quit [Ping timeout: 268 seconds]
hhatch has joined #ruby-lang
scottschecter has joined #ruby-lang
elia has joined #ruby-lang
hahuang65 has joined #ruby-lang
runeb has joined #ruby-lang
relix has joined #ruby-lang
abk has joined #ruby-lang
Pupeno_ has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
Pupeno has quit [Ping timeout: 264 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
kek has quit [Remote host closed the connection]
<maloik>
just setting up ls-pair (or wemux)
<maloik>
pretty fucking cool
jsullivandigs has quit [Ping timeout: 252 seconds]
mindriot101 has joined #ruby-lang
<yorickpeterse>
Migrations in Rails engines are a joke
kek has joined #ruby-lang
<yorickpeterse>
1) Create migration in engine 2) copy to dummy app 3) run migration against local/test db 4) install migration in container app 5) run migration against $PROD
<yorickpeterse>
I now have the same migration in 3 places
<yorickpeterse>
oh and it also changes the fucking timestamps
<yorickpeterse>
which means conflicts, YAY
<yorickpeterse>
Hm, apparently you can share the migrations between engines
tkuchiki has quit [Remote host closed the connection]
<erikh>
well, I got it outputting pg_stat_activity data
<erikh>
all bordered and shit.
tkuchiki has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 256 seconds]
<workmad3>
yorickpeterse: you can run migrations from within the engine, iirc
<yorickpeterse>
Yeah and that results in a total fucking mess
<erikh>
that's some serious real, actual narcissism right there
<yorickpeterse>
You're assuming I actually care
<yorickpeterse>
There's a pretty big difference between the two
<erikh>
that's narcissism in a nutshell.
<yorickpeterse>
There's a difference between narcisissm and not caring about passive-aggressive remarks people make whenever I bring something up that is not "How do I Ruby?". Yes, it happens quite a lot but I just happen to be chatty
<yorickpeterse>
and sadly my cat doesn't understand a fuck of what I rant about
<erikh>
Narcissism is a term that originated with Narcissus in Greek mythology who fell in love with his own image reflected in a pool of water. Currently it is used to describe a person characterized by egotism, vanity, pride, or selfishness; an erotic gratification derived from admiration of one's own physical or mental attributes. Narcissism has included particular meanings in specific fields:
<yorickpeterse>
I don't consider my own believes or whatsoever to be above others
<darix>
yorickpeterse: your cat doesnt have to understand you. it is just about having an outlet.
<yorickpeterse>
I don't consider you, or some smurf to be less than me
<yorickpeterse>
I simply don't care if people don't like me, I've put up with assholes for far too long to care about it
<darix>
and if it helps, often enough we dont understand you either due to lack of context
<erikh>
you seem to disregard pleas from many to shut your trap
<yorickpeterse>
darix: that's something I do need to work on
<yorickpeterse>
erikh: that's because they are super passive as in "Oh you're going to talk again? :P" instead of "Dude shut the fuck up"
<erikh>
I've resorted to name calling because nothing else even remotely gets close to working
<erikh>
Dude, shut the fuck up
<yorickpeterse>
ok
MaddinXx has joined #ruby-lang
<yorickpeterse>
See, that's not so hard
<gnufied>
thats my problem as well. tbh, sometimes random rant about a rails misfeature or something that is broken helps me as well.
<erikh>
there's nothing wrong with some of the time
<gnufied>
But - often we lack context
<erikh>
just ... all of the time gets a little trying
<gnufied>
to help you or understand what is going on
<yorickpeterse>
erikh: that's perfectly fine, that's when people should tell me to shut my pile hole
<erikh>
I'm not your keeper
<yorickpeterse>
as they do in real life, as I actually ask them to do especially when I start on tech stuff
<corecode>
is there a way to get a non-singleton integer?
<yorickpeterse>
either way, I have a database to save
<yorickpeterse>
corecode: eh, don't think so. They'll be frozen in the future as well
<erikh>
corecode: not without converting it to a string, I don't think.
<corecode>
:/
<gnufied>
make BigDecmila.
<gnufied>
BigDecimal*
<erikh>
gnufied: ooh, good point.
<darix>
gnufied: and i was pondering already if Decmila was a girls name :p
<erikh>
rational should work too
<corecode>
not sure if this internal DSL is a good idea
<corecode>
i lose all parsing information
<erikh>
generally trying to do stuff like that with Numeric is a pretty serious code smell
vlad_starkov has quit [Read error: Connection reset by peer]
<erikh>
gone too meta
<lupine>
BigDecimal ftw
<corecode>
erikh: i'm defining a DSL that will later output C source. would be nice to attach line numbers to the output so that compile errors can be located in the DSL source
<erikh>
sure. is there some reason you need multiple instances, though?
<corecode>
so i was thinking about attaching caller[0] to the values
vlad_starkov has joined #ruby-lang
<corecode>
short of being able to get lower level parse details
<erikh>
I guess what I don't understand -- and I'm probably making assumptions here -- is why you don't have the concept of a line, and it has an attribute of the number (or something similar)
<corecode>
is there a way to test for singleton-ness?
<erikh>
corecode: item.dup rescue false
<erikh>
should work.
<corecode>
erikh: say i use the value 500 in my DSL, and the code generated is foo = 500. now say foo is of type uint8_t, i.e. can't hold 500
<corecode>
now the compiler will warn
<erikh>
ok
<corecode>
ideally i would issue a line number into the C source that refers to the DSL source that contained that number
<corecode>
instead of the compiler pointing to the generated C file
<erikh>
ok. I've gotta be honest, I'm missing the need for instances here
<darix>
corecode: if i recall correctly you can do something like that with a comment in the C file?
<erikh>
#line xxx
<erikh>
but that's mostly for the preprocessor
<yorickpeterse>
Is there a way in Rails to tell it not to re-order table definitions in db/schema.rb?
<erikh>
to give hints to the compiler for warnings/errors
<erikh>
not sure that applies here.
<yorickpeterse>
It seems that every now and then it just re-orders them giving me a heart attack thinking stuff is lost
<erikh>
(it might, though!)
<corecode>
darix: yes, you can
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<corecode>
but for that i need to know where the value came from in the ruby file
<erikh>
corecode: perhaps wrapping it with a to_s/to_i would be best
<erikh>
you could also carry type info, all sorts of stuff.
<erikh>
the concept of a "line" class would also work
<corecode>
yes, but for that i need to know where the values come from
<erikh>
err, no it wouldn't. sorry.
<erikh>
(wrt line class)
<erikh>
right -- so you take caller[0] and stuff it into the line
<erikh>
am I missing something?
* erikh
is a tad tired
<erikh>
or atom or whatever. the point is, make it a property/object of the line
<erikh>
err, attribute
vlad_starkov has quit [Remote host closed the connection]
<erikh>
not object
<erikh>
sorry
abk has quit [Read error: Operation timed out]
<corecode>
of the line?
<corecode>
i don't have line info from the ruby parser
<erikh>
sorry, I'm not being very clear
<erikh>
let's say you have: set_foo(128)
arope28 has joined #ruby-lang
<erikh>
def set_foo(x); Atom.new(x, caller[0]); end
<erikh>
class Atom; def initialize(x, lineno); @lineno = lineno; @x = x; end; end
<corecode>
yea
<erikh>
you could even stuff them into a hash -> ll structure
vlad_starkov has joined #ruby-lang
<erikh>
hash[my_atom.lineno].push(my_atom)
<erikh>
am I way off?
ecnalyr has joined #ruby-lang
<erikh>
brb
<corecode>
let's see what doesn't work with our first idea
<ljarvis>
erikh: LRN2VACAY
<erikh>
ljarvis: I kind of am
<erikh>
I never get time to talk in here during work times
<erikh>
and it's 3am here. there ain't shit to do.
<erikh>
going to see an (American) football game and go to a park/museum over the weekend, and looking at new places tomorrow
<erikh>
so I am doing some stuff. :)
<darix>
erikh: you could try that sleeping thing. i was told it can be very good for recovering. ;)
<erikh>
darix: haha. I thought you knew me better than that
vlad_starkov has quit [Ping timeout: 246 seconds]
<corecode>
hmm
<corecode>
class NumericWrapper < Numeric; def method_missing....; end doesn't make the object look like Numeric anymore :/
<erikh>
core types are magical
<erikh>
inheriting from them is generally a bad idea
<erikh>
(why they're magical, or if they should be, is a subject of great debate)
<corecode>
somehow i get a recursion on that
<corecode>
i wonder why
<corecode>
OH.
<corecode>
i think it just changed Numeric
<erikh>
what does you mm look like?
<erikh>
your*
<erikh>
also, look at DelegateClass
<erikh>
'cause I'm pretty sure your mm is just calling itself because there are no methods to call
<corecode>
hmm
<corecode>
yea it did
<corecode>
typo
<corecode>
:)
<erikh>
DelegateClass walks around this a bit
relix has joined #ruby-lang
<corecode>
but still, puts on the object won't give me an integer representation
<corecode>
but the object id thing instead
<erikh>
Numeric doesn't define #to_s
<corecode>
magical
<corecode>
somehow PP gets confused
<corecode>
i wonder what pp tries
<corecode>
if there is no pretty_print method
<erikh>
pretty_inspect, but it reverts to inspect
<erikh>
no inspect on Numeric either
<corecode>
ok that works now
postmodern has quit [Quit: Leaving]
<corecode>
would be nice if there was an easy dsl gem
<erikh>
instance_eval ?
<erikh>
man quitting smoking
<erikh>
hard stuff
<erikh>
this also has to be the 20th time I've tried
<corecode>
sucks to be you then
<erikh>
heh pretty mch
<corecode>
i don't have an addiction personality
<corecode>
convenient
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pellis has joined #ruby-lang
<pellis>
hi all
<pellis>
anyone using metric_fu - how do you integrate it into your dev workflow? or do you just use code climate?
vlad_starkov has joined #ruby-lang
<gnufied>
these days I use codeclimate
<gnufied>
But you can add it up on jenkins
<pellis>
gnufied, so you just generate graphs and browse it as-you-go or is there some kind of workflow where you can get feedback before release? like failing a test suite when coverage isn't enough
<pellis>
i would actually be interested in more ideas like these - how to harness the results, to do stuff automatically rather than require someone to go over graphs etc.
<corecode>
hum - how do i pass arguments to a block, using instance_eval?
tovias has joined #ruby-lang
tbuehlmann has quit [Ping timeout: 264 seconds]
<toretore>
instance_eval{ b[foo, bar] }
<corecode>
instance_exec
<corecode>
that's the answer
yfeldblum has joined #ruby-lang
nHarzilei has joined #ruby-lang
nHarzilei has left #ruby-lang [#ruby-lang]
Harzilein has joined #ruby-lang
<Harzilein>
hi
<Harzilein>
i already asked this in #sinatra but it's a bit quiet there currently:
<Harzilein>
can i have different routes for a parameterless path and one with a specific parameter?
<Harzilein>
i.e. i want /foo to display the form and /foo/?q=... to perform the query -- of course it should continue to work with /foo/?dummy=bar&q=...
<oddmunds>
i would think so, lemme check
<oddmunds>
Harzilein: sorry, my server got borked and work calls.
<Harzilein>
oddmunds: no problem. thanks for trying though.
<darix>
Harzilein: just have it use different methods?
kek_ has joined #ruby-lang
<darix>
bind get to show form and post to accept the data
<darix>
just a thought
kek has quit [Ping timeout: 245 seconds]
<Harzilein>
darix: that's a workaround, not a solution, sorry. this is not urgent at all, and i'd really feel better if it works according to my spec. also, queries are supposed to be made by get as well (as they are queries, and don't mutate stuff)
<lupine>
Harzilein, "pass" might do what you want
<Harzilein>
i understand i could have a single route and dispatch stuff myself, the question is really about avoiding that in favour of a more readable solution with a more specific route with queries
<lupine>
so you have two get '/foo' stanzas, and the top one does 'pass if params['q] ...'
<Harzilein>
lupine: let me look it up :)
<Harzilein>
oh
<Harzilein>
hmm, well
<lupine>
it's still a bit of a workaround
<lupine>
there must be a Better Way!
<Harzilein>
it's slightly cleaner than completely dispatching outside of the framework though
<Harzilein>
lupine: that does indeed very much look like what i want, thanks for pointing this out :)
<lupine>
if a condition can access the current request object, you can have a foo_set condition and use that
riffraff has quit [Quit: Leaving]
riffraff has joined #ruby-lang
<Harzilein>
there is still a tiny problem with wanting to accept foo and foo/ for the form, but only foo/?q= for the query interface, but i think i can figure that out somehow
<lupine>
you can special-case it in a before filter, if nothing else
<Harzilein>
and user-defined conditions sound very flexible and should accomodate that use case
<lupine>
before() { if request.path =~ /\//foo\?q=/ raise Sintra::NotFound }
<lupine>
or so
<lupine>
(but syntactically correct, of coursE)
<lupine>
you can also rewrite request.path in before filters, so if conditions can't sanely select on params, you can have get '/foo_with_q' and get '/foo_without_q' and rewrite request.path appropriately
jdelStrother has joined #ruby-lang
<lupine>
but that's *really* nasty
jdelStrother has left #ruby-lang [#ruby-lang]
ledestin has quit [Ping timeout: 240 seconds]
jds has joined #ruby-lang
dhruvasagar has joined #ruby-lang
ledestin has joined #ruby-lang
jxie has quit [Quit: leaving]
MaddinX__ has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
arBmind has quit [Read error: Operation timed out]
arBmind has joined #ruby-lang
MaddinXx has quit [Ping timeout: 246 seconds]
Coincidental has joined #ruby-lang
<yorickpeterse>
Anybody ever worked with some of the Elasticsearch Gems? I'm looking at Tire and Stretcher at the moment but not really sure which one to pick
MaddinX__ has quit [Remote host closed the connection]
<yorickpeterse>
Tire seems to've drunk too much DSL koolaid for my taste
mindriot101 has quit [Read error: Connection reset by peer]
<erikh>
bottom right ofc
mindriot101 has joined #ruby-lang
<yorickpeterse>
ok stretcher it is, works pretty nicely
<erikh>
tire is horrible
<erikh>
know this first-hand.
<yorickpeterse>
It looks like it has a bad case of class-level abuse
<erikh>
check out my thing
<erikh>
it's *awesome*
<yorickpeterse>
I looked at pictuar
<yorickpeterse>
didn't see any cats
<yorickpeterse>
But how do you get the data, from PG itself or log files?
<erikh>
pg_stat_activity
<erikh>
select * from it
<yorickpeterse>
Ah
<yorickpeterse>
that's pretty neat if you can make it something like htop but for pg
<zzak>
good morning!
<erikh>
this is basically a clone of pg_activity
<erikh>
you might want to look at that first
breakingthings has joined #ruby-lang
kek_ has quit [Remote host closed the connection]
mdedetrich has quit [Quit: Computer has gone to sleep.]
<corecode>
ok, something is weird
<corecode>
if i am in pretty_print, inspect returns something different than outside of pretty_print
<corecode>
:/
<Harzilein>
lupine: i think i have decided now that what i want for /foo?q= is the same as for /foo, redirect to /foo/. after all, /foo/ _is_ the "index page" for the query results below it
banisterfiend has quit [Quit: Computer has gone to sleep.]
<Harzilein>
lupine: i still have to decide if i want to punish users who create their own urls by dropping their queries >;)
<pellis>
specifying tests to run with Guard minitest, and then with rake - kind of duplication.. anyone noticed that?
momomomomo has joined #ruby-lang
kek has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 264 seconds]
yalue has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
banisterfiend has joined #ruby-lang
stef_204 has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
<gaurangagrawal>
Hello , I am using Moutain Lion , Ruby 2.0 , installed Ruby on Rails . When I tried to access localhost:3000 , it's saying Internal Server Error . Please Help
bgant has joined #ruby-lang
nisstyre has quit [Remote host closed the connection]
<toretore>
gaurangagrawal: try #rubyonrails
<gaurangagrawal>
thanks toretore
kgrz has joined #ruby-lang
jsullivandigs has joined #ruby-lang
D9_ has joined #ruby-lang
MaddinXx has joined #ruby-lang
shinnya has joined #ruby-lang
sr78ger has joined #ruby-lang
sr78ger has quit [Max SendQ exceeded]
dhruvasagar has joined #ruby-lang
Kabaka has joined #ruby-lang
sr78ger has joined #ruby-lang
sr78ger has quit [Max SendQ exceeded]
rue has quit [Remote host closed the connection]
dhruvasagar has quit [Read error: Connection reset by peer]
sr78ger has joined #ruby-lang
eugenejen has quit [Read error: Operation timed out]
<kith>
does anyone here know how i could pass a timeout value to my snmp connection? in ruby that is ofc
<kith>
i have this: Manager.open(:host => host, :community => COMMUNITY, :timeout => 5) do |manager|
eugenejen has joined #ruby-lang
<kith>
but my script waits forever
dhruvasagar has joined #ruby-lang
rue has joined #ruby-lang
riffraff has quit [Quit: Leaving]
tkuchiki has quit [Remote host closed the connection]