之前我文章中我们略微提到过管道符的操作,但并不多,这篇主要讲解一下详细的使用方法 假设我们要对数组中的数字1-10中我想要从右往左换句话说就是从字符串最后一个字开始倒过来往前数截取6个子字符串时可以这么做 那如果我只想从左往右数截取6个呢? 在Select-Object中还有Skip参数,表示跳过N ...
分类:
系统相关 时间:
2017-08-24 01:08:19
阅读次数:
212
After reading the blog, the main take away from there is: "Never send back JOSN array to the client side, it is easy to be hijacked, using JSON object ...
分类:
Web程序 时间:
2017-08-23 20:49:59
阅读次数:
219
1.下载MySQL Community Server 5.7.13 解压MySQL压缩包 2.修改 my-default.ini skip-grant-tables 作用是安装好MySQL后 免密码登录,然后可以修改root 密码。 3. 添加环境变量 操作如下: 1)右键单击我的电脑->属性->高 ...
分类:
数据库 时间:
2017-08-23 13:24:31
阅读次数:
209
安装了MYSQL5.7之后,用root用户登录不了。解决办法是:$sudovim/etc/mysql/mysql.conf.d/mysqld.cnfadd"skip-grant-tables"$sudoservicemysqlrestart$mysql-uroot-pmysql>usemysql;mysql>updateusersetauthentication_string=password(‘1qaz@WSX3edc$RFVyl‘)whereuser=‘..
分类:
数据库 时间:
2017-08-22 21:54:52
阅读次数:
214
1.首先输入“servicemysqldstatus”查看当前mysql服务状态,下图显示正在mysqld服务正在运行中。2.输入“killall-TERMmysqld”命令停止所有的mysqld进程。3.输入“servicemysqldstop”命令停止mysqld服务。4.输入“mysqld_safe--skip-grant-tables&”命令以无密码方式进入M..
分类:
数据库 时间:
2017-08-22 16:00:21
阅读次数:
174
Given a staircase and give you can take 1 or 2 steps at a time, how many ways you can reach nth step. Same problem link. Climbing Stairs ...
分类:
其他好文 时间:
2017-08-22 13:12:47
阅读次数:
127
A Simple Nim Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Problem Description Two players take turns picking candi ...
分类:
其他好文 时间:
2017-08-20 14:52:33
阅读次数:
197
题目链接:HDU 6015 一开始读题有点懵,不知道是什么意思,不过后来想到既然是 BestCoder 的题,那么就用它的思维去理解,大胆 yy 题意即可。 题意大概就是说有 n 们课程,Luras 每逃一门都能得到相应的 value,但同一们课程(前面的字符串完全相同)最多只能逃两次,逃两次后就必 ...
分类:
其他好文 时间:
2017-08-19 19:56:34
阅读次数:
170
Alice is going to take all her savings out of the ATM(Automatic Teller Machine). Alice forget how many deposit she has, and this strange ATM doesn't s ...
分类:
其他好文 时间:
2017-08-19 10:54:45
阅读次数:
180
You are playing the following Flip Game with your friend: Given a string that contains only these two characters: + and -, you and your friend take tu... ...
分类:
其他好文 时间:
2017-08-19 09:23:18
阅读次数:
174