Lakshmi Srinivas has Published 315 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

340 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

Why does a stray HTML end tag generate an empty paragraph?

Lakshmi Srinivas

Lakshmi Srinivas

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

68 Views

The official HTML documentation states that you need to create a element if the closing p i.e. cannot be matched with existing tag.The HTML4 DTD states that the end tag is optional for the p element, but the start tag is required.However, the SGML declaration ... Read More

Top frameworks for HTML5 based mobile development

Lakshmi Srinivas

Lakshmi Srinivas

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

135 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

94 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

80 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

39 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

498 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

How expensive are Python dictionaries to handle?

Lakshmi Srinivas

Lakshmi Srinivas

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

148 Views

dicts in python are heavily optimized. Creating a dict from N keys or key/value pairs is O(N), fetching is O(1), putting is amortized O(1), and so forth. You dont need to optimize them explicitly. You can be sure of this as python under the hood implements its own classes using ... Read More

What does the bitwise right shift operator do in Java?

Lakshmi Srinivas

Lakshmi Srinivas

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

242 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

655 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

Advertisements