« first day (143 days earlier)      last day (2621 days later) » 

02:38
@Raynos the game world runs, it loads maps/mobs/towers from config files, mobs move across the canvas (it doesn't clear them after they move yet), and the towers can 'attack' the mobs (no animation obviously but the tower event fires)
(re your previous question: 'does it do anything?')
 
2 hours later…
04:38
Hi all. If I'm using express+jade as my templating engine, how would I also use ejs as well for certain routes? I have jade configured and working, and download ejs - but everytime I try res.render('x.ejs', ... it instead tries to load template.ejs rather than x.ejs
I don't use express+jade, so I'm not sure. Have you checked Stack Overflow for an answer? Seems this is likely to have happened before.
I've been reading through the answers, but nothing seemed to indicate why template.ejs is pulled instead of x.ejs - will keep looking, thanks!
04:59
Figured it out - needed to add {layout : false} as an option. Worked!
I figured it was a configuration option problem like that
 
7 hours later…
11:48
@JayCrossler dont
Stick to one templating language please
using multiple is a maintenance nightmare
 
5 hours later…
16:36
@yojimbo87 how do I sort couchdb records?
in view?
Yes
descending
true / false
this reverse the order
I think sort can be done only on complex keys
CouchDB allows arbitrary JSON structures to be used as keys. You can use complex keys for fine-grained control over sorting and grouping.
view collation is often used for this stuff
but it's not trivial if your view have more keys
this is where ad-hoc queries beat map/reduce
17:06
I see
 
1 hour later…
18:23
Is there an easy way to do "PUT IF NOT EXISTS" ?
in single operation?
yes
for creating a view
you are creating view from node?
Why not?
Should I do it through futon?
views are precomputing data of your entire data set upon creation so they shouldn't be created dynamically and used in ad-hoc style
18:27
Well yes
but I want to programatticaly create design documents
I think there is a way to check just HEAD but don't know ifthat's supported by cradle
in that case it should be ok
I can use POST I think
there is no node.js driver for couchbase server
whats couchbase?
and how is it different
it uses memcached protocol but there certain operations which require additional functionality and REST manipulation
couchbase itself is a company which was founded by people from membase and couchone (or couchsomething - the creators of couchdb)
they have several products like membase, couchbase single server (which is a couchdb with some additional features and improvements)
and they recently released couchbase server 2
it's a combination of membase and couchdb
looks very promising
couchdb engine is used there for disk persistency and data durability
and membase for keeping stuff cached in memory
for speed
also membase takes care of strong consistency
I already asked on couchbase google groups about 20 questions regarding this database and it's features ^^
18:50
if I had more time I would like to try make DB driver for it
I just tried to remove a doc from couch with cradle and it works
which version of couch are you using Ray>
 
4 hours later…
22:42
Whatever iriscouch runs

« first day (143 days earlier)      last day (2621 days later) »