qchen qchen
3年前
枚举Enum的使用
1、为什么使用枚举?以博客网站为例,文章有三种状态:草稿、审核和发布,可将其定义为静态常量:javapublicclassBlogStatuspublicstaticfinalintDraft1;//草稿publicstaticfinalintReview2;//审核publicstaticfi
Edith985 Edith985
4年前
Swift 简介
1.Swift开发快速体验1.1目标playground快速体验&学习资源分享项目开发快速体验,了解Swift基本程序结构1.2学习资源苹果官方博客https://developer.apple
Stella981 Stella981
4年前
Elasticsearch学习(3)—— 查询
https://www.iteblog.com/archives/1741.html1. 基本匹配查询(BasicMatchQuery)基本匹配查询主要有两种形式:(1)使用SearchLiteAPI,并将所有的搜索参数都通过URL传递;GET/\_all
Stella981 Stella981
4年前
OPENCV中文显示乱码 JAVA处理
网上搜索的都是C或者python的解决思路。这里给个java的处理思路1.Imgproc.putText中文乱码Imgproc.putText(image,newString(("性别:"gender"年龄:"age).getBytes("UTF8")),newPoint(rectsi
Wesley13 Wesley13
4年前
LNMP架构之访问日志、日志切割、静态文件不记录及过期时间设置
本文索引:Nginx访问日志Nginx日志切割静态文件不记录日志和过期时间Nginx访问日志修改nginx配置文件root@localhostvhostvim/usr/local/nginx/conf/nginx.conf搜索:/log_format
Wesley13 Wesley13
4年前
JS抓取印尼连城航空航线
_js提取印尼连城航空航线_使用方法,打开印尼连城航空网站,搜索任意航线,在结果页打开js控制台,运行下方脚本。varmlistfireflyResource.marketInfo.MarketList;varresult"";for(vardepinmlist){varar
Stella981 Stella981
4年前
Play framework Intellij idea debug 调试
PlayframeworkIntellijideadebug调试(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fwen66.iteye.com%2Fblog%2F1397677)博客分类:playframework(https://www.os
Stella981 Stella981
4年前
Python 自带计时工具 timeit
码厩技术博客(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fwww.markjour.com)Python自带计时工具timeitTimer类:\_\_init\_\_(stmt"pass",setup"pass",timerdefault\_
Stella981 Stella981
4年前
Chrome使用的plugin
Chrome使用的plugin1.翻译1.google翻译2.youlict划词翻译1.书签1.查询书签neaterbookmarks2.博客园收藏网页3.
Stella981 Stella981
4年前
Elasticsearch (1)
创建索引库ES的索引库是一个逻辑概念,它包括了分词列表及文档列表,同一个索引库中存储了相同类型的文档。它就相当于MySQL中的表,或相当于Mongodb中的集合。关于索引这个语:索引(名词):ES是基于Lucene构建的一个搜索服务,它要从索引库搜索符合条件索引数据。索引(动词):索引库刚创建起来是空的,将数据添加到索引库的过程称为索