Chandu yadav has Published 1226 Articles

Why python for loops don't default to one iteration for single objects?

Chandu yadav

Chandu yadav

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

91 Views

Python cannot iterate over an object that is not 'iterable'. The 'for' loop construct in python calls inbuilt functions within the iterable data-type which allow it to extract elements from the iterable.Since non-iterable data-types don't have these methods, there is no way to extract elements from them. And hence for ... Read More

Raise the Mobile Safari HTML5 application cache limit?

Chandu yadav

Chandu yadav

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

419 Views

Application cache on Safari has no limit on storing data, but for mobile Safari the rues are different.The upper limit is 5MB.On mobile safari, the local storage and session storage are 5MB each. On WebSQL, a user is asked for permissions but you cannot store data any more than 50MB.With ... Read More

HTML5 and Amazon S3 Multi-Part uploads

Chandu yadav

Chandu yadav

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

149 Views

Yes, it is possible to use the HTML 5 File API with the Amazon S3 multi-part upload feature. You would need a server backup as well as Amazon API keys.Amazon S3, a web service offered by Amazon Web Services provides storage through web services interfaces. Amazon launched S3 in 2007.Create ... Read More

Commonly used pseudo-classes in CSS

Chandu yadav

Chandu yadav

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

524 Views

Following are some of the commonly used pseudo-classesValueDescription:linkUse this class to add special style to an unvisited link.:visitedUse this class to add special style to a visited link.:hoverUse this class to add special style to an element when you mouse over it.:activeUse this class to add special style to an ... Read More

What is the homogeneous list in Python list?

Chandu yadav

Chandu yadav

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

842 Views

There is nothing like homogenous list in Python. The python docs just suggest to use lists for homogenous data. Qouting the docsLists are mutable sequences, typically used to store collections of homogeneous items (where the precise degree of similarity will vary by application).You can very well use lists for heterogenous data ... Read More

What is possible key/value delimiter in Python dictionary?

Chandu yadav

Chandu yadav

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

297 Views

You can use any hashable object like int, string, etc as a key in a python dict. You need to separate it from the value using the ':' delimiter. The value can be any type of object. Consecutive key value pairs must be separated by a comma.

Advertisements