Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

How to detect if caps lock is on/off

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

How to use search_count function in OpenERP(Odoo)

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.

How to use api.model in OpenERP(Odoo)?

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

How to delete records in OpenERP/Odoo ?

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

How to generate random number in Java?

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

How can we resolve conflict between prototype and jQuery?

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

How to Write Code in Recursive Version in Python for My Code

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))

How to block enter button for submitting the form using Javascript

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) {

How to integrate an autoresponder in Adobe Muse?

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

CSS content:“\00a0”

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

1 245 408
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: