Hello Friends,
Some time we need some functionality before execution of our controller function or after execution of controller. For example you need to check a user is login or not before execution of any controller. Codeigniter hook is a ve...
To get the full date with time you can use the below code. You can pass any date that you wan to change, I'm getting date in full date format in the below example:
/**
* Get full month day year format from Da...
equals() and equalsIgnoreCase():
Both are used to compare two strings for equality and both methods are of String class.
equals() general form:
boolean equals(Object str)
It returns true if the invoking string and the string passed ...
In OpenERP first we create users and then validate to the trigger. Users register then status will not be sent if not necessary. In usres form type is user_presence.
Use this function show in given below
def updates(self, user_presence=T...
Hi,
Committing is a way in GIT, that adds changes to the repository history and assigns a understandable commit name to it. If by mistake one added a wrong commit message and want to edit it, he can use the below command:
git commit --ame...
In OpenERP notifyChannel API shouldn't be used anymore because API is used to connect to other framework. OpenERP provide the logging module instead and it is used for any one in OpenERP server.
Use this funtion given below
def notify...
In OpenERP rpc help to change the post, like user want to excute two server in same systems then use rpc and change port number of other server. Basically rpc is used to run server in local systems.
Use this function given below
def rpc(s...
In the below example I have created a simple chat app . Here first I have added ListView , TextView , EditText and Button in activity_main.xml layout. After then I have created two new layout left.xml and right.xml , In both layout I have a...
Sometimes we need to find whehter the zip file contains valid files or not. Suppose you have a zip file which contains multiple file you want to upload that zip file only if it contains files having extension jpeg,jpg,png,gif,tiff only, so we can...
ViewData in Asp.Net Mvc application
ViewData is one of the property of ControllerBase class.
It is described as dictionary object whichis derived from ViewDataDictionary class.Thse syntax of it is as follows:-
public ViewDataDictio...
ereg_replace()
ereg_replace() function is used to replace regular expression case sensitive.
Syntax of ereg_replace() is:
string ereg_replace ( string $pattern , string $replacemen...
To create slider with angular UI, carousel is used as it is same as bootstrap's image carousel. But It also supports swiping in the touch devices. ngTouch is used to enable the swiping in the touch devices. We have to load ngTouch module as a...
Sometimes we need to insert valuse in an array, we can do this by using push() method of jQuery very easily.
Example
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-...
How to integrate progress bar with Angular UI:
To use progress bar in angular, you need to include the following code in your controller:
Syntax:
<uib-progressbar value="" max=></uib-progressbar>
It has attributes like m...
What Is Grey Box Testing ?
‘Grey Box’ testing is a testing approach which is executed with the restricted information or intelligence around the inner utility of the application or software.
The testers who perform this testing ...
Hello Reader's!Sometime you want to use the auto complete as a text suggestion on your search field. Here I am going to explain how you can search city with suggestion.
It's a very simple to use in any application.
First you need to u...
Its really easy to create a login form by using cake php, for creating a form a user have to mention its type,action or url for pointing the form to the login() action to the controller, user would supply array like this. And for further fields t...
How to change the Magento Admin URL / Path: By default url to the magento admin panel is www.yoursite.com/admin but If you want to change Magento admin login path, then you have to change the front name in local.xml file (app/etc/local.xml).
...
This tutorial will help to setup front-end form validation for reset password form using jQuery validate() in a short time. This tutorial carries very basic and clear instructions to help anyone in implementing some validation on their reset pass...
The Initializer Block in Java
The initializer block in Java contains code which is executed whenever an instance of class is created therefore this block contains common part for various constructor of a class. The order in which constructor a...
About Google App Engne
Google App Engine applications are used to create data storage. We do not require to maintain servers with App Engine. We just need to upload applications and can access the site from the web.
How to Upload Video? Wri...
Consider definition of int main():
int main()
{
return 0;
}
Consider definition of int main(void):
int main(void)
{
return 0;
}
The above two definition work perfectly fine in C but the difference between two...
Hello Reader's if you are looking to desing the multilaunge website then codeigniter offers you to do this with very easy steps. First learn what is multilanguage website.
A multilanguage website is which can run in any langauge ...
Hello Reader's, if you are making the website in which you want to redirect the user on the same page after the user login. Then you can learn it from this blog.
For example if a user hit 'my profile' without making the l...
Hello Reader's if your making the parent child relationship then this blog is very helpful to you. Here we are making parent child tree by using the Iteration functions. The output of this will a tree which showing the childs on branches and ...
Hello Reader's, If you having a multidimensional array from which you only want a single key values column then this blog is helpful to you.
Let consider a array with full of key values:-
$exArray=array(
array(...
memcpy()
This method as the name suggest memcpy() i.e memory copy is used to copy a number of bytes i.e a block of memory from one location to another location.
Syntax of memcpy():
void * memcpy(void *to, const void *from, size_t numBy...
#include <iostream>
using namespace std;
// Returns true if x is in range [low..high], else false
bool inRange(int low, int high, int x)
{
return ((x-high)*(x-low) <= 0);
}
int main()
{
inRange(10, 100, 25)? cout &...
Hello all!,Nowadays everyone wants that their website visited by every users in every countries and this can be possible with make your website multilingual, so in this blog I am going to describe you how to make your website multilingual.
Fir...
In the below Example, I have created a stylish login page. Here I have design first login activity_main.xml layout here I have added FrameLayout, LinearLayout, TextView, EditText and Button. Now In MainActivity I have used ViewCompat.animat...
In the below example I have Created a Popup function, so when we will click on CardView it shows Popup on our screen and when we will click outside popup then automatically popup window will close.
For this First I have added I have added...
The use of a planning tool is an imperative, especially when aiming to bring project success and effective task management. Mind mapping is a technique that is greatly appreciated and widely used, especially when approaching the project planning ...
Estimation is a crucial feature which collaborate with every project. The same point cooperate to the testing assignment and also testing team or qa team that how many time do they needed to perform the testing operations.
For any pr...
In SharePoint, each project has its own tasks, assignments, team members etc.While creating projects in SharePoint we have to also create its tasks, assignments, team members and custom fields.
Here below is the sample code for creating tasks ...
Hi friends
Please help me, how can we overwrite or replace existing SQLite DB in android automatically, I tried with change dbversion but still not getting new DB. how can overcome this. please help me.
1) To create notification UI content and action we make use of NotificationCompat.Builder object and Builder object must include the following:-
Small icon that would be shown when your notification will arrive at your device and it i...
Hello Friends,
To create an array of dates between two dates you may use the following code:
1.Create an NSMutableArray
NSMutableArray *datesArray = [NSMutableArray new];
2.Set the date formatter according to your requi...
To collapse table header in swift ->
1. Make a property of NSMutableSet, name it "collapsedSections", this property will be use to check Collapsed section in the UItableViewCell.
var collapsedSections:NSMutableSet =...
Hi,
I'm working on a project in Adobe flash & as per project's requirement I have to use the Button symbol with dynamic effects.
I had worked on Movie clip symbol & Graphic symbol in flash but never used Button sym...
text
This attribute is used to set or return the text content of the elements which are selected. HTML markup is removed when this attribute is used to return text content i.e returns that text content that can be displayed in the browse...
Hello Readers, Here is small example which will explain how to hide prices and ‘Add to Cart’ buttons for non-logged users in Magento.
Hide prices in all pages:
Go to Current theme (Path: app/design/frontend/currenttheme/default/te...
$(“div[id*='box']”) in jQuery
The above expression mean selecting all div elements whose id attribute contain box word anywhere like firstbox, secondbox, box1, box2, middleboxexample etc.
Program to demonstrat...
$(“div[id$='box']”) in jQuery
The above expression mean selecting all div elements whose id attribute end with box like firstbox, secondbox etc.
Program to demonstrate above expression:
<html lang...
The foundation of "credibility" is "credo," which signifies "I accept" in Latin. Put essentially, credibility is the sentiment trust and regard that you motivate in others.
No single thing makes credibil...
In OpenERP first we create the product and then calculates the quantity of product. In product form picking Id is generated and picking id will return to the value of this product and then product will calculated automatically in stock.
U...
Hello Friends,
If you are looking to install in Codelgniter. Please review the below process:
Step 1 :: Download Codelgniter from "https://www.codeigniter.com/download"
Step 2 :: Unzip this folder and place this on root folder
...
Hello all,
Every time you see some graphic emoticons in comment they look like sad, funny, jolly, naughty. With the help of this blog you can add these emoticons in your project.
Here I am using emoticons plugins Basically it replace your sim...
In OpenERP first create delivery address in delivery form and then we need to define a partner for the brand of the product and also dedicated_delivery_address stand for the case a new type of address. In stock form move all the delivery address ...
Hello Friends,
When we are working on Codelgniter the URL in the browser appear with index.php generally, the URL appear like ::
"http://localhost/codelgniter/index.php/app/setuser"
and we would like to see this as
...
In OpenERP first create the users and then users is retrieve an active resource of model res_users with the specified login. When users login in web page then verify all the rights and authentication. If users rights and authentication both is fi...