How to fix vscode settings sync in linux
Ensure gnome-keyring is running
$ systemctl --user status gnome-keyring-daemon
● gnome-keyring-daemon.service - GNOME Keyring daemon
Loaded: loaded (/usr/lib/systemd/user/gnome-keyring-daemon.service; enabled; preset: enabled)
Active: active (running) since Thu 2023-06-15 12:36:32 CEST; 3h 43min ago
TriggeredBy: ● gnome-keyring-daemon.socket
Main PID: 16317 (gnome-keyring-d)
Tasks: 4 (limit: 67352)
Memory: 3.5M
CPU: 1.067s
CGroup: /user.slice/user-1000.slice/ ...
How to lazy loading JSX react module with dots notation
How to React lazy loading module with dot notation such as subclass or non default export ?
Original code without react lazy
import React from 'react';
import { Navbar, Nav } from 'rsuite';
import HomeIcon from '@rsuite/icons/legacy/Home';
import CogIcon from '@rsuite/icons/legacy/Cog';
const MyNavbar = () => (
<Navbar>
<Navbar.Brand href="#">RSUITE</Navbar.Brand>
<Nav>
<Nav.Item icon={ ...
Eslint Prettier In Typescript Project Using Vscode
Auto Lint And Format Typescript Using VSCode With Eslint And Prettier
Updated september 2023, suitable with VSCode and ESLint VSCode Plugin as below informations
Version: 1.82.2
Commit: abd2f3db4bdb28f9e95536dfa84d8479f1eb312d
Date: 2023-09-14T05:51:20.981Z
Electron: 25.8.1
ElectronBuildId: 23779380
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Linux x64 5.15.0-83-generic
Linter becomes 2 types:
TSLint is a linter that must be utilized for TypeScript.
ESLint is a lint ...
Setup VSCode for typescript with css modules
Setup VSCode for typescript with css modules import support. You can be able import css,scss,less,stylus file as modular import in typescript+react+webpack project.
This method also has the following functions and advantages:
fix issues react bundle all things together.
style each React route independently
React.JS React-Router-Dom applying css on every routes
Install typescript plugin
yarn add -D typescript-plugin-css-modules
or
npm install -D typescript-plugin-css-modules
Change VSCode US ...
Quiz The Legend Of Neverland
when this page errors you can try beta version
Scenic Quiz Answer The Legend Of Neverlands
Filter
Only Show (O)
Quiz The Legend Of Neverland Last updated 2023-09-07T12:54:03+07:00 changelog
"Barge Haulers on the Volga" once shocked the world of arts, the creator of this painting is Gerasimov (X)
"Barge Haulers on the Volga" once shocked the world of arts, the creator of this painting is Vrubel ( ...
create interface class and function in typescript d.ts
Summary
when you create an library which is can be function or class like below sample
import Client from "./client";
// The following two lines both achieve the same result.
const clas = new Client();
const fun = Client();
The client may be constructed via the new keyword or implicitly without as a function call.
How you can express this in a types.d.ts file?
Conclusion
The conventional way something like this is done in TypeScript’s own standard library (see the typings for Date for ...
Fix rollup eval warning
Error summary
_freeGlobal appears to be imported at https://github.com/lodash/lodash/blob/master/.internal/nodeUtil.js#L1. It looks like lodash is a dependency of Bluebird (https://github.com/request/promise-core/blob/master/package.json#L36).
If I try to add lodash to the fuzzymatchingjs’s dependencies directly, this require for freeGlobal is resolved and the JavaScript is usable in a browser context.
some looks error logs
(!) Use of eval is strongly discouraged
https://rollupjs.org/troubleshoo ...
Prettier VSCode TypeError A dynamic import callback was not specified fix
How to fix Prettier VSCode TypeError A dynamic import callback was not specified only occurs for JSX/TSX file.
Summary
prettier version
{
"prettier": "^3.0.3"
}
plugin information
Prettier - Code formatter v10.1.0
vscode version
Version: 1.81.1 (user setup)
Commit: 6c3e3dba23e8fadc360aed75ce363ba185c49794
Date: 2023-08-09T22:22:42.175Z
Electron: 22.3.18
ElectronBuildId: 22689846
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT ...
Auto Add Alt Attributes To Images Using jQuery
Using jQuery to adding alt attributes to all images <img> tags. Alt attributes of images are one of SEO Score. Alt Tag SEO is technically a name.Really, there's no such issue as AN angular position tag of a picture. it's the angular position ATTRIBUTE. however that's another discussion altogether.The main reason for this post is to fret simply however necessary correct use of the angular position attribute is to your SEO efforts and to people who use the help of screen readers to infor ...
Script Auto Invite All Friends To Like Fanpage Without Plugin and Tool
Script Auto Invite All Friends To Like Fanpage Without Plugin and ToolFanpage is one of the most effective media to sell.LIKE a lot number can be a plus and very profitable for a Fanpage. If you have tried the trick before, so now you've had many friends in the friend list.Invite them all to love your Fanpage. LIKE then the number will increase. How Klo number of his friends thousands? Klo must be exhausted before you invite one-on-one?Well, I have a simple trick th ...