tag:blogger.com,1999:blog-340049902024-03-13T13:11:06.903+02:00Empowering People Business with Technology and ScienceAn intellectual is someone who actually practices and creates the art of thinking. Sometimes this can be a good thing. - Thomas Lindnerhttps://ansgohar.blogspot.com/http://www.blogger.com/profile/18208765118200990184noreply@blogger.comBlogger89125tag:blogger.com,1999:blog-34004990.post-91860497754347277352019-08-28T10:48:00.000+02:002019-08-28T10:48:31.972+02:00What is the difference between BLOB and CLOB datatypes?<div dir="ltr" style="text-align: left;" trbidi="on">
Blob and Clob together are known as LOB(Large Object Type).<br />
<br />
I have been pretty much fascinated by these two data types. According to Oracle Docs, they are presented as follows :<br />
<br />
<strong>BLOB :</strong> Variable-length binary large object string
that can be up to 2GB (2,147,483,647) long. Primarily intended to hold
non-traditional data, such as voice or mixed media. BLOB strings are not
associated with a character set, as with FOR BIT DATA strings.<br />
<strong>CLOB :</strong> Variable-length character large object string
that can be up to 2GB (2,147,483,647) long. A CLOB can store
single-byte character strings or multibyte, character-based data. A CLOB
is considered a character string.<br />
<br />
<u>Following
are the major differences between Blob and Clob data types.</u><br />
<table class="table table-bordered"><thead>
<tr><th style="text-align: center;">Blob</th><th style="text-align: center;">Clob</th></tr>
</thead><tbody>
<tr><td>The full form of Blob is Binary Large Object.</td><td>The full form of Clob is Character Large Object.</td></tr>
<tr><td>This is used to store large binary data.</td><td>This is used to store large textual data.</td></tr>
<tr><td>This stores values in the form of binary streams.</td><td>This stores values in the form of character streams.</td></tr>
<tr><td>Using this you can store files like text files, PDF documents, word documents etc.</td><td>Using this you can stores files like videos, images, gifs, and audio files.</td></tr>
<tr><td>MySQL supports this with the following datatypes:<ul class="list">
<li>TINYBLOB</li>
<li>BLOB</li>
<li>MEDIUMBLOB</li>
<li>LONGBLOB</li>
</ul>
</td><td>MySQL supports this with the following datatypes:<ul class="list">
<li>TINYTEXT</li>
<li>TEXT</li>
<li>MEDIUMTEXT</li>
<li>LONGTEXT</li>
</ul>
</td></tr>
<tr><td>In JDBC API it is represented by java.sql.Blob Interface.</td><td>In JDBC it is represented by java.sql.Clob Interface.</td></tr>
<tr><td>The Blob object in JDBC points to the location of BLOB instead of holding its binary data.</td><td>The Blob object in JDBC points to the location of BLOB instead of holding its character data.</td></tr>
<tr><td>To store Blob JDBC (PreparedStatement) provides methods like:<ul class="list">
<li>setBlob()</li>
<li>setBinaryStream()</li>
</ul>
</td><td>To store Clob JDBC (PreparedStatement) provides methods like:<ul class="list">
<li>setClob()</li>
<li>setCharacterStream()</li>
</ul>
</td></tr>
<tr><td>And to retrieve (ResultSet) Blob it provides methods like:<ul class="list">
<li>getBlob()</li>
<li>getBinaryStream</li>
</ul>
</td><td>And to retrieve (ResultSet) Clob it provides methods like:<ul class="list">
<li>getClob()</li>
<li>getCharacterStream()</li>
</ul>
</td></tr>
</tbody></table>
</div>
https://ansgohar.blogspot.com/http://www.blogger.com/profile/18208765118200990184noreply@blogger.com0tag:blogger.com,1999:blog-34004990.post-87919895760650830872019-07-06T18:31:00.000+02:002019-07-06T18:31:01.390+02:00Cloud Well-Architected Framework<div dir="ltr" style="text-align: left;" trbidi="on">
The Well-Architected Framework identifies a set of general design principles to facilitate good design in the cloud:<br />
<br />
1- Stop guessing your capacity needs: Eliminate guessing about your infrastructure capacity needs. When you make a capacity decision before you deploy a system, you might end up sitting on expensive idle resources or dealing with the performance implications of limited capacity. With cloud computing, these problems can go away. You can use as much or as little capacity as you need, and scale up and down automatically.<br />
<br />
2- Test systems at production scale: In the cloud, you can create a production-scale test environment on demand, complete your testing, and then decommission the resources. Because you only pay for the test environment when it's running, you can simulate your live environment for a fraction of the cost of testing on premises.<br />
<br />
3- Automate to make architectural experimentation easier: Automation allows you to create and replicate your systems at low cost and avoid the expense of manual effort. You can track changes to your automation, audit the impact, and revert to previous parameters when necessary.<br />
<br />
4- Allow for evolutionary architectures: Allow for evolutionary architectures. In a traditional environment, architectural decisions are often implemented as static, one-time events, with a few major versions of a system during its lifetime. As a business and its context continue to change, these initial decisions might hinder the system's ability to deliver changing business requirements. In the cloud, the capability to automate and test on demand lowers the risk of impact from design changes. This allows systems to evolve over time so that businesses can take advantage of innovations as a standard practice.<br />
<br />
5- Drive architectures using data: In the cloud you can collect data on how your architectural choices affect the behavior of your workload. This lets you make fact-based decisions on how to improve your workload. Your cloud infrastructure is code, so you can use that data to inform your architecture choices and improvements over time.<br />
<br />
6- Improve through game days: Test how your architecture and processes perform by regularly scheduling game days to simulate events in production. This will help you understand where improvements can be made and can help develop organizational experience in dealing with events.</div>
https://ansgohar.blogspot.com/http://www.blogger.com/profile/18208765118200990184noreply@blogger.com0tag:blogger.com,1999:blog-34004990.post-79466448893620854012018-12-13T14:44:00.001+02:002018-12-13T14:48:02.579+02:00IBM DataPower Gateway Commissioning Step by Step<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<h2 style="text-align: left;">
What is IBM DataPower Gateway?</h2>
IBM DataPower® Gateway helps organizations meet the security and integration needs of a digital business in a single multi-channel gateway. It provides security, control, integration and optimized access to a full range of mobile, web, application programming interface (API), service-oriented architecture (SOA), B2B and cloud workloads.<br />
<br />
<a href="https://www.ibm.com/products/datapower-gateway">https://www.ibm.com/products/datapower-gateway</a><br />
<br />
<div style="text-align: center;">
<a href="http://3.bp.blogspot.com/-jLMnnjE3lpQ/XBJJ5xD7dxI/AAAAAAAAx2s/fNsPPcmkLlI_GfZ4wdMdifKW474AyQf1wCK4BGAYYCw/s1600/ibm-websphere-datapower-xb62-7199-62x_1_a069156d2be3daeb07ab5c23267668b1.jpg" imageanchor="1"><img border="0" height="203" src="https://3.bp.blogspot.com/-jLMnnjE3lpQ/XBJJ5xD7dxI/AAAAAAAAx2s/fNsPPcmkLlI_GfZ4wdMdifKW474AyQf1wCK4BGAYYCw/s320/ibm-websphere-datapower-xb62-7199-62x_1_a069156d2be3daeb07ab5c23267668b1.jpg" width="320" /></a></div>
<div style="text-align: left;">
</div>
<h2 style="text-align: left;">
The DataPower capabilities are delivered in a network appliance form factor:</h2>
<div style="text-align: left;">
</div>
<h3 style="text-align: left;">
Physical appliances</h3>
<ul style="text-align: left;">
<li>XG45: DataPower Service Gateway</li>
<li>XI52: DataPower Integration Appliance</li>
<li>XB62: DataPower B2B Appliance</li>
</ul>
<h3 style="text-align: left;">
DataPower form factors Virtual appliances (under a hypervisor)</h3>
<ul style="text-align: left;">
<li>XG45/XI52 Virtual Edition</li>
<ul>
<li>Production</li>
</ul>
<li>XG45/XI52 Virtual Edition for Nonproduction Environment</li>
<ul>
<li>Multi-user test and development</li>
</ul>
<li>XG45/XI52 Virtual Edition for Developers</li>
<ul>
<li>Single-user test and development</li>
</ul>
</ul>
<div style="text-align: left;">
</div>
<div style="text-align: left;">
</div>
<h2 style="text-align: left;">
Network interfaces for virtual appliances</h2>
<ul style="text-align: left;">
<li>Physical appliances have 8 (XG45) or 12 (XI52, XB62) Ethernet interfaces</li>
<li>Virtual appliances have four network interfaces:</li>
<ul>
<li>eth0, eth1, eth2, eth3</li>
<li>Speeds depend on hypervisor and hardware</li>
<li>Physical mode and flow control settings are ignored</li>
</ul>
<li>Hypervisors that the IBM PureApplication System manages allow only eth1-3 to be used for DataPower service configuration</li>
<ul>
<li>eth0 is used by IBM PureApplication System management</li>
</ul>
<li>All other hypervisor environments allow eth0-3 to be used for service configuration</li>
</ul>
<div style="text-align: left;">
</div>
<h2 style="text-align: left;">
Deployment on stand-alone VMware hypervisors</h2>
<ul style="text-align: left;"></ul>
<div style="text-align: left;">
<ul style="text-align: left;">
<li>Configure the appliance to run inside the virtual machine</li>
<li>Start Commissioning</li>
<ul>
<li>Login to the appliance</li>
<li>Enable Secure Backup Mode</li>
<li>Enable Common Compatibility Mode</li>
<li>Create new admin password </li>
</ul>
<li>Run the Install Wizard</li>
<ul>
<li>Step 1 - Confirure network interfaces</li>
<li>Step 2 - Configure network service</li>
<li>Step 3 - Define a unique system identifier for the appliance</li>
<li>Step 4 - Do you want to configure remote Management access</li>
<li>Step 5 - Configure a user account that can reset passwords</li>
<li>Step 6 - Configure the RAID array</li>
</ul>
<li>Save the current configuration</li>
</ul>
</div>
<h3 style="text-align: left;">
Configure the appliance to run inside the virtual machine</h3>
<ol style="text-align: left;">
<li>Setup the virtual machine </li>
<ol>
<li>Install VMWare player</li>
<li>Inport the OVA file of the virtual applicance </li>
<li>Use the below configuration</li>
<ol>
<li>Memory</li>
<ol>
<li>Minmum: 4 GB</li>
<li>Required: 8GB</li>
</ol>
<li>Processors</li>
<ol>
<li>Minmum: 4 GB</li>
<li>Required: 8GB</li>
</ol>
<li> Network Adapter </li>
<ol>
<li>Insure that one of the adapters eth0 is Host-only</li>
</ol>
</ol>
</ol>
</ol>
<div style="text-align: left;">
<a href="http://4.bp.blogspot.com/-zWCXqhpxCQ4/XBJKjFFX0SI/AAAAAAAAx3A/LYaJc6aDU8490spet_UNEKNOXMLvjfkbACK4BGAYYCw/s1600/01-Configuration.PNG" imageanchor="1"><img border="0" height="228" src="https://4.bp.blogspot.com/-zWCXqhpxCQ4/XBJKjFFX0SI/AAAAAAAAx3A/LYaJc6aDU8490spet_UNEKNOXMLvjfkbACK4BGAYYCw/s320/01-Configuration.PNG" width="320" /></a></div>
<div style="text-align: left;">
<br /></div>
<h3 style="text-align: left;">
Start Commissioning</h3>
<h4 style="text-align: left;">
Login to the appliance</h4>
<div style="text-align: left;">
login: admin</div>
<h3 style="text-align: left;">
<a href="http://2.bp.blogspot.com/-rdENVol_u84/XBJLuqAvCyI/AAAAAAAAx3M/5FeXAaDuQkgpxclcbor55dNO3FzyzkkIwCK4BGAYYCw/s1600/01-adminLogin.PNG" imageanchor="1"><img border="0" src="https://2.bp.blogspot.com/-rdENVol_u84/XBJLuqAvCyI/AAAAAAAAx3M/5FeXAaDuQkgpxclcbor55dNO3FzyzkkIwCK4BGAYYCw/s1600/01-adminLogin.PNG" /></a> </h3>
<div style="text-align: left;">
password: admin </div>
<h3 style="text-align: left;">
<a href="http://3.bp.blogspot.com/-ydox02v7blc/XBJLy7TL9II/AAAAAAAAx3U/-TYxQgM9puo3e9QqphJoaEBi3hWl2Si1wCK4BGAYYCw/s1600/02-adminLogin.PNG" imageanchor="1"><img border="0" src="https://3.bp.blogspot.com/-ydox02v7blc/XBJLy7TL9II/AAAAAAAAx3U/-TYxQgM9puo3e9QqphJoaEBi3hWl2Si1wCK4BGAYYCw/s1600/02-adminLogin.PNG" /></a> </h3>
<h4 style="text-align: left;">
Enable Secure Backup Mode</h4>
<div style="text-align: left;">
Secure backup mode supports the creation of a backup to restore the complete configuration of another DataPower® Gateway. The creation of a secure backup is available only when secure backup mode is enabled. Generally, secure backup mode is enabled during the initial firmware setup of the DataPower Gateway</div>
<h4 style="text-align: left;">
<a href="http://1.bp.blogspot.com/-gFaCDr_z3N4/XBJL0JswoVI/AAAAAAAAx3c/lqGZqaTzJgw_KkehyNQFx516c0jtrGM3QCK4BGAYYCw/s1600/03-Enable%2BSecure%2BBackup%2BMode.PNG" imageanchor="1"><img border="0" src="https://1.bp.blogspot.com/-gFaCDr_z3N4/XBJL0JswoVI/AAAAAAAAx3c/lqGZqaTzJgw_KkehyNQFx516c0jtrGM3QCK4BGAYYCw/s1600/03-Enable%2BSecure%2BBackup%2BMode.PNG" /></a> </h4>
<h4 style="text-align: left;">
Confirn Enable Secure Backup Mode</h4>
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
<a href="http://2.bp.blogspot.com/-AA30D0Cd_4U/XBJL22m-3VI/AAAAAAAAx3k/OCH5bGFqeK0SLsyc61qaR6t5jNRfwAXvwCK4BGAYYCw/s1600/04-Confirn%2BEnable%2BSecure%2BBackup%2BMode.PNG" imageanchor="1"><img border="0" src="https://2.bp.blogspot.com/-AA30D0Cd_4U/XBJL22m-3VI/AAAAAAAAx3k/OCH5bGFqeK0SLsyc61qaR6t5jNRfwAXvwCK4BGAYYCw/s1600/04-Confirn%2BEnable%2BSecure%2BBackup%2BMode.PNG" /></a></h3>
<h3 style="text-align: left;">
Enable Common Compatibility Mode</h3>
<div style="text-align: left;">
When the DataPower Gateway is in Common Criteria Compatibility mode, it forces several settings to specific values. These values are required and enforced at restart. Common Criteria Compatibility mode affects audit log policies, password policies, and includes a group of default rules and actions. </div>
<h3 style="text-align: left;">
<a href="http://2.bp.blogspot.com/-ua55afWCTEc/XBJL7IwB6OI/AAAAAAAAx3s/3l1Y_IW-XN4x6r6ddtU7VBWFucb2h1NaQCK4BGAYYCw/s1600/05-%2BEnable%2BCommon%2BCompatibility%2BMode.PNG" imageanchor="1"><img border="0" src="https://2.bp.blogspot.com/-ua55afWCTEc/XBJL7IwB6OI/AAAAAAAAx3s/3l1Y_IW-XN4x6r6ddtU7VBWFucb2h1NaQCK4BGAYYCw/s1600/05-%2BEnable%2BCommon%2BCompatibility%2BMode.PNG" /></a></h3>
<h3 style="text-align: left;">
Create new admin password </h3>
<div style="text-align: left;">
Please Enter New Password to be used in next login</div>
<h3 style="text-align: left;">
<a href="http://3.bp.blogspot.com/-MxslA3peygE/XBJL9ss8u5I/AAAAAAAAx30/-8Hp1BmJIKkEb02OyMkV1fU0NjdWTrgbgCK4BGAYYCw/s1600/06-%2BPlease%2BEnter%2BNew%2BPassword.PNG" imageanchor="1"><img border="0" src="https://3.bp.blogspot.com/-MxslA3peygE/XBJL9ss8u5I/AAAAAAAAx30/-8Hp1BmJIKkEb02OyMkV1fU0NjdWTrgbgCK4BGAYYCw/s1600/06-%2BPlease%2BEnter%2BNew%2BPassword.PNG" /></a></h3>
<h3 style="text-align: left;">
Run the Install Wizard</h3>
<h3 style="text-align: left;">
<a href="http://2.bp.blogspot.com/-w8Poz_qyTvo/XBJMAeLcN7I/AAAAAAAAx4A/vZXRwGj_m0Aw-FjLbL_4sz8lVb8vDKjIgCK4BGAYYCw/s1600/07-%2BDo%2BYou%2Bwant%2Bto%2Brun%2Bthe%2BInstall%2BWizard.PNG" imageanchor="1"><img border="0" src="https://2.bp.blogspot.com/-w8Poz_qyTvo/XBJMAeLcN7I/AAAAAAAAx4A/vZXRwGj_m0Aw-FjLbL_4sz8lVb8vDKjIgCK4BGAYYCw/s1600/07-%2BDo%2BYou%2Bwant%2Bto%2Brun%2Bthe%2BInstall%2BWizard.PNG" /></a></h3>
<h3 style="text-align: left;">
Step 1 - Confirure network interfaces<a href="http://2.bp.blogspot.com/-c6YB14HBbpA/XBJMByFSsYI/AAAAAAAAx4I/OpIutxLN_boT63pf05GygtdxHWnEMuFuwCK4BGAYYCw/s1600/08-%2BDo%2Byou%2Bwant%2Btoconfirure%2Bnetwork%2Binterfaces.PNG" imageanchor="1"><img border="0" src="https://2.bp.blogspot.com/-c6YB14HBbpA/XBJMByFSsYI/AAAAAAAAx4I/OpIutxLN_boT63pf05GygtdxHWnEMuFuwCK4BGAYYCw/s1600/08-%2BDo%2Byou%2Bwant%2Btoconfirure%2Bnetwork%2Binterfaces.PNG" /></a></h3>
<div style="text-align: left;">
Do you want to confirure network interfaces</div>
<h3 style="text-align: left;">
<a href="http://4.bp.blogspot.com/-CNcUQr1bUBY/XBJMEqFV1bI/AAAAAAAAx4Q/M6GVVHsUmLA1UoIWQp3OEudMFLKLcM9agCK4BGAYYCw/s1600/09-%2BDo%2Byou%2Bwant%2Btoconfirure%2Bnetwork%2Binterfaces_output.PNG" imageanchor="1"><img border="0" src="https://4.bp.blogspot.com/-CNcUQr1bUBY/XBJMEqFV1bI/AAAAAAAAx4Q/M6GVVHsUmLA1UoIWQp3OEudMFLKLcM9agCK4BGAYYCw/s1600/09-%2BDo%2Byou%2Bwant%2Btoconfirure%2Bnetwork%2Binterfaces_output.PNG" /></a></h3>
<h3 style="text-align: left;">
Do you want to confirure network interfaces answers to do </h3>
<ol style="text-align: left;">
<li>Start configuring the first network interface </li>
<ol>
<li>Enable the DHCP</li>
</ol>
<li>Don't configure the rest network interfaces </li>
</ol>
<h3 style="text-align: left;">
<a href="http://2.bp.blogspot.com/-Fok8iFPckPo/XBJMGekIl2I/AAAAAAAAx4Y/nYOAHBVWiPUaG6V8hvo_CJD56liJ4EvAgCK4BGAYYCw/s1600/10-%2BDo%2Byou%2Bwant%2Bto%2Bconfirure%2Bnetwork%2Binterfaces_answers.PNG" imageanchor="1"><img border="0" src="https://2.bp.blogspot.com/-Fok8iFPckPo/XBJMGekIl2I/AAAAAAAAx4Y/nYOAHBVWiPUaG6V8hvo_CJD56liJ4EvAgCK4BGAYYCw/s1600/10-%2BDo%2Byou%2Bwant%2Bto%2Bconfirure%2Bnetwork%2Binterfaces_answers.PNG" /></a></h3>
<h3 style="text-align: left;">
Step 2 - Configure network service</h3>
<h3 style="text-align: left;">
<a href="http://2.bp.blogspot.com/-47u2IWp8mYU/XBJMI1nmyUI/AAAAAAAAx4g/WXpAFsSuAVAkt1OdCFFUZFUg8NphA4YogCK4BGAYYCw/s1600/11-%2BStep%2B2%2B-%2BDo%2Byou%2Bwant%2Bto%2Bconfigure%2Bnetwork%2Bservice.PNG" imageanchor="1"><img border="0" src="https://2.bp.blogspot.com/-47u2IWp8mYU/XBJMI1nmyUI/AAAAAAAAx4g/WXpAFsSuAVAkt1OdCFFUZFUg8NphA4YogCK4BGAYYCw/s1600/11-%2BStep%2B2%2B-%2BDo%2Byou%2Bwant%2Bto%2Bconfigure%2Bnetwork%2Bservice.PNG" /></a></h3>
<h3 style="text-align: left;">
Step 3 - Define a unique system identifier for the appliance</h3>
<div style="text-align: left;">
Sometimes there is a need to have an identifier that is unique per DataPower device. Typically the device serial number is taken for these purposes.</div>
<div style="text-align: left;">
<span style="font-family: "arial" , sans-serif; font-size: 12.0pt; line-height: 107%;">Note: Give any appropriate unique system identifier.<br style="mso-special-character: line-break;" />
</span></div>
<h3 style="text-align: left;">
<a href="http://2.bp.blogspot.com/-HGQta5cbKDA/XBJMLE_df2I/AAAAAAAAx4s/S__WLtjGhpku0o13uiC9YxHtzIAh7HZ9ACK4BGAYYCw/s1600/12-%2BStep%2B3%2B-%2BDo%2Byou%2Bwant%2Bto%2Bdefine%2Ba%2Bunique%2Bsystem%2Bidentifier%2Bfor%2Bthe%2Bappliance.PNG" imageanchor="1"><img border="0" src="https://2.bp.blogspot.com/-HGQta5cbKDA/XBJMLE_df2I/AAAAAAAAx4s/S__WLtjGhpku0o13uiC9YxHtzIAh7HZ9ACK4BGAYYCw/s1600/12-%2BStep%2B3%2B-%2BDo%2Byou%2Bwant%2Bto%2Bdefine%2Ba%2Bunique%2Bsystem%2Bidentifier%2Bfor%2Bthe%2Bappliance.PNG" /></a></h3>
<h4 style="text-align: left;">
Step 4 - Do you want to configure remote Management access</h4>
<div style="text-align: left;">
These configuration require the IP address of the local interface that manage the appliance. </div>
<div style="text-align: left;">
<a href="http://3.bp.blogspot.com/-ZcysWdKmm30/XBJMZdPNszI/AAAAAAAAx5A/wSd15z1mhXEDzN_PpaOeWgqhgZ4OrmvHgCK4BGAYYCw/s1600/13-%2BStep%2B4%2B-%2BDo%2Byou%2Bwant%2Bto%2Bconfigure%2Bremote%2BManagement%2Baccess_1.PNG" imageanchor="1"><img border="0" src="https://3.bp.blogspot.com/-ZcysWdKmm30/XBJMZdPNszI/AAAAAAAAx5A/wSd15z1mhXEDzN_PpaOeWgqhgZ4OrmvHgCK4BGAYYCw/s1600/13-%2BStep%2B4%2B-%2BDo%2Byou%2Bwant%2Bto%2Bconfigure%2Bremote%2BManagement%2Baccess_1.PNG" /></a></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Do you have this information? [y]: y<br />
Do you want to enable SSH? [y]: y<br />
Enter the local IP address [0 for all] : 0<br />
Note: In case you provide specific IP earlier, Provide same IP as provided earlier.</div>
<div style="text-align: left;">
Enter the port number [22]:<br />
Note: Just enter to accept default or write your needed port</div>
<div style="text-align: left;">
<br /></div>
<h4 style="text-align: left;">
Do you want to enable WebGUI access [y]: y</h4>
<div style="text-align: left;">
The WebGUI is one of the graphical user interfaces that the DataPower Gateway provides. The Blueprint Console is the one of the graphical user interface (GUI) for the DataPower Gateway. The Blueprint Console allows you to create and manage patterns and tenants. </div>
<div style="text-align: left;">
</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<a href="http://4.bp.blogspot.com/-B2WR6KIaV3Q/XBJMbjU1B0I/AAAAAAAAx5M/79nXmuzVhsULcG34AuZcgXxo2wURyUJfwCK4BGAYYCw/s1600/14-%2BStep%2B4%2B-%2BDo%2Byou%2Bwant%2Bto%2Bconfigure%2Bremote%2BManagement%2Baccess_2.PNG" imageanchor="1"><img border="0" src="https://4.bp.blogspot.com/-B2WR6KIaV3Q/XBJMbjU1B0I/AAAAAAAAx5M/79nXmuzVhsULcG34AuZcgXxo2wURyUJfwCK4BGAYYCw/s1600/14-%2BStep%2B4%2B-%2BDo%2Byou%2Bwant%2Bto%2Bconfigure%2Bremote%2BManagement%2Baccess_2.PNG" /></a></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Enter the local IP address [0 for all] : 0<br />
Note: Just enter to accept default or write your needed port<br />
Enter the port number [9090]:<br />
Note: Just enter to accept default or write your needed port</div>
<h4 style="text-align: left;">
Step 5 - Configure a user account that can reset passwords</h4>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
</div>
<div style="text-align: left;">
</div>
<div style="text-align: left;">
</div>
<div style="text-align: left;">
<a href="http://3.bp.blogspot.com/-2wKPPrWqwQk/XBJMeY9N4QI/AAAAAAAAx5U/QGuGj9yaBWw-P6HXcmlFtPsFPTuAwZ77wCK4BGAYYCw/s1600/15-%2BStep%2B5%2B-%2BDo%2Byou%2Bwant%2Bto%2Bconfigure%2Ba%2Buser%2Baccount%2Bthat%2Bcan%2Breset%2Bpasswords.PNG" imageanchor="1"><img border="0" src="https://3.bp.blogspot.com/-2wKPPrWqwQk/XBJMeY9N4QI/AAAAAAAAx5U/QGuGj9yaBWw-P6HXcmlFtPsFPTuAwZ77wCK4BGAYYCw/s1600/15-%2BStep%2B5%2B-%2BDo%2Byou%2Bwant%2Bto%2Bconfigure%2Ba%2Buser%2Baccount%2Bthat%2Bcan%2Breset%2Bpasswords.PNG" /></a></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<h4 style="text-align: left;">
Step 6 - Configure the RAID array</h4>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<a href="http://1.bp.blogspot.com/-b-65PYiTXEI/XBJMjcrjWNI/AAAAAAAAx5c/ZyZS7eh69-Yt9fgm3sNjX1kuWsW_COVFgCK4BGAYYCw/s1600/16-%2BStep%2B6%2B-%2BDo%2Byou%2Bwant%2Bto%2Bconfigure%2Bthe%2BRAID%2Barray.PNG" imageanchor="1"><img border="0" src="https://1.bp.blogspot.com/-b-65PYiTXEI/XBJMjcrjWNI/AAAAAAAAx5c/ZyZS7eh69-Yt9fgm3sNjX1kuWsW_COVFgCK4BGAYYCw/s1600/16-%2BStep%2B6%2B-%2BDo%2Byou%2Bwant%2Bto%2Bconfigure%2Bthe%2BRAID%2Barray.PNG" /></a></div>
<div style="text-align: left;">
<br /></div>
<h4 style="text-align: left;">
Save the current configuration</h4>
<div style="text-align: left;">
<a href="http://4.bp.blogspot.com/-lwHZNlnNZ8k/XBJMmRR2DKI/AAAAAAAAx5k/S4Kylrw7uCIUHiK4CilurP6DxSBnJjAZwCK4BGAYYCw/s1600/17-%2BDo%2Byou%2Bwant%2Bto%2Bsave%2Bthe%2Bcurrent%2Bconfiguration.PNG" imageanchor="1"><img border="0" src="https://4.bp.blogspot.com/-lwHZNlnNZ8k/XBJMmRR2DKI/AAAAAAAAx5k/S4Kylrw7uCIUHiK4CilurP6DxSBnJjAZwCK4BGAYYCw/s1600/17-%2BDo%2Byou%2Bwant%2Bto%2Bsave%2Bthe%2Bcurrent%2Bconfiguration.PNG" /></a></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<h3 style="text-align: left;">
Access the configured device</h3>
<div style="text-align: left;">
</div>
<h4 style="text-align: left;">
Show int</h4>
<div style="text-align: left;">
The show ip interface command provides tons of useful information about the configuration and status of the IP protocol and its services, on all interfaces. The show ip interface brief command provides a quick status of the interfaces on the router, including their IP address, Layer 2 status, and Layer 3 status</div>
<div style="text-align: left;">
<a href="http://3.bp.blogspot.com/-ioOp_etsL4I/XBJMn9rHw-I/AAAAAAAAx5s/F2k606qq-oUvbAsqc-8jdAMPmeMdR26YACK4BGAYYCw/s1600/18-%2Bshow%2Bint.PNG" imageanchor="1"><img border="0" src="https://3.bp.blogspot.com/-ioOp_etsL4I/XBJMn9rHw-I/AAAAAAAAx5s/F2k606qq-oUvbAsqc-8jdAMPmeMdR26YACK4BGAYYCw/s1600/18-%2Bshow%2Bint.PNG" /></a></div>
<div style="text-align: left;">
<br /></div>
<h4 style="text-align: left;">
Accessing WebGUI</h4>
<div style="text-align: left;">
<a href="http://3.bp.blogspot.com/-8ruExxFl1ks/XBJMqQXJLPI/AAAAAAAAx54/LvLJVsBzUNoEG7usfeau1SOuSXmNa4mVQCK4BGAYYCw/s1600/19-%2BAccessing%2BWebGUI.PNG" imageanchor="1"><img border="0" height="453" src="https://3.bp.blogspot.com/-8ruExxFl1ks/XBJMqQXJLPI/AAAAAAAAx54/LvLJVsBzUNoEG7usfeau1SOuSXmNa4mVQCK4BGAYYCw/s640/19-%2BAccessing%2BWebGUI.PNG" width="640" /></a></div>
<div style="text-align: left;">
<br /></div>
<h4 style="text-align: left;">
Confirm Certificate</h4>
<div style="text-align: left;">
<a href="http://1.bp.blogspot.com/-QLImAII0VQE/XBJMsVq_NSI/AAAAAAAAx6E/1INp9cj7nmU7XMKAPWYq5J3sWj3-TeSsgCK4BGAYYCw/s1600/20-%2BConfirm%2BCertificate.PNG" imageanchor="1"><img border="0" height="168" src="https://1.bp.blogspot.com/-QLImAII0VQE/XBJMsVq_NSI/AAAAAAAAx6E/1INp9cj7nmU7XMKAPWYq5J3sWj3-TeSsgCK4BGAYYCw/s320/20-%2BConfirm%2BCertificate.PNG" width="320" /></a></div>
<div style="text-align: left;">
<br /></div>
<h4 style="text-align: left;">
Login Interface</h4>
<div style="text-align: left;">
<a href="http://4.bp.blogspot.com/-vMSpJiuLp3Q/XBJMv8xsqNI/AAAAAAAAx6M/7KsHf-TXvXQCn4pYRkKWHwxCoejN52P0ACK4BGAYYCw/s1600/21-%2BLogin%2BInterface.PNG" imageanchor="1"><img border="0" height="320" src="https://4.bp.blogspot.com/-vMSpJiuLp3Q/XBJMv8xsqNI/AAAAAAAAx6M/7KsHf-TXvXQCn4pYRkKWHwxCoejN52P0ACK4BGAYYCw/s320/21-%2BLogin%2BInterface.PNG" width="303" /></a></div>
<div style="text-align: left;">
<br /></div>
<h4 style="text-align: left;">
Accept Software License Agreement</h4>
<div style="text-align: left;">
<a href="http://2.bp.blogspot.com/-rSvaxcP2I9c/XBJMxVrwT6I/AAAAAAAAx6U/Na2wHrrqYGUagtyQpech7OGbaIUn2qXZwCK4BGAYYCw/s1600/22-%2BSoftware%2BLicense%2BAgreement.PNG" imageanchor="1"><img border="0" height="126" src="https://2.bp.blogspot.com/-rSvaxcP2I9c/XBJMxVrwT6I/AAAAAAAAx6U/Na2wHrrqYGUagtyQpech7OGbaIUn2qXZwCK4BGAYYCw/s320/22-%2BSoftware%2BLicense%2BAgreement.PNG" width="320" /></a></div>
<h4 style="text-align: left;">
Use device from the web UI</h4>
<div style="text-align: left;">
<a href="http://2.bp.blogspot.com/-55fYXnoExVI/XBJM1-NaJtI/AAAAAAAAx6c/xyrahbEjOGgejhj_gl2rqKaShKucL_U0wCK4BGAYYCw/s1600/23-%2BUI.PNG" imageanchor="1"><img border="0" src="https://2.bp.blogspot.com/-55fYXnoExVI/XBJM1-NaJtI/AAAAAAAAx6c/xyrahbEjOGgejhj_gl2rqKaShKucL_U0wCK4BGAYYCw/s1600/23-%2BUI.PNG" /></a></div>
<div style="text-align: left;">
<br /></div>
</div>
https://ansgohar.blogspot.com/http://www.blogger.com/profile/18208765118200990184noreply@blogger.com2tag:blogger.com,1999:blog-34004990.post-64265016404596855142018-09-17T18:08:00.001+02:002018-12-17T00:08:04.930+02:00VirtualBox and Docker Won’t Run | Because of Windows 10 Hyper-V?<div dir="ltr" style="text-align: left;" trbidi="on">
I managed to resolve the issue but not by uninstalling Hyper-V. I saw a couple of suggestions but I find this one suitable:<br />
<br />
STEP 1:<br />
Open the command prompt as an Administrator.<br />
<br />
STEP 2:<br />
Run the command with no argument:<br />
bcdedit<br />
<br />
After you run the above command, you will see that the property hypervisorlaunchtype is set Auto by default. See screenshot below:<br />
<br />
<a class="lightbox" data-download-href="//discuss.erpnext.com/uploads/default/5203f276b5d475d07d57fece71d934107883ffe8" href="https://discuss.erpnext.com/uploads/default/original/3X/5/2/5203f276b5d475d07d57fece71d934107883ffe8.png" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #0088cc; cursor: pointer; display: inline-block; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; font-size: 14px; outline: 0px; position: relative; text-decoration-line: none; word-wrap: break-word;" title="Untitled1.png"><img alt="Untitled1" height="387" src="https://discuss.erpnext.com/uploads/default/optimized/3X/5/2/5203f276b5d475d07d57fece71d934107883ffe8_1_690x387.png" style="border: 0px; max-height: 500px; max-width: 690px; outline: 0px; vertical-align: middle;" width="690" /></a><br />
<b>STEP 3:</b><br />
Disable Hyper-V by running the command:<br />
bcdedit /set hypervisorlaunchtype off<br />
<br />
<b>STEP 4:</b><br />
Restart your PC system to use VirtualBox.<br />
<br />
To turn Hyper-V back on, run the command:<br />
bcdedit /set hypervisorlaunchtype auto<br />
You will need to reboot the system to use Hyper-V.<br />
<div>
<br /></div>
<div class="lightbox-wrapper" style="background-color: #f9f9f9; color: #36414c; display: inline-block; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; font-size: 14px; outline: 0px;">
<div class="meta" style="background: rgb(34, 34, 34); bottom: 0px; color: white; cursor: pointer; display: inline-block; font-weight: bold; opacity: 0; outline: 0px; position: absolute; text-decoration-line: none; transition: opacity 0.2s ease 0s; width: 690px; word-wrap: break-word;">
<span class="filename" style="float: left; margin: 5px; max-width: 100%; outline: 0px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;"><br /></span><span class="filename" style="float: left; margin: 5px; max-width: 100%; outline: 0px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;"><a class="lightbox" data-download-href="//discuss.erpnext.com/uploads/default/5203f276b5d475d07d57fece71d934107883ffe8" href="https://discuss.erpnext.com/uploads/default/original/3X/5/2/5203f276b5d475d07d57fece71d934107883ffe8.png" style="background: transparent; color: #0088cc; cursor: pointer; display: inline-block; outline: 0px; position: relative; text-decoration-line: none; word-wrap: break-word;" title="Untitled1.png">Untitled1.png</a></span></div>
</div>
</div>
https://ansgohar.blogspot.com/http://www.blogger.com/profile/18208765118200990184noreply@blogger.com0tag:blogger.com,1999:blog-34004990.post-36314836489714800952018-08-27T16:59:00.001+02:002018-08-27T17:08:43.998+02:00IBM WebSphere Application Server Editions <div dir="ltr" style="text-align: left;" trbidi="on">
<div style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: #666666; direction: ltr; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.625rem; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;">
There are really 3 editions of WebSphere Application Server.</div>
<div style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; direction: ltr; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.625rem; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;">
</div>
<ul style="color: #666666; text-align: left;">
<li><strong style="background: 0px 0px; border: 0px; box-sizing: inherit; direction: ltr; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;">Core:</strong> Contains only a certified JEE web profile on Liberty technology stack </li>
<li><strong style="background: 0px 0px; border: 0px; box-sizing: inherit; direction: ltr; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;">Base:</strong> Contains both Liberty and Full Profile technology stacks. The Liberty Stack includes all of Core plus JMS client and Server features, MongoDB client, MDB, JAX-WS, JCA and some others. Plus licensing for certain functions of WebSphere Extreme Scale (object grid caching) </li>
<li><strong style="background: 0px 0px; border: 0px; box-sizing: inherit; direction: ltr; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;">Network Deployment:</strong> Contains both Liberty and Full Profile technology stacks. The Liberty Stack includes all of Base plus the ability to Cluster JVMs and to organized them through a collective and a single Administration Center. Ability to have assisted life cycle with the intelligent management components of full profile. Plus licensing for all of WebSphere Extreme Scale (object grid caching)</li>
</ul>
<div class="separator" style="clear: both; color: #666666; text-align: center;">
<a href="https://2.bp.blogspot.com/-EZl-eD9MblI/W4QQgUos9TI/AAAAAAAApRw/VXTXG2GHCUcOx7mP5KaSh0yPZmAIJGcJACLcBGAs/s1600/liberty_feature_set.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="608" data-original-width="1005" height="193" src="https://2.bp.blogspot.com/-EZl-eD9MblI/W4QQgUos9TI/AAAAAAAApRw/VXTXG2GHCUcOx7mP5KaSh0yPZmAIJGcJACLcBGAs/s320/liberty_feature_set.png" width="320" /></a></div>
<div style="color: #666666;">
<br /></div>
<div style="color: #666666;">
<b><u>Reference:</u></b></div>
<div>
<span style="color: blue;"><a href="http://www-01.ibm.com/support/knowledgecenter/SSEQTP_8.5.5/com.ibm.websphere.wlp.doc/ae/rwlp_feat.html?cp=SSEQTP_8.5.5%2F1-0-2-2-0&lang=en" target="_blank">The <span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border-color: initial; border-image: initial; border-style: initial; box-sizing: inherit; outline-color: initial !important; outline-width: initial !important; transition: color 0.25s ease 0s, background 0.25s ease 0s;">Liberty Features</span> page</a></span></div>
<br />
<div style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; direction: ltr; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.625rem; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;">
</div>
<div style="color: #666666;">
<br /></div>
</div>
https://ansgohar.blogspot.com/http://www.blogger.com/profile/18208765118200990184noreply@blogger.com1tag:blogger.com,1999:blog-34004990.post-64581273287386785842018-08-24T11:59:00.004+02:002018-08-24T11:59:50.064+02:00Docker | Windows 10/ Mac OS | unauthorized: incorrect username or password when trying to pull images<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<span style="background-color: white; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 14px;">It happens because the docker client (on macOS or Windos 10) allows you to sign in with your email address and password. </span><b style="color: #24292e; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 14px;">If you sign out and sign in with your Docker Username and password everything will work</b><span style="background-color: white; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 14px;">. </span><span style="background-color: white; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 14px;">So here's a better description of the issue</span><br />
<div style="background-color: white; box-sizing: border-box; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 14px; margin-bottom: 16px;">
<br /></div>
<div style="background-color: white; box-sizing: border-box; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 14px; margin-bottom: 16px;">
<span style="box-sizing: border-box; font-weight: 600;">Description</span><br style="box-sizing: border-box;" />When trying to pull images from the Docker registry <code style="background-color: rgba(27, 31, 35, 0.05); border-radius: 3px; box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 11.9px; margin: 0px; padding: 0.2em 0.4em;">docker: Error response from daemon: Get https://registry-1.docker.io/v2/library/hello-world/manifests/latest: unauthorized: incorrect username or password</code>. This happens if you sign in to Docker using your email address instead of your username.</div>
<div style="background-color: white; box-sizing: border-box; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 14px; margin-bottom: 16px;">
<span style="box-sizing: border-box; font-weight: 600;">Steps to Reproduce</span></div>
<ol style="background-color: white; box-sizing: border-box; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 14px; margin-bottom: 16px; margin-top: 0px; padding-left: 2em;">
<li style="box-sizing: border-box;">Clean install, or reset preferences for Docker</li>
<li style="box-sizing: border-box; margin-top: 0.25em;">Sign in to Docker GUI using your email address and password</li>
<li style="box-sizing: border-box; margin-top: 0.25em;">In the terminal, pull an image from the Docker registry</li>
</ol>
<div style="background-color: white; box-sizing: border-box; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 14px; margin-bottom: 16px;">
<span style="box-sizing: border-box; font-weight: 600;">Actual Results</span><br style="box-sizing: border-box;" /><span style="color: black; font-family: "Times New Roman"; font-size: small;"><i>docker: Error response from daemon: Get https://registry-1.docker.io/v2/library/hello-world/manifests/latest: unauthorized: incorrect username or password.</i></span></div>
<div style="background-color: white; box-sizing: border-box; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 14px; margin-bottom: 16px;">
<span style="font-weight: 600;">Solution </span></div>
<div style="background-color: white; box-sizing: border-box; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 14px; margin-bottom: 16px;">
Try logging back in with the CLI via <code style="background-color: rgba(27, 31, 35, 0.05); border-radius: 3px; box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 11.9px; margin: 0px; padding: 0.2em 0.4em;">docker login</code></div>
</div>
https://ansgohar.blogspot.com/http://www.blogger.com/profile/18208765118200990184noreply@blogger.com2tag:blogger.com,1999:blog-34004990.post-22017557072868127082018-08-04T15:25:00.005+02:002018-08-04T15:25:59.819+02:00What is the difference between 'git pull' and 'git fetch'?<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="answercell post-layout--right">
In the simplest terms, <i><b><code>git pull</code></b></i> does a <i><b><code>git fetch</code></b></i> followed by a <i><b><code>git merge</code></b></i>.</div>
<div class="answercell post-layout--right">
<div class="post-text" itemprop="text">
<br />
You can do a <b><i><code>git fetch</code> </i></b>at any time to update your remote-tracking branches under <code>refs/remotes/<remote>/</code>.<br />
<br />
This operation never changes any of your own local branches under <code>refs/heads</code>, and is safe to do without changing your working copy. I have even heard of people running <i><b><code>git fetch</code></b></i> periodically in a cron job in the background (although I wouldn't recommend doing this).<br />
<br />
A <i><b><code>git pull</code></b></i> is what you would do to bring a local branch
up-to-date with its remote version, while also updating your other
remote-tracking branches.<br />
<br />
<br />
<i><b><code>git pull</code></b></i> = <i><b><code>git fetch</code></b></i> + <i><b><code>git merge</code></b></i>.<i><b><code></code></b></i></div>
</div>
</div>
https://ansgohar.blogspot.com/http://www.blogger.com/profile/18208765118200990184noreply@blogger.com0tag:blogger.com,1999:blog-34004990.post-48776222150301563902018-08-03T11:49:00.003+02:002018-08-04T03:13:05.704+02:00Blockchain Research Papers<div dir="ltr" style="text-align: left;" trbidi="on">
I would like to welcome all the new and returning audience to my collected research paper Library. I wish you a happy and successful academic research.<br />
<br />
I will be glad to sincerely help you gain the maximum benefit through using this collection resources. Should any of you have an inquiry, problem or any sort of inconvenience when attempting to get any of the Library resources, feel free to contact me for help and support.<br />
<br />
BTW you are more that welcomed if you would like to share with me any other research paper to update the Library. <br />
<br />
My Ph.D in Blockchain so that I am open to co-work with any of you to gain the maximum benefit. <br />
<br />
<br />
<i><u><b>Library Resource URL:</b></u></i><br />
<br />
<style type="text/css">td p { margin-bottom: 0in; }p { margin-bottom: 0.1in; line-height: 120%; }</style>
<br />
<table cellpadding="4" cellspacing="0" style="width: 100%px;">
<colgroup><col width="65*"></col>
<col width="191*"></col>
</colgroup><tbody>
<tr>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: 1px solid #000000; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0.04in;" width="25%">Books</td>
<td style="border: 1px solid #000000; padding: 0.04in;" width="75%"><a href="https://drive.google.com/open?id=1tQ0MmLH_AikHGkCDQEXZsvqRyhd9fE1D">https://drive.google.com/open?id=1tQ0MmLH_AikHGkCDQEXZsvqRyhd9fE1D</a></td>
</tr>
<tr>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="25%">Concepts
</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0.04in; padding-top: 0in;" width="75%"><a href="https://drive.google.com/open?id=1GPXGj_rAG_H4OckOrGOOhdyD1N804qYM">https://drive.google.com/open?id=1GPXGj_rAG_H4OckOrGOOhdyD1N804qYM</a></td>
</tr>
<tr>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="25%"><br />
Challenges</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0.04in; padding-top: 0in;" width="75%"><br />
<a href="https://drive.google.com/open?id=1Zox49LtCWJ2bbufrJ9JrVtpkK_bOoXSO">https://drive.google.com/open?id=1Zox49LtCWJ2bbufrJ9JrVtpkK_bOoXSO</a></td>
</tr>
<tr>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="25%">Security</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0.04in; padding-top: 0in;" width="75%"><a href="https://drive.google.com/open?id=1e-ak5RgCOmHPs1Is4e-Lf9-vq8kE5F3D">https://drive.google.com/open?id=1e-ak5RgCOmHPs1Is4e-Lf9-vq8kE5F3D</a></td>
</tr>
<tr>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="25%">BigData</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0.04in; padding-top: 0in;" width="75%"><br />
<a href="https://drive.google.com/open?id=1CtG_IkHKBK_uRt-wIPN4ulMVbNgy0GKv">https://drive.google.com/open?id=1CtG_IkHKBK_uRt-wIPN4ulMVbNgy0GKv</a></td>
</tr>
<tr>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="25%">IOT</td>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0.04in; padding-top: 0in;" width="75%"><a href="https://drive.google.com/open?id=1UAx_A-rQyJOZ3ZQalFimsnflfgF1XT4_">https://drive.google.com/open?id=1UAx_A-rQyJOZ3ZQalFimsnflfgF1XT4_</a></td>
</tr>
<tr>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="25%">Journal</td><td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0.04in; padding-top: 0in;" width="75%"><a href="https://drive.google.com/open?id=1GT7lAck4EbCWBpEovvel_bC0lkVF_CTw">https://drive.google.com/open?id=1GT7lAck4EbCWBpEovvel_bC0lkVF_CTw</a></td></tr>
<tr>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="25%">Others</td><td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0.04in; padding-top: 0in;" width="75%"><a href="https://drive.google.com/open?id=1-AUmxDW5Ll-dQ0rGqqcNNj4AH1SMkp8C">https://drive.google.com/open?id=1-AUmxDW5Ll-dQ0rGqqcNNj4AH1SMkp8C</a></td></tr>
<tr>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="25%">Healthcare</td><td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0.04in; padding-top: 0in;" width="75%"><a href="https://drive.google.com/open?id=1n1D61TxzzRW2yI2i2t_cuVDAUhzX09yW">https://drive.google.com/open?id=1n1D61TxzzRW2yI2i2t_cuVDAUhzX09yW</a></td></tr>
<tr>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="25%"><br /></td><td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0.04in; padding-top: 0in;" width="75%"><br /></td></tr>
<tr>
<td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in; padding-top: 0in;" width="25%"><a href="https://drive.google.com/drive/folders/1hoJUL9pm4hX5roInSon4bESbofVAWqud?usp=sharing" target="_blank">Collection </a></td><td style="border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: none; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0.04in; padding-top: 0in;" width="75%"><br /></td></tr>
</tbody></table>
<br />
<br />
<div>
<b>Just two important points for your attention:</b><br /> - As always, I value the feedback you provide to me. Please be free to point me any miss named/grouped paper.</div>
<div>
- You are more than welcomed if you have any research paper not listed in my library and want to share it with us.</div>
<div>
</div>
<div>
</div>
<br />
<u><b>Yours:</b></u><br />
<b>Ahmad Gohar </b><br />
M.Sc, MIBA, TOGAF 9.1 L2, OpenGroup Mater IT specialist Certified<br />
Blockchain Developer - Mastery Award | Blockchain Developer - Author Award<br />
<br />
ansgohar@gmail.com<br />
<a href="https://www.linkedin.com/in/ansgohar/">https://www.linkedin.com/in/ansgohar/</a><br />
<a href="https://www.youracclaim.com/users/ansgohar">https://www.youracclaim.com/users/ansgohar</a><br />
<a href="https://speakerdeck.com/ansgohar" target="_blank">https://speakerdeck.com/ansgohar </a><br />
<a href="https://twitter.com/ansgohar">https://twitter.com/ansgohar</a><span id="goog_1455014305"></span><a href="https://www.blogger.com/"></a><span id="goog_1455014306"></span><br /><br />
<br /></div>
https://ansgohar.blogspot.com/http://www.blogger.com/profile/18208765118200990184noreply@blogger.com0Cairo, Cairo Governorate, Egypt30.0444196 31.23571160000005929.9344751 31.074350100000057 30.154364100000002 31.39707310000006tag:blogger.com,1999:blog-34004990.post-73733806058241830682018-07-25T19:00:00.002+02:002018-07-25T19:00:36.428+02:00Warning Message cannot validate component with empty value<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-color: white; background-repeat: no-repeat; box-sizing: border-box; color: #151619; font-family: "Open Sans", "Helvetica Neue", sans-serif; font-feature-settings: "kern"; font-kerning: normal; font-size: 17.077px;">"BeanValidator W cannot validate component with empty value: xxxComponent" is generated in server console logs coming from javax.faces.validator.BeanValidator class with JSF2.1 for multiple components. </span><span style="background-color: white; color: #151619; font-family: "Open Sans", "Helvetica Neue", sans-serif; font-size: 17.077px;">
</span><br />
<div style="-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-color: white; background-repeat: no-repeat; box-sizing: border-box; color: #151619; font-family: "Open Sans", "Helvetica Neue", sans-serif; font-feature-settings: "kern"; font-kerning: normal; font-size: 17.077px; margin-bottom: 1.65rem; padding: 0px;">
<br style="-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-repeat: no-repeat; box-sizing: border-box; font-feature-settings: "kern"; font-kerning: normal;" /></div>
<h2 class="c-bolt-headline c-bolt-headline--bold c-bolt-headline--xxlarge" style="-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-color: white; background-repeat: no-repeat; box-sizing: border-box; color: var(--bolt-theme-heading,inherit); font-family: "Open Sans", "Helvetica Neue", sans-serif; font-feature-settings: "kern"; font-kerning: normal; font-size: 1.781rem; letter-spacing: -0.025rem; line-height: 1.31; margin: 0px 0px 1.65rem; padding: 0px;">
Error Messages</h2>
<i><span style="-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-color: white; background-repeat: no-repeat; box-sizing: border-box; color: #151619; font-family: "Open Sans", "Helvetica Neue", sans-serif; font-feature-settings: "kern"; font-kerning: normal; font-size: 17.077px;">BeanValidator W cannot validate component with empty value: xxxComponent</span><span style="background-color: white; color: #151619; font-family: "Open Sans", "Helvetica Neue", sans-serif; font-size: 17.077px;">
</span></i><br />
<div style="-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-color: white; background-repeat: no-repeat; box-sizing: border-box; color: #151619; font-family: "Open Sans", "Helvetica Neue", sans-serif; font-feature-settings: "kern"; font-kerning: normal; font-size: 17.077px; margin-bottom: 1.65rem; padding: 0px;">
<br style="-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-repeat: no-repeat; box-sizing: border-box; font-feature-settings: "kern"; font-kerning: normal;" /></div>
<h2 class="c-bolt-headline c-bolt-headline--bold c-bolt-headline--xxlarge" style="-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-color: white; background-repeat: no-repeat; box-sizing: border-box; color: var(--bolt-theme-heading,inherit); font-family: "Open Sans", "Helvetica Neue", sans-serif; font-feature-settings: "kern"; font-kerning: normal; font-size: 1.781rem; letter-spacing: -0.025rem; line-height: 1.31; margin: 0px 0px 1.65rem; padding: 0px;">
Steps to Reproduce</h2>
<span style="-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-color: white; background-repeat: no-repeat; box-sizing: border-box; color: #151619; font-family: "Open Sans", "Helvetica Neue", sans-serif; font-feature-settings: "kern"; font-kerning: normal; font-size: 17.077px;">Use any component without binding to bean variable and use the value from FacesContext, RequestParameterMap in bean or phase listener</span><span style="background-color: white; color: #151619; font-family: "Open Sans", "Helvetica Neue", sans-serif; font-size: 17.077px;">
</span><br />
<div style="-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-color: white; background-repeat: no-repeat; box-sizing: border-box; color: #151619; font-family: "Open Sans", "Helvetica Neue", sans-serif; font-feature-settings: "kern"; font-kerning: normal; font-size: 17.077px; margin-bottom: 1.65rem; padding: 0px;">
<br style="-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-repeat: no-repeat; box-sizing: border-box; font-feature-settings: "kern"; font-kerning: normal;" /></div>
<h2 class="c-bolt-headline c-bolt-headline--bold c-bolt-headline--xxlarge" style="-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-color: white; background-repeat: no-repeat; box-sizing: border-box; color: var(--bolt-theme-heading,inherit); font-family: "Open Sans", "Helvetica Neue", sans-serif; font-feature-settings: "kern"; font-kerning: normal; font-size: 1.781rem; letter-spacing: -0.025rem; line-height: 1.31; margin: 0px 0px 1.65rem; padding: 0px;">
Root Cause</h2>
<span style="-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-color: white; background-repeat: no-repeat; box-sizing: border-box; color: #151619; font-family: "Open Sans", "Helvetica Neue", sans-serif; font-feature-settings: "kern"; font-kerning: normal; font-size: 17.077px;"><span style="-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-repeat: no-repeat; box-sizing: border-box; font-feature-settings: "kern"; font-kerning: normal;">A third-party product issue with Trinidad. This happens when the Trinidad <span style="-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-repeat: no-repeat; box-sizing: border-box; font-feature-settings: "kern"; font-kerning: normal;">tag is missing the value attribute. The value attribute binds between the input and the bean.</span></span></span><span style="background-color: white; color: #151619; font-family: "Open Sans", "Helvetica Neue", sans-serif; font-size: 17.077px;">
</span><br />
<h2 class="c-bolt-headline c-bolt-headline--bold c-bolt-headline--xxlarge" style="-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-color: white; background-repeat: no-repeat; box-sizing: border-box; color: var(--bolt-theme-heading,inherit); font-family: "Open Sans", "Helvetica Neue", sans-serif; font-feature-settings: "kern"; font-kerning: normal; font-size: 1.781rem; letter-spacing: -0.025rem; line-height: 1.31; margin: 0px 0px 1.65rem; padding: 0px;">
Resolution</h2>
<span style="-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-color: white; background-repeat: no-repeat; box-sizing: border-box; color: #151619; font-family: "Open Sans", "Helvetica Neue", sans-serif; font-feature-settings: "kern"; font-kerning: normal; font-size: 17.077px;">On binding the component with bean variable, the warning message does not appear in the logs. <br style="-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-repeat: no-repeat; box-sizing: border-box; font-feature-settings: "kern"; font-kerning: normal;" /><br style="-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-repeat: no-repeat; box-sizing: border-box; font-feature-settings: "kern"; font-kerning: normal;" />
If there are no functionality issues while executing the custom use case then these warning messages can be ignored. Alternatively, the logging can be configured to Severe level such that it is not logged in the server log. Configuring warning message related to JSF2 has been documented in Chordiant_JSF guide, page number-46. Refer the below text snippet: <br style="-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-repeat: no-repeat; box-sizing: border-box; font-feature-settings: "kern"; font-kerning: normal;" /><br style="-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-repeat: no-repeat; box-sizing: border-box; font-feature-settings: "kern"; font-kerning: normal;" /><em style="-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-repeat: no-repeat; box-sizing: border-box; font-feature-settings: "kern"; font-kerning: normal;">Note: To disable JSF 2.0 warnings from displaying at the server startup, add the properties org.apache.myfaces.level = SEVERE and javax.faces.validator.level = SEVERE in the default Java logging.properties file located in JAVA_HOME/jre/lib.<span style="-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-repeat: no-repeat; box-sizing: border-box; font-feature-settings: "kern"; font-kerning: normal;"> </span></em></span><span style="background-color: white; color: #151619; font-family: "Open Sans", "Helvetica Neue", sans-serif; font-size: 17.077px;">
</span></div>
https://ansgohar.blogspot.com/http://www.blogger.com/profile/18208765118200990184noreply@blogger.com0tag:blogger.com,1999:blog-34004990.post-17922965448111563672018-05-31T13:03:00.000+02:002018-05-31T13:03:19.295+02:00How to rename terminal tab title in Ubuntu 16?<div dir="ltr" style="text-align: left;" trbidi="on">
A lot of programs will overwrite the title so you can't rely on the
title being fixed or not duplicated by other windows. This is especially
so with remote ssh sessions in a gnome-terminal.<br />
It still helps a lot
but its not reliable enough for window managers to do matching against ,
so
this ability has been taken out with the newest <code>gnome-terminal</code>, however there is still a possibility to change the title, you can do it by command.<br />
<br />
To achieve this easily edit your <code>~/.bashrc</code> file and add the following lines:<br />
<br />
<br />
Create a function in <code>~/.bashrc</code>:<br />
<br />
<pre><code>function set-title() {
if [[ -z "$ORIG" ]]; then
ORIG=$PS1
fi
TITLE="\[\e]2;$*\a\]"
PS1=${ORIG}${TITLE}
} </code></pre>
<pre><code> </code></pre>
<pre><code> </code></pre>
<pre><code> </code></pre>
<pre><code> </code></pre>
<pre><b><code>Then use your new command to set the terminal title. It works with spaces in the name too
<code>set-title my new tab title </code></code></b></pre>
<pre><code><code> </code> </code></pre>
<br />
<br />
With this you then can set the title of your terminal window by simply using the command <code>set-title <name you want to set it to></code>. This is possible due to ANSI escape codes so any program can output them regardless of where the code is run. <br />
<br /></div>
https://ansgohar.blogspot.com/http://www.blogger.com/profile/18208765118200990184noreply@blogger.com0tag:blogger.com,1999:blog-34004990.post-80069528034582357162018-04-04T13:16:00.003+02:002018-04-04T13:16:32.220+02:00Ubuntu - How do I change my username?<div dir="ltr" style="text-align: left;" trbidi="on">
Unix-like <u>operating systems decouple the user name from the user
identity,</u> so you may safely change the name without affecting the ID.
All permissions, files, etc are tied to your identity (uid), not your
username.<br />
<br />
To manage every aspect of the user database, you use the <code>usermod</code> tool.<br />
<b><br /></b>
<b>1- To change username</b> (it is probably best to do this without being logged in): <br />
<pre><span style="background-color: #eeeeee;">sudo usermod -l newUsername oldUsername</span></pre>
<br />
This however, doesn't rename the home folder. <br />
<br />
<b>2- To change home-folder</b>, use <br />
<pre><code style="background-color: #eeeeee;">sudo usermod -d /home/newHomeDir -m newUsername
</code></pre>
<br />
<br />
after you changed the username.<br />
<br />
For instance, you could logout, drop to a console (<kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>F1</kbd>), and <code style="background-color: #eeeeee;">sudo su -</code> to become true root (as opposed to <code style="background-color: #eeeeee;">sudo -s</code>,
where $HOME is still /home/yourname.) Maybe you also have to kill some
still running processes from this user first. To do so, enter <span style="background-color: #eeeeee;"><code>ps -u username</code>,</span> look for the matching PID and kill them by <code style="background-color: #eeeeee;">kill PID-number</code>.<br />
<br />
Update: as arrange mentioned, some files may reference your old home
directory. You can either keep a symlink for backward compatibility, e g
<code style="background-color: #eeeeee;">ln -s /home/newname /home/oldname</code> or you can change the file contents with <code style="background-color: #eeeeee;">sed -i.bak 's/*oldname*/*newname*/g' *list of files*</code> It creates a backup for each file with a .bak extension.<br />
<br />
Some additional information for not so experienced users like me:<br />
As I only have ONE user account (administrator), it would not let me
change the username ("you are already logged in" was the response in
TTY1 (<kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>F1</kbd>). To get around this:<br />
<br />
<ol>
<li>Login with your old credentials and add a new user, e.g. "temporary" in TTY1:<br />
<pre><code style="background-color: #eeeeee;">sudo adduser temporary
</code></pre>
set the password.</li>
<li>Allow the temporary user to run sudo by adding the user to sudo group:<br />
<pre><code style="background-color: #eeeeee;">sudo adduser temporary sudo
</code></pre>
</li>
<li>Log out with the command <code>exit</code>.</li>
<li>Return to tty1: Login with the 'temporary' user account and password. Change your username and folder as mentioned above. <code>exit</code> (until you get the login prompt)</li>
<li>Go back to TTY7 (<kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>F7</kbd>) to login on the GUI/normal desktop screen and see if this works.</li>
<li>Delete temporary user and folder:<br />
<pre><code><span style="background-color: #eeeeee;">sudo deluser temporary
sudo rm -r /home/temporary</span>
</code></pre>
</li>
</ol>
<br />
NB: Copied from several resources. Thanks for the contribution. </div>
https://ansgohar.blogspot.com/http://www.blogger.com/profile/18208765118200990184noreply@blogger.com0tag:blogger.com,1999:blog-34004990.post-23507029810413251162018-04-02T22:54:00.000+02:002018-04-02T22:54:34.337+02:00Mac OS X - Reset MySQL Root Password<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #222222; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;">
<b><u>Have you forgotten your Mac OS X 'ROOT' password and need to reset it? Follow these 4 simple steps:</u></b></div>
<div style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #222222; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;">
1. Stop the mysqld server. Typically this can be done by from 'System Prefrences' > MySQL > 'Stop MySQL Server'</div>
<div style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #222222; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;">
2. Start the server in safe mode with privilege bypass</div>
<div style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #222222; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;">
From a terminal:</div>
<div style="border: 0px; box-sizing: inherit; clear: both; color: #222222; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;">
<span style="background-color: #eeeeee;"> sudo /usr/local/mysql/bin/mysqld_safe --skip-grant-tables</span></div>
<div style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #222222; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;">
3. In a new terminal window:</div>
<div style="border: 0px; box-sizing: inherit; clear: both; color: #222222; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;">
<span style="background-color: #eeeeee;"> sudo /usr/local/mysql/bin/mysql -u root</span></div>
<div style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #222222; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;">
<br /></div>
<div style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #242729; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;">
For MySQL older than MySQL 5.7 use:</div>
<div style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #242729; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;">
<code style="background-color: #eff0f1; border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;">UPDATE mysql.user SET Password=PASSWORD('your-password') WHERE User='root';</code></div>
<div style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #242729; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;">
For MySQL 5.7+ use:</div>
<div style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #242729; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;">
<code style="background-color: #eff0f1; border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;">USE mysql;</code></div>
<div style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #242729; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;">
<code style="background-color: #eff0f1; border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;">UPDATE mysql.user SET authentication_string=PASSWORD("your-password") WHERE User='root';</code></div>
<div style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #242729; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;">
Refresh and quit:</div>
<div style="border: 0px; box-sizing: inherit; clear: both; color: #242729; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;">
<span style="background-color: #f3f3f3; color: #222222; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;"> FLUSH PRIVILEGES;</span></div>
<div style="border: 0px; box-sizing: inherit; clear: both; color: #222222; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;">
<span style="background-color: #f3f3f3;"> \q</span></div>
<div style="background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #222222; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;">
4. Stop the mysqld server again and restart it in normal mode.</div>
</div>
https://ansgohar.blogspot.com/http://www.blogger.com/profile/18208765118200990184noreply@blogger.com0Egypt26.115985925333536 31.9921875-45.486599574666471 -148.0078125 90 -148.0078125tag:blogger.com,1999:blog-34004990.post-43105448018467583762017-09-12T00:47:00.002+02:002017-09-12T00:47:33.950+02:00How do I enable index downloads in Eclipse for Maven dependency search?<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="background-color: white; border: 0px; clear: both; color: #242729; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;">
I am using Eclipse Oxygen </div>
When I search for dependencies, I get the following warning (also see the screenshot after):<br />
<blockquote style="background-color: cornsilk; border-bottom-color: initial; border-bottom-style: initial; border-image: initial; border-left-color: rgb(255, 235, 142); border-left-style: solid; border-right-color: initial; border-right-style: initial; border-top-color: initial; border-top-style: initial; border-width: 0px 0px 0px 2px; color: #242729; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px 0px 10px; padding: 10px; quotes: none; vertical-align: baseline;">
<div style="border: 0px; clear: both; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; padding: 0px; vertical-align: baseline;">
Index downloads are disabled, search result may be incomplete.</div>
</blockquote>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-fyX12CYy7W4/WbcF_MNzETI/AAAAAAAAak8/YKLCHI1hQykctBbzfWdecYLzNHDO0KPPgCLcBGAs/s1600/Screen%2BShot%2B2017-09-11%2Bat%2B11.51.59%2BPM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="494" data-original-width="482" height="320" src="https://3.bp.blogspot.com/-fyX12CYy7W4/WbcF_MNzETI/AAAAAAAAak8/YKLCHI1hQykctBbzfWdecYLzNHDO0KPPgCLcBGAs/s320/Screen%2BShot%2B2017-09-11%2Bat%2B11.51.59%2BPM.png" width="312" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<b><u> Solution</u></b><br />
<ol style="background-color: white; border: 0px; color: #242729; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1em 30px; padding: 0px; vertical-align: baseline;">
<li style="border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 0.5em; padding: 0px; vertical-align: baseline; word-wrap: break-word;">In Eclipse, click on<strong style="border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"> Preferences</strong>, and then choose <strong style="border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">Maven</strong> in the left side.</li>
<li style="border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 0.5em; padding: 0px; vertical-align: baseline; word-wrap: break-word;">Check the box "<strong style="border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">Download repository index updates on startup</strong>".<ul style="border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style: disc; margin: 0px 0px 0px 30px; padding: 0.5em 0px 0px; vertical-align: baseline;">
<li style="border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;">Optionally, check the boxes <strong style="border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">Download Artifact Sources</strong> and <strong style="border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">Download Artifact JavaDoc</strong>.</li>
</ul>
</li>
<li style="border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 0.5em; padding: 0px; vertical-align: baseline; word-wrap: break-word;">Click <strong style="border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">OK</strong>. The warning won't appear anymore.</li>
<li style="border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;">Restart Eclipse.</li>
<li style="border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;">If not work, Rebuild the index.</li>
</ol>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/--m-mbaf1NhA/WbcGeHDY_BI/AAAAAAAAalE/BxXcBp_SO80EWnyhT63GT1TWmoGMuCUmACLcBGAs/s1600/Screen%2BShot%2B2017-09-11%2Bat%2B11.55.48%2BPM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="529" data-original-width="761" height="222" src="https://4.bp.blogspot.com/--m-mbaf1NhA/WbcGeHDY_BI/AAAAAAAAalE/BxXcBp_SO80EWnyhT63GT1TWmoGMuCUmACLcBGAs/s320/Screen%2BShot%2B2017-09-11%2Bat%2B11.55.48%2BPM.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-IeeZ80fRD6M/WbcSaiq9aPI/AAAAAAAAalU/10D3wehiO_4Tavu5p9Xe5pJfzd8TkIWvgCLcBGAs/s1600/Screen%2BShot%2B2017-09-12%2Bat%2B12.00.30%2BAM.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="319" data-original-width="728" height="140" src="https://4.bp.blogspot.com/-IeeZ80fRD6M/WbcSaiq9aPI/AAAAAAAAalU/10D3wehiO_4Tavu5p9Xe5pJfzd8TkIWvgCLcBGAs/s320/Screen%2BShot%2B2017-09-12%2Bat%2B12.00.30%2BAM.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div>
<span style="color: #242729; font-family: Arial, Helvetica Neue, Helvetica, sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px '.AppleSystemUIFont'}
</style></div>
https://ansgohar.blogspot.com/http://www.blogger.com/profile/18208765118200990184noreply@blogger.com0tag:blogger.com,1999:blog-34004990.post-24779338084264545682016-10-24T12:10:00.001+02:002016-10-24T12:13:22.025+02:00EndNote X7 Windows: Install Word 2016 CWYW Toolbar<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="background-color: white; box-sizing: border-box; font-family: Arial; font-size: 13.3333px; line-height: normal;">
The tools may need to be manually added to Word if they do not appear:</div>
<ol style="background-color: white; box-sizing: border-box; font-family: Arial; font-size: 13.3333px; line-height: normal; margin-bottom: 9px; margin-top: 0px;">
<li style="box-sizing: border-box; font-size: 10pt;">Browse to the <strong style="box-sizing: border-box;">Word 2016</strong> folder: <br style="box-sizing: border-box;" />"C:\Program Files (x86)\Microsoft Office\Office16." </li>
<li style="box-sizing: border-box; font-size: 10pt;">Right-click WINWORD.EXE and select "Run as Administrator" to open <strong style="box-sizing: border-box;">Word 2016</strong> with Administrative rights.</li>
<li style="box-sizing: border-box; font-size: 10pt;">Go to the File Menu and choose "Options."</li>
<li style="box-sizing: border-box; font-size: 10pt;">Select "Add-Ins" from the list at the left.</li>
<li style="box-sizing: border-box; font-size: 10pt;">At the bottom of the Add-Ins page, there is a "Manage:" dropdown list. Leave this on "COM Add-ins" and select Go.</li>
<li style="box-sizing: border-box; font-size: 10pt;">On the COM Add-Ins page, Choose the "Add..." button.</li>
<li style="box-sizing: border-box; font-size: 10pt;">Browse to the following location and select the "EndNote CWYW.dll" file.<br style="box-sizing: border-box;" />C:\Program Files (x86)\Common Files\ResearchSoft\Cwyw\17</li>
<li style="box-sizing: border-box; font-size: 10pt;">Once you have Selected the "EndNote CWYW.dll" file, choose OK and OK again to close the COM Add-Ins screen. The EndNote tools should now be in Word.</li>
</ol>
<div>
<span style="font-family: "arial";"><span style="font-size: 13.3333px;">For more options read this : <a href="https://researchsoftware.com/faq/endnote">https://researchsoftware.com/faq/endnote</a></span></span></div>
</div>
https://ansgohar.blogspot.com/http://www.blogger.com/profile/18208765118200990184noreply@blogger.com0tag:blogger.com,1999:blog-34004990.post-8240092646153208362016-10-05T09:36:00.002+02:002016-10-05T09:36:18.228+02:00Email Etiquette Tips<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<h2 style="text-align: left;">
Subject Line: </h2>
<br />
<ul style="text-align: left;">
<li><b>Be short, yet clear</b>so readers know what you're writing about and can find your note later.</li>
<li><b>Indicate urgency and whether action is required</b>. <i>For example: "Cust Sat Issue-Need response today"</i></li>
</ul>
<br />
<h2 style="text-align: left;">
Body of Note: </h2>
<br />
<ul style="text-align: left;">
<li><b>State the objective of your message in the first line</b>:<i> "This is to ask for your approval....."; "This is to invite you..."; etc..</i> This lets the recipient know right away what action is needed.</li>
<li><b>Be concise.</b></li>
<li><b>Choose words carefully.</b></li>
<li><b>Write with the audience in mind.</b></li>
<li><b>Limit your message to one subject.</b></li>
<li><b>Limit your message to 25 lines</b>... about one computer screen.</li>
<li><b>Use bulleted lists when appropriate.</b></li>
<li><b>Use "sections"</b> ("twisties") <b>where appropriate in longer notes.</b></li>
<li><b>Keep paragraphs short.</b></li>
<li><b>Add a blank line between paragraphs.</b></li>
<li><b>Use bold type to highlight main points.</b></li>
<li><b>Don’t SHOUT</b> ... using ALL CAPITAL LETTERS is considered shouting.</li>
</ul>
<br />
<h2 style="text-align: left;">
Etiquette: </h2>
<br />
<ul style="text-align: left;">
<li><b>Don’t send blanket messages to everyone on a distribution list if only 3 or 4 people need the information.</b></li>
<li><b>The recipient who needs to take action, should be directly addressed in the TO field</b> and the greeting/opening of the note.</li>
<li><b>Recipients copied (CC'd) on a note should not be expected to take action.</b> It's FYI only.</li>
<li><b>When marking e-mail urgent, ask yourself the question "Is urgent action really required by the recipient?"</b> Only send urgent e-mail if the answer is yes.</li>
<li><b>Don’t forward large-file attachments unless you know the recipient wants or needs them.</b> (Use Connections to share large files).</li>
<li><b>Don’t forward trails of notes unless it's necessary</b> to make sense of your note.</li>
<li><b>Don’t use e-mail to address "emotional" topics.</b> Speak directly.</li>
<li><b>Ensure that you have a footer on your e-mails</b> -- your name and contact details such as your phone number.</li>
</ul>
<br />
<h2 style="text-align: left;">
Thought Provokers: </h2>
<br />
<ul style="text-align: left;">
<li><b>People will learn about you from the e-mail you send.</b> Ensure your communication is courteous and professional.</li>
<li><b>Get to know the communication style of those with whom you communicate frequently.</b> How often do they access their e-mails? Do they prefer urgent messages by e-mail, instant message or phone?</li>
</ul>
<br />
<br /></div>
https://ansgohar.blogspot.com/http://www.blogger.com/profile/18208765118200990184noreply@blogger.com0tag:blogger.com,1999:blog-34004990.post-89054430918539265202016-09-21T13:12:00.004+02:002016-09-21T13:37:27.565+02:00CDI Best Practices with Real-Life Examples [TUT3287] @JavaOne16<div dir="ltr" style="text-align: left;" trbidi="on">
<h1 style="border: 0px; display: inline-block; font-style: inherit; font-weight: 300; line-height: 32px; margin: 0px; padding: 0px; text-shadow: rgba(0, 0, 0, 0.2) 0px 1px 1px; vertical-align: baseline; word-wrap: break-word;">
CDI Best Practices with Real-Life Examples [TUT3287]</h1>
<div>
<br /></div>
<div>
<br /></div>
<div>
<span style="background-color: white; color: #333333; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 14.85px;"><b>Session ID:</b></span><span class="Apple-tab-span" style="background-color: white; color: #333333; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 14.85px; white-space: pre;"> </span><span style="color: #333333; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif;"><span style="font-size: 14.85px;">TUT3287</span></span><br />
<span style="background-color: white; color: #333333; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 14.85px;"><b>Session Title / </b></span><span style="color: #333333; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 14.85px;"><b>Download Link :</b> </span><a href="https://speakerdeck.com/ansgohar/cdi-best-practices-with-real-life-examples-tut3287" style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;" target="_blank">CDI Best Practices with Real-Life Examples [TUT3287]</a></div>
<div>
<b><span style="background-color: white; color: #333333; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 14.85px;">Session Type:</span><span class="Apple-tab-span" style="background-color: white; color: #333333; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 14.85px; white-space: pre;"> </span></b><span style="background-color: white; color: #333333; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 14.85px;">Tutorial Session</span><br />
<span style="background-color: white; color: #333333; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 14.85px;"><b>Session Abstract:</b></span><br />
<span style="background-color: white; color: #333333; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 14.85px;">As the adoption of Contexts and Dependency Injection (CDI) for Java EE API grows, it is important to understand how to use CDI effectively to maximize the benefits of using a loosely coupled, type-safe, annotation-driven dependency injection solution. This session outlines the best practices for using CDI, such as annotations versus XML, @Named as a qualifier, qualifier type safety versus verbosity, effective use of producers/disposers, using scopes properly, best practices for using conversations, defining effective stereotypes, interceptors versus decorators, static versus dynamic injection/lookup, CDI versus Java EE resource injection, using CDI with EJB 3.1, CDI/JSF 2 integration patterns, and CDI/JPA 2 usage patterns.</span><br />
<span style="background-color: white; color: #333333; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 14.85px;"><br /></span>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-7cJwOP-DITc/V-Jw7BtfjbI/AAAAAAAAD78/Am45xQkN8hsHXRc-Q28MZSTBOJJ-1GkUgCLcB/s1600/AhmadGoharSession.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://1.bp.blogspot.com/-7cJwOP-DITc/V-Jw7BtfjbI/AAAAAAAAD78/Am45xQkN8hsHXRc-Q28MZSTBOJJ-1GkUgCLcB/s320/AhmadGoharSession.jpg" width="319" /></a></div>
<span style="background-color: white; color: #333333; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 14.85px;"><br /></span></div>
</div>
https://ansgohar.blogspot.com/http://www.blogger.com/profile/18208765118200990184noreply@blogger.com0tag:blogger.com,1999:blog-34004990.post-65334759978332533302016-09-16T20:32:00.000+02:002016-09-16T20:35:05.073+02:00Create First CDI Application<div dir="ltr" style="text-align: left;" trbidi="on">
<b>1- Create new Netbeans Project named "CDI_JavaOne16_TUT3287_Demo"</b><br />
<b><br /></b>
<b>2- Edit the "Web.xml"</b><br />
<b><br /></b>
<servlet-mapping><br />
<servlet-name>Faces Servlet</servlet-name><br />
<url-pattern>*.xhtml</url-pattern><br />
</servlet-mapping><br />
<br />
<b>and </b><br />
<br />
<welcome-file-list><br />
<welcome-file>index.xhtml</welcome-file><br />
</welcome-file-list><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-7jNicxfZYbs/V9w6MYqvRyI/AAAAAAAAD3A/UiajYbr5_SgUsKKJCAespDXi9JF6NerdgCLcB/s1600/Helloworld_web.xml.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="155" src="https://3.bp.blogspot.com/-7jNicxfZYbs/V9w6MYqvRyI/AAAAAAAAD3A/UiajYbr5_SgUsKKJCAespDXi9JF6NerdgCLcB/s320/Helloworld_web.xml.png" width="320" /></a></div>
<br />
<b>3- Run the project</b><br />
Is it works OK<br />
<br />
<b>4- Start our coding</b><br />
<br />
<b>5- create a POJO Bean named "HelloWorld"</b><br />
5.1 - add method<br />
public String sayHello(){<br />
return "Hello User from CDI !";<br />
}<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-l3ZRhnFZ2nM/V9w6TpTg_0I/AAAAAAAAD3E/UMy2abDIaxAqetSw9NW3YS8ufVojxerugCLcB/s1600/Helloworld_POJO.xml.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="166" src="https://1.bp.blogspot.com/-l3ZRhnFZ2nM/V9w6TpTg_0I/AAAAAAAAD3E/UMy2abDIaxAqetSw9NW3YS8ufVojxerugCLcB/s320/Helloworld_POJO.xml.png" width="320" /></a></div>
<br />
<b>6- create Managed bean for the page named "HelloManagedBean" with request scope</b><br />
import javax.enterprise.context.RequestScoped;<br />
6.1 - Inject the bean<br />
@Inject<br />
private HelloWorld helloWorld;<br />
<br />
6.1 - add action method<br />
public String sayHelloAction() {<br />
System.out.println("com.javaone.cdi.secOne.hello.beans.HelloManagedBean.sayHelloAction() : " + helloWorld.sayHello());<br />
return null;<br />
}<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-bJv_11qmGRA/V9w6Yauu4ZI/AAAAAAAAD3I/8dLN6Xkm1Aghm9iJys15CONZP9C2jezfACLcB/s1600/Helloworld_ManagedBean.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="127" src="https://3.bp.blogspot.com/-bJv_11qmGRA/V9w6Yauu4ZI/AAAAAAAAD3I/8dLN6Xkm1Aghm9iJys15CONZP9C2jezfACLcB/s320/Helloworld_ManagedBean.png" width="320" /></a></div>
<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
<b>7- craete page named "HelloPage.xhtml"</b><br />
7.1 - Add <h:form><br />
7.2 - add command button <h:commandButton value="Say Hello" action="#{helloManagedBean.sayHelloAction}"/><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-sHfJI0iOTyA/V9w6c6fVfqI/AAAAAAAAD3M/NQG6C-1vie4WpJmB9iJzVC66qMJhKoEdQCLcB/s1600/Helloworld_page.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="104" src="https://4.bp.blogspot.com/-sHfJI0iOTyA/V9w6c6fVfqI/AAAAAAAAD3M/NQG6C-1vie4WpJmB9iJzVC66qMJhKoEdQCLcB/s320/Helloworld_page.png" width="320" /></a></div>
<br />
<b>8- Activate CDI by adding the beans.xml</b><br />
8.1 - update the configuration to be bean-discovery-mode to be "all"<br />
<?xml version="1.0" encoding="UTF-8"?><br />
<beans xmlns="http://xmlns.jcp.org/xml/ns/javaee"<br />
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br />
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd"<br />
bean-discovery-mode="all"><br />
</beans><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-00RmY1W1zMg/V9w6kdLgNnI/AAAAAAAAD3Q/UBEymA2KjwAJ6K1hFTNoLLPnUGQ1f6E5wCLcB/s1600/Helloworld_bean.xml.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="43" src="https://1.bp.blogspot.com/-00RmY1W1zMg/V9w6kdLgNnI/AAAAAAAAD3Q/UBEymA2KjwAJ6K1hFTNoLLPnUGQ1f6E5wCLcB/s320/Helloworld_bean.xml.png" width="320" /></a></div>
<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
<b>9- Run<span class="Apple-tab-span" style="white-space: pre;"> </span></b><br />
<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
<div class="separator" style="clear: both; text-align: center;">
<span class="Apple-tab-span" style="white-space: pre;"><a href="https://4.bp.blogspot.com/-YIw2TonfMmU/V9w7UtNBCPI/AAAAAAAAD3U/A6XdlcpHM4Qoje1d0_wRtHlmzJbcu8rSwCLcB/s1600/Helloworld_output.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="92" src="https://4.bp.blogspot.com/-YIw2TonfMmU/V9w7UtNBCPI/AAAAAAAAD3U/A6XdlcpHM4Qoje1d0_wRtHlmzJbcu8rSwCLcB/s320/Helloworld_output.png" width="320" /></a></span></div>
</div>
https://ansgohar.blogspot.com/http://www.blogger.com/profile/18208765118200990184noreply@blogger.com0tag:blogger.com,1999:blog-34004990.post-82104756698379216532016-04-27T15:28:00.000+02:002016-04-27T15:29:26.394+02:00 How to handle percent (%) underscore (_) and quotes within SQL LIKE queries<div dir="ltr" style="text-align: left;" trbidi="on">
Oracle handles special characters with the ESCAPE clause, and the most common ESCAPE is for the wildcard percent sign (%), and the underscore (_). For handling quotes within a character query, you must add two quotes for each one that is desired.<br />
<br />
<div>
<pre class="sql" name="code">
--Retrive columns name ends with underscore for owner 'XYZ'
select *
from all_tab_columns
where owner = 'XYZ'
and column_name like '%\_' escape '\'
order by table_name , column_name
;
</pre>
</div>
</div>
https://ansgohar.blogspot.com/http://www.blogger.com/profile/18208765118200990184noreply@blogger.com0tag:blogger.com,1999:blog-34004990.post-25490615333776158432016-03-05T17:14:00.000+02:002016-03-05T17:14:12.325+02:00SQLSERVER: How to alter an existing table int primary key to become an identity column?<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="background-color: white; border: 0px; clear: both; color: #222426; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;">
Here's a great feature in SQL Server Management Studio SSMS that saved my day.</div>
<div style="background-color: white; border: 0px; clear: both; color: #222426; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;">
<b><u>In SSMS</u></b> </div>
<div style="background-color: white; border: 0px; clear: both; color: #222426; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;">
</div>
<ol style="text-align: left;">
<li>Go to Options -> Designers -> Table and Database Designers,</li>
<li>Check "Auto generate change scripts" and uncheck "Prevent saving changes that require table re-creation".</li>
</ol>
<br />
<div style="background-color: white; border: 0px; clear: both; color: #222426; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;">
<b><u>In object explorer</u></b></div>
<div style="background-color: white; border: 0px; clear: both; color: #222426; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px; text-align: left;">
</div>
<ol>
<li>Go to you table and select the column that will get the Identity specification. Right click and select modify. </li>
<li>In the Column properties panel, expand the tree "Identity Specification" and change "(Is Identity)" to yes. Now on the upper left size, select the icon "Generate script". </li>
<li>Pay attention to the warning messages.</li>
</ol>
<br />
<div style="background-color: white; border: 0px; clear: both; color: #222426; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px; text-align: left;">
Now you will have a generated script that will drop all your constraints, recreate the table with identity, and recreate the constraints. WOW!</div>
<div style="background-color: white; border: 0px; clear: both; color: #222426; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;">
<br /></div>
<div style="background-color: white; border: 0px; clear: both; color: #222426; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;">
<b style="border: 0px; margin: 0px; padding: 0px;">Extras::::></b> Everything worked fine. Also what I need is script to reproduce the modification in our clients installations. and I got it!!!</div>
</div>
https://ansgohar.blogspot.com/http://www.blogger.com/profile/18208765118200990184noreply@blogger.com0tag:blogger.com,1999:blog-34004990.post-76034282215182305372015-10-30T19:55:00.000+02:002016-02-24T19:59:01.284+02:00EJB 3.2/JPA 2.1 Best Practices with Real-Life Examples - CON7535<div dir="ltr" style="text-align: left;" trbidi="on">
Session ID:<span class="Apple-tab-span" style="white-space: pre;"> </span>CON7535<br />
Session Title:<span class="Apple-tab-span" style="white-space: pre;"> </span><a href="https://speakerdeck.com/ansgohar/jpa-2-dot-1-best-practices-with-real-life-examples-con7535" target="_blank">EJB 3.2/JPA 2.1 Best Practice with life examples (Download Link)</a><br />
Session Type:<span class="Apple-tab-span" style="white-space: pre;"> </span>Conference Session<br />
Session Abstract:<br />
This session’s speaker, an architect, discusses lessons learned from using JPA and EJB to support a high-volume, high-performance applications. These best practices don't only involve JPA/EJB but also its integration with other Java EE 7 technologies. They also include coding best practices, testing and production practices. The presentation focuses primarily on some Key concepts such as persistence context, lazy loading, caching, flushing, dirty checking, transaction and connection demarcation. This is a fast-paced presentation with many code samples. Categories covered include configuration, JPA, concurrency, performance tuning, exception handling and many more.<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<iframe width="320" height="266" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/9mbmwhntoK8/0.jpg" src="https://www.youtube.com/embed/9mbmwhntoK8?feature=player_embedded" frameborder="0" allowfullscreen></iframe></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br /></div>
https://ansgohar.blogspot.com/http://www.blogger.com/profile/18208765118200990184noreply@blogger.com0tag:blogger.com,1999:blog-34004990.post-76125028908646323172015-09-13T16:24:00.000+02:002015-09-13T16:27:42.740+02:00What's the difference between text/xml vs application/xml for webservice response?<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="font-family: Verdana, Arial, Helvetica, Meiryo, メイリオ, 'Arial Unicode MS', 'MS Gothic', 'Lucida Sans Unicode', sans-serif; font-size: small; line-height: 17.55px;">
<div style="text-align: justify;">
<span style="background-color: white;">XML has two MIME types, application/xml and text/xml. These are often used interchangeably, but there is a subtle difference which is why application/xml is generally recommended over the latter.</span></div>
<br />
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<span style="background-color: white;">Let me explain why: according to the standard, text/*-MIME types have a us-ascii character set unless otherwise specified in the HTTP headers. This effectively means that any encoding defined in the XML prolog (e.g. <?xml version=”1.0” encoding=”UTF-8”?>) is ignored. This is of course not the expected and desired behavior.</span></div>
<br />
<br />
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<span style="background-color: white;">To further complicate matters, most/all browser implementations actually implement nonstandard behavior for text/xml because they process the encoding as if it were application/xml.</span></div>
<br />
<div style="text-align: justify;">
<span style="background-color: white;"><br /></span></div>
<div style="text-align: justify;">
<span style="background-color: white;"><b>application/xml is generally the preferred mime type. For text/xml it appears the encoding will generally be treated as us ascii regardless of what is specified in the XML document header (unless otherwise specified in the HTTP headers).</b></span></div>
<br />
<div style="text-align: justify;">
<br /></div>
<span style="background-color: white;"><div style="text-align: justify;">
<b><u>From the RFC (3023), under section 3, XML Media Types:</u></b></div>
</span><br />
<div style="text-align: justify;">
<span style="background-color: white;">If an XML document -- that is, the unprocessed, source XML document -- is readable by casual users, text/xml is preferable to application/xml. MIME user agents (and web user agents) that do not have explicit support for text/xml will treat it as text/plain, for example, by displaying the XML MIME entity as plain text. Application/xml is preferable when the XML MIME entity is unreadable by casual users.</span></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b><i>So, text/* has encoding issues, and is not implemented by browsers in a standards-compliant manner, which is why using application/* is recommended.</i></b></div>
</div>
</div>
https://ansgohar.blogspot.com/http://www.blogger.com/profile/18208765118200990184noreply@blogger.com1tag:blogger.com,1999:blog-34004990.post-84254063308324257412015-09-13T15:00:00.000+02:002015-09-13T15:03:11.374+02:00RESTfull valid return types!<div dir="ltr" style="text-align: left;" trbidi="on">
Valid return types is general includes:<br />
<br />
<ul style="text-align: left;">
<li>void</li>
<li>byte[] </li>
<li>String</li>
<li>Application-Supplied JAXB classes and javax.xml.bunding.JAXBElement</li>
<li>MultivaluedMap<String,String></li>
<li>Response, which can set status property</li>
<li>GenericEntity</li>
</ul>
</div>
https://ansgohar.blogspot.com/http://www.blogger.com/profile/18208765118200990184noreply@blogger.com0tag:blogger.com,1999:blog-34004990.post-52049655225337285102015-09-13T14:56:00.000+02:002015-09-13T14:56:43.612+02:00RESTfull @QueryParam and @PathParam, What it Can be and Can't be!<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<ul style="text-align: left;">
<li>All primitive types except char.</li>
<li>All wrapper classes of primitive types except Character.</li>
<li>Any class with the static method named valueOf(String) that accepts a single String argument.</li>
<li>Any class with constructorthat takes a single String as a parameter</li>
<li>List<T>, Set<T>, SortedSet<T>, where T matches the already listed criteria. Sometimes parameters many contain more than one value for the same name. If this is the case, this types may be used to obtain all values.</li>
</ul>
<br />
<i>DefaultValue annotation may be used to supply a default value for parameters</i></div>
https://ansgohar.blogspot.com/http://www.blogger.com/profile/18208765118200990184noreply@blogger.com0tag:blogger.com,1999:blog-34004990.post-18450890091242223692015-08-04T18:13:00.001+02:002015-08-04T18:13:57.640+02:00Share your knowledge during my JavaOne 2015 Conference Session : EJB 3.2/JPA 2.1 Best Practices ...<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: center;">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-vUdxTQ4kof4/VcDjLSUEAII/AAAAAAAACqg/G9vWfBra-aU/s1600/Share-Your-Knowledge.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-vUdxTQ4kof4/VcDjLSUEAII/AAAAAAAACqg/G9vWfBra-aU/s320/Share-Your-Knowledge.jpg" width="320" /></a></div>
<span style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; text-align: left;"><i><b><br /></b></i></span>
<span style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; text-align: left;"><i><b>My session below on which I'm a speaker at JavaOne 2015 San-Francisco, CA, USA accepted.</b></i></span></div>
<div style="text-align: center;">
<span style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; text-align: left;"><i><b><br /></b></i></span>
<span style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; text-align: left;"><i><b><br /></b></i></span>
<br />
<div style="text-align: center;">
<b style="text-align: left;"><u><span style="font-family: arial, sans-serif;"><span style="background-color: #fff2cc; color: #073763; font-size: 12.8000001907349px;">I would like to make it interactive and need you all to share your experience and hot issues you face while using EJB, JPA, Hibernate, CDI. </span></span></u></b></div>
<div style="text-align: center;">
<b style="text-align: left;"><u><span style="background-color: #fff2cc; color: #073763;"><span style="font-family: arial, sans-serif;"><span style="font-size: 12.8000001907349px;">Your</span></span><span style="font-family: arial, sans-serif;"><span style="font-size: 12.8000001907349px;"> interactive comment is highly appreciated.</span></span></span></u></b></div>
<b style="text-align: left;"><u style="background-color: #fff2cc;"><span style="color: #0b5394;"><span style="font-family: arial, sans-serif; font-size: 12.8000001907349px;"><br /></span></span></u></b></div>
<span style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"><b><i>Conference:</i></b> JavaOne</span><br />
<span style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; line-height: 20.7999992370605px;"><b><i>Session Type:</i></b> Conference Session</span><br />
<span style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"><b><i>Session ID:</i></b> CON7535</span><br />
<span style="background-color: white; font-family: arial, sans-serif; font-size: 12.8000001907349px;"><b style="color: #222222;"><i>Session Title:</i></b> <b><u><span style="color: #674ea7;">EJB 3.2/JPA 2.1 Best Practices with Real-Life Examples</span></u></b></span><br />
<span style="background-color: white; font-family: arial, sans-serif; font-size: 12.8000001907349px;"><b><u><span style="color: #674ea7;"><br /></span></u></b></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-n82Y1w33OLg/VaeQhsduxzI/AAAAAAAACos/rS6hF63qKC0/s1600/MyJavaOneSession.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="242" src="http://4.bp.blogspot.com/-n82Y1w33OLg/VaeQhsduxzI/AAAAAAAACos/rS6hF63qKC0/s400/MyJavaOneSession.jpg" width="400" /></a></div>
<br />
Thanks for being a part of this success.<br />
<br />
<b><a href="https://about.me/ansgohar" target="_blank">Ahmad Gohar</a></b><br />
<b>https://about.me/ansgohar</b><br />
<br />
<br /></div>
https://ansgohar.blogspot.com/http://www.blogger.com/profile/18208765118200990184noreply@blogger.com0tag:blogger.com,1999:blog-34004990.post-73929642121793264632015-07-16T14:12:00.004+02:002015-07-16T14:12:33.181+02:00iBATIS, Hibernate, JPA; What to use<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
iBATIS, Hibernate, and JPA are three different mechanisms for persisting data in a relational database. Each has its own advantages and limitations. iBATIS does not provide a complete ORM solution, and does not provide any direct mapping of objects and relational models. However, iBATIS provides you with complete control over queries. Hibernate provides a complete ORM solution, but offers you no control over the queries. Hibernate is very popular and a large and active community provides support for new users. JPA also provides a complete ORM solution, and provides support for object-oriented programming features like inheritance and polymorphism, but its performance depends on the persistence provider.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
The choice of a particular persistence mechanism is a matter of weighing all of the features discussed in the comparison section of this article. For most developers the decision will be made based on whether you require complete control over SQL for your application, need to auto-generate SQL, or just want an easy-to-program complete ORM solution.</div>
<br />
<div style="text-align: center;">
<b><u><br /></u></b></div>
<div style="text-align: center;">
<b><u>Key Features: </u></b></div>
<ul style="text-align: left;">
<li><u><b>iBATIS</b></u></li>
</ul>
<ol style="margin-left: 40px; text-align: left;">
<li>Maps the ResultSet from JDBC API to your POJO Objets.</li>
<li>Makes use of SQL which could be database dependent </li>
<li>Works very well for stored procedures, works very well for reporting applications, etc</li>
<li>Simpler, Faster development time</li>
<li>Flexible</li>
<li>Enables the data model and the object model to be independent of each other.</li>
</ol>
<ul style="text-align: left;">
<li><u><b>Hibernate:</b></u></li>
</ul>
<ol style="margin-left: 40px; text-align: left;">
<li>Maps your Java POJO objects to the Database tables </li>
<li>Makes use of HQL which is relatively independent of databases and it is easier to change db in Hibernate.</li>
<li>If you are using stored procedures, well you can do it in Hibernate but it is little difficult in comparison of iBATIS</li>
<li>Generates SQL for you which means you don't spend time on SQL</li>
<li>Provides much more advance cache</li>
<li>Highly scalable </li>
<li>HQL also supports many advanced features of pagination and dynamic profiling that SQL has never supported.</li>
</ol>
<ul style="text-align: left;">
<li><u><b>JPA:</b></u></li>
</ul>
<ol style="margin-left: 40px; text-align: left;">
<li>JPA uses metadata annotations and/or XML descriptor files to configure the mapping between Java objects in the application domain and tables in the relational database.</li>
<li>Defines a SQL-like query language, JPQL (Java Persistence Query Language), which is different from EJB-QL (EJB Query Language), the language used by entity beans.</li>
<li>Is the standard object-relational mapping and persistence management interface for the Java EE 5 platform</li>
<li>Entity Class Annotation (@Entity, @Table, @Column, @NamedQuery)</li>
<li>JPA also supports SQL through the createNativeQuery() method of the EntityManager.</li>
<li>Hibernate is one of the most popular frameworks that implements JPA.</li>
</ol>
<div style="text-align: left;">
<div style="text-align: center;">
<b><u><br /></u></b></div>
<div style="text-align: center;">
<b><u>When TO/NOT TO Use:</u></b></div>
</div>
<ul style="text-align: left;">
<li><u><b>Use iBATIS if:</b></u></li>
</ul>
<div style="text-align: left;">
</div>
<ol style="margin-left: 40px; text-align: left;">
<li>You need complete control of the SQL or the SQL queries need to be fine-tuned.</li>
<li>your environment is driven by relational data model.</li>
<li>you have to work existing and complex schema's.</li>
</ol>
<ul style="text-align: left;">
<li><u><b>Use Hibernate if:</b></u></li>
</ul>
<ol style="text-align: left;"><ol>
<li>Your environment is driven by object model and wants generates SQL automatically.</li>
</ol>
</ol>
<ul style="text-align: left;">
<li><u><b>Not to use JPA :</b></u></li>
</ul>
<ol style="margin-left: 40px; text-align: left;">
<li>Caching, which is not clearly defined in JPA but is well supported by Hibernate. </li>
<li>JPA is defined to work with relational databases only. If your persistence solution needs to be extended to other types of data stores, like XML databases, then JPA is not the answer to your persistence problem.</li>
</ol>
<div style="text-align: left;">
</div>
<br />
<h4>
Persistence solutions compared</h4>
<table border="2"><tbody>
<tr><th>Features</th><th>iBATIS</th><th>Hibernate</th><th>JPA</th></tr>
<tr><td><b>Simplicity</b></td><td>Best</td><td>Good</td><td>Good</td></tr>
<tr><td><b>Complete ORM solution</b></td><td>Average</td><td>Best</td><td>Best</td></tr>
<tr><td><b>Adaptability to data model changes</b></td><td>Good</td><td>Average</td><td>Average</td></tr>
<tr><td><b>Complexity</b></td><td>Best</td><td>Average</td><td>Average</td></tr>
<tr><td><b>Dependence on SQL</b></td><td>Good</td><td>Average</td><td>Average</td></tr>
<tr><td><b>Performance</b></td><td>Best</td><td>Best</td><td>N/A <sup>*</sup></td></tr>
<tr><td><b>Portability across different relational databases</b></td><td>Average</td><td>Best</td><td>N/A <sup>*</sup></td></tr>
<tr><td><b>Portability to non-Java platforms</b></td><td>Best</td><td>Good</td><td>Not Supported</td></tr>
<tr><td><b>Community support and documentation</b></td><td>Average</td><td>Good</td><td>Good</td></tr>
</tbody></table>
<span style="font-size: x-small;">* The features supported by JPA are dependent on the persistence provider and the end result may vary accordingly.</span><br />
<br />
<br />
<br />
<br /></div>
https://ansgohar.blogspot.com/http://www.blogger.com/profile/18208765118200990184noreply@blogger.com0