Posts by rogeriojlle • 187 points
15 posts
-
1
votes1
answer22
viewsA: Simplified mode to define a property from a destructuring
Soon after, I put just out of curiosity the this within the array, and that cool, it worked! For a moment I imagined that this could be a Babel facility, so I tested it on the browser console and…
javascriptanswered rogeriojlle 187 -
0
votes1
answer22
viewsQ: Simplified mode to define a property from a destructuring
Considering the example below: Is there a way for me to simplify? It is possible to define _get and _set directly as a property without going through const [_get, _set] before? const App = class {…
javascriptasked rogeriojlle 187 -
1
votes0
answers60
viewsQ: Create variable javascript constructors
Lately I’m creating javascript classes defining what I don’t want to be public during the constructor, using Noughtclass.myVariable ex: class NovaClasse { static podeMexer = false constructor(){…
-
0
votes1
answer29
viewsA: identify devices created via v4l2loopback in Chrome
I found the reason, is because of the standard behavior of Electron, where everything that is not expressly prohibited, is allowed, in the browser the label is displayed only after accepting which…
-
1
votes1
answer29
viewsQ: identify devices created via v4l2loopback in Chrome
In the v4l2loopback program, the parameter card_label, puts a label on each camera created, and this is identified in Chrome/Chromium, as per image. But the output of the javascript command to list…
-
1
votes0
answers22
viewsQ: How to import another model from another module in Odoo?
In an Odoo module, there is a section on __manifest__.py, where it indicates which are the dependencies. __manifest__.py ... 'depends': ['base', 'mrp'], ... With I access the resources of mrp from…
python-3.xasked rogeriojlle 187 -
0
votes1
answer15
viewsA: Order in which Webapp.connectHandlers.use is evaluated
I found. In Meteor there is another instance of connect from which is not in the documentation that is processed before the code created by the developer. It’s the Webappinternals being like this:…
meteoranswered rogeriojlle 187 -
0
votes1
answer15
viewsQ: Order in which Webapp.connectHandlers.use is evaluated
In a test application, I have several dns records pointing to it, and I have a folder where I store specific codes for each source. What I want is to avoid the possibility of some content being…
meteorasked rogeriojlle 187 -
0
votes2
answers184
viewsA: Error while trying to run the project in Meteor
I don’t use Meteor on Windows, but the image says that the error is due to it not being able to run the "tasklist.exe" command, so it cannot determine the Mongo PID, and not necessarily that Mongo…
-
1
votes2
answers4055
viewsA: What’s the best way to save an image on Mongodb?
I think that converting to Base64 can be an aggravating factor in your code, regardless of using gridfs, storing in binary format should already help a lot, take a look at another answer I gave,…
-
0
votes2
answers1366
viewsA: image upload with media content
The answer given by @altemberg-Andrade is more comprehensive, but if you don’t need so much and something simpler, see this example: /client/main.html <body> <form id="formSubmit"…
-
0
votes1
answer29
viewsA: Load External js with Meteor
in a project newly created for this test ... meteor create --bare teste meteor npm install --save jquery bootstrap bootbox in /client/main.html <head> <meta charset="utf-8"> <meta…
meteoranswered rogeriojlle 187 -
0
votes1
answer660
viewsQ: javascript, mouse position in an element
To know the mouse position in an element use elm.onmouseover(mouse), however it is not possible to use this if it is already on top of this element, and elm.onmousemove(mouse), would have to…
-
2
votes3
answers1468
viewsQ: First and last character occurrence
In Javascript, how to extract from a string everything that is between the first occurrence of [ and the last occurrence of ] ? Ex: <HR>\n[{"key":"value","key2":["¥"]}]\n<HR>…
-
2
votes1
answer421
viewsQ: Promise return
Considering the example below: function retornaValor (){ return promiseQueveioDeAlgumaLib.then( function(oQueQueroRetornar){ return { sucesso: true, data : oQueQueroRetornar } },…