
笔记
isomebody
仰望星空,脚踏实地
展开
-
Windows 7 64位默认path环境的配置
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\原创 2017-06-01 08:46:25 · 9013 阅读 · 2 评论 -
windows update失败无法进入系统且安全模式也卡在还原界面的解决
一. 问题描述:windows update失败,系统老是卡在了还原更新的界面。在网上看到说可进入“安全模式”,关闭自动更新,再重新进入系统。但是进入“安全模式”后还是卡在了更新失败,正在还原的界面。还有一种说法是进入PE,删除C:\windows\winsxs文件夹中删除pending.xml文件,但是进入PE后却发现根本找不到C盘…..二.我自己的解决方案使用软碟通刻录了一个系统启动盘(我的使原创 2017-07-07 22:08:44 · 47966 阅读 · 1 评论 -
ubuntu下载的zip压缩包打开文件名均为乱码问题的解决
在ubuntu中下载下来的zip文件打开出现以下的情况 通过以下的命令解压后文件名正常显示 unzip -O CP936 filename.zip原创 2017-07-06 07:40:05 · 1467 阅读 · 0 评论 -
leetcode: 8. String to Integer (atoi)
一. 题目描述:Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input原创 2017-07-04 21:55:43 · 402 阅读 · 0 评论 -
python中import与from import之间的区别
使用import与from import都可以导入模板使用import导入模板,那么在程序中使用该模板的时候,必须使用该模板名作为前缀,如import mathprint (math.floor(2.2))而使用from import导入的模板之后,不需要加上前缀名即可使用,如from math import floorfloor(2.2)原创 2017-06-13 07:00:42 · 2007 阅读 · 0 评论 -
JDBC: 连接不同的数据库的Driver和URL的写法
连接不同的数据库的Driver和URL的写法连接mysql Driver类:com.mysql.jdbc.DriverURL:jdbc:mysql://localhost:3306/test连接Oracle Driver类:oracle.jdbc.driver.OracleDriverURL:jdbc:oracle:thin:@localhost:1521:[sid] 连接SQLSe原创 2017-06-11 07:38:34 · 7366 阅读 · 0 评论 -
leetcode:5. Longest Palindromic Substring
一、问题描述Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.Example:Input: "babad"Output: "bab"Note: "aba" is also a valid answer.Example:In原创 2017-07-01 09:49:15 · 209 阅读 · 0 评论 -
关于el5,el6和el7是什么
What does el5, el6, and el7 mean?EL is short for Red Hat Enterprise Linux (EL). - EL6 is the download for Red Hat 6.x, CentOS 6.x, and CloudLinux 6.x. - EL5 is the download for Red Hat 5.x, CentO原创 2017-07-11 07:33:46 · 8222 阅读 · 0 评论 -
leetcode: 6. ZigZag Conversion
一、问题描述The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H NA P L S I原创 2017-06-30 17:02:07 · 313 阅读 · 0 评论 -
leetcode:7. Reverse Integer
问题描述:Reverse digits of an integer.Example1: x = 123, return 321 Example2: x = -123, return -321click to show spoilers.Note: The input is assumed to be a 32-bit signed integer. Your function should re原创 2017-06-30 09:37:10 · 351 阅读 · 0 评论 -
leetcode: 2. Add Two Numbers
一、描述:You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and retu原创 2017-06-29 18:18:31 · 317 阅读 · 0 评论 -
打不开Anaconda Navigator:could not find or load the QT platform plugin "window in"简单解决方法
一问题描述二问题解决一、问题描述:安装Anaconda后打不开Anaconda Navigator,出现以下问题 二、问题解决:将\Anaconda3\Library\plugins目录下的platforms文件夹拷贝到\Anaconda3中即可注意:不要把Anaconda安装到有空格的目录,如果还是解决不了问题,可以参考以下的网站:Anaconda not opening: couldn原创 2017-06-08 09:34:12 · 11096 阅读 · 5 评论 -
屏幕尺寸、分辨率、像素密度及其三者之间的关系
屏幕尺寸 屏幕对角线的长度单位英寸,1英寸等于2.54厘米分辨率 横纵向方向像素的大小纵向像素*横向像素,如1920px*1080px单位像素(px)像素密度 指每英寸屏幕所拥有的像素的数量单位dpi三者关系 像素密度=Sqrt(横向像素*横向像素+纵向像素*纵向像素)/屏幕尺寸注意:像素大小并不是固定的,不同的设备像素的大小可能不相同原创 2017-06-06 14:08:16 · 13980 阅读 · 0 评论 -
Error: spawn xxxx ENOENT原因与解决
背景: 用appium测试app时出现了该问题原因: path环境变量配置不当,导致无法找到指定的程序,如Error: spawn cmd.exe ENOENT,出现该问题的原因是因为没有将%SystemRoot%\system32加入path变量中解决:找到xxxx程序所在的路径,将该路径加入到path变量中,问题解决,若没有,可能要重启一下电脑原创 2017-06-01 09:03:52 · 61637 阅读 · 5 评论 -
Struct 2.5 使用通配符提示无法映射问题
一 . 问题描述在Struts2.5中使用通配符,运行时提示没有映射到action,首先检查检查了请求的地址,还有Action类,均无发现问题。既然时映射问题,那么很可能问题就是出现在配置struts.xml文件中,还是没检查出问题。使用struts2.3,发现并没有上面的问题出现,所以怀疑可能时版本问题。二. 原因在struts2.5中为了限制通配符方法的使用,增加了strict-method-i原创 2017-07-28 21:57:37 · 1280 阅读 · 0 评论