go的环境设置问题,执行 go env -w GO111MODULE=auto 我的环境:Windows 7, Go 1.17 D:\Apps\GOPATH\src\code.oldboyedu.com\studygo>cd day01 D:\Apps\GOPATH\src\code.oldboyedu.com\studygo\day01>cd helloworld D:\Apps\GOPATH\src\code.oldboyedu.com\studygo\day01\helloworld&g…
[环境介绍] 系统环境:Solaris + Oracle 12CR2   [背景描述] 基于集团数据库安全检查项,需要把sys用户锁定或者修改复杂口令整改. 在整改前已经对参数remote_login_passwordfile进行修改. 漏洞项:禁止SYSDBA用户从远程登陆修复方法:(紧急,无具体操作方案)在spfile中设置REMOTE_LOGIN_PASSWORDFILE=NONE来禁止SYSDBA用户从远程登陆:SQL>alter system set remote_login_pass…
https://golangbyexample.com/go-mod-sum-module/ Understanding go.sum and go.mod file in Go (Golang) – Welcome To Golang By Example https://golangbyexample.com/go-mod-sum-module/ Table of Contents Overview Example Example of indirect dependency in go.m…
在项目中的go.mod文件中有这样一句: require ( github.com/xxx-devops/xx1/sdk/go v2.2.3 ) 项目的编译没有问题,但是goland中出现如下提示: go: errors parsing go.mod: D:/source/github/ahfuzhang/go.lib/go.mod:8: require github.com/xxx-devops/xx1/sdk/go: version "v2.2.3" invalid: module…
17down votefavorite 4 In my Dockerfile I've got : ADD ../../myapp.war /opt/tomcat7/webapps/ That file exists as ls ../../myapp.war returns me the correct file but when I execute sudo docker build -t myapp . I've got : Step 1 : ADD ../../myapp.war /op…
使用sudo pip install ......的时候出现下面一段黄色的代码: The directory '/home/stone/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip…
文件流 FileStream  可读可写  大文件  释放 StreamReader 读取   释放 StreamWriter 写入   释放 using 中释放 File 可读可写  小文件 操作文件,静态类,对文件整体操作.拷贝.删除.剪切等. Path类 针对字符串进行操作 文件操作 重点讲解FileStream.StreamReader.StreamWriter.File.Directory.Path这几个类. FileStream,通过大文件拷贝的案例. string str = "今…
不多说,直接上干货! 前期博客 Apache版Phoenix的安装(图文详解) 问题现象 Traceback (most recent call last): File , in <module> import argparse ImportError: No module named argparse 解决办法 [root@master phoenix]# yum install python-argparse Loaded plugins: fastestmirror, refresh-p…
string path = @"c:\请假统计表.xlsx"; Workbook workBook = new Workbook(); workBook.Open(path); Aspose.Cells;  版本是 4.4.0.5  最新版本好像没上面问题 执行上面语句报错:This file's format is not supported or you don't specify a correct format 错误原因  excel  版本问题 ,把excel  改为2003…
在返回的JSon字符串里面总是莫名其妙的添加了<pre>标签,例如返回内容为"ok",在浏览器里面就变成了"<pre style="word-wrap: break-word; white-space: pre-wrap;">ok</pre>",这样就导致Ajax解析返回值的时候出现错误. 解决办法都是把response的返回类型设置为[text/html]. context.Response.ContentT…