Saturday 5 August 2017

வேளாண்மை செய்தி மற்றும் சேவைகள் - Agriculture News and Services


1) தோட்டக்கலை ( Horticulture)

2) வேளாண் பொறியியல்( Agricultural Engineering )

3) விதை சான்றிதழ் ( Seed Certificate)

4) அங்கக சான்றிதழ் ( Organic certificate)

5) பட்டுபுழு வளர்பு  (Sericulture)

6) வனவியல்(Forestry)

7) மீன்வளம் மற்றும் கால்நடை(Fisheries and livestock)

8) தினசரி வானிலை, மழைப்பொழிவு மற்றும் நீர்த்தேக்க நிலைகள்(Daily weather, rainfall and reservoirs)

9) விதை மற்றும் உரம் தயாரிப்பாளர் விபரம்(Seed and fertilizer producer)


10) உரங்களின் விலை விபரம்(Price of fertilizer)

மீன் அமினோ அமிலம் -

மீன் அமிலம்தயாரிப்பது மிகவும் எளிது. மீன் விற்கும் இடத்தில் அல்லது நறுக்கும் இடத்தில் மீதப்படும் செதில், குடல், வால், தலை போன்றவைகளுடன் சம அளவு பனை வெல்லம் சேர்த்துநன்கு பிசைந்துஒரு பிளாஸ்டிக் வாளிக்குள் மூடி வைக்கவேண்டும். இருப்பத்தைந்து நாள் கழித்து, எடுத்து நன்கு கலக்கினால் டானிக் தயார். இந்த வளர்ச்சி ஊக்கியேமீன் அமிலம்’. 10 லிட்டர் நீருக்கு 100 கிராம் (மில்லி) கலந்து பயிரில் தெளித்தால், பயிர் பச்சை கொடுத்து செழித்து வளர்கிறது


Machine Learning

What is a machine learning ?
Essentially, it is a method of teaching computers to make and improve predictions or behaviors based on some data. What is this "data"? Well, that depends entirely on the problem. It could be readings from a robot's sensors as it learns to walk, or the correct output of a program for certain input.
Another way to think about machine learning is that it is "pattern recognition" - the act of teaching a program to react to or recognize patterns.
What does machine learning code do ?
Depends on the type of machine learning you're talking about. Machine learning is a huge field, with hundreds of different algorithms for solving myriad different problems - see Wikipedia for more information; specifically, look under Algorithm Types.
When we say machine learns, does it modify the code of itself or it modifies history (Data Base) which will contain the experience of code for given set of inputs ?
Once again, it depends.
One example of code actually being modified is Genetic Programming, where you essentially evolve a program to complete a task (of course, the program doesn't modify itself - but it does modify another computer program).
Neural networks, on the other hand, modify their parameters automatically in response to prepared stimuli and expected response. This allows them to produce many behaviors (theoretically, they can produce any behavior because they can approximate any function to an arbitrary precision, given enough time).

Friday 4 August 2017

Convert List to Array with datatype in Java

If we have list and we have to convert into array with datatype. Java provides method for this.


For ex: List<Long> var = new ArrayList<Long>();

We have convert this into Long array. 

Conversion code: 

            Long[] varArray =  var.toArray(new Long[var.size()]);


Saturday 6 August 2016

How to convert Java object to JSON or JSON to java object in java

Download Gson jar from this link

 Quick Reference

toJson() – Convert Java object to JSON

Gson gson = new Gson();
<Java class> obj = new <Java class>();

// 1. Java object to JSON, and save into a file
gson.toJson(obj, new FileWriter("C:\\file.json"));

// 2. Java object to JSON, and assign to a String
String jsonInString = gson.toJson(obj);
 
fromJson() – Convert JSON to Java object

Gson gson = new Gson();

// 1. JSON to Java object, read it from a file.
<Java class>staff = gson.fromJson(new FileReader("D:\\file.json"), <Java class>.class);

// 2. JSON to Java object, read it from a Json String.
String jsonInString = "{'name' : 'mkyong'}";
Staff staff = gson.fromJson(jsonInString, <Java class>.class);

// JSON to JsonElement, convert to String later.
JsonElement json = gson.fromJson(new FileReader("D:\\file.json"), JsonElement.class);
    String result = gson.toJson(json);

Tuesday 17 November 2015

Display four square layout in andriod using linear layout.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="150dp">
    <LinearLayout android:orientation="horizontal" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.5">
        <ImageButton android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/imageButton71" android:layout_gravity="center_horizontal" android:src="@drawable/sadas" />
    </LinearLayout>
    <LinearLayout android:orientation="vertical" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="0.5">
        <LinearLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_weight="1" android:layout_height="75dp">
            <LinearLayout android:orientation="horizontal" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="0.5">
                <ImageButton android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/imageButton1" android:layout_gravity="center_horizontal" android:src="@drawable/sadas" />
            </LinearLayout>
            <LinearLayout android:orientation="horizontal" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="0.5">
                <ImageButton android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/imageButton" android:src="@drawable/wreew" android:layout_gravity="center_horizontal" />
            </LinearLayout>
        </LinearLayout>
        <LinearLayout android:orientation="horizontal" android:layout_width="match_parent" android:layout_weight="1" android:layout_height="75dp">
            <LinearLayout android:orientation="horizontal" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="0.5">
                <ImageButton android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/imageButton21" android:layout_gravity="center_horizontal" android:src="@drawable/sadas" />
            </LinearLayout>
            <LinearLayout android:orientation="horizontal" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="0.5">
                <ImageButton android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/imageButton22" android:src="@drawable/wreew" android:layout_gravity="center_horizontal" />
            </LinearLayout>
        </LinearLayout>
    </LinearLayout>
</LinearLayout>

Friday 18 September 2015

ABSTRACT DATA TYPES (ADTS)


·         One of the basic rules concerning programming is that no routine should ever exceed a page. This is accomplished by breaking the program down into modules.
·         Each module is a logical unit and does a specific job. Its size is kept small by calling other modules.
·         Modularity has several advantages. First, it is much easier to debug small routines than large routines. Second, it is easier for several people to work on a modular program simultaneously. Third, a well-written modular program places certain dependencies in only one routine, making changes easier.
·         For instance, if output needs to be written in a certain format, it is certainly important to have one routine to do this.
·          If printing statements are scattered throughout the program, it will take considerably longer to make modifications.
·         The idea that global variables and side effects are bad is directly attributable to the idea that modularity is good.
·         An abstract data type (ADT) is a set of operations. Abstract data types are mathematical abstractions; nowhere in an ADT's definition is there any mention of how the set of operations is implemented. This can be viewed as an extension of  modular design.

·          Objects such as lists, sets, and graphs, along with their operations, can be viewed as abstract data types, just as integers, reals, and booleans are data types. Integers, reals, and booleans have operations associated with them, and so do abstract data types.
·         For the set ADT, there may be operations as union, intersection, size, and complement. Alternately, the two operations union and find, which would define a different ADT on the set.
·          The basic idea is that the implementation of these operations is written once in the program, and any other part of the program that needs to perform an operation on the ADT can do so by calling the appropriate function.

·         If for some reason implementation details need to change, it should be easy to do so by merely changing the routines that perform the ADT operations. This change, would be completely transparent to the rest of the program.

Featured post

How to convert Java object to JSON or JSON to java object in java

Download Gson jar from this link  Quick Reference toJson() – Convert Java object to JSON Gson gson = new Gson ( ) ; <Java cla...