Blogs

How to merge SVN branch from trunk

In general, any change which is required to mitigate any priority issue in production, is done directly in trunk at times. At same time, development team is continue to work in separate branches. Hence a time comes when any changes which is made directly in trunk is merged with branches to get it tested.

Below are the steps that can be followed if you want to merge trunk version of code into your branch.

Steps:

How to create SVN branch from trunk

SVN Trunk code should always be the production copy of the codebase. At least this is how I see it.

When a new project work starts an existing application or required a significant amount of code change then you might need to create a separate branch from working production copy of the code. Apart from that, there could be many other reasons to create separate SVN branch from trunk like multiple team, parallel work etc.

jsTree - background colour

If you want to change the background colour of selected node of your jsTree or changing background colour of whole tree then you can go through this example of changing background colour of jstree. It will allow to change the background colour by applying custom css to jsTree and its nodes. Also, it will give you an idea how to change the background color of jstree or change the background colour of a selected node programmatically.

jsTree - document.registerElement is deprecated

If you are using jsTree library and found out that Chrome has started to warn about deprecating a feature used by jstree like below. Then you can find what you need to do to resolve this issue (warning).


document.registerElement is deprecated and will be removed in M73, around March 2019.
Please use window.customElements.define instead. 
See https://www.chromestatus.com/features/4642138092470272 for more details.

Example of simple jsTree with unique node name

jsTree is jquery plugin, that provides interactive trees. jsTree is easily extendable, themable and configurable. One of noticeable feature is its unique node name. This plugin enforces that no nodes with the same name can coexist as siblings. This plugin has no options, it just prevents renaming and moving nodes to a parent, which already contains a node with the same name.

Example of simple jsTree with wholerow select

This plugin of jsTree enables user to select the node as well as wholerow to make the selection much easier and clear.

You can select the node by clicking anywhere in the row. So the selection of a node is not restricted by clicking on node text. FInd below image.

Free Encrypt Decrypt Text Online

Free Encrypt decrypt Text Online

Example of simple jsTree with conditional select

jsTree is jquery plugin, that provides interactive trees. jsTree is easily extendable, themable and configurable. One of noticeable feature is its tri-state checkbox. This plugin overrides the activate_node function (the one that gets called when a user tries to select a node) and enables preventing the function invocation by using a callback.

Example of simple jsTree with tri-state checkbox

jsTree is jquery plugin, that provides interactive trees. jsTree is easily extendable, themable and configurable. One of noticeable feature is its tri-state checkbox. States are checked, unchecked and indeterminate.
Indeterminate state is when not all child items are checked then the check state of the parent becomes indeterminate.

Like below, the state of "Root node 2" is Indeterminate as not all child nodes are checked.

Polymorphic Species

Polymorphic species are referred to those species which have different forms arise from the same genotype. This term is called Polymorphism. In biology, Polymorphism helps to notice the discontinue genetic variation which resulted in the happening of various different forms or types in individuals among the members of a single species. Polymorphism helps to make the difference of two or more clearly different morphs or forms and also referred to as alternative phenotypes, in the population of a species.

Pages