Preface
Today, friends in the circle of friends to share a good article in depth, "Please encourage your children to be a happy ordinary people", the article slightly longer, carefully read down the feeling a lot. In addition to the recent day to look at the small nephew of the growth of a step-wise, has gradually moved away from the young, mature and stable I have a new understanding of learning, recall their own growth process, experience and skills are not parents hand-taught, but they give me to create a "free, open, even slightly indulge" the environment, They set an example of action, let me experience, the feeling of all the bit by bit.
When it comes to software research and development work, think of the students in the graduation rarely left to do technology (think it migrant workers also belong to the technology wave bar), is nothing more than because the work hard, there is pressure, less pay. Why did you choose to stay? The reason is simple, want to through such a high intensity, high degree of freedom, high degree of change of environment time reminds oneself "not forgetting to learn new knowledge, accumulate new skill". Life skills, test-taking skills, earning a living skill, the skill itself has no merit or disadvantage, depending on the application scenario is different. It and the internet teach us to be free, open, forge ahead, to enrich themselves at all times to not be eliminated, this truth universal, all walks of life.
The view in the citation, deeply agree with the occasion, also have their own views:
"Zssure": The Birth of the baby, from the organ has a feeling began, a wisp of breeze, a hint of fragrance, a little sound, a touch, everything has been absorbed, and gradually extracted from the information for follow-up accumulation to do the reserve, as with the current fiery AR technology, human has the strongest brain to deal with countless huge amounts of data, With the increase of time, the acquisition of information, experience and skills will be formed. So growth takes time to comprehend, and so does the skill.
Parental compulsion may work, but it will not accumulate in the form of skills. Life and work, we will encounter a variety of problems, perhaps the use of strong Google or Baidu we can find solutions in an instant, but why we rarely grow, skills are seldom improved? The reason is that there is no accumulation, nature will not be converted into skills.
In summary, it is my decision and insisted on writing blog, perhaps the blog is not the mainstream communication platform, perhaps the final blog will be replaced by other new things, but this is not what I want to consider, I want to do is to find a piece of "Pure Land", collection of daily life drip, with the passage of time, Turn it into skills to meet the challenges of life and work, that's all.
Keep in mind : blog post want to record, analyze, solve, and write their own sentiment about the problems encountered in work or life. At the same time for their own aftertaste to read, but also want to interact with like-minded people. If you have encountered the same problem in your work or life, if it is not urgent, I hope you can read it carefully and write your own sentiment after solving the problem. If the blog post scheme is not suitable for your scene, interested can also email me relevant information, we analyze and discuss together, and finally write down each other's sentiment , common growth, and common progress, so as to mutual encouragement!
background:
Step on the Pit Pits series blog stick to the previous agreement, mainly used to record the work encountered in various problems, or simple, or cumbersome. Before the detailed analysis, first find a solution to solve the urgent task, will be organized after the time, push to the cumulative series. The "Trample Pits" series blog post introduced a slightly scattered content, there is no correlation between the issues (of course, from my actual project itself is still related), from DevExpress WinForm control, to Telerik OpenAccess ORM, to STARUML modeling , the problem is relatively easy to tread, concealed pits, details such as the following.
Stepping Pit Pits: 1) Xtratabcontrol's BackColor modification
When using DevExpress's Xtratabcontrol control, it is found that the BackColor of its internal xtratabpage cannot be modified, anyway transparent, as shown in:
At this point, you can see the Xtratabcontrol TabPage inside the page is white transparent, use is very unattractive. In Google or Baidu search related issues, will generally pop up the following results:
Try to find, can not achieve the modified Xtratabpage BackColor effect. In the end, we found a solution in the almighty StackOverflow, very simple.
"Solution":
According to the plan, the contrast chart before and after modification is as follows, obviously feel comfortable a lot.
2) Use of Telerik Openaccesscontext
Before the blog has introduced how to use Telerik OpenAccess operation SQLite Database, today in the actual application process encountered a small problem, and later after careful investigation found to be the problem caused by their own project architecture. The question is briefly described as follows:
1) Overall project Framework : The project contains a total of three projects, respectively, ProjectA, PROJECTB, PROJECTC, of which projecta is the use of Telerikopenaccess completed database Operation class Library, PROJECTB and PROJECTC also refer to ProjectA. The project application scenario is the addition, modification and deletion of related database in PROJECTB, and the query and UI display of database in PROJECTC.
2) Actual problems encountered : PROJECTB and PROJECTC as a standalone application WinFrom.exe deployment, in the actual debugging process, PROJECTB can successfully complete the database add, modify and delete operations, However, the query results in PROJECTC have been returned as "empty". No exceptions were found in the code for stepping into Telerik OpenAccess.
"Solution": Finally, a careful comparison reveals that There is a xxx.db database file in the ProjectB.exe and ProjectC.exe directories, where data is stored in the database file in the PROJECTB directory, and the database file under the PROJECTC directory is empty. The reason is that PROJECTB and PROJECTC call the constructor of the Openaccesscontext class when the database operation is applied projecta:
public OpenAccessContext(string connectionString, BackendConfiguration backendConfiguration, MetadataContainer metadataContainer);
The connection string used to construct the database did not use an absolute path, so that the database PROJECTB and PROJECTC two calls to the Openaccesscontext construct were created in the corresponding project executable directory, resulting in database additions, Deleted and modified, not the same database file used by the query. Therefore, when calling ProjectA's Openaccesscontext constructor in a PROJECTC project, the connection string to the database is given an absolute path, for example
C:\TelerikOpenAccess\Sqlitetest\ProjectB\Debug\X86\xxx.db. If so, the predetermined function can be achieved smoothly.
3) The difference between diagram and model of STARUML
UML is an essential skill for software developers, which is used to construct structural diagrams, time series diagrams, use case diagrams, and to build class diagrams at a later stage of development, and deployment design is required for eventual deployment. Each link can be described using UML, recently abandoned the traditional Ms Viso tool, and began to use the STARTUML, instantly by the friendly interface, rich graphic class, simple operation to conquer, But in the first use or by the STARUML diagram and model concept to get confused, the following simple to distinguish between the two concepts:
Model or (software
Model) is a description of the various aspects of the system, such as structure (structure), behavior (behavior), requirements (requirement), and so on.
Diagram is model (software
Model) is a visual representation of a geometric symbol. A model can be represented by multiple diagram, and each diagram represents an aspect, such as Diagram1 used to represent an inheritance relationship between classes (class diagrams), Diagram2 used to represent interactions between concrete objects (timing diagrams).
In the Explorer window of STARUML, you can see the relationships between the various elements, which can be understood in general.
Add diagram is used for adding visualizations, such as inheritance diagrams between our common classes, time series diagrams, and so on, while add adds a concrete model that corresponds to the actual class class in our project, but is not visible in staruml.
For example, Class Diagram, a graphical notation in Classdiagram to represent classes in a visual form, such as the inheritance relationship between classes, the members of a class, the interface of a class, the properties of a class, and so on, while class is the abstraction of a specific thing, a theoretical model, Indicates the relationship between the parts. Give a specific Classdiagram,
Each rectangle (visual symbol) in the diagram represents a class that corresponds to the code common to our C++/c#/java language, such as the following example code
abstract class Book{public string ISBN;public string title;public int summary();public void publisher(string title);……}
The above specific display in the Explorer window of STARUML is as follows:
It can be seen that in the Classdiagram object we placed a rectangular visual symbol to represent the abstract class book, and the corresponding book class definition model in the Explorer window is given below Classdiagram, and lists its various properties and operations. It is shown that the visual and visual display in Classdiagram is defined in a variety of classes below.
PS: Note the difference between delete and delete from model two operations when operating staruml. Through the above analysis we can roughly know the specific role of the two operations, delete operation using ' Del ' key is done to remove the visual symbols in diagram such as Classdiagram, which is the rectangle in, but the operation does not delete the book Class model in the StarUML Explorer, while the delete from The model operation removes the visual symbols from the diagram and also deletes the models of classes in the StarUML Explorer window. You should pay attention to the specific use.
[Email protected]
Date: 2015-04-29
Stepping Pit (Running) pits (zssure): DevExpress Xtratabcontrol, Telerik Openaccesscontext and STARUML