ICode9

精准搜索请尝试: 精确搜索
  • laraver6-数据填充2022-05-18 10:02:17

    1.创建模型工厂 php artisan make:factory AdminFactory --model=Admin <?php/** @var \Illuminate\Database\Eloquent\Factory $factory */use App\Models\System\Admin;use Faker\Generator as Faker;$factory->define(Admin::class, function (Faker $faker) {

  • ubuntu16安装uwsgi2022-05-17 19:31:16

    先说解决办法:1、python的版本用3.8;2、gcc降级,教程如:https://blog.csdn.net/haojie_duan/article/details/124143322,https://blog.csdn.net/feinifi/article/details/121793945;3、用pip安装uwsgi,别用apt安装。   我的环境是python3.9,首先用pip install uwsgi安装时提示报错,安装不

  • 如何降低node 包版本2022-05-16 02:00:07

    降低node版本的方法:首先全局安装n模块;然后通过“n rm v8.16.0”卸载指定的node版本;接着安装nvm;最后通过“nvm use 10.16.2”安装指定版本即可。 本文操作环境:windows7系统、nodejs10.16.2版,DELL G3电脑。 Node版本的升级和降级 在开发的工程中,我们可能需要经常切换node版本来应

  • 20192407 2021-2022-2 《网络与系统攻防技术》实验六实验报告2022-05-14 13:00:29

    1.实验内容 本实践目标是掌握metasploit的基本应用方式,重点常用的三种攻击方式的思路。具体需要完成: 1.1一个主动攻击实践,尽量使用最新的类似漏洞; 1.2 一个针对浏览器的攻击,尽量使用最新的类似漏洞; 1.3 一个针对客户端的攻击,如Adobe或office,尽量使用最新的类似漏洞; 1.4 成功应用

  • use-after-free in ip6_xmit --- syscall(SYS_connect, arg, &sa, sizeof(sa), 0, 0, 0);2022-05-14 12:34:53

    https://groups.google.com/g/syzkaller/c/YpU1_PMV_gU/m/FmLVGHqTCAAJ   Hello,The following program triggers use-after-free in ip6_xmit:// autogenerated by syzkaller (http://github.com/google/syzkaller)#include <syscall.h>#include <string.h>#i

  • vue3定义全局变量方法变更及$on废弃2022-05-14 01:32:53

    在vue2中,直接 Vue.prototype.$bus = new Vue() 但是在vue3中,方法改变了(因为$on方法的废弃,需要用到mitt) const app = createApp(App) app.config.globalProperties.$bus = new mitt(); app.use(store).use(router).mount('#app')   则使用$bus.emit去提交 然后使用$bus.on

  • vue插件2022-05-12 22:31:08

    插件通常用来为 Vue 添加全局功能。插件的功能范围没有严格的限制——一般有下面几种: 添加全局方法或者 property。如:vue-custom-element 添加全局资源:指令/过滤器/过渡等。如 vue-touch 通过全局混入来添加一些组件选项。如 vue-router 添加 Vue 实例方法,通过把它们添

  • 严格模式2022-05-11 23:01:03

    一、什么是严格模式?在严格的条件下允许 JS 代码。消除了 JavaScript 语法的一些不合理、不严谨之处,减少了一些怪异行为。提高编译器效率,增加运行速度。禁用了在 ECMAScript 的未来版本中可能会定义的一些语法,为未来新版本的 JavaScript 做好铺垫。比如一些保留字,如:class、enum、ex

  • vue项目中配置状态管理库vuex的流程2022-05-11 16:01:22

    1.下载并引入vuex相关内容   import {creatsStore} from 'vuex'   2.创建状态管理库对象store const store = createStore({ })   3.对外抛出store对象   export default store;   4.在main.js中将store对象与当前项目关联 createApp(app).use(router).use(store).mo

  • 转:glove词向量的使用方法2022-05-10 10:32:05

    How to use Pre-trained Word Embeddings in PyTorch NPL之如何使用Glove--词向量转化  

  • puppeteer 13.0.0 版本后,生成图片比之前的版本慢2022-05-10 00:01:33

    如题,版本从12.0.1切换到13.0.0后,html生成图片的速度比之前慢了将近一倍,多方查找,发现,启动puppeteer的时候传入了这样的配置: const puppeteer = require('puppeteer'); const browser = puppeteer.launch({ headless: true, args: [ '--use-gl=swiftshader',

  • Academic Style2022-05-06 19:02:55

    Include essay + report. can't use contraction it's -> it is hasn't -> has not can't use informal words: conjunction should go in the middle of a sentence 60% -> 60 percentage some -> precise+specific data but -> h

  • Neo4j Fundamentals-Graphs Are Everywhere2022-05-04 11:04:58

    Neo4j Fundamentals Graph Thinking The Seven Bridges Graph Elements Graph Structure Graphs Are Everywhere Property Graphs What is a Property Graph? Native Graph Advantage Non-graph Databases to Graph Your First Graph The Movie Graph VIDEO

  • CANOPEN介绍2022-05-04 09:32:17

    1.CIA(CAN IN AUTOMINIION) CIA官网 2.CANOPEN的开源代码库 CANOPEN开源库 有关stm32的移植应用 3.github的质量不错的一个库 Easy CANopen Easy CANopen is a protocol for shaping the CAN-bus message in a specific way that suits industrail automation. CANopen is a very

  • mac qcachegrind打不开xdebug性能报告问题2022-05-03 18:03:51

    php 7.3.29 xdebug 3.1.4 问题: 按照网上配置的xdebug性能分析的参数,生成了性能文件如下,但是使用qcachegrind打不开。 解决:php.ini xdebug.use_compression参数配置问题。   查看xdebug官网文档,有配置项use_compression说明。   意思是mac平台qcachegrind 工具不支持.gz 格式的

  • 使用gulp压缩时报错Error [ERR_REQUIRE_ESM]: Must use import to load ES Module2022-05-03 14:00:27

    最近升级了一下gulp,发现再次压缩时报错 原因是gulp-imagemin 8.0.0只支持ES6语法,而我用的是CommonJS的语法,在引入模块时使用的是require,所以在使用gulp-imagemin的时候就出错了 解决方法: SyntaxError: Cannot use import statement outside a module STEP1: 将gulpfile.js改为gu

  • [转载]I/O重定向2022-05-02 17:01:30

    原文地址:https://www.keil.com/pack/doc/compiler/RetargetIO/html/_retarget__overview.html    The software component Compiler allows you to retarget I/O functions of the standard C run-time library Overview Application code frequently uses standard I/O libr

  • PHP中的namespace、use与require2022-04-30 01:01:40

    namespace(命名空间):其实就是声明了空间,主要作用是防止在引入.php文件的时候防止.php内部的类/函数/常量或第三方类/函数/常量之间的名字冲突,如果引用了重复类名会导致报错。如下图:   a.php <?php //namespace think; class a { public function a() { echo 'a';

  • You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version2022-04-29 21:00:57

    修改mysql 的人root密码时,一直提示语法错误。 我之前的语句是: set password for root@localhost = password('123'); 就会提示: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'passw

  • 【Axum】返回 JSON 文本2022-04-29 14:01:35

    环境 Time 2022-01-16 Rust 1.58.0 Axum 0.4.4 概念 参考:https://docs.rs/axum/latest/axum/index.html 示例 main.rs use axum::{routing::get, Json, Router}; use serde_json::Value; use std::net::SocketAddr; #[tokio::main] async fn main() { let app = Router::ne

  • 【Axum】返回 JSON 对象2022-04-29 14:01:13

    环境 Time 2022-01-16 Rust 1.58.0 Axum 0.4.4 概念 参考:https://docs.rs/axum/latest/axum/index.html 示例 toml [package] edition = "2021" name = "game" version = "0.1.0" [dependencies] axum = "*" serde = {version = "*&

  • nodejs入门(0)2022-04-29 12:33:00

    简介 一些回顾 在开始之前,我们先简单回顾一下目前为止已经接触过的web服务端: PHP:安装后自动运行,搭配apache2食用,/etc/init.d/apache2 (restart)(start)(stop)调整apache2状态;php脚本放在/var/www/html中;直接localhost(或云服务器公网IP)+http默认端口 访问。 python_socket服务端:

  • 使用laravel的Log门面打印Object的数据结构2022-04-28 01:31:16

    有两种方法 第一种: use Illuminate\Support\Facades\Log; Log::info(json_encode($user);   第二种: use Illuminate\Support\Facades\Log; Log::info(print_r($user, true));   参考资料: https://www.codegrepper.com/code-examples/php/how+to+log+object+laravel+logger

  • 【Hyper】HTTP 服务器2022-04-27 16:01:29

    环境 Time 2022-01-15 Rust 1.58.0 Tokio 1.15.0 Hyper 0.14.16 概念 参考:https://docs.rs/hyper/latest/hyper/server/index.html 示例 main.rs use hyper::service::{make_service_fn, service_fn}; use hyper::{Body, Request, Response, Server}; use std::convert::Infalli

  • 【工具手册】Metasploit漏洞利用框架2022-04-26 17:01:01

    基本介绍 # Metasploit模块划分 # MSF是渗透测试领域最流行的渗透测试框架,它有以下几个模块: 辅 助 模 块 (Auxiliary,扫描器),扫描主机系统,寻找可用漏洞; 渗透攻击模块 (Exploits),选择并配置一个漏洞利用模块; 攻击载荷模块 (Payloads),选择并配置一个攻击载荷模块; 后渗透攻击模块 (P

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有