`
tsmood
  • 浏览: 43385 次
  • 性别: Icon_minigender_1
  • 来自: 上海
文章分类
社区版块
存档分类
最新评论

20130902 working note

阅读更多
#Nginx
Nginx (”engine x”) 是一个高性能的HTTP和反向代理服务器,也是一个IMAP/POP3/SMTP代理服务器。它是由程序设计师Igor Sysoev为俄罗斯访问量第二的Rambler.ru站点(Rambler是俄国大型的入口网站及搜寻引擎站点)开发的。Nginx特点是占有内存少,并发能力强,事实上Nginx的并发能力确实在同类型的网页服务器中表现较好。其后Igor将源代码以类BSD许可证的形式发布。
http://nginx.org

#BSD
BSD (Berkeley Software Distribution,伯克利软件套件)是Unix的衍生系统,在1977至1995年间由加州大学伯克利分校开发和发布的。历史上, BSD曾经被认为是UNIX的一支——”BSD UNIX”, 因为它和AT&T UNIX操作系统共享基础代码和设计。在20世纪80年代,衍生出了许多变形的UNIX授权软件。比较著名的如DEC的Ultrix及Sun公司的SunOS。1990年代,BSD很大程度上被System V4.x版以及OSF/1系统所取代,晚期BSD版本为几个开源软件开发提供了平台并且一直沿用至今。今天,“BSD”并不特指任何一个BSD衍生版本,而是类UNIX操作系统中的一个分支的总称。

#F5与NetScaler
F5 是基于Linux的,NetScaler 是基于BSD的。
F5 的四层走的是硬件芯片,七层走的是软件,NetScaler 全部走的是软件。
测试的性能也是F5比NetScaler强,在均不使用压缩的情况下,NetScaler比F5消耗更大的带宽。

#B2C
B2C是英文Business-to-Consumer(商家对客户)的缩写,而其中文简称为“商对客”。“商对客”是电子商务的一种模式,也就是通常说的商业零售,直接面向消费者销售产品和服务。这种形式的电子商务一般以网络零售业为主,主要借助于互联网开展在线销售活动。

#serialVersionUID作用:
序列化时为了保持版本的兼容性,即在版本升级时反序列化仍保持对象的唯一性。

在Eclipse中它替你生成一个,有两种生成方式:
一个是默认的1L,比如:private static final long serialVersionUID = 1L;
一个是根据类名、接口名、成员方法及属性等来生成一个64位的哈希字段,比如:private static final long serialVersionUID = -8940196742313994740L;

#Eclipse 快捷键
Alt+左右方向键
我们经常会遇到看代码时,层层跟踪,然后迷失在代码中的情况,这时只需要按”Alt+左方向键”就可以退回到上次阅读的位置,同理,按”Alt+右方向键”会前进到刚才退回的阅读位置,就像浏览器的前进和后退按钮一样。
导入包 Ctrl+Shift+O
文本编辑器 查找上一个 Ctrl+Shift+K
文本编辑器 查找下一个 Ctrl+K
跳到最后一次的编辑处 Ctrl+Q
Java编辑器 转至上一个成员 Ctrl+Shift+↑
Java编辑器 转至下一个成员 Ctrl+Shift+↓
文件切换 Ctrl+PgUp
编辑器切换窗口 Ctrl+E

#JTable多选后批量删除
int[] sRow = table.getSelectedRows();
for(int i = sRow.length - 1; i >= 0; i–) {
((DefaultTableModel)table.getModel()).removeRow(sRow[i]);
}

#JTable获取选中行某列值
int row = table.getSelectedRow();
String lotNo = table.getValueAt(row, 1).toString(); //选中行的第2列的值

#wget
wget -r http://address/directory
会按照递归的方法,下载服务器上所有的目录和文件;这个命令一定要小心使用,因为在下载的时候,被下载网站指向的所有地址同样会被下载,因此,如果这个网站引用了其他网站,那么被引用的网站也会被下载下来!基于这个原因,这个参数不常用可以用-l number参数来指定下载的层次。例如只下载两层,那么使用-l 2

#JIRA
JIRA是集项目计划、任务分配、需求管理、错误跟踪于一体的商业软件。JIRA创建的问题类型包括New Feature、Bug、Task和Improvement四种,还可以自己定义,所以它也一是过程管理系统。JIRA融合了项目管理、任务管理和缺陷管理,许多著名的开源项目都采用了JIRA。
JIRA 是目前比较流行的基于Java架构的管理系统,由于Atlassian公司对很多开源项目实行免费提供缺陷跟踪服务,因此在开源领域,其认知度比其他的产品要高得多,而且易用性也好一些。同时,开源则是其另一特色,在用户购买其软件的同时,也就将源代码也购置进来,方便做二次开发。
JIRA功能全面,界面友好,安装简单,配置灵活,权限管理以及可扩展性方面都十分出色。

#操作 jTable
int row = table.getSelectedRow();
if (row == -1) return;
//移到第一行:
((DefaultTableModel)table.getModel()).moveRow(row, row, 0);
//移到最后一行:
((DefaultTableModel)table.getModel()).moveRow(row, row, table.getRowCount()-1);
//移到上一行:
((DefaultTableModel)table.getModel()).moveRow(row, row, (row-1 < 0)?0:row-1);
//移到下一行:
((DefaultTableModel)table.getModel()).moveRow(row, row,
(row+1 >= table.getRowCount())?table.getRowCount()-1:row+1);

#遍历标题
for (int i = 0; i < table.getColumnCount(); i++) {
String titleName = table.getColumnName(i);
outputStreamWriter.write(titleName + “\t”);
}
outputStreamWriter.write(”\n”);

#遍历table中的数据
for(int i = 0; i < table.getRowCount(); i++){
outputStreamWriter.write(distributionItem.getDistNo() + “\t”);
outputStreamWriter.write(table.getValueAt(i,0) + “\t”);
outputStreamWriter.write(table.getValueAt(i,1) + “\t”);
outputStreamWriter.write(table.getValueAt(i,2) != null?table.getValueAt(i,2) + “\t”:”\t”);
outputStreamWriter.write(table.getValueAt(i,3) != null?table.getValueAt(i,3) + “\t”:”\t”);
outputStreamWriter.write(”\n”);
}

#iReport 分组打印
<group  name=”DistNo” >
<groupExpression><![CDATA[$F{distNo}]]></groupExpression>
<groupHeader>
<band height=”71″  isSplitAllowed=”true” >
标题栏
</band>
</groupHeader>
<groupFooter>
<band height=”0″  isSplitAllowed=”true” >
</band>
</groupFooter>
</group>
明细栏

#JTable 隐藏某列
public void hideColumn(int index) {
DefaultTableColumnModel dcm = (DefaultTableColumnModel)jTable1.getColumnModel();
dcm.getColumn(index).setMinWidth(0);
dcm.getColumn(index).setMaxWidth(0);
}

#JTable选中的对象加到List
List pblist = new ArrayList();
for (int i = 0; i < table.getRowCount(); i++) {
if((Boolean) model.getValueAt(i, 0)) {
pblist.add((PackingBox)model.getValueAt(i,7));
}}

#iReport 打印顺序
printOrder=”Horizontal” //水平打印
printOrder=”Vertical” //垂直打印

#iReport 打印方向
orientation=”Landscape” //横向打印
orientation=”Portrait” //纵向打印

#iReport 变量定义
参数定义:
<parameter name=”organization” isForPrompting=”false” class=”java.lang.String”/>
读取参数:
$P{organization}

域定义:
<field name=”receivableMoney” class=”java.lang.Double”>
<fieldDescription><![CDATA[receivableMoney]]></fieldDescription>
</field>
读取域:
$F{receivableMoney}

#最重要的 10 几个J2EE 最佳实践
http://www.ibm.com/developerworks/cn/websphere/techjournal/0405_brown/0405_brown.html
分享到:
评论

相关推荐

    LAPACK Working Note 41 Installation Guide for LAPACK

    这份LAPACK工作笔记编号41(LAPACK Working Note 41)是关于如何安装、测试以及计时LAPACK版本3.0的指南。该指南详细描述了安装过程,并且提供了Unix系统和非Unix系统版本的测试包的指令。工作笔记中还对测试程序和...

    working.sql

    `note` varchar(10) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`), UNIQUE KEY `tDate` (`date`) ) ENGINE=InnoDB AUTO_INCREMENT=724 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records ...

    SCME channel model

    Note that this SCM extension is not associated with the 3GPP working group. It was developed in Workpackage 5 (WP5) of the WINNER1 project [WIN] of the European Union’s 6th Framework Program. Also...

    2020届高三英语一轮复习精品资料:巩固提升TB3 Unit 3 The Million Pound Bank Note.doc

    3. **形容词辨析**:例3中用"hard-working"来形容哥哥工作勤奋,常工作到深夜。这提醒我们了解并正确使用形容词来描绘人物性格或状态的重要性。 4. **宾语从句**:例4中"what they needed most"是宾语从句,作为...

    ACM题目的C++/C代码程序

    Fortunately, Bill has a working stopwatch, so they can record their speed and the total time they have driven. Unfortunately, their record keeping strategy is a little odd, so they need help ...

    hd3000黑苹果驱动文件

    Note 1 : Resolution & refresh rate change perfectly work and glass menubar = 0 working your Intel HD 3000 & HD 4000 card. Note 2 : OS X Mavericks 10.9 (13A598) Edited, Tested & Uploaded by: ...

    Automate the Boring Stuff with Python 原版PDF by Sweigart

    roommate was working at a retail electronics store in the early 2000s. Occasionally, the store would receive a spreadsheet of thousands of product prices from its competitor. A team of three employees...

    微软内部资料-SQL性能优化2

    Note The pool is, in effect, a common area of memory shared by all processes. One of the most common uses of non-paged pool is the storage of object handles. For more information regarding ...

    Path Painter 1.0

    Whether you are making a road, a ramp, a path or a...NOTE: Path Painter does not create meshes, so if you are making rivers you would typically also use another tool as well to shade the river component.

    PegasusWindowsTools

    Note that this acts considerably different than Microsoft's nmake. 2. mu.exe - This is a utility build by the pegasus team to smooth out the differences between the different platforms with respect ...

    TX SDK 3.08.1.0

    Note that MT mode is still supported for Windows only. Reducing memory heap requirements Existing support for partial file loading and paging has been further developed and enhanced. For more details...

    relax源码(就是github上的)

    IMPORTANT NOTE: Relax isn't yet ready for production, stay tunned for releases, beta version will come soon Support our work and help us make this the best open source CMS, be our patreon! Relax is ...

    TWAIN Specification Version 2.3

    最新的 TWAIN 2.3 规范。...Additional tests for the TWAIN Self-Certification system, and a note that TWAIN Self-Certification applications can now be registered on the TWAIN Working Group website.

    The Runtime Transform Gizmos.rar

    Note: This plugin doesn't support SRP (Scriptable Render Pipeline) or URP (Universal Render Pipeline). Welcome to Runtime Transform Gizmos! RTG is a scripting API which allows you to easily ...

    [绝密文档] SAM注册表结构分析 Security Accounts Manager 解密 [免费版]

    Note that this is a partial update from the orginal version, there will be more additions, I just thought it was time to consolidate some stuff. This article has been written concisely and ...

    BrainTools

    An utility for working with Brainfuck and related languages. It can encode and decode programs in various formats. What works? EVERYTHING! You can run Brainfuck programs and encode/decode Brainfuck ...

    西电java作业

    : Get JDK 8 installed and working first. You have to use the class names specfied here, you can't make up your own names. Java class names are case sentitive. Note that by defining the class names, ...

    Inside Microsoft Dynamics(r) Ax 2012

    ISBN-13 书号 9780735667105 Author 作者 The Microsoft Dynamics AXTeam,Margaret Sherman ... Readers should have working knowledgeof SQL and OOP concepts to gain max benefit from this book.

    2020年节假日工作日可执行.sql文件

    day_time日期 day_week星期几 day_desc节假日描述 day_working0上班,1休息 lunar_note农历节假日描述

    google repo工具

    Note: "." is a useful shorthand for the project in the current working directory. status repo status [] Compares the working tree to the staging area (index) and the most recent commit on this ...

Global site tag (gtag.js) - Google Analytics