- 网络安全最新网络安全-SSRF漏洞原理、攻击与防御(1),2024年最新网络安全程序员架构之路该如何继续学习
2401_84265972
程序员网络安全学习面试
如何自学黑客&网络安全黑客零基础入门学习路线&规划初级黑客1、网络安全理论知识(2天)①了解行业相关背景,前景,确定发展方向。②学习网络安全相关法律法规。③网络安全运营的概念。④等保简介、等保规定、流程和规范。(非常重要)2、渗透测试基础(一周)①渗透测试的流程、分类、标准②信息收集技术:主动/被动信息搜集、Nmap工具、GoogleHacking③漏洞扫描、漏洞利用、原理,利用方法、工具(MSF
- Winserver上如何配置和开启NTP客户端进行时间同步
霸道流氓气质
IDE问题解决ntp
场景Winserver2012服务器,需要与其它服务器保持时间一致。已知NTP服务器的ip,在winserver服务器上如何进行配置和开启。注:博客:霸道流氓气质_C#,架构之路,SpringBoot-CSDN博客实现1、运行-输入gpedit.msc打开组策略管理器2、找到计算机配置-管理模板-系统-Windows时间服务-时间提供程序双击配置WindowsNTP客户端配置以下内容点击已启用配置
- [架构之路-276]:程序员们不喜欢关闭电脑的常见原因
文火冰糖的硅基工坊
架构之路架构软件工程
目录长时间占用效率高:工作连贯性:不希望丢失工作状态:实时数据和监控:长时间的编译和测试过程:资源共享和远程访问:线程思维节省开机时间:长时间占用效率高:电脑是程序员的主要工作工具,关闭电脑意味着他们无法立即开始工作。由于启动电脑需要时间,重新打开所有工作应用程序和开发环境也需要一定的时间,因此程序员可能倾向于让电脑持续运行,以保持高效率工作。工作连贯性:关闭电脑会中断当前的工作流程,程序员可能会
- [架构之路-275]:五张图向你展现软件开发不仅仅是编码,而是一个庞大的系统工程
文火冰糖的硅基工坊
架构之路架构软件工程
目录一、软件开发是组织架构的一部分,是为业务服务的二、软件开发是一个系统工程,需要组织各种组织内的资源三、目标软件是一个复杂的系统四、软件开发过程本身是一个系统工程五、目标软件的测试验证是一个系统工程一、软件开发是组织架构的一部分,是为业务服务的软件开发在一个组织架构中通常被视为一项提供业务服务的功能。组织架构定义了企业或组织中各个部门和职能之间的关系和责任。在这种架构中,软件开发部门通常负责根据
- iOS架构之路03 -- 静态库.a打包之包含资源文件
YanZi_33
上两篇文章分别介绍了静态库.a的手动打包与脚本化打包,并没有涉及到资源文件,一般静态库中肯定会包含资源文件的,资源文件通常包括图片,xib,json数据,plist数据等等,这些资源文件在静态库打包的时候会统一放在一个Bundle文件中,下面我们就来尝试涉及资源文件的静态库打包制作;在原来上一篇文章所建的工程基础上,进行如下操作:第一步:给静态库添加一个同工程名的Bundle添加名为MyCateg
- 前端架构之路(3) - 前端开发规范
senntyou
前端开发规范1.为什么需要“前端开发规范”规范不是强制性的,对代码的编写和程序的运行不会有致命的问题,但是没有规范会有一系列的问题,比如:缺乏规范,第一个问题就是团队编码风格不一,增加了成员之间代码的阅读成本,加大了团队协作成本和维护成本;随着团队人员的变化(多人开发一个应用,或者应用更换开发人员),如果缺乏规范,项目可能会变得一团糟,甚至失控;即便是个人开发,规范也是需要的,当把项目转给其他人的
- [架构之路-137]-《软考-系统架构设计师》-软件工程-7-详解UML视图中各种实体之间的关系
文火冰糖的硅基工坊
架构之路软件工程uml结构化设计架构系统架构
前言:在软件设计中,一个设计的基本原则就是:高内聚、低耦合。这句话的本质就是要降低模块与模块,实体与实体之间的关系,特别是相互之间的关系,尽可能把实体对外关系的数量和复杂度降低到最低。实体之间的关系是导致系统复杂系统的关键,本文就是要探讨面向对象中特种实体之间的各种关系。第1章什么是关系关系是指万事万物之间相互作用、相互影响的状态。人与人之间在活动过程中直接的心理上的关系或心理上的距离。UML是用
- [架构之路-130]-《软考-系统架构设计师》-数据库-2-数据库的事务性控制与数据
文火冰糖的硅基工坊
架构之路数据库架构数据库性能数据库事务控制
前言:第13章数据库第4节数据库的事务性控制4.1并发控制的基本概念在计算机科学,特别是程序设计、操作系统、多重处理和数据库等领域,并发控制是确保及时纠正由并发操作导致的错误的一种机制。并发控制的基本单位是事务。并发控制指的是当多个用户同时更新运行时,用于保护数据库完整性的各种技术。并发机制不正确可能导致脏读、幻读和不可重复读等此类问题。并发控制的目的是保证一个用户的工作不会对另一个用户的工作产生
- 从研发转架构之路
架构未来
架构设计架构
从研发转向系统架构设计是一个逐步深入的过程,涉及到对系统的全局理解和多方面技能的提升。以下是一些建议,可以帮助你从研发角色过渡到系统架构设计的领域。1.扩展技术视野学习架构原理:了解常见的架构模式(如微服务、服务导向架构、事件驱动架构等)和设计原则(如SOLID、DRY、KISS等)。掌握系统基础:熟悉操作系统、网络协议、数据库原理等基础知识。了解业务领域:深入理解业务需求、业务流程和业务模型。2
- [架构之路-255]:目标系统 - 设计方法 - 软件工程 - 软件设计 - 架构设计 - 软件架构风格:串行-数据流风格、同步调用返回风格、并行异步分发与接收风格、虚拟机风格、数据仓库风格
文火冰糖的硅基工坊
架构之路架构软件工程风格
目录前言:一、建筑风格1.1什么是建筑风格1.2常见的建筑风格1.3如何区分不同的建筑风格二、软件架构风格概述2.1什么是软件架构风格2.2如何区分不同的软件架构风格2.3软件架构风格的发展阶段2.4软件架构风格与软件架构的区别2.5常见的软件架构风格的种类1.8复杂软件系统可以组合多种架构风格二、常见的软件架构风格详解2.1A-串行-数据流风格:适合数据面业务处理(数据面)(1)A-串行-数据流
- [架构之路-22]:目标系统 - 系统软件 - 汇编语言的结构与X86指令系统以及CPU的工作原理、函数调用与堆栈操作
文火冰糖的硅基工坊
架构之路架构程序编程语言汇编语言
目录前言:第1章结构化程序与分层编程系统1.1程序的经典框架:算法+数据结构1.2程序的结构化框架1.3程序的层次模型1.4程序设计的层次模型第2章汇编语言概述2.1指令系统编程的困境2.2什么是汇编语言2.3编程语言的本质2.4汇编语言的本质第3章X86汇编程序的结构3.1概述3.2定义代码段:code标志3.2定义数据段:data标志3.3定义堆栈段:stack标志3.4定义程序的入口:sta
- [架构之路-17]:目标系统 - 硬件平台 - ARM CPU架构与系列选型
文火冰糖的硅基工坊
架构之路arm嵌入式硬件架构原理
目录第1章ARM概述1.1ARM的过去1.2ARM内核架构版本与ARMCPU家族的对应关系1.3ARMCPU家族系列1.4ARMcortex系列第2章ARM芯片系统设计2.1ARMSOCCPU总体架构2.2ARMCPU内部互联总线AMBA2.3调试工具第3章ARMCPU芯片的内部架构3.1CPU内部结构与编程模式3.2指令集第1章ARM概述1.1ARM的过去1978年12月5日,物理学家赫尔曼·豪
- [架构之路-120]-《软考-系统架构设计师》-计算机体系结构 -2- 一文了解ARM SOC体系结构原理(CPU工作原理、指令、内存、中断、堆栈、IO、初始化)
文火冰糖的硅基工坊
架构之路架构中断堆栈指令CPU
知识准备:(890条消息)[架构之路-17]:目标系统-硬件平台-ARMCPU架构与系列选型_arm硬件架构_文火冰糖的硅基工坊的博客-CSDN博客第9章计算机体系结构第1节ARMSOC芯片体系结构1.1ARM家族1.2SOC芯片总体架构ARMCore内核系统(取指令、解释指令、执行指令)内存控制子系统(内存)外设控制器子系统(IO)中断控制子系统(中断)系统控制子系统:电源、时钟、复位、启动该架
- [架构之路-245]:目标系统 - 设计方法 - 软件工程 - 软件开发模型(流程):瀑布模型、V模型、原型模型、增量模型、迭代模型、螺旋模型、敏捷模型、DevOps、AI辅助、逆向工程、净室工程
文火冰糖的硅基工坊
架构之路架构软件工程IT管理devops运维
目录前言:一、软件开发模型概览1.1概述1.2软件开发方法与软件开发模型的区别二、软件开发模型详解2.1瀑布模型:串行线性开发2.2V模型:测试驱动开发(需求明确、提前测试、验证)2.3原型模型(PrototypeModel):向用户提前展示2.4增量模型:按功能分块开发(不改变初始需求)2.5迭代模型:按时间分段2.6螺旋模型:带风险分析的迭代模型2.7统一模型RUL2.8敏捷模型:需求不确定、
- [架构之路-267]:Windows64虚拟内存对应用程序性能实时性能的影响
文火冰糖的硅基工坊
架构之路IT架构软件内存管理虚拟内存
目录一、Windows虚拟内存概述1.1什么是Windows虚拟虚拟内存管理1.2虚拟内存的好处与优点1.3虚拟内存的不足与缺点1.4什么时候需要Windows虚拟内存管理二、Windows虚拟内存管理的原理2.1虚拟内存的工作原理的一般步骤2.2Windows虚拟内存管理能禁用吗?如何禁用一、Windows虚拟内存概述1.1什么是Windows虚拟虚拟内存管理Windows虚拟内存是一种Wind
- [架构之路-236]:目标系统 - 纵向分层 - 数据库 - 数据库系统基础与概述:三阶段模型(概念模型、逻辑模型、物理模型)、三级模式结构(外模式、模式、内模式)
文火冰糖的硅基工坊
架构之路数据库oracle架构网络文件系统
目录一、数据库设计阶段性模型:概念模型、逻辑模型、物理模型1.1概念模型(ConceptualModel)-业务模型:实体:entity属性或特征:key键值/码:域(Domain):实体类型:entitytype实体集合:联系:1.2逻辑模型(LogicalModel)-内存模型(最核心):1.3物理模型(PhysicalModel)-磁盘模型二、三级模式结构(外模式、模式、内模式)2.1三种模
- [架构之路-95]:《软件架构设计:程序员向架构师转型必备》-5-需求分析之需求列表(功能需求、质量需求、约束条件)
文火冰糖的硅基工坊
架构之路需求分析架构
前言:在愿景分析+商业分析之后,就是用户需求开发,然后就是需求分析。在业务需求分析领域,主要完成三个输出:需求列表:功能需求、质量需求、约束条件=》第5章用例图=》第6章领域建模=》第7章上述工作,通常是由需求分析工程师或系统工程师SE完成,也可以由架构师完成。第5章需求分析架构师要想知道需求是如何影响架构,首先要懂得如何进行需求分析,或者说,需要懂得需求分析的主要行为动作与主要的输出结果,这些输
- [架构之路-192]-《软考-系统分析师》-8-软件工程 - 14种UML图快速概览
文火冰糖的硅基工坊
架构之路uml系统分析师架构计算机网络
目录第1章UML概述1.1什么是UML?1.2为什么要用UML?1.3UML图有哪些?1.4UML图概览第2章UML图示2.1静态图、结构图-什么是类图?泛化(Generalization)实现(Realization)关联(Association)聚合(Aggregation)组合(Composition)依赖(Dependency)2.2静态图、结构图-什么是组件图?2.3静态图、结构图-什么
- [架构之路-123]-《软考-系统架构设计师》-操作系统-2-操作系统原理 - 存储层次结构与存储管理(寄存器、Cache、MMU、内存、外存、页表)
文火冰糖的硅基工坊
架构之路架构操作系统进程线程
目录前言:第11章操作系统第4节存储管理:寄存器+cache+内存+外存4.1计算机存储层次模型4.1.1层次模型的内容4.1.2通用的思想和思路4.1.3内存抽象4.1.3多核并行架构4.2位于CPU内部的寄存器4.3位于SOC芯片内部的Cache(纯硬件、解决速率不匹配问题)4.3.1概述4.3.2为什么需要cache4.3.3多级cache存储结构4.3.4多级cache之间的配合工作4.3
- [架构之路-90]:《软件架构设计:程序员向架构师转型必备》-0-总结
文火冰糖的硅基工坊
架构之路架构架构师草图
前言软件行业技术开发从业人员众多,但具备若干年开发经验的普通的开发人员往往面临个人发展的瓶颈,即如何从普通开发人员转型成高层次的系统架构师和技术管理人员。想成为一名架构师,应当具备全面的知识体系?需要进行系统的学习和实践?很多开发人员有往架构师转型的强烈意愿,但苦于找不到好的方法和路径。今天分享的这份资料主要包含:软件开发普通程序员向系统架构师转型的一些思路、方法和工程实践。也包括转型过程中意识形
- 前端架构之路(8) - 单页面应用(SPA)、按需加载
senntyou
单页面应用(SPA)、按需加载1.多页面应用传统多页面是由后端控制一个url对应一个html文件,页面之间的跳转需要根据后端给出的url跳转到新的html上。比如:http://www.example.com/page1->path/to/page1.htmlhttp://www.example.com/page2->path/to/page2.htmlhttp://www.example.com
- [架构之路-264]:个性特征 - 到底什么才是工程师文化?
文火冰糖的硅基工坊
架构之路架构软件工程结构化
目录前言:一、三种类型的商业公司与生存法则(1)运营或销售驱动型公司(2)产品驱动型公司(3)技术驱动型公司二、工程师文化特征解读1三、工程师文化特征解读2(1)创新(2)自由(3)效率四、工程师文化如何落地?4.1主要考虑4.2其他手段“政治”手段“经济”手段五、工程师文化的组织,管理者的角色定位5.1工程师文化的组织,管理者的作用5.2工程师文化与传统企业文化在管理上的区别六、谨防工程师文化被
- [架构之路-105]:《软件架构设计:程序员向架构师转型必备》-15-模块划分的综合技术与4步骤法
文火冰糖的硅基工坊
架构之路架构需求分析领域模型系统架构用例图
前言:系统内部架构设计关注的重点:细粒度模块的划分,即静态逻辑架构,并不关心架构设计中4+1视图的所有的视图,也不关心模块之间的时序关系!!!因此,用例图并不是模块划分的输入依据,用例中的时序关系图用来验证模块划分是否充分与合理!!!15.模块划分的综合技术与4步骤法本章把前面切分模块的各种方法都综合了起来,模块划分的综合技术与4步骤法。15.1像专家一样思考15.1.1自顶向下vs.自底向上,垂
- [架构之路-104]:《软件架构设计:程序员向架构师转型必备》-14-根据需求用例驱动进行软件架构的模块划分过程
文火冰糖的硅基工坊
架构之路架构用例驱动架构模块划分用例图领域模型
14用例驱动的模块划分过程描述用例的两种方式:图形描述:用例序列图,直观,但修改不方便,版本控制不方便。文本描述:用例规约描述,不直观,但修改方便,版本控制方便。14.1描述需求的序列图vs.描述设计的序列图说明:时序图是软件系统动态交互最好的方式。备注:描述需求的序列图,是站在用户的角度描述的系统与外部的交互,是需求,也是设计。14.1.1描述“内外对话”vs.描述“内部协作”序列图既可以描述需
- [架构之路-265]:目标系统 - 设计方法 - 软件工程 - 软件设计 - 如何做好详细设计
文火冰糖的硅基工坊
架构软件工程结构化详细设计
目录一、详细设计概述1.1什么是详细设计1.2软件概要设计、软件架构、软件详细设计比较二、软件详细设计说明书2.1概述2.2撰写步骤2.3主要内容三、详细设计详解3.1引言3.2系统架构设计3.3模块设计3.3.1模块描述3.3.2模块间接口设计与UML图3.3.3算法与执行流程3.3.4异常处理3.3.5数据结构设计3.3.5.1数据结构类型3.3.5.2数据结构组成3.3.5.3数据结构操作3
- [架构之路-262]:目标系统 - 设计方法 - 软件工程 - 软件设计 - 架构设计 - Android等前端页面程序开发模式:MVC、MVP、MVVM的演进与应用场景
文火冰糖的硅基工坊
架构之路架构软件工程结构化android微服务
目录前言:App程序架构设计一、MVC、MVP、MVVM比较1.1概述1.2发展路径1.3比较二、MVC2.1概述2.2MVC架构的示例2.3经典的使用MVC架构的案例:三、MVP3.1MVP概述3.2MVP案例四、MVVM4.1概述4.2MVVM架构案例它山之石:前言:App程序架构设计业务模板:即应用程序。一、MVC、MVP、MVVM比较1.1概述MVC、MVP和MVVM是一些常见的软件架构模
- [架构之路-263]:目标系统 - 设计方法 - 软件工程 - 软件设计 - 概要设计 - 综述、如何做概要设计、概要设计的内容
文火冰糖的硅基工坊
架构之路软件工程架构结构化微服务
目录一、概要设计综述1.1什么是概要设计1.2概要设计的目标1.3软件概要设计与软件架构设计的比较1.4软件概要设计、软件架构、软件详细设计比较二、如何做好概要设计2.1概要设计的入手点2.2概要设计的步骤2.3进行概要设计的注意事项三、软件概要设计的内容3.1概要设计的内容概述3.2概要设计实例3.3软件概要设计文档的格式3.4软件概要设计所需要图形一、概要设计综述1.1什么是概要设计概要设计(
- Postgresql中PL/pgSQL的游标、自定义函数、存储过程的使用
霸道流氓气质
数据库postgresql数据库
场景Postgresql中PL/pgSQL代码块的语法与使用-声明与赋值、IF语句、CASE语句、循环语句:Postgresql中PL/pgSQL代码块的语法与使用-声明与赋值、IF语句、CASE语句、循环语句-CSDN博客上面讲了基本语法,下面记录游标、自定义函数、存储过程的使用。注:博客:霸道流氓气质_C#,架构之路,SpringBoot-CSDN博客实现1、PL/pgSQL游标PL/pgSQ
- Springboot+FastJson实现解析第三方http接口json数据为实体类(时间格式化转换、字段包含中文)
霸道流氓气质
SpringBootspringboothttpjson
场景若依前后端分离版手把手教你本地搭建环境并运行项目:若依前后端分离版手把手教你本地搭建环境并运行项目_前后端分离项目本地运行-CSDN博客在上面搭建SpringBoot项目的基础上,并且在项目中引入fastjson、hutool、lombok等所需依赖后。系统需要对接第三方http接口获取返回的数据,并将json数据解析为实体类进行后续的业务处理。注:博客:霸道流氓气质_C#,架构之路,Spri
- 分库分表?如何做到永不迁移数据和避免热点?
为爱放弃一切
老顾聊技术[架构之路](javascript:void(0);)4天前image一、前言中大型项目中,一旦遇到数据量比较大,小伙伴应该都知道就应该对数据进行拆分了。有垂直和水平两种。垂直拆分比较简单,也就是本来一个数据库,数据量大之后,从业务角度进行拆分多个库。如下图,独立的拆分出订单库和用户库。image水平拆分的概念,是同一个业务数据量大之后,进行水平拆分。image上图中订单数据达到了400
- LeetCode[Math] - #66 Plus One
Cwind
javaLeetCode题解AlgorithmMath
原题链接:#66 Plus One
要求:
给定一个用数字数组表示的非负整数,如num1 = {1, 2, 3, 9}, num2 = {9, 9}等,给这个数加上1。
注意:
1. 数字的较高位存在数组的头上,即num1表示数字1239
2. 每一位(数组中的每个元素)的取值范围为0~9
难度:简单
分析:
题目比较简单,只须从数组
- JQuery中$.ajax()方法参数详解
AILIKES
JavaScriptjsonpjqueryAjaxjson
url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。
type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和 delete也可以使用,但仅部分浏览器支持。
timeout: 要求为Number类型的参数,设置请求超时时间(毫秒)。此设置将覆盖$.ajaxSetup()方法的全局
- JConsole & JVisualVM远程监视Webphere服务器JVM
Kai_Ge
JVisualVMJConsoleWebphere
JConsole是JDK里自带的一个工具,可以监测Java程序运行时所有对象的申请、释放等动作,将内存管理的所有信息进行统计、分析、可视化。我们可以根据这些信息判断程序是否有内存泄漏问题。
使用JConsole工具来分析WAS的JVM问题,需要进行相关的配置。
首先我们看WAS服务器端的配置.
1、登录was控制台https://10.4.119.18
- 自定义annotation
120153216
annotation
Java annotation 自定义注释@interface的用法 一、什么是注释
说起注释,得先提一提什么是元数据(metadata)。所谓元数据就是数据的数据。也就是说,元数据是描述数据的。就象数据表中的字段一样,每个字段描述了这个字段下的数据的含义。而J2SE5.0中提供的注释就是java源代码的元数据,也就是说注释是描述java源
- CentOS 5/6.X 使用 EPEL YUM源
2002wmj
centos
CentOS 6.X 安装使用EPEL YUM源1. 查看操作系统版本[root@node1 ~]# uname -a Linux node1.test.com 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux [root@node1 ~]#
- 在SQLSERVER中查找缺失和无用的索引SQL
357029540
SQL Server
--缺失的索引
SELECT avg_total_user_cost * avg_user_impact * ( user_scans + user_seeks ) AS PossibleImprovement ,
last_user_seek ,
 
- Spring3 MVC 笔记(二) —json+rest优化
7454103
Spring3 MVC
接上次的 spring mvc 注解的一些详细信息!
其实也是一些个人的学习笔记 呵呵!
- 替换“\”的时候报错Unexpected internal error near index 1 \ ^
adminjun
java“\替换”
发现还是有些东西没有刻子脑子里,,过段时间就没什么概念了,所以贴出来...以免再忘...
在拆分字符串时遇到通过 \ 来拆分,可是用所以想通过转义 \\ 来拆分的时候会报异常
public class Main {
/*
- POJ 1035 Spell checker(哈希表)
aijuans
暴力求解--哈希表
/*
题意:输入字典,然后输入单词,判断字典中是否出现过该单词,或者是否进行删除、添加、替换操作,如果是,则输出对应的字典中的单词
要求按照输入时候的排名输出
题解:建立两个哈希表。一个存储字典和输入字典中单词的排名,一个进行最后输出的判重
*/
#include <iostream>
//#define
using namespace std;
const int HASH =
- 通过原型实现javascript Array的去重、最大值和最小值
ayaoxinchao
JavaScriptarrayprototype
用原型函数(prototype)可以定义一些很方便的自定义函数,实现各种自定义功能。本次主要是实现了Array的去重、获取最大值和最小值。
实现代码如下:
<script type="text/javascript">
Array.prototype.unique = function() {
var a = {};
var le
- UIWebView实现https双向认证请求
bewithme
UIWebViewhttpsObjective-C
什么是HTTPS双向认证我已在先前的博文 ASIHTTPRequest实现https双向认证请求
中有讲述,不理解的读者可以先复习一下。本文是用UIWebView来实现对需要客户端证书验证的服务请求,网上有些文章中有涉及到此内容,但都只言片语,没有讲完全,更没有完整的代码,让人困扰不已。但是此知
- NoSQL数据库之Redis数据库管理(Redis高级应用之事务处理、持久化操作、pub_sub、虚拟内存)
bijian1013
redis数据库NoSQL
3.事务处理
Redis对事务的支持目前不比较简单。Redis只能保证一个client发起的事务中的命令可以连续的执行,而中间不会插入其他client的命令。当一个client在一个连接中发出multi命令时,这个连接会进入一个事务上下文,该连接后续的命令不会立即执行,而是先放到一个队列中,当执行exec命令时,redis会顺序的执行队列中
- 各数据库分页sql备忘
bingyingao
oraclesql分页
ORACLE
下面这个效率很低
SELECT * FROM ( SELECT A.*, ROWNUM RN FROM (SELECT * FROM IPAY_RCD_FS_RETURN order by id desc) A ) WHERE RN <20;
下面这个效率很高
SELECT A.*, ROWNUM RN FROM (SELECT * FROM IPAY_RCD_
- 【Scala七】Scala核心一:函数
bit1129
scala
1. 如果函数体只有一行代码,则可以不用写{},比如
def print(x: Int) = println(x)
一行上的多条语句用分号隔开,则只有第一句属于方法体,例如
def printWithValue(x: Int) : String= println(x); "ABC"
上面的代码报错,因为,printWithValue的方法
- 了解GHC的factorial编译过程
bookjovi
haskell
GHC相对其他主流语言的编译器或解释器还是比较复杂的,一部分原因是haskell本身的设计就不易于实现compiler,如lazy特性,static typed,类型推导等。
关于GHC的内部实现有篇文章说的挺好,这里,文中在RTS一节中详细说了haskell的concurrent实现,里面提到了green thread,如果熟悉Go语言的话就会发现,ghc的concurrent实现和Go有点类
- Java-Collections Framework学习与总结-LinkedHashMap
BrokenDreams
LinkedHashMap
前面总结了java.util.HashMap,了解了其内部由散列表实现,每个桶内是一个单向链表。那有没有双向链表的实现呢?双向链表的实现会具备什么特性呢?来看一下HashMap的一个子类——java.util.LinkedHashMap。
- 读《研磨设计模式》-代码笔记-抽象工厂模式-Abstract Factory
bylijinnan
abstract
声明: 本文只为方便我个人查阅和理解,详细的分析以及源代码请移步 原作者的博客http://chjavach.iteye.com/
package design.pattern;
/*
* Abstract Factory Pattern
* 抽象工厂模式的目的是:
* 通过在抽象工厂里面定义一组产品接口,方便地切换“产品簇”
* 这些接口是相关或者相依赖的
- 压暗面部高光
cherishLC
PS
方法一、压暗高光&重新着色
当皮肤很油又使用闪光灯时,很容易在面部形成高光区域。
下面讲一下我今天处理高光区域的心得:
皮肤可以分为纹理和色彩两个属性。其中纹理主要由亮度通道(Lab模式的L通道)决定,色彩则由a、b通道确定。
处理思路为在保持高光区域纹理的情况下,对高光区域着色。具体步骤为:降低高光区域的整体的亮度,再进行着色。
如果想简化步骤,可以只进行着色(参看下面的步骤1
- Java VisualVM监控远程JVM
crabdave
visualvm
Java VisualVM监控远程JVM
JDK1.6开始自带的VisualVM就是不错的监控工具.
这个工具就在JAVA_HOME\bin\目录下的jvisualvm.exe, 双击这个文件就能看到界面
通过JMX连接远程机器, 需要经过下面的配置:
1. 修改远程机器JDK配置文件 (我这里远程机器是linux).
 
- Saiku去掉登录模块
daizj
saiku登录olapBI
1、修改applicationContext-saiku-webapp.xml
<security:intercept-url pattern="/rest/**" access="IS_AUTHENTICATED_ANONYMOUSLY" />
<security:intercept-url pattern=&qu
- 浅析 Flex中的Focus
dsjt
htmlFlexFlash
关键字:focus、 setFocus、 IFocusManager、KeyboardEvent
焦点、设置焦点、获得焦点、键盘事件
一、无焦点的困扰——组件监听不到键盘事件
原因:只有获得焦点的组件(确切说是InteractiveObject)才能监听到键盘事件的目标阶段;键盘事件(flash.events.KeyboardEvent)参与冒泡阶段,所以焦点组件的父项(以及它爸
- Yii全局函数使用
dcj3sjt126com
yii
由于YII致力于完美的整合第三方库,它并没有定义任何全局函数。yii中的每一个应用都需要全类别和对象范围。例如,Yii::app()->user;Yii::app()->params['name'];等等。我们可以自行设定全局函数,使得代码看起来更加简洁易用。(原文地址)
我们可以保存在globals.php在protected目录下。然后,在入口脚本index.php的,我们包括在
- 设计模式之单例模式二(解决无序写入的问题)
come_for_dream
单例模式volatile乱序执行双重检验锁
在上篇文章中我们使用了双重检验锁的方式避免懒汉式单例模式下由于多线程造成的实例被多次创建的问题,但是因为由于JVM为了使得处理器内部的运算单元能充分利用,处理器可能会对输入代码进行乱序执行(Out Of Order Execute)优化,处理器会在计算之后将乱序执行的结果进行重组,保证该
- 程序员从初级到高级的蜕变
gcq511120594
框架工作PHPandroidhtml5
软件开发是一个奇怪的行业,市场远远供不应求。这是一个已经存在多年的问题,而且随着时间的流逝,愈演愈烈。
我们严重缺乏能够满足需求的人才。这个行业相当年轻。大多数软件项目是失败的。几乎所有的项目都会超出预算。我们解决问题的最佳指导方针可以归结为——“用一些通用方法去解决问题,当然这些方法常常不管用,于是,唯一能做的就是不断地尝试,逐个看看是否奏效”。
现在我们把淫浸代码时间超过3年的开发人员称为
- Reverse Linked List
hcx2013
list
Reverse a singly linked list.
/**
* Definition for singly-linked list.
* public class ListNode {
* int val;
* ListNode next;
* ListNode(int x) { val = x; }
* }
*/
p
- Spring4.1新特性——数据库集成测试
jinnianshilongnian
spring 4.1
目录
Spring4.1新特性——综述
Spring4.1新特性——Spring核心部分及其他
Spring4.1新特性——Spring缓存框架增强
Spring4.1新特性——异步调用和事件机制的异常处理
Spring4.1新特性——数据库集成测试脚本初始化
Spring4.1新特性——Spring MVC增强
Spring4.1新特性——页面自动化测试框架Spring MVC T
- C# Ajax上传图片同时生成微缩图(附Demo)
liyonghui160com
1.Ajax无刷新上传图片,详情请阅我的这篇文章。(jquery + c# ashx)
2.C#位图处理 System.Drawing。
3.最新demo支持IE7,IE8,Fir
- Java list三种遍历方法性能比较
pda158
java
从c/c++语言转向java开发,学习java语言list遍历的三种方法,顺便测试各种遍历方法的性能,测试方法为在ArrayList中插入1千万条记录,然后遍历ArrayList,发现了一个奇怪的现象,测试代码例如以下:
package com.hisense.tiger.list;
import java.util.ArrayList;
import java.util.Iterator;
- 300个涵盖IT各方面的免费资源(上)——商业与市场篇
shoothao
seo商业与市场IT资源免费资源
A.网站模板+logo+服务器主机+发票生成
HTML5 UP:响应式的HTML5和CSS3网站模板。
Bootswatch:免费的Bootstrap主题。
Templated:收集了845个免费的CSS和HTML5网站模板。
Wordpress.org|Wordpress.com:可免费创建你的新网站。
Strikingly:关注领域中免费无限的移动优
- localStorage、sessionStorage
uule
localStorage
W3School 例子
HTML5 提供了两种在客户端存储数据的新方法:
localStorage - 没有时间限制的数据存储
sessionStorage - 针对一个 session 的数据存储
之前,这些都是由 cookie 完成的。但是 cookie 不适合大量数据的存储,因为它们由每个对服务器的请求来传递,这使得 cookie 速度很慢而且效率也不