- Operating Systems: Three Easy Pieces 读书笔记之目录篇
weixin_40293999
操作系统真象还原服务器linux汇编学习
OperatingSystems:ThreeEasyPieces读书笔记之目录篇因为近期正在学习xv6代码,需要不断的学习操作系统,所以贴出这个目录,供查阅使用OperatingSystems:ThreeEasyPieces英文原版电子书:http://pages.cs.wisc.edu/~remzi/OSTEP/作者主页:https://github.com/remzi-arpacidussea
- OSTEP《操作系统导论》万字 精华学习笔记-第一部分:虚拟化
yruluvme
OS:TEP《操作系统导论》学习笔记驱动开发linuxunix
前言操作系统导论(Operating-Systems:Three-Easy-Pieces)是一本非常好的操作系统入门书籍。这是我看完了之后,做的一点笔记总结。(重点部分加粗)前段时间学习过《深入理解计算机系统》(CSAPP)和《计算机组成与设计:硬件软件接口RISC-V》学习完这本书算是对于之前的一点点补充,一些概念理解的更加深刻了。github上找到的课后作业答案第二部分第三部分第一部分:虚拟化
- echarts案例之日历
Her...
echartsechartsjavascriptvue.js前端1024程序员节
一、此案例基于Vue3+ts,效果展示:二、单个属性的值:1、visualMap.pieces根据值自定义每个小块的颜色pieces:[{min:0,//最小值max:20,//最大值label:'未统计',color:'rgba(27,61,71,1)',},{min:20,max:50,label:'优',color:'#22a9a5',},{min:50,max:70,label:'中',c
- 《校长Swaraj部分分享录音整理(翻译:钇汐老师)—我在印度》
妞姐_96da
校长Swaraj为每位中国同学亲自戴上“世上最贵的珍珠(Swaraj语)”校长Swaraj以蔬菜为原料的创意蛋糕用鲜花瓣精心布置的台面同学们称厨房小胖,每天走到每张桌上旁,用刚学会的中文“煎饼”热情打招呼……如果你是支离破碎的,分享的也是支离破碎的。(因为peace和pieces很相似的英文)这个选择权在于我们自己,你是想要和平的?还是支离破碎的?这个选择权在于你自己。不管是对你个人的生活,还是社
- Operating Systems: Three Easy Pieces学习笔记 - Virtualization - Mechanism
Chelly_EGOIST
Mechanism:LimitedDirectExecutionCruxAttainingperformancewhilemaintainingcontrol.BasicTechnique:LimitedDirectExecutionimage.pngProblem#1:RestrictedOperationsCruxIftheprocesswishestoperformsomekindofres
- 系分 - 案例分析 - 需求分析(FAST分析)
WorkLee
软考-系统分析师软考系统分析师
个人总结,仅供参考,欢迎加好友一起讨论文章目录案例分析-需求分析(FAST分析)FAST1范围定义2问题分析鱼骨图帕累托图制定系统改进目标3需求分析定义需求PIECES方法4逻辑设计5决策分析6物理设计和集成/构造和测试/安装和发布FAST方法其它文献分为4个阶段典型例题1题目描述参考答案典型例题2题目描述参考答案典型例题3题目描述参考答案案例分析-需求分析(FAST分析)FASTFramewor
- 软考高级-系统分析师-案例分析-需求工程
小李的便利店
软考-高级-系统分析师umljava经验分享学习方法
系分-案例分析-需求工程需求获取方法案例-需求获取方法需求分析(FAST分析)范围定义问题分析鱼骨图问题、机遇、目标和约束矩阵帕累托图制定系统改进目标需求分析定义需求PIECES方法P-性能(Performance)I-信息(Information)E-经济(Economics)C-控制(Control)E-效益(Efficiency)S-服务(Service)逻辑设计策略分析物理设计和集成/构造
- 潇洒郎:解决Pyecharts中地理图分段型设置pieces之后不能完全显示问题——基于Python的疫情数据分析
潇洒郎
pythonGUI应用
潇洒郎:解决Pyecharts中地理图分段型设置pieces之后不能完全显示问题基于Python的疫情数据分析先爬取疫情数据学习使用Pyecharts画图frompyecharts.chartsimportGeo,Mapfrompyechartsimportoptionsasoptsprovinces0=['香港','广东','四川','上海','台湾','天津','陕西','北京','河南','
- C++各知识点参考资料汇总(不定期更新)
BBBourne
C++c++开发语言
C++编译与内存相关C++程序编译csapp.cs.cmu.edu/3e/pieces/preface3e.pdfC++内存管理1.ELF文件:可执行与可链接格式(ExecutableandLinkableFormat)是一种用于可执行文件、目标代码、共享库和核心转储(coredump)的标准文件格式,每个ELF文件都由一个ELFheader和紧跟其后的文件数据部分组成,可以参考ELF文件的构成如
- 12 款小众宝藏AI工具,90% 的开发者不了解
程序员小范
人工智能
AI工具的发展一日千里,了解这些AI工具的功能以及它们如何提高开发过程中的效率和创新,变得尤为重要,这里分享了12个宝藏的人工智能和低代码工具,希望对大家的工作与学习有所帮助。1.PiecesforDevelopers网址:https://pieces.app/PiecesforDevelopers是一款与AI深度集成的智能代码片段管理器,可帮助您在整个工作流程中保存、生成、重用和共享代码。您可以
- 《Operating Systems: Three Easy Pieces》(3)
美航球馆
背景这个系列的第三篇笔记对应的是书中的《Mechanism:LimitedDirectExecution》,主要内容是对之前说过的timesharing介绍了一点稍微深入的东西。ChallengesOfTimeSharingTimesharing从定义来说很简单,就是单个CPU运行一个process一段时间,然后在运行其它process直到所有process结束。但是在建立这个机制之前,我们还需要
- echarts怎么修改map图例字体的颜色 echarts visualmap pieces
Z_Xshan
vueechartsvue.js
如果在饼形图我们可以用legend来设置legend:{left:'center',textStyle:{fontSize:18,//字体大小color:'#ffffff'//字体颜色},},但是我们想改变visualmappieces图例的字体颜色用上面的方法一直没有效果在这里我们在pieces里加上textStyle属性就好了pieces:[//自定义『分段式视觉映射组件(visualMapP
- leetcode - 2038. Remove Colored Pieces if Both Neighbors are the Same Color
KpLn_HJL
OJ题目记录leetcodelinux算法
DescriptionTherearenpiecesarrangedinaline,andeachpieceiscoloredeitherby‘A’orby‘B’.Youaregivenastringcolorsoflengthnwherecolors[i]isthecoloroftheithpiece.AliceandBobareplayingagamewheretheytakealternat
- 《Operating Systems: Three Easy Pieces》26 Concurrency: An Introduction 并发介绍
wwjloves2study
操作系统操作系统
26Concurrency:AnIntroduction并发介绍到目前为止,我们已经看到了OS执行的基本抽象的发展。我们已经看到了如何采用单个物理CPU并将其转变为多个虚拟CPU,从而使人们幻想同时运行多个程序。我们还看到了如何为每个进程创建大型私有虚拟内存的错觉。当操作系统确实在物理内存(有时是磁盘)之间秘密地复用地址空间时,地址空间的这种抽象使每个程序的行为就好像它具有自己的内存一样。在本说明
- Operating Systems: Three Easy Pieces-13 Address Spaces
东大坡居士
:OS操作系统OS操作系统OS操作系统
OperatingSystems:ThreeEasyPieces第十三章:AddressSpaces之前,建立一个电脑操作系统是非常容易的事情,也许你会问为什么?因为用户的期望很低。是那些“该死”的用户们,期望“易用”,“性能高”,“可靠”等,才导致所有的这些另人头疼的事情。下次碰到这些用户时,别忘感谢他们,制造了所有的这些问题。13.1早期的系统:从内存的角度看,早期的机器没有将其抽象给用户,基
- Operating Systems: Three Easy Pieces(操作系统:三个简单方面)4.5数据结构4.6总结
五花肉_whr
操作系统操作系统虚拟化进程状态
4.5数据结构操作系统就是一个程序,和其他任何程序一样,他也有一些很重要的数据结构用来跟踪各种各样的重要信息片段。要跟踪每个进程的状态,比如,操作系统让所有的就绪态进程放在一个进程表里面,同时,用一些额外的信息来跟踪运行态的进程。操作系统还必须以某种方式来跟踪阻塞态的进程;当I/O事件完成时,操作系统必须确保唤醒正确的进程,并让它准备再次进入运行态。/****************图片暂时未能上
- 《Operating Systems:Three easy pieces》:2.1 CPU 虚拟化
懿一Anna
操作系统operatingsystems
2.1CPU虚拟化/*************************************************************************>FileName:cpu.c>Author:wq>Mail:
[email protected]>CreatedTime:2018年12月26日星期三13时42分42秒>Function:间隔一秒打印出命令行输入的字符串,理解OS的功
- 《Operating Systems:Three easy pieces》: 2.2 内存虚拟化
懿一Anna
操作系统operatingsystemVirtualizingMemory
2.2内存虚拟化现在让我们思考内存。现代机器所呈现的物理存储模型非常简单。内存只是一个字节数组;要读取内存,必须指定一个地址才能访问存储在那里的数据;要写入(或更新)内存,还必须指定要写入到给定地址的数据。/**********************************************************************************>FileName:mem.
- 《Operating Systems:Three easy pieces》:2.3 并发性
懿一Anna
操作系统操作系统
2.3并发性当在相同的内存空间中有许多并发执行的线程时,我们如何构建一个正确工作的程序?操作系统需要哪些基本类型?硬件应该提供哪些机构?我们如何使用它们来解决并发性问题?本书另一个很重要的主题是并发性。我们使用这样一个概念术语去描述同一个程序要同时处理多个任务时会发生的并要求解决的一些问题。并发性问题首先出现在操作系统本身中;正如上述你看到的一些虚拟化的例子,操作系统同时处理许多事情,先运行一个进
- 《Operating Systems:Three easy pieces》:对操作系统的介绍(一)
懿一Anna
操作系统OperatingSystems
2操作系统的介绍如果你正在上大学的操作系统的课程,你应该已经对计算机程序在运行的时候做些什么有了一些了解。如果没有,学习这本书(以及相应的课程)将会是很困难的——所以你应该停止阅读本书,或跑到附近的书店迅速补充这些必要的背景知识。当程序运行的时候到底会发生些什么呢?Well,运行中的程序做了很简单的事:执行指令。数百万(近些年来,数以十亿计)次每秒,处理器从内存中获取指令,解码,并执行指令。当这条
- 《Operating systems:three easy pieces》:2.4 持续性
懿一Anna
操作系统operating
2.4持续性本书第三个重要的主题是可持续性(persistence)。在系统内存中,数据很容易丢失,因为DRAM等设备以易失性的(volatile)方式存储值,当停电或系统崩溃,在内存中的所有数据就丢失了。因此,我们需要硬件和软件能够持久的存储数据。这样的存储对于任何系统都是至关重要的,因为用户非常关心他们的数据。硬件以某种输入/输出或I/O设备的形式出现;在现代系统中,硬盘是存储长期信息的常用存
- Operating Systems:Three-Easy-Pieces
kk8_
linux运维服务器
OperatingSystems:ThreeEasyPieces目标:易用性,性能虚拟化CPU进程接口创建加载→分配栈,堆→其他初始化任务→在程序入口地址启动程序(转移对CPU的控制权)。销毁等待其他控制状态运行就绪阻塞Unix系统fork();exec();wait()机器状态程序计数器栈指针帧指针懒加载运行时栈文件描述符数据结构进程列表寄存器上下文进程控制块(PCB)调度指标周转时间性能指标响
- 两万字笔记快速看完《操作系统导论(Operating Systems: Three Easy Pieces)》
O_1CxH
操作系统内核操作系统
操作系统导论(OperatingSystems:ThreeEasyPieces)笔记目录操作系统导论(OperatingSystems:ThreeEasyPieces)笔记0内容提要1操作系统三大话题2技术演进3关于“抽象-机制-策略”4CPU虚拟化4.1抽象:进程4.2进程如何执行4.2.1策略:直接执行(LibraryOSModel)4.2.2策略:受限直接执行(SleepBeautyMode
- 荐书:Operating Systems: Three Easy Pieces
mw_nice
操作系统
今天介绍一本书,书名叫做:《OperatingSystems:threeeasypieces》。如果日常工作中和底层打交道的话会遇到很多操作系统相关的问题,比如:为何系统会出现load值高cpu利用率却不高的情况?为何会有那么多僵尸进程?某些场景下如何快速创建进程的snapshot?如何高效利用CPUCacheLine(利用CacheFriendly的数据结构)?如何避免FalseSharing?
- Operating Systems: Three Easy Pieces 学习和翻译
potato_oo
操作系统
早就听说这个讲操作系统讲的很好。这是自己学习的记录,同时翻译了一下,有缘人看到错误的话,请指正探讨哈.这个是第一部分,后续会持续更新原文链接OperatingSystems:ThreeEasyPieces(wisc.edu)如有侵权请告知。part1Virtualizationchap4概念:进程(TheProcess)本章我们将讨论的是操作系统中最基础的概念之一:进程。进程的定义十分简单,他是一
- Operating Systems: Three Easy Pieces 读书笔记之目录篇
小楼野马
操作系统读书笔记
OperatingSystems:ThreeEasyPieces英文原版电子书:http://pages.cs.wisc.edu/~remzi/OSTEP/作者主页:https://github.com/remzi-arpacidusseau(其中包含中文翻译版书籍、homework等)读完这本书将收获什么?(TOC)对操作系统的整体介绍,虚拟化CPU虚拟化内存并发性持久性设计目标一些历史第一部分
- 《Operating Systems: Three Easy Pieces》(2)
美航球馆
背景这篇文章是操作系统的第二篇笔记,我们将开始探索process具体的API。因为涉及到具体的API,主要的精力应该放在这本书第二篇的Homework,辅之以相关的文档,所以在简单介绍几个重要的API之后,我会在最后添上我的Homeworkcode。接口列表我们先依次来看下三个比较重要的APIFamilyfork()wait()exec()Thefork()SystemCallfork()这个AP
- 【165block- ✤ -N o .50-51】F03 雪球 &F09 秋天的紫菀花
hh妈
初次接触翻缝,真的有些上瘾呢如同动车提速那般,我的DJ也在不知不觉中提速啦这次做了6个block【起始于:2019年1月7日】Pieces:“1177p”2020年8月24日周一30°~13°迷雾135轻度Jane’sBlock&MyBlockF03—雪球SnowballDifficultyEasyPaperFoundationNumberofPieces=12布友@舞落在博文中写道:F-3比较简
- echarts 地图 visualMap 图例点击事件监听
笋笋~
echarts前端javascript
一、切换位置二、切换监听//切换事件监听this.myChart.off('datarangeselected');//为了不触发两次this.myChart.on('datarangeselected',(e)=>{//visualMapchange});//配置如下visualMap:{type:'piecewise',showLabel:true,inverse:true,pieces:[{
- Operating Systems: Three Easy Pieces学习笔记 - Virtualization - Paging: Introduction
Chelly_EGOIST
Paging:IntroductionCrux:Howtovirtualizememorywithoutsegments?Herecomespaging.Idea:Insteadofsplittinguptheaddressspaceintothreelogicalsegments(eachofvariablesize),wesplituptheaddressspaceintofixed-size
- html
周华华
html
js
1,数组的排列
var arr=[1,4,234,43,52,];
for(var x=0;x<arr.length;x++){
for(var y=x-1;y<arr.length;y++){
if(arr[x]<arr[y]){
&
- 【Struts2 四】Struts2拦截器
bit1129
struts2拦截器
Struts2框架是基于拦截器实现的,可以对某个Action进行拦截,然后某些逻辑处理,拦截器相当于AOP里面的环绕通知,即在Action方法的执行之前和之后根据需要添加相应的逻辑。事实上,即使struts.xml没有任何关于拦截器的配置,Struts2也会为我们添加一组默认的拦截器,最常见的是,请求参数自动绑定到Action对应的字段上。
Struts2中自定义拦截器的步骤是:
- make:cc 命令未找到解决方法
daizj
linux命令未知make cc
安装rz sz程序时,报下面错误:
[root@slave2 src]# make posix
cc -O -DPOSIX -DMD=2 rz.c -o rz
make: cc:命令未找到
make: *** [posix] 错误 127
系统:centos 6.6
环境:虚拟机
错误原因:系统未安装gcc,这个是由于在安
- Oracle之Job应用
周凡杨
oracle job
最近写服务,服务上线后,需要写一个定时执行的SQL脚本,清理并更新数据库表里的数据,应用到了Oracle 的 Job的相关知识。在此总结一下。
一:查看相关job信息
1、相关视图
dba_jobs
all_jobs
user_jobs
dba_jobs_running 包含正在运行
- 多线程机制
朱辉辉33
多线程
转至http://blog.csdn.net/lj70024/archive/2010/04/06/5455790.aspx
程序、进程和线程:
程序是一段静态的代码,它是应用程序执行的蓝本。进程是程序的一次动态执行过程,它对应了从代码加载、执行至执行完毕的一个完整过程,这个过程也是进程本身从产生、发展至消亡的过程。线程是比进程更小的单位,一个进程执行过程中可以产生多个线程,每个线程有自身的
- web报表工具FineReport使用中遇到的常见报错及解决办法(一)
老A不折腾
web报表finereportjava报表报表工具
FineReport使用中遇到的常见报错及解决办法(一)
这里写点抛砖引玉,希望大家能把自己整理的问题及解决方法晾出来,Mark一下,利人利己。
出现问题先搜一下文档上有没有,再看看度娘有没有,再看看论坛有没有。有报错要看日志。下面简单罗列下常见的问题,大多文档上都有提到的。
1、address pool is full:
含义:地址池满,连接数超过并发数上
- mysql rpm安装后没有my.cnf
林鹤霄
没有my.cnf
Linux下用rpm包安装的MySQL是不会安装/etc/my.cnf文件的,
至于为什么没有这个文件而MySQL却也能正常启动和作用,在这儿有两个说法,
第一种说法,my.cnf只是MySQL启动时的一个参数文件,可以没有它,这时MySQL会用内置的默认参数启动,
第二种说法,MySQL在启动时自动使用/usr/share/mysql目录下的my-medium.cnf文件,这种说法仅限于r
- Kindle Fire HDX root并安装谷歌服务框架之后仍无法登陆谷歌账号的问题
aigo
root
原文:http://kindlefireforkid.com/how-to-setup-a-google-account-on-amazon-fire-tablet/
Step 4: Run ADB command from your PC
On the PC, you need install Amazon Fire ADB driver and instal
- javascript 中var提升的典型实例
alxw4616
JavaScript
// 刚刚在书上看到的一个小问题,很有意思.大家一起思考下吧
myname = 'global';
var fn = function () {
console.log(myname); // undefined
var myname = 'local';
console.log(myname); // local
};
fn()
// 上述代码实际上等同于以下代码
m
- 定时器和获取时间的使用
百合不是茶
时间的转换定时器
定时器:定时创建任务在游戏设计的时候用的比较多
Timer();定时器
TImerTask();Timer的子类 由 Timer 安排为一次执行或重复执行的任务。
定时器类Timer在java.util包中。使用时,先实例化,然后使用实例的schedule(TimerTask task, long delay)方法,设定
- JDK1.5 Queue
bijian1013
javathreadjava多线程Queue
JDK1.5 Queue
LinkedList:
LinkedList不是同步的。如果多个线程同时访问列表,而其中至少一个线程从结构上修改了该列表,则它必须 保持外部同步。(结构修改指添加或删除一个或多个元素的任何操作;仅设置元素的值不是结构修改。)这一般通过对自然封装该列表的对象进行同步操作来完成。如果不存在这样的对象,则应该使用 Collections.synchronizedList 方
- http认证原理和https
bijian1013
httphttps
一.基础介绍
在URL前加https://前缀表明是用SSL加密的。 你的电脑与服务器之间收发的信息传输将更加安全。
Web服务器启用SSL需要获得一个服务器证书并将该证书与要使用SSL的服务器绑定。
http和https使用的是完全不同的连接方式,用的端口也不一样,前者是80,后
- 【Java范型五】范型继承
bit1129
java
定义如下一个抽象的范型类,其中定义了两个范型参数,T1,T2
package com.tom.lang.generics;
public abstract class SuperGenerics<T1, T2> {
private T1 t1;
private T2 t2;
public abstract void doIt(T
- 【Nginx六】nginx.conf常用指令(Directive)
bit1129
Directive
1. worker_processes 8;
表示Nginx将启动8个工作者进程,通过ps -ef|grep nginx,会发现有8个Nginx Worker Process在运行
nobody 53879 118449 0 Apr22 ? 00:26:15 nginx: worker process
- lua 遍历Header头部
ronin47
lua header 遍历
local headers = ngx.req.get_headers()
ngx.say("headers begin", "<br/>")
ngx.say("Host : ", he
- java-32.通过交换a,b中的元素,使[序列a元素的和]与[序列b元素的和]之间的差最小(两数组的差最小)。
bylijinnan
java
import java.util.Arrays;
public class MinSumASumB {
/**
* Q32.有两个序列a,b,大小都为n,序列元素的值任意整数,无序.
*
* 要求:通过交换a,b中的元素,使[序列a元素的和]与[序列b元素的和]之间的差最小。
* 例如:
* int[] a = {100,99,98,1,2,3
- redis
开窍的石头
redis
在redis的redis.conf配置文件中找到# requirepass foobared
把它替换成requirepass 12356789 后边的12356789就是你的密码
打开redis客户端输入config get requirepass
返回
redis 127.0.0.1:6379> config get requirepass
1) "require
- [JAVA图像与图形]现有的GPU架构支持JAVA语言吗?
comsci
java语言
无论是opengl还是cuda,都是建立在C语言体系架构基础上的,在未来,图像图形处理业务快速发展,相关领域市场不断扩大的情况下,我们JAVA语言系统怎么从这么庞大,且还在不断扩大的市场上分到一块蛋糕,是值得每个JAVAER认真思考和行动的事情
- 安装ubuntu14.04登录后花屏了怎么办
cuiyadll
ubuntu
这个情况,一般属于显卡驱动问题。
可以先尝试安装显卡的官方闭源驱动。
按键盘三个键:CTRL + ALT + F1
进入终端,输入用户名和密码登录终端:
安装amd的显卡驱动
sudo
apt-get
install
fglrx
安装nvidia显卡驱动
sudo
ap
- SSL 与 数字证书 的基本概念和工作原理
darrenzhu
加密ssl证书密钥签名
SSL 与 数字证书 的基本概念和工作原理
http://www.linuxde.net/2012/03/8301.html
SSL握手协议的目的是或最终结果是让客户端和服务器拥有一个共同的密钥,握手协议本身是基于非对称加密机制的,之后就使用共同的密钥基于对称加密机制进行信息交换。
http://www.ibm.com/developerworks/cn/webspher
- Ubuntu设置ip的步骤
dcj3sjt126com
ubuntu
在单位的一台机器完全装了Ubuntu Server,但回家只能在XP上VM一个,装的时候网卡是DHCP的,用ifconfig查了一下ip是192.168.92.128,可以ping通。
转载不是错:
Ubuntu命令行修改网络配置方法
/etc/network/interfaces打开后里面可设置DHCP或手动设置静态ip。前面auto eth0,让网卡开机自动挂载.
1. 以D
- php包管理工具推荐
dcj3sjt126com
PHPComposer
http://www.phpcomposer.com/
Composer是 PHP 用来管理依赖(dependency)关系的工具。你可以在自己的项目中声明所依赖的外部工具库(libraries),Composer 会帮你安装这些依赖的库文件。
中文文档
入门指南
下载
安装包列表
Composer 中国镜像
- Gson使用四(TypeAdapter)
eksliang
jsongsonGson自定义转换器gsonTypeAdapter
转载请出自出处:http://eksliang.iteye.com/blog/2175595 一.概述
Gson的TypeAapter可以理解成自定义序列化和返序列化 二、应用场景举例
例如我们通常去注册时(那些外国网站),会让我们输入firstName,lastName,但是转到我们都
- JQM控件之Navbar和Tabs
gundumw100
htmlxmlcss
在JQM中使用导航栏Navbar是简单的。
只需要将data-role="navbar"赋给div即可:
<div data-role="navbar">
<ul>
<li><a href="#" class="ui-btn-active&qu
- 利用归并排序算法对大文件进行排序
iwindyforest
java归并排序大文件分治法Merge sort
归并排序算法介绍,请参照Wikipeida
zh.wikipedia.org/wiki/%E5%BD%92%E5%B9%B6%E6%8E%92%E5%BA%8F
基本思想:
大文件分割成行数相等的两个子文件,递归(归并排序)两个子文件,直到递归到分割成的子文件低于限制行数
低于限制行数的子文件直接排序
两个排序好的子文件归并到父文件
直到最后所有排序好的父文件归并到输入
- iOS UIWebView URL拦截
啸笑天
UIWebView
本文译者:candeladiao,原文:URL filtering for UIWebView on the iPhone说明:译者在做app开发时,因为页面的javascript文件比较大导致加载速度很慢,所以想把javascript文件打包在app里,当UIWebView需要加载该脚本时就从app本地读取,但UIWebView并不支持加载本地资源。最后从下文中找到了解决方法,第一次翻译,难免有
- 索引的碎片整理SQL语句
macroli
sql
SET NOCOUNT ON
DECLARE @tablename VARCHAR (128)
DECLARE @execstr VARCHAR (255)
DECLARE @objectid INT
DECLARE @indexid INT
DECLARE @frag DECIMAL
DECLARE @maxfrag DECIMAL
--设置最大允许的碎片数量,超过则对索引进行碎片
- Angularjs同步操作http请求with $promise
qiaolevip
每天进步一点点学习永无止境AngularJS纵观千象
// Define a factory
app.factory('profilePromise', ['$q', 'AccountService', function($q, AccountService) {
var deferred = $q.defer();
AccountService.getProfile().then(function(res) {
- hibernate联合查询问题
sxj19881213
sqlHibernateHQL联合查询
最近在用hibernate做项目,遇到了联合查询的问题,以及联合查询中的N+1问题。
针对无外键关联的联合查询,我做了HQL和SQL的实验,希望能帮助到大家。(我使用的版本是hibernate3.3.2)
1 几个常识:
(1)hql中的几种join查询,只有在外键关联、并且作了相应配置时才能使用。
(2)hql的默认查询策略,在进行联合查询时,会产
- struts2.xml
wuai
struts
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache