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



Wednesday, September 29, 2010

Architect is dead



In 2006 strangely deserted workplace, compared to previous years, the quantity and quality of your resume much better, very rare to find people over the three years of work experience, a not particularly stupid, is particularly strange. What is, who did nothing for good work ah! Simon is the general manager of a foreign enterprise software company, recently broken to this worry. One by one, the next project, staff more and more nervous. Although Simon is a fan of Extreme Programming, but also had to approve a further application for an overtime. HR managers to the issue comes down to price, he's wonderful on the "fear of unemployment is not on paying back the principal, not quit."

That day, K Allen, could not project leader, with a one year work experience lad to Simon interview, "very smart! Experience just does not."

Simon frowned and said: "You do not know the minimum requirements for this position is three years of work experience?"

Allen said: "It is already three months through technical examination of one of the best, and boss, try it." Allen is the buddy Simon for many years, more casual.

Arrived to face up, Simon had to let the young man brought in Allen.

Simon's interview is usually three steps:

Issue 1: Can you talk about the main job after graduation experience?

Question 2: to say that your position in the company?

Question three: What are your development goals? Other answers, such as architect, he followed Q: Imagine you as architect of the day, Tell me what?

The first guy to answer questions very quickly and very clear, of course, a year Nothing. Simon think that guy is very clever. So young man answered the second question, the question of a divergent question: "You said your company at a medium level, it worse than you why people worse than you do?"

This is a trap.

Boy abruptly replied: "I think they work for work every day work, work without a sense of responsibility."

Simon nodded and said: "Really? That really bad people. Then you just a little better than a bad employee?"

Boy's face turned red, "I did not mean ... ..."

"Well, you talk about why the better man than you stronger than you?"

"I think he is very hard work for many years and still learning all kinds of architecture, high level." Then Simon asked that last question. Sure enough, the young man answered is to be the architect. About 70% of people want to be the architect. But the architect what is it?

Simon asked: "Why did you do to become architect?"

Young man surprised a moment, so probably no one questioned him. "Old, old writing process, do not." The answer to Simon what he thought about the old definition: When do you want young people to do when you are young; If you want to do the elderly do things, you old. This is how long you were born is irrelevant.

Simon then asked: "Well, you talk about after you become the architect, what to do every day?"

Boy said: "I have not thought about, but I think it is mainly needs analysis, design architecture it ... ..." This is probably a common problem among the young, young people can easily pursue some of my goals is not clear.

Simon asked: "What are the specific design of the framework do?"

The young man replied: "For example, the framework of the selection process, decided to use Spring or Struts, etc.."

"Oh, then I ask you, how do you convince people it is Spring or Struts?"

"If I have experience, I will know which is better ... ..."

"Yeah, but the knowledge of Spring or Struts and anyone can easily get. If they do not agree with your proposal, how do you convince him? If you agree with your proposal, you have made but as awareness of others, recognition of what others do you? "

Young man never thought that day another architect's work to convince people, said: "I am architect, I should have the power to make decisions, right?"

Simon think of three levels of power, the first layer, appointments; second level, professional; the third layer in emotional management.

Simon asked: "If a mature software company is not what you think in the framework of masters? Or that the architect of this occupation have died or disappeared out?, How would you define your career?"

Young man looked shocked.

Simon drew a system architecture, and then gave young man saw a piece of code.

"Which is more difficult to understand?" Simon asked.

Boy pointing to the code, said: "code difficult to understand."

Simon explained that: "This is why the so-called architect actually does not exist. A simple thing more how it would be more valuable? Everyone can draw such a framework map, but not everyone can write a good code. "

Off the young man, Simon a little sick. He is a bit like the guy, but it is another to be stupid education and fraught with technical magazines pollution guys. Simon adds, in his own notebook words: Chinese programmer's understanding of the three most stupid: I want to be architect. The first two shocking:

After 35 years of age to write a fixed procedure;

I just do Java (C + +);







Recommended links:



Backdoor storm dramatic shape network bandwidth



SWF To MOV



10 training managers to work EFFECTIVELY



e-cology IN the Pan Micro Series 46



"Border Land" skill tree rules of OPERATION and processing point



WMV to QT



Catalogs Newsgroup Clients



MKV to Zune



Debugging For You



GOLD mining around



My Favorite Education



Baidu cheating, universally condemned?



Different opinions



Six college students recruited reef workplace



Wednesday, September 15, 2010

How to deal with the Chinese in the JSP



In a Web application often need to pass some parameters to the server, usually through the form to send a POST request to the server. In the parameter may contain Chinese information, such as the user information registration, shopping orders in the address information and so on. General string parameters are encoded using the local character set, such as Chinese GB2312 or GBK character set used, English or Western European language using ISO8859_1 character set, but in all Java programs use Unicode string handling, which requires a data conversion process . Unfortunately, most of the existing Java application server is developed by the English-speaking countries, the lack of large character set (Chinese, Japanese, Korean, etc.) environments, these application servers handling HTTP request parameters are Chinese deal with some issues, and most troubled JSP and Servlet developer problems.

The root causes of the problem arising in the HTTP request is the lack of sufficient information to specify the client character set used. In a JSP page, we can specify the following pseudo-command to the output character set used by the page:

JSP engine will convert the above pseudo-instruction HTTP response header:

Content-Type: text / html; charset = GB2312

Sample output is encoded with GB2312 Chinese page, the browser will correctly display the Chinese. However, the browser will form the contents of the POST to the server, he was not included charset, but also Chinese content in the form of using% xx (xx is a hexadecimal number) are encoded, such as Chinese character "Zhong" within the code for the GB2312 0xD6D0, in the HTTP request becomes a% D6% D0, according to the provisions of RFC2616, if the HTTP request did not specify the character set, use ISO8859_1 encoding, so "in" word in the processing into two characters, respectively, 'u00D6' and 'u00D0', and returned to the client into two characters can not display the browser normally appear as'??'銆?br />
The traditional approach to solve this problem is to write additional code to complete the character set conversion:

strOut = new String (strIn.getBytes ("8859_1"), "GB2312");

strIn is not been converted to a string, its encoding is ISO8859_1, strOut is through the conversion of the string, its encoding is GB2312.

In Apusic 0.9.5 version of the Java Servlets 2.3 specification to achieve the draft, which added in the ServletRequest interface a method setCharacterEncoding (String enc), can fill the request in the HTTP charset missing information, and above the tedious conversion process is done automatically in a Servlet engine, but also on the conversion process Servlet engine is optimized to improve the operating efficiency. Here's a simple example, we can do to compare.

/ / Traditional way

/ / New way







相关链接:



Save Delphi: Chinese open source community an excellent opportunity to display strength



Effectiveness Is The Fundamental Real Name Does Not Matter



TOP Web Servers



Real player converter h.264



"Tomato Garden" case of first instance pronounced loss of Chengdu, a total of over 10 million soft



About GROOVY and Grails



Dealers sustained GROWTH Quartet



Review Terminal And Telnet Clients



blackberry format



Rmvb Quicktime



Expert Astrology Or Biorhythms Or Mystic



E-cology in the Pan Micro Series 66



Top Personal Finance



Wmv mpeg converter



Reduce carbon emissions, EastFax paperless fax you the more green the more resounding



In October 2007 the sixth New York International Outsourcing Exhibition



Wednesday, July 28, 2010

CLP Guangtong proceedings to recover 200 million loan of China Cable


CLP Guangtong before the Beijing High Court sued cable TV network in China to pay a total of more than 200 million yuan, Ltd. arrears payment and penalty. The court has accepted the case on October 16, hearing date has been set.

The case stems from December 2003 19 Japan-China Electric Cable China Guang Tong signed a supply contract. The national radio and television line, and upgrading pilot project system equipment supply contract total purchase price of 309.64 million yuan, according to their contract, contact the Council under the project delivery time and volume of the number or the contract agreed to change the delivery date and batch number shipment contract equipment; China Cable are paid in three phases. The first phase should be in the equipment within 90 days after delivery to pay 85% of total contract amount equipment; the second phase should be completed joint testing equipment in the system within 10 working days after the payment of 10% of total contract amount equipment; The third period should be in the equipment within one year after delivery to pay 5% of total contract amount equipment.

CLP widely known, as of October 16 this year, the company under a supply contract requirements and verification has been sent by the China Cable goods worth 260.8 million yuan. Wired money to pay 78 million yuan in China, the outstanding loan 182.8 million yuan, according to the two sides agreed in the contract the purchase method of calculating liquidated damages penalty counted 50.5 million yuan.

Therefore, the CLP Guangtong the defendant to pay a total of 230 million yuan of defaulted loans and liquidated damages. CLP Guangtong said the trial the proceedings, the final decision or the result of the company's current profit after the effects of uncertainty.






Recommended links:



Mov to avi



Wang Xin, senior vice president of Sohu: To seize the society, "Ma bar"



Comparison of Six agent approach



Mathematics Education Expert



Good E-COMMERCE



how to Convert .mp4 to .avi



Liu: A Play From The Acting To The Private Equity Fund Non-plague



Teach you from complex background using Photoshop cutout dress



High-quality C + + / C Programming Guide - CHAPTER 3 naming



Launchers And TASK Managers reviews



CONVERT flv to wmv



Format ts



HP and Novell reach a new exclusive alliance AGREEMENT



Popped into the home appliance industry with high black horse



Inventory And Barcoding DIRECTORY



Thursday, July 22, 2010

e-cology in the Pan Micro Series 67



To financial data and the original bills of interrelated

Is there such a system can not only help companies manage financial data, and can turn to a variety of financial data associated with the management of the original notes. When the time to find these financial data, the system will automatically provide the original paper for inquiries.濡傛灉鎵惧埌涓?釜鍚堝悓鏂囨。鐨勬椂鍊欒兘鍚﹂┈涓婄煡閬撹繖涓悎鍚岀浉鍏崇殑鎵ц鎯呭喌濡備綍銆佸簲鏀跺簲浠樻儏鍐碉紵




閫氳繃e-cology鐨勭煡璇嗘枃妗g鐞嗘ā鍧楃鐞嗗悇绉嶇エ鎹拰鍚堝悓锛?br />

娉涘井鍒╃敤e-cology鍦ㄧ煡璇嗘枃妗fā鍧椾腑鎶婂悇绉嶇被鍨嬬殑鏂囦欢锛氬彂绁ㄣ?鍚堝悓銆佸皬鍐屽瓙銆佹姤琛ㄣ?鏀跨瓥鏉℃銆佸姩鐢荤墖銆佹硶寰嬫枃浠朵繚瀛樿捣鏉ワ紝鍚屾椂杩欎簺鍘熷鏂囦欢涓庣浉鍏崇殑鎶ラ攢娴佺▼鎴栧悎鍚屾墽琛屾祦绋嬬浉浜掑叧鑱旓紝杩欐牱鍙互澶уぇ鏂逛究鏁翠釜浠ュ悗鏌ヨ鐨勬柟渚挎?銆佽?涓旀牴鎹鑹插拰鏉冮檺鐨勮瀹氾紝绯荤粺灏辫兘鎶婅繖浜涙枃浠惰嚜鍔ㄥ垎鍙戝埌闇?鏌ョ湅杩欎簺鏂囦欢鐨勪汉鍛樻墜涓?





For example, when we receive customer telephone inquiries about invoice issue, we do not need to immediately go to the Finance Department, in the e-cology can immediately help you understand the situation of the relevant invoices, and entrance through the customer, the customer can even see to your invoice.





More importantly, all the e-cology and related saved file can be customers, suppliers, products, employees, financial transactions, inter-related projects and other instruments, so that we can therefore easily comprehensive understanding of Xin Xi.
















相关链接:



mp4 to mp3 Converter



Gallery And Cataloging Tools brief



UML, RUP and Zachman Framework: the perfect combination of [1]



real player format



Mp3 To M4a



PowerBuilder menu creation



pb function library of the International



Xu Zhidong: direct sales to distributors is a breakthrough in quantitative change To qualitative cha



Analysis of concepts of J2ME



Zhou Chengyu Court hematemesis: die in the end to fight a Lawsuit



mkv file Converter



Infomation Computer Education



On the JSP page Jump and forward the request