ICode9

精准搜索请尝试: 精确搜索
  • goroute应用-模拟远程调用RPC2019-04-19 22:53:34

    go语言简单模拟RPC,详见个人新博客:blog.dlgde.cn 代码如下: package mainimport ( "errors" "fmt" "time")func RPCClient(ch chan string, req string) (string, error) { ch <- req select { case ack := <-ch: return ack, nil case <-time.After

  • Django——form组件is_valid校验机制(源码解析)2019-04-15 12:40:12

    #先来归纳一下整个流程#(1)首先is_valid()起手,看seld.errors中是否值,只要有值就是flase#(2)接着分析errors.里面判断_errors是都为空,如果为空返回self.full_clean(),否则返回self._errors#(3)现在就要看full_clean(),是何方神圣了,里面设置_errors和cleaned_data这两个字典,一个存错误字段,一

  • 机器学习---吴恩达---Week6_2(机器学习系统设计)2019-04-10 11:43:19

    Machine Learing System Design(机器学习系统设计) Ways to improve the accuracy of a classifier(提高分类器准确性的几个方法) Collect lots of data (for example "honeypot" project but doesn't always work)(收集大量数据,并不总是有用) Develop sophisticated features (for e

  • ethtool查看网卡以及修改网卡配置2019-03-29 17:44:08

    ethtool 命令详解 命令描述: ethtool 是用于查询及设置网卡参数的命令。 使用概要:ethtool ethx       //查询ethx网口基本设置,其中 x 是对应网卡的编号,如eth0、eth1等等ethtool –h        //显示ethtool的命令帮助(help)ethtool –i ethX    //查询ethX网口的相关

  • python_Jenkins_本地环境下错误解决方式一览(windows)- updating2019-03-23 14:48:15

     Errors: 1、导入模块时,提示找不到模块 ModuleNotFoundError: No module named 'python_test_auto'  correction 在jenkins的系统设置加入全局变量(value根据自己的目录而定)   key:  PYTHONPATHvalue: D:\language_python     1  

  • ARE 212: Problem Set 32019-03-14 19:40:23

    ARE 212: Problem Set 3Spring 2019Wage Regressions - Blackburn and Neumark (QJE 1992)The goal of this problem set is to explore some tests for heteroscedasticity and explore the fixes discussedin class. The paper is available on Jstor. The data can be down

  • django之forms组件2019-03-14 12:39:46

    在django中forms组件有其强大的功能,里面集合和众多的函数和方法:下面来看一下它的源码 """Form classes"""from __future__ import unicode_literalsimport copyfrom collections import OrderedDictfrom django.core.exceptions import NON_FIELD_ERRORS, ValidationError# Bo

  • Daily errors about log encoding and web page garbled characters2019-03-11 22:47:55

    Daily errors about log encoding and web page garbled characters 错误一: 在使用Maven时,启动插件Tomcat在控制台输出日志中中文汉字乱码 乱码如下: 改为GBK即解决; 错误二: 如上 在网页上出现中文乱码,是在jsp页面缺少头部文件 添加头部文件即可解决 错误三: 在spring

  • 怎样让PHP提示错误信息2019-03-04 08:50:05

    怎样让PHP提示错误信息说明工具解决步骤1. 首先使用编辑工具打开 php 配置文件2. 在php配置文件的头部添加以下几行代码3.重启服务器 说明 从源代码安装PHP的默认情况下,在进行代码测试时不提示任何错误信息,其实我们只有修改以下PHP的配置文件就可以让它显示错误信息了 工具 1.

  • go标准库的学习-errors2019-02-28 23:43:40

    参考https://studygolang.com/pkgdoc 导入方式: import "errors" errors包实现了创建错误值的函数。 1)func New func New(text string) error 使用字符串创建一个错误,请类比fmt包的Errorf方法,差不多可以认为是New(fmt.Sprintf(...))。 举例: package main import( "errors"

  • Tomcat报错 Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.2019-02-28 18:02:21

          信息: Error parsing HTTP request header  Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level. java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens     at

  • 微信支付返回-1 General errors错误 h5plus dcloud2019-02-28 14:52:33

    微信支付返回-1错误 -100 General errors错误解决: 1、微信支付,要打包为apk 格式的文件,安装在手机测试。 2、并且成功在微信开放平台审核通过。(注意不是微信公众号平台)。 3、在微信开放平台添加APP应用和公众号应用,使用unionid通过微信登录授权并获取用户信息。 4、1.先查看hbui

  • nginx配置文件2019-02-27 08:47:30

    proxy_intercept_errors on ; error_page 404 /404.html; location =/404.html { alias /usr/local/nginx/html/404.html; }

  • idou老师教你学Istio 27:解读Mixer Report流程2019-02-22 10:57:10

    1、概述 Mixer是Istio的核心组件,提供了遥测数据收集的功能,能够实时采集服务的请求状态等信息,以达到监控服务状态目的。 1.1 核心功能 •前置检查(Check):某服务接收并响应外部请求前,先通过Envoy向Mixer(Policy组件)发送Check请求,做一些access检查,同时确认adaptor所需cache字段,供之后Repo

  • Linux网络相关2019-02-16 11:02:42

    Linux网络相关 ifconfig查看网卡ip(yum install net-tools) ifup eth0/ifdown eth0 设定虚拟网卡eth0:1 mii-tool eth0 查看网卡是否连接 ethtool eth0 也可以查看网卡是否连接 更改主机名 hostnamectl set-hostname aminglinux DNS配置文件/etc/resolv.conf /etc/hosts文件 ifconf

  • pymongo.errors.OperationFailure: Authentication failed.2019-02-15 16:38:48

      mongoDB有不同的认证机制,3.0版本以后采用的是'MONGODB-CR', 之前的版本采用的是'MONGODB-CR'。 所以,以我的版本情况,显然应该用'SCRAM-SHA-1' from pymongo import MongoClient host = '127.0.0.1' client = MongoClient(host, 27017) #连接mydb数据库,账号密码认证 db = client

  • mcelog用法详解2019-02-14 13:49:53

    手动启动mcelog方法: # mcelog --daemon Run mcelog in daemon mode, waiting for errors from the kernel.     后台服务启动mcelog: RHEL 7:     systemctl start mcelog     systemctl enable mcelog   RHEL 6:     service mcelogd start     chkconfig

  • Type Systems2019-01-12 15:02:59

    This section deals with more theoretical aspects of types. A type system is a set of rules used by a language to structure and organize its collection of types. We use the term object (or data object) to denote both the storage and the stored value. The o

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

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

ICode9版权所有