- 【鸿蒙OH-v5.0源码分析之 Linux Kernel 部分】004 - Kernel 启动引导代码head.S 源码逐行分析
"小夜猫&小懒虫&小财迷"的男人
鸿蒙OH-v5.0源码分析之Uboot+Kernel部分harmonyoslinux华为
【鸿蒙OH-v5.0源码分析之LinuxKernel部分】004-Kernel启动引导代码head.S源码逐行分析系列文章汇总:《鸿蒙OH-v5.0源码分析之Uboot+Kernel部分】000-文章链接汇总》本文链接:《【鸿蒙OH-v5.0源码分析之LinuxKernel部分】004-Kernel启动引导代码head.S源码逐行分析》head.S主要工作如下:保存内核启动参数,无效化处理器缓存(
- 笔记整理—uboot番外(3)环境变量的作用
TeYiToKu
X210嵌入式学习整理笔记linux嵌入式硬件c语言
环境变量的最大一个作用就是,能够在不修改代码的情况下去影响应用的运行情况。环境变量的优先级问题:有环境变量的情况下优先使用环境变量,没有环境变量则使用代码中的值(全局变量一类的变量)。例如,machid在bdinfo中,而不再print_env中(环境变量)。但若是setmachid0x30001332就可以在环境变量中生成一个值,当校验时会对这个值进行采用。删除一个环境变量的方法:如刚刚设置了s
- 笔记整理—内核!启动!—kernel部分(2)从汇编阶段到start_kernel与内核进程
TeYiToKu
X210嵌入式学习整理笔记汇编linux嵌入式硬件c语言单片机
kernel起始与ENTRY(stext),和uboot一样,都是从汇编阶段开始的,因为对于kernel而言,还没进行栈的维护,所以无法使用c语言。_HEAD定义了后面代码属于段名为.head.text的段。内核起始部分代码被解压代码调用,前面关于uboot的文章中有提到过(eg:zImage)。uboot启动是无条件的,只要代码的位置对,上电就工作,kernel启动由bootloader进行构建
- 笔记整理—uboot启动过程(4)BL2干了什么及内存排布
TeYiToKu
X210嵌入式学习整理嵌入式硬件linuxc语言汇编
uboot的第一阶段结束于start_armboot,第二阶段的uboot代码主要负责soc外部硬件(inand、网卡、......)、uboot本身构建(uboot指令、环境变量、......)最后进入命令行,等待命令然后倒数,等待bootcmd,进入内核(uboot结束)。倒数期间通过回车打断进入如下代码,通过循环不去进入bootcmd。for(;;){main_loop();}typedef
- Uboot 网卡移植遇到的问题与解决方法
Jason416就是我
UbootubootUSB网卡
前言在上一章节中描述的两个问题,这里做下简单回顾。情况一在运行到接收以太帧的时候,出现了dataabrot异常,如下:dataabortpc:[]lr:[]relocpc:[]lr:[]sp:7ae54ce0ip:00000014fp:00000fffr10:00000fffr9:7ae54ed8r8:0000002er7:00000fffr6:7aede303r5:0000001cr4:7aed
- 全志 HDMI 显示亮度低
春风从不入睡、
Linux驱动开发篇Android/Linux进阶宝典linux驱动开发车载系统
一、问题描述全志T527在适配HDMI,让HDMI作为主显示时,出现亮度太低的问题二、解决办法1、调整uboot参数,显示720P画面videvice/config/chips/t527/configs/sany_v7/uboot-board.dts在T527中有显示相关的接口,enhance该接口用于设置图像的亮度/对比度/饱和度/边缘锐度/细节增强/降噪的调节幅度。2、调整亮度在设置之前请确保
- IMX6ULL SD卡启动uboot+kernel+rootfs
xingpeng_89
IMX6ULLlinux服务器
目录1.背景说明2.SD卡启动2.1准备条件2.2对SD卡分区格式化2.3制作sd卡镜像3.效果测试1.背景说明网络上绝大数教程,教大家把uboot烧录到SD卡,然后uboot启动后,通过TFTP下载kernel和设备树,然后通过nfs挂载文件系统。很少有SD卡完整启动ubootkernel和rootfs,这里整理了一下,分享给大家。2.SD卡启动2.1准备条件①u-boot-dtb.imx②zI
- linux下使用fw_printenv读取、fw_setenv修改uboot环境变量
omnibots
linuxuboot工具移植linux
文章目录linux下使用fw_printenv读取、fw_setenv修改uboot环境变量编译配置fw_printenvfw_setenv配置linux下使用fw_printenv读取、fw_setenv修改uboot环境变量编译配置源码在uboot根目录tools/env下面。编译前需要配置一下分区信息。修改文件tools/env/fw_env.h单环境变量分区://单环境变量分区需要注释下面
- uboot 中的bootargs 如何 修改 内核的 cmdline和 linux 内核如何生成 /proc/cmdline
sunfanup
linux开发cc++linux
一、在U-Boot中,可以通过修改环境变量“bootargs”来修改内核的启动参数(cmdline)。以下是在U-Boot中修改内核的cmdline的一般步骤:进入U-Boot的命令行界面。这可以通过串口连接到设备,并在启动时按下适当的按键(如Enter键或空格键)来实现。使用“printenv”命令查看当前的环境变量。找到名为“bootargs”的变量。使用“setenv”命令修改“bootar
- uboot启动内核命令:bootz、bootm、boot
Can!
ubootlinuxc语言
目录一、linux镜像拷贝到DRAM的方式二、uboot启动内核可以有三个命令:bootz、bootm、boot三、其它知识点一、linux镜像拷贝到DRAM的方式要启动Linux,需要先将Linux镜像文件拷贝到DRAM中,如果使用到设备树的话也需要将设备树拷贝到DRAM中。1、从EMMC、NAND等存储设备中将Linux镜像和设备树文件拷贝到DRAM从EMMC中启动Linux系统的话只需要使用
- Linux系统中 uboot、内核与文件系统之间的关系
玄奕子
嵌入式学习之Linux入门篇linuxubootLinux内核文件系统迅为电子
前言:最近正在学习Linux,总结了一下Linux系统中uboot、内核与文件系统之间的关系Linux初学者首先要搞清楚的三个文件:引导程序(bootoader):uboot.bin/uboot.imxLinux内核镜像:zlmage文件系统镜像:system.img/rootfs.tar.ba2初期很多工作都是围绕这三个知识点展开的开发环境搭建/编译系统/烧写系统不同的系统文件名会有差异设备树文
- 使用正点原子i.mx6ull加载字符驱动模块chrdevbase
是啊洋呀
正点原子字符驱动设备i.mx6ull
搞了整整两天才整好!踩了不少坑,记录一下0.操作基础操作前需要设置好如下配置1.开发板和ubuntu能够互相ping通2.开发板的SD卡中安装好uboot,我用的V2.4版本的,其他版本应该也行3.准备材料01_chrdevbase文件linux-imx-rel_imx_4.1.15_2.1.1_ga_alientek_v2.4.tar.bz2这个文件在01、例程源码->10、开发板教程对应的ub
- 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
- Exynos4412 的启动过程详解(四)
Kilento
Exynos4412嵌入式
目录Exynos4412iRAM内存映射图Exynos4412BL1+BL2组成Exynos4412官方uboot镜像组成Exynos4412的两种启动介质Exynos4412iRAM内存映射图这个图是Exynos4212启动文档中附的图,4412和4212的启动流程是一致的。我在前面的博文中说过,Exynos4412的iRAM实际上是一块SRAM芯片,这个芯片的特点是上电即可使用,无需初始化。所
- 2.14作业
2301_79965609
stm32
整理移植操作系统到开发板要进行的工作,具体步骤安装tftp服务器和nfs服务器,准备需要下载到开发板文件,存放在指定下载文件夹下,准备需要挂载到开发板文件夹,存放在指定挂载文件夹中。ubuntu和开发板组网,关闭防火墙,关闭杀毒软件,配置ubuntu网络,桥接到自己网卡,选择桥接模式,开发板网络设置serverip,ipaddr,netmask,gatewayip四个参数,最后测试。获取uboot
- OurBMC 首个版本 1.0.0 正式发布!
git程序员
2023年12月29日,经过社区开发者的共同努力,OurBMC首个版本1.0.0正式发布。OurBMC1.0.0提供从host端到BMC端的全栈BMC技术实现,适配多种软硬件场景,并为开发者提供全面、高效的BMC全栈解决方案。发布内容OurBMC1.0.0发布内容包含了bmc-uboot、bmc-linux、bmc-openbmc、bmc-web、host-UEFI以及host-linux6大模块
- 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
- Linux第44步_在程序中设置默认的“网络地址”
LaoZhangGong123
产品研发linuxSTM32MP157经验分享
在程序中设置默认的“网络地址”,防止烧写程序后,需要再次配置网络地址,有点繁琐,所以,干脆写入到程序里。1、打开“myboot/include/configs/stm32mp1.h”2、重新编译,烧写uboot;3、输入“envdefault-a回车”,将所有环境变量设置为默认值;注意:MAC地址设置不了,不清楚原因;输入“reset回车”输入“printenv回车”
- Linux第45步_通过搭建“DNS服务器”学习图形化配置工具
LaoZhangGong123
产品研发linuxSTM32MP157经验分享uboot学习
学习的意义:通过搭建“DNS服务器”,来学习“图形化配置工具”。“DNS服务器”,我们用不到,但为后期移植linux系统服务,因为在移植系统时,需要用到这个“图形化配置工具”。1、“menuconfig图形化配置工具”有两个重要的文件1)、“.config”文件,它保存着“uboot的配置项”2)、“Kconfig”文件,它是图形界面的描述文件,也就是描述界面应该有什么内容。2、安装“menuco
- 嵌入式软件工程师面试题——嵌入式专题 (五十六)
程序猿玖月柒
嵌入式面试题面试职场和发展嵌入式面试题开发语言
说明:面试群,群号:228447240面试题来源于网络书籍,公司题目以及博主原创或修改(题目大部分来源于各种公司);文中很多题目,或许大家直接编译器写完,1分钟就出结果了。但在这里博主希望每一个题目,大家都要经过认真思考,答案不重要,重要的是通过题目理解所考知识点,好应对题目更多的变化;博主与大家一起学习,一起刷题,共同进步;写文不易,麻烦给个三连!!!1.内核如何传参答案:uboot传的是R0,
- Linux第42步_移植ST公司uboot的第3步_uboot命令测试,搭建nfs服务器和tftp服务器
LaoZhangGong123
产品研发linux服务器经验分享STM32uboot
测试uboot命令,搭建nfs服务器和tftp服务器,是测试uboot非常关键的一步。跳过这一节,后面可能要踩坑。一、输入“help回车”,查询uboot所支持的命令二、输入“?bootz回车”,查询“bootz”怎么用注意:和boot一样,用来启动Linux系统的。三、常用的查询命令1、输入“?bdinfo回车”,查询“bdinfo”怎么用输入“bdinfo回车”,查询“开发板的信息”2、输入“
- Linux第43步_移植ST公司uboot的第4步_uboot测试
LaoZhangGong123
产品研发linux服务器经验分享STM32ubootSTM32MP157
uboot移植结束后,需要进行测试。1、烧录程序1)、将STM32MP157开发板的网络接口与路由器的网络接口通过网线连接起来。2)、将开发板的串口和电脑通过USB线连接起来。3)、将开发板的USBOTG接口和电脑通过USB线连接起来。4)、将开发板上拨码开关拨到“000”位置。5)、给开发板上电。6)、准备烧录文件①、tf-a-stm32mp157d-atkserialboot.stm32,是我
- Linux学习笔记之二:U-Boot常用命令
manmanbab
linux学习笔记
参考链接:https://blog.csdn.net/qq_46079439/article/details/125474461U-Boot常用命令uboot简介uboot属于bootloader的一种,是用来引导启动内核的,它的最终目的就是:从flash中读出内核,放到内存中,启动内核。它刚开始被放到flash上,然后上电以后先执行它,它会完成硬件初始化,设置处理器模式,关闭看门狗,屏蔽中断,初
- linker list
liuxs1998
uboot
linkerlist是利用lds描述符实现同类型数据连续排布的一种机制。下面是uboot里面的应用说明lds文件里面需要增加section描述:.=ALIGN(4);.u_boot_list:{KEEP(*(SORT(.u_boot_list*)));}linker_list.h:/*SPDX-License-Identifier:GPL-2.0+*//**include/linker_lists
- 【调试小诀窍】SD卡镜像启动过程中如何第一时间获取FPGA配置状态?以及如何定位FPGA配置失败原因?
Terasic友晶科技
【socfpga开发】fpga开发arm开发socfpga
如果用户参考Intel教程EmbeddedLinuxBeginnersGuide制作SD卡image,那么FPGA配置文件(.rbf)是在uboot阶段被加载。当某种原因(下文会讲).rbf加载失败,系统还会继续加载内核直到显示登录界面:从表面上看,此时linux系统交互正常,rbf加载失败的提示信息也早被串口其他信息覆盖掉,所以经验不足的工程师可能无法第一时间获知rbf文件加载失败,从而导致他们
- 如何将SD卡众多文件打包成一个.img文件方便Windows的Windisk32工具一键烧写?
Terasic友晶科技
【socfpga开发】fpga开发arm开发linuxsocfpga开发
相信不少SOCFPGA用户在第一次设计SD卡image时都参考过Intel的经典教程EmbeddedLinuxBeginnerSGuide,教程里面演示制作SD卡image时,需要将SD卡手动分成3分区(fat32、raw和ext3),然后将preloader、uboot、kernel、rootfile、rbf、dtb、uboot.scr文件拷贝到不同的分区,最后插到DE10-Nano开发板进行启
- uboot基础
✎﹏ℳ๓无情❦
Linux#UbuntuI.MX6U-ALPHA开发板linux运维服务器
一、何为uboot?1、uboot是一个裸机程序,比较复杂。2、uboot就是一个bootloader,作用就是用于启动Linux或其他系统。Uboot最主要的工作就是初始化DDR。因为Linux是运行在DDR里面的。一般Linux镜像zImage(uImage)+设备树(.dtb)存放在SD、EMMC、NAND、SPIFLASH等等外置存储区域。这里就牵扯到一个问题,需要将Linux镜像从外置f
- 2015.10uboot移植笔记 (三、低级初始化lowlevel_init)
酱油师兄
ubootlowlevel_inits5pv210时钟树uboot移植uboot2015移植
上一篇,把start.S分析了一遍,这一篇只要分析lowlevel_init这个函数这个函数有点长,采取分开分析,一点一点的看,不着急,哈哈哈还没说要分析哪一个的lowlevel_init的,这是有一个小技巧,可以分享一些,一般的lowlevel_init会在两个地方有,一个是CPU哪里的,一个是board那边的下面的图片是armv7里面有一个lowlevel_init.S文件,有没有发现这个汇编
- Linux第41步_移植ST公司uboot的第2步_修改网络驱动_USB OTG设备树_LCD驱动_以及编译和烧写测试
LaoZhangGong123
产品研发linux网络STM32MP157uboot移植经验分享
移植ST公司uboot的第1步,创建配置文件、设备树、修改电源管理和sdmmc节点后,还需要进一部修改,如:网络驱动、USBOTG设备树、LCD驱动,以及编译和烧写测试。一、在虚拟机中,使用VSCode打开my_uboot工作区二、修改网络设备树1、点击“arch”,然后点击“arm”,最后点击“dts”,点击“stm32mp125d-atk.dtsi”网络设备树“ethernet0节点”内容如下
- java工厂模式
3213213333332132
java抽象工厂
工厂模式有
1、工厂方法
2、抽象工厂方法。
下面我的实现是抽象工厂方法,
给所有具体的产品类定一个通用的接口。
package 工厂模式;
/**
* 航天飞行接口
*
* @Description
* @author FuJianyong
* 2015-7-14下午02:42:05
*/
public interface SpaceF
- nginx频率限制+python测试
ronin47
nginx 频率 python
部分内容参考:http://www.abc3210.com/2013/web_04/82.shtml
首先说一下遇到这个问题是因为网站被攻击,阿里云报警,想到要限制一下访问频率,而不是限制ip(限制ip的方案稍后给出)。nginx连接资源被吃空返回状态码是502,添加本方案限制后返回599,与正常状态码区别开。步骤如下:
- java线程和线程池的使用
dyy_gusi
ThreadPoolthreadRunnabletimer
java线程和线程池
一、创建多线程的方式
java多线程很常见,如何使用多线程,如何创建线程,java中有两种方式,第一种是让自己的类实现Runnable接口,第二种是让自己的类继承Thread类。其实Thread类自己也是实现了Runnable接口。具体使用实例如下:
1、通过实现Runnable接口方式 1 2
- Linux
171815164
linux
ubuntu kernel
http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.1.2-unstable/
安卓sdk代理
mirrors.neusoft.edu.cn 80
输入法和jdk
sudo apt-get install fcitx
su
- Tomcat JDBC Connection Pool
g21121
Connection
Tomcat7 抛弃了以往的DBCP 采用了新的Tomcat Jdbc Pool 作为数据库连接组件,事实上DBCP已经被Hibernate 所抛弃,因为他存在很多问题,诸如:更新缓慢,bug较多,编译问题,代码复杂等等。
Tomcat Jdbc P
- 敲代码的一点想法
永夜-极光
java随笔感想
入门学习java编程已经半年了,一路敲代码下来,现在也才1w+行代码量,也就菜鸟水准吧,但是在整个学习过程中,我一直在想,为什么很多培训老师,网上的文章都是要我们背一些代码?比如学习Arraylist的时候,教师就让我们先参考源代码写一遍,然
- jvm指令集
程序员是怎么炼成的
jvm 指令集
转自:http://blog.csdn.net/hudashi/article/details/7062675#comments
将值推送至栈顶时 const ldc push load指令
const系列
该系列命令主要负责把简单的数值类型送到栈顶。(从常量池或者局部变量push到栈顶时均使用)
0x02 &nbs
- Oracle字符集的查看查询和Oracle字符集的设置修改
aijuans
oracle
本文主要讨论以下几个部分:如何查看查询oracle字符集、 修改设置字符集以及常见的oracle utf8字符集和oracle exp 字符集问题。
一、什么是Oracle字符集
Oracle字符集是一个字节数据的解释的符号集合,有大小之分,有相互的包容关系。ORACLE 支持国家语言的体系结构允许你使用本地化语言来存储,处理,检索数据。它使数据库工具,错误消息,排序次序,日期,时间,货
- png在Ie6下透明度处理方法
antonyup_2006
css浏览器FirebugIE
由于之前到深圳现场支撑上线,当时为了解决个控件下载,我机器上的IE8老报个错,不得以把ie8卸载掉,换个Ie6,问题解决了,今天出差回来,用ie6登入另一个正在开发的系统,遇到了Png图片的问题,当然升级到ie8(ie8自带的开发人员工具调试前端页面JS之类的还是比较方便的,和FireBug一样,呵呵),这个问题就解决了,但稍微做了下这个问题的处理。
我们知道PNG是图像文件存储格式,查询资
- 表查询常用命令高级查询方法(二)
百合不是茶
oracle分页查询分组查询联合查询
----------------------------------------------------分组查询 group by having --平均工资和最高工资 select avg(sal)平均工资,max(sal) from emp ; --每个部门的平均工资和最高工资
- uploadify3.1版本参数使用详解
bijian1013
JavaScriptuploadify3.1
使用:
绑定的界面元素<input id='gallery'type='file'/>$("#gallery").uploadify({设置参数,参数如下});
设置的属性:
id: jQuery(this).attr('id'),//绑定的input的ID
langFile: 'http://ww
- 精通Oracle10编程SQL(17)使用ORACLE系统包
bijian1013
oracle数据库plsql
/*
*使用ORACLE系统包
*/
--1.DBMS_OUTPUT
--ENABLE:用于激活过程PUT,PUT_LINE,NEW_LINE,GET_LINE和GET_LINES的调用
--语法:DBMS_OUTPUT.enable(buffer_size in integer default 20000);
--DISABLE:用于禁止对过程PUT,PUT_LINE,NEW
- 【JVM一】JVM垃圾回收日志
bit1129
垃圾回收
将JVM垃圾回收的日志记录下来,对于分析垃圾回收的运行状态,进而调整内存分配(年轻代,老年代,永久代的内存分配)等是很有意义的。JVM与垃圾回收日志相关的参数包括:
-XX:+PrintGC
-XX:+PrintGCDetails
-XX:+PrintGCTimeStamps
-XX:+PrintGCDateStamps
-Xloggc
-XX:+PrintGC
通
- Toast使用
白糖_
toast
Android中的Toast是一种简易的消息提示框,toast提示框不能被用户点击,toast会根据用户设置的显示时间后自动消失。
创建Toast
两个方法创建Toast
makeText(Context context, int resId, int duration)
参数:context是toast显示在
- angular.identity
boyitech
AngularJSAngularJS API
angular.identiy 描述: 返回它第一参数的函数. 此函数多用于函数是编程. 使用方法: angular.identity(value); 参数详解: Param Type Details value
*
to be returned. 返回值: 传入的value 实例代码:
<!DOCTYPE HTML>
- java-两整数相除,求循环节
bylijinnan
java
import java.util.ArrayList;
import java.util.List;
public class CircleDigitsInDivision {
/**
* 题目:求循环节,若整除则返回NULL,否则返回char*指向循环节。先写思路。函数原型:char*get_circle_digits(unsigned k,unsigned j)
- Java 日期 周 年
Chen.H
javaC++cC#
/**
* java日期操作(月末、周末等的日期操作)
*
* @author
*
*/
public class DateUtil {
/** */
/**
* 取得某天相加(减)後的那一天
*
* @param date
* @param num
*
- [高考与专业]欢迎广大高中毕业生加入自动控制与计算机应用专业
comsci
计算机
不知道现在的高校还设置这个宽口径专业没有,自动控制与计算机应用专业,我就是这个专业毕业的,这个专业的课程非常多,既要学习自动控制方面的课程,也要学习计算机专业的课程,对数学也要求比较高.....如果有这个专业,欢迎大家报考...毕业出来之后,就业的途径非常广.....
以后
- 分层查询(Hierarchical Queries)
daizj
oracle递归查询层次查询
Hierarchical Queries
If a table contains hierarchical data, then you can select rows in a hierarchical order using the hierarchical query clause:
hierarchical_query_clause::=
start with condi
- 数据迁移
daysinsun
数据迁移
最近公司在重构一个医疗系统,原来的系统是两个.Net系统,现需要重构到java中。数据库分别为SQL Server和Mysql,现需要将数据库统一为Hana数据库,发现了几个问题,但最后通过努力都解决了。
1、原本通过Hana的数据迁移工具把数据是可以迁移过去的,在MySQl里面的字段为TEXT类型的到Hana里面就存储不了了,最后不得不更改为clob。
2、在数据插入的时候有些字段特别长
- C语言学习二进制的表示示例
dcj3sjt126com
cbasic
进制的表示示例
# include <stdio.h>
int main(void)
{
int i = 0x32C;
printf("i = %d\n", i);
/*
printf的用法
%d表示以十进制输出
%x或%X表示以十六进制的输出
%o表示以八进制输出
*/
return 0;
}
- NsTimer 和 UITableViewCell 之间的控制
dcj3sjt126com
ios
情况是这样的:
一个UITableView, 每个Cell的内容是我自定义的 viewA viewA上面有很多的动画, 我需要添加NSTimer来做动画, 由于TableView的复用机制, 我添加的动画会不断开启, 没有停止, 动画会执行越来越多.
解决办法:
在配置cell的时候开始动画, 然后在cell结束显示的时候停止动画
查找cell结束显示的代理
- MySql中case when then 的使用
fanxiaolong
casewhenthenend
select "主键", "项目编号", "项目名称","项目创建时间", "项目状态","部门名称","创建人"
union
(select
pp.id as "主键",
pp.project_number as &
- Ehcache(01)——简介、基本操作
234390216
cacheehcache简介CacheManagercrud
Ehcache简介
目录
1 CacheManager
1.1 构造方法构建
1.2 静态方法构建
2 Cache
2.1&
- 最容易懂的javascript闭包学习入门
jackyrong
JavaScript
http://www.ruanyifeng.com/blog/2009/08/learning_javascript_closures.html
闭包(closure)是Javascript语言的一个难点,也是它的特色,很多高级应用都要依靠闭包实现。
下面就是我的学习笔记,对于Javascript初学者应该是很有用的。
一、变量的作用域
要理解闭包,首先必须理解Javascript特殊
- 提升网站转化率的四步优化方案
php教程分享
数据结构PHP数据挖掘Google活动
网站开发完成后,我们在进行网站优化最关键的问题就是如何提高整体的转化率,这也是营销策略里最最重要的方面之一,并且也是网站综合运营实例的结果。文中分享了四大优化策略:调查、研究、优化、评估,这四大策略可以很好地帮助用户设计出高效的优化方案。
PHP开发的网站优化一个网站最关键和棘手的是,如何提高整体的转化率,这是任何营销策略里最重要的方面之一,而提升网站转化率是网站综合运营实力的结果。今天,我就分
- web开发里什么是HTML5的WebSocket?
naruto1990
Webhtml5浏览器socket
当前火起来的HTML5语言里面,很多学者们都还没有完全了解这语言的效果情况,我最喜欢的Web开发技术就是正迅速变得流行的 WebSocket API。WebSocket 提供了一个受欢迎的技术,以替代我们过去几年一直在用的Ajax技术。这个新的API提供了一个方法,从客户端使用简单的语法有效地推动消息到服务器。让我们看一看6个HTML5教程介绍里 的 WebSocket API:它可用于客户端、服
- Socket初步编程——简单实现群聊
Everyday都不同
socket网络编程初步认识
初次接触到socket网络编程,也参考了网络上众前辈的文章。尝试自己也写了一下,记录下过程吧:
服务端:(接收客户端消息并把它们打印出来)
public class SocketServer {
private List<Socket> socketList = new ArrayList<Socket>();
public s
- 面试:Hashtable与HashMap的区别(结合线程)
toknowme
昨天去了某钱公司面试,面试过程中被问道
Hashtable与HashMap的区别?当时就是回答了一点,Hashtable是线程安全的,HashMap是线程不安全的,说白了,就是Hashtable是的同步的,HashMap不是同步的,需要额外的处理一下。
今天就动手写了一个例子,直接看代码吧
package com.learn.lesson001;
import java
- MVC设计模式的总结
xp9802
设计模式mvc框架IOC
随着Web应用的商业逻辑包含逐渐复杂的公式分析计算、决策支持等,使客户机越
来越不堪重负,因此将系统的商业分离出来。单独形成一部分,这样三层结构产生了。
其中‘层’是逻辑上的划分。
三层体系结构是将整个系统划分为如图2.1所示的结构[3]
(1)表现层(Presentation layer):包含表示代码、用户交互GUI、数据验证。
该层用于向客户端用户提供GUI交互,它允许用户