<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>combing1のブログ</title>
<link>https://ameblo.jp/combing1/</link>
<atom:link href="https://rssblog.ameba.jp/combing1/rss20.xml" rel="self" type="application/rss+xml" />
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com" />
<description>ブログの説明を入力します。</description>
<language>ja</language>
<item>
<title>principle of the database load balancing</title>
<description>
<![CDATA[ With the wide spread of Internet applications, to store and access <a href="http://www.nikemaxto.org/air-max-2011-womens-purple-black-grey-p-48.html">Air Max </a><a href="http://www.nikeaaaa.org/597806400-nike-lebron-x-ext-qs-denimpink-outlet-p-409.html">597806-400 Nike LeBron X EXT QS Denim-Pink Outlet</a> 2011 Womens Purple Black Grey huge amounts of data has become the bottleneck of the system design. For a large-scale Internet applications, one million per day or billions of PV database undoubtedly cause a very high load. For the stability and scalability of the system caused great problems. First, load balancing technology load balancing cluster is a group of independent computer system configuration, connected via a conventional network or private network, link together by routers, each node of mutual cooperation and common load, balanced <a href="http://www.nikeaaaa.org/">Air Jordan Outlet</a> pressure, to clients , the entire cluster can be viewed as a stand-alone server that has ultra-high performance. 1, the realization of the principle of the database load balancing technology, the first to have a control terminal connected to control the database. Here, it cut off the direct connection to the database and procedures by all programs to access the intermediate layer, and then by the middle tier to access the database. In this way, we can control access to a specific database, and then you can also take effective load balancing strategy based on the current database, which is adjusted each time you connect to the database. 2, multi-database data synchronization for load balancing, the most important is the real-time data from all servers are synchronized. This is necessary for a cluster, because, if the number is not real-time data, sync, then the user reads the data from a server, it is different from the data read out from another server, which is not allowed. So it must <a href="http://www.nikemaxto.org/air-max-2011-womens-purple-grey-p-50.html">Air Max 2011 Womens Purple Grey</a> implement database data synchronization. Thus, at the time of the query can have multiple resources to achieve equilibrium. More commonly used method is to Moebius for SQL Server cluster, Moebius for SQL Server cluster approach adopted core program resides on each machine in the database, the core program is called Moebius for SQL Server middleware, the main role is to monitor the database within changes in the data and changing data synchronized to other databases. After the completion of the data synchronization client will get a response, the synchronization process is complicated by complete, so synchronized to multiple databases and synchronized to <a href="http://www.lvniker.org/category-17_29.html">Nike  Dunk Heels</a> a database of time substantially equal; additional synchronization process is completed in a transaction environment, ensuring more copies of data at any time data consistency. Because Moebius middleware host innovation in the database, so the middleware data changes not only to know, but to know SQL statement causes data changes, SQL statements to take a different type of intelligent policy based data synchronization to ensure data synchronization costs minimized. The number of small data, the data content is not large, the number of direct synchronization data are scarce, but it contains a large data types such as text, binary data, the first data is compressed and then synchronize, reducing network bandwidth occupation and transmission time used. Lot number data, when the data changes caused middleware will get the SQL statement, then the SQL statement analysis, analysis of its implementation plan and implementation costs, and select a synchronous data or synchronize SQL statements to the other database. In this case the application to adjust the structure of the table or bulk changes when data is very useful. 3, the advantages and disadvantages (1) scalability: when the system database processing to a higher speed, simply increase the database server can be expanded. (2) Maintainability: When a node fails, the system will automatically detect the failure and the failed node metastasis application to ensure continuous operation of the database. (3) Safety: Because data on multiple servers synchronized redundant data sets can be achieved through multiple copies of data to <a href="http://www.nikeaaaa.org/nike-lebron-10x-c-2.html">Nike Lebron 10(X)</a> ensure security. In addition, it has successfully put the database into the network, to better protect the security of the database. (4) Ease of <a href="http://www.nikeaaaa.org/597806400-nike-lebron-x-ext-qs-denimpink-outlet-p-409.html">597806-400 Nike LeBron X EXT QS Denim-Pink Outlet</a> use: it is completely transparent to the application, the cluster is an exposed IP (1) can not be in accordance with the processing capabilities of the Web server to distribute the load. (2) Load Balancer (control side) malfunction, can cause paralysis of the entire database system. Second, write a separate database, realization of the principle: read and write separation simply is to separate read and write operations on the database corresponding to a different database server, so the database can effectively reduce the pressure, but also can reduce the io pressure. Master database provides a write operation, a read operation from the database offers, in fact, many systems, mainly read operations. When the primary database <a href="http://www.nikemaxto.org/">Nike Air Max</a> is written, the data from the database to be synchronized, so as to effectively ensure database integrity. (Ebay literacy ratio is 260: 1, ebay read and write separation) (Microsoft database distribution) 2. Method: In MS Sql server can be used to define the ways publishing database replication, read and write separation, copying is a set of data copied from one data source to multiple data sources of technology, is an effective way to publish data to a plurality of storage sites. Using replication technology, users can copy data to publish to multiple servers. Replication technology ensures that the data in different locations automatically synchronized to ensure data consistency. SQL SERVER replication technology There are three types, namely: snapshot replication, transactional replication, merge replication. SQL SERVER mainly publications, subscription way to handle replication. Server source server where the data is published, is responsible for published data. Copies of all the changes of the publishing server to publish the data is copied to the distribution server, the distribution server includes a distributed database, data can be received all the changes and save the changes, and then distributed to subscribers of these changes. Real-time differential, advantages and disadvantages of (1) data: data is not real-time synchronization to the server from reading, when the data is written to the primary server, after the next synchronization can be queried. (2) the difference between the amount of data synchronization efficiency: insert and update the index because, <a href="http://www.nikemaxto.org/air-max-2011-womens-purple-grey-p-50.html">Air Max 2011 Womens Purple Grey</a> disk IO and so on, the performance becomes poor when excessive single-table data. (3) simultaneous connection of multiple (at least two) database: connect at least two data in the database, the actual read and write operations are performed in the program code can be confusing (4) read with high performance and high reliability Scalable: read-only server, because there is no write operation will greatly reduce the disk IO and other performance issues, greatly improving efficiency; read-only server load balancing can be used, the primary database publishing to achieve a read operation on multiple read-only server scalability ʱ?? Third, database sharding (distributed) by certain conditions, the data will be stored in the same database stored <a href="http://www.nikemaxto.org/air-max-2011-womens-grey-green-p-49.html">Air Max 2011 Womens Grey Green</a> on multiple databases dispersed to achieve distributed storage, access to specific database through routing rule, so that each The visit would not face a single server, but rather N servers, <a href="http://www.lvniker.org/product-43.html">Mens Nike Free Run 3 Shoes Black 3</a> which can reduce the load pressure single machine. Vertical (portrait) Split: Split is defined as functional modules, such as the library is divided into orders, merchandise library, user library ... different table structure in this way between multiple databases. Level (horizontal) split: will be saved to a different block of the same data in a database table, the table structure identical to those in the database. (Longitudinal split) (horizontal split) 1 principle: using a vertical split, mainly depends on the type of application is appropriate to split this way, such as the system can be divided, order systems, merchandise management system, user management systems business system is relatively clear, and the vertical split can play a good dispersion database pressure. Service module is not clear, coupling (Table relevance) relatively high degree of system is not suitable to use this split way. But the vertical split mode does not completely solve the problem of all pressure, for example, a 5000w Orders table, the operation pressure of the order bank still large, as we need to increase the (insert) a new data in this table, insert Completion , the database will be re-established for this table index, 5000w line data indexing overhead can not be ignored, in turn, if we have this table is divided into 100 table it, <a href="http://www.lvniker.org/product-51.html">New Nike Free 5.0 V4 Grey Blue Running Shoes</a> from table_001 until table_100,5000w rows on average, Each sub-table inside only 500,000 rows of data, this time to a table we only 50w insert rows of data in the index after data showed the number of class time will be decreased greatly improve the operational efficiency of DB time, improve Concurrent amount of DB, which is transversely split 2 split, implementation method: vertical split, split mode relatively simple to implement, according to the table name to access different databases on it. Many transverse split rules here summarize previous points, (1) the order split: If you can press <a href="http://www.nikemaxto.org/nike-free-50-v2-nike-free-50-v2-women-c-47_48.html">Nike Free 5.0 V2 Women</a> a few days ago by year Caifen orders placed in 2003 in the db1 in 2004 of db2, and so <a href="http://www.lvniker.org/product-58.html">New Nike Free Run 3 Shoes Silver 3</a> on. Of course, the standard can be split by the primary key. Advantages: partial migration Disadvantages: uneven distribution of data, may 2003 orders have 100W, 2008 years have 500W. (2) hash modulo points: The user_id perform hash (or if user_id is numeric, then the direct use user_id value can be), and then use a specific number, such as the application requires a database cut into 4 database, We will use this number to 4 user_id the hash value modulo operation, which is user_id% 4, so each operation, there are four possibilities: the result is 1 when the corresponding DB1; the result is, when 2 corresponds DB2; Results 3, when the corresponding DB3; the result is 0 when the corresponding DB4, such an action would very evenly allocate data to four DB. Advantages: Data distribution disadvantage: data migration when trouble; you can not share data according to machine performance. (3) is stored in the authentication library database configuration it is to create a DB, the DB saved separately user_id mapping to the DB every time they have to access the database query once the database to get specific information DB, and then be carried out We need to query operation. Advantages: flexibility, one relationship Cons: have more than one query before the <a href="http://www.lvniker.org/">2015 Nike Free 5.0</a> query each time, will cause some performance loss.large database application solutions summary
]]>
</description>
<link>https://ameblo.jp/combing1/entry-12070756599.html</link>
<pubDate>Tue, 08 Sep 2015 11:38:10 +0900</pubDate>
</item>
<item>
<title>it will give you results within a few</title>
<description>
<![CDATA[ Bole Online [REVIEW]: Recently Microsoft How-old.net <a href="http://www.nikemaxto.org/air-max-2011-womens-purple-black-grey-p-48.html">Air Max 2011 Womens Purple Black Grey</a> website very hot, <a href="http://www.nikemaxto.org/nike-free-run-3-nike-free-run-3-women-c-50_52.html">Nike Free Run 3 Women</a> users upload photos after the <a href="http://www.nikeaaaa.org/">Air Jordan Outlet</a> station, it can measure out the photo figures gender and age. Some foreign friends on Quora asked How-old.net works. Below are involved Eason Wang Microsoft project manager of the project reply. (Eason <a href="http://www.nikeaaaa.org/579756-403-purple-white-nike-black-mamba-24-kobe-sale-p-697.html">579756 403 Purple White Nike Black Mamba 24 Kobe Sale</a> Wang is a senior program manager of Bing, this answer received three thousand three hundred point Like) I am directly involved in the project. To be honest, this popular small site far beyond my expectations. I have done some analysis afterwards why popular and Medium wrote an article. Back to the topic, my answer into two parts. The first part will talk about how to quickly achieve exactly the same in any of the software features, the second part I will go into some of the description of the technology itself. In the past few years and the cooperation of Microsoft's R \u0026 D department, on Bing's image search technology is concerned, we have reached the best industrial image understanding, rapid extension of this technology to other Microsoft products. Microsoft is currently in the Oxford project home, this technology is open to all developers. Want to achieve the same functionality in their software, you <a href="http://www.nikemaxto.org/air-max-2011-womens-purple-grey-p-50.html">Air Max 2011 Womens Purple Grey</a> simply need to call at our web API, you can get all the information needed in JSON format. You can try this page in www.projectoxford.ai upload <a href="http://www.nikemaxto.org/air-max-2012-black-navy-blue-white-p-52.html">Air Max 2012 Black Navy Blue White</a> an image, it will give you results within a few seconds, face coordinates, gender and age information are inside. Face API is only one we did in the Oxford project characteristics. There are many other core features to help build innovative applications. Microsoft's internal API open to the public so I am very excited, I knew this would develop community play a profound impact. Seemingly impossible things before it makes only a simple web API call can be done about. #HowOldRobot Just a small showcase these capabilities, Azure machine learning team a developer only one day put it developed. (Translator's Note: The following is the API Samples for JSON format) JSON: [{\u0026 quot; faceId \u0026 quot ;: \u0026 quot; 5af35e84-ec20-4897-9795-8b3d4512a1f9 \u0026 quot ;, \u0026 quot; faceRectangle \u0026 quot ;: {\u0026 quot; width \u0026 quot ;: 60, \u0026 quot ; height \u0026 quot ;: 60, \u0026 quot; left \u0026 quot ;: 276, \u0026 quot; top \u0026 quot ;: 43}, \u0026 quot; faceLandmarks \u0026 quot ;: {\u0026 quot; pupilLeft \u0026 quot ;: {\u0026 quot; x \u0026 quot ;: \u0026 quot; 295.1 \u0026 quot ;, \u0026 quot; y \u0026 quot ;: \u0026 quot ; 56.8 \u0026 quot;}, \u0026 quot; pupilRight \u0026 quot ;: {\u0026 quot; <a href="http://www.lvniker.org/product-58.html">New Nike Free Run 3 Shoes Silver 3</a> x \u0026 quot ;: \u0026 quot; 317.9 \u0026 quot ;, \u0026 quot; y \u0026 quot ;: \u0026 quot; 59.6 \u0026 quot;}, \u0026 quot; noseTip \u0026 quot ;: {\u0026 quot; x \u0026 quot ;: \u0026 quot; <a href="http://www.nikeaaaa.org/579756-403-purple-white-nike-black-mamba-24-kobe-sale-p-697.html">579756 403 Purple White Nike Black Mamba 24 Kobe Sale</a> 311.6 \u0026 quot ;, \u0026 quot; y \u0026 quot ;: \u0026 quot; 74.7 \u0026 quot;}, \u0026 quot; mouthLeft \u0026 quot ;: {\u0026 quot; x \u0026 quot ;: \u0026 <a href="http://www.nikeaaaa.org/597806400-nike-lebron-x-ext-qs-denimpink-outlet-p-409.html">597806-400 Nike LeBron X EXT QS Denim-Pink Outlet</a> quot; 291.0 \u0026 quot ;, \u0026 quot; y \u0026 quot ;: \u0026 quot; 86.3 \u0026 quot;}, \u0026 quot; mouthRight \u0026 quot ;: {\u0026 quot ; x \u0026 quot ;: \u0026 quot; 311.6 \u0026 quot ;, \u0026 quot; y \u0026 quot ;: \u0026 quot; 88.6 \u0026 quot;}, \u0026 quot; eyebrowLeftOuter \u0026 quot ;: {\u0026 quot; x \u0026 quot ;: \u0026 quot; 281.6 \u0026 quot ;, \u0026 quot; y \u0026 quot ;: \u0026 quot; 50.1 \u0026 quot;} , \u0026 quot; eyebrowLeftInner \u0026 quot ;: {\u0026 quot; x \u0026 quot ;: \u0026 quot; 304.2 \u0026 quot ;, \u0026 quot; y \u0026 quot ;: \u0026 quot; 51.6 \u0026 quot;}, \u0026 quot; eyeLeftOuter \u0026 quot ;: {\u0026 quot; x \u0026 quot ;: \u0026 quot; 289.1 \u0026 quot ;, \u0026 quot; y \u0026 quot ;: \u0026 quot; 57.1 \u0026 quot;}, <a href="http://www.nikemaxto.org/air-max-2011-womens-purple-black-grey-p-48.html">Air Max 2011 Womens Purple Black Grey</a> \u0026 quot; eyeLeftTop \u0026 quot ;: {\u0026 quot; x \u0026 quot ;: \u0026 quot; 294.0 \u0026 quot ;, \u0026 quot; y \u0026 quot ;: \u0026 quot; 54.5 \u0026 quot;}, \u0026 quot; eyeLeftBottom \u0026 quot ;: {\u0026 quot; x \u0026 quot ;: \u0026 quot ; 293.0 \u0026 quot ;, \u0026 quot; y \u0026 quot ;: \u0026 quot; 61.0 \u0026 quot;}, \u0026 quot; eyeLeftInner \u0026 quot ;: {\u0026 quot; x \u0026 quot ;: \u0026 quot; 297.8 \u0026 quot ;, \u0026 quot; y \u0026 quot ;: \u0026 quot; 58.7 \u0026 quot;}, \u0026 quot; eyebrowRightInner \u0026 quot; : {\u0026 quot; x \u0026 quot ;: \u0026 quot; 316.0 \u0026 quot ;, \u0026 quot; y \u0026 quot ;: \u0026 quot; 54.2 \u0026 quot;}, \u0026 quot; eyebrowRightOuter \u0026 quot ;: {\u0026 quot; x \u0026 quot ;: \u0026 quot; 324.7 \u0026 quot ;, \u0026 quot; y \u0026 quot ;: \u0026 quot; 54.2 \u0026 quot;}, \u0026 quot; eyeRightInner \u0026 quot ;: {\u0026 quot; x \u0026 quot ;: \u0026 quot; 312.9 \u0026 quot ;, \u0026 quot; y \u0026 quot ;: \u0026 quot; 60.9 \u0026 quot;}, \u0026 quot; eyeRightTop \u0026 quot <a href="http://www.nikeaaaa.org/586590300-nike-kobe-8-system-elite-gc-poison-green-superhero-outlet-p-695.html">586590-300 Nike Kobe 8 System Elite GC Poison Green Superhero Outlet</a> ;: {\u0026 quot; x \u0026 <a href="http://www.lvniker.org/product-48.html">New Nike Free 5.0 V4 Purple Yellow Shoes</a> quot ;: \u0026 quot; 317.8 \u0026 quot ;, \u0026 quot; y \u0026 quot ;: \u0026 quot; 57.7 \u0026 quot;}, \u0026 quot; eyeRightBottom \u0026 quot ;: {\u0026 quot; x \u0026 quot ;: \u0026 quot; 317.9 \u0026 quot ;, \u0026 quot; y \u0026 quot ;: \u0026 quot; 63.7 \u0026 quot;}, \u0026 quot; eyeRightOuter \u0026 quot ;: {\u0026 quot; x \u0026 quot ;: \u0026 quot; 322.8 \u0026 quot ;, \u0026 quot; y \u0026 quot ;: \u0026 quot; 60.8 \u0026 quot;}, \u0026 quot; noseRootLeft \u0026 quot ;: {\u0026 quot; x \u0026 quot <a href="http://www.nikemaxto.org/air-max-2011-womens-grey-green-p-49.html">Air Max 2011 Womens Grey Green</a> ;: \u0026 quot; 304.0 \u0026 quot ;, \u0026 quot; y \u0026 quot ;: \u0026 quot; 60.2 \u0026 quot;}, \u0026 quot ; noseRootRight \u0026 quot ;: {\u0026 quot; x \u0026 quot ;: \u0026 quot; 312.2 \u0026 quot ;, \u0026 quot; y \u0026 quot ;: \u0026 quot; 61.2 \u0026 quot;}, \u0026 quot; noseLeftAlarTop \u0026 quot ;: {\u0026 quot; x \u0026 quot ;: \u0026 quot; 302.6 \u0026 quot ;, \u0026 quot; y \u0026 quot ;: \u0026 quot; 70.2 \u0026 quot;}, \u0026 quot; noseRightAlarTop \u0026 quot ;: {\u0026 quot; x \u0026 quot ;: \u0026 quot; 313.0 \u0026 quot ;, \u0026 quot; y \u0026 quot ;: \u0026 quot; 70.0 \u0026 quot;}, \u0026 quot; noseLeftAlarOutTip \u0026 quot ;: {\u0026 quot; x \u0026 quot ;: \u0026 quot; 298.8 \u0026 quot ;, \u0026 quot; y \u0026 quot ;: \u0026 quot; 76.2 \u0026 quot;}, \u0026 <a href="http://www.nikemaxto.org/">Nike Air Max</a> quot; noseRightAlarOutTip \u0026 quot ;: {\u0026 quot; x \u0026 quot ;: \u0026 quot; 315.2 \u0026 quot ;, \u0026 quot; y \u0026 quot ;: \u0026 quot; 76.6 \u0026 quot;}, \u0026 quot; upperLipTop \u0026 quot ;: { \u0026 quot; x \u0026 quot ;: \u0026 quot; 307.3 \u0026 quot ;, \u0026 quot; y \u0026 quot ;: \u0026 quot; 84.0 \u0026 quot;}, \u0026 quot; upperLipBottom \u0026 quot ;: {\u0026 quot; x \u0026 quot ;: \u0026 quot; 306.6 \u0026 quot ;, \u0026 quot; y \u0026 quot ;: \u0026 quot; 86.4 \u0026 quot; }, \u0026 quot; underLipTop \u0026 quot ;: {\u0026 quot; x \u0026 quot ;: \u0026 quot; 305.5 \u0026 quot ;, <a href="http://www.lvniker.org/">2015 Nike Free 5.0</a> \u0026 quot; y \u0026 quot ;: \u0026 quot; 89.6 \u0026 quot;}, \u0026 quot; underLipBottom \u0026 quot ;: {\u0026 quot; x \u0026 quot ;: \u0026 quot; 304.1 \u0026 quot ;, \u0026 quot; y \u0026 quot ;: \u0026 quot; 94.0 \u0026 quot;}}, \u0026 quot; attributes \u0026 quot ;: {\u0026 quot; age \u0026 quot ;: 24, \u0026 quot; gender \u0026 quot ;: \u0026 quot; female \u0026 quot ;, \u0026 quot; headPose \u0026 quot ;: {\u0026 quot; roll \u0026 quot ;: \u0026 quot; 4.0 \u0026 quot; , \u0026 quot; yaw \u0026 quot ;: \u0026 quot; 31.3 \u0026 quot ;, \u0026 quot; pitch \u0026 quot ;: \u0026 quot; 0.0 \u0026 quot;}}}] How-old.net this site mainly depends on three key technologies: face detection, sex and age detection ʱ?? Face detection is the basis for the other two. Age and sex tests for the detection, the only machine learning typical regression and classification problems, related to the representation of facial features, build collect training data, regression and classification model and optimization model. There are many in this area have been published in the papers. If you are interested to know more about you tell me. On the other hand, deep learning and understanding of large-scale data driven image understanding of breakthrough for smarter systems and procedures port opens the door. You can look at my latest chart on how to apply more advanced image scenes blog: http: //blogs.bing.com/search-qua... Leave your comment let me improve this answer, thank you!How-old.net website How does it work?
]]>
</description>
<link>https://ameblo.jp/combing1/entry-12070756453.html</link>
<pubDate>Tue, 08 Sep 2015 11:37:34 +0900</pubDate>
</item>
<item>
<title>by the middle platform to distribute</title>
<description>
<![CDATA[ I. INTRODUCTION In real life, there are many intermediary model's figure, such as QQ game platform, chat rooms, QQ group and SMS platform, these are intermediary model used in real life, the following specific share with me understanding mediator pattern. Second, the introduction of the definition of intermediary mode 2.1 Mediator pattern can be seen from the example of life, whether it is QQ game or QQ group, they are acting as an intermediate platform, QQ users can log in the middle of the platform with other QQ users exchange, without these intermediate platform, if we want to chat with friends, you may <a href="http://www.nikeaaaa.org/">Air Jordan Outlet</a> only need to face it. Telephone, text messaging is also an intermediate platform, with the intermediate platform, each user do not rely directly with other users, only you need to rely on the middle of the platform you can, <a href="http://www.nikeaaaa.org/579756-403-purple-white-nike-black-mamba-24-kobe-sale-p-697.html">579756 403 Purple White Nike Black Mamba 24 Kobe Sale</a> all the operations by the middle platform to distribute. Complete understanding of mediation pattern in the life of the model, the following definitions are given formal mediation model. Mediator pattern defines an intermediary object to encapsulate a series of interactive relationship between objects. Mediator so that all objects do not explicitly refer to each other <a href="http://www.nikeaaaa.org/579756-403-purple-white-nike-black-mamba-24-kobe-sale-p-697.html">579756 403 Purple White Nike Black Mamba 24 Kobe Sale</a> between, so that the coupling is reduced, and can be varied independently interactions between them. 2.2 Mediator pattern structure from life examples will know, the mediator schema design two specific objects, a user class, and the other is an intermediary class, according to the principles for the programming interface, you need these types of roles abstract, So there is a mediator pattern in four types of roles, they are: abstract intermediary role, <a href="http://www.nikemaxto.org/air-max-2011-womens-purple-grey-p-50.html">Air Max 2011 Womens Purple Grey</a> in particular the role of mediator, abstract and concrete co-worker colleague class category. Mediator class is to play the role of coordination of the various objects, the abstract intermediary role you will need to save each object. With the above analysis, it is not difficult to understand the structure of FIG intermediary model, the specific structure is shown below: Why use intermediary model in real life, the agency's presence is indispensable, if not an intermediary who, <a href="http://www.nikemaxto.org/nike-free-run-3-nike-free-run-3-women-c-50_52.html">Nike Free Run 3 Women</a> we can not communicate with distant friends. In the field of software design, why use an intermediary model? If you do not use the intermediary model, then each object will be referenced mutual colleague, if each object to interact with multiple objects, will form a network structure as shown below. From the figure can be found, if you do not use the intermediary model, then excessive coupling between each object, so that is not conducive to class reuse is not conducive to expansion. If the introduction of the intermediary model, the relationship between objects will become the star structure, will form the structure shown below after use intermediaries mode: From the chart can be found, then use intermediaries mode, any of a class changes only affect intermediaries and the class itself, unlike the previous design, a kind of change will cause all classes of any changes in their association. This design greatly reduces the coupling of the system. Mediator pattern to achieve 2.3 introduction to define the need for intermediaries and the existing pattern, the following would play cards with real-life examples to achieve next mediator mode. In real life, two people playing cards, if someone wins will affect other state changes. If at this time do not use intermediary model to achieve, then achieve the above scenario is as follows: // abstract class players out public abstract class AbstractCardPartner {public int MoneyCount {get; set;} public AbstractCardPartner () {MoneyCount = 0; } public abstract void ChangeCount (int Count, AbstractCardPartner other);} // A class poker buddies public class ParterA: AbstractCardPartner {public override void ChangeCount (int Count, AbstractCardPartner other) {this.MoneyCount + = Count; other.MoneyCount - = Count;}} // <a href="http://www.lvniker.org/product-58.html">New Nike Free Run 3 Shoes Silver 3</a> poker buddies Class B public class ParterB: AbstractCardPartner {public override void ChangeCount (int Count, AbstractCardPartner other) {this.MoneyCount + = Count; other.MoneyCount - = Count;}} class Program {// A , B two people playing cards static void Main (string <a href="http://www.nikeaaaa.org/597806400-nike-lebron-x-ext-qs-denimpink-outlet-p-409.html">597806-400 Nike LeBron X EXT QS Denim-Pink Outlet</a> [] args) {AbstractCardPartner A = new ParterA (); A.MoneyCount = 20; AbstractCardPartner B = new ParterB (); B.MoneyCount = 20; // A won the B money to reduce A.ChangeCount (5, B); Console.WriteLine (\u0026 quot; A money now is: {0} \u0026 quot ;, A.MoneyCount); // should be 25 Console.WriteLine (\u0026 quot; B now Money is: {0} \u0026 quot ;, B.MoneyCount); // 15 // B should win the money A reduction B.ChangeCount (10, A); Console.WriteLine (\u0026 quot; A money now is: {0} \u0026 quot ;, A.MoneyCount); // should be 15 Console.WriteLine (\u0026 quot; B now money is: {0} \u0026 quot ;, B.MoneyCount); // should be 25 Console.Read (); }} The above scenario is indeed the perfect solution to the above problem, and the use of abstract classes make specific cards Friends Friends A and B cards rely on abstract classes, thereby reducing the degree of coupling between classes <a href="http://www.nikeaaaa.org/adidas-adipure-crazyquick-collegiate-royalwhite-q33301-outlet-p-693.html">adidas adiPure Crazyquick Collegiate Royal/White Q33301 Outlet</a> colleagues. But this design, if which poker buddies A change, this time will affect the state's poker buddies B, if the object becomes more involved, then change this time one poker buddies will affect all other associated Friends of licensing status. A miscalculated such as poker buddies money, this time cards Friends A and B players out <a href="http://www.lvniker.org/product-53.html">New Nike Free 5.0 V4 Grey Lime Trainers</a> of money are not correct, and if more than one person playing cards, then the impact will be more objects. This time it will Consideration - Can count the money the program or task to count good people to calculate it, this time we have a game QQ joy Landlords and other card games up. So the above design, we still have to further improve the program, that is added to an intermediary object to coordinate the association between various objects, which is the application of the Mediator pattern, perfect after a specific implementation code as follows: namespace MediatorPattern {// abstract class players out public abstract class AbstractCardPartner {public int MoneyCount {get; set;} public AbstractCardPartner () {MoneyCount = 0;} public abstract void ChangeCount (int Count, AbstractMediator mediator);} // A poker buddies class public class ParterA: AbstractCardPartner {// rely intermediary objects and abstract public override void ChangeCount (int Count, AbstractMediator mediator) {mediator.AWin (Count);}} // poker buddies Class B public class ParterB: AbstractCardPartner <a href="http://www.lvniker.org/product-48.html">New Nike Free 5.0 V4 Purple Yellow Shoes</a> {// Dependence and abstract objects intermediary public override void ChangeCount (int Count, AbstractMediator mediator) {mediator.BWin (Count);}} // <a href="http://www.nikemaxto.org/nike-free-run-3-nike-free-run-3-women-c-50_52.html">Nike Free Run 3 Women</a> abstract Mediator class public abstract class AbstractMediator {protected AbstractCardPartner A; protected AbstractCardPartner B; public AbstractMediator (AbstractCardPartner a, AbstractCardPartner b) {A = a; B = b;} public abstract void AWin (int count); public abstract void BWin (int count);} // specific intermediary class public class MediatorPater: AbstractMediator {public MediatorPater (AbstractCardPartner a, AbstractCardPartner b): base (a, b) {} public override void AWin (int count) {A.MoneyCount + = count; B.MoneyCount - = count;} public override void BWin (int count) {B.MoneyCount <a href="http://www.nikemaxto.org/air-max-2011-womens-grey-green-p-49.html">Air Max 2011 Womens Grey Green</a> + = count; A.MoneyCount - = count;}} class Program {static void Main (string [] args) {AbstractCardPartner A = new ParterA (); AbstractCardPartner B = new ParterB (); // initial money A.MoneyCount = 20; <a href="http://www.lvniker.org/product-43.html">Mens Nike Free Run 3 Shoes Black 3</a> B.MoneyCount = 20; AbstractMediator mediator = new MediatorPater (A, B); // A win A.ChangeCount (5, mediator); Console.WriteLine (\u0026 quot; A money now is: {0} \u0026 quot; , A.MoneyCount); // should be 25 Console.WriteLine (\u0026 quot; B now money is: {0} \u0026 quot ;, B.MoneyCount); // 15 // <a href="http://www.nikemaxto.org/">Nike Air Max</a> B should win B.ChangeCount (10, mediator); Console.WriteLine (\u0026 quot; A money now is: {0} \u0026 quot ;, A.MoneyCount); // should be 15 Console.WriteLine (\u0026 quot; B now money is: {0} \u0026 quot ;, B .MoneyCount); // should be 25 Console.Read ();}}} can be seen from the realization of the code above, then the cards Friends Friends A and B cards rely on intermediaries abstract class, so that if one of the cards Friends of the change only affects class, this change only affects the class itself and poker buddies intermediary class, so as to solve the problems in front of realization of the code, the specific results of the operation to achieve the same results as before, the results as shown below: in the realization of the above code, the abstract Mediator class holds two abstract class players out, if a newly added similar players out, then you have to change this abstract Mediator class. Observer mode can be combined to solve this problem, namely the abstract category abstract object holds intermediary players out, and then add Register and UnRegister approach to the management of the list, and then modify AWin and BWin method intermediaries in specific class, traverse the list count the money, and other cards to change their Friends. This design is still a problem - namely, when adding a new poker buddies, then solves the abstract Mediator class does not need to modify the problem, but this time still have to modify specific intermediary categories, namely add CWin method, We can use the state model to solve this problem, information about the state pattern will be shared in the next topic. Third, the application of the general scene mode mediator in the following circumstances, consider using an intermediary model: a well-defined set of objects, now communicate with each other to be complex. I want a middle class to encapsulate multiple classes of behavior, but do not want to generate too many subclasses. Fourth, the advantages and disadvantages of mediator pattern Mediator model has the following advantages: simplify the relationships between objects, the relationship between the various objects encapsulate system, individual coworkers class decoupling, so that the system becomes loose coupling. Providing system flexibility so that each colleague independent and easy to reuse objects. However, there are also Mediator pattern corresponding disadvantages: intermediary model, mediator role assumed more responsibility, so once this intermediary target there is a problem, the entire system would be a significant impact. For example, QQ game joy beans procedures calculated wrong, this will cause a significant impact. Add a new co-worker class, I had to modify the abstract and concrete classes intermediary intermediary class, then you can use the observer pattern and state model to solve this problem. V. Summary intermediary model, defines the interaction between an intermediary object to encapsulate series between objects. Mediator so that all objects do not explicitly refer to each other, so that it reduces coupling, and can independently change the interaction between them. Mediator pattern generally used between the need for a set of well-defined objects and want to customize the occasion to communicate in more than one class of behavior, but do not want the <a href="http://www.lvniker.org/">2015 Nike Free 5.0</a> case to generate too many subclasses.C # design patterns (18) - Mediator pattern (Mediator Pattern)
]]>
</description>
<link>https://ameblo.jp/combing1/entry-12070756302.html</link>
<pubDate>Tue, 08 Sep 2015 11:37:04 +0900</pubDate>
</item>
<item>
<title>our application will be able to become</title>
<description>
<![CDATA[ This is the 'AngularJS - seven steps from novice to expert,' the third in the series. In the first chapter, we show how to begin to build a AngularaJS applications. The second we discuss the scope and $ scope of functions. Through this entire series of tutorials, we will develop an NPR (National Public Radio) broadcast audio player that can display the latest broadcast on Morning Edition story now in the program, and play in our browser. Complete version of the Demo can be seen here. The third part of the data is bound by a text input box bound to the person.name property, our application will be able to become a little more interesting. This step is to establish a two-way binding text entry box with the page. In this context in the 'two-way' means that if you view the property values ​​change, model will 'see' the change, and if the model changes the attribute values, view, will also 'see' the change. Angular.js good for you automatically build this mechanism. If you're curious about is how to achieve this specific, then look at our launch article, which discussed in depth digest_loop operation. To create this bind, we use ng-model instruction property on the text input box, like this: \u0026 lt; div ng-controller = \u0026 quot; MyController \u0026 quot; \u0026 gt; \u0026 lt; input type <a href="http://www.nikemaxto.org/nike-free-run-3-c-50.html">Nike Free Run 3</a> = \u0026 quot; text \u0026 quot; ng-model = \u0026 quot; person.name \u0026 quot; placeholder = \u0026 quot; Enter your name \u0026 quot; / \u0026 gt; \u0026 lt; h5 \u0026 gt; Hello {{person.name}} \u0026 lt; / h5 \u0026 gt; \u0026 <a href="http://www.nikemaxto.org/air-max-2011-womens-purple-grey-p-50.html">Air Max 2011 Womens Purple Grey</a> lt; / div \u0026 gt; now we have established good a data binding (yes, It's that easy), to see how to change the model view it: Try: When you enter in the text box, the following names are automatically changed, which shows the direction of our data binding: from view to model. We can also change the model in our (client) background, <a href="http://www.nikemaxto.org/nike-free-run-3-nike-free-run-3-women-c-50_52.html">Nike Free Run 3 Women</a> see this change is automatically reflected in the front. To demonstrate this process, let us write MyController the model a timer function, a data update on the $ scope. The following code, we have to create the timer function, it will be timed per second (like clockwork as), and update the clock on the variable data $ scope: app.controller ('MyController', function ($ scope) { $ scope.person = {name: \u0026 quot; Ari Lerner \u0026 quot;}; var updateClock = function () {$ scope.clock = new Date ();}; var timer = setInterval (function () {$ scope $ apply (updateClock. );}, 1000); updateClock ();}); You can see that when we change the data model of the clock variables, view is automatically updated to reflect this change. Braces we can simply let the value of clock variable is displayed in view in: \u0026 lt; div ng-controller = \u0026 quot; MyController \u0026 quot; \u0026 gt; \u0026 lt; h5 \u0026 gt; {{clock}} \u0026 lt; / h5 \u0026 gt; \u0026 lt; / div \u0026 gt ; see: {{clock}} Interactive Data Binding in front of us on the text entry box. Please note that the data binding is not limited to only the data, we can also use bound call $ scope of functions (already mentioned this before). Pair of buttons, links, or any other DOM element, <a href="http://www.nikemaxto.org/nike-free-run-3-nike-free-run-3-women-c-50_52.html">Nike Free Run 3 Women</a> we can use another command properties to achieve binding: ng-click. This ng-click mouse click event instruction DOM elements (ie mousedown browser events) bound to a method, when a browser on the DOM element triggers mouse click events, this method is bound to be called. To keep up with an example similar to this binding code is as follows: \u0026 lt; div ng-controller = \u0026 quot; DemoController \u0026 quot; \u0026 gt; \u0026 lt; h4 \u0026 gt; The simplest adding <a href="http://www.nikeaaaa.org/586590300-nike-kobe-8-system-elite-gc-poison-green-superhero-outlet-p-695.html">586590-300 Nike Kobe 8 System Elite GC Poison Green Superhero Outlet</a> machine ever \u0026 lt; / h4 \u0026 gt; \u0026 lt; button ng-click = \u0026 quot; add ( 1) \u0026 quot; class = \u0026 quot; button \u0026 quot; \u0026 gt; Add \u0026 lt; / button \u0026 gt; \u0026 lt; button ng-click = \u0026 quot; subtract (1) \u0026 quot; class = \u0026 quot; button \u0026 quot; \u0026 gt; Subtract \u0026 lt; / button \u0026 gt; \u0026 lt; h4 \u0026 gt; Current count: {{counter}} \u0026 lt; / h4 \u0026 gt; \u0026 lt; / div \u0026 gt; either button or link will be bound to the controller that contains them DOM elements on every $ scope objects, when they are a mouse click, Angular would call the appropriate method. Note that when we tell Angular To call what method we will string the method name written inside quotation marks. app.controller ('DemoController', function ($ scope) {$ scope.counter = 0; $ scope.add = function (amount) {$ scope.counter + = amount;}; $ scope.subtract = function (amount) {$ scope.counter - = amount;};}); see: data binding and AJAX interactive myApp in the previous example, the view of a button we were just learned data binding, to play the PlayerController the play button bindings methods (same, back stop the stop button binding method). AJAX In the last tutorial, we refer to the audio files stored on a local, it gives us a static NPR file instead of a dynamic <a href="http://www.nikeaaaa.org/597806400-nike-lebron-x-ext-qs-denimpink-outlet-p-409.html">597806-400 Nike LeBron X EXT QS Denim-Pink Outlet</a> NPR feed. NPR in our applications, we will populate the list with $ http to our news file playable. Angular.js native support for AJAX, thus we have gained the ability with one or more servers send requests back and forth. The ability of such a client application that we want to create is crucial, because this application requires the exchange with the server, access and update data. Angular.js by a service support AJAX (In later chapters we will discuss this service), this service is called $ http services. All Angular.js core services are using $ prefix, this point before the $ scope service where we've seen. The $ http service is extremely flexible and gave us a number of ways to <a href="http://www.nikeaaaa.org/">Air Jordan Outlet</a> call the AJAX service. To ensure this tutorial easy <a href="http://www.lvniker.org/category-17_18.html">Air Jordan  Heel</a> to understand, we focus on the easiest way. After more advanced sections we will introduce further $ http services. Before delving into too much detail, let us first create a service request with $ http: $ http ({method: 'JSONP', url: 'http://api.openbeerdatabase.com/v1/beers.json?callback= JSON_CALLBACK '}). success (function (data, status, headers, config) {// data contains the response // status <a href="http://www.nikemaxto.org/nike-free-run-3-nike-free-run-3-women-c-50_52.html">Nike Free Run 3 Women</a> is the HTTP status // headers is the header getter function // config is the object that was used to create the HTTP request}) error (function (data, status, headers, config) {}); Try:. $ http Angular.js service is one of the core services, and it helps us through the XMLHttpRequest object or JSONP and remote HTTP services exchange. Note that as intact as in the example above plus the following string callback = JSON_CALLBACK, Angular.js you will be responsible for handling JSONP request, will replace JSON_CALLBACK into an appropriate callback function. $ Http service is a function: it accepts a set target, which specifies how to create HTTP requests; it returns a commitment (* The JavaScript programming promise asynchronous mode), which provides two methods: success methods <a href="http://www.nikeaaaa.org/nike-lebron-10x-c-2.html">Nike Lebron 10(X)</a> and error method. To obtain a list of audio <a href="http://www.nikemaxto.org/">Nike Air Max</a> files can be played, so we send a request to NPR's API. First, you need to register in order to obtain a pour NPR API key. Http://www.npr.org/templates/reg/ go to their website. (Author here with Angular.js do a load of NPR with iFrame registration form, see below, or go directly to the original English text view). Write down your API key, we need it soon. Now we want to set our PlayController to call $ http service, retrieve the audio files. Just like we do, let us call the $ http services to create a request, this time in <a href="http://www.nikeaaaa.org/585388083-antinerf-nike-kd-v-elite-outlet-p-820.html">585388-083 Anti-Nerf Nike KD V Elite Outlet</a> order to obtain all the audio files. We want the service to start when controller is instantiated, so we just need to put this method directly in the controller function (this function will be called when the controller is created), like this: var apiKey = 'YOUR_KEY', nprUrl = 'http://api.npr.org/query?id=61\u0026amp;fields=relatedLink,title,byline,text,audio,image,pullQuote,all\u0026amp;output=JSON';app.controller('PlayerController', function ($ scope, $ http) {// Hidden our previous section's content // construct our http request $ http ({method: 'JSONP', url: nprUrl + '\u0026 amp; apiKey =' + apiKey + '\u0026 amp; callback = JSON_CALLBACK . '}) success (function (data, status) {// Now we <a href="http://www.lvniker.org/">2015 Nike Free 5.0</a> have a list of the stories (data.list.story) // in the data object that the NPR API // returns in JSON that looks like: / / data: {\u0026 quot; list \u0026 quot ;: {// \u0026 quot; title \u0026 quot ;: ... // \u0026 quot; story \u0026 quot ;: [// {\u0026 quot; id \u0026 quot ;: ... // \u0026 quot; title \u0026 quot ;: ...} ) .error (function (data, status) {// Some error occurred}); now we have a list of audio files in a function where data success;}). The success callback function, this list is stored in $ scope objects, so we simply put it in a bind on $ scope objects:. // From above}) success (function (data, status) {// Store the list of stories on the scope // from the NPR API response object (described above) $ scope.programs = data.list.story;.}) error (function (data, status) {// Some error occurred now, with Just the same, just visit programs in view, we will be able to access the data in the view where you see, it is one of the benefits of using <a href="http://www.lvniker.org/category-17_29.html">Nike  Dunk Heels</a> Angular.js, when the commitment mode and return to a successful result, Angular.js will automatically put the result fill into your view in the \u0026 lt; div ng-controller = \u0026 quot; PlayerController \u0026 quot; \u0026 gt; {{programs}} \u0026 lt; / div \u0026 gt; try: In the next chapter, we will discuss how meaningful in our view miles Show the data objects, using some Angular.js carrying instructions (and a little more what) in this series can be downloaded from the <a href="http://www.nikeaaaa.org/nike-lebron-10x-c-2.html">Nike Lebron 10(X)</a> official code base on github:. https: //github.com/auser/ng-newsletter-beginner . -series To save this code libraries to local, make sure to install the git, clone this code library, then check out one of the part3 branch: git clone https://github.com/auser/ng-newsletter-beginner- series.gitgit checkout -b part3seven steps from novice to expert Angular.JS (3): data binding and AJAX
]]>
</description>
<link>https://ameblo.jp/combing1/entry-12070756155.html</link>
<pubDate>Tue, 08 Sep 2015 11:36:33 +0900</pubDate>
</item>
<item>
<title>interesting article today is Hello</title>
<description>
<![CDATA[ Last year, I issued an article 'Python programmers <a href="http://www.nikemaxto.org/air-max-2011-womens-purple-black-grey-p-48.html">Air Max 2011 Womens Purple Black Grey</a> evolutionary history', the article is an example <a href="http://www.lvniker.org/">2015 Nike Free 5.0</a> factorial, citing a variety of programmers writing code that, even including web designers. This interesting article today is Hello World, for example, cited <a href="http://www.lvniker.org/product-48.html">New Nike Free 5.0 V4 Purple Yellow Shoes</a> in the various stages of the programmer's code. In addition, this has a certain history, you should have at least 10 years. <a href="http://www.nikeaaaa.org/">Air Jordan Outlet</a> PS: highlights is always in the final. :) Junior High / High School (Note: Basic) 10 PRINT \u0026 quot; HELLO WORLD \u0026 quot; 20 END freshman (Note: Pascal). Program Hallo (output); begin writeln ('! Hello, world') end junior / senior ( defun hello (print (cons 'Hello (list' World)))) entry in the first year #include \u0026 lt; stdio.h \u0026 gt; void main (void) {char * message [] = {\u0026 quot; Hello \u0026 quot ;, \u0026 quot; World \u0026 quot ;}; int i; for (i = 0; i \u0026 lt; 2; ++ i) printf (\u0026 quot;% s \u0026 quot ;, message [i]); printf (\u0026 quot; \\ n \u0026 quot;);} entry did a few years #include \u0026 lt; iostream.h \u0026 gt; #include \u0026 lt; string.h \u0026 gt; class string {private: int size; char * ptr; string (): size (0), ptr (new char [1]) {ptr [0] = 0;} string (const string \u0026 amp; s): size (s.size) {ptr = new char [size + 1]; strcpy (ptr, s.ptr);} ~ string () {delete [] ptr; } friend ostream \u0026 amp; operator \u0026 lt; \u0026 lt; (ostream \u0026 amp ;, const string \u0026 amp;); string \u0026 <a href="http://www.nikemaxto.org/nike-free-run-3-nike-free-run-3-women-c-50_52.html">Nike Free Run 3 Women</a> amp; operator = (const char *);}; ostream \u0026 amp; operator \u0026 lt; \u0026 lt; (ostream \u0026 amp; stream, const string \u0026 amp ; s) {return (stream \u0026 lt; \u0026 lt; s.ptr);} string \u0026 amp; string :: operator = (const char * chrs) {if (this = \u0026 amp;! chrs) {delete [] ptr; size = strlen (chrs); ptr = new char [size + 1]; strcpy (ptr, chrs);} return (* this);} int main () {string str; str = \u0026 quot; Hello World \u0026 quot ;; cout \u0026 lt; \u0026 lt; str \u0026 lt; \u0026 lt; endl; return (0);} master programmer [uuid (2573F8F4-CFEE-101A-9A9F-00AA00342820)] library LHello {// bring in the master library importlib (\u0026 quot; actimp.tlb \u0026 quot;); importlib (\u0026 quot; actexp.tlb \u0026 quot;); // bring in my interfaces #include \u0026 quot; pshlo.idl \u0026 quot; [uuid (2573F8F5-CFEE-101A-9A9F-00AA00342820)] cotype THello {interface IHello; interface IPersistFile;};} ; [exe, uuid (2573F890-CFEE-101A-9A9F-00AA00342820)] module CHelloLib {// some code related header files importheader (\u0026 lt; windows.h \u0026 gt;); importheader (\u0026 lt; ole2.h \u0026 gt;); importheader (\u0026 lt ; except.hxx \u0026 gt;); importheader (\u0026 quot; pshlo.h \u0026 quot;); importheader (\u0026 quot; shlo.hxx <a href="http://www.lvniker.org/product-58.html">New Nike Free Run 3 Shoes Silver 3</a> \u0026 quot;); importheader (\u0026 quot; mycls.hxx \u0026 quot;); // needed typelibs importlib (\u0026 quot; actimp.tlb \u0026 quot;) ; importlib (\u0026 quot; actexp.tlb \u0026 quot;); importlib (\u0026 quot; thlo.tlb \u0026 quot;); [uuid (2573F891-CFEE-101A-9A9F-00AA00342820), aggregatable] coclass CHello {cotype THello;};}; #include \u0026 quot ; ipfix.hxx \u0026 quot; extern HANDLE hEvent; class CHello: public CHelloBase {public: IPFIX (CLSID_CHello); CHello (IUnknown * pUnk); ~ CHello (); HRESULT __stdcall PrintSz (LPWSTR pwszString); private: static int cObjRef;}; #include \u0026 lt; windows.h \u0026 gt; #include \u0026 lt; ole2.h \u0026 gt; #include \u0026 lt; stdio.h \u0026 gt; #include \u0026 lt; stdlib.h \u0026 gt; #include \u0026 quot; thlo.h \u0026 quot; #include \u0026 quot; <a href="http://www.nikemaxto.org/">Nike Air Max</a> pshlo.h \u0026 quot; #include \u0026 quot; shlo.hxx <a href="http://www.nikeaaaa.org/adidas-adipure-crazyquick-collegiate-royalwhite-q33301-outlet-p-693.html">adidas adiPure Crazyquick Collegiate Royal/White Q33301 Outlet</a> \u0026 quot; #include \u0026 quot; mycls.hxx \u0026 quot; int CHello :: cObjRef = 0; CHello :: CHello (IUnknown * pUnk): CHelloBase (pUnk) {cObjRef ++; return;} HRESULT __stdcall CHello :: PrintSz (LPWSTR pwszString) {printf (\u0026 quot;% ws \u0026 quot ;, pwszString); return (ResultFromScode (S_OK));} <a href="http://www.nikeaaaa.org/nike-kobe-viii-c-21.html">Nike Kobe VIII</a> CHello :: <a href="http://www.lvniker.org/product-53.html">New Nike Free 5.0 V4 Grey Lime Trainers</a> ~ CHello (void) {// when the object count goes to zero, stop the server cObjRef--; if (cObjRef == 0) PulseEvent (hEvent); return;} #include \u0026 lt; windows.h \u0026 gt; #include \u0026 lt; ole2.h \u0026 gt; #include \u0026 quot; pshlo.h \u0026 quot; #include \u0026 quot; shlo.hxx \u0026 quot; #include \u0026 quot; mycls.hxx \u0026 quot; HANDLE hEvent; int _cdecl main <a href="http://www.nikeaaaa.org/nike-lebron-108-c-45.html">Nike Lebron 10.8</a> (int argc, char * argv []) {ULONG ulRef; DWORD dwRegistration; CHelloCF * pCF = new CHelloCF (); hEvent = CreateEvent (NULL, FALSE, FALSE, NULL); / / Initialize the OLE libraries CoInitializeEx (NULL, COINIT_MULTITHREADED); CoRegisterClassObject (CLSID_CHello, pCF, <a href="http://www.lvniker.org/category-17_18.html">Air Jordan  Heel</a> CLSCTX_LOCAL_SERVER, REGCLS_MULTIPLEUSE, \u0026 amp; dwRegistration); // <a href="http://www.lvniker.org/product-48.html">New Nike Free 5.0 V4 Purple Yellow Shoes</a> wait on an event to stop WaitForSingleObject (hEvent, INFINITE); // revoke and release the class object CoRevokeClassObject (dwRegistration); ulRef = pCF- \u0026 gt; Release (); // Tell OLE we are going away CoUninitialize ();. return (0);} extern CLSID CLSID_CHello; extern UUID LIBID_CHelloLib; CLSID CLSID_CHello = {/ * 2573F891- CFEE-101A-9A9F-00AA00342820 * / 0x2573F891, 0xCFEE, 0x101A, {0x9A, 0x9F, 0x00, 0xAA, 0x00, 0x34, 0x28, 0x20}}; UUID LIBID_CHelloLib = {/ * 2573F890-CFEE-101A-9A9F-00AA00342820 * / 0x2573F890, 0xCFEE, 0x101A, {0x9A, 0x9F, 0x00, 0xAA, 0x00, 0x34, 0x28, 0x20}}; #include \u0026 lt; windows.h \u0026 gt; #include \u0026 lt; ole2.h \u0026 gt; #include \u0026 lt; stdlib.h \u0026 gt; #include \u0026 lt; string.h \u0026 gt; #include \u0026 lt; stdio.h \u0026 gt; #include \u0026 quot; pshlo.h \u0026 quot; #include \u0026 quot; shlo.hxx \u0026 quot; #include \u0026 quot; clsid.h \u0026 quot; int _cdecl main (int argc, char * argv []) {HRESULT hRslt; IHello * pHello; ULONG ulCnt; IMoniker * pmk; WCHAR wcsT [_MAX_PATH]; WCHAR wcsPath [2 * _MAX_PATH]; // get object path wcsPath <a href="http://www.nikeaaaa.org/585388083-antinerf-nike-kd-v-elite-outlet-p-820.html">585388-083 Anti-Nerf Nike KD V Elite Outlet</a> [0] = '\\ 0'; wcsT [0 ] = '\\ 0'; if (argc \u0026 gt; 1) {mbstowcs (wcsPath, argv [1], strlen (argv [1]) + 1); wcsupr (wcsPath);} else {fprintf (stderr, \u0026 quot; Object path must be specified \\ n \u0026 quot;); return (1);} // get print string if (argc <a href="http://www.nikeaaaa.org/585388083-antinerf-nike-kd-v-elite-outlet-p-820.html">585388-083 Anti-Nerf Nike KD V Elite Outlet</a> \u0026 gt; 2) mbstowcs (wcsT, argv [2], strlen (argv [2]) + 1); else wcscpy ( wcsT, L \u0026 quot; Hello World \u0026 quot;); printf (\u0026 quot; Linking to object% ws \\ n \u0026 quot ;, wcsPath); printf (\u0026 quot; Text String% ws \\ n \u0026 quot ;, wcsT); // Initialize the OLE libraries hRslt = CoInitializeEx ( NULL, COINIT_MULTITHREADED); if (SUCCEEDED (hRslt)) {hRslt = CreateFileMoniker (wcsPath, \u0026 amp; pmk); if (SUCCEEDED (hRslt)) hRslt = BindMoniker (pmk, 0, IID_IHello, (void **) \u0026 amp; pHello) ; if (SUCCEEDED (hRslt)) {// print a string out pHello- \u0026 gt; PrintSz (wcsT); Sleep (2000); ulCnt = pHello- \u0026 gt; Release ();} else printf (\u0026 quot; Failure to connect, status :% lx \u0026 quot ;, hRslt); // Tell OLE we are going away CoUninitialize ();} return (0);} novice hacker # / usr / local / bin / perl $ msg = \u0026 quot; Hello, world \\.!. n \u0026 quot ;; if ($ # ARGV \u0026 gt; = 0) {while (defined ($ arg = shift (ARGV))) {$ outfilename = $ arg; open (FILE, \u0026 quot; \u0026 gt; \u0026 quot;. $ outfilename) | | die \u0026 quot; Can not write $ arg: $ \\ n \u0026 quot ;; print (FILE $ msg); close (FILE) || die \u0026 quot; Can not close $ arg: $ \\ n \u0026 quot ;;}} else {!! print ($ msg);} 1; an experienced hacker #include \u0026 lt; stdio.h \u0026 gt; #define S \u0026 quot; Hello, World \\ n \u0026 quot;? main () {exit (printf (S) == strlen (S) 0 : 1);} into the line worked for some years hacker% cc -o a.out ~ / src / misc / hw / hw.c% a.out hacker guru% echo \u0026 quot; Hello, world \u0026 quot; 10 PRINT novice manager \u0026 quot; HELLO WORLD \u0026 quot; 20 END middle managers mail -s \u0026 quot; Hello, world \u0026 quot;. '. Hello, world' bob @ b12 Bob, can you help me write the output of a program it? I tomorrow. Thank you - senior managers% zmail jimJim, this afternoon I would output 'Hello, world.' Program! CEO / CEO% letter letter: Command not found% mail To:. ^ X ^ F ^ C% help mail help: Command not found% damn:.!! Event unrecognized% logoutinteresting article: the evolutionary history of programmers
]]>
</description>
<link>https://ameblo.jp/combing1/entry-12070755993.html</link>
<pubDate>Tue, 08 Sep 2015 11:35:58 +0900</pubDate>
</item>
<item>
<title>out occasionally feel a voice behind</title>
<description>
<![CDATA[ I was born in Xi'an rural family, childhood learning in general, we remember the kindergarten, students are carrying home to their own sewing cloth bags, classroom <a href="http://www.nikeaaaa.org/597806400-nike-lebron-x-ext-qs-denimpink-outlet-p-409.html">597806-400 Nike LeBron X EXT QS Denim-Pink Outlet</a> windows with white snakeskin child in rural areas, to the north in winter the wind blows, the classroom because no table bench, but the wind whistling through the window. From primary school I was especially envious of those who study special good students, envious of their fast problem-solving speed, every time there are many like me who are desperately very hard, but always mediocre, so we are doing everyday life problem, problem-solving, high scores, you gotta every day than others, gradually I feel since you can only mediocre life, learning good learning good student, to find a good job, earn higher wages, especially in the Our deepest impression is the college entrance examination, three days a final <a href="http://www.nikeaaaa.org/579756-403-purple-white-nike-black-mamba-24-kobe-sale-p-697.html">579756 403 Purple White Nike Black Mamba 24 Kobe Sale</a> exam or two days a quiz, we mind just remember the college entrance examination was given a test set for life of fixed ideas. Unfortunately, although I have every night open night bus, the entrance still get the job, fear most is the whole summer to go out, even to go out occasionally feel a voice behind the college entrance examination to ask you how many points. A decade ago and other people, like I embarked on a study life north drift, the school covers an area of ​​300 acres that we, the most distinctive is our school's south gate is the imitation <a href="http://www.nikemaxto.org/nike-free-run-3-c-50.html">Nike Free Run 3</a> of Tsinghua Simon, North Gate is modeled on the North Simon built, Office of the State University no spacious dormitory, no library and bright, we went just to get a diploma, when the end of each test, I do not know what to learn these things, whether graduates find work. When I and other students for their future employment confusion among each summer home, all from the same village, hear how spacious they made fiction quarters, the college, what kind of professional, I listened to my heart I felt quite envious. Someone asked me, I said at our profession, others four mutual right, expressed surprise that there is the professional name it? 2005 a computer science graduate brothers own business, do site outsourcing, then we know called php written web server scripting language syntax is similar to his university computer programming c language, the brothers summer 2006 point to leave here after the company office We collectively the senior classes of students renting a place to rent down, it is an old courtyard of the house, useless Heating, Internet use CRC 1M, 30, together with more than one person. I was at home because of the difficulties, a cousin of his was only clocked at 800mhz cpu Celeron computers lend me to learn php, our collective in a small area of ​​the house shared learning program, the only self-made cold winter heating stove encountered programming problems we must first ask of your mother, Google. All learning spaces, all programming questions that we must strive to overcome, although the conditions are not as good as the students at the University of the State Office, but we are free to think, their learning, their own to overcome a variety of programming problems. As with all North drift survive, we are employment problems, because this door website self-programming language, learned the Internet earlier thinking, so there looking for work are posted on the Internet, then the interview. I remember in 2007 when many Internet companies to do the site, but because it was not opened Office of the State University of php programming courses, our school was to learn that many of the <a href="http://www.nikemaxto.org/nike-free-run-3-nike-free-run-3-women-c-50_52.html">Nike Free Run 3 Women</a> students are programming languages. So because of this we have a number of schools at the time to become well-known Internet companies, Internet companies to interview job, we found more of the interviewer asks you questions for this programming language and experience, and do not care what your qualifications, what school background After that, go back and listen to interview the students said, to my surprise is actually little business to recruit people ask you how your school education background. I <a href="http://www.nikeaaaa.org/nike-lebron-108-c-45.html">Nike Lebron 10.8</a> was also quite hard to find a job, after all, no school self-study practical experience, people see you do not have combat experience, will often refuse you, then we can enter Sina, Baidu, Sohu and other life as a dream, it was not good luck into what was then a small company, and now the industry is now very well-known Internet companies, it is that we now often four to fight 360, since it entered the yard farmers (IT programming migrant workers) lives. Enter code farmers life flash is 7 years, I work with many of them around the various graduate schools colleagues, there are Tsinghua University, Peking University and so on. Since leaving school to enter the work environment feel relatively free, every day more nine to five life programming, in order to improve their programming skills, often visit some famous sites programming in the network communicate with each other with a lot of technical Daniel, need some With programming information can be found <a href="http://www.nikeaaaa.org/adidas-adipure-crazyquick-collegiate-royalwhite-q33301-outlet-p-693.html">adidas adiPure Crazyquick Collegiate Royal/White Q33301 Outlet</a> online, and with the popularity of the network, greatly develop their own vision and programming capacity, but also let me feel a huge difference <a href="http://www.lvniker.org/">2015 Nike Free 5.0</a> gradually learning the freedom <a href="http://www.nikeaaaa.org/nike-lebron-11-elite-c-20.html">Nike Lebron 11 Elite</a> and traditional universities. Everybody on the network no qualifications and elite grudges, communication problems of equality and freedom for everyone, problems encountered do not know how you can go search for some technical knowledge of cattle share some questions and answers community, because the network free to share let me also from the outstanding people who learn so that they can continue to be confident, believe that education and the college entrance examination can not determine your life. The last 10 years <a href="http://www.nikeaaaa.org/">Air Jordan Outlet</a> have the opportunity to go to an Internet company, it is my favorite, and then I also like to do in your spare time using technology user experience a good product, because the Internet face the user, while the user leaves a website is very low cost, so in the Internet industry, product, customer first. 2011 saw the 'Jobs Biography', so I woke up, had to do the product can not do data analysis and market research, to completely subvert our way of thinking to the traditional industry products. Because of his spare time in the company can use technology to do product innovation, while taking advantage of the Internet Gangster microblogging can see the books often share their own spare time in the subway to see the e-book industry chiefs recommended daily, for example innovators dilemma know subvert an industry different from other markets and channels. Many are accompanied by business innovation experience and innovation, especially in Apple's products, the traditional industrial products with a very fine sense of art, so that the product is not made people exclaim original function better, but how to use, study, sensory level to make your product more simple, convenient and fast. And since the <a href="http://www.lvniker.org/category-17_18.html">Air Jordan  Heel</a> product manager who is no longer a highly educated, intelligent people, but you must have the most stupid and ordinary people have the same thinking, because you are the vast majority of products are not highly educated, highly intelligent people of learning ʱ?? In the Internet industry's most typical case is hao123, its founder and only junior high school education, but because he could feel a lot of people around with their almost hard to the vast network of marine sites who find themselves until they were acquired or Baidu A person in the maintenance, this site is not as complex as navigation search engine technology, nor very beautiful interface, even Baidu CEO <a href="http://www.nikemaxto.org/nike-free-run-3-nike-free-run-3-women-c-50_52.html">Nike Free Run 3 Women</a> Robin Li also reflections, the easiest is the best. Let me also feel the slightest sympathy, original as you educated, high IQ, you will become very smart, clever and this gives individuals the ability to consider the complexity of the problem, and roots have been very common, so they just consider simple, so they sorted out a lot of the same people who own a lot of resonance, but also to make the most simple and easy to satisfy these products. With the freedom to learn and more time to see the expanding range of books, the heart of the growing self-confidence and ambition, particularly watched Steve Jobs speech at Stanford University passage. On the Reed College hate their courses, but dropped out to attend their favorite calligraphy lesson, learned how to grasp the word spacing and how to make a beautiful plate, and such skills Apple's first generation of computer <a href="http://www.nikemaxto.org/">Nike Air Max</a> use WordArt, Jobs said how he did not go to self-study of this course, Apple would not have so rich font. And this is the 'cause' relationship and 'fruit', the causality can not be uncertain, so only we found in Muran back, but the connection will live in the future, <a href="http://www.nikemaxto.org/nike-free-run-3-c-50.html">Nike Free Run 3</a> I believe causality, will give you the confidence to follow their wishes, even deviant, never stop, the only way to learn something. Beginning last year, his heart is not only the small volcanic eruptions, step by step every day life and now I really want? Seventeen start, looked at his parents a year old, because the family do chili business nearly 20 years, is well known in the local , after the New <a href="http://www.nikemaxto.org/nike-free-run-3-nike-free-run-3-women-c-50_52.html">Nike Free Run 3 Women</a> Year and that they intend to use their years of experience with the help of home sales in Beijing Liangpi dedicated pepper, after the New Year I actively preparing themselves trekking in the Haidian district on foot to find shops selling Liangpi <a href="http://www.nikemaxto.org/nike-free-50-v2-nike-free-50-v2-women-c-47_48.html">Nike Free 5.0 V2 Women</a> good chili, found disappointing scene , many businesses have to reduce costs, with pepper poor, while the other just want a low price, almost a full day walking more than 50 kilometers, at night dragged his exhausted body, one day experience stunned me, suddenly disappointed ʱ?? This is a deep spirit among their own mind suddenly springing a bold idea Liangpi want, since the family chili is very good, but we there is also the hometown of the famous bran Qin town, our town throughout Shaanxi no wonder vinegar, so Based on this they have a strong incentive to do this, inspirational parents can see their intentions in their lifetime in the business for decades chili more people know. In order to do their own to call home Liangpi Liangpi recipe to a month's time almost every day to eat Liangpi, the house is full of the taste of spices, although the idea is good, but did not find the shop they want to be so simple, store, shop use stove, etc., every day you need to be surrounded by all the trivial little problem, every day the birth of new problems, although very tired every day, but I hardly slept only a few hours a day, but the quality of sleep sitting relaxed than ever to run the company Mile High a lot, a whole day to get up early the next day the spirit is still high, and its own powerful spirit gradually realized that this stuff comes from their own interests. Strong interest in order to drive their own good, to make their own setbacks will not back down.code Agricultural story: a resignation programmers start selling Liangpi
]]>
</description>
<link>https://ameblo.jp/combing1/entry-12070755856.html</link>
<pubDate>Tue, 08 Sep 2015 11:35:29 +0900</pubDate>
</item>
<item>
<title>then let AngularJS to help you manipulate</title>
<description>
<![CDATA[ AngularJS redefines the front-end application development <a href="http://www.nikemaxto.org/air-max-2011-womens-purple-black-grey-p-48.html">Air Max 2011 Womens Purple Black Grey</a> approach. Faced with the boundaries between HTML and <a href="http://www.nikemaxto.org/">Nike Air Max</a> JavaScript, it not only does not hang back, but the front attack, some effective solutions. Many front-end application development framework, such as Backbone, EmberJS, require developers to inherit this framework several specific JavaScript objects. This approach has its strengths, but it unnecessarily pollutes the object space developers own code, but also requires developers to understand the memory of those abstract objects. Nevertheless we accepted this approach, because the network was originally designed not provide interactivity we need today, so we need the framework to help us bridge the gap between JavaScript and HTML. AngularJS fill up this gap. And with it, you do not have 'direct' control DOM, DOM as long as you note the metadata (ie AngularJS in the directive are), then let AngularJS to help you manipulate the DOM. Meanwhile, AngularJS does not depend (without prejudice) any other framework. You can even other based framework to develop AngularJS applications. It is so easy to use. Listen very powerful? It is very powerful. Through this seven-step series, we'll take you to write powerful start with AngularJS application - whether you have not been exposed to before. Follow us, we will teach you to become an expert-level AngularJS developers. But first we have to figure out: when to use AngularJS? AngularJS is a MV * frame, the most suitable for the development of the client's single-page applications. It is not a function library, but to develop the <a href="http://www.nikemaxto.org/air-max-2012-black-navy-blue-white-p-52.html">Air Max 2012 Black Navy Blue White</a> framework of dynamic web pages. It focuses on extending HTML features, provide dynamic data binding (data binding), and it can work with other frameworks (eg jQuery) harmony. If you want to develop a single-page application, AngularJS is selected you on the choice. Gmail, Google Docs, Twitter and such applications Facebook, are able to play AngularJS strengths. But game developers such as a large number of DOM manipulation, or simply need a high speed applications, it is not AngularJS comes up. Read the above description, it is to be understood that you learn AngularJS first topic: 1. How to start developing an application in this tutorial series, we will develop an NPR (National Public Radio) broadcast audio <a href="http://www.nikeaaaa.org/585388083-antinerf-nike-kd-v-elite-outlet-p-820.html">585388-083 Anti-Nerf Nike KD V Elite Outlet</a> player it can display the latest story in the broadcast program Morning Edition, and play them in our browser. Complete version of the Demo can be seen here: http: //www.ng-newsletter.com/code/beginner_series/) Write AngularJS application, we will write together and show the level of interactive levels. The beginning may make you feel a bit strange, especially when you used other frameworks framework of these two levels when treated separately. However, once you touch the know-how, AngularJS wording becomes your second nature. Let us look at a use of the most simple application AngularJS development:! \u0026 Lt; doctype html \u0026 gt; \u0026 lt; html ng-app \u0026 gt; \u0026 lt; head \u0026 gt; \u0026 lt; script src = \u0026 quot; https: //ajax.googleapis.com/ajax /libs/angularjs/1.0.7/angular.min.js\u0026quot;\u0026gt;\u0026lt;/script\u0026gt; \u0026 lt; / head \u0026 gt; \u0026 lt; body \u0026 gt; \u0026 lt; div <a href="http://www.lvniker.org/category-17_30.html">Nike  Heels Boots</a> \u0026 gt; \u0026 lt; input type = \u0026 quot; text \u0026 quot; ng-model = \u0026 quot; yourName \u0026 quot; placeholder = \u0026 quot; Enter a name here \u0026 quot; \u0026 gt; \u0026 lt; h1 \u0026 gt;! Hello, {{yourName}} \u0026 lt; / h1 \u0026 gt; \u0026 lt; / div \u0026 gt; \u0026 lt; / body \u0026 gt; \u0026 lt; / html \u0026 gt; (this interaction example can Experience in the English original about it.) You see, effortlessly, you get a two-way data binding. Two-way data binding, which means you can change the data in the background, and these changes will immediately magically appear automatically on the View (in fact there is no magic here, we'll be'll see how this is achieved.) The same , if you make changes to the View (such as write something in the text box), your Model will be <a href="http://www.nikeaaaa.org/adidas-adipure-crazyquick-collegiate-royalwhite-q33301-outlet-p-693.html">adidas adiPure Crazyquick Collegiate Royal/White Q33301 Outlet</a> automatically updated. So, we in the end what has been done in the application? ng-appng-model = 'yourName' {{yourName}} First, we write the most important (and most easily forgotten) part: \u0026 lt; html \u0026 gt; ng-app attribute element. Less of this property, AngularJS would not be able to work. Secondly, we tell AngularJS, to 'yourName' on the page of the Model two-way data binding. Thirdly, we told AngularJS, in '{{yourName}}' appears on the command template 'yourName' the Model data. So much. We have developed a dynamic application, would have to spend a lot more time and code to develop applications: Here, we do not need to write any two-way data-binding rules to update the model and the view does not need to write any code, even do not need to write any model-- In fact, we simply have not begun to touch JavaScript. We do not need to write code, until we want to develop more far personalized application behavior. You will see, all of these are due <a href="http://www.nikeaaaa.org/">Air Jordan Outlet</a> to a strong AngularJS design. Develop your application this section we look at an application, we call it 'myApp'. Follow the tutorial, you can use <a href="http://www.nikemaxto.org/nike-jordan-melo-b-mo-c-53.html">Nike Jordan Melo B Mo</a> git to clone the code base for this tutorial series (see specific methods of operation), or follow the instructions to write your own code. Create an index.html file, as follows: \u0026 lt; doctype html \u0026 gt; \u0026 lt; html ng-app = \u0026 quot; myApp \u0026 quot; \u0026 gt; \u0026 lt; head \u0026 gt; \u0026 lt; script src = \u0026 quot; https:! //ajax.googleapis.com/ ajax / libs / angularjs / 1.0.7 / angular.min.js \u0026 quot; <a href="http://www.nikemaxto.org/air-max-2011-womens-grey-green-p-49.html">Air Max 2011 Womens Grey Green</a> \u0026 gt; \u0026 lt; / script \u0026 gt; \u0026 lt; script src = \u0026 quot; js / main.js \u0026 quot; \u0026 gt; \u0026 lt; / script \u0026 <a href="http://www.lvniker.org/product-43.html">Mens Nike Free Run 3 Shoes Black 3</a> gt; \u0026 lt; / head \u0026 gt; \u0026 lt; body \u0026 gt; \u0026 lt; / body \u0026 gt; \u0026 lt; / html \u0026 gt; then create a folder js, and then create a file in which main.js. Git commands used are as follows: mkdir jstouch js / main.js this HTML page will load two JavaScript files: AngularJS and our application: main.js. All <a href="http://www.nikeaaaa.org/nike-lebron-10x-c-2.html">Nike Lebron 10(X)</a> the work we do in this section, almost all in this main.js file. To expand and personalize <a href="http://www.nikemaxto.org/air-max-2011-womens-red-p-51.html">Air Max 2011 Womens Red</a> our application, we have to write JavaScript code. All JS code, we will write in main.js file. angular.module To define a AngularJS application, we served to define a AngularJS module (angular.module). The so-called AngularJS module, in fact, a collection of functions, when the application is activated, these functions will be executed (this tutorial series, we do not intend to set up and run section describes the application, which will be discussed in a later tutorial .) Next, we are in main.js file to define our AngularJS module: var app = angular.module ('myApp', []); with this line of code, we have created is called 'myApp' the AngularJS module ʱ?? (Do not worry for now here's the second argument - the empty array [], and then we will come back to discuss it.) Now we want on the page instantiated our myApp module and tell AngularJS, our applications run in the DOM Which part of the structure. Instantiate a module on the page, we use this command ng-app, it's there to tell AngularJS, our modules have that part of the DOM structure. Incoming our application name as ng-app command values, we can instantiate the index.html page of our application (module): \u0026 lt; html ng-app = \u0026 quot; myApp \u0026 quot; \u0026 gt; refresh the page, now AngularJS It will boot our myApp. We can put ng-app provided on any DOM element, then that element will be the place to start AngularJS run our applications. With this step, we can write AngularJS applied to any page, even if other parts of the page are not AngularJS write applications. \u0026 Lt; h2 \u0026 gt; I am not inside an AngularJS app \u0026 lt; / h2 \u0026 gt; \u0026 lt; div ng-app = \u0026 quot; embeddedApp \u0026 quot; \u0026 gt; \u0026 lt; h3 \u0026 gt; Inside an AngularJS app \u0026 lt; / h3 \u0026 gt; \u0026 lt; / div \u0026 gt; If an application can control the entire page, then you can put ng-app instructions written directly on the html element. Defined our application, we can begin to create its other part. We will <a href="http://www.lvniker.org/category-17_29.html">Nike  Dunk Heels</a> use the $ scope to create, and this is one of the most important concepts AngularJS. We will further study $ scope services in this second part of the seven-step series. Well, now we've got a AngularJS basic structural applications, it will become the starting point of our NPR audio player application. The git repository newbie tutorial series code here: https:. //github.com/auser/ng-newsletter-beginner-series To download <a href="http://www.nikeaaaa.org/nike-lebron-10x-c-2.html">Nike Lebron 10(X)</a> this code library to the local, first make sure that you have installed git, then clone the git repository , check out the branch part1: git clone https://github.com/auser/ng-newsletter-beginner-series.git git <a href="http://www.lvniker.org/">2015 Nike Free 5.0</a> checkout -b part1seven steps from novice to expert Angular.JS (1): How to Start
]]>
</description>
<link>https://ameblo.jp/combing1/entry-12070755746.html</link>
<pubDate>Tue, 08 Sep 2015 11:34:56 +0900</pubDate>
</item>
<item>
<title>OLTP system generates data and log</title>
<description>
<![CDATA[ Hadoop system provides an open source implementation of MapReduce computational framework, such as Yahoo!, Facebook, Taobao, China Mobile, Baidu, Tencent and other companies are carried out by means of massive data processing Hadoop. Hadoop system performance depends not only on the task scheduler allocation policy, also affected by the actual task execution after distribution efficiency, task execution often involves reading, sorting, merging, compression, and other specific written stage. HCE computing framework is an open source project aims to optimize all stages of task execution, improve the efficiency of the entire Hadoop system. Compared with the Hadoop Java framework, based on the highest MapReduce <a href="http://www.nikeaaaa.org/">Air Jordan Outlet</a> task HCE framework can save more than 30 percent of the CPU resources. 1 Hadoop ecosystem HCE computing framework in Figure 1 shows the HCE framework Hadoop ecosystem located. For OLTP systems, a user-generated Web front end through the corresponding request, the request through the middleware processing, as the data entered into the database or KV storage system, and it will produce a log. OLTP system generates data and log analysis system will be used <a href="http://www.nikeaaaa.org/597806400-nike-lebron-x-ext-qs-denimpink-outlet-p-409.html">597806-400 Nike LeBron X EXT QS Denim-Pink Outlet</a> as input for the search engines and advertising systems, daily log would be easier than TB. Logs and business data will generally be stored to a mass storage system KV HDFS file system or storage system, generally above the storage system based on MapReduce distributed computing framework. Will perform every day thousands of MapReduce jobs massive data processing, the result will be three ideas: Store in a mass storage system for later use; import for generating database <a href="http://www.nikemaxto.org/nike-free-run-3-c-50.html">Nike Free Run 3</a> reports or analysis; OLTP system as input, import Online store. MapReduce job generally consists of internal users through native clients Hadoop, Pig / DISQL language Hive data warehouse clients or submitted in three ways, the results of operations by SQL client queries. Issue more and more companies began using Hadoop and its surrounding massive data analysis system, Yahoo! And Facebook's Hadoop cluster nodes have over 10,000, and the node unabated growth trend, domestic companies such as Tencent and Baidu, also facing the same problem. Growing business needs and business data caused by cluster resource shortage is the main reason for the continuous expansion of the cluster, CPU resources (note: <a href="http://www.nikemaxto.org/air-max-2012-black-navy-blue-white-p-52.html">Air Max 2012 Black Navy Blue White</a> one of the storage resource shortage solution is open heavyweight compression (such as Facebook), which relates to CPU resources use) is one of the most scarce. To control costs, optimize the utilization of cluster resources is imperative. For distributed computing level, resource optimization there are two ways: First, to ensure maximum use of global resources through refinement of the resource scheduling, which usually involve a reasonable resource scheduling algorithms and lightweight resource isolation; the second is through optimization computing tasks and user programs to enhance the utilization of existing computing resources job. HCE computing framework focuses on the latter. Cross-platform, highly scalable, computational framework common interface also brings additional computing overhead analysis Hadoop MapReduce framework, there are trade-offs to achieve can do. MapReduce framework for efficient implementation of the Java language to ensure that its cross-platform compatibility; however, the domestic Internet companies generally use Intel x86 platform compatibility advantage is difficult to be reflected, so you can choose better Java performance but does not support cross-platform language to implement MapReduce framework. In order to maximize scalability (Extensibility), Hadoop data to achieve a multi-level process flow package, which makes the Java framework, there are some performance loss in large data processing can actually achieve a more direct route to improve the data processing efficiency. Domestic Internet companies are mostly engineers feature development using C ++ or scripting language to manipulate text, Java interfaces is too much trouble for them to do. <a href="http://www.nikemaxto.org/nike-free-run-3-nike-free-run-3-women-c-50_52.html">Nike Free Run 3 Women</a> Hadoop Streaming provides a programming interface that allows the user program can through the media - the standard input and output to and interact with data computing frameworks, namely bypassing the limitations of language, so many user tasks are started by Streaming interfaces. Advantage Streaming interface that supports multi-language development, and increase the versatility to bring the loss of performance, that is, data copy overhead pipes and Key split (approximately 2% to 5%), and better than the original ecosystem is more suitable programming language interface ʱ?? User computing framework program beyond the control task execution Figure 2 MapReduce framework in addition to the cost of a schematic framework, resource consumption computing tasks also include the user program. Shown, Hadoop Streaming and Pipes frame support as shown <a href="http://www.nikeaaaa.org/597806400-nike-lebron-x-ext-qs-denimpink-outlet-p-409.html">597806-400 Nike LeBron X EXT QS Denim-Pink Outlet</a> in Figure 2 C ++ users to develop MapReduce applications, the user starts an executable program framework, the framework and the user program, respectively, in the two processes, namely footprint. Simple analysis does not take up too much CPU resources that the user program execution time computing tasks across the proportion of small, this time, to optimize computing framework will bring more substantial benefits; however, for complex analytical procedures , the user <a href="http://www.lvniker.org/">2015 Nike Free 5.0</a> program is occupied much longer than the calculation framework, this time, to optimize computing framework brings benefits may be minimal. Thus, saving CPU resources can not be separated clusters to optimize the user program. Optimize the user's job can be divided into two levels, the higher level of unity through the inlet allows users to submit jobs, such as the use of user data warehouse Hive Hadoop MapReduce does not operate the API, the Hive internal unity do optimization, including some static or dynamic method to adjust the user's job parameters to perform tasks with minimal resources efficiently; second is to optimize the direct operation of the user's job MapReduce API, of course, also fall into this category Hive. Assume the user's job or a data warehouse is implemented by C ++ language compiler implementation by the user, the platform only by the user interface calls an executable program, then the time you want to optimize the user program would be more difficult. Dynamic and static optimization methods: dynamic optimization mode (Note: For details, see Starfish: A Selftuning System for Big Data Analytics (CIDR'11)) is added a layer on MapReduce, dynamic adjustment of operations by profiler and sampler technology parameters; static optimization approach is to let users rely header files and libraries when compiled with the framework provided by the compiler optimization techniques to enhance the user program performance. HCE computing framework to solve the static optimization framework and the user program to enhance the computing tasks of CPU usage. 2, the frame and the user program to integrate as shown in a process optimization framework and the user can <a href="http://www.nikemaxto.org/">Nike Air Max</a> program compiled by the same set of mechanisms, Key-Values ​​treatment is also in the same process space, without the help of the media (pipes or sockets) to pass. HCE and Hadoop user programming interface provided in Table 1 below. Table each user interfaces contrast computing framework 1 MapReduce framework and efficient C ++ implementation HCE framework through C ++ language implementation of <a href="http://www.lvniker.org/product-48.html">New Nike Free 5.0 V4 Purple Yellow Shoes</a> the MapReduce data processing logic, based on better performance than Java C ++ language, you can get a better CPU utilization on the data processing operations, You can also call the Native Lib more directly rather than through JNI (Note: Compression Library is a Native achieve, Hadoop through JNI to call the compression method, HCE compression space in a process execution); in addition, through efficient compiler optimization methods, such as ICC compilers, performance can further tap the advantages of the framework. HCE framework through streamlined approach to achieve the MapReduce data processing, multi-level comparison Java streaming package, HCE handling process more efficient. HCE framework provides a multilingual interface to C ++, Python, etc., to facilitate the user programming, but also saves the overhead Streaming interface; while HCE also fully compatible with the original Java Streaming provides an interface that can be seamlessly migrated to the original job HCE framework. Statically compiled user program optimization <a href="http://www.nikemaxto.org/air-max-2011-womens-grey-green-p-49.html">Air Max 2011 Womens Grey Green</a> is static optimization of the user program mode HCE Frame, dynamic optimization to the upper layer of the data warehouse to do. For those heavy CPU load user program, HCE provide C ++ programming interface to the user, the user need to rely on local programs to compile the framework header files and libraries, header files and so built as SSE optimized code, you can make the user program at compile time It is optimized. This simple way enables the user program execution efficiency dramatically. HCE framework Hadoop framework to achieve the support of the functional components, such as support for RecordReader and RecordWriter Text <a href="http://www.nikemaxto.org/air-max-2011-womens-red-p-51.html">Air Max 2011 Womens Red</a> or SequenceFile format in C ++ space, also supports Gzip, Lzo, QuickLz, Lzma and other four kinds of <a href="http://www.lvniker.org/category-17_18.html">Air Jordan  Heel</a> compression formats. Since the input file split in Hadoop Client implementation, so Split method is still in the Java space implementation; of course, user-defined Mapper and Reducer must be implemented in C ++ space, such as Hive want to perform on HCE framework, then it must implement C ++ version of Mapper, Reducer and <a href="http://www.nikemaxto.org/nike-free-run-3-c-50.html">Nike Free Run 3</a> so functional components. Figure 3 HCE frame data processing flow chart of Figure 3 shows the data processing flow HCE framework can be seen in C ++ space HCE framework for efficient implementation of a number of scalable functional modules, such as RecordReader, OutputCollector, Shuffle, ReduceInputReader, RecordWriter, Committer , Partitioner, Mapper, Reducer, Combiner and so on, the processing logic is more compact and efficient than Hadoop MapReduce. In Hadoop Java space MapRunner and ReduceRunner only play the role of the state to collect information. HCE performance framework focused on the Map stage, about more than 40%. For general MapReduce programs, compared to the Shuffle and Reduce phase, Map stage but also its most resource consumption stage, <a href="http://www.nikemaxto.org/nike-free-run-3-c-50.html">Nike Free Run 3</a> because the output of the final work is generally only 10% entered a lot of data processing is done in the Map stage. HCE expand only basic framework is not enough, because there are a large number of jobs are performed by Streaming interface, and in addition to C ++ development interface, script developers also want to use the corresponding language development interface. Fortunately, all the scripting languages ​​are based on C development, it can achieve a simple interpreter, <a href="http://www.nikemaxto.org/nike-free-run-3-nike-free-run-3-women-c-50_52.html">Nike Free Run 3 Women</a> will translate into C language scripting language, the final execution is still HCE framework, and this interpretation overhead is small. Of course, the overhead Streaming operation is inevitable, but job-based Streaming HCE framework can utilize the performance advantages of the framework promoted CPU utilization, which is still considerable income for lightweight jobs. Figure 4 shows the data Java Streaming, HCE, Streaming Over HCE and Python Over HCE four frames of processing channels. Data processing Java Streaming framework is still done in the Java space, and data processing HCE, Streaming Over HCE, Python Over HCE framework are completed in C ++ space, Child JVM process only HCE collection task status information. Figure 4 Streaming Over HCE and Python Over HCE schematic framework MapReduce computing future framework does not rely solely on HDFS storage system can also be based on other storage systems, such as the KV Hypertable or other systems. At present, many block storage systems or KV systems are implemented in C ++, you want to use the original ecology on which Hadoop MapReduce, you must calculate the conversion interface system through storage systems language conversion interface (for example Hypertable of Thrift) or (for example, Hadoop's AvroRPC, etc.), the problem is data serialization and de-serialization overhead will inevitably bring. Therefore, based on HCE framework, the non-Java language to achieve more efficient storage system can support Hadoop MapReduce calculations, of course, they need to implement the corresponding Split, RecordReader, RecordWriter and Committer and other components. Summary HCE framework is a derivative Hadoop MapReduce framework. Relying on efficient local processing mechanism HCE framework, Hadoop jobs can save up to 30% of the CPU resources. In addition, HCE provides C ++, Python, and other programming interfaces, and to ensure that the existing interface, backwards compatible; variety of compiler optimization techniques can be easily applied to the MapReduce framework; and finally, HCE via compiler optimization and built-in interpreter, etc. Optimization of the user program execution.HCE: MapReduce framework to enhance resource utilization
]]>
</description>
<link>https://ameblo.jp/combing1/entry-12070755572.html</link>
<pubDate>Tue, 08 Sep 2015 11:34:27 +0900</pubDate>
</item>
<item>
<title>broken down into multiple instructions</title>
<description>
<![CDATA[ Most mobile devices have become faster and faster, but they are in fact not considered very fast. If you want your APP both can withstand some of the <a href="http://www.nikemaxto.org/">Nike Air Max</a> complex work without affecting the user experience, then the task must be executed in parallel. On Android, we use threads. A cup of coffee, then read this article carefully. I'll tell you about the concept of threads, as well as how to use threads in Java, how to use the thread Handler and so on. If you want to use asynchronous processing or parallel tasks, then you will use thread. What is a thread? Thread or a thread of execution is essentially a bunch of commands (also program code), and then we send it to the operating system. In general, our CPU core can only process one thread at any one time. Multicore processors (Most Android devices already are multicore) As the <a href="http://www.nikeaaaa.org/579756-403-purple-white-nike-black-mamba-24-kobe-sale-p-697.html">579756 403 Purple White Nike Black Mamba 24 Kobe Sale</a> name suggests, is that we can handle simultaneous multithreading (More simply more things that we can handle at the same time). Multicore processing single-core and essence of the above multi-tasking, I say that in general, not all descriptions are necessarily correct. Because monocytes can also be used to simulate multi-tasking multi-threaded. Each running task in the thread can be broken down into multiple instructions, and these instructions are not executed simultaneously. Therefore, the single-core devices can switch to the first thread to execute 1 instruction 1A, 2 and then switch to the thread to execute instruction 2A, then go back to the thread 1 execution 1B, 1C, 1D, and then continue to switch to the thread 2, the implementation 2B, 2C, etc., and so on. This switching between threads very quickly that will happen in single-core devices. Almost all of the task processing threads are in the same time. In fact, this is because the illusion caused by too fast, just like the movie 'The Matrix' in Brown's agent, as can changing a lot of head and hands. Next we look at some code. Java core in the thread in Java, if you want to do parallel processing tasks, then your code will execute Runnable inside. Can inherit the Thread class, or implement Runnable interface: // Version 1 public class IAmAThread extends Thread {public IAmAThread () {super (\u0026 quot; IAmAThread <a href="http://www.nikemaxto.org/air-max-2012-black-navy-blue-white-p-52.html">Air Max 2012 Black Navy Blue White</a> \u0026 quot;);}Override public void run () {// your code (sequence of instructions )}} // to execute this sequence of instructions in a separate thread new IAmAThread () start ();.. // Version 2 public class IAmARunnable implements Runnable {Override public void run () {// your code (sequence of instructions)}} // to execute this sequence of instructions in a separate thread IAmARunnable myRunnable = new IAmARunnable ();. new Thread (myRunnable) .start (); These two methods are basically the same. The first version is to create a Thread class, the second version is the need to create a Runnable object, and then also need a Thread class to call it. The second edition is generally recommended method. It is also a great theme, and is beyond the scope of this article, discussed the future will do. Whenever a thread started on Android APP, all components are run in a separate thread (the default) - called the main thread. This thread is mainly used for the processing operations and to view UI components and small parts distribution events, so the main thread is also called UI thread. If you run a time-consuming operation on the UI thread, then the UI will be locked until the end of this time-consuming operation. For the user experience, this is very bad! That is why we want to understand the threading mechanism on Android. Understanding these mechanisms could put some complex work to move to other threads to execute. If you run a time-consuming task in the UI thread, it is likely to ANR (application no response) occurs, so that users will quickly end off your APP. Android and Java, as it supports the use of Java inside the Thread class to step tasking. Therefore, like the above can easily be used as an example of Java threads on Android, but it seems still a little difficult. Why use a standard Java in the Android thread difficulties? In fact, parallel tasking did not imagine so simple, you must ensure that multiple threads concurrently, as great as Tim Bray said: ordinary humans can not do concurrency at scale (or really at all) ... especially come for Android He said following function is slightly bloated: asynchronous for UI thread is a major PITA (if you need to update the main thread interface, then you <a href="http://www.lvniker.org/product-58.html">New Nike Free Run 3 Shoes Silver 3</a> will be used in a background thread). If the screen orientation or screen configuration change, there will be some more strange phenomenon. Because changing the screen orientation will cause Activity reconstruction (so you need to change the background thread state of the destroyed Activity, and if the background thread not above the UI thread, then the situation will be more complicated, <a href="http://www.lvniker.org/product-51.html">New Nike Free 5.0 V4 Grey Blue Running Shoes</a> because such condition 1). For the thread pool, there is no default approach. Cancel threads operation requires custom code. So how on Android task concurrent processing it? You may have heard some of the Android some common <a href="http://www.nikeaaaa.org/">Air Jordan Outlet</a> nouns: 1, Handler which is detailed topics we want to discuss today. 2, AsyncTask use AsyncTask is the easiest way to manipulate threads on Android, is also the most error-prone ways. 3, IntentService this approach need to write more code, but this is the time-consuming task to move to the back of a good way, it is my favorite way. EventBus mechanism coupled with the use of a framework such as Otto, so it is very easy to achieve IntentService. 4, Loader for handling asynchronous tasks, there are many things to be done, such as from a database or a content provider, where some of the data processing. 5, Service Service if you've ever used it, you should know that there will be a little misunderstanding, one common misconception is that the service is running in the background thread. In fact, not! It seems to run in the background because they are not associated with UI components, but they (the default) is run on the UI thread ...... so by default to run on the UI thread, not even in the top UI components. If you want the service to run in a background thread, you must customize a thread, and then the operation code running in the thread (with the above-mentioned method is very similar). In fact, you should use IntentService achieve, but this is not the topic of this paper. Handler Android on the following is from the Android developer documentation for Handlers: excerpt of passage: <a href="http://www.lvniker.org/product-53.html">New Nike Free 5.0 V4 Grey Lime Trainers</a> \u0026 gt; A Handler allows you to send and process Message and Runnable objects associated with a thread's MessageQueue Each Handler instance is associated with a single thread and. . that thread's message queue When you create a new Handler, it is bound to the thread / message queue of the thread that is creating it - from that point on, it will deliver messages and runnables to that message queue and execute them as they come out of the message queue. To better understand this concept, maybe you need to look at what is Message Queues. The basic message queue thread has called a 'message queue' thing, which is responsible for inter-thread communication. This is a design mode, all control commands or transfer content between threads. Message Queue as its name implies, the thread, it is an instruction queue. Here we can also <a href="http://www.nikemaxto.org/air-max-2011-womens-purple-grey-p-50.html">Air Max 2011 Womens Purple Grey</a> do some cool <a href="http://www.nikemaxto.org/nike-jordan-melo-b-mo-c-53.html">Nike Jordan Melo B Mo</a> things: timing of messages and threads was executed at some point in time. You need to go in another thread added to the team action, but not in this thread. Note: That's 'message' and Runnable objects, concepts instruction queue is the same. Back Handler Android on ...... If you read carefully, you can see that the document had this to say:. \u0026 Gt; A Handler allows you to send and process Message and Runnable objects associated with a thread's MessageQueue so Handler allows you to thread Queue Message: \u0026 gt; Each Handler instance is associated with a single thread and that thread's message queue a Handler object can only be a thread associated with:. \u0026 gt; When you create a new Handler, it is bound to the thread / message queue of the thread that is creating it so in the end and which thread a Handler associate it? It is to create a thread. \u0026 Gt; - from that point on, it will deliver messages and runnables to that message queue and execute them as they come out of the message queue, in our understanding of this knowledge, please read ...... Tips: Here are a few point you may not know. Each thread with a Handler class instance bindings, and can run with other threads, communicate with each other. There is also a small suggestion <a href="http://www.nikeaaaa.org/nike-lebron-10x-c-2.html">Nike Lebron 10(X)</a> (if used AsyncTask words), AsyncTask Handler is the use of internal processing, <a href="http://www.nikemaxto.org/air-max-2011-womens-red-p-51.html">Air Max 2011 Womens Red</a> but it does not run in the UI thread, it will provide a channel for communication and the UI <a href="http://www.lvniker.org/category-17_18.html">Air Jordan  Heel</a> thread, use postExecute method can be realized. This is kinda cool, then how to create Handler it? There are two ways: using the default constructor: new Handler (). Use parameterized constructor, the parameter is a Runnable object or callback object. What practical Handler API inside it? Remember: <a href="http://www.nikemaxto.org/nike-free-run-3-c-50.html">Nike Free Run 3</a> Handler simply sending a message to the message queue it (or use the post way) they have a more convenient way to help with the UI thread communication. If you now look at Handler's API, you can clearly see this several ways: postpostDelayedpostAtTime code sample code here is very basic, but you can take a look at the comment. Example 1: Using Handler's 'post' method public class TestActivity extends Activity {// ... // all standard stuffOverride public void onCreate (Bundle savedInstanceState) {// ... // all standard stuff // we ' re creating a new handler here // and we're in the UI Thread (default) // so this Handler is associated with the UI thread Handler mHandler = new Handler (); // I want to start doing something really long // which means I should run the fella in another thread // I do that by sending a message -. in the form of another runnable object // But first, I'm going to create a Runnable object or a message for this Runnable mRunnableOnSeparateThread = new <a href="http://www.lvniker.org/">2015 Nike Free 5.0</a> Runnable () {Override public void run () {// do some long operation longOperation (); // After mRunnableOnSeparateThread is done with it's job, // I need to tell the user that i'm done // which means I need to send a message back to the UI thread // who <a href="http://www.nikemaxto.org/nike-free-run-3-nike-free-run-3-women-c-50_52.html">Nike Free Run 3 Women</a> do we know that's associated with the UI thread? mHandler.post (new Runnable () {Override public void run () {// do some UI related thing // like update a progress bar or TextView // ....}});}}; // Cool but I've not executed the mRunnableOnSeparateThread yet // I've only defined the message to be sent // When I execute it though, I want it to be in a different thread // that was the whole point new Thread (mRunnableOnSeparateThread) .start ();.}} If you simply do not Handler object, the callback post method would be more difficult. Example 2: Method using postDelayed site recently introduced a new feature, I have every time simulation EditText the AutoComplete feature, after each text changes will trigger a call to an API to retrieve data from the server. I want to reduce the number of APP API calls, so I decided to use the postDelayed Handler method to achieve this function. This example is not for parallel processing, only about Handler sends a message to the message queue messages also arrange some point in the future execution. // The below code is inside a TextWatcher // which implements the onTextChanged method // I've simplified it to only highlight the parts we're // interested in private long lastChange = 0;Override public void onTextChanged (final CharSequence chars , int start, int before, int count) {// The handler is spawned from the UI thread new Handler (). postDelayed (// argument 1 for postDelated = message to be sent new Runnable () {Override public void run ( ) {if (noChangeInText_InTheLastFewSeconds ()) {searchAndPopulateListView (chars.toString ()); // logic}}}, // argument 2 for postDelated = delay before execution 300); lastChange = System.currentTimeMillis ();} private boolean noChangeInText_InTheLastFewSeconds () {return System.currentTimeMillis () - lastChange \u0026 gt; = 300} Finally, I put 'postAtTime' This method is left to the reader as an associate, and master Handler it? If so, then you can enjoy the use of threads.Android threads and Handler Basics
]]>
</description>
<link>https://ameblo.jp/combing1/entry-12070755446.html</link>
<pubDate>Tue, 08 Sep 2015 11:33:59 +0900</pubDate>
</item>
<item>
<title>multiple calls into the program segments</title>
<description>
<![CDATA[ Simply, it <a href="http://www.nikemaxto.org/air-max-2012-black-navy-blue-white-p-52.html">Air Max 2012 Black Navy Blue White</a> is a collection of stored procedures or multiple sql statements, it can be regarded as a batch file, but its role is not limited to the batch. Creates This part describes the variables, stored procedures and stored functions, calls, view, modify, and delete operations. One: Overview of SQL Server stored procedure stored procedure code written using T_SQL segment. Its purpose is to be able to easily query information from the system tables, and update database tables or perform related management tasks and other system management tasks .T_SQL statement is a SQL Server database and programming interface between applications. In many cases, some of the code written by developers repeated several times, each time to prepare if the same function code is not only cumbersome and error-prone, and because the statement is executed by one SQL Server will reduce the operating efficiency of the system. In <a href="http://www.nikeaaaa.org/579756-403-purple-white-nike-black-mamba-24-kobe-sale-p-697.html">579756 403 Purple White Nike Black Mamba 24 Kobe Sale</a> short, SQL Server stored procedure that is in order to achieve specific tasks, but will write some fixed operating statements require multiple calls into the program segments that are stored on the server program, there is a database server program to call. Advantages of the stored procedure: to speed up the system speed stored procedures, stored procedures, creating only when compiling, recompiling each subsequent execution when not needed. Stored procedures can encapsulate complex database operations, streamline operations, such as updates to multiple tables, delete. The modular design of the program can be achieved, a stored procedure can be called multiple times, to provide a unified database access interface, improved maintainability of the application. Stored procedures can increase security code for user objects stored procedure can not be directly referenced in the operation, SQL Server can <a href="http://www.nikemaxto.org/air-max-2011-womens-grey-green-p-49.html">Air Max 2011 Womens Grey Green</a> set the user execute permissions on the specified stored procedure. Stored procedures can reduce network traffic, the stored procedure code is stored directly in the <a href="http://www.nikemaxto.org/air-max-2011-womens-purple-grey-p-50.html">Air Max 2011 Womens Purple Grey</a> database, the client and server communication process is not expected to generate a lot of traffic T_SQL codes. The disadvantage of the stored procedure: database migration is not convenient, stored procedures, and database management systems rely, SQL Server stored procedure encapsulated in the operation code can not directly portable to other database management systems. Does not support object-oriented design, you can not use an object-oriented way to encapsulate business logic, business logic, and even the formation of a common framework to support the service. Readability is poor, difficult to maintain. It does not support clustering. II: 1. The system stored procedure stored procedure classification system stored procedures are stored procedures provided by SQL Server system itself can be used as a command to perform various operations. System stored procedure is mainly used to obtain information, use the system stored procedure to complete the management of the database server from the system tables, provides help for the system administrator, for the user to view the database objects to provide convenient, system stored procedures in the database server, and to sp _ the beginning, the system stored procedure is defined in the system-defined and user-defined database, when you call, do not add the name of the database before the stored procedure is defined. For example: sp_rename system stored procedure can be modified to create an object in the current database user name, sp_helptext stored procedure can display text information rules, defaults, or view, SQL SERVER, many of the management server is done through the process of implementation of the system store Many system information can also execute system stored procedure to obtain. System stored procedure to create the system and stored in a master database, some of the system stored procedure can only be used by system administrators, and some system stored procedure authorized by other users to use. 2. The user stored procedure (custom stored procedures) custom stored procedure that is user T_SQL written statement, in order to achieve a specific business need, in the user database written statement T_SQL collection, custom stored procedures can accept input parameters, returned to the client results and information, to return output parameters. When you create a custom stored procedure, before the stored procedure name with '##' represents the <a href="http://www.nikeaaaa.org/adidas-adipure-crazyquick-collegiate-royalwhite-q33301-outlet-p-693.html">adidas adiPure Crazyquick Collegiate Royal/White Q33301 Outlet</a> creation of a global temporary stored procedures; previously stored procedure with '#' indicates that the local temporary stored procedure created. Local temporary stored procedure can only be used to create its answer at the end of the session, it will be deleted. Both stored procedures are stored in the tempdb database. User-defined stored procedure is divided into two categories: T_SQL and CLRT_SQL: stored procedures is the value of the saved set T_SQL statement, can accept and return user-supplied <a href="http://www.nikeaaaa.org/586590300-nike-kobe-8-system-elite-gc-poison-green-superhero-outlet-p-695.html">586590-300 Nike Kobe 8 System Elite GC Poison Green Superhero Outlet</a> parameters, the stored procedure <a href="http://www.lvniker.org/product-51.html">New Nike Free 5.0 V4 Grey Blue Running Shoes</a> may also return data from the database to <a href="http://www.lvniker.org/category-17_30.html">Nike  Heels Boots</a> the client application. CLR stored procedure is a method of reference Microsoft.NET Framework common language of stored procedures can accept and return user-supplied parameters, they are .NET Framework assemblies as a public static method of the class to achieve. 3. extended stored procedures extended stored procedure is dynamically connected to the outside environment, execute SQL SERVER (DLL files) to achieve, can be loaded into SQL SERVER instance running in the address space execution, extended stored procedure can be extended stored procedures SQL SERVER API programming, extended stored procedure with the prefix 'xp_' to identify, for the user, extended stored procedures and Mandarin stored procedures can be performed in the same way. Three: Create a stored procedure we must first <a href="http://www.lvniker.org/">2015 Nike Free 5.0</a> of its profits, prepare the following data: use sample_db; - create test books table create table books (book_id int identity (1,1) primary key, book_name varchar (20) , book_price float, book_auth varchar (10)); - insert the test data insert into books (book_name, book_price, book_auth) values ​​('The Analects', 25.6' Confucius'), ('Dragon', 25.6 'Jin Yong '), (' Snow Fox ', 32.7' Jin Yong '), (' Ordinary World ', 35.8' Lu Yao '), (' Records', 54.8 'Sima Qian'); 1. Create a stored procedure with no parameters - 1. Create a stored procedure with no arguments if (exists (select * from sys.objects where name = 'getAllBooks')) drop proc proc_get_studentgocreate procedure getAllBooksasselect * from books; - calls, to execute the stored procedure exec getAllBooks; 2 modify storage. Process alter procedure dbo.getAllBooks asselect book_auth from books; 3 Delete stored procedure drop procedure getAllBooks; 4 to rename the stored procedure sp_rename getAllBooks, proc_get_allBooks; 5 parameter to create a stored procedure with parameters stored procedures are divided into two types: Input parameters and output parameters Input parameters: for incoming values ​​to the stored procedure, java language or the c the value passed similar. Output parameters: Used to call a stored procedure, the results of the participants, similar to java language passed by reference. Value is passed and passed by reference difference: the basic data types passed by value assignment belongs; assignment belongs passing references between reference types. Passed by value passed is the real value of the variable; passed passed by reference is a reference to the address of the object. After the value is passed, the two variables are the respective values ​​change; after passed <a href="http://www.lvniker.org/category-17_18.html">Air Jordan  Heel</a> by <a href="http://www.nikemaxto.org/">Nike Air Max</a> reference, two references to change the status of the same object (1) with a stored procedure parameter if (exists (select * from sys.objects where name = 'searchBooks')) <a href="http://www.nikemaxto.org/nike-jordan-melo-b-mo-c-53.html">Nike Jordan Melo B Mo</a> drop proc searchBooksgocreate proc searchBooks (bookID int) as - requirements book_id columns equal to the input parameters select * from books where book_id = @ bookID; - Executive searchBooksexec searchBooks 1; (2) with two parameters are stored process if (exists (select * from sys.objects where name = 'searchBooks1')) drop proc searchBooks1gocreate proc searchBooks1 (bookID int,bookAuth varchar (20)) as - requirements book_id and book_Auth columns equal to the input parameters select * from books where book_id = @ bookID and book_auth = @ bookAuth; exec searchBooks1 1, 'Jin Yong'; (3) create a stored procedure that returns a value if (exists (select * from sys.objects where name = 'getBookId')) drop proc getBookIdgocreate proc getBookId (bookAuth varchar (20), - input parameters, no defaultbookId int output - input / output parameter no default value) as select @ bookId = book_id from books where book_auth = @ bookAuth-- execution getBookId this with the return value of the stored procedure declareid int - declare a variable to receive the return value of the stored procedure is executed after the exec getBookId 'Confucius', @ id outputselectid as bookId; - the column value as is to return a name (4) create a stored procedure with wildcard if (exists (select * from sys.objects where name = 'charBooks')) drop proc charBooksgocreate proc charBooks (bookAuth varchar (20) = 'gold%',bookName varchar (20) = '%') as select * from books where book_auth likebookAuth and book_name likebookName; - execute a stored procedure charBooksexec charBooks 'hole%', <a href="http://www.lvniker.org/category-17_18.html">Air Jordan  Heel</a> '% s'; (5) encrypting storage process with encryption clause is hidden from the user stored procedure text. The following example creates the encryption process, use sp_helptext system stored procedure to obtain information about the encryption process, and then try to obtain information about the process <a href="http://www.nikeaaaa.org/">Air Jordan Outlet</a> .if (object_id ('books_encryption' directly from the syscomments table, 'P') is not null) drop proc books_encryptiongocreate proc books_encryption with encryptionas select * from books; - perform this procedure books_encryptionexec books_encryption; exec sp_helptext 'books_encryption'; - console displays \u0026 quot; target 'books_encryption' encrypted text ʱ?? \u0026 Quot;. (6) does not cache --with recompile the stored procedure is not cached if (object_id ('book_temp', 'P') is not null) drop proc book_tempgocreate proc book_tempwith recompileas select * from books; goexec book_temp; exec sp_helptext 'book_temp '; (7) with the cursor to create a stored procedure if the parameter (object_id (' book_cursor ',' P ') is not null) drop proc book_cursorgocreate proc book_cursorbookCursor cursor varying outputas set @ bookCursor = cursor forward_only static for select book_id, book_name, book_auth from books openbookCursor; go-- stored procedure call book_cursor declarecur cursor,bookID int,bookName varchar (20),bookAuth varchar (20); exec book_cursor @ bookCursor = @ cur output; fetch next fromcur into @ bookID, @ bookName, @ bookAuth; while (@@FETCH_STATUS = 0) begin fetch next fromcur into @ bookID, @ bookName, @ bookAuth; print 'bookID:' + convert (varchar, @ bookID) + ', bookName:' +bookName + ', bookAuth:' + @ bookAuth; endclosecur - Close the cursor DEALLOCATEcur; - release the cursor (8) creates a page stored procedure if (object_id ('book_page',. 'P') is not <a href="http://www.nikemaxto.org/nike-free-50-v2-nike-free-50-v2-women-c-47_48.html">Nike Free 5.0 V2 Women</a> null) drop proc book_pagegocreate proc book_page (TableName varchar (50), - the table nameReFieldsStr varchar (200) = '*', - field name (all fields *)OrderString varchar ( 200), -! sort fields (fields do not have to support multi-plus order by)WhereString varchar (500) = N '', - a conditional statement (do not add where)PageSize int, - the number of records per page! PageIndex int = 1, - specify currently the first few pagesTotalRecord int output - returns the total number of records) asbegin - process start and end points DeclareStartRecord int; DeclareEndRecord int; DeclareTotalCountSql nvarchar (500) ; DeclareSqlString nvarchar (2000); setStartRecord = (@ PageIndex-1) * @ PageSize + 1 setEndRecord =StartRecord +PageSize - 1 SET @ TotalCountSql = N'selectTotalRecord = count (*) from '+TableName; - the total number of records in the statement SETSqlString = N' (select row_number () over (order by '+OrderString +') as rowId, '+ @ ReFieldsStr +' from '+TableName; - inquiry statement - IF (!WhereString = ''! orWhereString = null) BEGIN SET @ TotalCountSql = @ TotalCountSql + 'where' +WhereString; SETSqlString = @ SqlString + 'where' +WhereString; END - Article once do you get --IF (TotalRecord is null) - BEGIN EXEC sp_executesql @ totalCountSql, N '@ TotalRecord int out', @ TotalRecord output; - returns the total number of records - END ---- execute the main statement set SqlString = 'select * from' +SqlString + ') as t where rowId between' + ltrim (str (StartRecord)) + 'and' + ltrim (str (EndRecord)); Exec (SqlString) END- - call paging stored procedure book_pageexec book_page 'books', '*', 'book_id', '', 3,1,0; - declaretotalCount intexec book_page 'books', '*', 'book_id', '', 3,1, @ totalCount output; selecttotalCount as totalCount; - the total number of records.SQL Server-based: Stored Procedures
]]>
</description>
<link>https://ameblo.jp/combing1/entry-12070755318.html</link>
<pubDate>Tue, 08 Sep 2015 11:33:36 +0900</pubDate>
</item>
</channel>
</rss>
