
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 can use Encapsulation in android
Encapsulation is a process of wrapping code and data together into a single unit. Encapsulationis used to bind method and variables(data). Below is my sample code to demonstrate Encapsulation in java, in this first I have created food class and f...
How to make Tabs ViewPager with the using Fragments in android
In the below example I have created a Tabs ViewPager by using three fragments. Before creating layout firstly I have added design libraries in the dependencies section of build.gradle file. Then I have created three fragments layout, in this I ha...
Built in Objects in ASP.NET
ASP stands for Active Server Pages. By using ASP built-in objects, we can get the information related to the web server, web pages in the web application etc. the built-in objects are categorized according to the information it contain.
Follow...
How to implement blowfish hashing for passwords encryption in CakePhp
Whenever you make registration form in Cakephp all you need to do is to make various field for username , email, password, gender etc etc... If you are inserting these values in the database then you should know that you should encrypt your passw...
How to check model level groups in OpenERP
In OpenERP first we create groups in res.partner object. Then the ` parameter effectively restricts access to that field for users who do not belong to one of the explicitly allowed groups. Field decimal_places must be found in view definition be...
Object Oriented Concepts in Php
Object Oriented Programming
Object Oriented Programming, or OOP, refers to the method of programming that invokes the use of classes to organize the data and structure of an application.
Object − Object is an instance of class. ...
Adding Route In GoogleMap
Hi All,
If you want to show path between two points then you have to add the path or route between that two points. Generally route is also a polyline but it is proper path followed by a person or any vehicle to travel from one point to anothe...
How to Add watermark in Image using PHP
Hello Reader's!Sometime you see watermark on image like trademark and company logo, so questions is that how you can do this?
Today in my blog i am going to explain how you can create image with trademark using PHP.
create index.php...
Responsive menu
hii,
i am sharing a simple responsive menu code i.e html and css which you can use whenever you want to create a responsive menu.
HTML:
<div id='Responsivemenu'>
<ul>
<li class='first'><a href='#'><span&...
How to add Google reCAPTCHA in your Form.
Hellow Reader's! In this blog, I am going to explain about Google reCAPTCHA and How you can protect your website from spam and abuse with the help of reCAPTCHA.
reCAPTCHA offers more than just spam protection.reCAPTCHAs are absolutely vital ...
How to make AJAX call in jQuery?
Sometimes we need to make AJAX call in our Web page. The purpose of AJAX call is that you want to get/submit data without refreshing your page or you want to submit your form by calling an API. We can do this very easily by using ajax() method of...
Check two Linked Lists are Identical or not
Program to demonstrate two Linked Lists are Identical or not.
class LinkedList
{
Node head; // head of list
/* Linked list Node*/
class Node
{
int data;
Node next;
Node(int d) { data = d; next = null; }
}
/* Re...
Ubuntu 14.04: How to install LAMP with one command?
LAMP full form is Linux Apache Mysql PHP. To install LAMP with one command on Ubuntu 14.04 just write the following command:
First refresh your package index...
$ sudo apt-get update
Now install the LAMP stack:
 ...
How to export combine animations of two characters?
Hello Guys!!!
I am working on an endless running 3d game project using 3ds Max. I have 2 characters. one of them is a small kid character and another one is a security guard.Both have separate files containing their animations.
I have c...
How to do AJAX cross domain calls ?
I was facing issue to post data by a form to foreign domain. I am aware of "AJAX cross-domain policy". So we just can't call "http://yahoo.com" over ajax http request and display the results on my page. So after researchin...
Automatic Storage Class in C language
Automatic Storage Class used in C for the use of defining the different values by a same name in a program, User will use this value through C language program control method. Auto keyword is used for Automatic Storage Class, when a user de...
Selecting Multiple Images in Phonegap Application
If you want to select more than one images at a time in phone gap application, you can use the plugin cordova-image Picker. It allows you to select multiple images and also provides the properties for setting maximum images and changing the size ...
Using Left Outer Join in LINQ
We use left outer join when we want each element of the first collection should be fetched irrespective of whether it has the related element in the second collection or not. In LINQ, we perform left outer join by calling Defaul...
Cakephp 3.0: How to add admin prefix ?
When I was new to cakephp 3.0 then I faced issue adding admin prefix. In Cakephp 2.* it was simple, just write the following lines in core.php:
Configure::write('Routing.prefixes', array('admin'));
To enable cakephp 3.0 just write the fol...
How to communication between an Activity and Fragments in android
In the below example I have created a commuication between an activity and fragments classes. In the below example user enters name in SendFragment part and click submit button then in second fragment on displayFragment show user name input resul...
How to create a new partner tag in OpenERP
In OpenERP first we install human resources module and then create a new partner in partner form. Manage partner tags to better classify them for tracking and analysis purposes. A partner may have several categories and categories have a hi...
How to add a contact in your address book in OpenERP?
In OpenERP first we create the view in .view file. then install to the human resource module and configure it and then we can easily track all activities related to a customer: discussions, history of business opportunities, documents.
Use thi...
.htaccess: How to do Apache gzip compression?
I am writing this blog, which will provide you help to compress files with the help of .htaccess file.
When Gzip Compression is enabled on your web server then it will make the file sizes smaller. This will load your website faster. When...
How to create UINavigationController Based Application in iOS
The UINavigationBar class provides a control for navigating hierarchical content. It’s a bar, typically displayed at the top of the screen, containing buttons for navigating within a hierarchy of screens. The primary properties are a left (...
Change the color of Switch
In android, switch is the toggle widget that has two states to select two options.
User can simply click to toggle or drag back and forth to select the option.
Here, I am changing the ON color of the SwitchCompat. SwitchCompat is the versio...
How to limit DEX memory usage
Sometimes we are getting errors of shortage of memory at the compile time.
We get such type of error:
Exception in thread "pool-1-thread-2" Exception in thread "pool-1-thread-3"
Exception in thread "pool-1-thread-4" java.lang.OutOfMemo...
How to Save data using cakephp
CakePHP will save model data as a snap to your database, User's Data will be ready to be saved in database it should be passed to the model’s save() method using this, in the giving format below. This is Controller action that uses a Ca...
Popup in Magento
If we are required to show a popup in our Magento page for say we want to show the details of the product from the list of products in a popup we can do it using Magento 1.9.x features.
In Magento 1.9.x we have window.js file, the file ca...
How to install & uninstall MYSQL in ubuntu
Firstly, you need to remove the current MySQL if you are already using:
$ sudo apt-get purge mysql-client-core-5.5
Now, to install MySQL, by running the following commands in terminal:
$ sudo apt-get install mysql-server
$ sudo ap...
TextView to have Web links, email address and phone number actionable
There is a property in text view to have web links, email address and phone number to make them as hyper link and actionable.
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
androi...
Convert String to NSData and NSData to String Swift
Hi All,
In coding we have secure some information while we are sending it to server and vice versa ,In this case we use encoding and decoding . You can encode your information by using any method of encoding and when you will receive informati...
How to create Fragment Communication in android
In the below example I am describing "how to communicate fragments"?, fragment is a part of Activity in android. In one Activity we can use multiple fragment easily and each fragment have it's own functinality. Without activity we c...
jQuery Slider in Magento
In Magento 1.9 new RWD theme have its own jQuery Slider. Using the same slider cycle we can add slider in our page. We can find the jQuery slider coder in this path skin>frontend>rwd>default>js>slideshow.js,
...
when to use float property
First of all what does float property really do basically the css float property lifts an element up from the normal content flow and shifts it to either the left or right edge of the page, where it hovers or floats above other content. Any...
Procedural Generation
Procedural !! is the word.Have you heard it before? Have you heard about Procedural generation?
Yes or No what ever your answer is, But this term blows my mind out and make me curious and to think about it.
So i have done some research on i...
Logging using log4net
Log4net is an open source library that allows .NET applications to log information in many ways. Here we are going to see an example for logging in a file.
Few steps to follow to log in a file:
1) Add log4Net dll in the ...
How to convert image into base64 string using javascript
Here is the example that shows converting an image file to base 64 string code. It can be done by the canvas method.
HTML5 provides the canvas tag that is used to draw a canvas.
For converting an image file to base 64 string you need to creat...
Difference between Readonly and const keyword in C#.
Const keyword
Const variable in C# are compile time variable i.e value is known at compile time.
The assignment to const variable is only done at the time of declaration and this value of variable remain constant throughout lifetime of th...
Show magento featured product in homepage using category
Some times you need to show featured product in magento home page. So, In this blog post i am going to tell "How to display magento featured product in homepage". For a newbie, it is not easy task to add featured product but here is eas...
How to eliminate render-blocking CSS?
I was facing issue related with speed optimization of the web page. When there are many css on a single page, or have large size of css file then it makes your website slow. I am using Google PageSpeed insights to improve my site's performanc...
Readonly keyword in C#
Readonly keyword
Readonly: Readonly is a keyword which when used with a variable then the value of that variable can only be changed either at runtime or at the time of the instance initialization. The value is assigned to these variable whe...
Magento product views count
Hello Readers, Here is a small example which will explain how to show product views count in magento.
Add below line of code in view page:
Path: app/design/frontend/default/currentheme/template/catalog/product/view.phtml
<?php
$id ...
Mysql: Compare two columns word and print total common words count
I am posting this blog because I was facing issue to show the total common counts in 3rd column from two columns. This is following table which contain these records:
|==========title=================|======title================|
|...Cat Do...
Cakephp 3.0: How to read and write Session
How to read and write session:
Yes this is the basic question in which I got stuck when I was new to cakephp 3.0. I tried to find out the answer through google, stackoverflow and I finally found the answer to it. In order to read and write ses...
PHP CURL: How to Crawl multiples pages in a loop
How to crawl many pages at one page hit:
I was facing issues for getting the data from multiple urls by loop. The problem is that in the first loop I was getting the data by function Cron, but when second page was called by Cron function then ...
SQL: How to display all the records related to common id
I was stuck in the following issue. Issue was related with retrieving common records in group. I have to display records which are common with each id.
Following records are inserted into the table "mytable":
id | ti...
How to change session expiration time in codelgniter
Hello Friends,
Some time this is project requirement to update session expiration time, If you want to update session expiration time in codelgniter framework. Please open "codelgniter/application/config/config.php" and update the co...
How to store multiple checkbox values in one column in a database in cakePHP?
For storing the multiple values in the database through check box, when a user select multiple choices,that selected value will be shown in database For Example a user want to select their education in the form so it will shown in database in one...
How to launch Apple Maps from iOS app
Hi Readers!
Below is the code to launch the Apple Maps application and display the directions between 2 points on Map.
Example 1: Display directions
MKPlacemark *placemark = [[MKPlacemark alloc] initWithCoordinate:CLLocationCoordinate2...
how to upload a image in php?
PHP script is used in a HTML form to allow users for uploading a file from a folder or server. Whenever user do so initially the file is in the temporary directory after it will relocated into the target destination. The uploaded file could be an...