meteor

Meteor Out of Memory

妖精的绣舞 提交于 2019-12-21 04:28:06
问题 I'm using meteor to make scrapping engine and I have to do a HTTP GET request and this send me an xml but this xml is bigger than 400 ko. I get a exception "out of memory". result =Meteor.http.get 'http://SomeUrl.com' FATAL ERROR: JS Allocation failed - process out of memory There is a way to increase memory limit of a variable ? 回答1: I'm developing on Windows and had the same error. In my case, was caused by a flood of console.log statements. I disabled the log statements, and works fine

Run JS after rendering a meteor template

▼魔方 西西 提交于 2019-12-21 04:09:47
问题 I have a template that looks something like this: <template name="foo"> <textarea name="text">{{contents}}</textarea> </template> I render it with: Template.foo = function() { return Foos.find(); } And I have some event handlers: Template.foo.events = { 'blur textarea': blurHandler } What I want to do is set the rows attribute of the textarea depending on the size of its contents. I realize that I could write a Handlebars helper, but it wouldn't have access to the DOM element being rendered,

What is __meteor_bootstrap__?

本秂侑毒 提交于 2019-12-21 04:03:26
问题 I am just starting with Meteor and working on an existing project. I am running into an issue with one of the packages(observatory-apollo) that's has the following line: __meteor_bootstrap__.app.use Observatory.logger #TLog.useragent It is complaining that __meteor_bootstrap__.app is undefined. What is __meteor_boostrap__ exactly? I can't seem to find a description of what it is but from threads, people seem to know how to use it. I can only see it defined in boot.js, but it doesn't really

Accounts.onCreateUser adding extra attributes while creating new users, good practices?

断了今生、忘了曾经 提交于 2019-12-21 03:58:40
问题 I'm creating new user with Accounts.createUser() and it works normally if you are not doing anything fancy. But I want to add some other fields to new user that are not listed on documentation. Here is my code: var options = { username: "funnyUserNameHere", email: "username@liamg.com", password: "drowssap", profile: { name: "Real Name" }, secretAttribute: "secretString" }; var userId = Accounts.createUser(options); In this example I have added secretAttribute to my options object. Because

Where to put a separate admin interface for a Meteor app?

我只是一个虾纸丫 提交于 2019-12-21 03:57:15
问题 I'm trying to build a smart package for Meteor app that provides some monitoring capabilities and other tools based on the features of the smart package. For more details read this question. In any case, I'm trying to figure out the best way to create an admin interface for this package, which will of course be itself running in Meteor. Ideally, I'd like something similar to observatory, except on a separate part of the site that the package can control (or even on a different port.) The way

Back up meteor database with mongodump?

牧云@^-^@ 提交于 2019-12-21 03:45:09
问题 This post is about backing up your meteor database I am trying to back up my meteor database and I understand what this post is telling me to do, but I must not be in the right directory when I run the mongodump command, b/c I keep getting 'Command not found'. Or do I need to export a path? [EDIT] OK, now I have the binaries installed but when I run 'mongodump', I get: couldn't connect to [127.0.0.1] couldn't connect to server 127.0.0.1:27017 ... and when I run 'mongodump --host localhost

Speed up Auto-reload in Meteor.js

核能气质少年 提交于 2019-12-21 03:36:18
问题 After saving a file with new changes in Meteor.js, the server will restart and the browser will window reload. Question: Sometimes it takes longer than usual to reload after saving the file, and this appears to be random. Is there a way to trigger the auto-reload more quickly? It appears that the server restart quickly, but the browser reload much more slowely. After the Meteor server have restarted, the webpage becomes unresponsive for 30 sec and the Network tab shows websocket pending... I

Basic questions for MeteorJS [closed]

旧城冷巷雨未停 提交于 2019-12-21 02:59:16
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I'm planning to write some native applciation with web application method. I've searched quite some pages and was planning to use node.js + angular + something... but now would like to try Meteor since I've already used MongoDb and I don't want to learn too many frameworks

Meteor User Property

老子叫甜甜 提交于 2019-12-21 02:36:10
问题 I'd like to be able to mark users as "admin" in the Meteor auth system, and allow that user to do special things, as well as show some gui elements I wouldn't show if they weren't an admin. I've already tried setting an "admin" property on the user object, which would work fine on the server side (for the RPCs for the admin actions), however I need to access it on the client side to change the rendering of the page, and it appears only emails is sent with the Meteor.user() object. Basic

How to push data from server to all clients not using Collections?

偶尔善良 提交于 2019-12-21 02:27:10
问题 I need to inform clients about changes on server side. In my case I am using different Collections on server and on client (more about it in this question: how would you build pinterest like page with meteor.js). On the server I am getting new Products from external API. I would like to publish the number of new items to all clients that they could update their local variables needed for layout to work well. How to do it? It would be nice if I could publish/subscribe other kinds of data than