Monday, October 18, 2010

DB2 basics



CREATE DATABASE command, DB2 creates a number of documents. These files include log files, configuration information, historical documents and three table spaces. The three table spaces are:

SYSCATSPACE: This is a store directory where DB2 system, DB2 system directory to track all objects associated with metadata.

TEMPSPACE1: DB2 to place the intermediate results of the temporary workspace.

USERSPACE1: By default all user objects (tables and indexes) is located where.

In cataloging the database on the client there are three ways:

Use discovery (discovery) of the automated configuration

Use Access Summary (access profile) automated configuration

Manual configuration

Configuring DB2 client to access remote DB2 database server and another is to use automation to access summary. Access summary contains the client for a DB2 server database cataloging the information needed.

And use the same found in the use of access to the outline, do not need to make DB2 client can connect to the DB2 server communications to provide any detailed information.

There are two access summary:

Server to access the summary is created from the DB2 server. They contain the DB2 server has been cataloging all the instances and databases.

Summary of client access from a client for another client to copy the database has been cataloged and / or client settings (DBM CFG and the CLI / ODBC).

Both outline can be exported from a DB2 system, then import to another DB2 system.







Recommended links:



Longhorn Beta1 only Compatible with two kinds of graphics chips



Resolving quot corrupt registry quot error



SAP And Sybase Hutch Alliance



Expert Audio Video Tools



Registry combat Collection - "OPERATION" Change Collection



Distributors to seize the initiative to prevent being cut off



DAT To 3GP



Computer Education Comparison



Sichuan Instrument flow meters: precision production of personalized quote



"Stubborn" Fujitsu began to Chinese Changing Faces



LiveMotion Font Production: Shadow Word



DivX To Zune



Seasonal - Screen Savers introduction



MTS to AVI



Eight Motivate The Staff More Dynamic Model [1]



Struts framework in the Session object to create AND control



Tuesday, October 12, 2010

Visual Basic to create "five star" level control





Figure 1 "five-star" level control

This control looks great and provides a good graphical way to view the grade, but according to editorial experience, I find it especially cool. When the mouse hover over the bar when, Windows Media Player highlights one of the stars to show you the current float of its value on the bar, thus providing a good graphical feedback. In a variety of Web sites (including Netflix and Amazon), you can find the same type of user interface, and I think in their own applications have this feature, so I decided to create my own control. I'll use Windows Forms controls that the user interface elements to simulate the same time try to make it custom with sufficient capacity to be used in various environments.

Getting Started

The first step is to create a new Class Library project to hold the controls and empty Windows application to a test project. Although the Windows Control Library project template appears to be more appropriate, and it is well to work, but by default, the project includes user controls (user controls 鈹?General for composite control contains one or more controls for Windows Forms control), and I need is an empty class file. Next, you must present a new empty class inherits from the System.Windows.Forms.Control, which simply add a single class declaration can be achieved:

Public Class Ratings
Inherits System.Windows.Forms.Control End Class

If you try to use only IntelliSense? Add Inherits statement, will encounter a small problem: use Class Library template to start your project will not add a reference to the System.Windows.Forms assembly, so you need to manually add. At this point, be the first to add a reference to an System.Drawing.dll, because the final drawing to use custom controls. From now on, I generally follow the following steps to carry out all of the control development:

1. To add custom drawing control standards constructor, set the control style of all the necessary controls in order to correct the drawing and smooth as possible.

Public Sub New ()
Me.SetStyle (ControlStyles.AllPaintingInWmPaint, True)
Me.SetStyle (ControlStyles.DoubleBuffer, True)
Me.SetStyle (ControlStyles.ResizeRedraw, True)
Me.SetStyle (ControlStyles.UserPaint, True)
...''Add any additional initialization code here
End Sub

2. Paper record configuration control behavior and appearance may need to list the public properties.

3. All these attributes add to the private member variable (I prefer to use Hungarian notation in front of each variable to add the prefix "m_" to represent the internal variables), and includes the appropriate default values, as shown below.

Private m_FilledImage As Image
Private m_EmptyImage As Image
Private m_HoverImage As Image
Private m_ImageCount As Integer = 5
Private m_TopMargin As Integer = 2
Private m_LeftMargin As Integer = 4
Private m_BottomMargin As Integer = 2
Private m_RightMargin As Integer = 4
Private m_ImageSpacing As Integer = 8
Private m_ImageToDraw As Integer = 1
Private m_SelectedColor As Color = Color.Empty
Private m_HoverColor As Color = Color.Empty
Private m_EmptyColor As Color = Color.Empty
Private m_OutlineColor As Color = Color.Empty

Private m_selectedItem As Integer = 3
Private m_hoverItem As Integer = 1
Private m_hovering As Boolean = False

Private ItemAreas () As Rectangle

4. The properties of these variables into the process, although most of the process is fairly simple (get value, set value), but some of the process will require some additional code, I will discuss later.

5. Began to design and custom graphics code.

6. Finally, add a new event, such as clicking a specific control process or the requirements of the specific event.

The default value of properties with a specific routine

I want some of my properties

鈹?handling those attributes of color

鈹?reflect the control of other properties of the default values (such as ForeColor) and to reflect the user's system color of other values. For example, let us use only one of them can produce color HoverColor to see the default value of different methods.

The first is obvious, just in the variable declaration (or constructor) to set default values:

Private m_HoverColor As Color = _
Color.FromKnownColor (KnownColor.Highlight)

In most cases, this can work well, but there are two problems. The first question is, if the user running the application to change their system colors, how to do? After you restart the program, the control will reflect the correct color, but was not. The second question is, if the user to programmatically set the color to the default colors, how to do? There is no practical way to clear the color settings and set it to the appropriate system color. Users will naturally be set correctly for the appropriate system color, but then will return to first question. Another method is to color changes in the user's system when the traps, and the corresponding changes to your property value:

Protected Overrides Sub OnSystemColorsChanged (_
ByVal e As System.EventArgs)
Me.HoverColor = Color.FromKnownColor (KnownColor.Highlight)
Me.Invalidate ()







相关链接:



Jinshan said the domestic A-share Listed denied rumors false



Best Install And Setup



Ridicule: the workplace, inoffensive "mantra"



FTP Clients Directory



"Mount & Blade" Combat experience



Management And Distribution Directory



OGM to AVI



Drastic clever second Control dealer



QTP Descriptive Language Experience



RM TO AVI



FileSystemObject Object Model



MPG to 3GP



fastest H.264/AVC to dat conversion



Review Access CONTROL



"Cottage" CAN be "regularized"?



Vigilance "Fantasy Westward Journey" Daohao Trojan Havoc



Monday, October 11, 2010

Cottage version of "Panda" continue "incense posing Kingsoft Internet Security



Panda burning incense on the virus with the virus was frozen and gradually away from the people's perspective, the online panda code of widespread than Panda burning incense in the covert, anti-killing ability, ability to infect, spread and strong Trojan Downloader many more Panda Internet open burning incense code may be used as some assignments to write viruses. On this basis, there Nosey recently wrote a new variant, the use of poison Pa Panda cottage version of LOGO for the icon.
The following is a detailed analysis of the virus:

1, the virus information

Virus Name: win32.bmw.j.75783

Virus body size: 74.0 KB (75,783 bytes)

Virus type: Panda burning incense varieties

Second, the virus acts

This is a variant of a panda burning incense, icons hegemony disguised as poison to confuse the user, it will download and execute other viruses.

1. The virus will delete the boot security software programs and services.

2. Every 1 second to add your own startup items, and documents show the registry keys hidden damage.

3. Every six seconds under each drive (A and B drive excluded), delete the autorun.inf where the file or folder, and create the autorun.inf and the corresponding. Exe file.

4. Every 6 seconds to stop part of the security software and services, remove the part of the security services and boot software since the launch of the project.

5. Every 10 seconds to close the following processes, and add the image taking, point ntsd-d



avp.exe rav.exe rsagent.exe ravmon.exe ravmond.exe
ravstub.exe ravtask.exe ccenter.exe 360tray.exe 360safe.exe
6. Every 30 minutes to download a Trojan http://www.xxxxxx08.com/down/down.txt.

7. Virus infection extension exe, pif, com, src file, the file itself attached to the head, and the extension htm, html, asp, php, jsp, aspx files to add a URL, Once the user opens the file, IE will continue to write in the background Click the URL to increase traffic purposes. And the web of loopholes, the new variant of the virus will be downloaded and run.

Infection exclude the following files in the folder



WINDOW Winnt winrar system32 Documents and Settings System Volume Information Recycled
Windows NT WindowsUpdate Windows Media Player Outlook Express Internet Explorer NetMeeting
Common Files ComPlus Applications Messenger InstallShield Installation Information MSN
Microsoft Frontpage Movie Maker MSN Gamin Zone
NTDETECT.COM and rar suffix is not infected file.

Infection after infection in the directory created Desk_top_.ini file, the current system time within which to write.







Recommended links:



DAT to MP4



MOD Converter



Astronomy a lifelong hobby



MOD To MPG