Wednesday, February 18, 2015
Java program to check whether a number is prime or not

class prime
{
public static void main(String...s)
{
int n,i;
n=Integer.parseInt(s[0]);
for(i=2;i<n;++i)
{
if(n%i==0)
break;
}
if(i==n)
System.out.println("
Number is prime");
else
System.out.println("
Number is not prime");
}
}
Monday, February 16, 2015
Instagram vs Vine – Which one is Better
Instagram vs Vine
Although, both Instagram and Vine offer video capabilities, a question that often pops up in our mind is, “Why don’t we use both?” Let’s have a look at some of the differences between these two apps that will let you have a clearer picture about choosing the one that suits you the best:Also Read: How You Can Keep Your Android Phone Safe From Hackers?
Also Read: How to do Unlimited Video and Voice Calls on Mobile for Free
.png)
Target Audience
Today, it is an underlying fact that a social media site is the most economical and effective way to promote brand awareness among a large number of people. So, it is important to choose a platform that helps in maximizing your reach to an increasing number of users.Instagram is a Facebook owned app, with over 130 million users. Compared to a huge fanbase of Instagram, Vine only has 13 million users. Apart from this, Instagram offers users the ability to choose a video frame that will be set as a thumbnail to be showcased in the Facebook’s newsfeed.
However, Vine does not provide this feature. Not too many people deem it that important, but it must be understood that the minutest of elements can play a huge impact on making your online content look visually more fascinating.
Features
When Instagram came into the picture, it gained immense popularity due to its filters and image editing features. These features helped in giving a professional look to amateur photos. Likewise, Instagram videos also possess filters and video editing ability.Vine, on the other hand, does not offer filters and does not allow video editing.
.png)
Instagram comes with a Cinema feature that provides video stabilization. However, the feature is missing in Vine.
Consumption
Instagram videos play only once, whereas Vine lets you capture and share looping videos. This bequeaths Vine with a better GIF-style quality.Video length
Nowadays, video length has gained substantial importance among marketers, who are looking forward to increase their brand awareness in the online marketplace. While Vine has a 6-second limit for video, Instagram provides a 15 second shareable video.Most of the marketers have found Instagram a better choice over Vine, since they found 15 seconds a better option to feature their video promoting more content about the brand. Marketers believe that it is not easy to create memorable promotional campaigns in six seconds.
Also Read: iPhone 6 (Rumors) Vs Nexus 5
Also Read: 4 Best Tips to Clean Your Touch Screen Device
Other Differences
- Vine videos can be muted on the desktop, whereas Instagram videos cannot be muted.
- While Vine lets you share videos to Twitter and Facebook, Instagram has surpassed Vine by letting you share videos not just on Facebook and Twitter but on also other social media sites such as Tumblr, foursquare, and Flickr. Additionally, Instagram also allows you to share videos via email.
Let’s Sum Up!
Earlier, Vine’s video-sharing capability made it popular among video-sharing addicts within no time. But, as soon as Instagram launched its video-sharing capability for the masses, the competition between both the social media sites has been growing incessantly.About Author
Stellan Bettany is a full time content writer for a leading and Social Media Marketing Agency SEOPixels Ltd. He provides concrete information about online marketing solutions including online reputation, SMM, Content Marketing and Professional SEO Services.Sunday, February 15, 2015
What is Disjoint set Data Structure
1. MakeSet operation
2. Find operation
3. Union operation
Sometimes, it is called Union-Find data structure or Merge-Find data structure.
Applications
Also Read: C Program for Tower of Hanoi Problem
Also Read: C Program for Sorting an Array using Heap Sort
MakeSet Operation
Initially, input elements are considered as a collection of n sets, of which each element in each set. Each set has different element, so Si ∩ Sj = Φ. This makes sets disjoints.The operation MakeSet creates a new set containing a single element for each given element. MakeSet creates a set of singleton elements in which each element represent its own set as shown below.

Union and Find Operation
Eg: After some operations of union, some sets are grouped together as shown below:

For better understanding watch below video:
In next tutorial we will be discussing about implementations of disjoint-set data structure.
Author Bio:
Manisha Khandelwal is a computer science engineering student who lives in India. Data Structure is one of her favorite subjects. You can find her on Facebook at http://www.facebook.com/mannkhandelwal or contact her on Gmail at manishakhandelwal2611@gmail.com.
Thursday, February 12, 2015
Google is investing buying out small companies

Edward Berridge
THE PURVEYORS of 3D desktop computer software, Bump Technologies has told the world plus dog that it has been bought by the search outfit Google.
The Canadian startup was created by a University of Toronto student as a masters thesis project. Its software works on both Windows and Macs to make screens appear more similar to real desktops where boxes can be moved or stacked using gestures or a stylus.
Bump said that more than three years ago, "we set out to completely change the way people use their desktops." Well, it does not seem to be doing that. The software will no longer be available for sale, and users wont be able to download updates.
In short its technology might one day see the light of day in a Google product, but it is certainly not going to be changing the way people use the desktop any time soon.
It is not clear how much Google paid for the company, however it seems to have been opening its cheque book lately after pulling back on acquisitions during the recession.
It has announced nine acquisitions this year, mostly of small companies, including Labpixies, an Israeli developer of mini applications such as games and calendars that Internet users can post on their personal pages.
Meanwhile Goolge has also invested in a "utility-scale renewable energy project that generate 169.5 megawatts of power, enough to power more than 55,000 homes."
The wind farms, run by Nextera Energy Resources, were part of a larger $190 million capital raising.http://www.theinquirer.net/inquirer/news/1604045/google-buys-3d-software-company
Wednesday, February 11, 2015
C program to check given alphabate is vowel or not using switch case

#include<stdio.h>
#include<conio.h>
void main()
{
char ch;
clrscr();
printf("Enter an alphabate:");
scanf("%c",&ch);
switch(ch)
{
case a:
case A:
case e:
case E:
case i:
case I:
case o:
case O:
case u:
case U:
printf("The alphabate is vowel");
break;
default: printf("The alphabate is not vowel");
}
getch();
}
Tuesday, February 10, 2015
Tip Pie or Bar Chart No visulization when the sql result is having all 0 values in Jasper iReport
Recently I came across a situation on plotting the 0 values result set on a pie chart and failed to produce the chart with out leaving any message.
Alternatively I have shown a message saying that "All the values in the result set are zero so can not plot the visualization".
Of course, this is not a big matter to blog but I can say that this is a best practice in report designing and would like narrate for the one who wish to follow best practices.
Your end-client can easily understand when the chart is having all zero values.
Example :
Query : SELECT field1, field2, field3 FROM dummyTable
Output :
field1 field2 field3
---------- --------- ---------
0 0 0
For instance assume you are showing data on pie chart and given expressions in 3 different series lets say "series1", "series2" , "series3".
Now, if you see the preview of the report, you will be getting nothing in output as your query resultset has all values as 0
Drag and drop the "Static Text Field" over the chart from palette section and write your message(message is : All values are zero so can not plot the visualization) and Print this field when ever the values are zero.
For doing this, you have to Write similar like below expression for "Static Text Fields" PrintWhenExpression
($F{field1}==0) && ($F{field2}) && ($F{field3})
Observation or Preview.
Now select some input controls for which you will get result set 0 .. You will get the below similar like output.

Thats it... When ever your query result set is having all 0s you will be displaying message saying that can not plot visualization.
Sadakar
BI developer