how to show all package dependency tree

While we’re waiting for the official tools to have this functionality, here’s the uglyslow vershion: for p in `meteor list | grep ‘^[a-z]’ | awk ‘{ print $1″@”$2 }’`; do echo “$p”; meteor show “$p” | grep -E ‘^ [a-z]’; echo; done This will show the dependencies of all added packages. It parses the output … Read more

Callback after the DOM was updated in Meteor.js

A hacky way to do it is: foo.html <template name=”mytemplate”> <div id=”my-magic-div”> .. stuff goes here .. {{add_my_special_behavior}} </div> </template> foo.js Template.mytemplate.add_my_special_behavior = function () { Meteor.defer(function () { // find #my-magic-div in the DOM // do stuff to it }); // return nothing }; The function will get called whenever the template is rendered … Read more

Publishing/subscribing multiple subsets of the same server collection

Could you not just use the same query client-side when you want to look at the items? In a lib directory: enabledItems = function() { return Items.find({enabled: true}); } processedItems = function() { return Items.find({processed: true}); } On the server: Meteor.publish(‘enabled_items’, function() { return enabledItems(); }); Meteor.publish(‘processed_items’, function() { return processedItems(); }); On the client … Read more

How to use Meteor Upsert

Figured it out through trial and error: Values.upsert({ // Selector source: “SourceOne”, currency: “USD” }, { // Modifier $set: { value: res.data[‘data’][‘last’][‘value’], time: Date.now() // no comma needed here } });

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)