tag:blogger.com,1999:blog-41923217182964698572024-03-13T23:05:15.011+05:00Danish HussainTrust yourself. You know more than you think you do.Danish Hussainhttp://www.blogger.com/profile/02518165805693137776noreply@blogger.comBlogger87125tag:blogger.com,1999:blog-4192321718296469857.post-86770114406434396462018-10-30T23:24:00.001+05:002018-10-30T23:24:34.708+05:00Blockchain - Introduction<div dir="ltr" style="text-align: left;" trbidi="on">
Following gives a simple layman definition of Blockchain<br />
<ul style="text-align: left;">
<li>A shared ledger (record of collection of transactions). It contains all transaction taken place since beginning and are publicly accessible to everyone.</li>
<li>Stored on a distributed environment using the peer-to-peer technologies</li>
<li>Blockchain network ensure that multiple nodes can securely communicates with each other</li>
<li>Whoever opt to participate in the blockchain network will have a copy complete ledger / blockchain</li>
</ul>
There are many blockchain available which share some common properties but works in a different way however the first and the most prominent blockchain is Bitcoin.<br />
<br />
Understanding bitcoin is recommended to understand basic concept of blockchain. By learning underlying technology of bitcoin, we can learn of how blockchain technology works and it can allow us to understand other blockchain technologies.<br />
<div>
<br /></div>
<div>
Following details the high level concept of Bitcoin blockchain. </div>
<div>
<ul style="text-align: left;">
<li>A Bitcoin blockchain is the ledger of all transaction taken place since beginning till dates.</li>
<li>All transaction are stored in Bitcoin blockchain in the form of blocks</li>
<li>The ledger is distributed among the bitcoin node holding the copy of the chain</li>
<li>As soon as transactions are processed by the node, they are added in the bitcoin as a new blocks of transactions.</li>
<li>All these blocks and transactions are stored in blockchain securely using the cryptography.</li>
<li>Everyone can see transactions inside the blockchain but they are securely stored and it is impossible for anyone to alter or modify the stored transactions.</li>
<li>Each bitcoin nodes validates the data stored in blockchain and prevent any modification to avoid in the fraud etc.</li>
</ul>
<div>
<br /></div>
<div>
Blockchain has many use cases in the real world scenarios including</div>
<div>
<ul style="text-align: left;">
<li>Gambling sites</li>
<li>Personal finance</li>
<li>Self executing contracts</li>
<li>Lottery</li>
<li>Smart contracts</li>
</ul>
</div>
<br />
<br />
<br />
<br /></div>
</div>
Danish Hussainhttp://www.blogger.com/profile/02518165805693137776noreply@blogger.com0tag:blogger.com,1999:blog-4192321718296469857.post-68923554260555761312017-07-22T13:15:00.002+05:002017-07-22T13:15:48.308+05:00Android development - Adding scrollbar in your activity<div dir="ltr" style="text-align: left;" trbidi="on">
<pre style="background-color: white; font-family: "Courier New"; font-size: 9pt;">Adding scroll bar in your activity in your mobile application can be done easily.</pre>
<pre style="background-color: white; font-family: "Courier New"; font-size: 9pt;"></pre>
<pre style="background-color: white; font-family: "Courier New"; font-size: 9pt;">e.g. You have main layout for your mobile application as below</pre>
<pre style="background-color: white; font-family: "Courier New"; font-size: 9pt;"></pre>
<pre style="background-color: white; font-family: "Courier New"; font-size: 9pt;"><<span style="color: navy; font-weight: bold;">LinearLayout </span><span style="color: blue; font-weight: bold;">xmlns:</span><span style="color: #660e7a; font-weight: bold;">android</span><span style="color: blue; font-weight: bold;">=</span><span style="color: green; font-weight: bold;">"http://schemas.android.com/apk/res/android"</span><span style="color: green; font-weight: bold;"> </span><span style="color: blue; font-weight: bold;">xmlns:</span><span style="color: #660e7a; font-weight: bold;">tools</span><span style="color: blue; font-weight: bold;">=</span><span style="color: green; font-weight: bold;">"http://schemas.android.com/tools"</span><span style="color: green; font-weight: bold;"> </span><span style="color: #660e7a; font-weight: bold;">android</span><span style="color: blue; font-weight: bold;">:layout_width=</span><span style="color: green; font-weight: bold;">"fill_parent"</span><span style="color: green; font-weight: bold;"> </span><span style="color: #660e7a; font-weight: bold;">android</span><span style="color: blue; font-weight: bold;">:layout_height=</span><span style="color: green; font-weight: bold;">"fill_parent"</span><span style="color: green; font-weight: bold;"> </span><span style="color: #660e7a; font-weight: bold;">tools</span><span style="color: blue; font-weight: bold;">:context=</span><span style="color: green; font-weight: bold;">"com.learning.course.letslearn.MainMenu"</span><span style="color: green; font-weight: bold;"> </span><span style="color: #660e7a; font-weight: bold;">android</span><span style="color: blue; font-weight: bold;">:orientation=</span><span style="color: green; font-weight: bold;">"vertical"</span><span style="color: green; font-weight: bold;"> </span><span style="color: #660e7a; font-weight: bold;">android</span><span style="color: blue; font-weight: bold;">:layout_weight=</span><span style="color: green; font-weight: bold;">"100"</span><span style="color: green; font-weight: bold;"> </span><span style="color: #660e7a; font-weight: bold;">android</span><span style="color: blue; font-weight: bold;">:layout_marginLeft=</span><span style="color: green; font-weight: bold;">"15dp"</span><span style="color: green; font-weight: bold;"> </span><span style="color: #660e7a; font-weight: bold;">android</span><span style="color: blue; font-weight: bold;">:layout_marginRight=</span><span style="color: green; font-weight: bold;">"15dp"</span><span style="color: green; font-weight: bold;"> </span><span style="color: #660e7a; font-weight: bold;">android</span><span style="color: blue; font-weight: bold;">:layout_marginTop=</span><span style="color: green; font-weight: bold;">"15dp"</span><span style="color: green; font-weight: bold;"> </span>></pre>
<pre style="background-color: white; font-family: "Courier New"; font-size: 9pt;"><pre style="font-family: "Courier New"; font-size: 9pt;"><pre style="font-family: "Courier New"; font-size: 9pt;">.............</pre>
<pre style="font-family: "Courier New"; font-size: 9pt;">.............</pre>
<pre style="font-family: "Courier New"; font-size: 9pt;">.............</pre>
<div>
</div>
</pre>
</pre>
<pre style="background-color: white; font-family: "Courier New"; font-size: 9pt;"></<span style="color: navy; font-size: 9pt; font-weight: bold;">LinearLayout></span></pre>
<pre style="background-color: white; font-family: "Courier New"; font-size: 9pt;"><span style="color: navy; font-size: 9pt; font-weight: bold;">
</span></pre>
<pre style="background-color: white; font-family: "Courier New"; font-size: 9pt;"><span style="color: navy; font-size: 9pt; font-weight: bold;">Enclosing this with scroll view will ensure that whenever screen have less vertical space an scroll bar will be displayed</span></pre>
<pre style="background-color: white; font-family: "Courier New"; font-size: 9pt;"><span style="color: navy; font-size: 9pt; font-weight: bold;">
</span></pre>
<pre style="background-color: white; font-family: "Courier New"; font-size: 9pt;"><pre style="font-family: "Courier New"; font-size: 9pt;"><span style="font-style: italic;"><span style="color: blue; font-weight: bold;">xml version=</span><span style="color: green; font-weight: bold;">"1.0" </span><span style="color: blue; font-weight: bold;">encoding=</span><span style="color: green; font-weight: bold;">"utf-8"</span><span style="font-style: italic;">?></span><<span style="color: navy; font-weight: bold;">ScrollView </span><span style="color: blue; font-weight: bold;">xmlns:</span><span style="color: #660e7a; font-weight: bold;">android</span><span style="color: blue; font-weight: bold;">=</span><span style="color: green; font-weight: bold;">"http://schemas.android.com/apk/res/android"</span><span style="color: green; font-weight: bold;"> </span><span style="color: #660e7a; font-weight: bold;">android</span><span style="color: blue; font-weight: bold;">:id=</span><span style="color: green; font-weight: bold;">"@+id/ScrollView01"</span><span style="color: green; font-weight: bold;"> </span><span style="color: #660e7a; font-weight: bold;">android</span><span style="color: blue; font-weight: bold;">:layout_width=</span><span style="color: green; font-weight: bold;">"fill_parent"</span><span style="color: green; font-weight: bold;"> </span><span style="color: #660e7a; font-weight: bold;">android</span><span style="color: blue; font-weight: bold;">:layout_height=</span><span style="color: green; font-weight: bold;">"fill_parent"</span><span style="color: green; font-weight: bold;"> </span><span style="color: #660e7a; font-weight: bold;">android</span><span style="color: blue; font-weight: bold;">:fillViewport=</span><span style="color: green; font-weight: bold;">"true"</span><span style="color: green; font-weight: bold;"> </span><span style="color: #660e7a; font-weight: bold;">android</span><span style="color: blue; font-weight: bold;">:layout_marginBottom=</span><span style="color: green; font-weight: bold;">"10dp"</span><span style="color: green; font-weight: bold;"> </span>>
<<span style="color: navy; font-weight: bold;">LinearLayout </span><span style="color: blue; font-weight: bold;">xmlns:</span><span style="color: #660e7a; font-weight: bold;">android</span><span style="color: blue; font-weight: bold;">=</span><span style="color: green; font-weight: bold;">"http://schemas.android.com/apk/res/android"</span><span style="color: green; font-weight: bold;"> </span><span style="color: blue; font-weight: bold;">xmlns:</span><span style="color: #660e7a; font-weight: bold;">tools</span><span style="color: blue; font-weight: bold;">=</span><span style="color: green; font-weight: bold;">"http://schemas.android.com/tools"</span><span style="color: green; font-weight: bold;"> </span><span style="color: #660e7a; font-weight: bold;">android</span><span style="color: blue; font-weight: bold;">:layout_width=</span><span style="color: green; font-weight: bold;">"fill_parent"</span><span style="color: green; font-weight: bold;"> </span><span style="color: #660e7a; font-weight: bold;">android</span><span style="color: blue; font-weight: bold;">:layout_height=</span><span style="color: green; font-weight: bold;">"fill_parent"</span><span style="color: green; font-weight: bold;"> </span><span style="color: #660e7a; font-weight: bold;">tools</span><span style="color: blue; font-weight: bold;">:context=</span><span style="color: green; font-weight: bold;">"com.learning.course.letslearn.MainMenu"</span><span style="color: green; font-weight: bold;"> </span><span style="color: #660e7a; font-weight: bold;">android</span><span style="color: blue; font-weight: bold;">:orientation=</span><span style="color: green; font-weight: bold;">"vertical"</span><span style="color: green; font-weight: bold;"> </span><span style="color: #660e7a; font-weight: bold;">android</span><span style="color: blue; font-weight: bold;">:layout_weight=</span><span style="color: green; font-weight: bold;">"100"</span><span style="color: green; font-weight: bold;"> </span><span style="color: #660e7a; font-weight: bold;">android</span><span style="color: blue; font-weight: bold;">:layout_marginLeft=</span><span style="color: green; font-weight: bold;">"15dp"</span><span style="color: green; font-weight: bold;"> </span><span style="color: #660e7a; font-weight: bold;">android</span><span style="color: blue; font-weight: bold;">:layout_marginRight=</span><span style="color: green; font-weight: bold;">"15dp"</span><span style="color: green; font-weight: bold;"> </span><span style="color: #660e7a; font-weight: bold;">android</span><span style="color: blue; font-weight: bold;">:layout_marginTop=</span><span style="color: green; font-weight: bold;">"15dp"</span><span style="color: green; font-weight: bold;"> </span>></span></pre>
<pre style="font-family: "Courier New"; font-size: 9pt;">.............</pre>
<pre style="font-family: "Courier New"; font-size: 9pt;">.............</pre>
<pre style="font-family: "Courier New"; font-size: 9pt;">.............</pre>
<pre style="font-family: "Courier New"; font-size: 9pt;"></<span style="color: navy; font-weight: bold;">LinearLayout</span>>
</<span style="color: navy; font-weight: bold;">ScrollView</span>></pre>
</pre>
</div>
Danish Hussainhttp://www.blogger.com/profile/02518165805693137776noreply@blogger.com0tag:blogger.com,1999:blog-4192321718296469857.post-8716348763201313912017-07-22T13:15:00.001+05:002017-07-22T13:15:26.212+05:00How To hide windows title bar in your android application<div dir="ltr" style="text-align: left;" trbidi="on">
Perform following steps<br />
<br />
In your style file (app\src\main\res\values\styles.xml) add following lines. This will create another theme with NotTitle<br />
<br />
<pre style="background-color: white; font-family: "Courier New"; font-size: 9pt;"><<span style="color: navy; font-weight: bold;">style </span><span style="color: blue; font-weight: bold;">name=</span><span style="color: green; font-weight: bold;">"FullscreenTheme" </span><span style="color: blue; font-weight: bold;">parent=</span><span style="color: green; font-weight: bold;">"AppTheme"</span>>
<<span style="background-color: #e4e4ff; color: navy; font-weight: bold;">item</span><span style="color: navy; font-weight: bold;"> </span><span style="color: blue; font-weight: bold;">name=</span><span style="color: green; font-weight: bold;">"windowNoTitle"</span>>true</<span style="background-color: #e4e4ff; color: navy; font-weight: bold;">item</span>>
</<span style="color: navy; font-weight: bold;">style</span>></pre>
<pre style="background-color: white; font-family: "Courier New"; font-size: 9pt;"></pre>
<pre style="background-color: white;"><span style="font-family: "times new roman"; font-size: small; white-space: normal;">Apply newly created style/theme to your activity using application manifest file (</span><span style="background-color: transparent; white-space: normal;"><span style="font-family: "times new roman";">app\src\main\AndroidManifest.xml) as shown in highlighted text</span></span></pre>
<pre style="background-color: white;"><span style="background-color: transparent; white-space: normal;"><span style="font-family: "times new roman";">.....</span></span></pre>
<pre><pre style="font-family: "Courier New"; font-size: 9pt;"><span style="background-color: white;"><</span><span style="background-color: white; color: navy; font-weight: bold;">activity </span><span style="background-color: white; color: #660e7a; font-weight: bold;">android</span><span style="background-color: white; color: blue; font-weight: bold;">:name=</span><span style="background-color: white; color: green; font-weight: bold;">".MainMenu" </span><span style="background-color: yellow;"><span style="color: #660e7a; font-weight: bold;">android</span><span style="color: blue; font-weight: bold;">:theme=</span></span><span style="color: green; font-weight: bold;"><span style="background-color: yellow;">"@style/FullscreenTheme"</span><span style="background-color: white;">
</span></span><span style="background-color: white; color: green; font-weight: bold;"> </span><span style="background-color: white;">>
<</span><span style="background-color: white; color: navy; font-weight: bold;">intent-filter</span><span style="background-color: white;">>
<</span><span style="background-color: white; color: navy; font-weight: bold;">action </span><span style="background-color: white; color: #660e7a; font-weight: bold;">android</span><span style="background-color: white; color: blue; font-weight: bold;">:name=</span><span style="background-color: white; color: green; font-weight: bold;">"android.intent.action.MAIN" </span><span style="background-color: white;">/>
<</span><span style="background-color: white; color: navy; font-weight: bold;">category </span><span style="background-color: white; color: #660e7a; font-weight: bold;">android</span><span style="background-color: white; color: blue; font-weight: bold;">:name=</span><span style="background-color: white; color: green; font-weight: bold;">"android.intent.category.LAUNCHER" </span><span style="background-color: white;">/>
</</span><span style="background-color: white; color: navy; font-weight: bold;">intent-filter</span><span style="background-color: white;">>
</</span><span style="background-color: white; color: navy; font-weight: bold;">activity</span><span style="background-color: white;">></span></pre>
<pre style="font-family: "Courier New"; font-size: 9pt;"><span style="background-color: white;">......</span></pre>
</pre>
<pre style="background-color: white; font-family: "Courier New"; font-size: 9pt;"></pre>
<pre style="background-color: white; font-family: "Courier New"; font-size: 9pt;"></pre>
<pre style="background-color: white; font-family: "Courier New"; font-size: 9pt;"></pre>
</div>
Danish Hussainhttp://www.blogger.com/profile/02518165805693137776noreply@blogger.com0tag:blogger.com,1999:blog-4192321718296469857.post-56776197244250965342017-07-22T13:15:00.000+05:002017-07-22T13:15:07.604+05:00Android Studio - Taking screen shot using android emulator<div dir="ltr" style="text-align: left;" trbidi="on">
You might need to take screenshot our application for various purpose e.g. Presentation etc.<br />
<br />
You may follow below steps to capture screenshot of your application in Android Emulator.<br />
<br />
Run project and select already configured emulator<br />
From Emulator screen click on screen capture button ("Camera icon") to capture screen as shown below<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-_tLfRwtHxaI/V9vJV2rallI/AAAAAAAAARQ/rTAx4gBXCr4RKnms5Y-Cz314-apyAgLeACLcB/s1600/screenshot1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://2.bp.blogspot.com/-_tLfRwtHxaI/V9vJV2rallI/AAAAAAAAARQ/rTAx4gBXCr4RKnms5Y-Cz314-apyAgLeACLcB/s320/screenshot1.png" width="219" /></a></div>
<br />
After taking snapshot you may access this using Android monitor. Click on camera icon as shown below<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-lL-82HZraQM/V9vJdF3JQbI/AAAAAAAAARU/uCoXVHYsse03Ji1K9FTSLARLwYSWO-SUQCLcB/s1600/screenshot2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="151" src="https://4.bp.blogspot.com/-lL-82HZraQM/V9vJdF3JQbI/AAAAAAAAARU/uCoXVHYsse03Ji1K9FTSLARLwYSWO-SUQCLcB/s320/screenshot2.png" width="320" /></a></div>
<br />
Once you click camera icon it will open screen shot as shown below and you can click save button to copy snapshot to your disk<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-ztCLDuLeHb0/V9vJ1TjqNCI/AAAAAAAAARY/p0vXPD4H_qgHkgjd1Ot8xRrsZR5vJs0tgCLcB/s1600/screenshot3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="348" src="https://3.bp.blogspot.com/-ztCLDuLeHb0/V9vJ1TjqNCI/AAAAAAAAARY/p0vXPD4H_qgHkgjd1Ot8xRrsZR5vJs0tgCLcB/s640/screenshot3.png" width="640" /></a></div>
<br /></div>
Danish Hussainhttp://www.blogger.com/profile/02518165805693137776noreply@blogger.com0tag:blogger.com,1999:blog-4192321718296469857.post-77575759898945523202017-07-22T13:14:00.000+05:002017-07-22T13:14:16.719+05:00Java IDE for Grail Development<div dir="ltr" style="text-align: left;" trbidi="on">
Choosing the right IDE in java development is important as it will directly impact your development.<br />
<br />
following are few famous IDEs available for java<br />
<br />
1. Intelli J<br />
2. Eclipse<br />
<br />
For me Intelli J only worked if you have ultimate edition. Though I like IntelliJ but Eclipse looks better option for me.<br />
<br />
Assuming that JDK is already installed (Please see earlier post related to JDK install for more details)<br />
Assuming that grails is already installed (Please see earlier post related to grails install for more details)<br />
<br />
In order to run it with eclipse first download STS<br />
http://spring.io/tools/sts<br />
<br />
STS installation is a copy paste install<br />
<br />
unzip the file and it wil have everything. run sts.exe<br />
<br />
cd %grails_home%<br />
cd <your name="" project=""></your><br />
<br />
<pre style="background: rgb(246, 246, 246); border-radius: 0px; border: 0px; box-sizing: border-box; color: #333333; font-family: 'Source Code Pro', Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; line-height: 1.42857143; margin-bottom: 10px; overflow: auto; padding: 10px 20px; word-break: break-all; word-wrap: break-word;">grails integrate-with --eclipse
grails compile
grails download-sources-and-javadocs
grails sts-link-sources-and-javadocs</pre>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
</div>
Danish Hussainhttp://www.blogger.com/profile/02518165805693137776noreply@blogger.com0tag:blogger.com,1999:blog-4192321718296469857.post-13490858836452027022016-12-04T16:27:00.000+05:002016-12-04T16:27:01.356+05:00Grails - Introduction<div dir="ltr" style="text-align: left;" trbidi="on">
I would like to give you a little introduction of grails in newbie term.<br />
<br />
If you have decided to start doing web development or learning web development in java then Grails is for sure an good candidate for you to pick and learn<br />
<br />
Grails provide the framework based on following<br />
<br />
1. Hibernate - ORM layer<br />
2. Groovy Server Pages - Presentation/Web layer<br />
3. Spring - Controller layer<br />
<br />
Why I started to learn grails has a different reason ;) but would suggest techies to just have a look if you choose to go with Java Web Project and would like to reduce some development time</div>
Danish Hussainhttp://www.blogger.com/profile/02518165805693137776noreply@blogger.com0tag:blogger.com,1999:blog-4192321718296469857.post-7195593164784505132016-12-04T16:26:00.001+05:002016-12-04T16:26:21.306+05:00Mobile Application - Change Icon using android Studio<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div>
Use below step to change icon of your mobile application using Android Studio.</div>
<ol style="text-align: left;">
<li>Open your android application project in android studio</li>
<li>On res folder right click and select new image asset<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<a href="https://3.bp.blogspot.com/-AZO_ULZ7XyI/V9rYGYi3Q_I/AAAAAAAAAQI/pJt6Ho0DFgoB2hRH_Zg-gVn6pjFBL2YUQCLcB/s1600/appicon1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="294" src="https://3.bp.blogspot.com/-AZO_ULZ7XyI/V9rYGYi3Q_I/AAAAAAAAAQI/pJt6Ho0DFgoB2hRH_Zg-gVn6pjFBL2YUQCLcB/s320/appicon1.png" width="320" /></a></li>
</ol>
<div>
<a href="https://4.bp.blogspot.com/-BG7pYKQZcOU/V9rYPtwA2rI/AAAAAAAAAQM/Bz0Vd1t1CH4mspaxQBE9AylxQ_6yROtMwCLcB/s1600/appicon2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="175" src="https://4.bp.blogspot.com/-BG7pYKQZcOU/V9rYPtwA2rI/AAAAAAAAAQM/Bz0Vd1t1CH4mspaxQBE9AylxQ_6yROtMwCLcB/s400/appicon2.png" width="400" /></a></div>
<div>
</div>
<div>
3.Select asset type as image and browse to select the new icon file</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-jWrbP-GH4YI/V9rYksSnmpI/AAAAAAAAAQQ/TwyKLZHMm_oqwiWrei-h895zkm_LdnozACLcB/s1600/appicon3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="390" src="https://2.bp.blogspot.com/-jWrbP-GH4YI/V9rYksSnmpI/AAAAAAAAAQQ/TwyKLZHMm_oqwiWrei-h895zkm_LdnozACLcB/s400/appicon3.png" width="400" /></a></div>
<div>
<br /></div>
<div>
</div>
<div>
4.Android studio will warn you of a file override. Click finish to continue</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-7X2kVD_ZVog/V9rYnzxRPOI/AAAAAAAAAQU/rHNQ3JBjQRgEnAwBfvxCdDed8MclBjOCgCLcB/s1600/appicon4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="390" src="https://1.bp.blogspot.com/-7X2kVD_ZVog/V9rYnzxRPOI/AAAAAAAAAQU/rHNQ3JBjQRgEnAwBfvxCdDed8MclBjOCgCLcB/s400/appicon4.png" width="400" /></a></div>
<div>
<br /></div>
</div>
Danish Hussainhttp://www.blogger.com/profile/02518165805693137776noreply@blogger.com0tag:blogger.com,1999:blog-4192321718296469857.post-3482896194541108332016-12-04T16:26:00.000+05:002016-12-04T16:26:01.549+05:00Android studio failed to display design mode<div dir="ltr" style="text-align: left;" trbidi="on">
While staring my basic application I was unable to view the layout xml in design mode.<br />
<br />
Following was my configuration.<br />
Android Studio 2.1.3<br />
Created new project with empty activity<br />
Clicked on res/layout/activity_main.xml and tried to open and found exception<br />
<br />
java.lang.NoSuchMethodError: android.graphics.drawable.VectorDrawable_ android studio.......<br />
<br />
on clicking details I found following detail exception<br />
<br />
<a href="http://2.bp.blogspot.com/-33I6SYowj4g/V8p9Fa5ULBI/AAAAAAAAAPg/v84wF0a2SwMRxlixDTrDvnwUm1VOkZWqwCK4B/s1600/a1excep1.png" imageanchor="1"><img border="0" height="408" src="https://2.bp.blogspot.com/-33I6SYowj4g/V8p9Fa5ULBI/AAAAAAAAAPg/v84wF0a2SwMRxlixDTrDvnwUm1VOkZWqwCK4B/s640/a1excep1.png" width="640" /></a><br />
<br />
java.lang.NoSuchMethodError: android.graphics.drawable.VectorDrawable_Delegate.nDraw(JJJLandroid/graphics/Rect;ZZ)I<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at android.graphics.drawable.VectorDrawable.nDraw(VectorDrawable.java)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at android.graphics.drawable.VectorDrawable.draw(VectorDrawable.java:304)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at android.widget.ImageView.onDraw(ImageView.java:1286)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at android.view.View.draw(View.java:17056)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at android.view.View.draw(View.java:16964)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at android.view.ViewGroup.drawChild_Original(ViewGroup.java:3715)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:61)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at android.view.ViewGroup.drawChild(ViewGroup.java:3715)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3501)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at android.view.View.draw(View.java:17059)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at android.view.View.draw(View.java:16964)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at android.view.ViewGroup.drawChild_Original(ViewGroup.java:3715)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:61)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at android.view.ViewGroup.drawChild(ViewGroup.java:3715)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3501)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at android.view.View.draw(View.java:17059)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at com.android.layoutlib.bridge.impl.RenderSessionImpl.render(RenderSessionImpl.java:384)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at com.android.layoutlib.bridge.impl.RenderSessionImpl.render(RenderSessionImpl.java:495)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:434)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:350)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:520)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:508)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:967)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:508)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at com.android.tools.idea.rendering.RenderTask.access$600(RenderTask.java:75)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at com.android.tools.idea.rendering.RenderTask$3.call(RenderTask.java:620)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at com.android.tools.idea.rendering.RenderTask$3.call(RenderTask.java:617)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at com.android.tools.idea.rendering.RenderService.runRenderAction(RenderService.java:371)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at com.android.tools.idea.rendering.RenderTask.render(RenderTask.java:617)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at com.android.tools.idea.rendering.RenderTask.render(RenderTask.java:639)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at com.intellij.android.designer.designSurface.AndroidDesignerEditorPanel$7.run(AndroidDesignerEditorPanel.java:519)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:337)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:327)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at com.intellij.util.ui.update.MergingUpdateQueue$3.run(MergingUpdateQueue.java:271)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:286)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:244)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:234)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at com.intellij.util.Alarm$Request$1.run(Alarm.java:352)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at java.util.concurrent.FutureTask.run(FutureTask.java:266)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>at java.lang.Thread.run(Thread.java:745)<br />
<br />
<a href="http://4.bp.blogspot.com/-IUaKVGGVIHM/V8p9K9fkoJI/AAAAAAAAAPo/KGS7Ho5VzOIe072iwcz8dFfjYETAD2-wQCK4B/s1600/a1excep2.png" imageanchor="1"><img border="0" height="640" src="https://4.bp.blogspot.com/-IUaKVGGVIHM/V8p9K9fkoJI/AAAAAAAAAPo/KGS7Ho5VzOIe072iwcz8dFfjYETAD2-wQCK4B/s640/a1excep2.png" width="430" /></a><br />
<div>
<br /></div>
<br />
To solve this I have to change the preview API from<br />
API 23 : Android API, N Preview (Priview)<br />
to<br />
API 23: Android API<br />
<br />
<a href="http://3.bp.blogspot.com/-lywhnu4iFZc/V8p9OhzI1QI/AAAAAAAAAPw/i_7-cs0gd9Av8NGUFRsJV0PXJUrP5bmXACK4B/s1600/a1sol1.png" imageanchor="1"><img border="0" height="436" src="https://3.bp.blogspot.com/-lywhnu4iFZc/V8p9OhzI1QI/AAAAAAAAAPw/i_7-cs0gd9Av8NGUFRsJV0PXJUrP5bmXACK4B/s640/a1sol1.png" width="640" /></a></div>
Danish Hussainhttp://www.blogger.com/profile/02518165805693137776noreply@blogger.com0tag:blogger.com,1999:blog-4192321718296469857.post-87664179080444277002016-11-25T14:20:00.001+05:002016-11-25T14:20:39.218+05:00Mobile Development - First Step<div dir="ltr" style="text-align: left;" trbidi="on">
As a developer we already know that in order to start any development project. We need to start with the design of an application. Mobile development is not an exception.<br />
<br />
The question is that we create use case to model our business, wire frames and prototyping to do user interface design then what do we do to plan our mobile application?<br />
<br />
The answer is simple, First thing is that we need to visualize our application and we start we story boarding of our app.<br />
In order to do story boarding you have to take components of your mobile app and define the flow of your application with help of major component.<br />
<br />
<b>Activities</b> All elememt in android are activities that have an UI definition using xml and a code behind to hadle evenet<br />
<b>widget/Views</b> e.g. Button, text box<br />
<b>Layout</b> e.g. Linear layout<br />
<br />
There are may tools available that may assist you in doing story boarding however you may start it on a blank piece of paper<br />
<br />
<br />
<br />
<br /></div>
Danish Hussainhttp://www.blogger.com/profile/02518165805693137776noreply@blogger.com0tag:blogger.com,1999:blog-4192321718296469857.post-55005329299086664622016-11-25T14:20:00.000+05:002016-11-25T14:20:28.745+05:00Mobile Development - Android<div dir="ltr" style="text-align: left;" trbidi="on">
Before staring I must say that https://developer.android.com/index.html is very nice and can give answers to most of your queries from installation, tools and sample with step by step guides.<br />
<br />
Android Studio is the essential tools that you will need to install to start mobile development. You may choose other option like eclipse however Android Studio is the quickest to start.<br />
<br />
In general the tool is very nice and can really help you to quickly pick up pace with mobile development however you may need to do little bit tweaking to make if run faster.<br />
<br />
In my case, my antivirus may give me hard time to run it quickly. I had to add certain programs (Android Studio, Emulator etc) in my antivirus exception list to make it up and running,<br />
<br />
If you have an android phone, you may use it for testing and debugging purpose. In fact this will be the fastest way to do testing and debugging of your application.<br />
<br />
Android SDK contains an emulator software that is very powerful and can build the ground to do debugging and testing on multiple environment and effectively test advance features.<br />
<br />
Yes all development will be done using Java as a programming language therefore knowledge of java programming language is required for the actual development<br />
<br />
<br />
<br /></div>
Danish Hussainhttp://www.blogger.com/profile/02518165805693137776noreply@blogger.com0tag:blogger.com,1999:blog-4192321718296469857.post-48530769363830750262015-06-06T16:55:00.005+05:002015-06-06T16:56:17.497+05:00Configure My Site in Sharepoint 2013<div dir="ltr" style="text-align: left;" trbidi="on">
You can refer following microsoft link to configure my site however I have list down few quick step to get it done with minimul setup<br />
<a href="https://technet.microsoft.com/en-US/library/ee624362.aspx">https://technet.microsoft.com/en-US/library/ee624362.aspx</a><br />
<br />
1. First step will be to create a mysite site collection in the web application where you would like to enable my site feature. To do this goto central administration<br />
2. Select Application Management -> Create Site Collection<br />
3. Save to URL for later configuration<br />
4. For template select Enterprise -> MySiteHost Template<br />
<a href="http://3.bp.blogspot.com/-7N7qtut6CA4/VXLfRdYhv8I/AAAAAAAAAL4/zfIvf-J2H5k/s1600/ms1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="173" src="http://3.bp.blogspot.com/-7N7qtut6CA4/VXLfRdYhv8I/AAAAAAAAAL4/zfIvf-J2H5k/s320/ms1.png" width="320" /></a><br />
<br />
5.Enable self service application, Go to Central Admin<br />
6. Select Manage Web Application under application management<br />
7. Select Web application<br />
8. Select "on" in the self service site creation and be hidden from user in start a site.<br />
<br />
<a href="http://4.bp.blogspot.com/-A00dEyKEzlQ/VXLfRbCmQOI/AAAAAAAAAL8/IHJrJG864Fk/s1600/ms2-5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="256" src="http://4.bp.blogspot.com/-A00dEyKEzlQ/VXLfRbCmQOI/AAAAAAAAAL8/IHJrJG864Fk/s320/ms2-5.png" width="320" /></a><br />
<br />
9. Select Manage Appluication<br />
10. Click on Permission Policy<br />
11. click Add new Policy<br />
12. Grant Create Subsites - Create subsites such .....<br />
13. Few pre-req permission will be selected automatically<br />
14. click save<br />
<a href="http://2.bp.blogspot.com/-hgTM8CfYTeA/VXLfRTTo8YI/AAAAAAAAAMA/a8HirwAtYn0/s1600/ms2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="175" src="http://2.bp.blogspot.com/-hgTM8CfYTeA/VXLfRTTo8YI/AAAAAAAAAMA/a8HirwAtYn0/s320/ms2.png" width="320" /></a><br />
<a href="http://4.bp.blogspot.com/-cIbxXA3_QOo/VXLfR-7Ws9I/AAAAAAAAAME/tJkxgJzi0ew/s1600/ms3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="180" src="http://4.bp.blogspot.com/-cIbxXA3_QOo/VXLfR-7Ws9I/AAAAAAAAAME/tJkxgJzi0ew/s320/ms3.png" width="320" /></a><br />
<br />
15. click "User Policy"<br />
16. policy for webapplication dialog box select add users.<br />
17. choose user for simplicity I selected everyone<br />
18. select permission policy created in step 11<br />
19. click finish and ok<br />
<br />
<br />
20. Configure user profile service<br />
21. Goto central admin<br />
22. Goto application management -> Manage Service application<br />
23. Select user profile services contifigured earlier if not follow step in my earlier <a href="http://danishhussain.blogspot.ae/2015/06/configure-sharepoint-services.html">post</a><br />
24. Got My Site Setting select setup my site<br />
25. Add my site host location created in step 3<br />
26. Click save<br />
<br />
27. Enable UserprofileApplication -> Activity feedjob. Goto Central Admin<br />
28. goto monitoring -> review job definition<br />
29. on job definition page select "Service" under view list<br />
30. click change service -> select service<br />
31. Use arrow on the top right to navigate to userprofile server<br />
32. Select user profile.<br />
33. Select service end with Activity Feedjob<br />
34. If not enable then enable it and click run now and you are done<br />
<a href="http://2.bp.blogspot.com/-Jf16NYghaGQ/VXLfSJs0a6I/AAAAAAAAAMI/Kvw5Bwc2SEs/s1600/ms4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="153" src="http://2.bp.blogspot.com/-Jf16NYghaGQ/VXLfSJs0a6I/AAAAAAAAAMI/Kvw5Bwc2SEs/s320/ms4.png" width="320" /></a><br />
<a href="http://2.bp.blogspot.com/-S5-ZDwAff9c/VXLfSEXvk9I/AAAAAAAAAMM/Kv_eMc-Cvd4/s1600/ms5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="140" src="http://2.bp.blogspot.com/-S5-ZDwAff9c/VXLfSEXvk9I/AAAAAAAAAMM/Kv_eMc-Cvd4/s320/ms5.png" width="320" /></a><br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
</div>
Danish Hussainhttp://www.blogger.com/profile/02518165805693137776noreply@blogger.com0tag:blogger.com,1999:blog-4192321718296469857.post-67733149187922725132015-06-06T14:49:00.002+05:002015-06-06T14:50:22.977+05:00Creating a first Visual Webpart for Sharepoint 2013<div dir="ltr" style="text-align: left;" trbidi="on">
As compare to earlier version of SharePoint, development on sharepoint 2013 is charm. You just need to build your development environment and you are ready for development.<br />
<br />
I used Visual Studio Ultimate Edition for this using C#. You need to install Visual Studio on a machine where SharePoint 2013 is installed so that you can start development. The resources available on Microsoft site are more then enough to kick start with the development.<br />
<br />
Following are steps for creating a Hello World web part.<br />
<br />
1. Open Visual Studio (as an administrator, other wise it will restart on step 4 ;) )<br />
2. Click File -> New -> Project as shown below<br />
<a href="http://2.bp.blogspot.com/-3_hQDTpFLrk/VXLBUjeFxvI/AAAAAAAAALM/WAGi1MgoMJE/s1600/VS1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="180" src="http://2.bp.blogspot.com/-3_hQDTpFLrk/VXLBUjeFxvI/AAAAAAAAALM/WAGi1MgoMJE/s320/VS1.png" width="320" /></a><br />
3. Select Template under Visual C#-> Office/SharePoint -> SharePoint Solution<br />
<a href="http://2.bp.blogspot.com/-65-vUwC6VBI/VXLBUokQuHI/AAAAAAAAALQ/WRDrVEjMjC4/s1600/VS2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="180" src="http://2.bp.blogspot.com/-65-vUwC6VBI/VXLBUokQuHI/AAAAAAAAALQ/WRDrVEjMjC4/s320/VS2.png" width="320" /></a><br />
4. On the right pane select SharePoint 2013 - Visual Web Part<br />
5. It will ask for share point site (If you need to create SharePoint site collection follow my <a href="http://danishhussain.blogspot.ae/2015/06/intalling-windows-sharepoint-2013.html">post</a>)<br />
6. Validate site URL and select "Deploy as a farm solution"<br />
<a href="http://4.bp.blogspot.com/-HeKMzLpQGGg/VXLBUW7IFvI/AAAAAAAAALI/PIkI_n6DxLI/s1600/VS3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="180" src="http://4.bp.blogspot.com/-HeKMzLpQGGg/VXLBUW7IFvI/AAAAAAAAALI/PIkI_n6DxLI/s320/VS3.png" width="320" /></a><br />
7. As soon as you click finish it will create a project and coding fun starts<br />
8. Select usercontrol (.ascx) file in solution explorer, right click and open in design view.<br />
9. In my example I just add som static text an a button with a message.<br />
10. After you are done just click on start button like any other web application and Visual Studio will deploy and open your webpart in debug mode.<br />
11. Click Edit on home page to add your webpart on home page<br />
12. From ribbon select Insert->WebPart<br />
13. From categories on left select custom<br />
14. Select your first webpart from "Parts"<br />
15. click Add<br />
<a href="http://2.bp.blogspot.com/-J09BhCf67OY/VXLBVM6xxSI/AAAAAAAAALU/pj_fx48J6HE/s1600/VS4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="131" src="http://2.bp.blogspot.com/-J09BhCf67OY/VXLBVM6xxSI/AAAAAAAAALU/pj_fx48J6HE/s320/VS4.png" width="320" /></a><br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
16 Your web part is added and you can interact with it. And nice thing is that you can use VS 2013 debugging capabilities to test and debug.<br />
<a href="http://3.bp.blogspot.com/-YefY2JR_oOA/VXLBVHWzZBI/AAAAAAAAALY/RQfueTwPzTw/s1600/VS5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="114" src="http://3.bp.blogspot.com/-YefY2JR_oOA/VXLBVHWzZBI/AAAAAAAAALY/RQfueTwPzTw/s320/VS5.png" width="320" /></a><br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
</div>
Danish Hussainhttp://www.blogger.com/profile/02518165805693137776noreply@blogger.com0tag:blogger.com,1999:blog-4192321718296469857.post-19839160860824404442015-06-06T14:10:00.002+05:002015-06-06T14:11:00.404+05:00Manage Services on Server link doest show<div dir="ltr" style="text-align: left;" trbidi="on">
You open SharePoint 2013 central administration and surprised that "Managed Services on Server" link doesn't showed up. You checked that user has sufficient rights..<br />
<br />
I had similar issue and after doing some research I found that it was because I open central admin directly from IE which will not open it as an admin. So the best way is to open in using SharePoint Central admin link in program files. <br />
<br />
If you are using windows 2012 and wondering how to access program files you may refer my <a href="http://danishhussain.blogspot.ae/2015/06/windows-2012-how-to-access-program-files.html">post</a></div>
Danish Hussainhttp://www.blogger.com/profile/02518165805693137776noreply@blogger.com0tag:blogger.com,1999:blog-4192321718296469857.post-2749010372347800302015-06-06T13:59:00.001+05:002015-06-06T13:59:11.527+05:00Windows 2012 - How to access program files<div dir="ltr" style="text-align: left;" trbidi="on">
If you are an windows users who is new to windows 2012 you might be wondering how to access program files in Windows 2012.<br />
<br />
Following are steps to do this.<br />
<br />
1. Press window + d to bring desktop in front.<br />
2. Press window button and it will show start menu as show below.<br />
<a href="http://3.bp.blogspot.com/-zssUXDguG5s/VXK2MD81cMI/AAAAAAAAAKs/xwnSeYPUa1A/s1600/PF1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="180" src="http://3.bp.blogspot.com/-zssUXDguG5s/VXK2MD81cMI/AAAAAAAAAKs/xwnSeYPUa1A/s320/PF1.png" width="320" /></a><br />
3. Right click and you will show All app button on bottom right as shown below<br />
<a href="http://1.bp.blogspot.com/-IDefOHPGAgc/VXK2MJMrbII/AAAAAAAAAKo/1iSQRwOHFjw/s1600/PF2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="180" src="http://1.bp.blogspot.com/-IDefOHPGAgc/VXK2MJMrbII/AAAAAAAAAKo/1iSQRwOHFjw/s320/PF2.png" width="320" /></a><br />
4. As you click all app you will see complete program files as shown below<br />
<a href="http://1.bp.blogspot.com/-lPYHZ8QkQIM/VXK2MNDhpbI/AAAAAAAAAKw/gS5aLDWUaQQ/s1600/PF3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="180" src="http://1.bp.blogspot.com/-lPYHZ8QkQIM/VXK2MNDhpbI/AAAAAAAAAKw/gS5aLDWUaQQ/s320/PF3.png" width="320" /></a><br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
</div>
Danish Hussainhttp://www.blogger.com/profile/02518165805693137776noreply@blogger.com0tag:blogger.com,1999:blog-4192321718296469857.post-84756624066014753362015-06-04T00:21:00.002+05:002015-06-04T00:22:40.887+05:00Intalling Sharepoint 2013 on Windows 2012<div dir="ltr" style="text-align: left;" trbidi="on">
Following are few steps for intallation of Sharepoint 2013.<br />
<br />
For this post I am using VMWare for fresh installation.<br />
<br />
1. Install Windows 2012 Data center 64 bit version:<br />
<br />
2. <a href="http://danishhussain.blogspot.ae/2015/06/configure-active-directory-on-windows.html">Configure Active Directory</a>(click for details)<br />
<br />
3. Install SQL Server 2012<br />
<br />
4. Install Sharepoint<br />
<br />
5.<a href="http://danishhussain.blogspot.ae/2015/06/configure-sharepoint-services.html"> Configure sharepoint services.</a><br />
<br />
6. Create your first web-application<br />
<br />
<ol style="text-align: left;">
<li>Go to share point central administration</li>
<li>Navigate to manage web application and click new to create new web application.</li>
</ol>
<div>
7. Create site collection</div>
<div>
<ol style="text-align: left;">
<li>After creating web application go to central administration</li>
<li>Click Application Management</li>
<li>Click create new site collection. After creation of site collection you are ready to work on SharePoint.</li>
</ol>
</div>
<div>
<br /></div>
</div>
Danish Hussainhttp://www.blogger.com/profile/02518165805693137776noreply@blogger.com0tag:blogger.com,1999:blog-4192321718296469857.post-34250055618214843742015-06-04T00:15:00.002+05:002015-06-04T00:22:58.983+05:00Configure sharepoint services<div dir="ltr" style="text-align: left;" trbidi="on">
There are 3 essential SharePoint services you need to configure.<br />
<br />
1. Managed Metadata service application<br />
2. Search service application<br />
3. User profile service application.<br />
<br />
Follow below steps for Managed Metadata service configuration.<br />
<br />
1.Go to Central Administration.<br />
2.Go to Application Management -> Manage Service Application<br />
3.Click new from the ribbon and select "Managed Meta Data Service"<br />
4. Specified attributes and click ok.<br />
5. Goto Central Administration<br />
6. Under System settings select "managed services on server"<br />
7. start manage meta data service.<br />
<br />
Follow above step for Search service application with following differences.<br />
In step 2 select "Search Service Application" and stop on step 4.<br />
<br />
For User Profile service application, follow above step will following differences.<br />
In step 2 select "User Profile Service Application"<br />
In step 7 start "User Profile Service" and "User Profile Synchronization Service"<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br /></div>
Danish Hussainhttp://www.blogger.com/profile/02518165805693137776noreply@blogger.com0tag:blogger.com,1999:blog-4192321718296469857.post-71534994419792216852015-06-04T00:00:00.001+05:002015-06-04T00:51:42.752+05:00Configure Active Directory on Windows 2012 Data Center 64 bit<div dir="ltr" style="text-align: left;" trbidi="on">
Configure Active Directory on Windows 2012 Data Center 64 bit<br />
===============================================<br />
<br />
Before configuring active directory please ensure that your local administrator account password is set. Otherwise you may not be able to proceed with the installation/configuration of AD.<br />
<br />
Follow below steps<br />
1. Go to computer management<br />
2. Expand System tools -> Local Users and Groups -> Users<br />
3. On the right pane select administrator account<br />
4. Right click and set a password.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-SbmqokmeU28/VW9KXFtQp-I/AAAAAAAAAJI/biUkaEkB5h8/s1600/AD1_1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="285" src="http://4.bp.blogspot.com/-SbmqokmeU28/VW9KXFtQp-I/AAAAAAAAAJI/biUkaEkB5h8/s400/AD1_1.png" width="400" /></a></div>
<br />
Follow below steps for configuration of Active Directory on server<br />
<br />
1. Open server manager as shown below. Click on Add role and feature.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-qr2AB1lANCc/VW9KVhuWrHI/AAAAAAAAAI8/wpkzlEU26Gg/s1600/AD1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="282" src="http://1.bp.blogspot.com/-qr2AB1lANCc/VW9KVhuWrHI/AAAAAAAAAI8/wpkzlEU26Gg/s400/AD1.png" width="400" /></a></div>
2. Add role and feature window popup appears as shown below. Click next to continue.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-8vORK8dc-rs/VW9KXpol8RI/AAAAAAAAAJE/ZmrgwnId3Bw/s1600/AD2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="283" src="http://2.bp.blogspot.com/-8vORK8dc-rs/VW9KXpol8RI/AAAAAAAAAJE/ZmrgwnId3Bw/s400/AD2.png" width="400" /></a></div>
<br />
3. Select default option i.e. Select Role Based or Feature based Installation, Select server and then you will see below feature selection screen, Select "Active Directory Domain Services" below.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-ayb7SIhu1bs/VW9KYCT84FI/AAAAAAAAAJQ/VYvptGXPuyk/s1600/AD3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="236" src="http://4.bp.blogspot.com/-ayb7SIhu1bs/VW9KYCT84FI/AAAAAAAAAJQ/VYvptGXPuyk/s400/AD3.png" width="400" /></a></div>
<br />
4. As you click on next on previous screen a popup appear. Click Add feature.To proceed to installation option to initiate install.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-2GbrLX0zap0/VW9KYf2mJ7I/AAAAAAAAAJU/dOSbe4ZhsXQ/s1600/AD4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="327" src="http://2.bp.blogspot.com/-2GbrLX0zap0/VW9KYf2mJ7I/AAAAAAAAAJU/dOSbe4ZhsXQ/s400/AD4.png" width="400" /></a></div>
<br />
5. After feature installation completed. you will see screen similar to below screen. Click "Promote this server to a domain controller"<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-3LNTCm0cfhM/VW9KY-OLqnI/AAAAAAAAAJY/KScFRcN5I1A/s1600/AD5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="236" src="http://4.bp.blogspot.com/-3LNTCm0cfhM/VW9KY-OLqnI/AAAAAAAAAJY/KScFRcN5I1A/s400/AD5.png" width="400" /></a></div>
<br />
6. This will start AD Domain services configuration wizard as shown below. Select "Add a new forest" on the screen and set domain name (in e.g. we set it to "testsvr.com" )<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-NrapFD-ViFc/VW9KZUe82VI/AAAAAAAAAJs/6v4T5fZBIsc/s1600/AD6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="236" src="http://2.bp.blogspot.com/-NrapFD-ViFc/VW9KZUe82VI/AAAAAAAAAJs/6v4T5fZBIsc/s400/AD6.png" width="400" /></a></div>
<br />
7. Click next and assign the password. click Next and select default options.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-BfKvMvlBrhM/VW9KZkLQRCI/AAAAAAAAAJk/VB8TkjQf75k/s1600/AD7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="236" src="http://4.bp.blogspot.com/-BfKvMvlBrhM/VW9KZkLQRCI/AAAAAAAAAJk/VB8TkjQf75k/s400/AD7.png" width="400" /></a></div>
<br />
8. Give NetBIOD domain name. In below sample we set it to TESTSVR. Click Next<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-BqlfvVBlbLY/VW9KaY3VoNI/AAAAAAAAAJw/Bmg_LSMVd4A/s1600/AD8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="236" src="http://2.bp.blogspot.com/-BqlfvVBlbLY/VW9KaY3VoNI/AAAAAAAAAJw/Bmg_LSMVd4A/s400/AD8.png" width="400" /></a></div>
<br />
9. Click Next select default options click Next.<br />
10. Click Install button which will install AD and will restart server. you need to enter using your domain account to login using the password specified in step 7.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-bfi8CyVKDgQ/VW9Ka_1AGqI/AAAAAAAAAJ0/hG7SbTJoDqM/s1600/AD9.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="327" src="http://2.bp.blogspot.com/-bfi8CyVKDgQ/VW9Ka_1AGqI/AAAAAAAAAJ0/hG7SbTJoDqM/s400/AD9.png" width="400" /></a></div>
<br />
11. After login you will see AD management option in tool menu of server manager as shown below.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-gCxLlORdVJc/VW9KVzSi3WI/AAAAAAAAAIw/0iNLex3ZLOE/s1600/AD10.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="283" src="http://3.bp.blogspot.com/-gCxLlORdVJc/VW9KVzSi3WI/AAAAAAAAAIw/0iNLex3ZLOE/s400/AD10.png" width="400" /></a></div>
<br />
Now you can open Active Director Users and Service and add multiple service accounts in your AD. In below example we create a user with name "spadmin" responsible for installation and administration of Sharepoint<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-K0oEdCMnTiI/VW9KVvmCknI/AAAAAAAAAIs/6s1j7yu7VKE/s1600/AD11.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="161" src="http://3.bp.blogspot.com/-K0oEdCMnTiI/VW9KVvmCknI/AAAAAAAAAIs/6s1j7yu7VKE/s400/AD11.png" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-Kw2jZ2rhJYA/VW9KWeKVgPI/AAAAAAAAAI0/c8YR0in9szc/s1600/AD12.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="161" src="http://1.bp.blogspot.com/-Kw2jZ2rhJYA/VW9KWeKVgPI/AAAAAAAAAI0/c8YR0in9szc/s400/AD12.png" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-Ag71gOXxTAs/VW9KW1iVBuI/AAAAAAAAAKU/K36tsvNQ9Mw/s1600/AD13.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="223" src="http://4.bp.blogspot.com/-Ag71gOXxTAs/VW9KW1iVBuI/AAAAAAAAAKU/K36tsvNQ9Mw/s400/AD13.png" width="400" /></a></div>
<br />
<br /></div>
Danish Hussainhttp://www.blogger.com/profile/02518165805693137776noreply@blogger.com0tag:blogger.com,1999:blog-4192321718296469857.post-2064496058721201632015-05-29T18:08:00.001+05:002016-08-29T00:10:40.449+05:00Installing Java JDK on Windows - Your first step towards Java Development<div dir="ltr" style="text-align: left;" trbidi="on">
There are lot of help and tutorials available for you to install JDK and would recommend to follow the oracle help for the installation. But as a windows users, may follow below if you want to save some time<br />
<br />
<div style="text-align: left;">
</div>
<ol style="text-align: left;">
<li>Download JDK from below link</li>
<ol>
<li><a href="https://www.blogger.com/%C2%A0%20%C2%A0%20http://www.oracle.com/technetwork/java/javase/downloads">http://www.oracle.com/technetwork/java/javase/downloads</a> </li>
</ol>
<li>Install JDK and JRE. Its a simple wizard.</li>
<li>Setup following environment variables. </li>
<ol>
<li>Go to My Computer, </li>
<li>Right click and select properties</li>
<li>Click advance system settings</li>
<li>Click Environment Variables</li>
<li>Add following environment variable</li>
<ol>
<li><b>JAVA_HOME</b></li>
<li><b>JRE_HOME</b></li>
</ol>
<li>Add following at the of you PATH (Environment) variable</li>
<ol>
<li><b>;%JAVA_HOME%\bin</b></li>
</ol>
</ol>
<li>Go to command prompt and type following command to test your setup</li>
<ol>
<li>java -version</li>
<li>It should display the installed JDK version</li>
</ol>
</ol>
<br />
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-fE5OglMEJIk/VR6cVbWmF3I/AAAAAAAAAIM/8VFxEGrmRbo/s1600/jdk%2Benviornment%2Bvariables.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://2.bp.blogspot.com/-fE5OglMEJIk/VR6cVbWmF3I/AAAAAAAAAIM/8VFxEGrmRbo/s1600/jdk%2Benviornment%2Bvariables.png" width="288" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Environment Variables</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-scHmRjSeKAE/VR6curRMDCI/AAAAAAAAAIU/Ku3qS_tsOJg/s1600/jdk%2Bpath%2Bvariable.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://4.bp.blogspot.com/-scHmRjSeKAE/VR6curRMDCI/AAAAAAAAAIU/Ku3qS_tsOJg/s1600/jdk%2Bpath%2Bvariable.png" width="267" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Path Variable</div>
<div>
<br /></div>
</div>
Danish Hussainhttp://www.blogger.com/profile/02518165805693137776noreply@blogger.com0tag:blogger.com,1999:blog-4192321718296469857.post-31067388123686112952015-05-29T18:08:00.000+05:002015-05-29T18:08:30.413+05:00Installing Grails<div dir="ltr" style="text-align: left;" trbidi="on">
I would really like the video at the following location<br />
<br />
https://www.youtube.com/watch?v=Nu3GgjuUOtg<br />
<br />
Following are steps for installing it on windows environment<br />
<br />
<ul style="text-align: left;">
<li>Install JDK. </li>
<ul>
<li>You may use my other post to save some time :)</li>
</ul>
<li>Download grails from below link</li>
<ul>
<li>https://grails.org/download.html</li>
</ul>
<li>Unzip files and copy to one location says c:\grails</li>
<li>Define environment variable</li>
<ul>
<li>GRAILS_HOME and set it to path used in previous step</li>
</ul>
<li>Add following at the of you PATH (Environment) variable</li>
<ul>
<li>;%GRAILS_HOME%\bin</li>
</ul>
<li>Go to command prompt and type following command to test your setup</li>
<ul>
<li>grails -version</li>
<ul>
<li>It should display the installed grails version</li>
</ul>
<li>cd %GRAILS_HOME%</li>
<ul>
<li>it should take you to grails directory</li>
</ul>
<li>grails create-app HelloWorld</li>
<ul>
<li>It should create application name hello world. You can use any name for your application</li>
</ul>
<li>cd HelloWorld</li>
<ul>
<li>It should takes you to newly created application</li>
</ul>
<li>grails run-app</li>
<ul>
<li>It should start application. </li>
<li>If firewall gives any warning then we should allow application to continue.</li>
<li>It will download all dependencies</li>
</ul>
<li>goto http://localhost:8080/ to see your application started successfully or not</li>
</ul>
</ul>
</div>
Danish Hussainhttp://www.blogger.com/profile/02518165805693137776noreply@blogger.com0tag:blogger.com,1999:blog-4192321718296469857.post-67924263604137560772012-06-15T22:30:00.003+05:002012-06-15T22:30:03.821+05:00Window Mobile Development -Step by StepFirst step for windows development is like other type of developments i.e. Prepare your system for development<br />
<br />
First step is to install Visual Studio 2010. If Visual Studio is not installed dot worry as Visual Studio Express in included in Windows Phone SDK.<br />
<br />
Second step would be to download Windows Phone SDK. Goto following link to have more details about windows SDK<br />
http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx<br />
<br />
After you install Windows Phone SDK you will have new project template for Windows Mobile Development.<br />
e.g. Windows Phone Application for Windows Application Development using silver light<br />
<br />
Third step will be to get Window Phone Training Kit. You may download it from following link<br />
http://www.microsoft.com/download/en/details.aspx?id=1678<br />
<br />
<br />
There are few good tutotrial on Windows mobile development at following location<br />
http://channel9.msdn.com/blogs/egibson/windows-phone-7-jump-start-session-2-of-12-building-a-silverlight-application-part-1Danish Hussainhttp://www.blogger.com/profile/02518165805693137776noreply@blogger.com0tag:blogger.com,1999:blog-4192321718296469857.post-58466157847592821082012-06-12T22:11:00.000+05:002012-06-12T22:11:01.015+05:00Schema Binding in SQL Server Views with indexesThere are ways to optimize your views i.e. by adding indexes on your views. In order to achieve this tunning you shoudl first create view with Schema binding. <br />
This is very Simple see SQL below.<br />
<br />
CREATE VIEW [dbo].[vw_sampleView] <b>WITH SCHEMABINDING</b> AS<br />
Select * from tbl_Sample<br />
<br />
i.e. You just need to add bold text while creating your views. This will allow you to define index on your views which will result as tunned queries to your databases.Danish Hussainhttp://www.blogger.com/profile/02518165805693137776noreply@blogger.com0tag:blogger.com,1999:blog-4192321718296469857.post-49433506870496023502012-06-11T21:14:00.006+05:002012-06-11T21:14:00.686+05:00Getting Started with Bizagi BPMIf you go through demo Video of Bizagi you can easily get started with Bizagi in 50-10 minutes.<br />
<br />
As I was evaluating it in a way where I have to run processes on exisiting data already in another database. I was searching for functionality keeping in mind that this is a normal case for each and every one except most of information that will be available on forms will be coming for external databases and Bizagi was not an exception.<br />
<br />
There is a WIKI on their website that explains how to integrate Bizagi with external datasources which is very good and will help to understand this concept of Replication and Virtualization very well.<br />
<br />
have a look at this link and you will definately find it interesting :)<br />
<br />
<a href="http://wiki.bizagi.com/en/index.php?title=How_to_Integrate_Bizagi_with_an_External_Data_Source"></a><br />
<br />
All you need to do is to make sure that your data types are supported by Bizagi. BTW it support most of the commonly used data types you may see details here <a href="http://wiki.bizagi.com/en/index.php?title=Replication_and_Virtualization_Data_Type_Support"></a><br />
In case your table contain columns that are not supported by Bizagi you may use set of supported columns using Schema binded Views with Indexes. For details see my blog for schema binding view<br />
<br />
I am not sure but I noticed issues in replication sometime but I will confirm my doubt is that if there is any problem in replicating 1 entity then other entities didnt get replicatedDanish Hussainhttp://www.blogger.com/profile/02518165805693137776noreply@blogger.com0tag:blogger.com,1999:blog-4192321718296469857.post-61040360257394213812012-06-10T20:47:00.002+05:002012-06-10T20:47:00.767+05:00Bizagi WorflowsI was during a research and impress by a workflow engine implemented at manay places.<br />
Bizagi workflow also placed in Visionaries quarant by Gartner in 2010 Gartner report. Good thing about this BPM that an evaluation version is freely available.<br />
<br />
Do try I hope you will like it ;)<br />
<br />
<a href="http://www.bizagi.com">http://www.bizagi.com<br />
</a>Danish Hussainhttp://www.blogger.com/profile/02518165805693137776noreply@blogger.com0tag:blogger.com,1999:blog-4192321718296469857.post-67218363170457690902011-06-26T17:00:00.002+05:002014-11-21T22:22:14.729+05:00Installing Windows Virtual PC on Windows 7<div dir="ltr" style="text-align: left;" trbidi="on">
If you are using Window 7 Home Edition you may found on <a href="http://www.microsoft.com/virtualpc">http://www.microsoft.com/virtualpc</a> site that you are not eligible for WindowsXP mode version which leaves a false impression that you are not eligible for installation of Virtual PC.<br />
<br />
You may still download and install Virtual PC from following location<br />
<br />
<a href="http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=3702">http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=3702</a><br />
<br />
<br /></div>
Danish Hussainhttp://www.blogger.com/profile/02518165805693137776noreply@blogger.com0tag:blogger.com,1999:blog-4192321718296469857.post-1659478972752540122011-03-20T22:27:00.001+05:002011-03-20T22:27:00.510+05:00Crystal Report For Visual Studio Upgrade Issues related to asp.netYou may expect issue similar to error mentioned below while upgrading your crystal report project.<br />
<br />
CS0433: The type 'CrystalDecisions.Web.CrystalReportViewer' exists in both 'c:\Windows\assembly\GAC_MSIL\CrystalDecisions.Web\<Oldversion>__692fbea5521e1304\CrystalDecisions.Web.dll' and 'c:\Windows\assembly\GAC_MSIL\CrystalDecisions.Web\<Oldversion>__692fbea5521e1304\CrystalDecisions.Web.dll'<br />
<br />
Above issues can be easily fix by updating web.config file. As above issues may come if assemblies section of web.config still contains entries with old crystal report versionDanish Hussainhttp://www.blogger.com/profile/02518165805693137776noreply@blogger.com0