|
|
We had a physics problem, 50 years ago, applying the uncertainty principle to the question of how quickly could a tuba player change notes. Ans: about 2 times/second at the low end.
Can anyone check this on the video?
|
|
|
|
|
Hi everyone, Im tryingto to list the data coming from the mongo db in a file handlebars. But the problem is that when I load the screen, only the message "Category Listing" appears and the names of the categories do not appear as requested:
{{#each erros}}
{{texto}}
{{else}}
{{/each}}
To create the modell and the collection, I used:
var conexao = require("../config/conexao")
var CategoriaSchema = conexao.Schema({
nome:{
type: String,
require: true
},
slug:{
type: String,
require: true
},
date:{
type: Date,
default: Date.now()
}
})
module.exports = conexao.model("Categorias", CategoriaSchema)
And in the main file, to render the handlebars file, I used:
const express = require("express");
const handlebars = require("express-handlebars");
const app = express();
const Handlebars = require('handlebars')
const Categorias = require("./models/Categoria")
app.get("/", (req, res) =>{
Categorias.find().then((categorias) =>{
res.render("listaCategorias", {categorias: Categorias})
}).catch((erro) => {
(colsole.log(erro))
res.redirect("/cadastrar")
})
})
Can anybody help me?
|
|
|
|
|
Bárbara 2023 wrote: Can anybody help me? No. This area isn't for technical queries, as it says at the top of the page.
Try posting it here: Ask a Question[^]
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
This would be a database question and there is a database forum.
Use code tags when you post code and anything else that should be formatted.
|
|
|
|
|
Tremors: Fred Ward (Earl) and Kevin Bacon
"Yeah. See, we plan ahead, that way we don't do anything right now.
Earl explained it to me."
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
“The best-laid schemes o’ mice an’ men
Gang aft agley,
An’ lea’e us nought but grief an’ pain
For promis’d joy!”
-- Robert Burns
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Ah, the flip side of plans. Well said. Mine was a bit of humor.
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
“It does not do to leave a live dragon out of your calculations, if you live near one.”
– J.R.R. Tolkien
|
|
|
|
|
"I love it when a plan comes together." -- John "Hannibal" Smith
modified 30-May-23 10:38am.
|
|
|
|
|
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
“Give me six hours to chop down a tree and I will spend the first four sharpening the axe.” – Abraham Lincoln.
Barbossa : So what now, Jack Sparrow? Are we to be two immortals locked in an epic battle until Judgment Day and trumpets sound?
Jack Sparrow : Or you could surrender.
Advertise here – minimum three posts per day are guaranteed.
|
|
|
|
|
"avoid the word plan, it could lead to premeditated in the courtroom". anonymous.
>64
Some days the dragon wins. Suck it up.
|
|
|
|
|
Wordle 710 4/6
⬛🟨⬛⬛🟨
⬛⬛⬛🟩🟩
⬛🟨⬛🟩🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 710 6/6
⬜⬜⬜🟩⬜
⬜⬜⬜🟩⬜
⬜⬜🟩🟩⬜
⬜⬜🟩🟩⬜
⬜🟨🟩🟩⬜
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 710 5/6
⬜⬜⬜⬜⬜
⬜⬜🟩🟩⬜
⬜⬜🟩🟩🟨
⬜🟨🟩🟩⬜
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 710 4/6*
⬜⬜⬜⬜🟨
⬜⬜🟨🟩⬜
⬜⬜⬜🟩🟨
🟩🟩🟩🟩🟩
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Wordle 710 4/6
⬜🟨⬜⬜⬜
🟨⬜⬜🟩⬜
⬜🟨🟩🟩🟨
🟩🟩🟩🟩🟩
walked right in
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
⬜⬜⬜🟨🟨
⬜⬜🟨🟩⬜
🟨⬜⬜🟩⬜
⬜🟨⬜🟩🟨
⬜🟩⬜🟩🟩
🟩🟩🟩🟩🟩
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Wordle 710 6/6
⬜⬜⬜🟨⬜
⬜⬜🟩⬜⬜
⬜🟨⬜⬜🟨
⬜🟨🟩🟨⬜
🟩🟩🟩⬜🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 710 4/6
🟨⬛⬛🟨⬛
⬛⬛⬛🟨⬛
⬛⬛⬛⬛⬛
🟩🟩🟩🟩🟩
GCS/GE d--(d) s-/+ a C+++ U+++ P-- L+@ E-- W+++ N+ o+ K- w+++ O? M-- V? PS+ PE Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
The shortest horror story: On Error Resume Next
|
|
|
|
|
Wordle 710 3/6
⬛🟨⬛🟨🟨
⬛🟨🟩🟨🟨
🟩🟩🟩🟩🟩
Ok, I have had my coffee, so you can all come out now!
|
|
|
|
|
Wordle 710 5/6*
⬜⬜🟩⬜🟨
⬜🟨🟩🟨⬜
🟩⬜🟩⬜🟨
🟩🟩🟩🟩⬜
🟩🟩🟩🟩🟩
Took me about 10 minutes to get from 3 to 4. My brain just couldn't figure out a valid 2nd letter.
|
|
|
|
|
Wordle 710 3/6
⬛⬛⬛🟨🟨
⬛⬛🟩⬛🟨
🟩🟩🟩🟩🟩
|
|
|
|
|
#Worldle #493 2/6 (100%)
🟩🟩🟩🟨⬜➡️
🟩🟩🟩🟩🟩🎉
https://worldle.teuteuf.fr
easy one
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|