Indexing:
Solr gives you a quick response and results because of indexing. What does this mean? It means that it searches index instead of the text to retrieve the results for you.
In book , you search for the index in the index page of the...
Hello Readers, Here is a small application in CakePHP to add users through which we can Understand "How MVC Architecture works" ? For better understanding of MVC Architecture, I will manually create Model, Controller and Views.
First...
Pascal's Triangle:
Program to print Pascal's triangle:
import java.io.*;
public class Pascal{
public static void main(String []args)throws IOException{
InputStreamReader isr=new InputStreamReader(S...
The Number is a javascript object that represents numerical date, either integers or floating-point numbers.
The syntax for creating a number object is as follows:
var num = new Number(number);
If it receives a non-number argument, the...
Hello Reader's when you are developing the user interactive websites then you have to show user much more activities which a website is doing. Showing the password strength will make user to use the site much easier. So if you are looking how...
Hello reader's if you are developing the website in which data is generated in div and height of them is not equal then you can sort out your problem from this blog.
In the scenario above, sometimes text matter in the div is not ...
Hello Reader's if you are learning, optimizing the mysql query then in this blog you will know some new syntax offered by Mysql where you can make your query fast. Lets see the examples as below:-
In the code below, the results select...
Hello Reader's if you are new to asp.net and looking to see how email is send then this blog is helpful to you. Sending the email in asp is comparatively similar with php just you have to follow the coding syntax.
<%
Set myMail=Creat...
DECODE function:
DECODE function works similar to if-else statement or case statement. DECODE compares expression to each search value one by one and returns the result of that search which is equal to the expression. If there is no match than...
Hello Reader's if you are making the website in which you have to fetch and show the content data from an external file then in this blog you can see how to do it. In web technologies different technologies offers you many ways to do this but...
Hello Readers, if you are developing the html form with two or more submit buttons then in this blog you can learn it. On certains conditions a html form should have multiple submit buttons and both should redirect user to their individual ...
Wireshark Tools For Analysis:-
Wireshark is the well known network protocol Tools. It lets the user to see what's happening on his network at a microscopic level. It is the de facto (and often de jure) standard across many organi...
TTCN:-
TCCN is a classic testing language for characterizing test scenario and their execution for protocol testing. A TCCN test suite contains numerous experiments(test cases) written in the TTCN programming language and it is utili...
What is Protocol Testing?
Protocol testing is a non specific term utilized by organizations working in as a part of the communication industry for testing different protocols in domains of Switching, Wireless, VoIP, Routing, Switchin...
Datepicker in cake php used for displaying its content in date formats. The widget used in jquery for making it stylish and feel easy to user for displaying the date, minth and years. This will expalins as follow, User can use this line of code b...
Hello friend, I found this interesting question on reddit so after answering their I thought to share this with you here doing sorting and align duplicates in excel are both different lets discuss this one bu one separately.
1. ...
For an object, we can specify the access control of the object means which users are allowed to read the object and which users are allowed to write.
To do this, each object has an access control list. Parse provide ParseACL class to handle al...
Hello Readers Four associations types used in cakePHP is explained here in a short and simple way. Hope this will be helpful to all.
belongTo:
If table movie has a field that refrences table director, then table movie "belongTo&quo...
Identifying and authentication of a user is very common and useful part of every web appilication, In CakePHP AuthComponent provides a way to secure user's password in encrypt manner and allow user to authenticate objects as well. It is a pro...
Association means relationship, It is a way that two table are connected to each other or linking model together, in cakephp the links between models are handled through association. User can understand it from the following table.
&...
Protocol Testing:-
What is Protocol in a software industry?
When computer communicates with each other, there is a common arrangement of rules and conditions that every computer needs to follow. As such, pr...
CakePHP comes with an default email library that already supports SMTP mail protocol. In this article we will come to know that how we can send an email in HTML or text both.
We have to define the layout of text and HTML emails In app/vi...
cakePHP have by default FlashComponent which provides notification messages to be displayed in the website or application after processing a form .
FlashComponent in cakePHP writes flash messages to be rendered in a ctp file in vie...
To Take the screen shot Of a view with navigation & tabbar You can use this code:
-(UIImage *)getImageWithNavigationBarInIOS
{
CALayer *layer = [[UIApplication sharedApplication] keyWindow].layer;
CGFloat scale = [UIScre...
In this tutorial, we will learn how to convert html template into CakePHP template. Website application build on CakePHP without any custom theme uses default layout of CakePHP. The look & feel of default template is not so good. Some times y...
Diable Google Maps scrolling:
I was facing issue with Google Maps API version 3. On page scroll, google maps scroll should be disabled i.e. I have to disable zooming when you scroll on the map. So this is how I have fixed this issue. Write thi...
I am posting this blog, which will tell you how to convert text to voice conversion using Google API.
I am using Google TTS (Text to Speech) to convert text to mp3 file. Now lets start implementing it
Create file index.php
<?php...
In this blog I am going to tell you how to convert currency using Google Finance. Example: you want to convert Indian Rupee to American Dollar i.e. INR to USD then you can convert it using following url: http://www.google.com/finance/converter?a=...
WHM is used for linux web hosting environment.
Step 1: Setup Virtual Private Cloud (VPC)
Select Services >> Networking >> VPC (VPC Dashboard)
Now click on Start VPC Wizard button.
Select VPC with a Single Public Subnet
...
I am writing this blog because I faced issue for adding cron jobs in Amazon Ec2 cloud server. I was using Linux 64bit .
To add cron jobs open command prompt (via putty if windows) and login via ssh, when you are login then type:
which php...
How to add Cron Jobs in Ubuntu?
I was facing issue for adding cron jobs in dedicated hosting (in Ubuntu). In order to add cron jobs in Ubuntu go to the terminal and type:
$ sudo crontab -e
this will open your personal crontab (cron con...
Why to use Nginx?
Nginx is the most popular web servers in the world. It is used for hosting websites and it holds highest traffic sites on internet. It is more resource friendly than Apache.
Step 1: Installing Nginx
Firstly update the p...
How to sort Products by quantity and price in Ascending or Descending order programatically?
I was facing issue to sort products by quantity and price in descending order i.e. products which is having maximum quantity in stock and with h...
Hello Reader's if you are making the hide and show events in your website with animations effects, Then this blog is very helpfull to you.
So lets start, Suppose there is div you want it to be hide everytime a user hits a hide checkbox. We...
Here I am writing the way to call cloud method from the code.
Below is the method in the parse cloud.
Parse.Cloud.define("testing_method", function(request, response) {
var textMsg = "Testing 1 2 3";
var jsonObject = {
"answerM...
CakePHP 2.x supports PHP Version 5.2.8 and above while CakePHP 3.x supports PHP Version 5.4.16 & above. There are some changes from CakePHP 2.x to 3.0 like syntax declaration , array declaration & model defination etc.
The config key www...
In previous blog Solr Atomic update with incremental popularity, we have updated the solr incremental field using SolrDocument.
Now we will update it through solrTemplate.
Here is the sample code:
PartialUpdate update =...
Go to mongodb configuration file and add following lines of code.
@Configuration
public class SpringMongoConfig extends AbstractMongoConfiguration{
static Logger root = (Logger) LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME);
sta...
Hello Readers, In this blog tutorial we will explain how to upload Image in CakePHP using component.
Create a file called UploadComponent.php (path:app/controller/component) & paste the following code.
<?php
class Upl...
Client and server communication is done with two commonly used http method
1.GET
2.POST
GET- GET is basically used for getting the data from the server sometime cached.
The $.get method is used in jQuery to get the data.
$.get(UR...
Export Databind control in PDF using iTextSharp
Some time we need to display databind control like Gridview, Label, Textbox into PDF file. here we can use iTextSharp library.Firstly we need to add iTextSharp in our project reference.
...
It is a very simple and powerful ajax method to load the data from the server and display it in the selected element.
$(selector).load(URL,data,callback);
URL parameter specifies the URL you wish to load
data parameter specifies a set ...
If we move objects with touch.moved event then how can we differentiate the touch.begin and touch.moved event.
This problem generate when we touch down on object and move it , now the correct flow should be that if touch.moved occur then objec...
Which Software Methodology to pick/choose ?
There are huge amounts of methodologies available for software development and its corresponding testing. Every technique is intended for a particular reason and has its relat...
We can add the new image in cakePHP just like we did html.
but we have different tag for it.
We need html helper that is already provided by the cakePHP but have to be included first.
For adding an image
echo $this->html->imag...
Bind Gridview inside Data List view
Some time we need to display content in tabular form in Data list. So we can use gridview inside in Datalist.
Here we have to define the DataList_ItemDataBound event and find control of our gridview at th...
When you trying to open your flash builder ,sometime it shows that window appears and then disappear, and your flash builder doesn't start. So, here is the solution for this.
You just have to delete the .lock file in worksapce.
...