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

Search In

How to find available user in live chat in OpenERP(Odoo)?

In below example, I have written Python script to find available user in live chat . If you are stuck in such case then directly copy below python code in your .py file: users = self.get_available_users(cr, uid, channel_id, context=context)

How to unzip a file uisng PHP

Hello Reader's!, If you have a zip file and you need to execute unzip the file using PHP, Then you can use the PHP liberary code below:- // Lets say you have zip file in the same folder of php file. $file = 'file.zip'; // get the absolute path to $

How to give output an image using PHP

Hello Reader's if you want to give output as an image then you can use the code below:- You can use finfo (PHP 5.3+) to get the right MIME type. $filePath = 'yourfile.ext'; $finfo = finfo_open(FILEINFO_MIME_TYPE); $contentType = finfo_file($finfo,

how to use Bitmap in Android

Below I have written the code for getting the Image using Bitmap in your Android App. Here we have passed two parameters in the method the first one is the Image View and second one is the url of the image that is to be shown on the image view. publ

How to set session varible in ZEND Framework

Hello Friends, If you are looking to save/fetch session variable in ZEND Framework. Please use the below code: // DEFINE SESSION VARIABLE $sess = new Zend_Session_Namespace('MyNamespace'); $sess->username = "you_name"; // define your value to sa

How to use Select query in ZEND Framework

Hello Guys, If you are looking to use "Select" mysql query in ZEND Framework. Please use the below code:: $dbObj = Zend_Db_Table::getDefaultAdapter(); $select = $this->select(); $select->from(array('users'),array('count(user_id) as id')); $se

How to use Order By in Zend Framework

Hello Friends, If you are looking to use order by clause in Zend Framework. Please use the below code for the same:: $dbObj = Zend_Db_Table::getDefaultAdapter(); $selectObj = $this->select(); $selectObj->from(array('tbl_users'),array('count(u

How to write custom mysql query in Wordpress

Hello Guys, Some time we need to custom mysql query. If you are looking to write custom mysql query in Wordpress. Please follow the code for the same:: global $wpdb; $sender_name = $wpdb->get_results("SELECT first_name,last_name FROM sender_deta

How to run mysql join in Codelgniter

Hello Friends, If you are looking for mysql join in codelgniter. Please review the code as below: // Initialize select query $this->db->select('*'); $this->db->from('users'); // Define join in last parameter define left join or righ

Check trannsparency of a given pixel in Image using C#

Many a times we come across to situations where we need to find out whether a given pixel in an image is a solid pixel or a Transparent Pixel. Here is how we can check that. We have an image property called alpha value which tells us about the transp

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