- 博客(121)
- 资源 (1)
- 问答 (4)
- 收藏
- 关注
原创 java jsoup 网络爬虫 jsoup解析html Java爬虫 Jsoup爬虫 jsoup例子
java jsoup 网络爬虫java jsoup 网络爬虫 学习例子(一)抓取豆瓣电影名称+推荐星级 java jsoup 网络爬虫 学习例子(二)只抓取豆瓣电影5星(力荐)电影名称 java jsoup 网络爬虫 学习例子(三)抓取豆瓣电影海报图片 下载到本地 java jsoup 网络爬虫 学习例子(四)抓取网页连接插入mysql数据库 java ...
2016-05-06 08:03:28 184096 26
原创 vue Object.freeze(obj) 学习 例子 整理 记录 自学 前端
vue Object.freeze(obj) 学习 例子 整理 记录 自学 前端<div id="app"> <p>{{ foo }}</p> <button v-on:click="foo = 'baz'">Change it</button>&...
2016-05-27 20:40:57 136038
原创 学习笔记
学习笔记#!/bin/bashBACKUPFILE=backup-$(date +%m-%d-%Y)# 在备份文件中嵌入时间.archive=${1:-$BACKUPFILE}# 如果在命令行中没有指定备份文件的文件名,# 那么将默认使用"backup-MM-DD-YYYY.tar.gz".tar cvf - `find . -mtime -1 -type f -print` > $archive....
2016-05-27 20:39:46 11163
原创 Linux 查找指定时间区间日志
Linux 查找指定时间区间日志sed -n '/2012-08-2510:57:46/,/2014-08-2511:03:49/p' catalina-daemon.out
2016-05-27 20:39:16 134131
原创 Linux 查找日志最新的5万条到指定文件
Linux 查找日志最新的5万条到指定文件tail -n 50000 catalina-daemon.out > 5wlog.txt
2016-05-27 20:38:59 134213
原创 python 学习笔记
python 学习笔记#!/usr/bin/env python3import mathdef longest_side(a, b): """ Function to find the length of the longest side of a right triangle. :arg a: Side a of the triangle :arg b: Side b of...
2016-05-27 20:38:28 11272
原创 Python学习笔记
Python学习笔记#!/usr/bin/env python3fobj = open("sample.txt")b = fobj.readline()print(b)a = fobj.read()fobj.close()print(a)print("-" * 30)x = open("sample.txt")c = x.readline()x.clos...
2016-05-27 20:37:30 11314
原创 Python学习笔记
Python学习笔记 #!/usr/bin/env python3n = int(input("Enter the number of students: "))data = {} # 用来存储数据的字典变量Subjects = ('Physics', 'Maths', 'History') # 所有科目for i in range(0, n): name = input('Ent...
2016-05-27 20:36:46 11064
原创 Python 斐波那契(Fibonacci)数列
Python 斐波那契(Fibonacci)数列#!/usr/bin/env python3a = 0b = 1tmp = 0while b < 100: print(b, end = ' ') tmp = a a = b b = tmp + bprint()
2016-05-27 20:36:16 133941
原创 Linux find学习笔记
Linux find学习笔记查找空文件find . -empty | xargs ls -rtl;查找10分钟之内修改的txt文件find . -name *.txt -mmin -10查找3分钟之前修改的txt文件find . -name *.txt -mmin +3查找文件名为test.txt的文件(递归子目录)find . -name test.txt 查找结果:./test.txt./old_file/test.txt...
2016-05-25 21:48:01 11133
原创 Python 乘法表
Python学习笔记#!/usr/bin/env python3print("-" * 103)for i in range(1, 10): j = 1 while j <= i: print("{} * {} = {:2d}".format(j, i, i * j), end = ' ') j += 1 print()print("-" * 103)...
2016-05-25 21:47:41 11209
原创 文件夹或者文件比对工具 Beyond Compare
文件夹或者文件比对工具 Beyond Compare 之前有同事离职了。 没有工作交接。 同事的代码有一部分也没有提交版本库。 结果就是线上的代码和版本库中的文件数量和代码内容不一致。 这时就需要进行两方比对,查找不一致的地方。 如果人工用肉眼进行比对查找,工作量会比较大,还极容易出错。 所以...
2016-05-23 16:02:21 142128
原创 JavaScript Math abs
JavaScript Math abs var abs = Math.abs(-9); console.log(abs);//9
2016-05-21 07:58:59 11211
原创 Python 温度转换
Python 温度转换fahrenheit = 0print("Fahrenheit Celsius")while fahrenheit <= 250: celsius = (fahrenheit - 32) / 1.8 print("{:5d} {:7.2f}".format(fahrenheit, celsius)) fahrenheit += 25...
2016-05-21 07:58:43 11215
原创 javascript console.log 中文乱码
javascript console.log 中文乱码在页面head标签里添加 <meta charset="UTF-8">
2016-05-21 07:58:13 10655
原创 Python 求 N 个数字的平均值
Python 求 N 个数字的平均值N = 10sum = 0count = 0print("please input 10 numbers:")while count < N: number = float(input()) sum += number count += 1 average = sum /Nprint("N = {}, Sum = {}".format(N, sum))p...
2016-05-21 07:57:57 15119 1
原创 Format aborted in /app/hadoop-1.1.2/hdfs/name
Format aborted in /app/hadoop-1.1.2/hdfs/nameY 要大写!!!!!!!!!!!!!!!!!!!!!!Re-format filesystem in /app/hadoop-1.1.2/hdfs/name ? (Y or N) Y
2016-05-21 07:57:43 11211
原创 JavaScript 获取中文星期
JavaScript 获取中文星期/** * 功能:获取中文星期 * 参数:date日期类型 */function getChineseWeek(date) { if (!(date instanceof Date)) { return date + " not a Date"; } var weekName = new Array ("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"...
2016-05-21 07:57:25 142238
原创 Python学习笔记
Python学习笔记 for i in range(1, 101): if i % 7 == 0: continue elif i % 10 == 7: continue elif i // 10 == 7: continue else: print(i)
2016-05-21 07:57:22 11288
原创 Python学习笔记
Python学习笔记nameList = ["aaa", "bbb", "ccc"]for idx in nameList: print(idx)
2016-05-21 07:56:37 11191
原创 JavaScript 检测参数是否为Date类型
JavaScript 检测参数是否为Date类型var a = new Date();var b = "";console.log(a instanceof Date); // trueconsole.log(b instanceof Date); // false
2016-05-20 21:42:52 142452
原创 学习笔记
学习笔记#!/bin/bashcnt=0sum=0for cnt in `seq 2 2 100`do sum=$((cnt+sum))done echo $sum
2016-05-20 21:42:25 15588
原创 学习笔记
学习笔记#!/bin/bashsum=0;for i in `seq 1 100`do if [ `expr $i % 2` -eq 0 ]; then sum=`expr $sum + $i`; fi;done;echo $sum;
2016-05-20 21:42:12 11328
原创 学习笔记
学习笔记#!/bin/bashmax=0;for i in $* do if [ $i -gt $max ] then max=$i fi doneecho $max
2016-05-20 21:41:54 11286
原创 [Err] 1093 - You can't specify target table 's' for update in FROM clause
SELECT name FROM book GROUP BY name HAVING count(name) > 1) ) t WHERE id NOT IN (SELECT id FROM book GROUP BY name HAVING count(name) > 1 )); 出现错误:[Err] 1093 - You can't specify target table 's' for update in FR
2016-05-19 13:43:37 145422
原创 学习笔记
学习笔记#!/bin/bashwhile :do echo -n "Enter a number between 1 and 5:"; read aNum; case $aNum in 1|2|3|4|5) echo "The number you entered is $aNum!"; ;; *) echo "The number y...
2016-05-19 13:16:31 11215
原创 学习笔记
学习笔记#!/bin/bash echo 'Enter a number between 1 and 4:'echo 'The number you entered is:'read aNumcase $aNum in 1) echo 'You have chosen 1' ;; 2) ...
2016-05-19 13:15:56 11296
原创 div 页面框架布局
There is no nutrition in the blog content. After reading it, you will not only suffer from malnutrition, but also impotence.
2016-05-17 08:20:22 138387 3
原创 种一棵树最好的时间是十年前,其次是现在
什么是document document表示文档,当前网页(文档)对象,当前网页里所有元素(对象)全部都在document中 。什么是DOM DOM全称是Document Object Model,也就是文档对象模型。我们把这个HTML看做一个对象树(DOM树),DOM是HTML文档结构,让js操作HTML元素而定制的一个规范;DOM的操作对象是文档(d...
2016-05-17 08:18:47 13985
原创 No grammar constraints (DTD or XML Schema) referenced in the document.
No grammar constraints (DTD or XML Schema) referenced in the document.xml文件中添加<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/2002/xmlsp...
2016-05-17 08:18:14 13949
原创 There is no PasswordEncoder mapped for the id "null"
There is no PasswordEncoder mapped for the id "null"解决方法如下:@Overrideprotected void configure(AuthenticationManagerBuilder auth) throws Exception { aut...
2016-05-17 08:17:59 133372
原创 linux下清除tomcat缓存
linux下清除tomcat缓存进入tomcat/bin目录下,执行命令:./shutdown.sh然后执行命令:ps -aux ,查看tomcat是否真的关闭了如果没有关闭则执行命令:kill -9 #pid来彻底关闭tomcat(#pid是tomcat的进程ID)最后进入tomcat/work目录下,执行命令...
2016-05-17 08:17:44 133370
原创 js文件 Syntax error on token "Invalid Regular Expression Options", no accurate correction available
js文件 Syntax error on token "Invalid Regular Expression Options", no accurate correction availableeclipse 中 js文件邮件 选择Validate即可。
2016-05-17 08:17:26 10936
原创 启动Sprping Boot Mybatis 报错 Mapped Statements collection does not contain value for xxx
启动Sprping Boot Mybatis 报错 Mapped Statements collection does not contain value for xxx在application.properties中加上#MyBatis对应的 *.xml文件路径mybatis.mapperLocations=classpath:/mybatis/base/...
2016-05-15 17:44:26 10796
原创 java.lang.ClassNotFoundException: org.apache.commons.lang.StringUtils
java.lang.ClassNotFoundException: org.apache.commons.lang.StringUtils<dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang<...
2016-05-15 17:43:29 11214
原创 Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.***************************APPLICATION FAILED TO START****************...
2016-05-15 17:42:52 10765
原创 测试用的美国信用卡账号
测试用的美国信用卡账号510510510510510055555555555544444111111111111111401288888888188137828224631000537873449367100038520000023237601111111111111735301...
2016-05-15 17:42:21 24623 2
原创 vue v-cloak指令 学习 例子 整理 记录 自学 前端
vue v-cloak指令 学习 例子 整理 记录 自学 前端<head> <style> [v-cloak] { display:none; } </style></head><div id="app"> <p v-c...
2016-05-15 17:42:08 16542
Control-M 作业配置手册
2022-04-30
oracle 如何通过元数据查看表的主键是否为自增
2023-07-27
element ui checkbox
2023-07-03
ZipOutputStream 如何压缩空文件夹
2023-05-30
springbaat+shira+thymeleof 整合坑
2023-04-12
thymeleaf 配置了shiro,当无权限时,页面shiro标签报错。
2023-04-12
$('#tree').ace_tree 节点如何添加单击事件
2023-03-23
jsoup 抓取数据如何解决 IP封锁
2016-04-22
执行 awk 出现下面问题
2016-04-20
java 线程池中如何自定义每个线程名称
2016-03-25
TA创建的收藏夹 TA关注的收藏夹
TA关注的人