最近写了个小程序,用于将固态硬盘的写入量等信息显示在任务栏,最开始使用Windows API也可以实现,但是当任务栏托盘增加的时候,会被遮盖,最终采用了DeskBand来实现,填了很多坑。 参考的GitHub地址:https://github.com/dsafa/CSDeskBand DeskBan ...
分类:
Windows程序 时间:
2017-12-29 12:20:15
阅读次数:
3260
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng ...
分类:
其他好文 时间:
2017-12-28 19:43:28
阅读次数:
149
0、引言 在看机器学习实战这本书时,遇到numpy.tile(A,B)函数,开始没太明白这个函数用法,网上帖子也不太详细,经过一番试验后基本搞明白基本用法,分享给大家。 1、函数定义 tile函数是模板numpy.lib.shape_base中的函数。 函数形式:tile(A,rep) 功能:重复A ...
分类:
其他好文 时间:
2017-12-28 00:08:18
阅读次数:
260
Generally it can be used for opening and files in shall like open statement in Perl. The following examples illustrate the use of exec for manipulating file descriptors:exec 3< inputfile
分类:
其他好文 时间:
2017-12-26 14:31:53
阅读次数:
193
#!/usr/bin/env python3 from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets('MNIST_data', one_hot=True) import... ...
分类:
其他好文 时间:
2017-12-22 19:47:40
阅读次数:
393
Tomcat的默认工具manager配置,在很多的生产环境中由于基本用不到、或者是不太需要使用Tomcat默认的manager管理页面时一般都会把Tomcat的默认webapp下的内容给删除了,但是如果需要使用Tomcat默认的manager来管理项目时就需要保留相应的文件目录。在Tomcat中的webapps中有如下目录:docs(Tomcat本地说明文档)、examples(Tomcat相关的
分类:
其他好文 时间:
2017-12-22 00:42:12
阅读次数:
385
文件名 文件路径 spark-example-2.11-2.00.jar spark/examples/jars/ 运行结果 ...
分类:
其他好文 时间:
2017-12-21 22:58:16
阅读次数:
186
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng ...
分类:
其他好文 时间:
2017-12-19 12:30:29
阅读次数:
210
参考: https://www.tecmint.com/ip command examples/ 学会linux的配置ip,配置网关,添加路由等命令 操作&查看接口 查看所有接口ip+mac ip a 查看eth0的ip+mac ip a s eth0 给一个接口设置多个ip (ip addr ad ...
分类:
系统相关 时间:
2017-12-18 14:20:02
阅读次数:
267
题目链接:http://codeforces.com/contest/2/problem/A 题目: The winner of the card game popular in Berland "Berlogging" is determined according to the followin ...