Leke
Leke
Explore posts from servers
KPCKevin Powell - Community
Created by Leke on 7/18/2023 in #back-end
AutoIncrement using mongoose
Aint working
6 replies
KPCKevin Powell - Community
Created by Leke on 3/6/2023 in #front-end
React Query state management
you
8 replies
KPCKevin Powell - Community
Created by Leke on 3/6/2023 in #front-end
React Query state management
Thank
8 replies
KPCKevin Powell - Community
Created by Leke on 3/6/2023 in #front-end
React Query state management
I have tried redux couple of times
8 replies
KPCKevin Powell - Community
Created by Leke on 3/6/2023 in #front-end
React Query state management
Ive seen some people saying it can be used for state management, they will even say you dont need redux and the like and im confused
8 replies
KPCKevin Powell - Community
Created by Leke on 3/1/2023 in #back-end
node-canvas error
const express = require('express');
const JsBarcode = require('jsbarcode');
const { createCanvas } = require('canvas');

const { handleErrors } = require('../helpers');

const router = new express.Router();

// Generate Barcode
router.get('/barcode', async (req, res) => {
const { data } = req.params;

try {
if (!data) {
return res.status(404).send();
}

const canvas = createCanvas(250, 100, 'image');
JsBarcode(canvas, data, {
fontSize: 24,
fontOptions: 'bold',
mod43: true,
});
const buffer = canvas.toBuffer();

res.set('Content-Type', 'image/png');
res.status(200).send(buffer);
} catch (e) {
handleErrors(e, res);
}
});

module.exports = router;
const express = require('express');
const JsBarcode = require('jsbarcode');
const { createCanvas } = require('canvas');

const { handleErrors } = require('../helpers');

const router = new express.Router();

// Generate Barcode
router.get('/barcode', async (req, res) => {
const { data } = req.params;

try {
if (!data) {
return res.status(404).send();
}

const canvas = createCanvas(250, 100, 'image');
JsBarcode(canvas, data, {
fontSize: 24,
fontOptions: 'bold',
mod43: true,
});
const buffer = canvas.toBuffer();

res.set('Content-Type', 'image/png');
res.status(200).send(buffer);
} catch (e) {
handleErrors(e, res);
}
});

module.exports = router;
4 replies
KPCKevin Powell - Community
Created by Leke on 2/22/2023 in #front-end
Build failed due to import error
I didn't import it anywhere in the project
4 replies
KPCKevin Powell - Community
Created by Leke on 2/21/2023 in #front-end
Auto select country flag when country code is provided
Thanks this is very helpful @markboots.
5 replies
KPCKevin Powell - Community
Created by Leke on 2/21/2023 in #front-end
Auto select country flag when country code is provided
Oh
5 replies
KPCKevin Powell - Community
Created by Leke on 2/8/2023 in #front-end
SCSS Error: can not read files in public path
thanks
17 replies
KPCKevin Powell - Community
Created by Leke on 2/8/2023 in #front-end
SCSS Error: can not read files in public path
ok
17 replies
KPCKevin Powell - Community
Created by Leke on 2/8/2023 in #front-end
SCSS Error: can not read files in public path
Im just gonna try it if it solves the problem'
17 replies
KPCKevin Powell - Community
Created by Leke on 2/8/2023 in #front-end
SCSS Error: can not read files in public path
please how do i change path ?
17 replies
KPCKevin Powell - Community
Created by Leke on 2/8/2023 in #front-end
SCSS Error: can not read files in public path
The problem is that i didnt write the code , its an existing project im trying to work on
17 replies
KPCKevin Powell - Community
Created by Leke on 2/8/2023 in #front-end
SCSS Error: can not read files in public path
ok
17 replies
KPCKevin Powell - Community
Created by Leke on 2/8/2023 in #front-end
SCSS Error: can not read files in public path
17 replies
KPCKevin Powell - Community
Created by Leke on 2/6/2023 in #os-and-tools
0ver a 1000 accounts created per minute
Thanks
3 replies
KPCKevin Powell - Community
Created by Leke on 2/8/2023 in #back-end
`Cant install mongodb on mac`
Thanks
4 replies
KPCKevin Powell - Community
Created by Leke on 1/24/2023 in #back-end
How to make SQL Table Column data UNIQUE
Thanks, the documentation is really helpful
5 replies
KPCKevin Powell - Community
Created by Leke on 1/24/2023 in #back-end
How to make SQL Table Column data UNIQUE
Thanks
5 replies