
Search In
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)
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 $
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,
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
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
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
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
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
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
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
