
Search In
All the content are treated as a simple text at when you send a text message using Python. Even if you include HTML tags in a text message, it will display as simple text and HTML tags will not be formatted according to HTML syntax. But Python provid
Hi all,
If you want to show dots if text does not fit UILabel frame. then just copy this code.
UILabel property "numberOfLines" is 1 by default. Try to set it 0 if you dont know the exact numberOfLines and use sizeToFit method of UILable.
yourLa
In python class statement creates a new class definition and The class has a documentation string which can be accessed via ClassName.__doc__. The class_suite consists of all the component statements defining class members, data attributes and functi
Description:
A variation of determining leap years, assuming only integers are used and years can be negative and positive.
Write a function which will return the days in the year and the year entered in a string. For example, 2000, entered as an i
View Encapsulation is a way that defines whether components styles will affect the whole application or not i.e it has control over usage of component styles, use styles globally or should be limited to a particular Angular component (scoped sty
If you want to generating basic view in Odoo follow this below step-
Step-1 Go to .xml file and generating basic view like below code.
<!--?xml version="1.0" encoding="utf-8"?-->
<openerp>
<data>
<record id="action_atten
Exceptions are the abnormal conditions which generated at the time any runtime error occurred.
To handle these exception is known as exception handling. The exception handling is done to maintain the normal flow of the program. In java there are diff
Sometimes, when we are working on CMS like Joomla, Drupal etc, we have such requirements for which we need to build our own component. On that component, we can add our logics for development.
Here are some basic steps to create you own Joomla compo
If a user want to flip his content or image on mouse hover using css3. He can use the code below.
In below example, we have two sided view.
HTML :
<div id="container">
<div id="card" class="shadow">
<div class="fro
If we are required to load products between two dates lest between previous month to current date.
lets see how we can load them in the function loadproduct()
public function loadproduct() {
    Â
    $first = date('Y-m-01', s
