Skip to main content

Posts

How has lockdown impacted Indian farmers?

How has lockdown impacted Indian farmers?             Generally compare to other sectors it's not major impacted by our Indian farmers but we acceptable minor impacts. Here we separate major two farming cultures one is mono farming culture another one poly farming culture. Mono farming :             The major impacts from our Indian farmer for monoculture. Here I have briefly explained what are the things we had faced our local farmers. Here I explain two different crops type: Daily crops : * We harvest more than 100-kilo grams daily crops like brinjal but we unable to sell those in local markets. * We are unable to reach urban markets. * We don't have enough transport facilities. * We unable buy require fertilizer and other complements * In the early stage we are facing manpower shortage but later it's not an issue. * We unable to do value-added products. * Waste is very high for somedays Se...

Sensors

A sensor can be identifying the environment changes from the surrounding of the device. In the earth who are live plants, animals and human beings have some basic sensing behavior by nature, so those approaches and behaviors we fallowed and implement to nonliving things. These are the major behavior we identify from the sensors like light, sound, motion, temperature, pressure, acceleration, position, Object presence, and Air. Here I'm sharing few components 1. Temperature Sensor Temperature sensor sensing the circumstance of temperature in the installed places. 2. Ultrasonics Sensor Using ultrasonic to identify the obstacle distance in front of the device and based on the data we can manipulate the application. 3. Pressure Sensor Find the pressure value on the device to you gave the pressure on it. 4. Water Level Sensor A water level sensor sensing the water level in the water tank and based on value trigger the applications.  5. Motion Sensor The mot...

How is a startup possible in farming and agriculture?

                 In this question we have two options, The first one is natural farming and another one is chemical farming. Both are the way to start an agriculture startup. Before we jump into the topic we have to look at more important things like Financial, Yield, quality of food and Marketing these are the very challenge we face. Chemical Farming 1. Capital & financial   * an agriculture startup we must have to invest for own land but chemical farming not require to buy an own land because chemical farming land does not produce yield more than 10 years so best you can acquire rental land.  * We have to buy cultivate equipment and machinery for chemical farming. In this case, we have two options       1. More necessity things are bought own equipment         2. Fewer necessities things go for a rental.   * Make a sufficient fund for runnin...

What is the main aim to provide quality seeds to farmers?

         Seeds are more important things to live all animals and human beings in the world. If no seeds, We unable to live the earth happily. The seeds were played a major role in the agriculture departments. In the future world, Quality of seeds also one of the more expensive items in the market.         Our agriculture scientist Mr. G. Nammalvar said that The most powerful weapon is the seed. I hope his word is now happened( Ref https://www.vanagamsanthai.com/product/14/ini-vithaigale-perayutham). Provide a quality of seeds to farmers we are getting the following result: * We improve the quantity of yield. * Quality seed will produce yield those yield seed will reuse for next session. * We do not provide fertilizer because quality seed not required for that. * It's not affected insects

How will agriculture evolve

Agriculture will evolve the following types in the future. 1. Natural Farming 2. Nutrition Orient Farming 3. Fertilize Orient Farming 4. Terrace garden Farming 1. Natural Farming Now, most of people aware and important of natural food. We are consuming a lot of foods that were packed, preservatives and Jung, these items came from various places in the world so it's added lot of chemicals to avoid food waste. These things we could consume regularly till now. almost we are facing so many diseases in our day to life. So people are avoiding unhealthy food to use that is the reason we are switchover natural farming. The natural farming foods are very expensive nowadays but in the future may be it will reduce the prices. When this will happen If more people involve natural farming. 2. Nutrition Orient Farming It's like the way of doing the Hydroponic farming process system but the thing is only nutrition leaf harvesting. In this leaf contain all the nutrition, If y...

Arduino

        An Arduino is a platform to write a program in electronics. It has contained controller, microcontroller, led and sensors, these components communicate with software and hardware to take the action and get the results.  Arduino is an open-source platform so we can customize the device for our needs. Features: * Low-cost price in the market * Code writing is not a difficult one. * It's supported multiple platforms like a window, mac, and Ubuntu          Arduino organizations provide multiple types of boards for user needs. Based on your requirement you can choose the board and explore your knowledge in the hardware. These are the items in markets Arduino Uno, Arduino Due, Arduino Mega, Arduino Yun, Arduino Micro and etc.

ESP32 setup in Arduino IDE

ESP32 setup in Arduino IDE Step 1: Navigate Arduino -> Preference menu. Step 2: Paste the following Url in Additional Board manager URLS, As the below image reference. Then press the ok button. Step 3: After Open Tools menu -> Boards -> Bords Manager, As the below image reference. You can search the "esp32" keywords and found the eps32 board manager then install the package manager. Step 4: After connecting your esp32 device using USB cable and choose your board manager as below reference. Step 5: Select the usb port for new connect eps32 device. Tools -> port -> Select your device Step 6: Now create a Hellow_world program. #include "WiFi.h" void setup() {   // put your setup code here, to run once:   Serial.begin(115200); } void loop() {   // put your main code here, to run repeatedly:   Serial.println("Hello World");   delay(2000); } Step 7: While upload your code in esp32, you can keep...

Control state and validity with ngModel in angular2

        A ng-model is a form input property to two-way bind in a form control model. We are declared n number of ng-models, This model requires a validation for directive and component side also. Most of the user experience is apply with in directive because of didn't ready to waste the time to submit a form and validate in server side.        In line validation, the very important role is played in angular and bootstrap framework. This form validation is declared a mandatory property in mg-model means bootstrap is binding in a directive for a hash class in angular. Form Validation states: State Class if true Class if false The control has been visited. ng-touched ng-untouched The control's value has changed. ng-dirty ng-pristine The control's value is valid. ng-valid ng-invalid Example: < input   type = "text"  ...

angular 2 template driven forms

From: A form contains various input components like text, option, select option and pickers. This input component behavior is manipulated into Form.  A form is operated to two-way data binding , validation, event binding and error handling while submitting the form or inline validate. Template Driven form: A Template Driven Form creates a set angular structure based directives. Example: I create execute the following angular-CLI code:  ng g component tempdrivenfrm Now, the template driven component is created successfully.  We write a logic for the corresponding files. HTML: <form #usrfrm="ngForm" (ngSubmit)="userFormSubmit(usrfrm)"> <div class="form-group"> <div class="form-group">     <label>User Name</label>     <input type="text" #myNameRef="ngModel" required minlength="5" class="form-control" name="name" ngModel>   ...

Two way data binding in angular 2

        Consider angular 1 is a great feature for two-way data binding system. It's very helpful to access a variable in a directive and modifying value shows the user view or web view.          In this feature is not available in angular > 2.0 greater than version because of here not in a use of the directive structure. So In this feature will implement angular 2 means, we require to know the event and properties binding details. Properties binding: [] : -  The behind of the symbol to binding a property in HTML element of view page in angular 2. Example: <input type="text" name="firstname" [ngModel] = "firstName"> The above line of code is firstName value is to bind ngModel of an input element. Event Binding: () : - The behind of the sysmbol to binding an event in the included HTML element in angular 2. Example: <input type="text" name="firstname" [ngModel] = "firstName" (onC...

Hello World Program in Angular 2

         Before we start the angular development, we need to install node setup to your environment. Please download node  latest version and install it. Once installed it, you will open a terminal or command prompt to type the following command.        node --version The above command was shown installed node version details. Then install for AngularCLI for globally.       npm install -g @angular/cli Create a new Project Generate a new project by using angular cli. We execute the following command         ng new welcometolearntoday  Fig: Then automatically Angular related packages are generated. the following image is shown the list of file names are generated. Fig: Then go to project folder: cd welcometolearntoday  now start to run the angular application ng server --open Now, the following url is generated and open the bro...

Why I can learn Angular 2

Speed and performance: * Today we are not ready to write a bundle of code in application development so framework will support to make easy. * We are integrating any different type of server platform to develop admin dashboard view(ex java, php and .Net). * Angular code is split different type of names(component, model, service) and easily load. Cross Platform: * Angular is a support to progressive web application development and zero step installation. * In this platform is supported to develop  Ionic  and NativeScript  projects. * Angular also support to develop a desktop application in various platforms like Mac and Windows environment. Productivity: * Quickly create the powerful UI templates in angular. * Angular-CLI is the support to auto-generated related package files. Full Development story: * It will support karma and unit testing script. * Animation related application development and choreographies....

Ng-paste in AngularJS

            An ng-paste is a custom directive to user expectation base. This directive very useful to real time development. Here i share some real experience for myself, we develop a online question and answer program exam event.              This application is not include copy and paste restriction for any piece of code from the exam event, But we analysis the user is using any copy paste piece of code from the question and answers means we get flag value . How we get a flag value is using ng-paste directive is listen the paste event flag value. This value is send to server and analysis how user response to genuine. AngularJS: var app = angular.module('PasteApp',[]); app.controller('PasteCtrl', function($scope){ $scope.paste = false; }) ; HTML: <div ng-app="PasteApp"> <div ng-controller="PasteCtrl"> <span>Write a program for date filter in angular?</span> <textarea rows...

How to using ng-pattern in angularjs

An angular ng-patter is check the matching value of input string in directive and return a form validation. Ng-pattern is value match logic are applied form user input on DOM End. I set the pattern value is amazon while enter the input box value is amazon mean return true from form validation other than false. HTML: <div ng-app="PatternApp"> <div ng-controller="PtrnCtrl"> <form name="ptrfrm"> <input type="text" ng-model="model" id="input" name="input" ng-pattern="ptrn" /><br> Result==> {{ptrfrm.input.$valid}} </form> </div> Angular: var app = angular.module('PatternApp',[]); app.controller('PtrnCtrl', function($scope){ $scope.ptrn = "amazon"; }); Result: Demo

Group by select ng-options in angularjs

An angularjs ng-options have iterate the array or object based the number of  item available from the component. This item normally we use ng-options for key and value  previous   example . Now our requirement is need to Group feature from the selection option. Group By - This is the component of group list item or value added from the option label. value.category group by value.name for (key, value) in data The above format is write a (<optgroup>) select option UI <optgroup label="mobile"><option value="0">Moto,MicroMax,HTC,Apple</option></optgroup>  HTML <div ng-app="Opt"> <div ng-controller="OptCtrl"> <span>Name :</span> <span>   <select ng-options="value.category group by value.name for (key, value) in data" ng-model="yourItem"> <option value="">-- Select Country --</option> </select> <br...

Why Angular 2.0?

Before accepting into added altercation about Angular 2.0 (which has an estimated absolution date of the end of 2015), let’s briefly accede the aesthetics abaft the new version. Angular 2.0 development was started to abode the afterward concerns: Mobile   The new Angular adaptation will be focused on the development of adaptable apps. The account is that it’s easier to handle the desktop aspect of things, already the challenges accompanying to adaptable (performance, amount time, etc.) accept been addressed. Modular   Various modules will be removed from Angular’s core, consistent in bigger performance. These will acquisition their way into Angular’s ever-growing ecosystem of modules, acceptation you’ll be able to aces and accept the locations you need. Modern  Angular 2.0 will ambition ES6 and “evergreen” avant-garde browsers (those automatically adapted to the latest version). Building for these browsers agency that assorted hacks and ...

ng-options using Angularjs

     An ng-option is select directive will dynamically added data from the list of items. Array or object value will iterate one by one and bind the <option> tag value and label. ng-option is very useful for select tag implement. HTML : <div ng-app="Opt"> <div ng-controller="OptCtrl">     <span>Name :</span>     <span>     <select ng-options="country as country.name for country in countrys track by country.id" ng-model="yourCountry">        <option value="">-- Select Country --</option>     </select>     <br>     <span>Code :</span>     <select ng-options="code for code in codes" ng-model="yourCode">        <option value="">-- Select Code --</option>     </select>     ...

AngularJs using $localStorage one time declaration

         An angularjs directive have a scope value from the declared controller. Suppose your need a global access meas using $rootScope declaration to access all controller from the application.            $localStorage is long time storage a browser data, It will reuse the data. This localStorage is declare into ngStorage.js library. HTML Code: <div ng-app="Loc"> <div ng-controller="LocCtrl"> <div ng-click="clickCount()"> Count : <span>{{count}}</span> </div> </div> </div> JS code: var app = angular.module("Loc",['ngStorage']); app.controller('LocCtrl', function($scope, $localStorage){   //One time local storage  logic  if(angular.isUndefined($localStorage.storeCount)){     console.log('Local storage data one time set');          $localStorage.storeCount = 0;...

ng-style in angular directive

An ng-style is a directive to use css style properties and all component is to make design. The design properties is make controller scope object is created and than the object is set to ng-style value. Syntax: <div ng-style="expression"></div> AngularScript: <div ng-app="colorApp"> <div ng-controller="ColorCtrl">     <input type="button" value="set color" ng-click="demo()">       <span ng-style="myStyle">Sample Text</span>     <pre>myStyle={{myStyle}}</pre> </div> </div> var app = angular.module('colorApp',[]); app.controller('ColorCtrl', function($scope){   $scope.myStyle = {};      $scope.demo = function(){  $scope.myStyle = {      'color': 'green',      'font-size': '42px',      'font-family': 'Arial,Helvetica Neue,Helvetica,sans-serif'    };  } })...

Cachefactory in angularjs

$cacheFactory :             A cache is object, this will store and get cache data. Why we can use cache ? the reason is increase the speed of retrieve data access. Because increase the performance of application. This Cache have 5 methods: info() - The details about cache object properties. put(key, value) - Push the details of key,value object; get(key) - Get the details of pushed objects; remove(key) - Remove a specific object; removeAll() - Remove all pushed objects; destroy() - Clear the cache object; Angular Code : <div ng-app="cacheApp">     <div ng-controller="CacheCtrl">         Data {{information()}}     </div> </div> var app = angular.module("cacheApp", []) app.factory('myCache' , function($cacheFactory) {     return $cacheFactory('mycache' , { capacity : 3 }) }); app.controller('CacheCtrl', function($scope, myCache) { ...