摘要: 目录[-] 三层架构(3-tier application) 通常意义上的三层架构就是将整个业务应用划分为:表现层(UI)、业务逻辑层(BLL)、数据访问层(DAL)。区分层次的目的即为了“高内聚,低耦合”的思想。 1、表现层(UI):通俗讲就是展现给用户的界面,即用户在使用一个系统的时候他的所见所 阅读全文
posted @ 2016-03-22 10:38 alex618 阅读(20701) 评论(0) 推荐(9) 编辑
摘要: 我们平时总是将混为一谈,殊不知它俩并不是一个概念。下面我来为大家揭晓我所知道的一些真相。 首先,它俩根本不是一个概念。 三层架构是一个分层式的软件体系架构设计,它可适用于任何一个项目。 MVC是一个设计模式,它是根据项目的具体需求来决定是否适用于该项目。 那么架构跟设计模式有什么区别呢? 我们从接手 阅读全文
posted @ 2016-03-22 10:34 alex618 阅读(26935) 评论(2) 推荐(9) 编辑
摘要: NSIS调用外部程序的的命令是Exec,比如Exec "notepad", 将启动Windows的默认文本编辑器Notepad。同样的道理可以用"java -jar test.jar"启动test.jar。Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Name"JavaLauncher"Caption"JavaLauncher"Icon"JavaLau 阅读全文
posted @ 2011-04-14 02:21 alex618 阅读(1562) 评论(0) 推荐(0) 编辑
摘要: More advanced replace text in fileFrom NSIS WikiAuthor: Afrow UK (talk, contrib) Contents[hide]1 Description 2 Usage 1 3 Usage 2 4 Usage 3 5 The Function 6 Versions History 7 Credits [edit] Description This function allows you to replace pieces of text in a file. Instead of replacing all text found 阅读全文
posted @ 2011-04-13 23:38 alex618 阅读(4479) 评论(0) 推荐(0) 编辑
摘要: !include "MUI.nsh"OutFile "test.exe"ShowInstDetails nevershowBrandingText "test it!"!insertmacro MUI_PAGE_COMPONENTSPage custom test!insertmacro MUI_PAGE_INSTFILES!insertmacro MUI_LANGUAGE "SimpChinese"Section "SectionA" SecAReadINIStr $R0 "$PLU 阅读全文
posted @ 2011-04-13 00:05 alex618 阅读(952) 评论(0) 推荐(0) 编辑
摘要: !include "MUI.nsh"!include "Sections.nsh"Name "One-Section"OutFile "one-section.exe"RequestExecutionLevel user!define MUI_ComponentsPage_NoDesc!insertmacro MUI_Page_Components!insertmacro MUI_Language "SimpChinese"Section !RequiredSectionIn ROSection 阅读全文
posted @ 2011-04-12 03:27 alex618 阅读(388) 评论(0) 推荐(0) 编辑
摘要: ;; NSIS 多语言脚本写作密技;; 这是 KA 实地用于 MDaemon 4.05 中文化的多语言安装,; 环境: NSIS 2.0b1, Modern UI 1.62;; 为便于阅读,标明 (* 进阶) 者,较为困难,可先略过。; 几乎是想办法用上 Modern UI 1.62 新版的所有技巧了。; 如果注解写得太多,损害你的智商,请赶快写信骂我。;; 简体描述部分,因为在 BIG5 编码之下使用 GB2312 ,故; 必定有乱码,还请见谅。如果需要在网页取得正确编码,; 请储存为 BIG5 plain text ,再来处理。我会另外以; attach file 的方式附在板上。;; 我 阅读全文
posted @ 2011-04-12 03:26 alex618 阅读(6231) 评论(0) 推荐(0) 编辑
摘要: ; one-section.nsi;; This example demonstrates how to control section selection.; It allows only one of the sections of a group to be selected.;--------------------------------; Section define/macro header file; See this header file for more info!include "MUI.nsh"!include "Sections.nsh 阅读全文
posted @ 2011-04-12 03:23 alex618 阅读(1012) 评论(0) 推荐(0) 编辑
摘要: 在文件的右键菜单加入如下图所示的菜单 这样就不用每次选择打开方式 特别是对于一些配置文件之类的[HKEY_CLASSES_ROOT\*\Shell\用 NotePad++打开][HKEY_CLASSES_ROOT\*\Shell\用 NotePad++打开\command]@="D:\\tools\\notepad++\\notepad++.exe \"%L\""注意 %L 要用引号括起来 否则不能打开包含 空格等特殊字符路径的文件同样可以给mplayer等软件加入右键菜单Windows Registry Editor Version 5.00[HKEY 阅读全文
posted @ 2011-02-24 22:25 alex618 阅读(3270) 评论(0) 推荐(0) 编辑
摘要: Failed to rename directory d:\android-sdk-windows\tools to d:\android-sdk-windows\tools\temp\ToolPackage.old01这样的问题?总是提示无法改名?解决方法:1、在提示错误时先不退出,先备份tools文件夹2、将temp文件夹下的ToolPackage.new01改名为tools,退出SDK Setup,并用改名后的tools目录替换原来的tools3、重新启动SDK Setup 阅读全文
posted @ 2011-02-24 22:15 alex618 阅读(1089) 评论(0) 推荐(0) 编辑