- zybo上运行linux,Zybo开发板linux作业系统移植
周行文
zybo上运行linux
文章主要介紹zyboboard上linux作业系统移植过程。分别介绍了开发环境搭建、U-boot编译、linux内核编译、busybox制作等流程及注意事项。文章使用的开发板是zynq7000系列的zyboboard。Vivado版本是2015.1.主机系统是Debian9.1.开发环境搭建工欲善其事必先利其器,做开发前搭建好编译环境是重要的一步,这些步骤大体上都相同,然而对于不同的系统平台、硬件
- 2021-10-06 AT91RM9200开发板瞎玩记录
硅谷少年
2009年的老板子了,之前问题是日期1970-1-1改不了,目前折腾发现进入u-boot后用date100612342021.30可以设置时钟了,格式为mmddhhmmyyyy.ss,比较奇怪,是【月日时分年.秒】格式的,之间试了很多次都报输入格式错误,网上找了不少资料才看到正确格式应该是这样的。在u-boot里解除保护,擦除kernel内容,再loadb新内核,结果发现u-boot可能有问题,看
- rk3588s编译问题
yqc603090635
源码SDK编译android
编译环境为Ubuntu16.04server1、/u-boot/scripts/fit.sh:line615:fdtget:commandnotfound需安装"fdtget"apt-getinstalldevice-tree-compiler2、/bin/sh::lz4c:notfoundmake[]:***[arch/arm64/boot/Image.lz4]errormake:***[Ima
- 一步步基于HAL库STM32程序RCT6移植到ZET6
tt555555555555
STM32stm32arm
一份来自于大牛室友@Top嵌入式的博客_CSDN博客-Linux驱动开发,STM32,U-Boot源码分析领域博主的代码,他是基于STM32c8t6的HAL库编写的,由于我只有正点原子精英板,于是便从零开始学习。欢迎大佬指正。一.更改启动文件32单片机启动文件为startup_stm32f103x6.sstartup_stm32f103xb.sstartup_stm32f103xe.sstartu
- Linux电脑系统启动过程
IT苦旅
linux电脑运维
Linux系统启动过程BIOS/UEFI我们使用的电脑,在主板上面会有一段固化代码,我们称之为板载启动程序(固件),早期是BIOS,近几年已经迭代为UEFI。注:BIOS/UEFI也是可以刷写的,不过需要特别小心哟,不然电脑就起不来啦!GRUBGRUB(GRandUnifiedBootloader)是一个来自GNU项目的多操作系统启动程序,其角色和嵌入式领域的U-Boot是类似的,负责硬件初始化(
- T2080 linux内核移植,T1042/T2080 U-BOOT 移植阶段(四)调试网口问题不通解决
weixin_39575758
T2080linux内核移植
本次设计中,我们采用MEMAC4(RGMII)接口作为调试接口,但是发现网口并不通1.首先排查PHY的问题,phy有没有解复位结果:CPLD已经对PHY解复位,且插上网线后,phy'灯link亮,说明phy确实已经解复位2.使用mii命令,读取phy寄存器,插拔网线后观察寄存器的变化,是否正常反应出phy的down和up拔掉网线时phy的状态=>miidump111.(7969)--PHYstat
- uboot 中的bootargs 如何 修改 内核的 cmdline和 linux 内核如何生成 /proc/cmdline
sunfanup
linux开发cc++linux
一、在U-Boot中,可以通过修改环境变量“bootargs”来修改内核的启动参数(cmdline)。以下是在U-Boot中修改内核的cmdline的一般步骤:进入U-Boot的命令行界面。这可以通过串口连接到设备,并在启动时按下适当的按键(如Enter键或空格键)来实现。使用“printenv”命令查看当前的环境变量。找到名为“bootargs”的变量。使用“setenv”命令修改“bootar
- GNU Makefile--命令行参数的传递
塵觴葉
杂谈makefile
make的命令行变量参数在Makefile脚本中,可以通过$(MAKE)递归执行其他的Makefile。make的一些命令行选项(例如禁止输出当前目录的选项--no-print-directory等),会对其行为产生一些影响,而递归调用的make也应当继承这一类选项。此外,在编译u-boot或Linux内核等工程时,常用的命令为:makeARCH=arm64CROSS_COMPILE=aarch6
- iTop-4412刷机方式详解(2)
Kilento
Exynos4412嵌入式系统烧写
续>iTop-4412刷机方式详解(1)2.Android4.0.3的烧写(USB烧写到eMMC)2.1准备工作1)硬件准备:开发板、电源、串口线、MicroUSB线2)软件及驱动准备:ADB驱动、串口驱动、SecureCRT3)安装镜像(压缩包):u-boot-iTOP-4412.bin(U-boot,通用引导程序)zImage(kernel,内核)ramdisk-uboot.img和syste
- iTop-4412 刷机方式详解(3)
Kilento
Exynos4412嵌入式系统烧写
续>iTop-4412刷机方式详解(2)4.Android4.0.3的烧写(USB烧写到TF卡)4.1准备工作1)硬件准备:开发板、电源、串口线、MicroUSB线、TF卡2)软件及驱动准备:ADB驱动、串口驱动、SecureCRT3)安装镜像(压缩包):u-boot-iTOP-4412.bin(U-boot,通用引导程序)zImage(kernel,内核)ramdisk-uboot.img和sy
- OurBMC 社区贡献指南之 U-Boot 开发指南
git程序员
U-Boot开发指南1.编译(Linux环境)1.1获取工程源码$gitclonehttps://gitee.com/ourbmc/uboot1.2编译(1)进入工程根目录$cdu-boot/(2)选择默认配置$makepe2201-bmc_defconfig(3)可选配置$makemenuconfig执行该操作,会弹出menuconfig配置菜单窗口,此时即可对各模块功能进行配置,配置方法men
- arm交叉编译
liujianhua1989
linuxc/c++交叉编译
1.arm-none-linux-gnueabi-gcc下载http://www.veryarm.com/arm-none-linux-gnueabi-gccarm-none-linux-gnueabi-gcc是Codesourcery公司(目前已经被Mentor收购)基于GCC推出的的ARM交叉编译工具。可用于交叉编译ARM系统中所有环节的代码,包括裸机程序、u-boot、Linuxkernel
- Linux学习笔记之二:U-Boot常用命令
manmanbab
linux学习笔记
参考链接:https://blog.csdn.net/qq_46079439/article/details/125474461U-Boot常用命令uboot简介uboot属于bootloader的一种,是用来引导启动内核的,它的最终目的就是:从flash中读出内核,放到内存中,启动内核。它刚开始被放到flash上,然后上电以后先执行它,它会完成硬件初始化,设置处理器模式,关闭看门狗,屏蔽中断,初
- rockchip的yocto编译环境搭建
良知犹存
作者:良知犹存转载授权以及围观:欢迎添加微信公众号:Conscience_Remains总述嵌入式的朋友们,应该知道Linux驱动开发过程中,需要进行搭建交叉编译工具链环境、移植u-boot、kernel、根文件系统的几个部分工作。最开始我们的学习是把几个模块分开使用学习使用,各个部分生成代码,然后进行烧录,有时候我们会用脚本去把各个部分的代码打包到一起进行烧录。后来随着工具的发,我们只需要一个S
- Rockchip RK3588 - linux下Qt和opencv交叉编译环境搭建
Graceful_scenery
linuxqt运维服务器开发语言
----------------------------------------------------------------------------------------------------------------------------开发板:NanoPC-T6开发板eMMC:256GBLPDDR4:16GB显示屏:15.6英寸HDMI接口显示屏u-boot:2017.09linux:
- Rockchip RK3588 - USB基础 & 调试
Graceful_scenery
开发板:NanoPC-T6开发板eMMC:256GBLPDDR4:16GB显示屏:15.6英寸HDMI接口显示屏u-boot:2017.09linux:6.1-------------------------------------------------------------------------------------------------------------------------
- 【Linux】嵌入式Linux系统的移植(下篇:BootLoader,以U-Boot为例)
31f8e3dd4e6b
姓名:邓皓轩学号:19020100151学院:丁香2号书院转自:https://yngzmiao.blog.csdn.net/article/details/90243257【嵌牛导读】嵌入式Linux系统移植【嵌牛鼻子】介绍嵌入式Linux系统移植的要点【嵌牛提问】怎样进行嵌入式Linux系统移植BootLoaderBootLoader的概念BootLoader就是在操作系统内核运行之前运行的一
- 烧写u-boot到开发板emmc或SD卡中的多种方式
__万波__
嵌入式开发板u-bootuboot
开发板的系统启动引导程序u-boot是一切的开始。1.windows系统下写入u-boot到SD卡前提:需要软件Win32DiskImager.exe需要SD卡,以及SD卡读卡器。打开软件选择要烧写的uboot软件,点击写入即可注意:windows下烧写是从块设备的0号设备开始写的,会将SD卡的分区表覆盖掉。测试:让开发板从SD卡启动,然后观察到可以进入uboot交互界面就代表成功2.ubuntu
- U-boot之flash初始化完全代码分析
xiehongyu3000
ARMflash代码分析timerbufferalignmentcommand
一代码分析1、Board->dave->flash.c#include#include#include"../common/flash.c"#包含必须的头文件staticulongflash_get_size(vu_long*addr,flash_info_t*info);staticvoidflash_get_offsets(ulongbase,flash_info_t*info);#声明两个静
- 系统移植 day2 bootloader->u-boot 移植
Wexcill
arm开发网络开发语言
一、栈的复习1、满栈:当堆栈指针SP总是指向最后压入堆栈的数据,称为满栈;2、空栈:当堆栈指针SP总是指向下一个将要放入数据的空位置,称为空栈;满栈状态下,先移动指针,后赋值.空栈状态下,先赋值,后移动指针(记忆:空栈已经是指向下个元素了,肯定就只能先赋值,后移动。相应的,满栈就是先移动)1、升栈:随着数据的入栈,SP指针从低地址向高地址移动,称为升栈;上面先出2、降栈:随着数据的入栈,SP指针从
- Linux内核学习(四):Bootloader的特种兵-Uboot(二)
Hcoco_me
#Linux内核初始化linuxc语言arm嵌入式硬件物联网
Linux内核学习(四):Bootloader的特种兵-Uboot(二)内容全部来自韦神《嵌入式Linux应用开发完全手册》在上一篇的Linux内核学习(三):Bootloader的特种兵-Uboot(一)中我们学习了关于Uboot的介绍、源码结构以及配置和编译的过程,到这一章我们来看看U-Boot的启动过程源码的分析。很多的时候会把系统文件那些放在flash,然后运行的时候加载到内存中,然后启动
- Rockchip RK3399 - HDMI音频
Graceful_scenery
RockChipRK3399音视频
----------------------------------------------------------------------------------------------------------------------------开发板:NanoPC-T4开发板eMMC:16GBLPDDR3:4GB显示屏:15.6英寸HDMI接口显示屏u-boot:2023.04linux:6.
- U-boot中常用参数设定及常用宏的解释和说明
无人知晓万事万物
flashdns服务器linux内核cmd存储dos
uboot功能很强,支持各种各样的启动方式,如:U盘启动,NFS启动,NANDFlash启动,NORFlash启动……1、环境变量的存储设置如u-boot中的savenv命令,它用来保存系统的环境变量到Flash中,当我们在开发板的配置文件中,使用的宏定义为:#defineCONFIG_ENV_IS_IN_FLASH1#defineCONFIG_ENV_SIZE0x20000/*TotalSize
- 如何利用JLINK烧写U-boot到NAND Flash中
无人知晓万事万物
很多同学使用笔记本作为自己的ARM开发和学习的平台,绝大多数笔记本都没有并口,也就是无法使用JTag调试和烧写程序到NandFlash中,幸好我们还有JLINK,用JLINK烧写U-boot到NorFlash中很简单,大部分NORFlash都已经被JLink的软件SEGGER所支持,而新手在学习的时候经常会实验各种各样的命令,最悲剧的莫过于将NANDFlash中原有的bootloader给删除了,
- 【嵌入式移植】5、U-Boot源码分析2—make nanopi_neo2_defconfig
Keep_moving_tzw
【嵌入式移植】嵌入式U-Bootdefconfig
U-Boot源码分析2—makenanopi_neo2_defconfig1概述2nanopi_neo2_defconfig3编译过程分析3.1编译目标3.2scripts_basic3.2.1prefixsrc定义3.2.2PHONY3.2.3__build3.2.4fixdep3.3obj=scripts/kconfig1概述上一章中,对Makefile相关源码进行了初步分析,这里结合编译过程
- u-boot-2009.08工程编译过程分析
hpblovechj
Bootloader
1、背景:由于项目需求,需要了解bootloader的相关知识,而项目中使用到的bootloader为u-boot-2009.08,所以本文以u-boot的2009.08版本为基础进行分析。正如标题所言,本文只对u-boot的编译过程进行分析,而暂且不去理会u-boot代码结构、u-boot的启动流程以及详细的代码分析等。写作本文的目的主要是为了方便日后查阅u-boot相关的知识,正所谓“好记性不
- 龙芯在uboot中设置启动参数
pzs0221
前言烧uboot有uboot或从SPI启动uboot后nandopennandprobeloady0xa1000000u-boot.binnanderase050000//擦除0地址0x50000大小的区域,实际擦除大小根据u-boot.bin大小调整,擦除大小必须大于u-boot实际大小nandwrite0xa100000000x50000一、内核启动方式1、nand启动:setenvbootc
- U-Boot MMC:env之partitions
猩猩の點燈
RockchipU-Bootlinux
一:获取partitions地址board_init_f:uboot_dev/common/board_f.c--->env_init:uboot_dev/env/env.cintenv_init(void){structenv_driver*drv;intret=-ENOENT;intprio;......if(ret==-ENOENT){gd->env_addr=(ulong)&default
- Windows 下 TFTP 服务搭建及 U-Boot 中使用 tftp 命令实现文件下载
Hello阿尔法
LinuxwindowsU-BootTFTP
目录Tftpd32/64文件下载更多内容TFTP(TrivialFileTransferProtocol,简单文件传输协议)是TCP/IP协议族中的一个用来在客户机与服务器之间进行简单文件传输的协议,提供不复杂、开销不大的文件传输服务,端口号为69。在U-Boot中也支持TFTP协议,可以通过tftp命令从服务端下载文件。服务端可以是Linux,也可以是Windows,只要支持TFTP服务就可以。
- Linux 下 TFTP 服务搭建及 U-Boot 中使用 tftp 命令实现文件下载
Hello阿尔法
LinuxU-BootLinuxTFTP
目录搭建TFTP服务文件下载更多内容TFTP(TrivialFileTransferProtocol,简单文件传输协议)是TCP/IP协议族中的一个用来在客户机与服务器之间进行简单文件传输的协议,提供不复杂、开销不大的文件传输服务,端口号为69。在U-Boot中也支持TFTP协议,可以通过tftp命令从服务端下载文件。服务端可以是Linux,也可以是Windows,只要支持TFTP服务就可以。本文
- PHP,安卓,UI,java,linux视频教程合集
cocos2d-x小菜
javaUIlinuxPHPandroid
╔-----------------------------------╗┆
- zookeeper admin 笔记
braveCS
zookeeper
Required Software
1) JDK>=1.6
2)推荐使用ensemble的ZooKeeper(至少3台),并run on separate machines
3)在Yahoo!,zk配置在特定的RHEL boxes里,2个cpu,2G内存,80G硬盘
数据和日志目录
1)数据目录里的文件是zk节点的持久化备份,包括快照和事务日
- Spring配置多个连接池
easterfly
spring
项目中需要同时连接多个数据库的时候,如何才能在需要用到哪个数据库就连接哪个数据库呢?
Spring中有关于dataSource的配置:
<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"
&nb
- Mysql
171815164
mysql
例如,你想myuser使用mypassword从任何主机连接到mysql服务器的话。
GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%'IDENTIFIED BY 'mypassword' WI
TH GRANT OPTION;
如果你想允许用户myuser从ip为192.168.1.6的主机连接到mysql服务器,并使用mypassword作
- CommonDAO(公共/基础DAO)
g21121
DAO
好久没有更新博客了,最近一段时间工作比较忙,所以请见谅,无论你是爱看呢还是爱看呢还是爱看呢,总之或许对你有些帮助。
DAO(Data Access Object)是一个数据访问(顾名思义就是与数据库打交道)接口,DAO一般在业
- 直言有讳
永夜-极光
感悟随笔
1.转载地址:http://blog.csdn.net/jasonblog/article/details/10813313
精华:
“直言有讳”是阿里巴巴提倡的一种观念,而我在此之前并没有很深刻的认识。为什么呢?就好比是读书时候做阅读理解,我喜欢我自己的解读,并不喜欢老师给的意思。在这里也是。我自己坚持的原则是互相尊重,我觉得阿里巴巴很多价值观其实是基本的做人
- 安装CentOS 7 和Win 7后,Win7 引导丢失
随便小屋
centos
一般安装双系统的顺序是先装Win7,然后在安装CentOS,这样CentOS可以引导WIN 7启动。但安装CentOS7后,却找不到Win7 的引导,稍微修改一点东西即可。
一、首先具有root 的权限。
即进入Terminal后输入命令su,然后输入密码即可
二、利用vim编辑器打开/boot/grub2/grub.cfg文件进行修改
v
- Oracle备份与恢复案例
aijuans
oracle
Oracle备份与恢复案例
一. 理解什么是数据库恢复当我们使用一个数据库时,总希望数据库的内容是可靠的、正确的,但由于计算机系统的故障(硬件故障、软件故障、网络故障、进程故障和系统故障)影响数据库系统的操作,影响数据库中数据的正确性,甚至破坏数据库,使数据库中全部或部分数据丢失。因此当发生上述故障后,希望能重构这个完整的数据库,该处理称为数据库恢复。恢复过程大致可以分为复原(Restore)与
- JavaEE开源快速开发平台G4Studio v5.0发布
無為子
我非常高兴地宣布,今天我们最新的JavaEE开源快速开发平台G4Studio_V5.0版本已经正式发布。
访问G4Studio网站
http://www.g4it.org
2013-04-06 发布G4Studio_V5.0版本
功能新增
(1). 新增了调用Oracle存储过程返回游标,并将游标映射为Java List集合对象的标
- Oracle显示根据高考分数模拟录取
百合不是茶
PL/SQL编程oracle例子模拟高考录取学习交流
题目要求:
1,创建student表和result表
2,pl/sql对学生的成绩数据进行处理
3,处理的逻辑是根据每门专业课的最低分线和总分的最低分数线自动的将录取和落选
1,创建student表,和result表
学生信息表;
create table student(
student_id number primary key,--学生id
- 优秀的领导与差劲的领导
bijian1013
领导管理团队
责任
优秀的领导:优秀的领导总是对他所负责的项目担负起责任。如果项目不幸失败了,那么他知道该受责备的人是他自己,并且敢于承认错误。
差劲的领导:差劲的领导觉得这不是他的问题,因此他会想方设法证明是他的团队不行,或是将责任归咎于团队中他不喜欢的那几个成员身上。
努力工作
优秀的领导:团队领导应该是团队成员的榜样。至少,他应该与团队中的其他成员一样努力工作。这仅仅因为他
- js函数在浏览器下的兼容
Bill_chen
jquery浏览器IEDWRext
做前端开发的工程师,少不了要用FF进行测试,纯js函数在不同浏览器下,名称也可能不同。对于IE6和FF,取得下一结点的函数就不尽相同:
IE6:node.nextSibling,对于FF是不能识别的;
FF:node.nextElementSibling,对于IE是不能识别的;
兼容解决方式:var Div = node.nextSibl
- 【JVM四】老年代垃圾回收:吞吐量垃圾收集器(Throughput GC)
bit1129
垃圾回收
吞吐量与用户线程暂停时间
衡量垃圾回收算法优劣的指标有两个:
吞吐量越高,则算法越好
暂停时间越短,则算法越好
首先说明吞吐量和暂停时间的含义。
垃圾回收时,JVM会启动几个特定的GC线程来完成垃圾回收的任务,这些GC线程与应用的用户线程产生竞争关系,共同竞争处理器资源以及CPU的执行时间。GC线程不会对用户带来的任何价值,因此,好的GC应该占
- J2EE监听器和过滤器基础
白糖_
J2EE
Servlet程序由Servlet,Filter和Listener组成,其中监听器用来监听Servlet容器上下文。
监听器通常分三类:基于Servlet上下文的ServletContex监听,基于会话的HttpSession监听和基于请求的ServletRequest监听。
ServletContex监听器
ServletContex又叫application
- 博弈AngularJS讲义(16) - 提供者
boyitech
jsAngularJSapiAngularProvider
Angular框架提供了强大的依赖注入机制,这一切都是有注入器(injector)完成. 注入器会自动实例化服务组件和符合Angular API规则的特殊对象,例如控制器,指令,过滤器动画等。
那注入器怎么知道如何去创建这些特殊的对象呢? Angular提供了5种方式让注入器创建对象,其中最基础的方式就是提供者(provider), 其余四种方式(Value, Fac
- java-写一函数f(a,b),它带有两个字符串参数并返回一串字符,该字符串只包含在两个串中都有的并按照在a中的顺序。
bylijinnan
java
public class CommonSubSequence {
/**
* 题目:写一函数f(a,b),它带有两个字符串参数并返回一串字符,该字符串只包含在两个串中都有的并按照在a中的顺序。
* 写一个版本算法复杂度O(N^2)和一个O(N) 。
*
* O(N^2):对于a中的每个字符,遍历b中的每个字符,如果相同,则拷贝到新字符串中。
* O(
- sqlserver 2000 无法验证产品密钥
Chen.H
sqlwindowsSQL ServerMicrosoft
在 Service Pack 4 (SP 4), 是运行 Microsoft Windows Server 2003、 Microsoft Windows Storage Server 2003 或 Microsoft Windows 2000 服务器上您尝试安装 Microsoft SQL Server 2000 通过卷许可协议 (VLA) 媒体。 这样做, 收到以下错误信息CD KEY的 SQ
- [新概念武器]气象战争
comsci
气象战争的发动者必须是拥有发射深空航天器能力的国家或者组织....
原因如下:
地球上的气候变化和大气层中的云层涡旋场有密切的关系,而维持一个在大气层某个层次
- oracle 中 rollup、cube、grouping 使用详解
daizj
oraclegroupingrollupcube
oracle 中 rollup、cube、grouping 使用详解 -- 使用oracle 样例表演示 转自namesliu
-- 使用oracle 的样列库,演示 rollup, cube, grouping 的用法与使用场景
--- ROLLUP , 为了理解分组的成员数量,我增加了 分组的计数 COUNT(SAL)
- 技术资料汇总分享
Dead_knight
技术资料汇总 分享
本人汇总的技术资料,分享出来,希望对大家有用。
http://pan.baidu.com/s/1jGr56uE
资料主要包含:
Workflow->工作流相关理论、框架(OSWorkflow、JBPM、Activiti、fireflow...)
Security->java安全相关资料(SSL、SSO、SpringSecurity、Shiro、JAAS...)
Ser
- 初一下学期难记忆单词背诵第一课
dcj3sjt126com
englishword
could 能够
minute 分钟
Tuesday 星期二
February 二月
eighteenth 第十八
listen 听
careful 小心的,仔细的
short 短的
heavy 重的
empty 空的
certainly 当然
carry 携带;搬运
tape 磁带
basket 蓝子
bottle 瓶
juice 汁,果汁
head 头;头部
- 截取视图的图片, 然后分享出去
dcj3sjt126com
OSObjective-C
OS 7 has a new method that allows you to draw a view hierarchy into the current graphics context. This can be used to get an UIImage very fast.
I implemented a category method on UIView to get the vi
- MySql重置密码
fanxiaolong
MySql重置密码
方法一:
在my.ini的[mysqld]字段加入:
skip-grant-tables
重启mysql服务,这时的mysql不需要密码即可登录数据库
然后进入mysql
mysql>use mysql;
mysql>更新 user set password=password('新密码') WHERE User='root';
mysq
- Ehcache(03)——Ehcache中储存缓存的方式
234390216
ehcacheMemoryStoreDiskStore存储驱除策略
Ehcache中储存缓存的方式
目录
1 堆内存(MemoryStore)
1.1 指定可用内存
1.2 驱除策略
1.3 元素过期
2 &nbs
- spring mvc中的@propertysource
jackyrong
spring mvc
在spring mvc中,在配置文件中的东西,可以在java代码中通过注解进行读取了:
@PropertySource 在spring 3.1中开始引入
比如有配置文件
config.properties
mongodb.url=1.2.3.4
mongodb.db=hello
则代码中
@PropertySource(&
- 重学单例模式
lanqiu17
单例Singleton模式
最近在重新学习设计模式,感觉对模式理解更加深刻。觉得有必要记下来。
第一个学的就是单例模式,单例模式估计是最好理解的模式了。它的作用就是防止外部创建实例,保证只有一个实例。
单例模式的常用实现方式有两种,就人们熟知的饱汉式与饥汉式,具体就不多说了。这里说下其他的实现方式
静态内部类方式:
package test.pattern.singleton.statics;
publ
- .NET开源核心运行时,且行且珍惜
netcome
java.net开源
背景
2014年11月12日,ASP.NET之父、微软云计算与企业级产品工程部执行副总裁Scott Guthrie,在Connect全球开发者在线会议上宣布,微软将开源全部.NET核心运行时,并将.NET 扩展为可在 Linux 和 Mac OS 平台上运行。.NET核心运行时将基于MIT开源许可协议发布,其中将包括执行.NET代码所需的一切项目——CLR、JIT编译器、垃圾收集器(GC)和核心
- 使用oscahe缓存技术减少与数据库的频繁交互
Everyday都不同
Web高并发oscahe缓存
此前一直不知道缓存的具体实现,只知道是把数据存储在内存中,以便下次直接从内存中读取。对于缓存的使用也没有概念,觉得缓存技术是一个比较”神秘陌生“的领域。但最近要用到缓存技术,发现还是很有必要一探究竟的。
缓存技术使用背景:一般来说,对于web项目,如果我们要什么数据直接jdbc查库好了,但是在遇到高并发的情形下,不可能每一次都是去查数据库,因为这样在高并发的情形下显得不太合理——
- Spring+Mybatis 手动控制事务
toknowme
mybatis
@Override
public boolean testDelete(String jobCode) throws Exception {
boolean flag = false;
&nbs
- 菜鸟级的android程序员面试时候需要掌握的知识点
xp9802
android
熟悉Android开发架构和API调用
掌握APP适应不同型号手机屏幕开发技巧
熟悉Android下的数据存储
熟练Android Debug Bridge Tool
熟练Eclipse/ADT及相关工具
熟悉Android框架原理及Activity生命周期
熟练进行Android UI布局
熟练使用SQLite数据库;
熟悉Android下网络通信机制,S