Pages

Showing posts with label tutorial. Show all posts
Showing posts with label tutorial. Show all posts

Tuesday, March 3, 2015

Google Book Search Camtasia Tutorial Rich Hoeg

Tutorial (PDF Version): http://econtent.typepad.com/GoogleBooks/Google-Book-Search.html
Google Book Search: http://books.google.com/
Google Book Advanced Search: http://books.google.com/advanced_book_search

WHAT?
Search the full text of books to find ones that interest you and learn where to buy or borrow them.

HOW?
Book Search works just like web search: Try a search on Google Book Search or on Google.com. When they find a book whose content contains a match for your search terms, Theyll link to it in your search results. Clicking on a book result, youll be able to see everything from a few short excerpts to the entire book, depending on a few different factors.

VIEW?
  • Full view: If weve determined that a book is out of copyright, or the publisher or rightsholder has given us permission, youll be able to page through the entire book from start to finish, as many times as you like. If the book is in the public domain, youll also be able download, save and print a PDF version to read at your own pace.
  • Limited preview: If a publisher or author has joined our Partner Program, youll be able to see a few full pages from the book as a preview. You can conduct multiple searches within the book, or browse through the available pages (theres a limit to the amount of the book you can view online).
  • Snippet view: Clicking on the book result, youll be taken to the About this book page. If you choose to search within the book, for each search term well display up to three snippets of text from the book, showing your search term in context. You can enter additional searches to help you decide whether youve found the right book. As always in Book Search, youll see links to places where you can buy or borrow the book.
  • No preview available: For books where were unable to show you snippets, youll see an About this book page displaying bibliographic information about the book, plus links to help you find it in a bookstore or library.

JUICE?
Look out for the new yummy "My Library" option discussed in the juicy screencast tutorial below. This option allows the user to save books to ones own personal bookshelf, and also share those books via RSS.

  • Google Books Screencast Tutorial (5 minutes in length)
  • Download the annotated screenshots (PDF) for use as a help file
  • Orginal Google Books screencast - Has more technical examples and links, but does not review the "My Library" option.

REFLECTION TIME!
Actually, I just wanted to share with you a great screencast by Rich Hoeg on how to use Google Book Search effectively. I suppose most of us have tried it, but then again how many of us know how to use it effectively to facilitate our learning?

Although, it is not as funny as the 5-minute University, I am pretty sure that this 5-minute Camtasia tutorial might have a greater impact on the way we access and learn from books :)

Read more »

Saturday, February 14, 2015

Working With Error Provider in VB Net Video Tutorial

What is Error Provider?

Error provider is a control that alerts the user that something is wrong in his input. Or simply it just helps in validating data entered from user.

In this example, we will see how to display a warning icon when user enter some wrong or unacceptable input.


Working With Error Provider in VB.Net [Video Tutorial]


How to Use Error Provider in VB.Net

1. Simply drag a label & textbox control on your windows application form.

2. Change its Label text to ID or whatever you want.

3. Add a button & change its text to "Submit" on your windows form application.

4. Search for error provider in your toolbar & add it to your windows form application.

5. Double click Submit Button.

6. First we will check if the text in the textbox is numeric or not. If it not numeric then it will throw an exception else display confirmation message.

7. So the code to check if input is numeric is not is:

If Not IsNumeric(Me.Textbox1.Text) Then
Me.Errorprovider1.SetError (Me.Textbox1,"Enter Numeric Input")
Return
Else
MsgBox("Accepted")
End If

8. Now, we will check for Null Values. Code to check Null Values is:

If Not IsNothing(Me.Textbox1.Text) Then
Me.Errorprovider1.SetError (Me.Textbox1,"Please enter some values")
Return
Else
MsgBox("Accepted")
End If
Read more »

Thursday, February 5, 2015

Android beginner tutorial Part 77 Settings

Today we start learning about settings and preferences in Android.

Settings can be an important part of some Android applications. They allow users to change the behavior of the application using a list of components that let the user control their preferences.

There is a native way of providing modifiable settings for your application using the Androids Preference APIs.

To create a settings Activity for your application, you dont need to display and handle all the Views on your own. The whole process can be done by providing an XML file which is built using subclasses of the Preference class.

Each Preference is an item in a list and provides an approporiate native way to modify a setting. Each Preference that you add has a key-value pair that is used to save the respective setting in a SharedPreferences file for your applications settings. The file is used to read the setting values in your application to modify its behaviour.

The values stored in that file for each setting can be one of the following types: Boolean, Float, Int, Long, String or Set of Strings.

The class used for building the settings Activity is PreferenceActivity. It is supported by all Android versions. There is another way to display the settings screen for Android versions 3.0 and higher - that is to create a normal Activity and use a PreferenceFragment inside of it that displays the settings.

As I said before, each setting in the application is represented by an instance of a Preferences subclass. Some of the most commonly used ones are CheckBoxPreference, ListPreference and EditTextPreference.

The CheckBoxPreference component is an item with a checkbox and works like a switch - possible values are true and false, so the data type is Boolean.

The ListPreference class is an item that opens a dialog with a list of radio buttons that the user can select. The saved data type can be any type listed above.

The EditTextPreference preference opens a dialog that lets the user input their text, saved data type is a String.

And that will be all for today. Next time well try creating a preference screen ourselves.

Thanks for reading!
Read more »

PhoneGap tutorial parsing xml file and displaying results on android screen

Parsing xml file using JavaScript for PhoneGap Applications.

Hi Friends i am going to show how to parse xml file using javascript without using using any jQuery  Mobile Here is the xml file i am going to parse :



MakeMyTrip.com
MakeMyTrip.com is one of the good website providing Travel services to book oonline Flight,Hotel,Train and Bus tickets with guranteed lowest prices and provides new deals , offers and discount coupons every week and help you save money upto 20% while you travel.
travellogos/makemytrip-logo.jpg


GoIbibo.com
GoIbibo.com is one of the good website providing Travel services to book oonline Flight,Hotel,Train and Bus tickets with guranteed lowest prices and provides new deals , offers and discount coupons every week and help you save money upto 20% while you travel.
travellogos/goibibo_logo.png


Abhibus.com
Abhibus.com is one of the good website providing Travel services to book oonline Flight,Hotel,Train and Bus tickets with guranteed lowest prices and provides new deals , offers and discount coupons every week and help you save money upto 20% while you travel.
travellogos/abhibus-logo.png


Travelyaari.com
Travelyaari.com is one of the good website providing Travel services to book oonline Flight,Hotel,Train and Bus tickets with guranteed lowest prices and provides new deals , offers and discount coupons every week and help you save money upto 20% while you travel.
travellogos/travelyaari-com-logo-w240.png


Redbus.in
Redbus.com is one of the good website providing Travel services to book oonline Flight,Hotel,Train and Bus tickets with guranteed lowest prices and provides new deals , offers and discount coupons every week and help you save money upto 20% while you travel.
travellogos/logo_bc9228d_163.jpg


Expedia.co.in
Expedia.co.in is one of the good website providing Travel services to book oonline Flight,Hotel,Train and Bus tickets with guranteed lowest prices and provides new deals , offers and discount coupons every week and help you save money upto 20% while you travel.
travellogos/expedia-logo.png


Other websites
We Provide more websites that offer good Travel services to book oonline Flight,Hotel,Train and Bus tickets with guranteed lowest prices and provides new deals , offers and discount coupons every week and help you save money upto 20% while you travel.
travellogos/travel-agency-logos.jpg



I am going to parse above xml file and display results as below Here is the JavaScript file source code : Travel.js

function travel(){
if (window.XMLHttpRequest)
{ // code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{ // code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET","Travel.xml",false);
xmlhttp.send();
xmlDoc=xmlhttp.responseXML;
travels = xmlDoc.getElementsByTagName("website");
alert("travels:"+travels.length);
var websites = [];
var description = [];
var logos = [];
for(var travel=0;travel websitename=travels[travel].getElementsByTagName("sitename")[0].childNodes[0].nodeValue;
var websites.push(websitename);
var des=travels[travel].getElementsByTagName("Description")[0].childNodes[0].nodeValue;
description.push(des);
var images = travels[travel].getElementsByTagName("Image")[0].childNodes[0].nodeValue;
logos.push(images);
}
var listview = document.getElementById("container");
var ul = document.createElement("ul");
for(var i=0;i var livalue= document.createTextNode(websites[i]);
var desvalue = document.createTextNode(description[i]);
var li = document.createElement("li");

var table = document.createElement("table");
var table1 = document.createElement("table");
var tr1 = document.createElement("tr");
var td1 = document.createElement("td");
var img = new Image();
img.src= logos[i];
img.setAttribute("width",60);
img.setAttribute("height",30);
img.setAttribute(onclick, "test()");
td1.appendChild(img);
tr1.appendChild(td1);
var tr2 = document.createElement("tr");
var td2 = document.createElement("td");
var td3 = document.createElement("td");
td2.appendChild(livalue);
td3.appendChild(desvalue);
tr1.appendChild(td2);
tr2.appendChild(td3);
table.appendChild(tr1);
table1.appendChild(tr2);
li.appendChild(table);
li.appendChild(table1);
ul.appendChild(li);
}
listview.appendChild(ul);

}
Here is the html source code : Coupons.html






Minimal AppLaud App











Coupons Shop












Css file used for this page : Styles.css source code

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
outline: none;
}
html { height: 101%; }
body { font-size: 62.5%; line-height: 1; font-family: Verdana, Arial, Tahoma, sans-serif; }

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
ol, ul { list-style: none; }

blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ; content: none; }

table { border-collapse: collapse; border-spacing: 0; }
img { border: 0; max-width: 100%; }

a { text-decoration: none; }

/** content display **/
#view { display: block; max-width: 800px; padding: 0; margin: 0; }

#container { display: block; margin-top: 55px; }
#container ul { }
#container ul a li {
display: block;
width: 100%;
height: 90px;
border-bottom: 1px solid #b9b9b9;
border-top: 1px solid #f7f7f7;
background: #ebebeb;
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ffffff) to(#ebebeb));
background-image: -webkit-linear-gradient(top, #ffffff, #ebebeb);
background-image: -moz-linear-gradient(top, #ffffff, #ebebeb);
background-image: -o-linear-gradient(top, #ffffff, #ebebeb);
background-image: linear-gradient(top, #ffffff, #ebebeb);
}

#container ul a { display: block; position: relative; width: 100%; }
#container ul li h2 { font-size: 2.1em; line-height: 1.3em; font-weight: normal; letter-spacing: -0.03em; padding-top: 4px; color: #55678d; }
#container ul li p.desc { color: #555; font-family: Arial, sans-serif; font-size: 1.3em; line-height: 1.3em; white-space: nowrap; overflow: hidden; }

#container ul li .price { position: absolute; bottom: 10px; left: 90px; font-size: 1.2em; font-weight: bold; color: #6ea247; }

#container ul li img.thumbnail {
background: #fff;
display: inline-block;
float: left;
padding: 2px;
margin-top: 6px;
margin-left: 5px;
margin-right: 8px;
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

#container ul a:hover li h2 { color: #7287b1; }
#container ul a:hover li p.desc { color: #757575; }

#container ul a:hover li {
background: #efefef;
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ffffff) to(#efefef));
background-image: -webkit-linear-gradient(top, #ffffff, #efefef);
background-image: -moz-linear-gradient(top, #ffffff, #efefef);
background-image: -o-linear-gradient(top, #ffffff, #efefef);
background-image: linear-gradient(top, #ffffff, #efefef);
}

/** top header bar **/
header {
display: block;
position: fixed;
top: 0;
z-index: 9999;
height: 55px;
width: 100%;
max-width: 800px;
border-bottom: 1px solid #262422;

background: #195d95;

}

header h2 { font-size: 2.4em; font-family: Tahoma, Arial, sans-serif; font-weight: bold; line-height: 55px; text-align: center; color: #efefef; text-shadow: 1px 1px 0px #000;
animation-duration: 3s;
animation-name: slidein;
}

@keyframes slidein {
from {
margin-left: 100%;
width: 300%
}

to {
margin-left: 0%;
width: 100%;
}
}


/** basic media queries **/
@media only screen and (max-width: 480px) {
#container ul li h2 { font-size: 1.75em; }

#container ul li img.thumbnail { margin-top: 2px; }
}

@media only screen and (max-width: 320px) {
#container ul li p.desc { display: none; }
}


/** clearfix **/
.clearfix:after { content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0; }
.clearfix { display: inline-block; }

html[xmlns] .clearfix { display: block; }
* html .clearfix { height: 1%; }
ScreenShot
Read more »