Featured
-
How Regression Testing Detects Integral Errors In Business Processes
Humans are forever changing and evolving and so to
by kristina.rigina -
Get Display Banner Advertising Opportunity on FindNerd Platform
“Do you have a product or service that nee
by manoj.rawat -
Android O Released with Top 7 New Features for App Developers
Android was founded by Andy Rubin, Rich Miner, Nic
by sudhanshu.tripathi -
Top 5 Features That Make Laravel the Best PHP Framework for Development
Laravel is a free open source Web Framework of PHP
by abhishek.tiwari.458 -
Objective C or Swift - Which Technology to Learn for iOS Development?
Swift programming language is completely based on
by siddharth.sindhi
Tags
How to open a Url using Intent
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...
How administrator track every user operation on all the objects of the system in OpenERP(Odoo)?
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
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
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
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...
Registering services using Service in Angular.js
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
"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...
How to Create Access Control List in openerp(Odoo)
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 in OpenERP(Odoo)?
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...
How to make custom error pages in CakePHP 2.0
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...
How to Include only parent level class in OpenERP(Odoo)?
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
"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...
Introduction to SQL
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...
Download Files Using DropBoxSDK in iOS
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...
Invalid attempt to access ALAssetPrivate past the lifetime of its owning ALAssetsLibrary
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...
Grouping columns and rows in Excel and Open Office Calc
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....
Designing Animated Burger Icon
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...
What is Connection Pooling in Enity Framework / Ado.net
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...
Auto completion not working in eclipse
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...
How to protect .net applications from reverse engineering
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 ...
Upload files with HTTPWebrequest (multipart/form-data)
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; ...
How to Build the customer Profile in avatax in OpenERP(Odoo)?
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...
How to force a .NET Application to run as administrator ?
"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...
How to use Stock Warehouse in OpenERP(Odoo)?
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...
Get the time duration of a MP3 File
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...
How to use Bootstrap pagination with CakePHP pagination helper
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 ...
Development Strategy
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 Data Types
"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...
How to make custom attribute in Html5 ?
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...
Versioning of An Object in Hibernate
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
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...
Activity Context and Application Context in Android
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...
How to return an image from Asp.Net MVC Controller
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 ...
Enabling SSL in CakePhp
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:...
How to restart postgresql database in ubuntu
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
How to kill openerp server in openerp
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 ...
How to integrate the magento connector in OpenERP(Odoo)?
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...
How to create a transparent Activity in Android
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...
Resolving physical dataguard lag online using duplicate database
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...
How to update the sequence of number and checks the value encoded on the wizard in OpenERP(Odoo)?
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 ...
Find where field is not null in cakephp
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 ...
want to generate 5 digit serial number in php
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 .
Send Push Notification with Custom Data to iPhone device from Java Server Side
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...
Form Handling in PHP - Tutorial 6
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.
Registering Service using value in angularJS
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 ...
Sending WhatsApp Message in .Net
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...
Using Gmail credentials to send mail in .Net application
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...
Remove/add list using ng-click
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...
How to sort a list items alphabetically using JavaScript
Hello All,
Working with HTML and JavaScript, many time we render html in our page with the help of JavaScript, like adding a list that has many list items.
To show that list in a alphabetical order (ascending or descending order) in our HTM...