[Solved] Vscode Katex Error: ParseError: KaTeX Parse Error: Can‘t Use Function ‘$‘ In Math Mode At Position …

Vscode Katex Error: ParseError: KaTeX Parse Error: Can‘t Use Function ‘$‘ In Math Mode At Position …

Problem description

When doing Wu Enda’s deep learning, KAtex is prompted with parsing errors. A pile of KAtex plug-ins under vscode are useless. The errors are as follows:

parseError: KAtex parse error: can't use function '$' in math mode at position

Solution:

Strange solution, in the following figure, call back

Problem solved

[Solved] Error response from daemon: driver failed programming external connectivity on endpoint mysql

Error response from daemon: driver failed programming external connectivity on endpoint mysql

docker command:
docker start container_name/id
Container Start Error:

Error response from daemon: driver failed programming external connectivity on endpoint mysql (cf1ba9f9e0613e14f42332d187a51429f8213aaf91d775f2ec3600614c78e6e1): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 3306 -j DNAT --to-destination 172.17.0.2:3306 ! -i docker0: iptables: No chain/target/match by that name.
(exit status 1))
Error: failed to start containers: mysql

 

Solution: restart docker:systemctl restart docker

https://blog.csdn.net/qq_45652428/article/details/124870923

[Solved] Quartus 13 Uses IP Core NCO to generate DDS Error: Megawizard Error

quartus 13 利用IP核 NCO 生成dds出现Megawizard error解决

The following errors occurred when using NCO in IP core to produce DDS:

MegaWizard Error
MegaCore Function Generation Error
IP Functional Simulation Model Creation Failed. The following error was returned;Error: Quartus ll 32-bit Analysis & Synthesis was unsuccessful. 1 error, 2 warnings

 

I checked many methods on the Internet and cracked the IP core, but the problem still appears when quoting the IP core. After my actual measurement, it may be due to the problem of version 13.

Suggestion: it may be due to the problem with version 13. After installing version 18 of quartus, I can normally use fir # NCO and other IP cores

You can see that I modified the values of clock rate and desired output freq, but the waveform of the following magnet has not changed, but my IP core has been cracked.

After installing Quartus # 18, you can see that the magnetic waveform has a pulse at 6mhz, which is consistent with the output frequency we designed

[Solved] pod CDN: trunk Repo update failed – 56 error(s):

pod CDN: trunk Repo update failed – 56 error(s):

An error is reported when performing pod install: (reason for this problem: cocoapods 1.8 switches the CDN to the default spec repo source)

[!] CDN: trunk Repo update failed - 56 error(s):
---
---

1. Check the version number to see if the version is 1.8 or later

pod --version

2. Remove trunk

pod repo remove trunk

3. Enter this directory

cd ~/.cocoapods/repos

4. Execute command

git clone --depth 1 https://github.com/CocoaPods/Specs.git master

5. Here you are. Just execute pod install again.

[Solved] Uncaught SyntaxError: The requested module does not provide an export named

Uncaught SyntaxError: The requested module does not provide an export named

Original code:

Error report:

Solution: remove braces

Explanation:

When using export default, the corresponding import statement does not need to use braces
when export default is not used, the corresponding import statement needs to use braces
the export default command is used to specify the default output of the module. Obviously, a module can only have one default output, so the export default command can only be used once. Therefore, the Import command does not need to be followed by parentheses, because it can only correspond to the export default comman.

[Solved] Navicat premium 15 Registration Machine Error: Error on Generate Activation Code…

Navicat premium 15 Registration Machine Error: Error on Generate Activation Code…

How to Solve:

① There is only one chance to patch. If it fails, uninstall, delete the registry, and then reinstall

Win + R, enter regedit and find the computer \HKEY_CURRENT_USER\Software\PremiumSoft, delete all Navicat folders in premiumsoft, and then start again (no all pattern found! Use this to solve the error)

② Error on Generate Activation Code

The network needs to be disconnected during the operation. It is recommended to install the segment at the beginning. If it fails at one time, you need to uninstall, delete the registry, install again, and then patch + manual activation

[Solved] umi Project Create Error: Rendered more hooks or Rendered fewer hooks

Error: Rendered more hooks or Rendered fewer hooks

Use usestate to report errors only for new UMI projects, not for code and syntax errors.

Error reporting: rendered more hooks than during the previous render Or rendered feeder hooks than expected

Solution: find umirc.tsx file, delete fastrefresh attribute

// fastRefresh: {}

[Solved] “status“:405,“error“ Request method ‘POST‘ not supported“

“status“:405,“error“ Request method ‘POST‘ not supported“

Error Messages:

-“status”:405,“error”:“Method Not Allowed”,“exception”:“org.springframework.web.HttpRequestMethodNotSupportedException”,“message”:“Request method ‘POST’ not supported”

 

code:

@Controller
public class EmpController {

    @Autowired
    private EmpService empService;

    @GetMapping("/empadd")
    public String empAdd(Model model) {
        model.addAttribute("list",empService.showAll());
        return "emp-add";
    }

    @PostMapping("/add")
    public String add(Emp emp, MultipartFile file){
        empService.insert(emp,file);
        return "emp-add";
    }
}

 

Reason:
As it says in the Spring REST guide,

@RequestMapping maps all HTTP operations by default

but if, as they suggest, you added a specification of the allowable http methods:

@RequestMapping(method=GET)

then only GETs will be allowed. POSTs will be disallowed.
If you want to allow both GET and POST, but disallow all other http methods, then annotate your controller method thusly:

@RequestMapping(value = "/greeting", method = {RequestMethod.GET, RequestMethod.POST})
public Greeting greeting(@RequestParam(value="name", defaultValue="World") String name) {
    return new Greeting(counter.incrementAndGet(),
                        String.format(template, name));
}

When you start the application, all the request handler mappings are logged out. You should see a line like this in your log (in the IDE console or command line window):

s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/greeting],methods=[GET || POST]}" onto public hello.Greeting hello.GreetingController.greeting(java.lang.String)

Solution:

Modify

@GetMapping("/empadd")

to

@RequestMapping("/empadd")

[Solved] MongoDB Update User Error: Error: not authorized on admin to execute command

MongoDB Update User Error: Error: not authorized on admin to execute command

background

The thing is this: MongoDB weak password vulnerability and high risk, the password must be changed!
Environment: windows, the database is open authentication

report errors

Log in to the database and execute:

use admin
db.changeUserPassword('admin','123456');

report errors:

[Error] Error: not authorized on admin to execute command

Solution:

1. Close mongodb service (Windows service, registered)
2. Start the service without identity authentication:

mongod --dbpath=dbpath

3. Open new CMD

mongo
use admin
db.changeUserPassword('admin','123456');

Normal
4. Restart mongodb service

[Solved] ERROR OGG-01028 Detect partial pdata at rba xxxxxx without coinciding crash recovery marker record

ERROR OGG-01028 Detect partial pdata at rba xxxxxx without coinciding crash recovery marker record

Ogg version: 11.2.1.0.13

Fault description:

The Ogg extraction process was abended because the database instance was automatically restarted in the early morning

Ogg process down view the $GGATE_HOME/ggserr.log. The errors are as follows:

ERROR OGG-01028 Detect partial pdata at rba xxxxxx without coinciding crash recovery marker record in log with seqno = xxxxxx

The contents of log error reports are as follows:
error ogg-01028 detects partial pdata at RBA XXXXXX, which does not coincide with the crash recovery mark record in the log with seqno = XXXXXX

Cause of failure:

When the classic extraction fails in the log writing process, there is incomplete extraction, which will lead to the downtime of the extraction process

Troubleshooting:

1. Try to restart the extraction process, which will be started, generally without any problems, and will continue to process the logs

2. If restarting the extraction process fails, add the following parameters to the extraction process to skip incomplete log data and restart the extraction process

tranlogoptions _skipincompletelogdata

[Solved] Spyder Start Error: “An error occurred while starting the kernel“

Record – when Spyder is opened, “an error occurred while starting the kernel” appears

when using Spyder, "an error occurred while starting the kernel" appears. Spyder reported an error attributeerror: type object 'ioloop' has no attribute 'initialized'

Solution:

Search the online methods as follows:
method 1:
Restart Spyder:
the command is Spyder — reset

“An error occurred while starting the kernel” still appears after trying.

Method 2:
enter CONDA update Spyder ipykernel tornado pyzmq
in the terminal. This is also tried, but still an error is reported

The following three methods are finally solved. It is said that the version of tornado is too high. After checking that my version is 6.0, I uninstalled the original version and reinstalled a lower version.

 pip uninstall tornado
 pip install tornado==4.5.3: