Friday, 31 May 2019

Tririga Getting Started

What is Tririga?

It's a product which manages processes related to the workplace, including people, locations, and assets.

Modules:

Tririga projects

Tririga projects generates higher results from your capital programme.

They improve

1. Environmental performance.
2. Financial performance
3. Operational performance.

Tririga operations

Tririga operations modules automate service delivery and maximize asset investment.

They improve

1. Environmental performance.
2. Financial performance
3. Operational performance.

Tririga Real state module

This module improves lease cashflow and reduces operational cost

It improves

1. Environmental performance.
2. Financial performance
3. Operational performance.

Facility management Module

This application improves space planning and increases facility utilization.

It improves

1. Environmental performance.
2. Financial performance
3. Operational performance.






Saturday, 25 May 2019

Difference between isBased on and IsInstanceOf Method


Rewritting in Customization

boSetRemote invoiceLineSett=invoice.getMboSet("invoiceline");MboRemote invoiceLineMbo=invoiceLineSett.moveFirst();

Yes/No/Cancel in Maximo Customization, Automation Scripting and Maximo Anywhere.


Maximo Scheduler Implementation Planning


Maximo Anywhere Upgrade planning highlevel steps


Maximo non base Language implementation Planning


Maximo Ldap implementation Planning


Java Interview questions

Interview questions Java

    1. What is Fail-Fast and Fail Safe Systems?
    2. What is the difference between Encapsulation and Abstraction?
       There are two objects a and b with same hashcode. I am inserting these two objects inside a hashmap.
    3. hMap.put(a,a);
      hMap.put(b,b);
    4. where a.hashCode()==b.hashCode()
    5. Now tell me how many objects will be there inside the hashmap?
    6. What is the difference between StringBuffer and String class ?
    7. What are Marker Interfaces ? Name few Java marker interfaces ?
    8. What are various types of Class loaders used by JVM ?
    9. What are RESTful Web Services ?
    10. What is a cyclic dependency ?
    11. What is reflection ?
    12. How are classes loaded by JVM ?
    13. What is the use of HashCode in objects ?
    14. What is a ConcurrentHashMap ?
    15. How is Hashmap internally implemented in Java ?
    16. What is a Servlet Filter ?
    17. What are the ways to get the values from list ?
    18. There are 8 balls, 7 weigh 100 gms, 1 is defective, there is a weighing scale, any number of balls can be measured at the same time. in how many attempts defective balls can be found out.

    19. serialization and deserialization of singleton class
    20. serialization and deserialization of singleton class
    21. what is volatile and atomic
    22. How many read and write operations are provided at the same time by ConcurrentHashMaps ?

    23. in the following class:
      class A {
      void methoda(Object o) {
      Sysout("Object");
      }
    24. void methoda(String s) {
      Sysout("String");
      }
    25. public static void main(String []args) {
      A a = new A();
      a.methoda(null);
      }
      }
    26. what will be printed?
    27. Explain Hibernate caching mechanism?
    28. Explain the difference between JDK, JRE, and JVM.
    29. What makes Java a platform-independent programming language?
    30. Would it be correct to say that Java is not 100% Object-oriented?
    31. What is a constructor in Java?
    32. Differentiate between a constructor and a method? Can we mark constructors final?
    33. What is a class in Java?
    34. State the significance of public, private, protected class.
    35. What is the final class?
    36. What is a wrapper class?
    37. What is an abstract class?
    38. Describe synchronization with respect to multi-threading.
    39. What is the purpose of garbage collection in Java, and when is it used?
    40. What are the different ways of implementing thread? Which one is more advantageous?
    41. What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?
    42. What is the first argument of the String array in main() method?
    43. What is a Java servlet?
    44. Describe the Life-cycle of a Java Servlet.
    45. Explain the Request Dispatcher?
    46. List the steps to connect to a database in java?
    47. What do you mean by a JDBC Driver?
    48. What is a Java applet?
    49. What is a numeric promotion?
    50. What is false sharing in the context of multi-threading?
    51. What are the methods used to implement for the key Object in HashMap?
    52. What is an immutable object?
    53. Differentiate between String Buffer and String Builder in Java?
    54. What is the difference between factory and abstract factory pattern?
    55. Differentiate JAR and WAR files
    56. What is a JIT compiler?
    57. What is the multi-catch block in Java? 
    58. What is Hashcode
    59. What is callable interface
    60. Where we use Hashcode?
    61. Why Hashcode?
    62. Explain types of design pattern
    63. What is factory design pattern?
    64. What is advantable of java serialization?
    65. What is serial no of serialization why we require it ?
    66. Can a static veriable be serialized?
    67. Can a transient variable be serialiazed?
    68. what is diamond problem
    69. what is spring IOC and types
    70. advantages of applicationcontext over beanfactory
    71. design patterns
    72. what is bean scopes and how global session scope works
    73. what is singleton
    74. lifecycle of a bean
    75. spring security principal
    76. spring cloud
    77. rest vs soap
    78. what  microservices and framework
    79. JAX-RS annotations
    80. spring annottaions
    81. what is ORM and JPA
    82. JPA annoations and how to access the data from table on the basis of columne name and order by using JPA
    83. what is spring authrorization
    84. oauth2.0 working
    85. what is work of dispatcher servlet
    86. what is work of view resolver
    87. how to handle the exception in spring
    88. if there are two @Controller advice in an application, then which one will be called - @Ordered
    89. git commands
    90. apache camel
    91. ways to implement spring security
    92. how to gain concurrency in spring
    93. how to check health of rest service..
    94. what is oops
    95. oops concepts in java
    1. set vs list
    2. set vs map
    3. treeset vs hashset
    4. internal working of set
    5. internal working of map
    6. stream api vs old java nested for loops
    7. polymorphism
    8. design patterns
    9. pizza problem- decorator vs builder pattern
    10. spring conttext
    11. spring scopes
    12. fetch type in hibernate - https://www.mkyong.com/hibernate/hibernate-fetching-strategies-examples/
    13. hashset vs hashtable
    14. spring mvc
    15. what is time complexity improvement in stream api of java
    16. what is generic types
    17. how stream api works and advantages of use
    18. jenkins
    19. maven
    20. hashcode and equals method
    21. program to count the frequency of char in a string
    22. spring cloud
    23. program to find the combination of no whose sum is 10 ()1,2,3,4,5,6,7,8,9)
    24. how the microservices communicate with each others
    25. what is microservices
    26. what is DI and ways to do
    27. when to use constructor based and setter based DI
    28. what is IOC in spring
    29. type of IOC
    30. applicationcontext vs beanfactory
    31. advantages of applicationcontext
    32. difference between lazy and early inalization
    33. IS A and HAS a realationship
    34. aggregation, composition aand association
    35. how index works
    36. What is the return type of compareTo Method ? What is comparable interface?

Thursday, 23 May 2019

Create Bootable drive commands



C:\WINDOWS\system32>diskpart



DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          931 GB      0 B        *
  Disk 1    Online         7633 MB  7632 MB

DISKPART> select disk 1

Disk 1 is now the selected disk.

DISKPART> clean

DiskPart succeeded in cleaning the disk.

DISKPART> create partition primary

DiskPart succeeded in creating the specified partition.

DISKPART> select partition 1

Partition 1 is now the selected partition.

DISKPART> active

DiskPart marked the current partition as active.

DISKPART> format fs=ntfs

  100 percent completed

DiskPart successfully formatted the volume.

DISKPART> assign

DiskPart successfully assigned the drive letter or mount point.

DISKPART> exit

Leaving DiskPart...

C:\WINDOWS\system32>

Wednesday, 22 May 2019

How to use Vlookup

Example formulae for vlookup is

=VLOOKUP(D4,'[OtherExcelFile.xlsx]OtherExcelFileSheetName'!$H$112:$I$120,2,TRUE)

here

D2 is column I am finding
H112 to H120 is records to search in
I112 to I120 is record rows which I have to bring.
2 is column I am referring to i.e I column here.


You can use match which is more easy than Vlookup for this task.

Getting started with Java Servlet

What is Java Servlet
Java Servlets are programs that run on a Web or Application server and act as a middle layer between a requests coming from a Web browser

Architecture

Request comes from browser to HTTP server and then to servlet.

Servlet process this request and interact with database and send response via same channel.






Servlets can be created using the javax.servlet and javax.servlet.http packages.

Methods of Servlet javax.servlet.Servlet Interface

1. Init()
2. Destroy()
3. Service()
4. getServletConfig()
5. getServletInfo()




Servlet API 

Servlet API cotains 4 package

1. javax.servlet
2. javax.servlet.http
3. javax.servlet.annotation
4. javax.servlet.descriptor


javax.servlet:- Contains classes and interfaces that define the contract between a servlet and a servlet container.
javax.servlet.http:- Contains classes and interfaces that define the contract between an HTTP servlet and a servlet container.
javax.servlet.annotation:- Contains annotations to annotate servlets, filters, and listeners. It also specifies metadata for annotated components.
javax.servlet.descriptor:- Contains types that provide programmatic access to a web application’s configuration information.



Tuesday, 21 May 2019

Maximo Anywhere Getting started

1. Introduction
IBM Maximo Anywhere provide a set of resources for building and deploying mobile apps.
These mobile apps allows worker to work online and offline.
These mobile apps run on Android, IOS and Windows.
Online
During online the worker is connected and data is synchronized in real time.
Offline
During offline the app is disconnected and data is stored in device locally and get synchronized once worker comes online.
Maximo Anywhere is based on mobile first architecture.
Mobile first is a platform that provides components to manage mobile application lifecycle.
List of Maximo Anywhere mobile applications:-
1. Asset Audit.
2. Data Manager
3. Inspection
4. Work Execution
5. Work Approval
6. Physical count
7. Transfer and Receiving
8. Service Request
9. Issue and Return
Integration of Maximo Anywhere and Maximo is based on Open Service for Lifecycle Collaboration (OSLC).
What is OSLC
It is a Open Community framework which has certain specifications. OSLC is build on RDF i.e Resource description framework for enabling integration at data level via links between related resources.
Here the data is represented in the of resource and accessed via URL’s
Benefits of OSLC
1. No Vendor Lock-In.
2. Database Independent.
3. Widely Adopted standards.
Versions
1. 7.5
2. 7.6.1
3. 7.6.2
4. 7.6.3
Perquisite
1. Maximo
2. Chrome
3. Eclipse
4. Mobile First Server.
Maximo Anywhere applications :-
Asset Audit App:-
Users can view assets to be audited and mark assets as audited.
Asset data Manager App:-
Users can create assets, Change asset status, enter meter readings.
Asset Inspection App:-
Provide list of asset that need to be inspected.
Issue and Return App:-
User’s can issue and return items.
Physical count App:-
It is used for counting inventory items.
Service Request App:-
Used to create Service Request.
Work Approval App:-
Used for Approval of Workorder. Here user’s can view cost, schedule and asset history.
Work Execution app:-
Users can view tasks, report actuals etc.
Transfer and Receiving:-
. Users can transfer inventory items or tools between storerooms.


IBM Worklight

IBM Worklight is a mobile application platform containing all of the tools needed to develop a mobile application.

We develop mobile application here using hybrid way.

Components of IBM Worklight

1.       Workligh Studio :- IBM Worklight provides a robust, Eclipse-based development environment called Worklight Studio.

2.       Worklight Server: This component is a runtime server that activates or enables secure data transmission through centralized backend connectivity with adapters.

3.       Worklight Device Runtime : The device runtime provides a rich set of APIs that are accessible across platforms and offer easy access to the services provided by the IBM Worklight Server.

4.       Worklight Console : Worklight Console is a web-based interface and is dedicated to ongoing administration of Worklight Server and its deployed apps, adapters, and push notification services.

5.       Worklight Application Center: This is a cross-platform mobile application store that fulfils specific needs for mobile application development teams.

     One can view app.xsd for checking definition of app.xml
     Location of app.xsd is .\Anywhere\lib\codegen\artifac-processor-7.5.2.jar\app.xsd



Monday, 20 May 2019

How to delete a folder you are not able to delete to due to long path.

ExampleC:\Very long path.... to be deleted you can use the command

Go to path and enter

subst x: .

here . is current directory.

and then you can delete X:\Very long path.... going in x drive.

subst x: /d

Friday, 10 May 2019

Websphere Useful commands

WebSphere Useful commands

Checking server status

 profiles\appProfiles\bin>>>>>serverStatus.bat -all -username wasadmin -password waspassword


Sequence for Stopping

StopMngr.bat

StopNode.bat

StopServer.bat

Python Useful programms

For Loop

names = ['John', 'Jerome', 'Paul']
for m in range(len(names)):
    print(names[m]);
    m=m+1;
   
  While Loop

names = ['John', 'Jerome', 'Paul', 'George', 'Andy', 'Michael']
i = 0
while i < len(names):
      print(names[i])
      i += 1

Get Information about Interface

import collections
print(collections.__doc__); Variable Number of Arguments

def manyArgs(*arg):
  print("I was called with", len(arg), "arguments:", arg)
manyArgs(1,2,3) def manyArgs(*args):
  result=0;
  for arg in args:
    result+=arg;
  return result;
print(manyArgs(1,2,3)) # Hello World program in Python
import datetime,time
def welcome():
    print("Hi How are you" +str(datetime.datetime.now()));
    print("Hope you are having a great day");
    print("Welcome to python");
    time.sleep(1);
welcome();
welcome(); Checking value in a array # Hello World program in Python
names=['Anil','Ram','Rakesh','Shan'];
if 'Anil' in names:
    print("True");
else:
    print("Flase");
Regex example of Python #regular expression example
import re

orRegex=re.compile(r'c(ricketer|lass|ollege)');
mo=orRegex.search('My name is Rahul dravid, I am cricketer i love  Movie');
print(mo.group())