This is default featured post 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured post 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured post 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured post 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured post 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Wednesday 28 December 2011

Add New Year Count Down To Blog

Year 2012 is pretty very near so let us add New Year widget that shows how many days, hours, minutes and seconds are left celebrate New Year 2012. One thing that I have noticed in most of the widgets is that, it displays a message when it reaches its target. Like on 01.01.2012 my widget will display " Wish You all a Very Prosporous and Happy New Year".

This widget uses a simple javascript to display count down based on the Users system time.

Happy New Year Count Down Demo.

How To Add New Year Count Down Demo To Blog.
1. Go to Design Tab in your Blog > Page Element Tab.
2. Click on "add a widget" then select "HTML/Javascript" Widget.
3.Paste below Javascript code to it.

<div id="bp_count_down_div"></div>
<script language="JavaScript">
var bp_date_target = new Date("January 1, 2012 00:00:00");
var bp_date_now = new Date();
var bp_count_down_complete_message = "Wish You all a Very Prosporous and Happy New Year";
if (bp_date_now >= bp_date_target) {
 document.getElementById("bp_count_down_div").innerHTML = bp_count_down_complete_message;
} else {
 bp_time_difference = Math.floor(((bp_date_target - bp_date_now).valueOf()) / 1000);
 display_time_difference(bp_time_difference);
}
function display_time_difference(bp_time_difference) {
 if (bp_time_difference <= 0) {
 document.getElementById("bp_count_down_div").innerHTML = bp_count_down_complete_message;
 return;
 }
 bp_count_down_message = bp_format_seconds(bp_time_difference, 86400, 100000) + " Days " + bp_format_seconds(bp_time_difference, 3600, 24) + " Hours " + bp_format_seconds(bp_time_difference, 60, 60) + " Minutes " + bp_format_seconds(bp_time_difference, 1, 60) + " Seconds for New Year";
 document.getElementById("bp_count_down_div").innerHTML = bp_count_down_message;
 setTimeout("display_time_difference(" + (bp_time_difference - 1) + ")", 1000);
}
function bp_format_seconds(secs, num1, num2) {
 num = ((Math.floor(secs / num1)) % num2).toString();
 if (num.length < 2) s = "0" + num;
  return "<b>" + num + "</b>";
}

</script>

4. Save your widget and view your Blog.

Thursday 13 October 2011

HTML5 File Upload with Drag & Drop


Dragging and dropping files from your desktop to a browser is one of the ultimate goals for web application integration. This is the first in a four-part series of posts from SitePoint which describes how to:
  1. Enable file dragging and dropping onto a web page element
  2. Analyze dropped files in JavaScript
  3. Load and parse files on the client
  4. Asynchronously upload files to the server using XMLHttpRequest2
  5. Show a graphical progress bar while the upload occurs
  6. Use progressive enhancement to ensure your file upload form works in any browser
  7. Code it in plain ol’ JavaScript without a library.
Step:1 Copy and Paste 
File Name: filedrag.js (you must use this filename exactly)
(function() {
// getElementById
function $id(id) {
return document.getElementById(id);
}
// output information
function Output(msg) {
var m = $id("messages");
m.innerHTML = msg + m.innerHTML;
}
// file drag hover
function FileDragHover(e) {
e.stopPropagation();
e.preventDefault();
e.target.className = (e.type == "dragover" ? "hover" : "");
}
// file selection
function FileSelectHandler(e) {
// cancel event and hover styling
FileDragHover(e);
// fetch FileList object
var files = e.target.files || e.dataTransfer.files;
// process all File objects
for (var i = 0, f; f = files[i]; i++) {
ParseFile(f);
}
}
// output file information
function ParseFile(file) {
Output(
"<p>File information: <strong>" + file.name +
"</strong> type: <strong>" + file.type +
"</strong> size: <strong>" + file.size +
"</strong> bytes</p>"
);
}
// initialize
function Init() {
var fileselect = $id("fileselect"),
filedrag = $id("filedrag"),
submitbutton = $id("submitbutton");
// file select
fileselect.addEventListener("change", FileSelectHandler, false);
// is XHR2 available?
var xhr = new XMLHttpRequest();
if (xhr.upload) {
// file drop
filedrag.addEventListener("dragover", FileDragHover, false);
filedrag.addEventListener("dragleave", FileDragHover, false);
filedrag.addEventListener("drop", FileSelectHandler, false);
filedrag.style.display = "block";
// remove submit button
submitbutton.style.display = "none";
}
}
// call initialization file
if (window.File && window.FileList && window.FileReader) {
Init(); }
})();

Step:2 Copy and Paste
File Name: styles.css (you must use this filename exactly)

body
{
font-family: "Segoe UI", Tahoma, Helvetica, freesans, sans-serif;
font-size: 90%;
margin: 10px;
color: #333;
background-color: #fff;
}

h1, h2
{
font-size: 1.5em;
font-weight: normal;
}

h2
{
font-size: 1.3em;
}

legend
{
font-weight: bold;
color: #333;
}

#filedrag
{
display: none;
font-weight: bold;
text-align: center;
padding: 1em 0;
margin: 1em 0;
color: #555;
border: 2px dashed #555;
border-radius: 7px;
cursor: default;
}

#filedrag.hover
{
color: #f00;
border-color: #f00;
border-style: solid;
box-shadow: inset 0 3px 4px #888;
}

img
{
max-width: 100%;
}

pre
{
width: 95%;
height: 8em;
font-family: monospace;
font-size: 0.9em;
padding: 1px 2px;
margin: 0 0 1em auto;
border: 1px inset #666;
background-color: #eee;
overflow: auto;
}

#messages
{
padding: 0 10px;
margin: 1em 0;
border: 1px solid #999;
}

#progress p
{
display: block;
width: 240px;
padding: 2px 5px;
margin: 2px 0;
border: 1px inset #446;
border-radius: 5px;
background: #eee url("progress.png") 100% 0 repeat-y;
}

#progress p.success
{
background: #0c0 none 0 0 no-repeat;
}

#progress p.failed
{
background: #c00 none 0 0 no-repeat;
}

Step:3 Copy and Paste 
File Name: drag.htm (you can change the filename to anything you like)
<!DOCTYPE html>
<html lang="en"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<title>HTML5 File Drag &amp; Drop API</title>
<link rel="stylesheet" type="text/css" media="all" href="index_files/styles.css">
<style type="text/css" charset="utf-8">/* See license.txt for terms of usage */

/** reset styling **/
.firebugResetStyles {
    z-index: 2147483646 !important;
    top: 0 !important;
    left: 0 !important;
    display: block !important;
    border: 0 none !important;
    margin: 0 !important;
    padding: 0 !important;
    outline: 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    max-height: none !important;
    position: fixed !important;
    -moz-transform: rotate(0deg) !important;
    -moz-transform-origin: 50% 50% !important;
    -moz-border-radius: 0 !important;
    -moz-box-shadow: none !important;
    background: transparent none !important;
    pointer-events: none !important;
}
.firebugBlockBackgroundColor {
    background-color: transparent !important;
}
.firebugResetStyles:before, .firebugResetStyles:after {
    content: "" !important;
}
/**actual styling to be modified by firebug theme**/
.firebugCanvas {
    display: none !important;
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
.firebugLayoutBox {
    width: auto !important;
    position: static !important;
}
.firebugLayoutBoxOffset {
    opacity: 0.8 !important;
    position: fixed !important;
}
.firebugLayoutLine {
    opacity: 0.4 !important;
    background-color: #000000 !important;
}
.firebugLayoutLineLeft, .firebugLayoutLineRight {
    width: 1px !important;
    height: 100% !important;
}
.firebugLayoutLineTop, .firebugLayoutLineBottom {
    width: 100% !important;
    height: 1px !important;
}
.firebugLayoutLineTop {
    margin-top: -1px !important;
    border-top: 1px solid #999999 !important;
}
.firebugLayoutLineRight {
    border-right: 1px solid #999999 !important;
}
.firebugLayoutLineBottom {
    border-bottom: 1px solid #999999 !important;
}
.firebugLayoutLineLeft {
    margin-left: -1px !important;
    border-left: 1px solid #999999 !important;
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
.firebugLayoutBoxParent {
    border-top: 0 none !important;
    border-right: 1px dashed #E00 !important;
    border-bottom: 1px dashed #E00 !important;
    border-left: 0 none !important;
    position: fixed !important;
    width: auto !important;
}
.firebugRuler{
    position: absolute !important;
}
.firebugRulerH {
    top: -15px !important;
    left: 0 !important;
    width: 100% !important;
    height: 14px !important;
    border-top: 1px solid #BBBBBB !important;
    border-right: 1px dashed #BBBBBB !important;
    border-bottom: 1px solid #000000 !important;
}
.firebugRulerV {

    top: 0 !important;

    left: -15px !important;

    width: 14px !important;

    height: 100% !important;
     border-left: 1px solid #BBBBBB !important;
    border-right: 1px solid #000000 !important;
    border-bottom: 1px dashed #BBBBBB !important;
}
.overflowRulerX > .firebugRulerV {
    left: 0 !important;
}
.overflowRulerY > .firebugRulerH {

    top: 0 !important;
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

.fbProxyElement {
    position: fixed !important;
    pointer-events: auto !important;
}</style></head>
<body>

<h1>HTML5 File Drag &amp; Drop API</h1>

<p>This is a demonstration of the HTML5 drag &amp; drop API which retrieves file information.</p>

<p><a href="http://www.webihawk.com">Web i HawK</a></p>
<form id="upload" action="index.html" method="POST" enctype="multipart/form-data">
<fieldset>
<legend>HTML File Upload</legend>

<input id="MAX_FILE_SIZE" name="MAX_FILE_SIZE" value="300000" type="hidden">

<div>
<label for="fileselect">Files to upload:</label>
<input id="fileselect" name="fileselect[]" multiple="multiple" type="file">
<div style="display: block;" id="filedrag">or drop files here</div>
</div>

<div style="display: none;" id="submitbutton">
<button type="submit">Upload Files</button>
</div>

</fieldset>

</form>

<div id="messages">
<p>Status Messages</p>
</div>


<h2><script src="index_files/filedrag.js"></script>
</h2>
</body></html>

Monday 10 October 2011

Circle Navigation Effect with CSS3

Today Codrops want to show you how to create a beautiful hover effect for an image navigation using CSS3. The idea is to expand a circular navigation with an arrow and make a bubble with a thumbnail appear. In our example we will be showing the thumbnail of the next and previous slider image on hovering the arrows. The effect is done with CSS3 transitions.

Monday 3 October 2011

Java Script Image Slider


Java Script Image Slider

Step 1:
Insert the below into the <head> section of your page:

<script language="JavaScript1.1">
var slideimages=new Array()
var slidelinks=new Array()
function slideshowimages(){
for (i=0;i<slideshowimages.arguments.length;i++){
slideimages[i]=new Image()
slideimages[i].src=slideshowimages.arguments[i]
}}
function slideshowlinks(){
for (i=0;i<slideshowlinks.arguments.length;i++)
slidelinks[i]=slideshowlinks.arguments[i]
}
function gotoshow(){
if (!window.winslide||winslide.closed)
winslide=window.open(slidelinks[whichlink])
else
winslide.location=slidelinks[whichlink]
winslide.focus()
}
</script>


Step 2: Insert the below into the <body> section of your page where you wish the slideshow to appear:

<a href="javascript:gotoshow()"><img src="webihawk1.jpg" name="slide" border=0 width=300 height=375></a>
<script>
<!--


//configure the paths of the images, plus corresponding target links
slideshowimages("webihawk1.jpg","webihawk2.jpg","webihawk3.jpg","webihawk4.jpg","webihawk5.jpg")
slideshowlinks("http://webihawk.com/","http://webihawk.com/","http://webihawk.com/","http://webihawk.com/","http://webihawk.com/")


//configure the speed of the slideshow, in miliseconds
var slideshowspeed=2000


var whichlink=0
var whichimage=0
function slideit(){
if (!document.images)
return
document.images.slide.src=slideimages[whichimage].src
whichlink=whichimage
if (whichimage<slideimages.length-1)
whichimage++
else
whichimage=0
setTimeout("slideit()",slideshowspeed)
}
slideit()


//-->
</script>

Sunday 2 October 2011

Microsoft security update identifies Chrome as malware

Microsoft and Google war is getting dirtier day by day. From past few months Microsoft is struggling in the browser wars getting stiff competition form Google Chrome. But, now the search giant has found the way to fend off the competition.

According to a latest report, Microsoft issued an update to its security software that mistakenly marked Google Chrome as malware and deleted it from users' systems accordingly. Though the glitch has been fixed, it has left Google stubbed. 

The gaffe comes after it was reported that Chrome is on track to overtake Firefox by year’s end. Buzz too is referring the faux pas to the battle between Microsoft's Internet Explorer (IE) and Chrome, for usage share.

Sources cited that users witnessed a Windows Security box that said there is security issue which needs to be removed. While users took the required action, Chrome was eliminated form their PC.

However, Microsoft soon posted an alert of its own, regretting the error. The software titan later on offered new Security Essentials and asked users to reinstall Chrome.

It is reported that approximately 3,000 users were affected.

While most of the users are seeing this as an unintentional error, some are suspicious that it could be a dirty trick from Microsoft’s end.

Microsoft refused to comment on this error.

Search Engine Optimization[SEO] Tools,Tips and Techniques

What is SEO?  Why SEO?  How SEO?
"Search engine optimization ,known as SEO , is a a process and art of obtaining ranking for a site under relevant keyword phrases. Search engine optimization (SEO) includes the choice of keywords used in the text paragraphs and the placement of those words on the page, both visible and hidden inside meta tags." 
Four Key Steps to Increase SEO:
  • The first step is to any effort to obtain ranking is to do keyword research. Key research is the process of mining data to determine the extract phrase. These extracted phrases are then updated on your sites.
  • The second step is building the pages that the Search Engine Optimization India robots can actually read. Millions and millions of sites are unable to do this. Simple and Easy rule of KISS(keep it short and simple) should be applied.
  • Third step is to tie the phrases in Second. Different strategies should be used to focus on how to place relevant key phrases in the text. Key phrases should be placed in first two lines.
  • Fourth step is getting indexed in Search Engine. A better approach is to trade a few links or write an article and submit it to article directories. The SEO India robots will find your site naturally & index it within a reasonable amount of time
Our friends over at Search Engine Land released an awesome new infographic that uses the periodic table format to explain all of the SEO ranking factors. Two versions of the infographic are below, but you can download the full-sized version from Search Engine Land
Marketing Takeaway: 
SEO has a lot of ranking factors. Examine the information in this infographic to understand the elements that might currently be missing from your search engine marketing strategy. Understand that SEO today is about far more than keyword stuffing and link building.

Free Download - Improving SEO: A Practical Guide:
Use SEO to drive more visitors to your site.
Download this free eBook for tutorials on keyword research, on-page SEO, link-building, and tips for ongoing SEO improvement!

SEO Advantage:
  • Cost effectiveness
  • Online reputation management and Competitive advantages
  • Pulling market
  • Meeting buyers requirement
  • Improved customer service
  • Risk monitoring
  • Long lasting results
  • Information marketing
  • Brand awareness and perceptions
  • Dramatic increase in brand visibility

Saturday 1 October 2011

Government To Launch $35 Tablet PC On Oct 5

"World's Cheapest Computer is Ready to launch by Indian Government within next week"

The long awaited $35 (Rs 1735) dream tablet promised by the Indian government will finally see the light of the day as the launch date has been fixed for October 5. The low cost computing device touted to be the cheapest in the world, has been a project drawn on lines similar to the OLPC, with the students being the target beneficiaries.


HRD Minister Kapil Sibal said at a function, "The computer will be launched next month. This is not just a dream, it is a reality". While he said that the name for the device has been finalised and will be announced at the time of the launch, he declined to elaborate further. He stated that this computer will prove to be a very useful tool for students because it can do everything expected of a computer with internet connectivity.

"Sibal said that the tablet has been developed through public-private association. It would be quite interesting to see how the new device boosts the learning abilities of children. We’re quite optimistic about adoption of the new tablet. However, it’s quite amusing to know why all Indian MPs were given iPad 2 for personal use by Indian Government. What do you think?"


“Soon, a $35 computer will be made available to every child in school. The tablet shall help enhance the quality of learning of children,” said Sibal.

Features:
  • Touchscreen 
  • In-built keyboard 
  • Video conferencing facility 
  • Multimedia content 
  • Wi-Fi
  • USB port
  • 32GB hard drive
  • 2GB RAM
  • Web-conferencing
  • PDF reader unzip.
Sibal had unveiled the prototype of this device in July last year. It is expected to have a 5 \ 7 \ 9 " touch screen with an internet browser, PDF reader, video conferencing facilities, Open Office, Sci-lab, media player, remote device management capability, multimedia input-output options, and multiple format file viewer. The actual specifications still remain under the covers and will be revealed only when it is actually launched. However, it was reported not long back on this website that the name of the tablet is Sakshat and its specs were also revealed along with the news that it will be launched in June, which never happened. We don't have any reason to believe that it is not the same tablet that is going to be launched on October 5.

The HR ministry has stated that the device will be launched with a considerably low $35 (Rs 1735) price tag at the start, which will eventually be slashed to $20 (Rs 990), and finally to $10 (Rs 495) over a period of time. Let's hope that the government delivers something real on October 5.

Friday 30 September 2011

Great Website for Developers & Programmers

If you are a programmer or a web developer who often needs to shuffle between writing code in multiple languages, check out searchco.de – this is an instant search engine for all programming related documentation and nothing else.

You type a function name and searchco.de will pull a list of all languages where that function is available along with the syntax and description. Alternately, you may prefix the function name with the language name – like jquery slide - to limit your search results to a particular language.

In addition to regular programming languages, searchco.de also indexes documentation for Windows and Linux commands.


However, if you are looking to search for code snippets or to debug problems in your existing code, Google’s Code Search is still your best friend. You can even find code using regular expressions, a feature that is not available inside Google's web search.

Google Code Search is part of Google Labs so am not too sure if it will survive once Google retires the Labs section altogether.


Twitter Delicious Facebook Digg Stumbleupon Favorites More