ICode9

精准搜索请尝试: 精确搜索
  • Django后台美化2022-09-15 18:31:07

    Django后台美化 1.Xadmin 1.1 安装 通过如下命令安装xadmin的最新版: pip install https://github.com/sshwsfc/xadmin/tarball/master 在配置文件中注册如下应用 INSTALLED_APPS = [ ... 'xadmin', 'crispy_forms', 'reversion', ... ] xadmin有建立自己

  • tasks.json2022-09-14 19:05:10

    你猜猜这玩意怎么用? { // See https://go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format "version": "2.0.0", "tasks": [ { "label": "g++",

  • Retrying task after failure: Waiting for lock. org.apache.iceberg.hive.HiveTableOperations$WaitingFo2022-09-04 21:35:16

    执行spark任务居然碰到了hive中表的被锁了,导致写数据时失败,这个还真是头一次碰到过这回事。 错误信息如下: 22/09/04 21:02:28 WARN Tasks: Retrying task after failure: Waiting for lock. org.apache.iceberg.hive.HiveTableOperations$WaitingForLockException: Waiting for lo

  • 利用加密协议进行挖矿的样本分析2022-08-21 13:00:33

    https://app.any.run/tasks/a11a56a6-3fa6-40f4-995d-8fbde7e91125/#   命令行: attrib.exe_-a savana1998@bk.ru -o stratum+ssl://xmr.pool.minergate.com:45700:savana1998@bk.ru -u savana1998@bk.ru -p x -t 2_4_0_4 pcap下载后可以看到:  

  • 力扣|Q1834单线程CPU-SingleThreadedCPU2022-08-17 00:30:20

    Q1834SingleThreadedCPU 简介 给你一个二维数组 tasks,用于表示 n​​​​​​ 项从 0 到 n - 1 编号的任务。其中 tasks[i] = [enqueueTimei, processingTimei] 意味着第 i​​​​​​​​​​ 项任务将会于 enqueueTimei 时进入任务队列,需要 processingTimei 的时长完成执行。

  • 【自动化运维专题 4】ansible的 playbook 使用及举例2022-08-14 22:01:08

    1.playbook 简介     ansible的单条使命叫ad-hoc,将多条命令写在一块进行执行叫playbook。 playbook,即剧本,现实中由演员按照剧本表演,在Ansible中,这次由计算机进行表演,由计算机安装,部署应用,提供对外服务,以及组织计算机处理各种各样的事情。 那么为什么要使用 playbook 呢? 执行一

  • python | asyncio协程写法2022-07-12 23:36:12

    python | asyncio协程写法 贴个代码方便以后用: if __name__ == '__main__': client = Pybilidanmu() tasks = [ client.enter_room(), ] loop = asyncio.get_event_loop() try: loop.run_until_complete(asyncio.wait(tasks)) except KeyboardInterrupt: for tasks

  • vscode中配置C/C++调试环境(launch.json和tasks.json)2022-07-08 19:36:37

    launch.json和tasks.json launch.json launch.json中存放运行或者调试可执行文件时的配置: { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsof

  • Executing tasks in parallel2022-07-04 18:31:37

    Executing tasks in parallel 问题 Ok, so basically I have a bunch of tasks (10) and I want to start them all at the same time and wait for them to complete. When completed I want to execute other tasks. I read a bunch of resources about this but I can'

  • vscode 配置 c /c++ debug 运行环境2022-06-21 14:31:12

    vscode 配置 c,c++ debug 运行环境 这里我们要配置 tasks.json ,最好搞一个模板 ctrl shift + p, 打开 open user tasks { // See https://go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format "version": "2.0.0",

  • 测试:Fiddler官网帮助文档中文版2022-06-16 00:34:57

    前言 我在学习软件测试工具Fiddler的过程中,查看官网 https://docs.telerik.com/fiddler/ 上关于Fiddler的帮助文档,由于没有中文版,为了方便自己快速检索目录,在此翻译其英文版目录为中文,如有翻译不当之处,非常欢迎各位能指出点评。以下为官网 https://docs.telerik.com/fiddler/ 显示

  • 测试一次多线程2022-06-13 11:02:16

    1 using System; 2 using System.Collections.Generic; 3 using System.Diagnostics; 4 using System.Linq; 5 using System.Text; 6 using System.Threading; 7 using System.Threading.Tasks; 8 9 namespace AsyncTask 10 { 11 class Program 12

  • 杂七杂八2022-06-09 14:00:13

    杂七杂八 get_object_or_404 常用于查询某个对象,找到了则进行下一步处理,如果未找到则给用户返回404页面 使用方法: 1.导入包:from django.shortcuts import get_object_or_404 2.举例:instance = get_object_or_404(Tasks, pk=int(task_id)) 其中Tasks是model名,后面是查询条件

  • Pytest-编写测试函数2022-05-18 22:05:10

    2 编写测试函数 2.1 使用 assert 声明 pytest 允许在 assert 关键字后面添加任何表达式。如果表达式的值通过 bool 转换后等于 False,则意味着测试失败。 pytest 有一个重要功能是可以重写 assert 关键字,pytest 会截断对原生 assert 的调用,替换为 pytest 定义的 assert,从而提供更多

  • 协程的嵌套2022-05-17 22:04:21

        # coding: utf-8 # @Time : 2022-05-17 13:15 # @Author : AngDH import asyncio import time now = lambda: time.time() async def task1(): await asyncio.sleep(1) print("task1 done") return "task1" async def task2():

  • C#(063):三、并行编程 - Task同步机制。TreadLocal类、Lock、Interlocked、Synchronization、ConcurrentQueue以及Barrier等2022-05-15 09:34:44

    **一、并行编程 - 数据并行 System.Threading.Tasks.Parallel 类 ** 二、并行编程 - Task任务 三、并行编程 - Task同步机制。TreadLocal类、Lock、Interlocked、Synchronization、ConcurrentQueue以及Barrier等 四、并行编程 - 并行LINQ(PLINQ) 的使用。AsParallel 五、并行编程

  • JavaScript 任务池2022-05-13 22:34:57

    JavaScript 任务池 本文写于 2022 年 5 月 13 日 线程池 在多线程语言中,我们通常不会随意的在需要启动线程的时候去启动,而是会选择创建一个线程池。 所谓线程池,本意其实就是(不止这些作用,其余作用可以自行查阅): 节省操作系统资源 限制最大线程数。 对于 JavaScript 来说,虽然不存在

  • windbg的时间旅行实现对 C# 程序的终极调试2022-05-13 10:02:34

    一:什么是时间旅行 简而言之就是把程序的执行流拍成vlog,这样就可以对 vlog 快进或者倒退,还可以分享给别人做进一步的分析,是不是想都不敢想。 很开心的是 windbg preview 版本中已经实现了,叫做 时间旅行调试 TTD,相比传统的 静态分析 不知道好多少倍。 为了能提起大家兴趣,我就举二个

  • ewm Generate Warehouse Tasks for Warehouse Request2022-03-21 13:31:57

    /SCWM/TO_CREATE_WHR 如果对一张dn多次调用,需要调用dn对象clean up *------------------------------------------------------- *2021-6-2 14:40:20 SAP40 for bug修复 * call function '/SCWM/WHR_CLEANUP_INT'. "这句是外向交货单 if lo_dlv is not bound. "内向交货单自己c

  • playbook和roles2022-03-01 11:33:17

    一、Playbook playbook模块参考 - 自动部署 Nginx 案例 1、编写playbook [root@slave-1 ansible]# vi nginx.yml --- - hosts: webservers vars: hello: Ansible tasks: - name: 添加 YUM 仓库 yum_repository: name: nginx description: nginx repo

  • Celery介绍,基于django框架,场景例如短信发送。2022-02-28 18:02:48

    使用celery 完成短信发送 介绍: 任务队列是一种跨线程、跨机器工作的一种机制.   任务队列中包含称作任务的工作单元。有专门的工作进程持续不断的监视任务队列,并从中获得新的任务并处理.   celery通过消息进行通信,通常使用一个叫Broker(中间人)来协client(任务的发出者)和work

  • VSCode的C/C++扩展功能2022-02-21 20:34:35

    VSCode的C/C++扩展功能 1. 在 Linux 上 使用 C++1.1 创建 Hello World 1.2 探索 IntelliSense1.3 构造 helloworld.cpp1.3.1 运行 build1.3.2 修改 tasks.json二级目录三级目录 Reference: Visual Studio Code的C/C++扩展功能Using C++ on Linux in VS Code 1. 在 Li

  • windows启动celery以及celery正常启动后能收到任务但不执行任务的解决办法2022-02-21 11:32:26

    1、windows启动celery 在终端执行命令:celery -A tasks worker -l INFO -P eventlet -c 10   2、celery正常启动后能收到任务但不执行任务的解决办法 解决方法:https://www.cnblogs.com/qumogu/p/13284173.html celery可以正常收到任务,但是不执行 解决办法:启动的时候,使用eventlet

  • 621. 任务调度器2022-01-21 10:03:16

    文章目录 1.题目2.代码 1.题目 题目要求 eg: 输入: tasks = ["A","A","A","B","B","B"], n = 2 输出: 8 执行顺序: A -> B -> (待命) -> A -> B -> (待命) -> A -> B. 题目解释:链接这道题目不需要去再次刷,题目的技巧性太强 2.代码 所以整体的

  • C++条件变量2022-01-13 14:31:47

    #include <thread> #include <mutex> #include <condition_variable> #include <list> #include <iostream> class Task { public: Task(int taskID) { this->taskID = taskID; } void doTask() { std:

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

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

ICode9版权所有