Posts

Blockchain - Introduction

Following gives a simple layman definition of Blockchain A shared ledger (record of collection of  transactions). It contains all transaction taken place since beginning and are publicly accessible to everyone. Stored on a distributed environment using the peer-to-peer technologies Blockchain network ensure that multiple nodes can securely communicates with each other Whoever opt to participate in the blockchain network will have a copy complete ledger / blockchain 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. 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. Following details the high level concept of Bitcoin blockchain.  A Bitcoin blockchain is the ledger o...

Android development - Adding scrollbar in your activity

Adding scroll bar in your activity in your mobile application can be done easily. e.g. You have main layout for your mobile application as below < LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android" xmlns: tools = "http://schemas.android.com/tools" android :layout_width= "fill_parent" android :layout_height= "fill_parent" tools :context= "com.learning.course.letslearn.MainMenu" android :orientation= "vertical" android :layout_weight= "100" android :layout_marginLeft= "15dp" android :layout_marginRight= "15dp" android :layout_marginTop= "15dp" > ............. ............. ............. </ LinearLayout> Enclosing this with scroll view will ensure that whenever screen have less vertical space an scroll bar will be displayed xml version= "1.0" encoding= "utf-8" ?> < Scroll...

How To hide windows title bar in your android application

Perform following steps In your style file (app\src\main\res\values\styles.xml)  add following lines. This will create another theme with NotTitle < style name= "FullscreenTheme" parent= "AppTheme" > < item name= "windowNoTitle" >true</ item > </ style > Apply newly created style/theme to your activity using application manifest file ( app\src\main\AndroidManifest.xml) as shown in highlighted text ..... < activity android :name= ".MainMenu" android :theme= "@style/FullscreenTheme" > < intent-filter > < action android :name= "android.intent.action.MAIN" /> < category android :name= "android.intent.category.LAUNCHER" /> </ intent-filter > </ activity > ......

Android Studio - Taking screen shot using android emulator

Image
You might need to take screenshot our application for various purpose e.g. Presentation etc. You may follow below steps to capture screenshot of your application in Android Emulator. Run project and select already configured emulator From Emulator screen click on screen capture button ("Camera icon") to capture screen as shown below After taking snapshot you may access this using Android monitor. Click on camera icon as shown below 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

Java IDE for Grail Development

Choosing the right IDE in java development is important as it will directly impact your development. following are few famous IDEs available for java 1. Intelli J 2. Eclipse For me Intelli J only worked if you have ultimate edition. Though I like IntelliJ but Eclipse looks better option for me. Assuming that JDK is already installed (Please see earlier post related to JDK install for more details) Assuming that grails is already installed (Please see earlier post related to grails install for more details) In order to run it with eclipse first download STS http://spring.io/tools/sts STS installation is a copy paste install unzip the file and it wil have everything. run sts.exe    cd %grails_home%    cd   grails integrate-with --eclipse grails compile grails download-sources-and-javadocs grails sts-link-sources-and-javadocs

Grails - Introduction

I would like to give you a little introduction of grails in newbie term. 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 Grails provide the framework based on following 1. Hibernate - ORM layer 2. Groovy Server Pages - Presentation/Web layer 3. Spring - Controller layer 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

Mobile Application - Change Icon using android Studio

Image
Use below step to change icon of your mobile application using Android Studio. Open your android application project in android studio On res folder right click and select new image asset             3.Select asset type as image and browse to select the new icon file         4.Android studio will warn you of a file override. Click finish to continue

Android studio failed to display design mode

Image
While staring my basic application I was unable to view the layout xml in design mode. Following was my configuration. Android Studio 2.1.3 Created new project with empty activity Clicked on res/layout/activity_main.xml and tried to open and found exception java.lang.NoSuchMethodError: android.graphics.drawable.VectorDrawable_ android studio....... on clicking details I found following detail exception java.lang.NoSuchMethodError: android.graphics.drawable.VectorDrawable_Delegate.nDraw(JJJLandroid/graphics/Rect;ZZ)I at android.graphics.drawable.VectorDrawable.nDraw(VectorDrawable.java) at android.graphics.drawable.VectorDrawable.draw(VectorDrawable.java:304) at android.widget.ImageView.onDraw(ImageView.java:1286) at android.view.View.draw(View.java:17056) at android.view.View.draw(View.java:16964) at android.view.ViewGroup.drawChild_Original(ViewGroup.java:3715) at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:61) at android.view.ViewGr...

Mobile Development - First Step

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. 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? The answer is simple, First thing is that we need to visualize our application and we start we story boarding of our app. 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. Activities All elememt in android are activities that have an UI definition using xml and a code behind to hadle evenet widget/Views e.g. Button, text box Layout e.g. Linear layout There are may tools available that may assist you in doing story boarding however you may start it on a blank piece of paper

Mobile Development - Android

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. 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. 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. 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, 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. Android SDK contains an emulator software that is very powerful and can build th...

Configure My Site in Sharepoint 2013

Image
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 https://technet.microsoft.com/en-US/library/ee624362.aspx 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 2. Select Application Management -> Create Site Collection 3. Save to URL for later configuration 4. For template select Enterprise -> MySiteHost Template 5.Enable self service application, Go to Central Admin 6. Select Manage Web Application under application management 7. Select Web application 8. Select "on" in the self service site creation and be hidden from user in start a site. 9. Select Manage Appluication 10. Click on Permission Policy 11. click Add new Policy 12. Grant Create Subsites - Create subsites such ..... 13. Few pre-req permission will be selected automatically 14. click save ...

Creating a first Visual Webpart for Sharepoint 2013

Image
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. 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. Following are steps for creating a Hello World web part. 1. Open Visual Studio (as an administrator, other wise it will restart on step 4 ;) ) 2. Click File -> New -> Project as shown below 3. Select Template under Visual C#-> Office/SharePoint -> SharePoint Solution 4. On the right pane select SharePoint 2013 - Visual Web Part 5. It will ask for share point site (If you need to create SharePoint site collection follow my post ) 6. Validate site URL and select "Deploy as a farm solution" 7. As soon as you click...

Manage Services on Server link doest show

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.. 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. If you are using windows 2012 and wondering how to access program files you may refer my  post

Windows 2012 - How to access program files

Image
If you are an windows users who is new to windows 2012 you might be wondering how to access program files in Windows 2012. Following are steps to do this. 1. Press window + d to bring desktop in front. 2. Press window button and it will show start menu as show below. 3. Right click and you will show All app button on bottom right as shown below 4. As you click all app you will see complete program files as shown below

Intalling Sharepoint 2013 on Windows 2012

Following are few steps for intallation of Sharepoint 2013. For this post I am using VMWare for fresh installation. 1. Install Windows 2012 Data center 64 bit version: 2. Configure Active Directory (click for details) 3. Install SQL Server 2012 4. Install Sharepoint 5. Configure sharepoint services. 6. Create your first web-application Go to share point central administration Navigate to manage web application and click new to create new web application. 7. Create site collection After creating web application go to central administration Click Application Management Click create new site collection. After creation of site collection you are ready to work on SharePoint.

Configure sharepoint services

There are 3 essential SharePoint services you need to configure. 1. Managed Metadata service application 2. Search service application 3. User profile service application. Follow below steps for Managed Metadata service configuration. 1.Go to Central Administration. 2.Go to Application Management -> Manage Service Application 3.Click new from the ribbon and select "Managed Meta Data Service" 4. Specified attributes and click ok. 5. Goto Central Administration 6. Under System settings select "managed services on server" 7. start manage meta data service. Follow above step for Search service application with following differences. In step 2 select "Search Service Application" and stop on step 4. For User Profile service application, follow above step will following differences. In step 2 select "User Profile Service Application" In step 7 start "User Profile Service" and "User Profile Synchronization Service...

Configure Active Directory on Windows 2012 Data Center 64 bit

Image
Configure Active Directory on Windows 2012 Data Center 64 bit =============================================== 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. Follow below steps 1. Go to computer management 2. Expand System tools -> Local Users and Groups -> Users 3. On the right pane select administrator account 4. Right click and set a password. Follow below steps for configuration of Active Directory on server 1. Open server manager as shown below. Click on Add role and feature.  2. Add role and feature window popup appears as shown below. Click next to continue. 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.  4. As you click on next on previous screen ...

Installing Java JDK on Windows - Your first step towards Java Development

Image
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 Download JDK from below link http://www.oracle.com/technetwork/java/javase/downloads      Install JDK and JRE. Its a simple wizard. Setup following environment variables.  Go to My Computer,  Right click and select properties Click advance system settings Click Environment Variables Add following environment variable JAVA_HOME JRE_HOME Add following at the of you PATH (Environment) variable ;%JAVA_HOME%\bin Go to command prompt and type following command to test your setup java -version It should display the installed JDK version Environment Variables Path Variable

Installing Grails

I would really like the video at the following location https://www.youtube.com/watch?v=Nu3GgjuUOtg Following are steps for installing it on windows environment Install JDK.  You may use my other post to save some time :) Download grails from below link https://grails.org/download.html Unzip files and copy to one location says c:\grails Define environment variable GRAILS_HOME and set it to path used in previous step Add following at the of you PATH (Environment) variable ;%GRAILS_HOME%\bin Go to command prompt and type following command to test your setup grails -version It should display the installed grails version cd %GRAILS_HOME% it should take you to grails directory grails create-app HelloWorld It should create application name hello world. You can use any name for your application cd HelloWorld It should takes you to newly created application grails run-app It should start application.  If firewall gives any warning then we ...

Window Mobile Development -Step by Step

First step for windows development is like other type of developments i.e. Prepare your system for development 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. Second step would be to download Windows Phone SDK. Goto following link to have more details about windows SDK http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx After you install Windows Phone SDK you will have new project template for Windows Mobile Development. e.g. Windows Phone Application for Windows Application Development using silver light Third step will be to get Window Phone Training Kit. You may download it from following link http://www.microsoft.com/download/en/details.aspx?id=1678 There are few good tutotrial on Windows mobile development at following location http://channel9.msdn.com/blogs/egibson/windows-phone-7-jump-start-session-2-of-12-building-a-silverlight-application-part-1