How to Install MySQL on Ubuntu:
Step 1 - Installing MySQL
To install MySQL you need to update the package index on your server and then install the package with apt-get.
Write the following commands to install MySQL
$ sudo apt-get u...
Here are some features that are available in C# 6.0 -:
1) Auto Property Initialization.
2) Use of Conditional operator to check NULL values.
3) nameof Expressions
4) String Interpolation
5) Exception filters
6) Bodied Methods
...
If we want to remove any section from webpage like header or footer than use the following code.
In the following code header and footer.footer are the tag identifier of html Class.
We have to use the appropriate tag of the control which we...
"Individual commitment to a group effort - that is what makes a team work, a company work, a society work, a civilization work." - Vince Lombardi
To be a good Team Player you have to be following characteristics:
&...
Hiding div elements in a responsive layout using bootstrap classes:
We can easily hide a div block on a particular layout like for extra small devices(mobile) or for tablets or for desktop using bootstrap classes.
Classes
De...
Solr:
Apache Solr is a search platform which is developed in Java and can be used for various purposes such as:
Using it as a search engine, Can keep your data and use it for querying various things, etc. &n...
Project Management, a quite interesting stuff and full of challenges. However, everyone has different view in project management and ways for successful project completion.
Here I have jolted down few points for successful project completion :...
Sometimes we need to store session information for different web pages. It is mostly needed for commercial websites where we need to fill up a form through several stages. So to maintain the session information across web pages and to keep track ...
For resizing image using Qimage component in cakephp first we have to download Qimage plugin after downloading Qimage plugin we have to put it into App/Controller/Component .
Then we have to do all this in our controller.
...
If you want to send a user friendly appointment request via your SMTP server instead of boring email that we usually do then we can achieve it with the help of very simple code.
Here is code:
using System;
using System.Collections....
Hi All,
A Plugin is a program, or a set of one or more functions, written in the objective-c/swift language, that adds a specific set of features or services to the Phonegap app, which can be seamlessly integrated with the Phonegap using acces...
Hello Friends,
In order to fetch the latitude and longitude of a location based on its address,you may use the following code:
double latitude = 0;
double longitude = 0;
Use the google api along with your address
NSStr...
I was facing issue to run the following lines of code on php:
$url = "http://example.com/";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_PROXYPORT, 3128);
...
Add Suffix To Date
Here is a very simple example of adding suffix to the date in iOS .With the help of example given below you can easily add a suffix to the date selected by the NS...
For fetching a string for a specific value and length, here are 2 ways to do that. First using @Query and another using solr Criteria.
In the below code it first searches for the string match and then suing filters we have defined the length o...
Retrieve the data from the database.
CakePHP come with the functions to get the data from the database.
find: It is a multifunctional function of all model data-retrieval function.
It is used under the controller.
It is used for...
Hello Friends,
If you are new in cakephp you might face issue like error not display on screen rather than a blank screen appear. To avoid this problem you need to open "/var/www/html/nyxmyx/app/Config/core.php" and set variable as b...
Hello Friends,
If you are facing this issue " Uncaught exception 'CacheException' with message 'Cacheengine "_cake_core_" is not properly configured."
after configuration of cake php project.
You need...
For cropping image using Qimage component in cakephp first we have to download Qimage plugin after downloading Qimage plugin we have to put it into App/Controller/Component .
Then we have to do all this in our controller.
...
Clients/Customers come and go. This is only one of the ups and downs of owning a business. You know that you may not generally keep the same clients for years. However, as a little business, you will as a rule have a solid base of l...
A Controller in MVC like cakePHP is basically used to manage the logic around a single model.
LIke for example if you are working on User model than you have to have a controller for it name UsersController.php for managing the model.
...
Hi,
There are a lot situation when we keep confidential data into our database. When matter of confidentiality comes, encryption comes first in mind. Today, in this article I will try to explain a beautiful technique to do so. This technique d...
Url with and without / (slash)
Url ending with " / " slash and without " / " slash for example http://findnerd.com/ and http://findnerd.com
Now the question is does Google take and treats both th...
In the below example I have created custom ViewPager in android. Here first I have added TextView and ViewPager in activity_main.xml and In MainActivity I have used MyPagerAdapter class and extends with the PagerAdapter class , In resource i have...
I am writing the code that we use to implement the flash in custom camera.
First, we need Camera.Parameters object that we get from Camersa's getParameters() method.
Then by using Camera.Parameters's setFlashMode() method we can spe...
In the below example I have created Custom View spinner. Here first I have created a row.xml layout , In row.xml I have added a TextView and Button. Then I have created drop.xml layout in this I have added two TextView with in LinearLayout, Then ...
What is Agile Testing ?
A software testing exercise which obeys the morals or standards of agile software development is known as the ‘Agile Testing’. Agile is a repetitive development approach. In this approach all the requirement...
Fetching a data in the form of table from the database can is explained here in this blog, User have to define a function in the controller with the same file name in which user are displaying table using HTML code, for example here it is 'fe...
Program to check two Linked Lists are Identical or not in C.
#include<stdio.h>
#include<stdlib.h>
/* Structure for a linked list node */
struct node
{
int data;
struct node *next;
};
/* Returns true if linked lists ...
TempData
TempData provide communication between Controller action and it's corresponding view by transferring and maintaining data. The tempdata is retained not only for current request but also retained in case of redirection.
A...
Overloading Main method:
Like any other methods, it is possible to overload the main method also in java.
One thing needs to be keep in mind while overloading the main method that it should be called inside some other main method.
Lets s...
METHOD OVERLOADING:
Having more than one methods with the same in the same scope. i.e. class is known as method overloading.
It is useful in increasing the readability of the program. If a user wants to perform some operation say multiplica...
There are conditions when we need to show sql error messages to users such as Duplicate Entries from database.
For example in cakephp, if there is duplicacy error from database then it will show following message to the user:
"Database...
About Cassandra: Cassandra/ Apache Cassandra is scalable NoSQL database system. It is used to manage large amount of structured, semi-structured and non structured data. I am writing this blog which will help you to install and run a single-node ...
In OpenERP first we inherit to the rating.rating object and then we create the kanban. if the auto_validation_kanban_state is activated then apply the modification of the kanban state according to the given rating. And then return the action to s...
To reset the password, Parse provide us RequestPasswordResetCallback to requesting a password to reset for an existing user.
I implement it using anonymous inner class. So then override the done() method where we can do whatever we want after ...
Step 1- Defined here some necessary variable
boolean isLoading=false; -> this variable will use to show progressbar below to recyclerview in your xml file when you scroll your recyclerview list .
int mPageSi...
The problem that I find when I used toolbar was the default left margin of the toolbar.
Basically its left inset, and it is caused by Toolbar's contentInsetStart.
left inset of the Toolbar is by default 16dp so we see such margin on the...
Repository take solrtemplate to execute solr operations. Since we have multiple cores so we need to create multiple template and multiple repositories for each core. Following example explains it with 2 solr core
Repository and custom imp...
Hello, I am an Italian developer, I was trying to implement my PayPal's library within my e-commerce App.
I created two test accounts, and it seems to work, but there is a problem.
If during the phase of sending money, I deactivate the In...
Ranking of a website link for certain set of keywords on search engines like Google depend on some defined set of rules that need to be followed in order to improve the keyword rank and achieve a higher ranking on Google. However, w...
Hi Readers!
Many times we need to check what Core Image filters do we have in iOS framework. Here is a simple code to get all the list of filters with their attributes. This will be easier for you to check and apply any filter on an image.&nbs...
Sometimes Tester needs common sense and smart approach to test the application.
Many times it is not possible to test the whole application within the specified time and sometimes the documentation might exist-but not detailed or com...
These all extend existing CakePHP functionality so they are almost similar but differ on what they extend from the existing folder.
The Component is used here in the controller it will used as a packages of logic and function and these are s...
TempData in asp.net mvc
TempData is a dictionary object derived from TempDataDictionary.
TempData provide communication between Controller action and it's corresponding view by tranfering and maintaing data.
The tempdata is retained...
Here in this blog i have used AJAX to search and provide result on the whenever user enter any character in the textbox. The result is coming from a PHP page. Ajax search is used for making the code easy to understand and for saving the users tim...
Different Classes Of Threats:-
There are so many classes of threats. By this blog i am describing few of them. These threats can be utilized to appropriate the benefit of security vulnerability. These are mentioned as below:-
P...
There are many cases where we have to disable the back button of the browser.
Here, the following code will help you to make your back button disable.
HTML:
<body onload="disableBackOnLoad(); ">
Now the back button is disabled
...
In OpenERP first we will create the function and then create js file. After this the no Google doc were associated with a record, with the aim to create one then no config is associated with the res_model, and hence it will result a blank t...