日常错误日志相关
六朝
1.XXduplicatesymbolsforarchitecturei386这类错误是在本程序中,有两个一样的类或者文件夹,找到并删除一个就不会有这个错误了例子:shareSDK导入,微信分享会和微信支付有一个相同的libWeChatSDK.a文件2.最新版xcode创建新项目的时候不支持http,要支持的话需要设置info文件,如图配置就可以了3.新版xcode新建新程序uiwebview有时
Python入门(3) :编程日常错误汇总
Chris1.0
1.问题:Python文件运行时报错TabError:inconsistentuseoftabsandspacesinindentation**原因:说明Python文件中混有Tab和Space用作格式缩进。这通常是使用外部编辑器编辑Python文件时,自动采用Tab进行格式缩进。解决方案:将Tab转换成4个SpaceAttributeError:module'cv2'hasnoattribute
日常错误 android.content.res.Resources$NotFoundException: String resource ID #0x1
SmallMartin
日常错误
一般发生在参数intresId错误,你把String赋值给int的resId,所以编译器找不到正确的resource于是报错。他把这个int类型的数据当成string.xml文件中的资源了,但是值为i的这个资源找不到,所以抛出这个异常。老长时间没遇到这个错误了,所以记录下解决方法:将int转换为String再setText()。
日常错误积累-01-ssh重启报错或者无法重启-Failed to restart ssh.service: Unit not found
BriskNo1
1.在修改了sshd_config文件之后需要重启sshd,准备执行一下命令进行重启:/etc/init.d/sshrestart2.发现这个路劲底下根本没有ssh,尝试以下命令:#sudoservicesshrestartRedirectingto/bin/systemctlrestartssh.serviceFailedtorestartssh.service:Unitnotfound.出现以
java日常错误总结
晓梦初醒p
java
1.引用dubbo服务2019-11-1311:36:45.889WARNo.s.b.f.s.DefaultListableBeanFactory.getTypeForFactoryBean:71FactoryBeanthrewexceptionfromgetObjectType,despitethecontractsayingthatitshouldreturnnullifthetypeofit
单亲家庭对一个孩子的影响有多大?
朗茜
今天我正在看书收到我班任课老师的一个来电,我班一个孩子不服她管教,让我立即处理这件事情。这是我接任班主任以来不出一周处理的第一个紧急事件。问明缘由,细节不再细说,无非就是学生的日常错误罢了。但是,我对这个孩子一直很有好奇心。他长相白净,脑袋瓜聪明,但是他从来都是大错不犯,小错不断。我因此叫来了他的家长问明情况。来学校的是他的奶奶,大概七十岁左右。腿脚不太方便,我看到她腿脚不方便的一样,心里满是愧疚
日常错误整理(一):Error during filtering com.netflix.zuul.exception.ZuulException: Filter threw Exception
mmmm_1ff5
最近做在一个微服务架构的毕业设计,通过zuul网关访问服务时,发现有时会报出以下错误:Errorduringfilteringcom.netflix.zuul.exception.ZuulException:FilterthrewExceptionatcom.netflix.zuul.FilterProcessor.processZuulFilter(FilterProcessor.java:22
日常错误积累之标签
0短发也飘逸0
随记html
HTML中a标签的使用问题。在HTML中标签大多成对存在,有些标签可省略结束标记,如”br”,如”input/input“可简写为”input/”,然而”a”标签没有这样的用法,这次出现的错误正是由于把“a/a”标签对写成了”a/”,导致出现错误,如下所示:");out.print("请选择商品分类浏览:");out.print("");while(rs.next()){intid=rs.getI
Flutter日常坑整理(持续更新)
spoon bar
Flutter
Flutter日常错误整理坑1:Erroronline21,column5ofpubspec.yaml:Adependencymayonlyhaveonesource.//logErroronline21,column5ofpubspec.yaml:Adependencymayonlyhaveonesource.╷21│┌sdk:flutter22││amap_base:^0.3.523││24│
Spring boot日常错误 总结
爱吃饭的蛋蛋
springbootspringboot
最近在搞springboot发现错误很多在这里记录一下1.Errorsoccurredduringthebuild.错误eclipse中出现Errorsoccurredduringthebuild的错误,一般发生在新安装eclipse,且第一次建maven工程时还有的是pom.xml文件头部发生错误解决方案:右击错误的maven工程runas–>maventest先检查一下maven工程的错误然后
贝叶斯的重病筛查案例-Precision-Accuracy-Recall
zhyuzh3d
智能决策上手系列教程索引这是一个经典的贝叶斯案例,也是很反直觉的,很多解释认为这个反直觉是因为我们的日常错误的思维习惯,但我觉得可能恰恰相反,下面我们先回顾一下这个案例,然后再进一步讨论。案例回顾对所有人来说某种癌症的患病率为5%,医生使用某设备为你做了检查,此设备检查的准确率为80%,检查结果显示你患有此病(阳性)。请问你真实患有此病的概率是多少?常见解答首先我们要理解5%和80%这两个概率是什
2018-05-17
水笔仔2017
塑料袋的几种日常错误用法,看看你有吗?用塑料袋装熟食用塑料袋包装熟食、点心等直接食用的食物时,最好不要用有颜色的塑料袋,因为这种塑料袋不少是用回收的废旧塑料制品重新加工制成,不能直接装食品。食品尤其是熟食,用低劣的塑料包装以后容易变质,食用后可能会引起呕吐腹泻等食物中毒症状。用塑料袋保鲜果蔬不少主妇为了省事也为了节约,常用菜市场提回来的塑料袋包裹蔬菜放进冰箱冷藏。专家介绍,“冰箱里的冷藏、冷冻食品
健视佳越橘叶黄素给孩子视力更好的保护!
关节健康
现今,近视的人数逐年增长,越来越多的孩子在小小的年纪也被近视所困扰,排除了遗传的因素,家长们知道平时生活还有哪些会危害到孩子眼睛视力问题的吗?要知道,孩子的眼睛非常脆弱,有时候一个小小的一个举动都可能给孩子的眼睛带来大大的伤害。下面小编就来给各位家长讲讲,有哪些日常错误的做法会危害到孩子眼睛。1.用闪光灯对着孩子孩子正处于发育时期,各项机能都不成熟,特别是视网膜更娇嫩,眼睛无法像成年人一样过滤有害
关于友盟推送日常错误
六朝
deviceToken错误,友盟推送要求的格式不允许有符号,空格,而且有长度限制,添加测试机的时候应处理过后再复制粘贴,直接复制带空格的deviceToken串在修改会出现少了一部分的错误。***每次重新安装apptoken是会变化的,测试模式推送的时候需要更新下测试设备的token***按照文档一步步下来的,然后接受不倒推送,应该检查下证书,配置文件,全部正确的情况下看友盟推送的是不是测试模式,
生于70年代:祭一个叫阿宝的男人。
国外实时趣文
阿宝出生在70年代中期,那时候物资匮乏,农村里每家每户都过着勒紧裤腰带的日子。阿宝爸个忠厚到极致的男人,退伍后在县棉纺厂做工人,不经常回家。阿宝妈典型的农村妇女,奉信棍棒底下出孝子,只要阿宝犯一点小男孩的日常错误就是一顿揍。人打多了就老实了,阿宝青春期一副无公害的脸再加上一点帅气,吸引了很多小女生的注意,阿宝在初三那年恋爱了。女生是同班的阿娟,一个单纯甜美的姑娘,中考结束后阿娟打算跟同村的姐姐去深
正确热身及训练(3000米)
4s脊柱康复刘博文
常规热身:1.全身性伸展:重点拉伸大腿后侧以及小腿肌肉(预防肌肉拉伤)2.提高心肺:运用低强度原地练习,提高心率,进行充分预热,提高运动表现专项热身:建立正确的跑步模式以及摆臂姿势,纠正日常错误1.单腿支撑原地摆动腿练习2.单腿支撑+跳跃摆动练习3.大腿灵活度及反应练习(半蹲)正式锻炼(目的练习跑步模式)1.原地高抬腿2.原地高抬腿+30米冲刺3.原地高抬腿+摆臂+30米冲刺结束,放松拉伸(因为时
日常错误锦集之 Docker
feri
错误信息:删除Docker容器的时候报错:设备正忙Errorresponsefromdaemon:Driveroverlayfailedtoremoverootfilesystem30138ad802db667d4a5af908383ede6512cdf3bdc8bba963a518cf0b9262b17b:remove/var/lib/docker/overlay/b39fb2a3474909f
Android日常错误记录
Jumping_张明
环信即时通讯Q:找不到AsyncTaskCompatl类NoClassDefFoundError:support/v4/os/AsyncTaskCompatA:因为AsyncTaskCompat此类已在API26.0.0以上中被弃用了,所以需要更改compileSdkVersion最高26,同理targetSdkVersion和其它依赖也需要适当降低版本。Service里启动Activity延时问
多线程编程之卫生间
周凡杨
java并发卫生间线程厕所
如大家所知,火车上车厢的卫生间很小,每次只能容纳一个人,一个车厢只有一个卫生间,这个卫生间会被多个人同时使用,在实际使用时,当一个人进入卫生间时则会把卫生间锁上,等出来时打开门,下一个人进去把门锁上,如果有一个人在卫生间内部则别人的人发现门是锁的则只能在外面等待。问题分析:首先问题中有两个实体,一个是人,一个是厕所,所以设计程序时就可以设计两个类。人是多数的,厕所只有一个(暂且模拟的是一个车厢)。
How to Install GUI to Centos Minimal
sunjing
linuxInstallDesktopGUI
http://www.namhuy.net/475/how-to-install-gui-to-centos-minimal.html
I have centos 6.3 minimal running as web server. I’m looking to install gui to my server to vnc to my server. You can insta
Shell 函数
daizj
shell函数
Shell 函数
linux shell 可以用户定义函数,然后在shell脚本中可以随便调用。
shell中函数的定义格式如下:
[function] funname [()]{
action;
[return int;]
}
说明:
1、可以带function fun() 定义,也可以直接fun() 定义,不带任何参数。
2、参数返回
Linux服务器新手操作之一
周凡杨
Linux 简单 操作
1.whoami
当一个用户登录Linux系统之后,也许他想知道自己是发哪个用户登录的。
此时可以使用whoami命令。
[ecuser@HA5-DZ05 ~]$ whoami
e
浅谈Socket通信(一)
朱辉辉33
socket
在java中ServerSocket用于服务器端,用来监听端口。通过服务器监听,客户端发送请求,双方建立链接后才能通信。当服务器和客户端建立链接后,两边都会产生一个Socket实例,我们可以通过操作Socket来建立通信。
首先我建立一个ServerSocket对象。当然要导入java.net.ServerSocket包
ServerSock
关于框架的简单认识
西蜀石兰
框架
入职两个月多,依然是一个不会写代码的小白,每天的工作就是看代码,写wiki。
前端接触CSS、HTML、JS等语言,一直在用的CS模型,自然免不了数据库的链接及使用,真心涉及框架,项目中用到的BootStrap算一个吧,哦,JQuery只能算半个框架吧,我更觉得它是另外一种语言。
后台一直是纯Java代码,涉及的框架是Quzrtz和log4j。
都说学前端的要知道三大框架,目前node.
You have an error in your SQL syntax; check the manual that corresponds to your
林鹤霄
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'option,changed_ids ) values('0ac91f167f754c8cbac00e9e3dc372
MySQL5.6的my.ini配置
aigo
mysql
注意:以下配置的服务器硬件是:8核16G内存
[client]
port=3306
[mysql]
default-character-set=utf8
[mysqld]
port=3306
basedir=D:/mysql-5.6.21-win
mysql 全文模糊查找 便捷解决方案
alxw4616
mysql
mysql 全文模糊查找 便捷解决方案
2013/6/14 by 半仙
[email protected]
目的: 项目需求实现模糊查找.
原则: 查询不能超过 1秒.
问题: 目标表中有超过1千万条记录. 使用like '%str%' 进行模糊查询无法达到性能需求.
解决方案: 使用mysql全文索引.
1.全文索引 : MySQL支持全文索引和搜索功能。MySQL中的全文索
自定义数据结构 链表(单项 ,双向,环形)
百合不是茶
单项链表双向链表
链表与动态数组的实现方式差不多, 数组适合快速删除某个元素 链表则可以快速的保存数组并且可以是不连续的
单项链表;数据从第一个指向最后一个
实现代码:
//定义动态链表
clas
threadLocal实例
bijian1013
javathreadjava多线程threadLocal
实例1:
package com.bijian.thread;
public class MyThread extends Thread {
private static ThreadLocal tl = new ThreadLocal() {
protected synchronized Object initialValue() {
return new Inte
activemq安全设置—设置admin的用户名和密码
bijian1013
javaactivemq
ActiveMQ使用的是jetty服务器, 打开conf/jetty.xml文件,找到
<bean id="adminSecurityConstraint" class="org.eclipse.jetty.util.security.Constraint">
<p
【Java范型一】Java范型详解之范型集合和自定义范型类
bit1129
java
本文详细介绍Java的范型,写一篇关于范型的博客原因有两个,前几天要写个范型方法(返回值根据传入的类型而定),竟然想了半天,最后还是从网上找了个范型方法的写法;再者,前一段时间在看Gson, Gson这个JSON包的精华就在于对范型的优雅简单的处理,看它的源代码就比较迷糊,只其然不知其所以然。所以,还是花点时间系统的整理总结下范型吧。
范型内容
范型集合类
范型类
【HBase十二】HFile存储的是一个列族的数据
bit1129
hbase
在HBase中,每个HFile存储的是一个表中一个列族的数据,也就是说,当一个表中有多个列簇时,针对每个列簇插入数据,最后产生的数据是多个HFile,每个对应一个列族,通过如下操作验证
1. 建立一个有两个列族的表
create 'members','colfam1','colfam2'
2. 在members表中的colfam1中插入50*5
Nginx 官方一个配置实例
ronin47
nginx 配置实例
user www www;
worker_processes 5;
error_log logs/error.log;
pid logs/nginx.pid;
worker_rlimit_nofile 8192;
events {
worker_connections 4096;}
http {
include conf/mim
java-15.输入一颗二元查找树,将该树转换为它的镜像, 即在转换后的二元查找树中,左子树的结点都大于右子树的结点。 用递归和循环
bylijinnan
java
//use recursion
public static void mirrorHelp1(Node node){
if(node==null)return;
swapChild(node);
mirrorHelp1(node.getLeft());
mirrorHelp1(node.getRight());
}
//use no recursion bu
返回null还是empty
bylijinnan
javaapachespring编程
第一个问题,函数是应当返回null还是长度为0的数组(或集合)?
第二个问题,函数输入参数不当时,是异常还是返回null?
先看第一个问题
有两个约定我觉得应当遵守:
1.返回零长度的数组或集合而不是null(详见《Effective Java》)
理由就是,如果返回empty,就可以少了很多not-null判断:
List<Person> list
[科技与项目]工作流厂商的战略机遇期
comsci
工作流
在新的战略平衡形成之前,这里有一个短暂的战略机遇期,只有大概最短6年,最长14年的时间,这段时间就好像我们森林里面的小动物,在秋天中,必须抓紧一切时间存储坚果一样,否则无法熬过漫长的冬季。。。。
在微软,甲骨文,谷歌,IBM,SONY
过度设计-举例
cuityang
过度设计
过度设计,需要更多设计时间和测试成本,如无必要,还是尽量简洁一些好。
未来的事情,比如 访问量,比如数据库的容量,比如是否需要改成分布式 都是无法预料的
再举一个例子,对闰年的判断逻辑:
1、 if($Year%4==0) return True; else return Fasle;
2、if ( ($Year%4==0 &am
java进阶,《Java性能优化权威指南》试读
darkblue086
java性能优化
记得当年随意读了微软出版社的.NET 2.0应用程序调试,才发现调试器如此强大,应用程序开发调试其实真的简单了很多,不仅仅是因为里面介绍了很多调试器工具的使用,更是因为里面寻找问题并重现问题的思想让我震撼,时隔多年,Java已经如日中天,成为许多大型企业应用的首选,而今天,这本《Java性能优化权威指南》让我再次找到了这种感觉,从不经意的开发过程让我刮目相看,原来性能调优不是简单地看看热点在哪里,
网络学习笔记初识OSI七层模型与TCP协议
dcj3sjt126com
学习笔记
协议:在计算机网络中通信各方面所达成的、共同遵守和执行的一系列约定 计算机网络的体系结构:计算机网络的层次结构和各层协议的集合。 两类服务: 面向连接的服务通信双方在通信之前先建立某种状态,并在通信过程中维持这种状态的变化,同时为服务对象预先分配一定的资源。这种服务叫做面向连接的服务。 面向无连接的服务通信双方在通信前后不建立和维持状态,不为服务对象
mac中用命令行运行mysql
dcj3sjt126com
mysqllinuxmac
参考这篇博客:http://www.cnblogs.com/macro-cheng/archive/2011/10/25/mysql-001.html 感觉workbench不好用(有点先入为主了)。
1,安装mysql
在mysql的官方网站下载 mysql 5.5.23 http://www.mysql.com/downloads/mysql/,根据我的机器的配置情况选择了64
MongDB查询(1)——基本查询[五]
eksliang
mongodbmongodb 查询mongodb find
MongDB查询
转载请出自出处:http://eksliang.iteye.com/blog/2174452 一、find简介
MongoDB中使用find来进行查询。
API:如下
function ( query , fields , limit , skip, batchSize, options ){.....}
参数含义:
query:查询参数
fie
base64,加密解密 经融加密,对接
y806839048
经融加密对接
String data0 = new String(Base64.encode(bo.getPaymentResult().getBytes(("GBK"))));
String data1 = new String(Base64.decode(data0.toCharArray()),"GBK");
// 注意编码格式,注意用于加密,解密的要是同
JavaWeb之JSP概述
ihuning
javaweb
什么是JSP?为什么使用JSP?
JSP表示Java Server Page,即嵌有Java代码的HTML页面。使用JSP是因为在HTML中嵌入Java代码比在Java代码中拼接字符串更容易、更方便和更高效。
JSP起源
在很多动态网页中,绝大部分内容都是固定不变的,只有局部内容需要动态产生和改变。
如果使用Servl
apple watch 指南
啸笑天
apple
1. 文档
WatchKit Programming Guide(中译在线版 By @CocoaChina) 译文 译者 原文 概览 - 开始为 Apple Watch 进行开发 @星夜暮晨 Overview - Developing for Apple Watch 概览 - 配置 Xcode 项目 - Overview - Configuring Yo
java经典的基础题目
macroli
java编程
1.列举出 10个JAVA语言的优势 a:免费,开源,跨平台(平台独立性),简单易用,功能完善,面向对象,健壮性,多线程,结构中立,企业应用的成熟平台, 无线应用 2.列举出JAVA中10个面向对象编程的术语 a:包,类,接口,对象,属性,方法,构造器,继承,封装,多态,抽象,范型 3.列举出JAVA中6个比较常用的包 Java.lang;java.util;java.io;java.sql;ja
你所不知道神奇的js replace正则表达式
qiaolevip
每天进步一点点学习永无止境纵观千象regex
var v = 'C9CFBAA3CAD0';
console.log(v);
var arr = v.split('');
for (var i = 0; i < arr.length; i ++) {
if (i % 2 == 0) arr[i] = '%' + arr[i];
}
console.log(arr.join(''));
console.log(v.r
[一起学Hive]之十五-分析Hive表和分区的统计信息(Statistics)
superlxw1234
hivehive分析表hive统计信息hive Statistics
关键字:Hive统计信息、分析Hive表、Hive Statistics
类似于Oracle的分析表,Hive中也提供了分析表和分区的功能,通过自动和手动分析Hive表,将Hive表的一些统计信息存储到元数据中。
表和分区的统计信息主要包括:行数、文件数、原始数据大小、所占存储大小、最后一次操作时间等;
14.1 新表的统计信息
对于一个新创建
Spring Boot 1.2.5 发布
wiselyman
spring boot
Spring Boot 1.2.5已在7月2日发布,现在可以从spring的maven库和maven中心库下载。
这个版本是一个维护的发布版,主要是一些修复以及将Spring的依赖提升至4.1.7(包含重要的安全修复)。
官方建议所有的Spring Boot用户升级这个版本。
项目首页 | 源