- ARM中断处理过程
落汤老狗
嵌入式linux
一、前言本文主要以ARM体系结构下的中断处理为例,讲述整个中断处理过程中的硬件行为和软件动作。具体整个处理过程分成三个步骤来描述:1、第二章描述了中断处理的准备过程2、第三章描述了当发生中的时候,ARM硬件的行为3、第四章描述了ARM的中断进入过程4、第五章描述了ARM的中断退出过程本文涉及的代码来自3.14内核。另外,本文注意描述ARM指令集的内容,有些sourcecode为了简短一些,删除了T
- Linux字符设备驱动 -- regmap子系统
lagransun
linux运维服务器
文章目录环境一、关于regmap子系统二、regmap-i2c初始化2.1regmap_get_i2c_bus()2.2__devm_regmap_init()三、regmap与irq3.1申请中断描述符irq_alloc_descs()3.2为设备申请irq_domian,建立hwirq与virq联系3.3request_threaded_irq()函数注册中断处理函数环境linux4.9arm
- DPDK基础入门(七):网卡性能优化
指针从不空
Linux高性能网络性能优化网络
DPDK的轮询模式运行在操作系统内核态的网卡驱动程序基本都是基于异步中断处理模式,而DPDK采用了轮询或者轮询混杂中断的模式来进行收包和发包。任何包进入到网卡,网卡硬件会进行必要的检查、计算、解析和过滤等,最终包会进入物理端口的某一个队列。物理端口上的每一个收包队列,都会有一个对应的由收包描述符组成的软件队列来进行硬件和软件的交互,以达到收包的目的。轮询模式DPDK的轮询驱动程序负责初始化好每一个
- 在 Linux 中如何检查正在运行的进程
IT孔乙己
linuxdebian运维
每天,开发人员都会在终端中使用各种应用程序并运行命令。这些应用程序可能包括浏览器、代码编辑器、终端、视频会议应用程序或音乐播放器。对于你打开的每个软件应用程序或你运行的命令,它都会创建一个进程或任务。Linux操作系统和现代计算机的一大优点是它们支持多任务处理,所以多个程序可以同时运行。你有没有想过如何检查机器上运行的所有程序?这篇文章就是为你准备的,我将向你展示如何列出、管理和终止Linux电脑
- 悉尼大学COMP5216Assignment3课业解析
Artemis_666
悉尼大学COMP5216Assignment3课业解析悉尼大学COMP5216Assignment3课业解析题意:设计实现一个计步APP解析:要实现以下功能:1.能够让用户输入距离和时间计算步数和速度;2.通过捕获每个GPS记录点之间的距离和从开始到结束的时间,追踪用户在地图上的路线;3.记录跑步的信息,生成日志记录并计算州平均值;4.音乐播放器功能,允许用户播放、暂停本地歌曲;5.允许用户重置步
- Linux网络包的收发流程
oywLearning
网络编程计算机网络linux网络网络协议
一、Linux接收网络包的流程1.网卡是计算机里的一个硬件,专门负责接收和发送网络包,当网卡接收到一个网络包后,会通过DMA技术,将网络包写入到指定的内存地址,也就是写入到RingBuffer,这个是一个环形缓冲区。2.接着网卡向CPU发起硬件中断,当CPU收到硬件中断请求后,根据中断表,调用已经注册的中断处理函数。硬件中断处理函数会做如下的事情:需要先「暂时屏蔽中断」,表示已经知道内存中有数据,
- 嵌入式系统中的中断的使用和处理机制
TENET-
嵌入式嵌入式中断
文章目录1.概述2.中断请求3.中断响应4.保护现场5.中断服务6.恢复现场7.中断返回1.概述在嵌入式系统中,中断处理机制是确保系统实时响应外部事件的关键技术之一。嵌入式系统通常运行在资源受限的环境中,这意味着需要高效、快速地响应外部输入,如传感器数据、用户按键、通信接口信号等。中断处理使得处理器能够在执行主要任务的同时,及时响应这些外部事件,从而提高系统的实时性和可靠性。中断处理的基本原理是,
- STM32:STM32低功耗设计:低功耗模式下的中断处理
kkchenjj
STM32编程stm32单片机嵌入式硬件
STM32:STM32低功耗设计:低功耗模式下的中断处理STM32低功耗设计概述低功耗模式介绍在设计基于STM32的低功耗应用时,理解并利用其低功耗模式至关重要。STM32提供了多种低功耗模式,包括:待机模式(Standbymode):在此模式下,所有时钟停止,但保留RAM和寄存器的内容。唤醒源可以是外部中断、RTC闹钟或USB唤醒事件。停机模式(Stopmode):CPU停止运行,但系统时钟和备
- 集成电路学习:什么是RTOS实时操作系统
limengshi138392
integratedcircuit学习嵌入式硬件物联网microsoftfpga开发
RTOS:实时操作系统RTOS,全称RealTimeOperatingSystem,即实时操作系统,是一种专为满足实时控制需求而设计的操作系统。它能够在外部事件或数据产生时,以足够快的速度进行处理,并在规定的时间内控制生产过程或对处理系统做出快速响应。RTOS的主要特点包括及时响应、高可靠性、多任务处理、确定性、资源管理、优先级调度、中断处理和时间管理等。一、RTOS的主要特点1、及时响应和高可靠
- 他们告诉你,演员不是那么好当的
孤松堂主
今天开始写字前,我让电脑的音乐播放器回荡起张国荣的声音,原因是昨天的一则张国荣胞姐离世的消息,让我再次忆起他。每当我的世界里出现张国荣三个字,都不觉要抽出时间来听一听他的歌,回顾一下他的电影。虽然听了很多遍,也看过很多遍,却总是百看不厌。我依然记得去年冬天那个下午,北京的五环上堵的厉害,百无聊赖中打开车上的收音机,正好播放一个关于《射雕英雄传》的访谈节目。新版射雕由郭靖宇监制,蒋家骏执导,节目一开
- 【ARMv7-A】——IRQ 和 FIQ 异常中断处理程序的返回
tyustli
ARM体系结构与编程armirqfiq
文章目录处理流程示例代码实现不支持中断嵌套支持中断嵌套C语言执行中断服务函数附录源码处理流程通常处理器执行完当前指令后,查询IRQ中断引脚及FIQ中断引脚,并且查看系统是否允许IRQ中断及FIQ中断。如果有中断引脚有效,并且系统允许该中断产生,处理器将产生IRQ异常中断或FIQ异常中断。当IRQ和FIQ异常中断产生时,程序计数器PC的值已经更新,它指向当前指令后面第3条指令(对于ARM系统来说它指
- 用Python制作动态音频可视化:音乐律动动效
屿小夏
#Python动效python音视频pygame
文章目录引言准备工作前置条件代码实现与解析导入必要的库初始化Pygame加载音频文件实现音频可视化主循环完整代码引言音频可视化是一种将音频信号转换为视觉效果的技术,常用于音乐播放器和现场演出中。在这篇博客中,我们将使用Python创建一个动态的音频可视化效果。通过利用Pygame和NumPy库,我们可以实现一个具有视觉吸引力的音乐律动动效。准备工作前置条件在开始之前,你需要确保你的系统已经安装了P
- GD32F4xx中断点灯实验
k1184591768
单片机stm32
中断原理介绍中断基础知识1.NVIC中断系统CortexR-M4集成了嵌套式矢量型中断控制器(NestedVectoredInterruptController(NVIC))来实现高效的异常和中断处理。NVIC实现了低延迟的异常和中断处理,以及电源管理控制NVIC:中断系统REXIT:外部中断中断系统包括外部中断,另外还有定时器中断,串口中断和DMA中断等2.EXTI外部中断EXTI(中断/事件控
- 单片机原理及应用中断实验
hhappy0123456789
单片机嵌入式硬件
1.实验目的(1)熟悉51单片机中断初始化编程方法。(2)掌握51单片机外部中断源的设计使用。(3)中断处理应用程序的设计与调试技巧。2.实验内容通过对P3、2、P3、3引脚的电平控制,实现外部中断处理,从而控制输出口P1的输出效果变化。/用外中断0的中断方式进行数据采集与处理#include//包含51单片机寄存器定义的头文件sbitS=P3^2;//将S位定义为P3、2,/**********
- 有没有大佬帮孩子看看问题出在哪啊啊啊啊
MinerTob
pythonpygame
我写了一个python音乐播放器,在实现进度条功能时为什么拖动进度条后,进度条后会退回原来的位置,而不是在拖动到的位置继续加载啊求个大佬解答啊(qmq)这是我写的代码(有注释)importosimportsysimporttkinterastkfromtkinterimportfiledialog,messageboximportpygameimportjsonfrommoviepy.editor
- 嵌入式面经篇十——驱动开发
须尽欢~~
嵌入式软件面经驱动开发
文章目录前言一、驱动开发1、Linux驱动程序的功能是什么?2、内核程序中申请内存使用什么函数?3、内核程序中申请内存和应用程序时申请内存有什么区别?4、自旋锁和信号量在互斥使用时需要注意什么?在中断服务程序里面的互斥是使用自旋锁还是信号量?5、驱动卸载异常可能是由什么原因引起的?6、Linux中引入模块机制有什么好处?7、Linux设备驱动程序中,使用哪两个函数进行中断处理程序的注册和注销?8、
- RT-Thread GD32F4xx HWTIMER驱动
madao1024
RT-Thread学习记录RT-ThreadGD32F4xxHWTIMER驱动开发
目录1、RT-ThreadHWTIMER2、HWTIMER驱动2.1创建HWTIMER设备2.2实现rt_hwtimer_ops2.3注册HWTIMER设备2.4HWTIMER中断处理3、驱动配置4、应用测试1、RT-ThreadHWTIMER RT-Thread中将定时器分为硬件定时器(HWTIMER)和软件定时器。HWTIMER硬件定时器和硬件MCU的定时器是一一绑定的,可用的定时器数量受限
- 终于放假了
雁渡寒潭矣
终于放假了。也许表情管理泄漏了一些恼怒,领导大发慈悲,值班第三天取消了。来不及和同事寒暄,就逃之夭夭了。如出笼的鸟儿,匆匆投入川流不息。其实,过年要准备的东西,零零散散地都差不多了。只是想休息了。随心所欲地放松放松。一觉醒来,已是九点了。打开音乐播放器,舒缓的钢琴曲,喝着红茶,站在阳台上,清冷而雾蒙蒙的天,没有太阳。很安静。很喜欢。很满足。蓦然间想起,各种媒体报道的武汉出现的新型冠状病毒肺炎,无疑
- STM32中I2C通信的完整C语言代码范例
慢跑的平头哥
嵌入式stm32c语言嵌入式硬件I2C
在嵌入式系统开发中,STM32芯片是一种广泛应用的微控制器,具有强大的性能和丰富的外设功能。其中,I2C(Inter-IntegratedCircuit)是一种常用的串行通信协议,用于在微控制器之间或者微控制器与外设之间进行数据传输。本文将介绍如何使用STM32芯片编写一段I2C通信的C语言程序,包含I2C的初始化、数据收发以及中断处理,同时提供完整的代码文件和注释。1.硬件准备在开始编写I2C通
- stm32 定时器中断
xiongxianhe
stm32单片机stm32中断stm32单片机嵌入式硬件
在上一篇STM32外部中断的理解中,我们讲述了stm32的外部中断,它是通过外部的一个中断信号作为中断源,对CPU进行申请中断处理的;此篇,我们再讲述下stm32的内部定时器中断。1.综述stm32定时器中断,是通过设置内部的定时器相关寄存器,然后定时器进行自增(自减)到某一个数之后,产生一个中断信号,由cpu进行处理。如下图:其中,时基单元部分相关的寄存器就是我们需要设置的。下图是基本定时器框图
- STM32中断处理:深入理解和高效应用
嵌入式杂谈
stm32单片机嵌入式硬件
中断是现代微控制器编程中不可或缺的一部分,它允许微控制器在特定事件发生时暂停当前任务,转而执行一个预先定义的中断服务例程(ISR),然后返回到被中断的任务。STM32微控制器提供了丰富的中断源和灵活的中断管理机制,使得开发者能够实现高效的任务处理和响应。本文将深入探讨STM32中断处理的原理、配置和应用。引言在实时系统中,中断机制是实现多任务处理和快速响应外部事件的关键技术。STM32系列微控制器
- C++/Qt 多媒体(续一)
张鱼小丸子_微辣
C++/Qtc++qt
一、前言前边讲述到了Qt的两项独特的模块编程支持的另一项内容——多媒体编程,上篇文章具体讲述的是QMediaPlayer类的一些主要接口函数、信号以及媒介的元数据类型等,而本章将会提供一篇示例代码——《基于QMediaPlayer的音乐播放器》。对于前文的《多媒体》内容,可以自行查看文章:C++/Qt多媒体-CSDN博客二、基于QMediaPlayer的音乐播放器1、播放器功能概述这是一个基于QM
- ARM32开发——(八)中断
Gxyun..
ARM32开发嵌入式硬件arm开发
1.中断概念中断是计算机系统中的一种机制,用于响应外部事件或内部事件,它可以使单片机暂时中断正在执行的程序,转而去执行一个中断处理函数,待中断处理函数执行完毕后,再回到原来的程序继续执行。中断机制使得计算机可以响应各种事件,从而提高了计算机的实时性和可靠性。中断的基本原理是通过硬件或软件检测到中断请求信号,将CPU当前的执行现场保存下来,转而去执行与中断相对应的中断服务程序。中断服务程序执行完成后
- gec6818多功能娱乐系统——游戏区(飞机大战、扫雷、2048、五子棋)、音乐播放器、视频播放器、相册。
不会写代码的小邓
娱乐嵌入式硬件c++c语言软件工程
成品展示链接:https://pan.baidu.com/s/1FXLM08DA93aOpTk2h2xVNw?pwd=rxmb提取码:rxmb基础功能实现线程管理实现showtime()函数,用于显示当前时间#include"header.h"#include"font.h"voidshow_font(structLcdDevice*lcd,char*buf_time){//打开字体font*f=
- 键盘按键处理过程
熊哥56246777
OD调试
键盘按键:1.当按下键盘的一个按键时,键盘产生硬件中断信号发到总线,总线将信号发送到ioapic寄存器接收,ioapic寄存器存储了键盘中断的中断idt的索引号,和发给哪个cpu来处理(针对多核),然后发给该cpu的localapic寄存器2.localapic接收到信号,里面存储了中断idt索引号到idt键盘中断处理地址的映射。然后发给键盘中断处理例程,该例程再依次传给键盘端口驱动,端口类驱动,
- STM32 消息队列处理串口发送的报文
S安东尼
stm32嵌入式硬件单片机
文章目录概要整体流程具体实现小结概要本文写自正在做的项目,需要使用串口2处理EasyModBus传输的报文,原本采用中断处理的方式,在屏幕,按键,感应器同时传输下,产生了丢包现象,偶发性的死机问题,所以改用消息队列进行缓存,逐条处理。整体流程创建队列串口中断接收报文,简易判别添加入队列解包任务,从队列中取出报文解包做相应处理具体实现创建队列结构体#defineQUEUE_LENGTH20struc
- 每日推荐11.07
西瓜绿2020
分享时下比较流行的优秀国外设计,每日开眼一下;数量四组,每日积累一点点,提高设计审美!#小程序#UI01.音乐播放器移动UI套件模板https://www.uplabs.com/posts/music-player-mobile-ui-kits-template-81dc5e4e-8750-4854-bb10-4f4a01ff94b202.游戏设备商店移动UI套件模板https://www.upl
- C++面试:CPU的上下文切换、中断处理与系统调度
Thomas_Lbw
c++c++面试
目录一、上下文切换(ContextSwitching)1.切换基础2.减少切换使用线程池使用异步编程使用共享内存二、中断处理(InterruptHandling)中断基础中断发生过程三、系统调度(Scheduling)进程调度调度算法先来先服务(FirstCome,FirstServed,FCFS)最短作业优先(ShortestJobFirst,SJF)轮转调度(RoundRobin)多级反馈队列
- 如何在终端中优雅地听歌
小风xf
查了一下网上所谓的终端音乐播放器,似乎都不怎么样,有些还写了巨丑无比的UI,在命令行里画UI是个需要taste的事,画不好就会很丑,显然我不需要这些东西。找着找着,发现macOS上本来就有个命令行播放器,叫afplay,用法也很简单afplay后面加文件名就OK了,我想了想就用它了吧。参考文献http://jujuba.me/articles/terminal_music.html
- 16、STM32F103C8T6 Systick(滴答定时器)中断
维年
stm32单片机学习
一、systick配置//每经过1ms就会进入一次中断函数//注:该重装寄存器是一个24位的,//1s需要计数72000000次//1ms需要计数72000000/1000次,定时1ms;SysTick_Config(SystemCoreClock/1000);二、systick中断处理函数voidSysTick_Handler(void){}按自己需求写例如voidSysTick_Handler
- Java常用排序算法/程序员必须掌握的8大排序算法
cugfy
java
分类:
1)插入排序(直接插入排序、希尔排序)
2)交换排序(冒泡排序、快速排序)
3)选择排序(直接选择排序、堆排序)
4)归并排序
5)分配排序(基数排序)
所需辅助空间最多:归并排序
所需辅助空间最少:堆排序
平均速度最快:快速排序
不稳定:快速排序,希尔排序,堆排序。
先来看看8种排序之间的关系:
1.直接插入排序
(1
- 【Spark102】Spark存储模块BlockManager剖析
bit1129
manager
Spark围绕着BlockManager构建了存储模块,包括RDD,Shuffle,Broadcast的存储都使用了BlockManager。而BlockManager在实现上是一个针对每个应用的Master/Executor结构,即Driver上BlockManager充当了Master角色,而各个Slave上(具体到应用范围,就是Executor)的BlockManager充当了Slave角色
- linux 查看端口被占用情况详解
daizj
linux端口占用netstatlsof
经常在启动一个程序会碰到端口被占用,这里讲一下怎么查看端口是否被占用,及哪个程序占用,怎么Kill掉已占用端口的程序
1、lsof -i:port
port为端口号
[root@slave /data/spark-1.4.0-bin-cdh4]# lsof -i:8080
COMMAND PID USER FD TY
- Hosts文件使用
周凡杨
hostslocahost
一切都要从localhost说起,经常在tomcat容器起动后,访问页面时输入http://localhost:8088/index.jsp,大家都知道localhost代表本机地址,如果本机IP是10.10.134.21,那就相当于http://10.10.134.21:8088/index.jsp,有时候也会看到http: 127.0.0.1:
- java excel工具
g21121
Java excel
直接上代码,一看就懂,利用的是jxl:
import java.io.File;
import java.io.IOException;
import jxl.Cell;
import jxl.Sheet;
import jxl.Workbook;
import jxl.read.biff.BiffException;
import jxl.write.Label;
import
- web报表工具finereport常用函数的用法总结(数组函数)
老A不折腾
finereportweb报表函数总结
ADD2ARRAY
ADDARRAY(array,insertArray, start):在数组第start个位置插入insertArray中的所有元素,再返回该数组。
示例:
ADDARRAY([3,4, 1, 5, 7], [23, 43, 22], 3)返回[3, 4, 23, 43, 22, 1, 5, 7].
ADDARRAY([3,4, 1, 5, 7], "测试&q
- 游戏服务器网络带宽负载计算
墙头上一根草
服务器
家庭所安装的4M,8M宽带。其中M是指,Mbits/S
其中要提前说明的是:
8bits = 1Byte
即8位等于1字节。我们硬盘大小50G。意思是50*1024M字节,约为 50000多字节。但是网宽是以“位”为单位的,所以,8Mbits就是1M字节。是容积体积的单位。
8Mbits/s后面的S是秒。8Mbits/s意思是 每秒8M位,即每秒1M字节。
我是在计算我们网络流量时想到的
- 我的spring学习笔记2-IoC(反向控制 依赖注入)
aijuans
Spring 3 系列
IoC(反向控制 依赖注入)这是Spring提出来了,这也是Spring一大特色。这里我不用多说,我们看Spring教程就可以了解。当然我们不用Spring也可以用IoC,下面我将介绍不用Spring的IoC。
IoC不是框架,她是java的技术,如今大多数轻量级的容器都会用到IoC技术。这里我就用一个例子来说明:
如:程序中有 Mysql.calss 、Oracle.class 、SqlSe
- 高性能mysql 之 选择存储引擎(一)
annan211
mysqlInnoDBMySQL引擎存储引擎
1 没有特殊情况,应尽可能使用InnoDB存储引擎。 原因:InnoDB 和 MYIsAM 是mysql 最常用、使用最普遍的存储引擎。其中InnoDB是最重要、最广泛的存储引擎。她 被设计用来处理大量的短期事务。短期事务大部分情况下是正常提交的,很少有回滚的情况。InnoDB的性能和自动崩溃 恢复特性使得她在非事务型存储的需求中也非常流行,除非有非常
- UDP网络编程
百合不是茶
UDP编程局域网组播
UDP是基于无连接的,不可靠的传输 与TCP/IP相反
UDP实现私聊,发送方式客户端,接受方式服务器
package netUDP_sc;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.Ine
- JQuery对象的val()方法执行结果分析
bijian1013
JavaScriptjsjquery
JavaScript中,如果id对应的标签不存在(同理JAVA中,如果对象不存在),则调用它的方法会报错或抛异常。在实际开发中,发现JQuery在id对应的标签不存在时,调其val()方法不会报错,结果是undefined。
- http请求测试实例(采用json-lib解析)
bijian1013
jsonhttp
由于fastjson只支持JDK1.5版本,因些对于JDK1.4的项目,可以采用json-lib来解析JSON数据。如下是http请求的另外一种写法,仅供参考。
package com;
import java.util.HashMap;
import java.util.Map;
import
- 【RPC框架Hessian四】Hessian与Spring集成
bit1129
hessian
在【RPC框架Hessian二】Hessian 对象序列化和反序列化一文中介绍了基于Hessian的RPC服务的实现步骤,在那里使用Hessian提供的API完成基于Hessian的RPC服务开发和客户端调用,本文使用Spring对Hessian的集成来实现Hessian的RPC调用。
定义模型、接口和服务器端代码
|---Model
&nb
- 【Mahout三】基于Mahout CBayes算法的20newsgroup流程分析
bit1129
Mahout
1.Mahout环境搭建
1.下载Mahout
http://mirror.bit.edu.cn/apache/mahout/0.10.0/mahout-distribution-0.10.0.tar.gz
2.解压Mahout
3. 配置环境变量
vim /etc/profile
export HADOOP_HOME=/home
- nginx负载tomcat遇非80时的转发问题
ronin47
nginx负载后端容器是tomcat(其它容器如WAS,JBOSS暂没发现这个问题)非80端口,遇到跳转异常问题。解决的思路是:$host:port
详细如下:
该问题是最先发现的,由于之前对nginx不是特别的熟悉所以该问题是个入门级别的:
? 1 2 3 4 5
- java-17-在一个字符串中找到第一个只出现一次的字符
bylijinnan
java
public class FirstShowOnlyOnceElement {
/**Q17.在一个字符串中找到第一个只出现一次的字符。如输入abaccdeff,则输出b
* 1.int[] count:count[i]表示i对应字符出现的次数
* 2.将26个英文字母映射:a-z <--> 0-25
* 3.假设全部字母都是小写
*/
pu
- mongoDB 复制集
开窍的石头
mongodb
mongo的复制集就像mysql的主从数据库,当你往其中的主复制集(primary)写数据的时候,副复制集(secondary)会自动同步主复制集(Primary)的数据,当主复制集挂掉以后其中的一个副复制集会自动成为主复制集。提供服务器的可用性。和防止当机问题
mo
- [宇宙与天文]宇宙时代的经济学
comsci
经济
宇宙尺度的交通工具一般都体型巨大,造价高昂。。。。。
在宇宙中进行航行,近程采用反作用力类型的发动机,需要消耗少量矿石燃料,中远程航行要采用量子或者聚变反应堆发动机,进行超空间跳跃,要消耗大量高纯度水晶体能源
以目前地球上国家的经济发展水平来讲,
- Git忽略文件
Cwind
git
有很多文件不必使用git管理。例如Eclipse或其他IDE生成的项目文件,编译生成的各种目标或临时文件等。使用git status时,会在Untracked files里面看到这些文件列表,在一次需要添加的文件比较多时(使用git add . / git add -u),会把这些所有的未跟踪文件添加进索引。
==== ==== ==== 一些牢骚
- MySQL连接数据库的必须配置
dashuaifu
mysql连接数据库配置
MySQL连接数据库的必须配置
1.driverClass:com.mysql.jdbc.Driver
2.jdbcUrl:jdbc:mysql://localhost:3306/dbname
3.user:username
4.password:password
其中1是驱动名;2是url,这里的‘dbna
- 一生要养成的60个习惯
dcj3sjt126com
习惯
一生要养成的60个习惯
第1篇 让你更受大家欢迎的习惯
1 守时,不准时赴约,让别人等,会失去很多机会。
如何做到:
①该起床时就起床,
②养成任何事情都提前15分钟的习惯。
③带本可以随时阅读的书,如果早了就拿出来读读。
④有条理,生活没条理最容易耽误时间。
⑤提前计划:将重要和不重要的事情岔开。
⑥今天就准备好明天要穿的衣服。
⑦按时睡觉,这会让按时起床更容易。
2 注重
- [介绍]Yii 是什么
dcj3sjt126com
PHPyii2
Yii 是一个高性能,基于组件的 PHP 框架,用于快速开发现代 Web 应用程序。名字 Yii (读作 易)在中文里有“极致简单与不断演变”两重含义,也可看作 Yes It Is! 的缩写。
Yii 最适合做什么?
Yii 是一个通用的 Web 编程框架,即可以用于开发各种用 PHP 构建的 Web 应用。因为基于组件的框架结构和设计精巧的缓存支持,它特别适合开发大型应
- Linux SSH常用总结
eksliang
linux sshSSHD
转载请出自出处:http://eksliang.iteye.com/blog/2186931 一、连接到远程主机
格式:
ssh name@remoteserver
例如:
ssh
[email protected]
二、连接到远程主机指定的端口
格式:
ssh name@remoteserver -p 22
例如:
ssh i
- 快速上传头像到服务端工具类FaceUtil
gundumw100
android
快速迭代用
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOExceptio
- jQuery入门之怎么使用
ini
JavaScripthtmljqueryWebcss
jQuery的强大我何问起(个人主页:hovertree.com)就不用多说了,那么怎么使用jQuery呢?
首先,下载jquery。下载地址:http://hovertree.com/hvtart/bjae/b8627323101a4994.htm,一个是压缩版本,一个是未压缩版本,如果在开发测试阶段,可以使用未压缩版本,实际应用一般使用压缩版本(min)。然后就在页面上引用。
- 带filter的hbase查询优化
kane_xie
查询优化hbaseRandomRowFilter
问题描述
hbase scan数据缓慢,server端出现LeaseException。hbase写入缓慢。
问题原因
直接原因是: hbase client端每次和regionserver交互的时候,都会在服务器端生成一个Lease,Lease的有效期由参数hbase.regionserver.lease.period确定。如果hbase scan需
- java设计模式-单例模式
men4661273
java单例枚举反射IOC
单例模式1,饿汉模式
//饿汉式单例类.在类初始化时,已经自行实例化
public class Singleton1 {
//私有的默认构造函数
private Singleton1() {}
//已经自行实例化
private static final Singleton1 singl
- mongodb 查询某一天所有信息的3种方法,根据日期查询
qiaolevip
每天进步一点点学习永无止境mongodb纵观千象
// mongodb的查询真让人难以琢磨,就查询单天信息,都需要花费一番功夫才行。
// 第一种方式:
coll.aggregate([
{$project:{sendDate: {$substr: ['$sendTime', 0, 10]}, sendTime: 1, content:1}},
{$match:{sendDate: '2015-
- 二维数组转换成JSON
tangqi609567707
java二维数组json
原文出处:http://blog.csdn.net/springsen/article/details/7833596
public class Demo {
public static void main(String[] args) { String[][] blogL
- erlang supervisor
wudixiaotie
erlang
定义supervisor时,如果是监控celuesimple_one_for_one则删除children的时候就用supervisor:terminate_child (SupModuleName, ChildPid),如果shutdown策略选择的是brutal_kill,那么supervisor会调用exit(ChildPid, kill),这样的话如果Child的behavior是gen_