Image Blurring Effect Android
Here I share my image blurring code. We have to pass the bitmap of the ImageView that we have to blur out and radius should be in integer value 2,4,8....
It returns the Bitmap of blurred image.
Now a days w...
To open a url using Intent, first create a button on the layout. And set the onClickListener on the button and open the browser using implicit Intent, like below:-
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivit...
Step-1 Install Audit Trail module
Step-2 After that custmozie .py(Python file) file: In below example, I have custmozied .py file. You can directly copy the below python code in your .py file:-
from openerp.osv import fields, osv
from opener...
Application is in Forefround or background.
Here I write the code to know whether our application is in background or forground.
We use Application.ActivityLifecycleCallbacks interface and know status in onActivityResumed() and onActivityPaus...
App is in running state or not:
We can know the status (Running or not) of our application by using ActivityManager class and attribute ACTIVITY_SERVICE.
We just check our process name to compare with package name of the project.
Activit...
Accelerometer in unity means to take input from a device by tilting it along x-axis and y-axis and after taking the input transform the object accordingly. To achieve this we need to write few lines of code within update method. So that the input...
Hello All
In today's blog post we would discuss the aspect of registering your custom services with AngularJS.
It is essential to understand what are AngularJS services.
Services:
Angular services are objects that are packed together us...
"Different types of JIT Compiler"
JIT (Just In Time) Compiler is used to convert the MSIL code to the Native code, It is of following three types:-
1.Normal JIT:-
&nb...
To Create Access Control List in openerp below is the process
The Access control lists determine the general permissions (read, write, create, delete) on each object.
By default the superuser has all permissions on all objects.
If admin provi...
Salient features of Quality module:
1-Do a Quality check of the Module with the help of different different Criteria's like
Pylint, Speed Efficiency, Coding Standard, Guidelines and common practices used in OpenERP
2- Evaluate score in percent...
Hello reader!
If you want to set a custom error webpage for your whole cakePHP project you can set this page at
/views/layouts/default.ctp as layout for these error pages like 404/ page not found
To customize it and set your own message, o...
To Include only parent level class in OpenERP(Odoo) below is the method/code
In below example I have written Python script to Include only parent level class. You can directly use below python code in .py file :
def addMaterialsRecursive(c...
"Difference between Finalize and Dispose method"
Finalize and Dispose are the two methods provided by the .Net Framework for releasing the unmanaged resources like files, database connections etc.
Let us understand...
Overview of SQL : SQL is a scripting language for the database handling. SQL is called as Structured Query Language. SQL is used to handle relational database, we can create, update, delete, and fetch records from the database. SQL is a powerful...
If You want to get the list of all the files that are uploaded on your DropBox then use the following code :
method -(void)downloadAllData:(void (^)(NSMutableArray *, NSMutableArray *, BOOL))
block need to be called after the successful lo...
When accessing assets in the iPhone, some time users gets this error.
(Invalid attempt to access ALAssetPrivate past the lifetime of its owning ALAssetsLibrary)
so we can initialize our assetLibaray using the following code:
+ (ALAssets...
Hello Friends,
In My previous blog I have explained about Transpose feature of Excel- Move data from column to row and vice versa in excel.
Now, in this tutorial we will talk about Grouping Columns and Rows in MS EXCEL and Open Office Calc....
Hi guys,
So many times people search for how to create animated burger icon used for menu, that changes to cross on click.
Here I have written code for that using html, css and a very little javascript. where the 3 horizontal lines gets conve...
Hello Friends,
In this blog we will try to understand what exactly ADO.NET/ Entity Framework connection pooling is? And we will also go through some important points related to connection pooling. So lets start with few basic:--
What is con...
Eclipse has a behavior to suggest the list of methods that can be used with the class name or the instance variable of any class. This behavior works fine for few of the Java classes but for some other classes like DesiredCapabilities,etc., eclip...
When we write code and compile them,our class files are converted in to Dlls, and we assume them as safe. But those Dll files can be used for backtracking to your code,your application logic and your secret algorithms(If you have any).
What?Are ...
Hi,
Some times we need to upload files on a web server using HttpWebRequest.
For that first we need to define a model (class) that represents the uploaded file property.
public class UploadFile
{
public string Name { get; set; ...
Step-1 Install the avatax module.
Step-2 After that custmozie .py(Python file) file:
In below example, I have custmozied .py file. You can directly copy the below python code in your .py file -
profileNameSpace = ('ns1', 'http://avatax.av...
"Force a .NET Application to run as administrator "
While working on a .Net app, I got a requirement to make the app to run as administrator.
The solution I found is as follows:
Step 1: Create your .Net Applicati...
Step-1 Install the warehouse module.
Step-2 After that custmozie .py(Python file) file:
In below example, I have custmozied .py file. You can directly copy the below python code in your .py file -
class stock_warehouse(osv.osv):
_name...
Hii,
Below I have written a script for get the time duration of a MP3 file-
For this first you need to download the getID3, You can download form http://getid3.sourceforge.net/ OR https://github.com/JamesHeinrich/getID3/ .
After downloadin...
Hello, if you are using pagination with cakephp framework and want to change the view of pagination just like twitter bootsrap then you can do this by doing follow changes in you view and css.
We can do it by writing some custom classes in view ...
Hello...i am a newbie here.
First of all I am a designer and I learning my way into web development. Now I got a project to design and develop a dynamic website.
[b]Project Description:[/b]
A site where users can post and publish content rel...
"Difference between Float, Double and Decimal"
Float
Double
Decimal
Float is a 32 bit floating binary point data type, it represent a number like 10001.10010110011
Double is a 64 bit floating binary point d...
Hi all,
You can make your own custom attribute using data-. It allows possessive exchanged information between HTML and its DOM representation. It can work with javascript also, every browser will let you fetch and modify data- attributes usin...
As we know that the Hibernate API provide us to save, retrieve, update and delete data features, but it's not just that it provides more than that. In traditional database programming what we do to check the data is being modified, answer is that...
How to set sequences in openerp-7
If customer change sequences in invoice Basically ,
The Number you see on invoice is a sequence generated by OpenERP.
You can include some prefix, suffix etc to the number. According to this case, for each sit...
Below are the differences between Application context and Activity context
Application context and Activity context are the instances of Context but both of them are tied to different life cycles. Instance of Application context is tied to App...
Hi, While working in a Asp.Net MVC project, I am stuck in a issue that how to return an image from MVC Controller ?
The real senario is that I have to return an image among various images (that I have kept in the ...
Hello All,
In this blog we will discuss about how to enable ssl https in your cakephp application on the server.
You can enable SSL on live server by following these steps:-
1.In your core.php add/change the BASE_URL defination to https:...
To restart postgresql database in ubuntu
Run this command in terminal:-
step1- sudo service postgresql
step2- sudo service postgresql restart
use these command to restart postgresql service
To kill openerp server in openerp when this error occurs->
socket.error: [Errno 98] Address already in use
To kill the server of openerp
Run this below command in terminal:-
step1- ps aux | grep openerp-server
step2- kill -2 11141 ...
Step-1 Install basic module like below:
1-account_payment_extension
2-base_external_mapping
3- magento_connect
4-product_attributes
4-product_images_olbs
6-product_m2mcategories
7-sale_payment
Step-2 After that we have to customise...
You have to add a theme attribute in the Android manifest file under activity section. So that only that particular activity will become transparent.
After the above step, add background attribute to your layout file as shown below:
&l...
Purpose --
To overcome physical standby lag online using duplicate from active database. The standby lag is huge, “incremental from scn” backup size if huge & taking long time There is no enough disk space on the Primary/standb...
To update sequence to number and checks from the value encoded in the wizard, first we have to go in .py file (Python file) After that we have to decide where we want to update the sequence to number and then write python code to that field from ...
Hello Readers!
if you have a database table "users" which has a field "email". And you are looking for a query that fetch out every email field only which are not null in cakephp
Here is the following code below you can use, and its working ...
I want to generate 5 digit sequential serial number . For example: starting serial number must be 00000 then next will be 00001, 00002............. 00011 like this .
This blog will help you to send Push Notifications with Custom data to iPhone devices from server side where server side code is written in Java.
Follow the below code in order to send Push Notification:
Define the below dependency in your...
This session explains HTML forms, methods used by forms to send the data to server.
It explains GET and POST used to send data to server.
It explains Validations and basic security concerns in the forms.
A service is created by a service factory and service factories are functions which are created by a service provider(constructor function).
When instantiating service provider, there must be a property named $get, which holds service factory ...
This time I am here with a very small article about sending WhatsApp Message from your .Net application.
You need following things for that.
1-WART(WhatsApp Registration Tool)
This a tool with which you can get the password to be used in API...
Lets consider a task on hand , we need to add a contact us form which takes in few inputs from the user and on submission mails the details to the administrator. The requirement says that the mail should be sent using Gmail SMTP client. The solut...
Here is an simple example to add and delete list using angular ng-click
Html -
<div ng-app="nameApp" ng-controller="TitleCtrl">
<ul>
<li ng-repeat="name in names">{{name}}
<a href="" ng-click="removeN...