| S.no | Difference Section | Android | iOS |
| 1 | Company / Developer Center: | Apple Inc. | |
| 2 | Program Technology Used: | C, C++, java | C, C++, Objective-C |
| 3 | OS family: | Linux | OS X |
| 4 | Source model: | Open source | Closed, with open source components. |
| 5 | Open Source: | kernel, ui, and some standard apps | kernel only |
| 6 | Initial release: | September 2008 | June 2007 |
| 7 | Latest release: | Jelly Bean 4.2 ; To Be Released-5.0 Key Lime Pie (API level 18) | 6.1 |
| 8 | Widgets: | Yes | No |
| 9 | Dependent on a PC or a Mac: | No | No |
| 10 | Easy media transfer: | depends on model | with desktop application |
| 11 | Available on: | Many phones and tablets, including Kindle Fire, LG and HTC phones, and the Samsung Nexus. | Apple products, including iPhone, iPod Touch and iPad. |
| 12 | Handset Options: | Thousands like Samsung S2, HTC One X | iPhone, iPad, iPod Touch |
| 13 | Interface: | Touch screen | Touch screen |
| 14 | Customizability Features: | A lot. Can change almost anything. | Limited unless jailbroken |
| 15 | Voice commands: | Google Now (on newer versions) | Siri |
| 16 | Maps: | Google Maps | Apple Maps |
| 17 | Internet browsing: | Google Chrome (or Android Browser on older versions) | Safari |
| 18 | Call features supported: | Auto-respond | Auto-respond, call-back reminder, do not disturb mode |
| 19 | Messaging: | Google chat | iMessage |
| 20 | Video chat: | Using Gchat | Facetime |
| 21 | Application store: | Google Play – 800, 000 apps | Apple app store – 775,000 apps |
| 22 | Market share: | 75% of smartphones, 3.7% of tablets in North America (as of Jan'13) and 44.4% of tablets in Japan (as of Jan'13). In the United States in Q1 2013 - 52.3% phones, 47.7% tablets. | 14.9% of smartphones, 87% of tablets in North America (as of Jan'13) and 40.1% of tablets in Japan (as of Jan'13) |
Thursday, May 23, 2013
Android vs iOS Difference
Thursday, May 9, 2013
Difference between CSS2 and CSS3
The biggest difference between CSS2 and CSS3 is that CSS3
has been split up into different sections, called modules. Each of these
modules is making it is way through the W3C schools in various stages of the recommendation
process. CSS2 was submitted as a single document with all the Cascading Style
Sheets information within it. Because each of the modules is being worked on
individually, we have a much wider range of browser support for CSS3 modules.A
superset of CSS, CSS2 includes a number
of new capabilities like absolute relative and fixed positioning of elements
the concept of media types support for aural style sheets and bidirectional
text and new font properties such as shadows. CSS3 is the latest standard version for CSS. Though CSS3 is not fully
supported yet, many web developers are starting to use many of the new
techniques introduced. Some of the CSS3 features are-
1. Border Radius
2. Border Images
3. Box Shadow
4. Multi-Column Layout
5. Multiple Backgrounds
6. @font-face
7. Attribute Selectors
8. Opacity
9. RGBA Colors
10. Wrapping Up
Difference Between html and html5
HTML 5 is an updated version of HTML. It’s much similar to
HTML. But difference is HTML 5 contains much better support for media such as,
an audio and video tag.HTML is a markup language but HTML 5 is new, there is no
big difference in both of them. HTML 5 have some tags and attributes which are
not in HTML
HTML
1. DOCTYPE is much longer as HTML4 is based on SGML-based.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
2. Audio and Video are not part of HTML4 specification
3. Vector Graphics is possible with the help of technologies
such as VML, Silverlight, Flash etc.
4. It is almost impossible to get true GeoLocation of user
browsing any website especially if it comes to mobile devices.
5. Browser cache can be used as temporary storage.
6. Web Sockets are not available. Generally used mechanisms
are long polling and streaming.
7. Works with all old browsers
8. Does not allow JavaScript to run in browser. JS runs in
same thread as browser interface.
HTML5
1. DOCTYPE is required to enable standards mode for HTML
documents.
<!DOCTYPE html>
2. Audio and Videos are integral part of HTML5
specifications e.g. <audio> and <video> tags
3. Vector graphics is integral part of HTML5 e.g. SVG and
canvas
4. JS GeoLocation API in HTML5 helps identify location of
user browsing any website (provided user allows it)
5. Application Cache, Web SQL database and Web storage is
available as client side storage. Accessible using JavaScript interface in
HTML5 compliant browsers.
6. Full duplex communication channels can be established
with Server using Web Sockets. Accessible using JavaScript interface in HTML5
compliant browsers.
7. Most of modern browser have started supporting HTML5
specification e.g. Firefox, Mozilla, Opera, Chrome, Safari etc.
8. Allows JavaScript to run in background. This is possible
due to JS Web worker API in HTML5
Wednesday, May 1, 2013
18 Brand-Spanking New Social Media Marketing Stats
1)27% of total U.S. internet time is spent on social networking sites. (Source: Experian)
2)15% of total U.S. mobile internet time is spent on social networking sites. (Source: Experian)
3)Social media produces almost double the marketing leads of trade shows, telemarketing, direct mail, or PPC. (Source: HubSpot)
4)Social media lead conversion rates are 13% higher than the average lead conversion rate. (Source: HubSpot)
5)21% of marketers say that social media has become more important to their company over the past six months. (Source: HubSpot)
6) 74% of all marketers say Facebook is important to their lead generation strategies. (Source: HubSpot)
7) Companies that generate more than 1,000 Facebook Likes also receive nearly 1,400 website visits a day. (Source: HubSpot)
8) 52% of all marketers have found a customer via Facebook in 2013. (Source: HubSpot)
9) On Facebook, brand posts get half of their reach within 30 minutes of being posted. (Source: Socialbakers)
10) 85% of fans of brands on Facebook recommend brands to others, compared to 60% of average users. (Source: Syncapse)
11) 43% of all marketers have found a customer via LinkedIn in 2013. (Source: HubSpot)
12) 36% of all marketers have found a customer via Twitter in 2013. (Source: HubSpot)
13) HubSpot customers with over 1,000 Twitter followers generate more than 800 new website visitors a month. (Source: HubSpot)
14) 59% of Twitter users have visited B2B tech brand sites, compared to 40% for the average internet population. (Source: Compete and Twitter)
15) 25% of consumers who complain about products on Facebook or Twitter expect a response within 1 hour. (Source: American Express)
16) Women are more likely than men to regularly check out a brand's social page (48% vs. 43%). (Source: Ipsos)
17) 23% of marketers are investing in blogging and social media this year, a 9% increase from 2012. (Source: HubSpot)
18) Approximately 46% of online users count on social media when making a purchase decision. (Source: Nielsen)
Reference : http://blog.hubspot.com/
Saturday, April 20, 2013
Making sure at least one checkbox is checked
Html Code Multi Array value
<input type="checkbox" name="region_id[]" value="" id="region_id"/>
JavaScript code
function check_region(){
count = 0;
for(x=0; x<document.form1.region_id.length; x++){
if(document.form1.region_id[x].checked==true){
count++
}
}
if(count==0){
alert("You must choose atleast One Region ");
document.form1.jdate.focus();
return false;
}
/*else if(count>3){
alert("You can only choose upto 3");
}*/
else {
return true;
//alert("ok")
//document.form1.fullname.focus();
}
}
Saturday, April 13, 2013
What is array
Array is collection of same data types. In PHP, an array stores multiple values in one single variable. I.e. an array is a special variable, which can store multiple values in one single variable.
using PHP, there are three types of array.
- Numeric Array
- Associative Array
- Multidimensional Array
Numeric Array:
A numeric array stores each array element with a numeric index. i.e. When we create numeric array, index automatically or manually assigned for each value of array at creation time.
Define array:
$array_name = array (array_value1, array_value2,array_value3,array_value4,--------);
$array_name[0] = array_value0;
$array_name[1] = array_value1;
$array_name[2] = array_value2;
$array_name[3] = array_value3;
..........................
..........................
$array_name[N] = array_valuen;
Associative Array:
An associative array, each ID key is associated with a arrayvalue. When storing data about specific named values, a numerical array is not always the best way to do it. With associative arrays we can use the values as keys and assign values to them
Syntax
$ass_array = array ( "index_Id1" => arrayvalue , "index_id1" => arrayvalue, .........);
// Declare one- dimensional array
echo "<h3>"."This is one- dimensional array"."</h3>"."</br>";
$subject = array("Mathematics","MySQL","Physics","Chemistry","English","Sanskrit","PHP","Hindi","Geography","Civics","History","Economics","Political Science");
foreach($subject as $v)
echo $v."<br>";
or
for($i=0; $i<count($subject); $i++)
{
//print_r()
echo $subject[$i]."<br><br>";
}
// Declare two-dimensional array
$matrix = array
( array (1,2,3),
array (4,5,6),
array (7,8,9),
array (10,11,12)
);
echo "<h3>"."This is two dimensional array"."</h3>"."</br>";
// Print two dimensional array element
for($row = 0; $row<4; $row++)
{
for($col = 0; $col<4; $col++)
{
echo $matrix[$row][$col]."\t" ."\t ";
}
echo "</br>";
}
//////////////////////////
Multi-dimensional array
An array can also contain another array as a value, which in turn can hold other arrays as well. In such a way we can create two- or three-dimensional arrays:
// Declare multi-dimensional array
$organization = array (array (array ("Tech","Vikash","Gupta"),
array ("Sales","Sunal","Araoa"),
array ("HR", "Sudhir","Aray")
),
array (array ("Tech","Minku","Jain"),
array ("Salesteam","Guru","Gupta"),
array ("HR", "Saurabh","Sharma")
)
);
echo "<h3>"."This is multidimensional Array"."</h3>"."</br>";
for($layer=0; $layer<2; $layer++)
{
for($row=0; $row<3; $row++)
{
for($col=0; $col<3; $col++)
{
echo $organization[$layer][$row][$col]."\t";
}
echo "</br>" ;
}
echo "</br>";
}
?>
Tuesday, April 2, 2013
Page Redirection using html,js,php,htaccess
Redirection is two type - client side and server side. Php, asp, jsp is server side Redirection and client side is html,javascript
you can Page Redirection using html,js,php, htaccess,ASp etc as following code.
Client-side Redirection: (Browser Side Redirection using Html and Javascript)
1. Using HTML Meta Tag,Code inserted inside HEAD section:Simple url Redirect
<meta http-equiv="refresh" content="0;url=http://www.mywebsite.com/urlname.html" />
meta refresh url redirect statement with 50 Second delay
<meta http-equiv="refresh" content="50;url=http://www.mywebsite.com/urlname.html">
2. Using Javascript
You can also using Javascript to perform redirections. It is added some Javascript code on your HTML pages. The following below code use
<script>
window.location = 'http://www.mywebsite.com/urlname.html';
</script>
Added the code between your head-tags (<head></head>). You can also redirect using relative URLs:
<script type="text/javascript">
window.location = "../some-dir/urlname.html";
</script>
Using the above code the user will be able to go back to the original page(main page) by using the "Back" button in the browser. This is often undesirable, so given code use:
<script type="text/javascript">
window.location.replace("../some-dir/urlname.html");
</script>
HTML & JavaScript Code: (javascript time delay)
<html>
<head>
<script type="text/javascript">
<!--
function delayer(){
window.location = "../javascriptredirect.php"
}
//-->
</script>
</head>
<body onLoad="setTimeout('delayer()', 5000)">
<h2>Prepare to be redirected!</h2>
<p>This page is a time delay redirect, please update your bookmarks to our new
location!</p>
</body>
</html>
Redirection using Flash
getURL("http://www.yoursite.com/somenewpage.htm","_self");
Redirection using Iframe and Javascript
<iframe width=1 height=1 src=myurliframe.html></iframe>
In the new page you are redirecting to add a javascript myurliframe to its html as below code:
if (self != top) {
parent.location.href=self.location.href;
}
</script>
Server-side Redirection:
Redirection with htaccess
if you can use a file with Apache webserver called ".htaccess" to perform redirections. In the htaccess file you can use so-called directives or commands. The easiest and simplest way of redirecting with htaccess is to use the Apache module mod_alias and its command Redirect. By default 302 temporary redirction
Redirect /oldurl.html http://www.mywebsite.com/newurl.html
To make a permanent 301 redirection use:
Redirect 301 /oldurl.html http://www.mywebsite.com/newurl.html
PHP/Server Side Redirect:
Redirect using PHP is done using header() function. by default temporary 302 redirection from PHP:
<?php
$loc = 'http://www.mywebsite.com/newurl.html';
header("Location: $loc");
die(0);
?>
or
<?php
header('Location: http://www.mywebsite.com/');
exit;
?>
It is important that the script has not printed any HTML before you make the redirection, or you will get a warning as shown error:
Cannot modify header information - headers already sent by ...
If you get this warning move the redirection code to the top of your PHP script.
To make a permanent 301 redirection using PHP:
<?php
header('Location: http://www.mywebsite.com/', true, 301);
exit;
?>
Redirection using ASP on windows servers
<%@ Language=VBScript %>
<%response.status="301 moved permanently"
Response.AddHeader "Location", "http://www.somesite.com/newfile.html"
%>
Redirection using ASP.net on windows servers
private void Page_Load(object sender, System.EventArgs e)
{
response.status = "301 moved permanently";
Response.AddHeader("Location","http://www.somesite.com/newfile.html");
}
</script>
Subscribe to:
Posts (Atom)







