Lakshmi Srinivas has Published 260 Articles

How to configure nginx with gzip module for compression on centos 7

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 18-Oct-2019 06:54:09

551 Views

In this article, we have configured Nginx which is already installed on CentOS 7 to serve the clients with gzip compression to reduce the size of the contents sent to the web site visitors. We can configure the websites to load faster which depends on the size of all the ... Read More

Top frameworks for HTML5 based mobile development

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 30-Jul-2019 22:30:22

267 Views

The following are some of the top frameworks for HTML5 based mobile development:1. Kendo UIUse Kendo UI to develop an invaluable cross-platform mobile application.2. BootstrapBootstrap supports HTML, CSS, and JS that allows developing mobile apps with responsive layouts.3. Ionic Ionic is open source framework used for developing mobile applications. It provides ... Read More

Upload directly to Amazon S3 using Plupload HTML5 runtime

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 30-Jul-2019 22:30:22

182 Views

Amazon S3 now supports cross-origin resource sharing so HTML5 uploads are now possible.Before it was not possible. Plupload can be directly uploaded to HTML5 by cross-origin resource sharing (CORS).With the help of CORS (Cross-origin resource sharing), rich client-side web applications can be created.It selectively allows cross-origin access to S3 resources ... Read More

CSS positioning related properties

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 30-Jul-2019 22:30:22

81 Views

The positioning related properties in CSS are:Relative PositioningRelative positioning changes the position of the HTML element relative to where it normally appears. So "left:20" adds 20 pixels to the element's LEFT position.Absolute PositioningAn element with position: absolute is positioned at the specified coordinates relative to your screen top-left corner.Fixed PositioningFixed ... Read More

HTML5 getCurrentPosition almost always failing in PhoneGap on iOS

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 30-Jul-2019 22:30:22

114 Views

PhoneGap has geolocation which works well for iOS, however, in IOS6, getCurrentPosition fires a failure callback. After failure, the getcurrentPosition calls success or failure callbacks. To let PhoneGap works on IOS6, we need to set PhoneGap.plist to No.If it is set to yes then ios6 have memory problems. However, Apache Cardova can ... Read More

How do Python Dictionary Searching works?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 30-Jul-2019 22:30:22

801 Views

Dicts are hash tables. No tree searching is used. Looking up a key is a nearly constant time(Amortized constant) operation, regardless of the size of the dict. It creates the hash of the key, then proceeds to find the location associated with the hashed value. If a collision listed address ... Read More

What does the bitwise right shift operator do in Java?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 30-Jul-2019 22:30:21

413 Views

The left operand value is moved right by the number of bits specified by the right operand.Example: A >> 2 = 15 means 1111.

What is the type of string literals in C and C++?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 30-Jul-2019 22:30:21

870 Views

In C the type of a string literal is a char[]. In C++, an ordinary string literal has type 'array of n const char'. For example, The type of the string literal "Hello" is "array of 6 const char". It can, however, be converted to a const char* by array-to-pointer ... Read More

Can constructors be marked final, abstract or static in Java?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 30-Jul-2019 22:30:20

2K+ Views

Except public, protected and, private constructor does not allow any other modifier. When you use a final keyword with a method or constructor it cannot be overridden. But, a constructor in Java cannot be overridden therefore, there is no need of using the final keyword with the constructor. Since ... Read More

What is the difference between super and this, keywords in Java?

Lakshmi Srinivas

Lakshmi Srinivas

Updated on 30-Jul-2019 22:30:20

726 Views

The this is a keyword in Java which is used as a reference to the object of the current class. Using it you can − Differentiate the instance variables from local variables if they have same names, within a constructor or a method. Call one type of constructor (parametrized ... Read More

Advertisements