Thursday, July 29, 2010

Suspected of extortion Donews producer Liu Ren denies allegations



Thousand Oaks Internet Technology Development Co., Ltd. Vice President Liu Ren and his two subordinates were charged to remove the "360 security guards," the negative article in the grounds of the software, to obtain a copy of the software company of 230,000 yuan (November 20 last year this newspaper has report). Yesterday, Liu Ren and other three persons were arrested for extortion in the West Side Court for trial, denied the allegations in court Liu Ren.

The prosecution alleges that in July last year, has managed Donews, flapping the site cat Liu Ren Xu instigate new things staff, friends, tour the Central and others published on the Internet and reproduced on three international unlimited Technology Co., Ltd. Beijing Development "360 security guards, "the negative news software and on the company's chairman and negative individuals, the latter to remove the grounds of negative news related to the three international companies for 230,000 yuan.

September 19 last year, three international manager arranged to provide something to the new account Xu import 50 thousand yuan. Afternoon of October 12 that year, Liu Ren and others in Haidian again within a restaurant manager to three international cash received 80,000 yuan, and arrested by a police officer on the spot.

The court, the first interrogation of Liu Ren refute the charges, said he has never threatened the three international companies, has not requested money.

Liu Ren said that this originated from the Rising and the "360 security guards" in a war of words, he was just so central to the tour, "360" technical analysis can not be made of special anti-virus sent to the Internet. "I think this is normal news reports, many sites are reporting on this matter at that time." Ren Liu said in court, and he never talked to three international companies money, Xu thing was the total with the three international companies managers on public relations into a 23-million agreement to help the company build brand image, they will no longer publish the company's negative news.

However, Liu Ren's the excuse did not receive the recognition of two co-defendants. Xu pleaded guilty in court matters and tour central, and that released "360" Liu Ren negative messages are directed to. According to Xu something that made complete negative news, the three international companies to be willing to be deleted. "I Zuobuliaozhu Liu Ren had to ask for instructions. Liu Ren Let me be 300 000." Xu said the new matter, and interviewed the manager of three international companies Liu ligament is a go.

The case is not handed down in court.







Recommended links:



convert flv to Mov



Comparison Graphic Editors



converter mp4 TO avi



JSP page TRANSLATION of the principle of



Photoshop retouching images (9) to remove THE object



Dealers also Need to plan



Proper way to make money: to be a know how to "lose money," the dealer



.vob file



J2SE 1.5 version of the new features list



FU Chong: the general trend of those who know great things



New Vertical Market Apps



My favorite Trace And Ping Tools



Charles Zhang: Sohu is looking for the next opponent



matroska file



comments NEWS Servers



Monday, July 26, 2010

JSP variable in the scope of the specification



JavaServer Pages (JSP) and JSP Standard Tag Library specification (JSTL) to Web developers to provide many useful tags (also known as operations). In addition, JSP 2.0 also provides two API, which is the standard API and simple tags tags API, used to build custom tags / operation. Inherited from the previous API JSP 1.x, and due to historical reasons, the use by the JSTL. (Due to the development of JSTL 1.0 in JSP 2.0 before, so the new API does not include JSTL 1.1.) Moreover, JSTL does not use JSP fragment and dynamic properties of the new features such as JSP. This article uses the JSP 2.0 API and features of the new build custom tag extensions JSTL. This article provides an overview of API and demonstrates how to develop

鈼?Export variable tag

鈼?conditions of tags

鈼?iteration mark

鈼?dynamic properties of the tag

鈼?Coordination tag

Simple tag API Overview

In JSP pages using custom tags, the application server JSP container will convert the call ... as tag processing methods like Java code. Therefore, if you want to develop custom tag, you must provide a tag handler, such standards must be marked using JSP 1.x API or the JSP 2.0 simple tag API. Compare these two API, will find the new API easier to use. Only a simple tag API Interface (javax.servlet.jsp.tagext.SimpleTag), which defines the method of dealing with custom tags. Usually from the JSP container automatically generated from the JSP page in the Java Servlet to call these methods.

javax.servlet.jsp.tagext.SimpleTagSupport class implements SimpleTag interface, so when the mark when dealing with only the preparation of an Extended SimpleTagSupport doTag () method can be. The following steps describe how to develop a simple tag handler class:

Step 1: Design custom tag

First, you must choose a name tag and set its properties. Then, create a tag library descriptor (TLD) file (using the JSP specification defines the XML format) to inform the JSP container how to handle and verify the custom tag. Text provides a sample TLD file called util.tld.

Step 2: Create tag handling class

Must provide an interface for achieve SimpleTag Java classes. The easiest way is to extend SimpleTagSupport or one of its subclasses. In this article VarTagSupport, IfTag and WhileTag class for extending SimpleTagSupport. Examples of other tag handler extension VarTagSupport.

If you want to use is not specified in the TLD file attributes, then the tag handler must implement the javax.servlet.jsp.tagext.DynamicAttributes interface (such as "dynamic attributes of the tag" section describes the MapTag example below).

Step 3: Initialize tag handle class instance

Each tag handler class must contain a public no arguments constructor for placing the initialization code. In this article address some of the tag type (EvalTag, ListTag and MapTag) contains a public constructor without parameters, it uses the default values instance variables initialized. Other (IfTag, WhileTag and ItemTag) no constructor. Please note, Java compiler in the class does not contain any constructors to automatically generate a public constructor without parameters, this function does not do anything.

Step 4: Method of providing property

JSP page tag attribute values through the setAttribute () method is passed to the tag handler. For example, this article includes four tag attributes: var, scope, expr and type. EvalTag handling class implements setExpr () and setType () method, inherited from the VarTagSupport setVar () and setScope ().

Dynamic properties of interfaces defined by DynamicAttributes setDynamicAttribute () method of delivery.

Step 5: Implement doTag () method

The method used to implement custom tag logic. doTag () method by the JSP container, after following all the property set method call. Here you can use getJspContext () to get a javax.servlet.jsp.JspContext object to access the JSP environment. Can call getJspBody (), which returns javax.servlet.jsp.tagext.JspFragment instance, the instance that is located in the main body and between the JSP. If you work together to develop the tags, such as and (the last part of this article will be introducing its), you can also use the getParent () and findAncestorWithClass () method.

Step 6: Test the custom tag

JSP pages using custom tags to use the tag directive to import the tag library. When the custom tag in JSP page, when, JSP container generates the class instance to create tag handling, call the property method and call doTag () method code. Therefore, the use of JSP custom tag implementation of the page call tag will handle class methods.

Limitations and workarounds

To simplify the tag processing API, JSP 2.0 adopted a limit: If the custom tag processing class is based on the simple tag API, then the page author and shall not be used between the JSP 1.x statement (), JSP 1.x expression ( ) and scriptlet (). In most cases, you can Java code in JSP page move to the tag handler class, or in the JSP 2.0 expression (${...})( in a custom tag can be used in the main body) to use JSTL. Please note, JSP 2.0 allows you to standards-based API for custom tag to use the body tag scriptlet. However, because the script does not use JSP pages easier to maintain, it is best to avoid the use of Java in the Web page code.

My previous Oracle Technology Network (OTN) article, "Using JSP 2.0 EL API" describes a simple tag API, and provides another limit workaround. JspContext class is not available on the JSP implicit objects (such as application, session, request and response) of the visit. Most application servers (including Oracle Application Server Containers for J2EE (OC4J) 10g) allows to convert the JSP PageContext context

Tag handler does not apply to the use println () statement generates a large number of reusable HTML code. JSP 2.0 this work provides a better way. JSP tag files to use the so-called by the JSP container syntax is automatically converted to a simple tag on the tag handler API. Another one of my OTN article "Creating JSP 2.0 tag files", introduced new features to this JSP.

Export variable tag

Many JSTL tags to achieve a logical and export JSP variable to report the results. For example, contains a var attribute must specify the SQL result set to save the JSP variable name. var property on the other JSTL tags (such as and) is optional. If the var attribute does not exist, then these tags will output their results. Var properties all contain the tags also contain a scope attribute that can be used to indicate the following JSP variable scope: page, request, session or application.

VarTagSupport class (which is an example of this development) Extension SimpleTagSupport var and scope attributes for the provision of setting method. VarTagSupport contains export JSP variables, access to the main content and practical method of output, rather than to achieve doTag () method. These methods from the sub-class VarTagSupport doTag () to use. This article includes four tag for the expansion VarTagSupport handling class (EvalTag, MapTag, ListTag and ItemTag).

Please note, JSP variable in JSTL specification called the scope of variables in the JSP specification, called the scope of named variables or attributes. These variables JspContext class by setAttribute () method to create / export. You can use the JSP page $ (varName), and the use of Java code JspContext the getAttribute () or findAttribute () method to obtain their values. Do not confuse the JSP tag variables and attributes.







相关链接:



Mito Xiu a plus for the perfect



F4v to mov



converter mp4 to avi



Religion Storage



New worm VBS / VBSWG.an @ MM small files



reviews Seasonal - Screen SAVERS



Ramada Pearl HOTEL



Audio file converter



Chunlan: I do TOM Online in transition



Multimedia effect is good, but not indiscriminate



To-day thinking of a fulcrum, it will HOLD up the entire dagali



Mp4 Converter Free Download



Comment Games Arcade



Got hit by Baidu PPC



[Aion] Korean clothing and EQUIPMENT leveling frenzy 1.2 perfect



Casino And Gambling Report



Wednesday, July 21, 2010

Assembly instructions and the machine code of each conversion



Machine language to understand what we just focus on several concepts:

1. Machine-language instructions with opcode (OP) and the address code of two parts

|_____________ OP_______________ | __d__ | __w__ |

|_____________ OP_______________ | __s__ | __w__ | <- This format is used for immediate addressing mode


In most operating code, often used to indicate certain information in certain places:
Figure on the structure in the: w = 1 when word operation
w = 0 bytes to operate when

d values in the two-operand instruction to be effective
When d = 1 when and only for the purpose of a register operand
d = 0 from time to time and only one register for the source operands

s = 1 8-bit number immediately, but requires extended to 16 digits
s = 0 age when the operation instruction for byte / a 16-bit immediate

As the assembly instruction format of many, here I introduce some basic information, if necessary, the reader can download / access to 80x86 assembly provided OPCODES small station http://www.x86asm.com manual inspection.

2. Addressing modes of machine language, said:

| Mod | reg | r / m |
|_____|_____|_____|_____|_____|_____|_____|

reg said register means, the number does not include an immediate two-operand instructions circumstances, to require one operand in the register, the register specified by the reg field and with the opcode byte of the w phase composition determined register

mod field and r / m (register / memory) combined with field operations to determine the number of addressing another now that you download the 80x86 assembly small station (http://www.x86asm.com) OPCODES manual provided the it?
Download Well, please open the inside after decompression: opcodes.html file, and then inside the familiar form:

Now familiar with the simple:
______________________________________________________________________________
Table 1 rrr: W = 0: W = 1: reg32

000: AL: AX: EAX

001: CL: CX: ECX

010: DL: DX: EDX

011: BL: BX: EBX

100: AH: SP: ESP

101: CH: BP: EBP

110: DH: SI: ESI

111: BH: DI: EDI
______________________________________________________________________________
Table 2 rrr: Index Register
000: EAX

001: ECX

010: EDX

011: EBX

100: No Index

101: EBP

110: ESI

111: EDI
______________________________________________________________________________
Table 3 mmm: Function 11
w = 1
000: DS: [BX + SI]

001: DS: [BX + DI]

010: SS: [BP + SI]

011: SS: [BP + DI] BX

100: DS: [SI]

101: DS: [DI]

110: SS: [BP]

111: DS: [BX]
______________________________________________________________________________
Table 4
oo: Function

00: If mmm = 110, then a displacement follows the operation; otherwise, no displacement is used

01: An 8-bit signed displacement follows the opcode

10: A 16-bit signed displacement follows the opcode

11: mmm specifies a register, instead of an addressing mode
______________________________________________________________________________
The above table, you see see? Now I teach you how to use this form to the translation of machine code assembly instructions

3. Instruction format Introduction

8086 16-bit instruction format used:

________ _____________ ________ ________
| Opcode | + | mod-reg-r / m | + | displacement | + | immediate |
1 to 2 byte 0 byte 1 byte 0 to 2 0 to 2 bytes


OK! These are the basics, let's practice it:

---------------------------------------
Question:

MOV AX, 1234H corresponding machine code is: B83412

MOV EBX, 0 corresponds to the machine code is: 66BB00000000

MOV CL, 55H corresponding machine code is: B155

MOV AX, BX corresponding machine code is: 8BC3


I ask, machine code data format? Like machine instruction + operand (high stored in the address high, low stored in the address low), but in front of MOV AX, how to become a B8, do not understand this, Please advise.

PS: The above title is a users question, now I come to practice again to you to see.
---------------------------------------

Directive 1 -> MOV AX, 1234H corresponding machine code is: B83412

Solution: check -> This is the 8086 compilation of 16-bit assembly instruction format, and is the immediate addressing mode
Look-up table -> Open opcodes.html file, find the heading "Main Instructions", click the "M" letter, then the corresponding view "MOV Reg, Imm" format "OpCode" item as: 1011wrrr
Then judge -> As the register is AX, the number now is 1234H, is clearly "on the word action", so w = 1
In view of the article above "Table 1", corresponding to a value of 000 found rrr
Combined Results -> w = 1
rrr = 000
1011wrrr = 1011 1000B -> B8H
According to "3. Instruction format profile" -> B8H + | immediate (low in the former high in the post) | = B83412H

PS: "+" sign is not a "plus"

Well, the first question has been completed solution, and machine code for the B83412H

---------------------------------------

Instruction 4 -> MOV AX, BX corresponding machine code is: 8BC3

Solution: check -> This is the 8086 compilation of 16-bit assembly instruction format, and is a register addressing mode
Look-up table -> Open opcodes.html file, find the heading "Main Instructions", click the "M

"Letter, then the corresponding view" MOV Reg, Reg "format" OpCode "item as: 1000101woorrrmmm
Then judge -> As the registers are AX, BX is obviously "on the word action", so w = 1
In view of the article above, "Table 4", corresponding to oo = 11 because it is found in register addressing mode
In view of the article above "Table 1", corresponding to a value of 000 found rrr, because when the two operating

Incline is register, then the general purpose of the operands should prevail
In view of the article above "Table 3", corresponding to a value of 011 found mmm, because when both operands are registers, then usually necessary to subject the source operand
Combined Results -> w = 1
oo = 11
rrr = 000
mmm = 011
1000101woorrrmmm = 1000 1011 1100 0011 B -> 8BC3H

Okay, second question has been completed solution, and machine code for the 8BC3H
---------------------------------------

Oh, yes it is very simple bar, with 80X86 OPCODES query table everything is so simple, if you have any questions, we all come here to ask!

Remaining:

Directive 2 -> MOV EBX, 0 corresponds to the machine code is: 66BB00000000

Directive 3 -> MOV CL, 55H corresponding machine code is: B155

Everyone to practice your hand, pay attention to instruction two need to use 32-bit instruction format, please refer to 80x86 assembly language books related to the machine language part, should be explained.

Solution orders 2, please wait, or we look, the solution posted for your reference Oh!







相关链接:



Silver DVD Editor



Guide Teaching And Training Tools



CaleSoft IPod Video Converter



Best Converters AND Optimizers



Bluesea DVD To WMV



mkv Converter free



Jiangmin Response To The Letter, Said Attorney Alibaba China Lagged Far Behind The Law



convert mp4 to 3gp free



Convert mkv



Movkit Video Pack



WorldCup PDA Converter



About PGP



rmvb