ATTITUDE तो SABKE पास होता है, लेकिन HAMARE जैसा #अंदाज नहीं होता… मैं लोगों की तरह मिलावट नहीं करता , मोहब्बत हो या नफरत जो भी करता हूँ 100% करता हूँ 😎😎 आज सवेरे-सवेरे मुझे #INCOME TAX वालो का #CALL आया, बोले – “इतने बढ़िया #STATUS मत डाला करो, वरना #TAX लगा दूँगा” कोशिश न कर, सभी को “खुश” रखने की,Read more
ATTITUDE तो SABKE पास होता है,
लेकिन HAMARE जैसा #अंदाज नहीं होता…
मैं लोगों की तरह मिलावट नहीं करता ,
मोहब्बत हो या नफरत जो भी करता हूँ 100% करता हूँ 😎😎
आज सवेरे-सवेरे मुझे #INCOME TAX वालो का #CALL आया,
बोले – “इतने बढ़िया #STATUS मत डाला करो, वरना #TAX लगा दूँगा”
कोशिश न कर, सभी को “खुश” रखने की,
कुछ लोगो की “नाराजगी” भी जरूरी है, चर्चा में बने रहने के लिए…
आज वो लडकी भी मेरा #STATUS COPY करती है,
जो 10TH मे मुजसे कहती थी – “देख 100 में से 99 आये”
खवाहिश नही मुझे मशहुर होने की …
आप मुझे पहचानते हो _बस इतना ही काफी है…!!
आँखे न फाड़ पगली दिल को आराम दे ,
मुझे क्या देखती है अपने वाले पर ध्यान दे
हमसे #जलने वाले जल – जलकर #काले हो गये,
उनकी बहन हमारी #FANS ओर वो हमारे #SAALE हो गये!
For MongoDB 3.6 and greater, use the $expr operator which allows the use of aggregation expressions within the query language: var followers_count = 30; db.locations.find({ "$expr": { "$and": [ { "$eq": ["$name", "development"] }, { "$gte": [{ "$size": "$followers" }, followers_count ]} ] } }); ForRead more
For MongoDB 3.6 and greater, use the $expr operator which allows the use of aggregation expressions within the query language:
For non-compatible versions, you can use both the $match and $redact pipelines to query your collection. For example, if you want to query the locations collection where the name is ‘development’ and followers_count is greater than 30, run the following aggregate operation:
The above will return the locations with just the _id references from the users. To return the users documents as means to “populate” the followers array, you can then append the $lookup pipeline.
If the underlying Mongo server version is 3.4 and newer, you can run the pipeline as
Are you using any private or company registry. check your .npmrc file and make sure its available. if you are in company environment, make sure proxy is not a problem. check in your folder if any package-lock.json is generated. you can delete that make re install. I have little doubt but node 6.x.xRead more
Are you using any private or company registry. check your .npmrc file and make sure its available.
if you are in company environment, make sure proxy is not a problem.
check in your folder if any package-lock.json is generated. you can delete that make re install.
I have little doubt but node 6.x.x with npm 5.x.x might be a problem as node 7.x.x is compatible arable with 5.x.x. And normally node 6.x.x is compatible with npm 4.x.x
When Sass is precompiled by its own CLI, it processes @imports by itself, and sometimes thus doesn’t understand ~ notation. So you can import "node_modules/bootstrap/scss/bootstrap"; in first place and replaced the ~ notation with node_modules/ instead.
When Sass is precompiled by its own CLI, it processes @imports by itself, and sometimes thus doesn’t understand ~ notation. So you can import "node_modules/bootstrap/scss/bootstrap"; in first place and replaced the ~
notation with node_modules/ instead.
I've just worked out what was going on, and I hope this will help others to avoid this beginner's error. For some of my error logging I was using something like the following, using string concatenation to construct the error message: console.log('error in function abc: ' + err + ' whilst doing xyz'Read more
I’ve just worked out what was going on, and I hope this will help others to avoid this beginner’s error.
For some of my error logging I was using something like the following, using string concatenation to construct the error message:
console.log('error in function abc: ' + err + ' whilst doing xyz');
whereas elsewhere I was using something like the following, just passing the pieces of the error message as separate arguments to console.log:
console.log('error in function xyz:', err, 'whilst doing abc');
I now see that these give different results!
The former must stringify err so that it can be concatenated with the other parts of the message, and according to this, in doing so it just uses the message part.
However, in the latter form the err object must be processed by console.log unadulterated, and dumped as a whole.
This explains why I was sometimes not seeing the whole content of the error, as I was expecting, and other times I was.
As for console log messages put there by other libraries, something else to check is that you’re not filtering out the ‘stack’ parts of the log messages in your log viewer… turns out that I was (in order to save on log quota… am using papertrail)… d’oh. I was doing so by filtering out any lines starting with ____at (four spaces followed by ‘at’), for example ____at Request.self.callback.
Using setInterval() What if you need to repeat the execution of your code block at specified intervals? For this, Node has methods called setInterval() and clearInterval(). The setInterval() function is very much like setTimeout(), using the same parameters such as the callback function, delay, andRead more
Using setInterval()
What if you need to repeat the execution of your code block at specified intervals? For this, Node has methods called setInterval() and clearInterval(). The setInterval() function is very much like setTimeout(), using the same parameters such as the callback function, delay, and any optional arguments for passing to the callback function.
A simple example of setInterval() appears below:
var interval = setInterval(function(str1, str2) {
console.log(str1 + " " + str2);
}, 1000, "Hello.", "How are you?");
clearInterval(interval);
This is another way when you want to keep only one interval running every minute
function intervalFunc() {
console.log("Hello!!!!");
}
setInterval(intervalFunc,1500);
In the above example, intervalFunc() will execute about every 1500 milliseconds, or 1.5 seconds, until it is stopped . Hope this helps.
Because you're overwriting your res variable in the .then of your rp function: app.post('/danger', function response(req, res) { //see, "res" here was being overwritten .. .. rp(option).then(function(response) { //change the variable name of "res" to "response" (or "turtles", who cares, just dont ovRead more
Because you’re overwriting your res variable in the .then of your rp function:
app.post('/danger', function response(req, res) { //see, "res" here was being overwritten
..
..
rp(option).then(function(response) { //change the variable name of "res" to "response" (or "turtles", who cares, just dont overwrite your up most "res")
SyntaxError: invalid syntax to repo init in the AOSP code
Kenil Vasani
All Possible Solution Defined At Here SyntaxError: invalid syntax to repo init in the AOSP code in Python
All Possible Solution Defined At Here SyntaxError: invalid syntax to repo init in the AOSP code in Python
See less【2021】600+ [BEST] वजनदार स्टेटस
Kenil Vasani
ATTITUDE तो SABKE पास होता है, लेकिन HAMARE जैसा #अंदाज नहीं होता… मैं लोगों की तरह मिलावट नहीं करता , मोहब्बत हो या नफरत जो भी करता हूँ 100% करता हूँ 😎😎 आज सवेरे-सवेरे मुझे #INCOME TAX वालो का #CALL आया, बोले – “इतने बढ़िया #STATUS मत डाला करो, वरना #TAX लगा दूँगा” कोशिश न कर, सभी को “खुश” रखने की,Read more
ATTITUDE तो SABKE पास होता है,
लेकिन HAMARE जैसा #अंदाज नहीं होता…
मैं लोगों की तरह मिलावट नहीं करता ,
मोहब्बत हो या नफरत जो भी करता हूँ 100% करता हूँ 😎😎
आज सवेरे-सवेरे मुझे #INCOME TAX वालो का #CALL आया,
बोले – “इतने बढ़िया #STATUS मत डाला करो, वरना #TAX लगा दूँगा”
कोशिश न कर, सभी को “खुश” रखने की,
कुछ लोगो की “नाराजगी” भी जरूरी है, चर्चा में बने रहने के लिए…
आज वो लडकी भी मेरा #STATUS COPY करती है,
जो 10TH मे मुजसे कहती थी – “देख 100 में से 99 आये”
खवाहिश नही मुझे मशहुर होने की …
आप मुझे पहचानते हो _बस इतना ही काफी है…!!
आँखे न फाड़ पगली दिल को आराम दे ,
मुझे क्या देखती है अपने वाले पर ध्यान दे
हमसे #जलने वाले जल – जलकर #काले हो गये,
See lessउनकी बहन हमारी #FANS ओर वो हमारे #SAALE हो गये!
Mongoose: how to use aggregate and find together
Kenil Vasani
For MongoDB 3.6 and greater, use the $expr operator which allows the use of aggregation expressions within the query language: var followers_count = 30; db.locations.find({ "$expr": { "$and": [ { "$eq": ["$name", "development"] }, { "$gte": [{ "$size": "$followers" }, followers_count ]} ] } }); ForRead more
For MongoDB 3.6 and greater, use the
$expr
operator which allows the use of aggregation expressions within the query language:For non-compatible versions, you can use both the
$match
and$redact
pipelines to query your collection. For example, if you want to query thelocations
collection where the name is ‘development’ andfollowers_count
is greater than 30, run the following aggregate operation:or within a single pipeline as
The above will return the locations with just the
_id
references from the users. To return the users documents as means to “populate” the followers array, you can then append the$lookup
pipeline.If the underlying Mongo server version is 3.4 and newer, you can run the pipeline as
else you would need to
See less$unwind
the followers array before applying$lookup
and then regroup with$group
pipeline after that:Npm ERR! code EPERM
Kenil Vasani
Are you using any private or company registry. check your .npmrc file and make sure its available. if you are in company environment, make sure proxy is not a problem. check in your folder if any package-lock.json is generated. you can delete that make re install. I have little doubt but node 6.x.xRead more
Are you using any private or company registry. check your
.npmrc
file and make sure its available.if you are in company environment, make sure proxy is not a problem.
check in your folder if any package-lock.json is generated. you can delete that make re install.
I have little doubt but node 6.x.x with npm 5.x.x might be a problem as node 7.x.x is compatible arable with 5.x.x. And normally node 6.x.x is compatible with npm 4.x.x
See lessError: File to import not found or unreadable: ~bootstrap/scss/bootstrap
Kenil Vasani
When Sass is precompiled by its own CLI, it processes @imports by itself, and sometimes thus doesn’t understand ~ notation. So you can import "node_modules/bootstrap/scss/bootstrap"; in first place and replaced the ~ notation with node_modules/ instead.
When Sass is precompiled by its own CLI, it processes
See less@imports
by itself, and sometimes thus doesn’t understand~
notation. So you can import"node_modules/bootstrap/scss/bootstrap";
in first place and replaced the~
notation with
node_modules/
instead.How to console.log an error with stack trace in node.js?
Kenil Vasani
I've just worked out what was going on, and I hope this will help others to avoid this beginner's error. For some of my error logging I was using something like the following, using string concatenation to construct the error message: console.log('error in function abc: ' + err + ' whilst doing xyz'Read more
I’ve just worked out what was going on, and I hope this will help others to avoid this beginner’s error.
For some of my error logging I was using something like the following, using string concatenation to construct the error message:
whereas elsewhere I was using something like the following, just passing the pieces of the error message as separate arguments to
console.log
:I now see that these give different results!
The former must stringify
err
so that it can be concatenated with the other parts of the message, and according to this, in doing so it just uses the message part.However, in the latter form the
err
object must be processed byconsole.log
unadulterated, and dumped as a whole.This explains why I was sometimes not seeing the whole content of the error, as I was expecting, and other times I was.
As for console log messages put there by other libraries, something else to check is that you’re not filtering out the ‘stack’ parts of the log messages in your log viewer… turns out that I was (in order to save on log quota… am using papertrail)… d’oh. I was doing so by filtering out any lines starting with
See less____at
(four spaces followed by ‘at’), for example____at Request.self.callback
.Koa router: How to get query string params?
Kenil Vasani
According to the docs there should be a ctx.request.query that is the query string items represented as an object.
According to the docs there should be a
See lessctx.request.query
that is the query string items represented as an object.ERROR in ./node_modules/css-loader?
Kenil Vasani
try using npm rebuild node-sass
try using
See lessnode.js: how to use setInterval and clearInterval?
Kenil Vasani
Using setInterval() What if you need to repeat the execution of your code block at specified intervals? For this, Node has methods called setInterval() and clearInterval(). The setInterval() function is very much like setTimeout(), using the same parameters such as the callback function, delay, andRead more
Using setInterval()
What if you need to repeat the execution of your code block at specified intervals? For this, Node has methods called setInterval() and clearInterval(). The setInterval() function is very much like setTimeout(), using the same parameters such as the callback function, delay, and any optional arguments for passing to the callback function.
A simple example of setInterval() appears below:
This is another way when you want to keep only one interval running every minute
In the above example, intervalFunc() will execute about every 1500 milliseconds, or 1.5 seconds, until it is stopped . Hope this helps.
See lessTypeError: res.json is not a function
Kenil Vasani
Because you're overwriting your res variable in the .then of your rp function: app.post('/danger', function response(req, res) { //see, "res" here was being overwritten .. .. rp(option).then(function(response) { //change the variable name of "res" to "response" (or "turtles", who cares, just dont ovRead more
Because you’re overwriting your
See lessres
variable in the.then
of yourrp
function: