Tuesday 6 December 2016

New SUSE Linux Enterprise 12 Service Pack 2 Speeds Innovation with Reliability

  SUSE releases SUSE Linux Enterprise 12 Service Pack 2




As enterprises worldwide seek greater competitive advantage and growth via open source technologies, SUSE® today unveiled SUSE Linux Enterprise 12 Service Pack 2 to power physical, virtual and cloud-based mission-critical workloads. The newest version of the world-class SUSE Linux Enterprise Server open source operating system, SUSE Linux Enterprise 12 SP2 will help customers accelerate innovation, improve system reliability, meet tough security requirements and adapt to new technologies. More than two-thirds of the Fortune Global 100 use SUSE Linux Enterprise.
“SUSE Linux Enterprise 12 SP2 has already earned rave reviews from partners and beta testers worldwide,” said Olaf Kirch, SUSE vice president of SUSE Linux Enterprise Engineering. “SUSE is committed to enabling customers to bring their state-of-the-art solutions to market faster by leveraging the latest technologies. They also need to run mission-critical workloads with maximum uptime and proven security. This latest version of SUSE Linux Enterprise helps them do both using all the advantages of open source software.”
Enhancements to SUSE Linux Enterprise 12 SP2 include:
  • Ten-fold increase in packet processing via software-defined networking that combines Open vSwitch with the Data Plane Development Kit. This is a key enabler for telecom providers to efficiently implement virtual network functions. Added to SUSE Linux Enterprise’s broad hypervisor support, the integration of DPDK gives customers a complete virtualization solution for cloud and on-premise deployments.

  • More agile support for SAP applications to ease migration to S/4HANA, accelerate deployment of SAP applications, tune SAP HANA for performance, and create a more resilient and secure SAP environment with enhanced support for SAP HANA clusters, even on geographical levels.

  • Reduced downtime and improved I/O performance through persistent system memory applications using integrated NVDIMMs that save data in seconds and make data immediately available on reboot.

  • Increased ability to implement cost-effective, high performance data analytics on IBM Power Systems LC and OpenPOWER servers, including bare metal support.

  • Time- and resource-saving “skip service packs” functionality, which lets customers skip upgrades of prior service packs and jump straight to SP2 from SUSE Linux Enterprise Server 12.

  • Ongoing FIPS 140-2 certification to meet strict security requirements of federal government, FISMA and financial industry customers.

  • Reduced downtime for large-memory IBM POWER-based systems via minimized memory initialization times for server restarts along with high availability and geo clustering support for IBM POWER.

  • Support for ARMv8-A, including enablement for the Raspberry Pi3, making SUSE Linux Enterprise Server 12 SP2 one of the first commercially available enterprise Linux platforms for this architecture.

  • Support for Intel’s scalable Omni-Path Architecture to deploy high performance computing workloads.

  • Simplified access to the latest packages and technologies via SUSE Package Hub integration with SUSE Customer Center, helping customers seamlessly obtain modules and package updates.

Input from partners including HPE, Intel and others have enabled building NVDIMM capability as an integral component of the SUSE Linux Enterprise Server 12 platform, allowing customers to benefit from early adoption. Scott Farrand, vice president of Platform Software, Hewlett Packard Enterprise, said, “Next-generation applications, especially database and analytics applications, require new levels of performance. Through close collaborative engineering, HPE and SUSE have enabled support for NVDIMM technology on SUSE Linux Enterprise Server 12 SP2, allowing customers to begin achieving and exceeding performance requirements for next-generation applications.”
Barbara Couturier, Lenovo director of Strategic Alliances, said, “SUSE Linux Enterprise continues to be a powerful foundation for the deployment of mission-critical services, benefiting our joint customers with maximized uptime and security on value-added Lenovo hardware.”
Enhanced solutions based on SUSE Linux Enterprise 12 SP2 include:
  • SUSE Linux Enterprise Server

  • SUSE Linux Enterprise Server for SAP Applications

  • SUSE Linux Enterprise Server for z Systems and LinuxONE

  • SUSE Linux Enterprise Server for POWER

  • SUSE Linux Enterprise Server for ARM

  • SUSE Linux Enterprise Server for Raspberry Pi

  • SUSE Linux Enterprise High Availability Extension and Geo Clustering for SUSE Linux Enterprise High Availability Extension

  • SUSE Linux Enterprise Desktop

  • SUSE Linux Enterprise Workstation Extension

SUSE Linux Enterprise 12 SP2 images are also available for public cloud infrastructures, making it easier to offer public cloud services and migrate to public cloud from on-premise environments. For more information about the SUSE Linux Enterprise 12 Service Pack 2 family of solutions, visit www.suse.com/server.

How to Issue WMI Queries from Linux

Querying Windows Management Instrumentation (WMI) to gather information about a computer is second nature on a PC for some. But working with it on Linux not-so-much. Here's what you need to know.
Credit: ShutterstockCredit: ShutterstockAt one time, a "Windows guy," a "Linux guy" and a "security guy" existed in separate silos. IT workers were split into various roles and rarely ventured outside of their role's responsibilities. Now the industry is starting to merge together. DevOps, anyone? So, it's becoming rarer for an administrator just to work with one operating system or one niche.
With this merge comes challenges and features of an administrator's operating system of choice may not exist or may not be as intuitive as one might expect. Windows Management Instrumentation (WMI) is one of those technologies.
To a Windows "guy," WMI is a fact of life. Querying WMI to gather information about a computer becomes second nature on a Windows computer. But attempting to work with WMI on Linux will soon put the brakes on any enthusiast Windows fan. But that needn't be the case.

Monday 5 December 2016

Hibernate Interview Questions Part 2

1.What is the difference between load() and get()?
load() vs. get() :-
load() get() 
Only use the load() method if you are sure that the object exists. If you are not sure that the object exists, then use one of the get() methods. 
load() method will throw an exception if the unique id is not found in the database. get() method will return null if the unique id is not found in the database. 
load() just returns a proxy by default and database won�t be hit until the proxy is first invoked.  get() will hit the database immediately. 

2.What is the difference between and merge and update ?
Use update() if you are sure that the session does not contain an already persistent instance with the same identifier, and merge() if you want to merge your modifications at any time without consideration of the state of the session.

3.How do you define sequence generated primary key in hibernate?
Using <generator> tag.
Example:-
<id column="USER_ID" name="id" type="java.lang.Long"> 
   <generator class="sequence"> 
     <param name="table">SEQUENCE_NAME</param>
   <generator>
</id>

4.Define cascade and inverse option in one-many mapping?
cascade - enable operations to cascade to child entities.
cascade="all|none|save-update|delete|all-delete-orphan"

inverse - mark this collection as the "inverse" end of a bidirectional association.
inverse="true|false"
Essentially "inverse" indicates which end of a relationship should be ignored, so when persisting a parent who has a collection of children, should you ask the parent for its list of children, or ask the children who the parents are?

5.What do you mean by Named � SQL query?
Named SQL queries are defined in the mapping xml document and called wherever required.
Example:
<sql-query name = "empdetails">
   <return alias="emp" class="com.test.Employee"/>
      SELECT emp.EMP_ID AS {emp.empid},
                 emp.EMP_ADDRESS AS {emp.address},
                 emp.EMP_NAME AS {emp.name} 
      FROM Employee EMP WHERE emp.NAME LIKE :name
</sql-query>

Invoke Named Query :
List people = session.getNamedQuery("empdetails")
       .setString("TomBrady", name)
       .setMaxResults(50)
       .list();

6.How do you invoke Stored Procedures?

<sql-query name="selectAllEmployees_SP" callable="true">
 <return alias="emp" class="employee">
   <return-property name="empid" column="EMP_ID"/>       

   <return-property name="name" column="EMP_NAME"/>       
   <return-property name="address" column="EMP_ADDRESS"/>
    { ? = call selectAllEmployees() }
 </return>
</sql-query>



7.Explain Criteria API
Criteria is a simplified API for retrieving entities by composing Criterion objects. This is a very convenient approach for functionality like "search" screens where there is a variable number of conditions to be placed upon the result set.
Example :
List employees = session.createCriteria(Employee.class)
           .add(Restrictions.like("name", "a%") )
           .add(Restrictions.like("address", "Boston"))
    .addOrder(Order.asc("name") )
    .list();

8.Define HibernateTemplate?
org.springframework.orm.hibernate.HibernateTemplate is a helper class which provides different methods for querying/retrieving data from the database. It also converts checked HibernateExceptions into unchecked DataAccessExceptions.

9.What are the benefits does HibernateTemplate provide?
The benefits of HibernateTemplate are :
  • HibernateTemplate, a Spring Template class simplifies interactions with Hibernate Session.
  • Common functions are simplified to single method calls.
  • Sessions are automatically closed.
  • Exceptions are automatically caught and converted to runtime exceptions.

10.How do you switch between relational databases without code changes?
Using Hibernate SQL Dialects , we can switch databases. Hibernate will generate appropriate hql queries based on the dialect defined.

11.If you want to see the Hibernate generated SQL statements on console, what should we do?
In Hibernate configuration file set as follows:
<property name="show_sql">true</property>

12.What are derived properties?
The properties that are not mapped to a column, but calculated at runtime by evaluation of an expression are called derived properties. The expression can be defined using the formula attribute of the element.

13.What is component mapping in Hibernate?
  • A component is an object saved as a value, not as a reference
  • A component can be saved directly without needing to declare interfaces or identifier properties
  • Required to define an empty constructor
  • Shared references not supported
Example:
Component Mapping

14.What is the difference between sorted and ordered collection in hibernate?
sorted collection vs. order collection :-

sorted collection order collection 
A sorted collection is sorting a collection by utilizing the sorting features provided by the Java collections framework. The sorting occurs in the memory of JVM which running Hibernate, after the data being read from database using java comparator. Order collection is sorting a collection by specifying the order-by clause for sorting this collection when retrieval. 
If your collection is not large, it will be more efficient way to sort it.

source:http://www.developersbook.com/
If your collection is very large, it will be more efficient way to sort it . 

6 More Great Linux Operating Systems For Netbooks

AntiX































AntiX uses the iceWM window manager which will help to keep the initial memory footprint low.

Whilst it may not look as stylish as a Ubuntu, Mint or Elementary it is fully functional. Basically what you lose in beauty you gain in performance.

For navigation purposes you have a taskbar at the bottom and icons on the desktop which has been fairly standard across operating systems for a large number of years.

The menu however can be pulled up by clicking anywhere on the screen which means you can get to your application of choice quite quickly.

There are 4 virtual desktops available which helps with the utilisation of space because you can have different applications open on different workspaces.

AntiX comes with a lot of applications and perhaps there are some of them that won’t necessarily fit well with a netbook. The one place I would recommend Abiword and Gnumeric over LibreOffice is on a netbook and that is purely for performance.

Most of the applications are lightweight such as IceWeasel for web browsing and the Claws Email Client.


SparkyLinux





























The version of SparkyLinux I tried had the Razor-Qt desktop environment and as with AntiX’s iceWM window manager the intention is clearly substance over style.

The look and feel of Razor-Qt is very traditional with a panel along the bottom and a menu in the bottom left corner.

SparkyLinux comes with a whole host of applications with almost too many too mention. Again the developers have plumped for the LibreOffice suite over the lighter Abiword and Gnumeric tools. GIMP is also installed for image editing which will eat up the memory.



Lubuntu






























In the original article I listed Xubuntu as a great operating system for netbooks but it’s LXDE based cousin, Lubuntu, is possibly even better.

The LXDE desktop is incredibly light and almost as easy to customise as Xubuntu.

The desktop is again a fairly familiar affair with a panel at the bottom with a menu and system tray icons.

You can however customise Lubuntu to look the way you want it to and so you can have multiple panels if you so wish.

The applications are very well suited to a netbook with the Sylpheed email client, the Firefox web browser as well as Abiword and Gnumeric.

The audio application is Audacious which is lightweight but functional and for watching movies MPlayer is installed.



OS4 OpenLinux





























OS4 is based on Xubuntu so in reality you are getting a fairly stock version of Xubuntu with a few tweaks in the choice of applications.

OS4 therefore uses the XFCE desktop which is great for customising and can work any way you want it to.

XFCE is also a lightweight desktop environment and so performs very well on a netbook.

With Xubuntu you will have to install the restricted extras package to get Flash videos and MP3s to play but with OS4 these things work straight away.

The office tools for OS4 include Abiword and Gnumeric. The browser is Chromium and Claws is the email client.

OS4 also comes with a Commodore Amiga Emulator installed so if you like to retro game on your netbook this is definitely an option.



Point Linux





























Point Linux is unique in this list because it is the only one that uses the MATE desktop.

The MATE desktop was initially forked from Gnome 2 but has grown to be a really good desktop environment in its own right.

Point Linux therefore looks very stylish. The menus look great and the performance on my netbook was really good.

As with the LXDE and XFCE desktops, MATE is highly customisable and so you can make it work for you the way you want it to. (Maximise display usage).

Point Linux has 4 virtual workspaces by default (can be increased) and so you can use these again to maximise the usage of your netbook so that you are limited by memory and processor power over display issues.

Point Linux has more powerful tools installed such as the VLC Media Player, the full LibreOffice suite, Thunderbird Email Client and Firefox for web browsing. I have tried this out on my Acer Aspire One D255 and they all work fairly well but you wouldn’t want too many of them open at one go.


Elementary OS





























If you want to try something really stylish on your netbook then look no further than Elementary OS.

The developers of Elementary have clearly spent a lot of time on design and it looks great.

I wasn’t sure whether to add Elementary OS to this list or not because when I tried it on my netbook it was a little sluggish compared to the other operating systems. This might have to do with the initial RAM usage when sitting idle.

Note that there isn’t an office suite when you first install Elementary but this means you can pick and choose the tools you want to use which I think is a good thing.

For web browsing there is Midori and the email client is Geary. Totem is installed for watching movies and the audio application is a nice little tool called Noise.
source:http://www.everydaylinuxuser.com/