Saturday, September 2, 2017

TeaTV App Installation on Amazon Fire TV Stick without Downloader App.

Amazon Fire TV Stick is a good Android TV device to make your TV as SMART TV. In my previous post you can see this TV stick installation instruction video step by step. If you have not not read or view those steps then please take a look following post first

In this post we will see how we can install android apps which are outside from Amazon App store and how you can get those installation files on your stick using cloud access.
There are some android app which give you streaming of movies , channels or TV shows in your TV stick device but most of time you will get step to install "Downloader" app. That app is not available on Amazon App Store now so i will walk through which easy steps to get those apps in your fire TV stick. 
Please take a look following video to get complete steps to install TeaTV App and enjoy the HD quality movies in your Fire TV Stick device.

TeaTv Movie App Installation on Amazon Fire TV Stick Without Downloader App. 


Disclaimer Content

I am not aware how TeaTV app is streaming movies or TV shows so if you are having any concern or complaint about the content which are streaming on TeaTV App please contact the App Developer or video host streaming provider.

I am not hosting any copyrighted videos or 3rd party content on  my website or on any server.  
Thank You !

Friday, September 1, 2017

Amazon Fire Stick Setup Video Step By Step.

In  this post i am going to share step by step instruction to setup Amazon Fire Stick. Last week only i have ordered new Amazon Fire Stick which come with Alexa Voice Remote and it is great tool to make your TV as SMART TV if your TV is not SMART TV.



There are several apps are available in Amazon Apps store and you can also install some well known Android Apps which are outside of Amazon Apps store in the device. Apps are like Tea TV , Live Net TV , KODI etc etc.

I have ordered following Amazon Fire Stick which cost is around $ 39.00

I am going to show you first setup of Amazon Fire Stick and in my next post we will see step by step instructions to install some of other apps which you can use to stream Movies , TV Shows , News Channels etc..

If you are having good internet WiFi connection then Amazon Fire Stick is a great TV sticks to satisfied your need.

Instead of writing instructions i have recorded all steps and created following video which is uploaded on one of my YouTube channel.

 Amazon Fire Stick Setup Video Step By Step.


Hope this post will be helpful to anyone. Thank you !

Tuesday, August 29, 2017

Windows Forms Multi Threaded Background Job Application

When you are working on distributed architecture application using Multi Threads developer usually come across Cross Thread error.
Error Description : Cross-thread operation not valid: Control 'progressBar1' accessed from a thread other than the thread it was created on.

Whenever we try to access control object which are part of main thread and if you try to change that control object property value you will receive Cross Thread operation error.
It error description suggest that you are trying to do Cross-Thread operation which is not valid.

To produce this error in my example i am going to use small Windows Forms App ( Parent Child ).

  1. Parent Form which is Main Form and it has menu items to open Child Form
  2. Child Form which will start the small loop in thread using "Start Loop" button
  3. From the loop we try to set value of Progress bar and Status label text.
  4. Once you click "Start Loop" button you can see Cross Thread error because Progress bar control is a part of Main Thread and we are trying to access directly to sub thread.

WFBackgroundJob1.cs

This error you can resolve using Thread.Invoke but i am resolving this error using Background Job in my example. Let's take a look simple example which start Background Job under worked thread and it's progress using backgroundWorker1_ProgressChanged event.
Your job runs in background asynchronously and user able to continue working on system as system won't hang even we are running loop.

  1. Parent Form which is same like previous Main Form and it has menu items to open Child Form
  2. Child Form which start the small loop in backgroundWorker1_DoWork event using button "Start Loop" which start loop asynchronously backgroundWorker1.RunWorkerAsync();
  3. DoWork report the progress using backgroundWorker1.ReportProgress method
  4. In example 2 arguments added in ReportProgress method one is percentProgress and second is Progress Status as Text.
  5. Background job control WorkerReportProgress property need to set True before using ReportProgress method

Please get the sample CSharp code as mentioned

WFBackgroundJob2.cs

Please post your questions or comments bellow. Thank you !

Thursday, August 24, 2017

Visual Studio 2017 Community edition download & installation.

Visual Studio is one of famous IDE for Windows and Mac to develop apps for Android, iOS,Mac, Windows , Web and Cloud. Using this IDE we can write our code fast,Debug and Diagnose with ease.
Please get more details about Visual Studio here : Visual Studio

Visual Studio Community is free for all developers or students and in this post we will see step by step instructions to install Visual Studio Community 2017.

Step 1 : Go to link https://www.visualstudio.com/downloads/  to download VS 2017 community edition.

Step 2 : Click on Free Download button of Visual Studio Community 2017 IDE

Step 3: Run the downloaded setup executable file vs_community_xxx.exe

Step 4: Accept the Microsoft Terms and Conditions and click Continue


Step 5: Select VS 2017 different components as per your development preferences. I have selected following as per my preferences

  1. Universal Windows Platform Development
  2. .NET desktop development
  3. ASP.NET and Web development
  4. Mobile development with .NET using Xamarin
  5. Mobile development with JavaScript 
  6. Click on Install



Step 6: Once you click Install it will start installation as per your selection and necessary files will be copied to your system.


Step 7 : After successful installation please Launch the IDE.


Post your questions or comments bellow. Thank You!

Wednesday, August 23, 2017

AngularJS Expression , AngularJS Controller and Bootstrap example

Let's take a look example of area calculation of different shapes using AngularJS Expression and Controller.
  • Square and Rectangle shape's Area calculation using AngularJS expression
  • Circle and Triangle shape's Area calculation using AngularJS controller.
Mentioned page is also design using bootstrap to give nice look and feel.
Please check my previous blog post related to following topics as mentioned.
Please check LIVE demo of given example here : Click Here


AngularJS Expression
AngularJS binds data to HTML using Expressions. It can be written inside double braces as
{{ expression }}. It can also written inside ng-bind directive. In example you will see Square and Rectangle area calculation expression inside AngularJS Expression. AngularJS will resolve the expression and return the value to the HTML element.

Square 
square variable which is width/height of shape and we are initializing variable using ng-init directive.
The same variable is bind with input textbox using ng-model directive.
The Square shape area calculation equation added inside AngularJS Expression as{{sqaure*sqaure}}

Rectangle 
Rectangle shape's width  rectwidth and height rectheight initialize using ng-init directive. Both variables are bind with input textbox using ng-model directive. The Rectangle Area calculation equation is added inside AngularJS Expression as {{rectwidth*rectheight}}

AngularJS Controller
AngularJS applications are controlled by controller. The ng-controller directive is used to define a controller object. AngularJS Controller is javascript object created using JavaScript Object Constructor notation.

In my application ng-app="myApp" directive which is defined AngularJS application. This application run inside define <div> element.The ng-controller="myCtrl" attribute is an AngularJS directive. It defines a controller. When Controller object initialized from JavaScript language it also passes $scope object. Within $scope object we are initializing variables for Circle and Triangle which also contain methods to perform Area calculations.

Circle
Circle's radius variable or attribute is initialized inside controller object in javascript line  $scope.radius=6;  The variable is also bind with input textbox using ng-model directive. To perform circle area calculation we need MATH.PI variable so we are passing $window service also using AngularJS Service Injection feature. $scope.circleArea = function do the calculation and which is added in HTML using AngularJS Expression as {{circleArea()}}

 Triagle
Triangle's shape base and height variable or attributes are initialized inside controller object in javascript line $scope.base=4;    $scope.height=7;  Both variables are bind with input textboxes using
ng-model directive. $scope.triangleArea = function do the calculation and which is added in HTML using AngularJS Expression as {{triangleArea()}}

AngularExpression.html

Hope this example give you some basic idea about AngularJS Expression & Controller.

Please post your questions or comments bellow. Thank You !

Tuesday, August 15, 2017

What is Web API and why to use it ? What is REST?

The API is stand for "Application Program Interface" and web we commonly use for internet application so Web API means the service or interface or endpoint which available on internet to retrieve and update application data for the client.

Here client means general it can be Web Client , Mobile Client  etc etc possible on all available operating system.

Web Clients means all browsers like Internet Explorer, Google Chrome , Safari, Opera etc
Mobile Client means iPhone,iPad , Android Phones and tablets or Windows Phones and tablets

Today creating web application is not enough because Mobile devices like Phones and Tablets are so popular to reach maximum people so you need to design application which make data available across all possible clients.

Let's consider modern application architecture which has several clients on different platforms including Mobile and Web Clients.



If you can notice all client apps are having it's own bussiness logic to connect with database and process data accordingly. This architecture is complex to scale and enhance application. Adding single business rule change  also we need to add in all available business logic which introduce more defects,bugs and expensive also.

Now let's consider same application with central API along with common business layer.


Each clients are using common Application Program Interface and common business layers which will advantage over previous modern architecture.Now days creating Web API we are creating with one architecture pattern called REST and services which are following these pattern called as RESTfull services.

What is REST?
REST stands for ‘Representational State Transfer’ and it is an architectural pattern for creating an API that uses HTTP as its underlying communication method.

Almost every device that is connected to the internet already uses HTTP; it is the base protocol that the internet is built on which is why it makes such a great platform for an API.

HTTP is a request and response system; a calling client sends a request to an endpoint and the endpoint responds. The client and endpoint can be anything but a typical example is a browser accessing a web server or an app accessing and API.

Monday, August 14, 2017

Create pattern with "*" like as follows using While Loop in VB.NET.

Create pattern with "*" like as follows using  While Loop in VB.NET.

*                                              *                                                                 *
* *                                           * *                                                              * *
* * *                                        * * *                                                           * * *
                                                * * * *                                                        * * * *
                                                * * * * *                                                     * * * * *
In this post you will find one sample VB.NET console program which will print pattern like mentioned in the post using While Loop.

You will find same pattern solution using For Loop in my future post :

As you can see in post we need dynamic pattern so first we need to take user input to get number of cycle for this pattern output.

Once you have count you can use that count against While Loop to iterate your console output.

You will find 2 While Loop in this program. 1st Loop is required to perform number of iteration and with this loop only we will go to new line on console.

2nd while Loop is required to perform actual print of STAR ( * ).

Please find example and output of this VB.NET Program as mentioned.
Console Output :


Hope this simple program help any developers.

Please post your any questions or comments bellow on comment box. Thank You !