- I.MX6 Android 平台CAN总线调试(包含测试C语言代码)
Donald Linux
Android
I.MX6Android平台CAN总线调试(包含测试C语言代码)前言:这几天需要调试NXPAndroid平台CAN总线,以前到工作中都没有接触过can总线,折腾了几天,终于通信成功。至于can总线的原理我就不细说了,网上很多,原理很复杂,也比较难懂,我们主要还是学习如何使用就可以了。这里就记录以下在android平台下如何使用can进行通信。一、外围电路CAN总线收发驱动电路。二、在imx6q的的
- Linux学习笔记3-GPIO(1)
raulcy
linux学习笔记arm
学习单片机时最开始也是从GPIO开始的,Linux的主芯片I.MX6UL有124个GPIO,当然很多是复用的,与之对比,STM32F407系列的单片机GPIO口是112个。回顾之前单片机的学习,大部分的GPIO功能是通过HAL库函数调用的,例如HAL_GPIO_WritePin()和HAL_GPIO_TogglePin()都是很方便的操作GPIO的库函数,编程者无需关心寄存器如何设置。那I.MX6
- 【LINUX】i.MX6学习笔记(4) IIC驱动 smec98sp
taotao830
LINUXIMX6嵌入式
1.引言最近一个linux项目需要用到smec98sp来做一个加密鉴权的功能。鉴权方案就不写了,这里主要记录一下IIC驱动smec98sp的过程,顺便记录下linux下IIC设备的框架。2.IIC简介IIC总线介绍见上一篇【硬件】IIC总线。在此不再赘述。3.smec98sp简介smec98sp是中巨伟业的一款加密芯片,用于进行系统的一些加密校验,可以从官网下载到SDK开发包,从淘宝购买对应的下载
- 基于freescale i.Mx6(ARM)的阿里云oss调试记录
weixin_33939843
交叉编译阿里OSS调试记录1.1开通oss服务具体参考以下链接:https://help.aliyun.com/document_detail/31884.html?spm=a2c4g.11186623.6.558.n2g1UA1.2SDK安装在ubuntu下安装,安装步骤如下:安装CMake执行以下命令安装CMake。sudoapt-getinstallcmake安装第三方库执行以下命令安装第三
- 移植TensorFlow Lite到ARM板i.MX6上
lucca_x
上一篇文章说到移植到LC1860C板上失败后,我又换了一块库更全更新的板子,继续大业。运行label_image./label_image-v1-m./mobilenet_v1_1.0_224.tflite-i./grace_hopper.jpg-l./imagenet_slim_labels.txtalloc失败遇到的第一个问题是alloc失败。...83:MobilenetV1/Mobilen
- Tensorflow Lite tflite模型的导入 - ARM板i.MX6
lucca_x
上一篇文章中讲了tflite模型的建立和Python端的导入,现在开始在ARM板上的导入。为了不再重新生成输入数据,我将PC上python生成的数据保存到txt文件。所以稍微改了下上次那个代码:importnumpyasnpimporttimeimportmathimporttensorflowastfSIZE=1000X=np.random.rand(SIZE,1)X=X*(math.pi/2.
- open62541交叉编译
姚家湾
ubuntulinuxIEC61499OPCUA
好久没有做嵌入式ArmLinux的开发了。最近要将open62541的应用程序移植到i.mx6u嵌入式控制器。网络上讲解i.mx6交叉编译的文章太多了。但是都过于复杂,大多数使用虚拟机实现。其实在ubuntuOS下,开发ARM嵌入式应用软件相对是相当简单的。这里记录了在ubuntuLinux下,交叉编译i.mx应用软件的过程。安装交叉编译工具及其基本库目标设备为两种ARMNXPi.mx6基于Arm
- 从单片机开发转向Linux开发系列博客二:运行Hello World
TopSemic嵌入式
2.Linux处理器
1.引言前天写的文章《Linux学习系列一:开发环境搭建》,放到阿莫论坛里没想到第二天就变成火帖了,看来还是有很多人对这个主题挺感兴趣的。借着大家的鼓舞,趁热打铁,今天再写一篇。今天给大家介绍的是在一个嵌入式Linux板子上运行HelloWorld,入门学习的经典操作。依稀记得两年前,我第一次在飞思卡尔(现NXP)I.MX6上运行出HelloWorld的那种喜悦之情。希望这篇文章也能对你有帮助。2
- NXP i.MX6读取MPU内部温度命令
beetleinv
软件设计linuxubuntu
基于Linux系统个和imx6平台,读取MPU内部温度的命令。root@imx6ul7d:~#cat/sys/devices/virtual/thermal/thermal_zone0/temp34341root@imx6ul7d:~#cat/sys/class/thermal/thermal_zone0/trip_point_0_typepassiveroot@imx6ul7d:~#cat/sy
- nxp i.mx6系列处理器修改和查看eFuse的方法
beetleinv
硬件设计软件设计linux
博主在发此博文前,已经在i.mx6ul和i.mx6ull处理器验证过了。在uboot阶段进行查看或修改eFuse,语法如下。=>fuseread[]//从影子寄存器中读取eFuse的值=>fusesense[]ReadstheeFusevaluedirectlyfromthefusebox.=>fuseprog[-y]//写eFuse值到fusebox,此操作是不可逆的,错误的操作可能会损坏芯片=
- 第三代NXP i.MX6ULL核心板硬件设计指南
飞凌嵌入式
i.MX6ULLlinux运维服务器
NXPi.MX6ULL扩展了i.MX6系列,它是一个高性能、超高效、低成本处理器子系列,采用先进的ARMCortex-A7内核,运行速度高达800MHz。i.MX6ULL应用处理器包括一个集成的电源管理模块,降低了外接电源的复杂性,并简化了上电时序,目标应用有:汽车远程信息处理、IoT网关、人机界面、家庭能源管理系统、智能能源信息集中器、智能工业控制系统、电子POS设备、便携医疗设备、打印机和2D
- 基于linux5.15.5的IMX 参考手册 --- 2
chocolate2018
linux驱动NXP芯片linux
基于linux5.15.5的IMX参考手册—22.3引导映像2.3.1介绍对于i.MX6和i.MX7,引导映像只使用U-Boot引导加载程序。对于i.MX8系列中的SoC,引导映像更加复杂,包括U-Boot以及成功引导所需的各种固件。本章介绍i.MX8系列引导加载程序的附加组件。对于i.MX7ULP,引导分区需要ArmCortexM-4SDK闪存,因为ArmCortexM-4引导U-Boot引导加
- ARM与Qt及openCV的思路总结
wangzi199822
嵌入式ARMopenCVQt
本文经过拜读师兄一路调bug的实验过程,深知入门不易,在这接着总结一些嵌入式配置opencv等的大致思路。同时对摄像头读取操作和QT中opencv处理作详细的记录。附上其文章,建议常读:i.MX6开发板嵌入式linux开发上面笔记记录一些嵌入式内核配置opencv的过程,同时简述opencv+qt在嵌入式内核中运行的配置;一、思路1.ARM+Qte的配置本次实验的ARM板子是IMX6开发板,烧写u
- 在arm,i.mx6上调试使用EC20 4G模块上网
YANGXUSHI520
笔记嵌入式arm物联网
1,添加USB设备信息1.1,修改drivers/usb/serial/option.c(1)添加PID和VID#defineQUECTEL_VENDOR_ID0X2C7C#defineQUECTEL_PRODUCT_EC200X0125(2)将ID宏信息添加到option_ids数组中staticconststructusb_device_idoption_ids[]={{USB_DEVICE(
- 嵌入式人工智能教学科研平台
9#月芳
机器学习
ZN-AI-BC01型嵌入式人工智能教学科研平台一、产品特点VS-AI-BC01型嵌入式人工智能教学科研平台采用目前市场上*主流的i.MX6工业级处理器,具有图像硬件加速器与原生千兆以太网;基于Ubuntu18.04系统,支持OpenCV3.2.0,Python2.7/3.6.7,Qt5.9.5,包含OpenCV、Python实验体系,拥有图像识别、语音识别案例,可与百度人工智能平台、天工平台对接
- linux共享文件夹_嵌入式Linux系列第2篇:运行Hello World
weixin_39610774
linux共享文件夹linux如何复制粘贴linux怎么复制粘贴虚拟机qt文件运行跑linux的单片机
1.引言今天给大家介绍的是在一个嵌入式Linux板子上运行HelloWorld,软硬件入门学习的经典操作。依稀记得两年前,我第一次在飞思卡尔(现NXP)I.MX6上运行出HelloWorld的那种喜悦之情。希望这篇文章能对你有所帮助。2.硬件平台选择能够运行Linux系统的嵌入式硬件平台,我了解的有这么几个,一是三星的2440系列,著名的韦东山老师的Linux视频教程就是用的这个平台。二是TI的A
- opencv 手册_I.MX6 Linux Yocto与OpenCV
weixin_39601641
opencv手册opencv手册opencv镜像
配件环境:主机:Ubuntu16.04LTS64bit开发板:NXPimx6qsabresdBspversion:fsl-yocto-L4.1.15_2.0.0-gaYoctoProjectversion:2.1Yocto配置:主机包安装:打开Terminal依次输入以下三条语句,如果速度很慢,可以更换国内下载源。$sudoapt-getinstallgawkwgetgit-corediffsta
- i.MX8M Mini与i.MX6的一些比较分析
vickycheung3
嵌入式产品i.MX8MMinicortex-A53cortex-M4物联网开发板
在NXPi.mx8系列发布前,imx6系列一直是nxpimx系列的主力军,应用于工业物联、数据采集、车载产品等领域。在万物互联时代,对产品有了进一步的要求,更多的设备,更快的处理速度、更低的能耗,推动高性能、低能耗处理器不断更新。启扬智能基于NXPi.MX8MMini推出IAC-IMX8MM-CM,是启扬经典产品IAC-IMX6-CM的升级之作。IAC-IMX6-CMVSIAC-IMX8MM-CM
- 【转载】NXP i.MX8系列处理器介绍
vickycheung3
分享技术分享NXPi.MX8cortex-A72Cortex-A53
NXPi.MX系列应用处理器是基于32和64位ARM技术,提供多核解决方案,适用于多媒体和显示应用,具有高性能和低功耗、可扩展、安全可靠等特点。发展经历了早期的i.MX28系列,到大获成功的i.MX6系列,再到更高性能的i.MX7和i.MX8系列,此外还有跨界MCUi.MXRT系列。今天主要来介绍一下最新的i.MX8系列。I.MX8系列应用处理器是恩智浦针对高端应用市场推出的旗舰型产品,根据不同配
- 嵌入式学习:裸机开发_L5_BSP工程管理LED实验
fzx2020
嵌入式
裸机开发_L5_BSP工程管理LED实验0.本节目标1.目录结构2.硬件层电路2.1正点原子i.MX6ULLALPHAV2.2开发板2.2飞凌i.MX6UL-C开发板3.软件编写0.本节目标Makefile的编写:函数使用BSP分门别类1.目录结构2.硬件层电路2.1正点原子i.MX6ULLALPHAV2.2开发板查看底板原理图可知:功能管脚芯片引脚LED0GPIO1_IO032.2飞凌i.MX6
- RTL8723BU在I.MX6 DQ平台上的移植
jinron10
WIFIBT汽车电子Android技术开发
摘要:在移植时请注意,因为Realtek发布的移植代码和文档不是针对Freescale平台的,所以首先看一下,目前使用的平台是否已经支持BT和WIFI功能(可能不是我们要移植的模块)。一般情况下,原厂发布BSP都支持BT和WIFI功能,也就是说AndroidOS部分已经完整的包含BT和WIFI功能,只要适配驱动和HAL即可。我们针对RTL8723BU的BT和WIFI的移植就是基于这个思路去移植的。
- 迅为开发板-i.MX6Q开发板飞思卡尔imx6开发板专业推荐
chengzhou7664
i.MX6系列推出了基于ARM?CortexTM-A9架构的包括单核、双核和四核在内的高扩展性多核系列应用处理器平台,促进了消费电子、工业和汽车车载娱乐系统等新一代应用的发展。通过与ARMCortex-A9架构的高效处理能力、前沿性的2D与3D图形以及高清晰视频功能实现一流水平的集成,i.MX6系列可以提供令人瞩目的多媒体性能,以支持超越现有界限的下一代用户体验。使i.MX单核、双核和四核产品获得
- 如何使用makefile编译不同平台的目标文件(makefile的参数传递)
leon1741
玩转linux
最近在研究一个嵌入式开发项目,在编写实际的项目代码时,需要临时写一些测试代码对部分功能进行预测试。编写的这些代码,有时候需要在PC机(x86)的平台上运行,有时候则需要在A嵌入式平台(arm端)i.mx6的平台上运行,而还有时候则需要在B嵌入式平台(arm端)mini2440的平台上运行,需要能随时进行切换,编译出对应平台所需要的可执行文件。为了解决这个问题,最土的办法自然就是写三份makefil
- i.MX6 Yocto工程简介与分析
致守
Linux
i.MX6Yocto工程简介与分析按照NXP官方网站的说法,i.MX6的源码都发布在YoctoProjectFreescalei.MX6release工程里了。TheFSLYoctoProjectCommunityBSP(freescale.github.io)是一个社区驱动的在YoctoProject里提供相关i.MX6单板支持和维BoardSupportPackagemetalayer社区。使
- I.MX6 按键开关机 PMIC 检测
weixin_33810302
/**************************************************************************I.MX6按键开关机PMIC检测*说明:*最近一直在被i.MX6的开机、关机流程控制,其内部是如何检测到1秒按钮,*2秒按钮,4秒按钮的,这其中的工作机制是如何实现,由于发现这部分工作并*不是在PMIC上实现了,现在终于在数据手册上找到这部分相关介绍
- Yocto i.MX6 (TQIMX6) (01) : 3.14.28内核的适配
dxmcu
飞思卡尔I.MX6Q
FreesacleYocto的环境配置与编译到Freescale下载imx6LinuxSourceCode,解压里面的fsl-yocto命名的压缩包得到Yoctosetup手册:Freescale_Yocto_Project_User's_Guide.pdf然后按照里面的步骤操作即可编译出一个完整的distribution,当然很可能会因为网络或者一些Package早已不存在,或者因为大家都知道的
- 使用Buildroot为Nxp i.mx6ul制作文件系统
WindLOR
i.mx6ulARM
随着神Us3c2440,6410的停产,NXP针对中国市场推出低成本方案i.mx6ul,可用于商业级和工业级应用,10年超长供货周期,市场很有潜力。官方只支持Yocto,但个人感觉Yocto太多庞大且太复杂,而工业市场业务并不是特别负责,需要用到的软件包有限,且在特定的一个范围。工业市场对稳定性要求较高,并不需很大的灵活度。本文将介绍使用Buildroot为i.mx6制作文件系统,相对来说Buil
- I.MX6 PCB设计的一点心得
metersun
从最初的protel99se双面板,四层板,到使用PADS设计的8层板,到当前主要使用allegro来进行大部分的4层,6层,8层板设计,做PCB设计和布板断断续续已近10年了。由于工作需要,我不能把全部精力放在硬件设计上,不得不抽出大量的时间来做软件和系统设计(这么多年也一直关注linux的发展)。人的时间和精力是非常有限的。所以,在软硬件方面,我自愧都不能走的太远。2016年中,在专注做较高端
- Linux Kernl添加spidev的设备节点
www.wowothink.com
LinuxDeviceDriver
一、spidev介绍如果在内核中配置spidev,会在/dev目录下产生设备节点,通过此节点可以操作挂载在该SPI总线上的设备。用户空间通过该节点可以访问内核空间。二、配置spidev设备步骤在i.MX6,Kernel4.1.15上配置spidev的支持。1、配置dts支持spi根据spi的连接原理图配置对应的imx6qp-xxx.dts,如:&ecspi1{compatible="fsl,imx
- 飞思卡尔i.mx6交叉编译工具链BUG
liuhuahan
Linux系统开发C语言
最近在用飞思卡尔的i.mx6平台做一个项目,编写完代码在i.mx6上测试的时候发现有一个函数的返回值判断一直不正确,我一个函数的返回值类型为"char"错误返回值是‘-2’,并且用其返回值与‘0’值比大小来进入不同处理分支,但是测试的时候发现,程序始终无法进入错误分支,最后经反复测试才找到问题,因为返回‘-2’的时候系统把他当做254来处理了。后来我在char前边加一个signed修饰,就能正确返
- springmvc 下 freemarker页面枚举的遍历输出
杨白白
enumfreemarker
spring mvc freemarker 中遍历枚举
1枚举类型有一个本地方法叫values(),这个方法可以直接返回枚举数组。所以可以利用这个遍历。
enum
public enum BooleanEnum {
TRUE(Boolean.TRUE, "是"), FALSE(Boolean.FALSE, "否");
- 实习简要总结
byalias
工作
来白虹不知不觉中已经一个多月了,因为项目还在需求分析及项目架构阶段,自己在这段
时间都是在学习相关技术知识,现在对这段时间的工作及学习情况做一个总结:
(1)工作技能方面
大体分为两个阶段,Java Web 基础阶段和Java EE阶段
1)Java Web阶段
在这个阶段,自己主要着重学习了 JSP, Servlet, JDBC, MySQL,这些知识的核心点都过
了一遍,也
- Quartz——DateIntervalTrigger触发器
eksliang
quartz
转载请出自出处:http://eksliang.iteye.com/blog/2208559 一.概述
simpleTrigger 内部实现机制是通过计算间隔时间来计算下次的执行时间,这就导致他有不适合调度的定时任务。例如我们想每天的 1:00AM 执行任务,如果使用 SimpleTrigger,间隔时间就是一天。注意这里就会有一个问题,即当有 misfired 的任务并且恢复执行时,该执行时间
- Unix快捷键
18289753290
unixUnix;快捷键;
复制,删除,粘贴:
dd:删除光标所在的行 &nbs
- 获取Android设备屏幕的相关参数
酷的飞上天空
android
包含屏幕的分辨率 以及 屏幕宽度的最大dp 高度最大dp
TextView text = (TextView)findViewById(R.id.text);
DisplayMetrics dm = new DisplayMetrics();
text.append("getResources().ge
- 要做物联网?先保护好你的数据
蓝儿唯美
数据
根据Beecham Research的说法,那些在行业中希望利用物联网的关键领域需要提供更好的安全性。
在Beecham的物联网安全威胁图谱上,展示了那些可能产生内外部攻击并且需要通过快速发展的物联网行业加以解决的关键领域。
Beecham Research的技术主管Jon Howes说:“之所以我们目前还没有看到与物联网相关的严重安全事件,是因为目前还没有在大型客户和企业应用中进行部署,也就
- Java取模(求余)运算
随便小屋
java
整数之间的取模求余运算很好求,但几乎没有遇到过对负数进行取模求余,直接看下面代码:
/**
*
* @author Logic
*
*/
public class Test {
public static void main(String[] args) {
// TODO A
- SQL注入介绍
aijuans
sql注入
二、SQL注入范例
这里我们根据用户登录页面
<form action="" > 用户名:<input type="text" name="username"><br/> 密 码:<input type="password" name="passwor
- 优雅代码风格
aoyouzi
代码
总结了几点关于优雅代码风格的描述:
代码简单:不隐藏设计者的意图,抽象干净利落,控制语句直截了当。
接口清晰:类型接口表现力直白,字面表达含义,API 相互呼应以增强可测试性。
依赖项少:依赖关系越少越好,依赖少证明内聚程度高,低耦合利于自动测试,便于重构。
没有重复:重复代码意味着某些概念或想法没有在代码中良好的体现,及时重构消除重复。
战术分层:代码分层清晰,隔离明确,
- 布尔数组
百合不是茶
java布尔数组
androi中提到了布尔数组;
布尔数组默认的是false, 并且只会打印false或者是true
布尔数组的例子; 根据字符数组创建布尔数组
char[] c = {'p','u','b','l','i','c'};
//根据字符数组的长度创建布尔数组的个数
boolean[] b = new bool
- web.xml之welcome-file-list、error-page
bijian1013
javaweb.xmlservleterror-page
welcome-file-list
1.定义:
<welcome-file-list>
<welcome-file>login.jsp</welcome>
</welcome-file-list>
2.作用:用来指定WEB应用首页名称。
error-page1.定义:
<error-page&g
- richfaces 4 fileUpload组件删除上传的文件
sunjing
clearRichfaces 4fileupload
页面代码
<h:form id="fileForm"> <rich:
- 技术文章备忘
bit1129
技术文章
Zookeeper
http://wenku.baidu.com/view/bab171ffaef8941ea76e05b8.html
http://wenku.baidu.com/link?url=8thAIwFTnPh2KL2b0p1V7XSgmF9ZEFgw4V_MkIpA9j8BX2rDQMPgK5l3wcs9oBTxeekOnm5P3BK8c6K2DWynq9nfUCkRlTt9uV
- org.hibernate.hql.ast.QuerySyntaxException: unexpected token: on near line 1解决方案
白糖_
Hibernate
文章摘自:http://blog.csdn.net/yangwawa19870921/article/details/7553181
在编写HQL时,可能会出现这种代码:
select a.name,b.age from TableA a left join TableB b on a.id=b.id
如果这是HQL,那么这段代码就是错误的,因为HQL不支持
- sqlserver按照字段内容进行排序
bozch
按照内容排序
在做项目的时候,遇到了这样的一个需求:
从数据库中取出的数据集,首先要将某个数据或者多个数据按照地段内容放到前面显示,例如:从学生表中取出姓李的放到数据集的前面;
select * fro
- 编程珠玑-第一章-位图排序
bylijinnan
java编程珠玑
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;
import java.util.Random;
public class BitMapSearch {
- Java关于==和equals
chenbowen00
java
关于==和equals概念其实很简单,一个是比较内存地址是否相同,一个比较的是值内容是否相同。虽然理解上不难,但是有时存在一些理解误区,如下情况:
1、
String a = "aaa";
a=="aaa";
==> true
2、
new String("aaa")==new String("aaa
- [IT与资本]软件行业需对外界投资热情保持警惕
comsci
it
我还是那个看法,软件行业需要增强内生动力,尽量依靠自有资金和营业收入来进行经营,避免在资本市场上经受各种不同类型的风险,为企业自主研发核心技术和产品提供稳定,温和的外部环境...
如果我们在自己尚未掌握核心技术之前,企图依靠上市来筹集资金,然后使劲往某个领域砸钱,然
- oracle 数据块结构
daizj
oracle块数据块块结构行目录
oracle 数据块是数据库存储的最小单位,一般为操作系统块的N倍。其结构为:
块头--〉空行--〉数据,其实际为纵行结构。
块的标准大小由初始化参数DB_BLOCK_SIZE指定。具有标准大小的块称为标准块(Standard Block)。块的大小和标准块的大小不同的块叫非标准块(Nonstandard Block)。同一数据库中,Oracle9i及以上版本支持同一数据库中同时使用标
- github上一些觉得对自己工作有用的项目收集
dengkane
github
github上一些觉得对自己工作有用的项目收集
技能类
markdown语法中文说明
回到顶部
全文检索
elasticsearch
bigdesk elasticsearch管理插件
回到顶部
nosql
mapdb 支持亿级别map, list, 支持事务. 可考虑做为缓存使用
C
- 初二上学期难记单词二
dcj3sjt126com
englishword
dangerous 危险的
panda 熊猫
lion 狮子
elephant 象
monkey 猴子
tiger 老虎
deer 鹿
snake 蛇
rabbit 兔子
duck 鸭
horse 马
forest 森林
fall 跌倒;落下
climb 爬;攀登
finish 完成;结束
cinema 电影院;电影
seafood 海鲜;海产食品
bank 银行
- 8、mysql外键(FOREIGN KEY)的简单使用
dcj3sjt126com
mysql
一、基本概念
1、MySQL中“键”和“索引”的定义相同,所以外键和主键一样也是索引的一种。不同的是MySQL会自动为所有表的主键进行索引,但是外键字段必须由用户进行明确的索引。用于外键关系的字段必须在所有的参照表中进行明确地索引,InnoDB不能自动地创建索引。
2、外键可以是一对一的,一个表的记录只能与另一个表的一条记录连接,或者是一对多的,一个表的记录与另一个表的多条记录连接。
3、如
- java循环标签 Foreach
shuizhaosi888
标签java循环foreach
1. 简单的for循环
public static void main(String[] args) {
for (int i = 1, y = i + 10; i < 5 && y < 12; i++, y = i * 2) {
System.err.println("i=" + i + " y="
- Spring Security(05)——异常信息本地化
234390216
exceptionSpring Security异常信息本地化
异常信息本地化
Spring Security支持将展现给终端用户看的异常信息本地化,这些信息包括认证失败、访问被拒绝等。而对于展现给开发者看的异常信息和日志信息(如配置错误)则是不能够进行本地化的,它们是以英文硬编码在Spring Security的代码中的。在Spring-Security-core-x
- DUBBO架构服务端告警Failed to send message Response
javamingtingzhao
架构DUBBO
废话不多说,警告日志如下,不知道有哪位遇到过,此异常在服务端抛出(服务器启动第一次运行会有这个警告),后续运行没问题,找了好久真心不知道哪里错了。
WARN 2015-07-18 22:31:15,272 com.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(84)
- JS中Date对象中几个用法
leeqq
JavaScriptDate最后一天
近来工作中遇到这样的两个需求
1. 给个Date对象,找出该时间所在月的第一天和最后一天
2. 给个Date对象,找出该时间所在周的第一天和最后一天
需求1中的找月第一天很简单,我记得api中有setDate方法可以使用
使用setDate方法前,先看看getDate
var date = new Date();
console.log(date);
// Sat J
- MFC中使用ado技术操作数据库
你不认识的休道人
sqlmfc
1.在stdafx.h中导入ado动态链接库
#import"C:\Program Files\Common Files\System\ado\msado15.dll" no_namespace rename("EOF","end")2.在CTestApp文件的InitInstance()函数中domodal之前写::CoIniti
- Android Studio加速
rensanning
android studio
Android Studio慢、吃内存!启动时后会立即通过Gradle来sync & build工程。
(1)设置Android Studio
a) 禁用插件
File -> Settings... Plugins 去掉一些没有用的插件。
比如:Git Integration、GitHub、Google Cloud Testing、Google Cloud
- 各数据库的批量Update操作
tomcat_oracle
javaoraclesqlmysqlsqlite
MyBatis的update元素的用法与insert元素基本相同,因此本篇不打算重复了。本篇仅记录批量update操作的
sql语句,懂得SQL语句,那么MyBatis部分的操作就简单了。 注意:下列批量更新语句都是作为一个事务整体执行,要不全部成功,要不全部回滚。
MSSQL的SQL语句
WITH R AS(
SELECT 'John' as name, 18 as
- html禁止清除input文本输入缓存
xp9802
input
多数浏览器默认会缓存input的值,只有使用ctl+F5强制刷新的才可以清除缓存记录。如果不想让浏览器缓存input的值,有2种方法:
方法一: 在不想使用缓存的input中添加 autocomplete="off"; eg: <input type="text" autocomplete="off" name