
Search In
Hello Reader's, If want to make alert when the upper/lower case letter key is pressed. Then by using Javascript you can see it in the code below:-
$('#cap').keypress(function(e) {
var s = String.fromCharCode( e.which );
if ( s.toUpperCase
In the search_count function returns the count of results matching search domain:
In below code i have explain search_read
self.search_count([('is_company', '=', True)])
Note -with the help of this code we retrieve all adress.
Api.model will convert old API calls to decorated function to new API signature. It allows to be polite when
migrating code.
The below code you can use in your .py file .
@api.model
def afun(self):
pass
Note- Model.api will automatically convert it
Records can be deleted in bulk by providing their ids to unlink().
For example code like below.
models.execute_kw(db, uid, password, 'res.partner', 'unlink', [[id]])
check if the deleted record is still in the database
models.execute_kw(db, uid, pas
Sometimes we need to generate random numbers to identify an entity uniquely.
We can generate random number very easily by the below code:
/**
*
* @return a random confirmation code.
*/
public int generateIntRandomNumber()
{
Random generato
To resolve a conflict between jQuery and prototype, use below method
jQuery.noConflict
and using jQuery instead of
$('code').code;
jQuery.noConflict();
jQuery(function($)
// $ is the jQuery object in here
// and doesn't conflict with Prototype
def sub_lists(list1):
sublist = [[]]
for i in range(len(list1) + 1):
for j in range(i + 1, len(list1) + 1):
sub = list1[i:j]
sublist.append(sub)
return sublist
l1 = [1, 2, 3, 4]
print(sub_lists(l1))
Hello Reader! If you want your html form that block the pressing action of enter button and accept only submit button then you can see how its working in the example below :-
$("FormSubmit").bind("keypress", function (e) {
if (e.keyCode == 13) {
Hi,
Recently, I've built my first landing page in adobe muse but when I was about to finish, I realized that if I insert
the HTML code for my email autoresponder using "object >> insert HTML", then there is no way to modify or style my opt-in

Hey there!
Today, while using Bootstrap breadcrumb, I came across something which I never did see before. The syntax is given as under :
content:"\00a0";
I was using Bootstrap breadcrumb and I found the above syntax there. The entire CSS
