- 怎么做才能真正限制塑料袋的使用?
BalNews
Environmentalpollutionisalwaysamajorlivelihoodissue.Morethanadecadeago,ourgovernmenthadintroducedapolicyaboutrestrictionsontheuseofplasticbags,wecallitrestrictionsontheuseofplasticbags.Butmorethan10ye
- PAT Advanced 1015. Reversible Primes (C语言实现)
OliverLew
我的PAT系列文章更新重心已移至Github,欢迎来看PAT题解的小伙伴请到GithubPages浏览最新内容。此处文章目前已更新至与GithubPages同步。欢迎star我的repo。题目Areversibleprimeinanynumbersystemisaprimewhose"reverse"inthatnumbersystemisalsoaprime.Forexampleinthedec
- tf.get_collection()
yalesaleng
此函数有两个参数,key和scope。Args:1.key:Thekeyforthecollection.Forexample,theGraphKeysclasscontainsmanystandardnamesforcollections.2.scope:(Optional.)Ifsupplied,theresultinglistisfilteredtoincludeonlyitemswhose
- Docker安装Kafka和Kafka-Manager
阿靖哦
本文介绍如何通过Docker安装kafka与kafka界面管理界面一、拉取zookeeper由于kafka需要依赖于zookeeper,因此这里先运行zookeeper1、拉取镜像dockerpullwurstmeister/zookeeper2、启动dockerrun-d--namezookeeper-p2181:2181-eTZ="Asia/Shanghai"--restartalwayswu
- 随摘
桔桔岛
Oneshouldcaremoreaboutone'sowngrowthinsteadofothers.Toliveahappylife,oneshouldalwaystryeveryefforttominimizeregretsinlife.比起时刻注视着他人,多关注自身的成长,尽自己的一切努力让生活少点遗憾,才能过上快意人生。Whenoneshiftstheirfocusfromotherst
- 2020-11-12 写单片机内存的脚本 nc openocd 事务自动测试
linuxScripter
这是写单片机内存的脚本:z@z-ThinkPad-T400:~/zworkT400/EDA_heiche/zREPOgit/simple-gcc-stm32-project$catz.wholeRun.oneCase.cmdcattmp6.toWrite|awk'{system("echomwb"$1""$2"|nclocalhost4444");}'catUSER/DEBUG/debug.h|g
- 【Leetcode】581. Shortest Unsorted Continuous Subarray
云端漫步_b5aa
Givenanintegerarray,youneedtofindonecontinuoussubarraythatifyouonlysortthissubarrayinascendingorder,thenthewholearraywillbesortedinascendingorder,too.Youneedtofindtheshortestsuchsubarrayandoutputitsle
- 坚持自己,而不是被环境改变·115天(Youtube语言学习方法)
左撇子槿希
图片发自App1.Pleaseremovetheblackpart/bit.黒い(くろい)ところは取り除(とりのぞ)いてください。2.I’mlookingoraplacetostay.泊まる(とまる)所(ところ)を探(さが)しています。3.Doyouknowwhoisthatperson?あの人は誰(だれ)か知っていますか。4.Whichrestaurantischeap?レストランはどこが安い(
- whois 批量查询使用指南
jackywangjia
网络工具通讯技术
Internet的IP地址和AS号码分配是分级进行的。ICANN(TheInternetCorporationforAssignedNamesandNumbers),负责全球Internet上的IP地址进行编号分配的机构(原来是由IANA负责)。根据ICANN的规定,ICANN将部分IP地址分配给地区级的Internet注册机构(RegionalInternetRegistry),然后由这些RIR
- 发现域名的故事:WHOIS数据库查询指南
WhoisXMLAPI
前端服务器linux网络安全运维
WHOIS系统WHOIS系统是一个全球分布式数据库,包含与互联网资源(如域名或IP地址)相关的实体信息。它被称为"互联网的电话簿"。1.1WHOIS数据WHOIS系统中可用的数据。它被组织成WHOIS记录。在不同的WHOIS服务器上,这些记录可能有不同的字段结构。1.2WHOIS服务器存储WHOIS数据的服务器。它们通常由注册管理机构和注册服务商运营,并使用WHOIS协议。这个系统提供了一种查询和
- Redis高可用
確定饿的猫
redis数据库linux
目录持久化主从复制哨兵Cluster集群RDB持久化手动触发自动触发RDB执行流程RDB载入AOF持久化执行流程命令追加文件写入和文件同步appendfsyncalwaysappendfsyncnoappendfsynceverysecond文件重写文件重写流程载入对比nginx、tomcat、mysql等服务都具有预防单点故障、提高整体性能和安全性的功能,当然,Redis也不例外在Redis中,
- Privacy Policy
Green_Mage
The"CentripetalForceCalculator"apprespectsandprotectstheprivacyofalluserswhousetheservice.Inordertoprovideyouwithmoreaccurateandmorepersonalizedservices,the"CentripetalForceCalculator"appwilluseanddis
- FPGA 编程基础, 赋值操作符, 运算符使用, 条件表达式, 信号操作方法
行者..................
fpga开发
1.**赋值符号**:-**"="**:阻塞赋值,即在`always`模块中该语句会被立即执行。-**""**:大于,如果A>B则结果为TRUE,否则为FALSE。-**">="**:大于等于,如果A>=B则结果为TRUE,否则为FALSE。-**"=="**:等于,如果A==B则结果为TRUE,否则为FALSE。-**"!="**:不等于,如果A!=B则结果为TRUE,否则为FALSE。4.**
- We are talking about 《WAR IS A LIE》
MichaelSure
图片发自App图片发自AppTodayIreadabookwhichiscalledWarisalie.ThisisabookwrittebyDavidSwanson,anAmericanwriterwhofightsagainstthewar.WarisawordalwaysrelatetotheUnitedStatesandDavidthinkhismotherlandisthebiggest
- docker-compose部署mysql+nginx+redis
yy1209357299
运维mysqlnginxdocker-composeredis
docker部署参考:docker部署mysql+nginx+redisdocker-compose部署mysql+nginx+redismysql1、创建docker-compose-mysql.ymlversion:"3"services:mysql:image:mysql:5.7restart:alwayscontainer_name:mysqlports:-3306:3306volumes
- 探索Linux之门:Linux 101开源项目深度解读
余靖年Veronica
探索Linux之门:Linux101开源项目深度解读linux-101AnyonewhowantstolearnLinuxcanreadandaddnewinformationtheylearn.项目地址:https://gitcode.com/gh_mirrors/li/linux-101在浩瀚的数字海洋中,Linux操作系统如同灯塔,指引着开发者的航程。今天,我们为你揭开一个宝藏般的项目——L
- 你是谁(WhoAreYou)77气质与人格
玩哲录
心理学领域很少用个性的概念。主要用气质。气质是一个人在心理活动的强度,速度、灵活性指向形成发明的动力特征。还有性格。性格是一个对现实的稳定的态度,以及习惯化了的行为方式表现出来的人格特征,性格和个人的为人处事的方式态度有关系。人格具有五个方面的特性,独特性,整体性、决定性、稳定性,自然性、社会性的统一。首先每个人人格都不一样,这具有整体性。人的各种心理特征,它构成一个整体,各种要素之间它往往是一种
- 464. Can I Win
Nancyberry
DescriptionInthe"100game,"twoplayerstaketurnsadding,toarunningtotal,anyintegerfrom1..10.Theplayerwhofirstcausestherunningtotaltoreachorexceed100wins.Whatifwechangethegamesothatplayerscannotre-useinteg
- 微信重磅改版!「点赞」大拇指回来了!
51ec94e6885a
最近微信动作频繁,就在刚刚,微信公众号页面重大改版,文章又可以被“点赞”了!主要更新在微信文章页面底部在保留「在看」的基础上,恢复了「点赞」按钮,新增了「分享」两个按钮。微信公众号后台「已群发消息」中也增加了点赞的数据统计。作为国民App微信,其公众号“点赞”功能自2018年改版以来就争议不断,小伙伴们和WHO哥一起回顾一下其改版历史。2020年6月29日,恢复“点赞”,新增“分享”2019年3月
- FPGA随记——仿真时钟
一口一口吃成大V
FPGA随记fpga开发
一、普通时钟信号:1、基于initial语句的方法:parameterclk_period=10;regclk;initialbeginclk=0;forever#(clk_period/2)clk=~clk;end2、基于always语句的方法:parameterclk_period=10;regclk;initialclk=0;always#(clk_period/2)clk=~clk;二、自
- Android Camera原理之camx hal架构_libcamhal
2401_85039631
android架构
libcamxncs\libstripingLOCAL_WHOLE_STATIC_LIBRARIES:=libcamxdspstreamerlibcamxhwlbpslibcamxgeneratedlibcamxhallibcamxhalutilslibcamxhwlfdlibcamxhwlifelibcamxhwlipelibcamxhwliqmodulelibcamxswlfdmanagerl
- how to resolve install mysql always notice‘You must reset your password using ALTER USER statement before executing this statement.’
WXL_JIANSHU
现象:#[YoumustresetyourpasswordusingALTERUSERstatementbeforeexecutingthisstatement.](http://www.cnblogs.com/debmzhang/p/5013540.html)修复:安装完mysql之后,登陆以后,不管运行任何命令,总是提示这个step1:SETPASSWORD=PASSWORD('yournew
- Annotation processing is not supported for module cycles. Please ensure that all modules(若依二开报错笔记)
一单成
若依日常报错解决分析笔记
场景描述:在进行项目的重构之后,auth中提示该错误。报错说明:它表示模块循环中不支持注解处理。需要确保来自模块循环中的所有模块都被排除在注解处理外。这是报错提示。尝试1:使用idea中的快捷键发现我的循环成了一个圈,所以需要使用idea中的快捷键来解决。报这个错时,首先可以通过idea菜单栏的Analyze下的AnalyzeModuleDependencies,选择wholeproject。这时
- 什么是IP宿主信息?
网络安全那些事儿
tcp/ip网络协议网络网络安全IP宿主信息
IP宿主信息是指通过IP地址与POI(PointofInterest,兴趣点)/AOI(AreaofInterest,兴趣区域)信息关联,进而整理分析Whois数据所得到的一系列信息。这些信息主要包括互联网服务提供商(ISP)、自治系统号(ASN)、国际直拨电话和区号、邮政编码、行政区码等。简而言之,IP宿主信息是关于某个IP地址所属的网络环境、地理位置、服务提供商等详细信息的集合。具体来说,IP
- 2021-12-29
yuRun
阅读完形填空单词hit*v.击中staybehind*留下来whisperv.小声说thewholething整件事givesb.ahug拥抱某人targetn.目标forgive——forgavev.原谅upset*adj.沮丧的,不安的hide——hidv.隐藏some与anysome肯定,any否定,疑问句,wouldlike用some.与形容词的位置关系复合不定代词+adj.(不形原则)多
- 状态机设计方法推荐: 两段式、三段式
行者..................
FPGA
在状态机设计中,我们通常会使用两段式状态机或三段式状态机。两段式状态机是采用两个always模块实现状态机功能,其中一个always模块用于描述状态转移的同步时序逻辑,另一个always模块则用于判断状态条件转移的组合逻辑。对于简单的代码,我们可以选择使用一段式状态机,但是在需要时序要求和较大规模的电路中,推荐使用两段式状态机设计方法。两段式状态机的设计能够更清晰地描述状态转移和状态条件,有利于代
- The Call of the Wild 04
Mr_Oldman
Yethistimecame,intheend,intheformofalittleweakenedmanwhospat(厉声说出)brokenEnglishandmanystrangeanduncouth(粗鲁的)exclamations(呼喊)whichBuckcouldnotunderstand."Sacredam!"hecried,whenhiseyeslituponBuck."Dat(相
- Spring Boot 2.x实战94 - 事件驱动3 - Kafka与Kafka Streams
汪云飞记录本
SpringBoot2.x实战全集springbootkafkakafkastreamsKafkaListener
3.KafkaApacheKafka以Topic为导向,提供消息中间件的功能。一个类型的数据称之为一个Topic。3.1安装Kafka使用dockercompose安装ApacheKafka。stack.ymlversion:'3.1'services:zookeeper:image:wurstmeister/zookeeperrestart:alwayskafka:image:wurstmeis
- redis 持久化AOF
文刀雨
RDB有什么问题耗时耗性能o(n)数据:耗时fork():销毁内存,copy-on-write策略DiskI/O:IO性能不可控丢失数据AOFAOF的三种策略always不丢失数据,IO开销大,一般的sata盘只有几百TPSeverysec默认值每秒写入可能丢失1秒的数据no优点不用管确定不可控不建议使用AOF重写把过期的,重复的,没有用的,可以优化作用:减少磁盘占用量加速恢复速度AOF重写实现两
- linux安装npm包报`permissions`错误的问题
雷布斯基
执行sudochown-R$(whoami)$(npmconfiggetprefix)/{lib/node_modules,bin,share}修改文件夹权限后,重新安装即可。参考:Fixingnpmpermissions
- [黑洞与暗粒子]没有光的世界
comsci
无论是相对论还是其它现代物理学,都显然有个缺陷,那就是必须有光才能够计算
但是,我相信,在我们的世界和宇宙平面中,肯定存在没有光的世界....
那么,在没有光的世界,光子和其它粒子的规律无法被应用和考察,那么以光速为核心的
&nbs
- jQuery Lazy Load 图片延迟加载
aijuans
jquery
基于 jQuery 的图片延迟加载插件,在用户滚动页面到图片之后才进行加载。
对于有较多的图片的网页,使用图片延迟加载,能有效的提高页面加载速度。
版本:
jQuery v1.4.4+
jQuery Lazy Load v1.7.2
注意事项:
需要真正实现图片延迟加载,必须将真实图片地址写在 data-original 属性中。若 src
- 使用Jodd的优点
Kai_Ge
jodd
1. 简化和统一 controller ,抛弃 extends SimpleFormController ,统一使用 implements Controller 的方式。
2. 简化 JSP 页面的 bind, 不需要一个字段一个字段的绑定。
3. 对 bean 没有任何要求,可以使用任意的 bean 做为 formBean。
使用方法简介
- jpa Query转hibernate Query
120153216
Hibernate
public List<Map> getMapList(String hql,
Map map) {
org.hibernate.Query jpaQuery = entityManager.createQuery(hql);
if (null != map) {
for (String parameter : map.keySet()) {
jp
- Django_Python3添加MySQL/MariaDB支持
2002wmj
mariaDB
现状
首先,
[email protected] 中默认的引擎为 django.db.backends.mysql 。但是在Python3中如果这样写的话,会发现 django.db.backends.mysql 依赖 MySQLdb[5] ,而 MySQLdb 又不兼容 Python3 于是要找一种新的方式来继续使用MySQL。 MySQL官方的方案
首先据MySQL文档[3]说,自从MySQL
- 在SQLSERVER中查找消耗IO最多的SQL
357029540
SQL Server
返回做IO数目最多的50条语句以及它们的执行计划。
select top 50
(total_logical_reads/execution_count) as avg_logical_reads,
(total_logical_writes/execution_count) as avg_logical_writes,
(tot
- spring UnChecked 异常 官方定义!
7454103
spring
如果你接触过spring的 事物管理!那么你必须明白 spring的 非捕获异常! 即 unchecked 异常! 因为 spring 默认这类异常事物自动回滚!!
public static boolean isCheckedException(Throwable ex)
{
return !(ex instanceof RuntimeExcep
- mongoDB 入门指南、示例
adminjun
javamongodb操作
一、准备工作
1、 下载mongoDB
下载地址:http://www.mongodb.org/downloads
选择合适你的版本
相关文档:http://www.mongodb.org/display/DOCS/Tutorial
2、 安装mongoDB
A、 不解压模式:
将下载下来的mongoDB-xxx.zip打开,找到bin目录,运行mongod.exe就可以启动服务,默
- CUDA 5 Release Candidate Now Available
aijuans
CUDA
The CUDA 5 Release Candidate is now available at http://developer.nvidia.com/<wbr></wbr>cuda/cuda-pre-production. Now applicable to a broader set of algorithms, CUDA 5 has advanced fe
- Essential Studio for WinRT网格控件测评
Axiba
JavaScripthtml5
Essential Studio for WinRT界面控件包含了商业平板应用程序开发中所需的所有控件,如市场上运行速度最快的grid 和chart、地图、RDL报表查看器、丰富的文本查看器及图表等等。同时,该控件还包含了一组独特的库,用于从WinRT应用程序中生成Excel、Word以及PDF格式的文件。此文将对其另外一个强大的控件——网格控件进行专门的测评详述。
网格控件功能
1、
- java 获取windows系统安装的证书或证书链
bewithme
windows
有时需要获取windows系统安装的证书或证书链,比如说你要通过证书来创建java的密钥库 。
有关证书链的解释可以查看此处 。
public static void main(String[] args) {
SunMSCAPI providerMSCAPI = new SunMSCAPI();
S
- NoSQL数据库之Redis数据库管理(set类型和zset类型)
bijian1013
redis数据库NoSQL
4.sets类型
Set是集合,它是string类型的无序集合。set是通过hash table实现的,添加、删除和查找的复杂度都是O(1)。对集合我们可以取并集、交集、差集。通过这些操作我们可以实现sns中的好友推荐和blog的tag功能。
sadd:向名称为key的set中添加元
- 异常捕获何时用Exception,何时用Throwable
bingyingao
用Exception的情况
try {
//可能发生空指针、数组溢出等异常
} catch (Exception e) {
 
- 【Kafka四】Kakfa伪分布式安装
bit1129
kafka
在http://bit1129.iteye.com/blog/2174791一文中,实现了单Kafka服务器的安装,在Kafka中,每个Kafka服务器称为一个broker。本文简单介绍下,在单机环境下Kafka的伪分布式安装和测试验证 1. 安装步骤
Kafka伪分布式安装的思路跟Zookeeper的伪分布式安装思路完全一样,不过比Zookeeper稍微简单些(不
- Project Euler
bookjovi
haskell
Project Euler是个数学问题求解网站,网站设计的很有意思,有很多problem,在未提交正确答案前不能查看problem的overview,也不能查看关于problem的discussion thread,只能看到现在problem已经被多少人解决了,人数越多往往代表问题越容易。
看看problem 1吧:
Add all the natural num
- Java-Collections Framework学习与总结-ArrayDeque
BrokenDreams
Collections
表、栈和队列是三种基本的数据结构,前面总结的ArrayList和LinkedList可以作为任意一种数据结构来使用,当然由于实现方式的不同,操作的效率也会不同。
这篇要看一下java.util.ArrayDeque。从命名上看
- 读《研磨设计模式》-代码笔记-装饰模式-Decorator
bylijinnan
java设计模式
声明: 本文只为方便我个人查阅和理解,详细的分析以及源代码请移步 原作者的博客http://chjavach.iteye.com/
import java.io.BufferedOutputStream;
import java.io.DataOutputStream;
import java.io.FileOutputStream;
import java.io.Fi
- Maven学习(一)
chenyu19891124
Maven私服
学习一门技术和工具总得花费一段时间,5月底6月初自己学习了一些工具,maven+Hudson+nexus的搭建,对于maven以前只是听说,顺便再自己的电脑上搭建了一个maven环境,但是完全不了解maven这一强大的构建工具,还有ant也是一个构建工具,但ant就没有maven那么的简单方便,其实简单点说maven是一个运用命令行就能完成构建,测试,打包,发布一系列功
- [原创]JWFD工作流引擎设计----节点匹配搜索算法(用于初步解决条件异步汇聚问题) 补充
comsci
算法工作PHP搜索引擎嵌入式
本文主要介绍在JWFD工作流引擎设计中遇到的一个实际问题的解决方案,请参考我的博文"带条件选择的并行汇聚路由问题"中图例A2描述的情况(http://comsci.iteye.com/blog/339756),我现在把我对图例A2的一个解决方案公布出来,请大家多指点
节点匹配搜索算法(用于解决标准对称流程图条件汇聚点运行控制参数的算法)
需要解决的问题:已知分支
- Linux中用shell获取昨天、明天或多天前的日期
daizj
linuxshell上几年昨天获取上几个月
在Linux中可以通过date命令获取昨天、明天、上个月、下个月、上一年和下一年
# 获取昨天
date -d 'yesterday' # 或 date -d 'last day'
# 获取明天
date -d 'tomorrow' # 或 date -d 'next day'
# 获取上个月
date -d 'last month'
#
- 我所理解的云计算
dongwei_6688
云计算
在刚开始接触到一个概念时,人们往往都会去探寻这个概念的含义,以达到对其有一个感性的认知,在Wikipedia上关于“云计算”是这么定义的,它说:
Cloud computing is a phrase used to describe a variety of computing co
- YII CMenu配置
dcj3sjt126com
yii
Adding id and class names to CMenu
We use the id and htmlOptions to accomplish this. Watch.
//in your view
$this->widget('zii.widgets.CMenu', array(
'id'=>'myMenu',
'items'=>$this-&g
- 设计模式之静态代理与动态代理
come_for_dream
设计模式
静态代理与动态代理
代理模式是java开发中用到的相对比较多的设计模式,其中的思想就是主业务和相关业务分离。所谓的代理设计就是指由一个代理主题来操作真实主题,真实主题执行具体的业务操作,而代理主题负责其他相关业务的处理。比如我们在进行删除操作的时候需要检验一下用户是否登陆,我们可以删除看成主业务,而把检验用户是否登陆看成其相关业务
- 【转】理解Javascript 系列
gcc2ge
JavaScript
理解Javascript_13_执行模型详解
摘要: 在《理解Javascript_12_执行模型浅析》一文中,我们初步的了解了执行上下文与作用域的概念,那么这一篇将深入分析执行上下文的构建过程,了解执行上下文、函数对象、作用域三者之间的关系。函数执行环境简单的代码:当调用say方法时,第一步是创建其执行环境,在创建执行环境的过程中,会按照定义的先后顺序完成一系列操作:1.首先会创建一个
- Subsets II
hcx2013
set
Given a collection of integers that might contain duplicates, nums, return all possible subsets.
Note:
Elements in a subset must be in non-descending order.
The solution set must not conta
- Spring4.1新特性——Spring缓存框架增强
jinnianshilongnian
spring4
目录
Spring4.1新特性——综述
Spring4.1新特性——Spring核心部分及其他
Spring4.1新特性——Spring缓存框架增强
Spring4.1新特性——异步调用和事件机制的异常处理
Spring4.1新特性——数据库集成测试脚本初始化
Spring4.1新特性——Spring MVC增强
Spring4.1新特性——页面自动化测试框架Spring MVC T
- shell嵌套expect执行命令
liyonghui160com
一直都想把expect的操作写到bash脚本里,这样就不用我再写两个脚本来执行了,搞了一下午终于有点小成就,给大家看看吧.
系统:centos 5.x
1.先安装expect
yum -y install expect
2.脚本内容:
cat auto_svn.sh
#!/bin/bash
- Linux实用命令整理
pda158
linux
0. 基本命令 linux 基本命令整理
1. 压缩 解压 tar -zcvf a.tar.gz a #把a压缩成a.tar.gz tar -zxvf a.tar.gz #把a.tar.gz解压成a
2. vim小结 2.1 vim替换 :m,ns/word_1/word_2/gc  
- 独立开发人员通向成功的29个小贴士
shoothao
独立开发
概述:本文收集了关于独立开发人员通向成功需要注意的一些东西,对于具体的每个贴士的注解有兴趣的朋友可以查看下面标注的原文地址。
明白你从事独立开发的原因和目的。
保持坚持制定计划的好习惯。
万事开头难,第一份订单是关键。
培养多元化业务技能。
提供卓越的服务和品质。
谨小慎微。
营销是必备技能。
学会组织,有条理的工作才是最有效率的。
“独立
- JAVA中堆栈和内存分配原理
uule
java
1、栈、堆
1.寄存器:最快的存储区, 由编译器根据需求进行分配,我们在程序中无法控制.2. 栈:存放基本类型的变量数据和对象的引用,但对象本身不存放在栈中,而是存放在堆(new 出来的对象)或者常量池中(字符串常量对象存放在常量池中。)3. 堆:存放所有new出来的对象。4. 静态域:存放静态成员(static定义的)5. 常量池:存放字符串常量和基本类型常量(public static f