The hero of World War II is a game I like very much. Although it was a bit old in years, I always took it out for a long time.
There is no repair box in the reward task "tank attack". It is a pity to watch the damaged tanks. some people say that they want to use mod, but they haven't found the legendary tank repair mod for a long time and finally found a method to modify the archive. share it! Although prog
Document directory
Gof Definition
Motivation
Key points of the decorator Mode
Gof Definition
Dynamically add some additional responsibilities to an object. The decorator mode is more flexible than the subclass generation function.
Let's take a look at a small example. If we need to develop a tank for the game, apart from the tanks of different models, we also hope to add one or more of the following features to tanks in different scenarios: infra
backup and restore1, all database backups
The code is as follows
Copy Code
# Innobackupex--DEFAULTS-FILE=/ETC/MY.CNF--user=root/home/tank/backup/If you report the following error:InnoDB:Error:log file./ib_logfile0 is of different size 5242880 bytesInnodb:than specified in the. cnf file 50331648 bytes!Innobackupex:Error:The xtrabackup child process has died At/usr/bin/innobackupex line 2679.Workaround: Add the following in
error:or No ' datadir ' option in the group ' mysqld ' in MySQL options
Third, all database backup and restore
1, all database backup
Copy Code code as follows:
# Innobackupex--DEFAULTS-FILE=/ETC/MY.CNF--user=root/home/tank/backup/
If you report the following error:
Copy Code code as follows:
InnoDB:Error:log file./ib_logfile0 is of different size 5242880 bytes
Innodb:than specified in the. cnf f
database backup
# Innobackupex--DEFAULTS-FILE=/ETC/MY.CNF--user=root/home/tank/backup/
If the following error is reported:InnoDB:Error:log file./ib_logfile0 is of different size 5242880 bytesInnodb:than specified in the. cnf file 50331648 bytes!Innobackupex:Error:The Xtrabackup child process had died At/usr/bin/innobackupex line 2679.Workaround: Add the following to the MY.CNF mysqld
[Mysqld]
Innodb_log_file_size = 5M
For example, after mysql is installed and configured, there is a built-in mysql database with a user table to store users and user permissions. mongodb is the most relational database, is there a table like this.1. Master the permissions and understand the following four items.1. mongodb does not have a default administrator account. Therefore, you must first add an administrator account and enable permission authentication.2. Switch to the admin Database. The added account is the administrator
Bridge Bridging Mode (structural mode)Abstraction and implementationAbstractions should not be dependent on implementation details, and implementation details should be dependent on abstraction.Abstract b stability, implementation details B changeThe problem is that if abstract B is inherently unstable and likely to change because of its inherent causes, what happens?For exampleIf we need to develop a tank game that supports both PC and mobile, the ga
in a campaign to facilitate the exchange of information, our reconnaissance department set the key heights of the campaign to (X=0,y=0) and stipulates that each eastward increase -meters,xPlus1, each northward increased -meters,yPlus1. At the same time, the military Intelligence department also cracked the enemy's command signal sent to the tank, of which there are three kinds of signals (l,r,m) to control the movement of the
In some cases, we may "over-use inheritance to extend the object's functions". This extension method lacks flexibility due to the static (compile-time) characteristics introduced by inheritance as a type; as the number of child classes increases (the number of extended functions), the combination of various child classes (the combination of extended functions) will lead to the expansion of more child classes (more inheritance ).
How can we enable "extension of object functions" to be implement
Today listen to a little summary of the proxy mode:Create a new interface Package Com.proxy; Public Interface Moveable { void Move ();}Create a new tank class implementation moveable PackageCom.proxy;ImportJava.util.Random; Public classTankImplementsmoveable{@Override Public voidMove () {//TODO auto-generated Method StubSYSTEM.OUT.PRINTLN ("Tank is running"); Try { NewThread (). Sleep (NewRa
The FB block can be called multiple times by the OB1, and all parameters and static data of the function are stored in a separate data block (DB) that is assigned to the function block, which is referred to as the background data block. When the FB is called, the background data block is automatically opened, the value of the actual parameter is stored in the background data block, and when the block exits, the data in the background data block remains.Below through the case design introduction
the enemy behind the gunners in the east, after the attack is completed, a patrol soldier in the oil depot can catch up. Beret can take the opportunity to kill the attack and then take care of the two enemies behind the tent, sniper is aimed at the guard who shot and killed the bastion host (the enemy's sight below the villain). The two guards on the warehouse are under the responsibility of sniper. Beret clears the device. Remember to let beret clear the gunners at the East intersection before
Java Dynamic Proxy modeAgent: A role represents a role in order to achieve certain specific energy work.For example: Manufacturers, middlemen, customers, the relationship between the threeCustomers do not buy products and directly with the manufacturer to deal with, also use do not know how the product is produced, the customer only with the middleman, and the middleman can travel some packaging products, for some after-sale services.
The agent mode has three roles: 1. Abstract theme role 2. Ag
Preface==============================================================================This PHP design mode album from the blog (jymoz.com), now has no access, this series of articles I have been looking for a long time to find the complete, thanks to the author Jymoz's Hard Pay Oh!This address:http://www.cnblogs.com/davidhhuan/p/4248198.html==============================================================================Some star classes will have more than one state, such as tanks can be rack up, t
callback-related code can be inserted between the viewer.update () and Viewer.frame () functions of the main emulation loop. The OSG callback also provides a more convenient interface for maintaining the above functions. program code that is good at using callbacks can also run more efficiently in multi-threaded work.In a previous tutorial, if we need to automatically update the DOF (DOF) nodes associated with the turret heading angle and machine gun inclination of the
HTML5 very fire, write an HTML5 game to play it, think of cocos2d seems to have all platforms, find online, download a Cocos2d-html5 engine package.
It seems that another open-source engine, lufylegend. JS, is also very good. Use lufylegend. js next time.
Development Environment chrome Cocos2d-html5
Game address: http://hehe108.sinaapp.com/cocos2d/
(Adsw press Enter)
The implementation method is as follows:1. Create a subclass of layergradient (containing
One: Back up the databaseG:\Program files\mongodb\server\3.0\bin>mongodump-d Mydb-o G:/data/backMongodump-h IP--port Port-u user name-p password-d database-o file exists pathIf there are no users, you can remove-u and-P.If you export the native database, you can remove-H.If it is the default port, you can remove--port.If you want to export all databases, you can remove-D.Export all databasesCommand: Mongodump-h 127.0.0.1-o/home/zhangy/mongodb/Export the specified databaseMongodump-h 192.168.1.10
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.