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

Search In

How to put coma between hundreds and thousands of any given number

Hello reader's! On a given number format if you want it to be customize like a figure with separated by (,) like 128,347,556. By using a function and in the function we will Preg Match the string with every hundreds and thousands You can use the co

How to make download a file strictly in PHP

On the execution of exe file you must need the property of header like Description, Type and Disposition For making the strict/force download of a file in PHP you have to use the code below:- <?php $FileName = "http://abc.com/example.exe

How to extract a number from given string using PHP

Using the PHP will give you several benefit to use code what you want. And taking the number from any given string can be by diffrent - diffrent methods lets se the example below:- $myString = "I have 8 apples"; preg_match("|\d+|", $s, $myString); v

How to insert form data using Wordpress

Hello Reader's! If you are new to wordpress and looking for the method to insert form data into table, Then you can use the Wordpress liberary code to do that:- <?php global $wpdb; $wpdb->insert('wp_custom_user', array(

how to remove action name from URL in cakephp

Current URL is : http://mysite.com/MyController/view/page1 but if you want something like :http://mysite.com/MyController/page1 means you want to hide action name from URL. Then go to app/config/routes.php and type the below code. Router::connect

How to remove class in Jquery?

JQuery uses a built-in .removeClass() method to remove a class. For example: <div class="demo">Hello </div> To remove demo class in JQuery you need to execute the following code: <script> $( "div" ).click(function() { $( t

How to mapped the records in openERP/Odoo ?

If you want to mapped the records in OpenERP(Odoo) follow the below mentioned code and paste it in your (Python).py file: → # returns a list of summing two fields for each record in the set records.mapped(lambda r: r.field1 + r.field2) # returns a l

How to use low-level SQL in openERP/Odoo ?

Low level sql is the cursor for the current database transaction and allows executing SQL directly, either for queries which are difficult to express using the ORM For example you can take idea from below code- self.env.cr.execute("some_sql", param1

How to use selection method in OpenERP(Odoo)?

Its indicate no selection constraint in database. Selection must be set as a list of tuples or a callable that returns a list of tuples In below code i have explain search_read aselection = fields.Selection([('a', 'A')]) aselection = fields.Selectio

How to create a basic plugin using jquery

If you want to make a functionality that can be used anywhere in the code. For example, you want some method that can be called on the jquery selection and it can perform number of operations on the selection. For this, you can write a plugin. For e

1 293 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: