building your first web application using yahoo! apis

75
Building your first Web App - An introduction into the world of Ethical Hacking “Not just another boring talk” Harsha R Vashisht http://www.harsharv.com

Upload: harsha-vashisht

Post on 06-May-2015

2.517 views

Category:

Documents


0 download

DESCRIPTION

This was a presentation I gave in MSRIT a few years ago..

TRANSCRIPT

Page 1: Building your first web application using Yahoo! APIs

Building your first Web App- An introduction into the world of Ethical Hacking

“Not just another boring talk”

Harsha R Vashishthttp://www.harsharv.com

Page 2: Building your first web application using Yahoo! APIs

Hi people

Page 3: Building your first web application using Yahoo! APIs

My name is Harsha R Vashisht

Page 4: Building your first web application using Yahoo! APIs

and I work for Yahoo!

Page 5: Building your first web application using Yahoo! APIs

I am a Developer Evangelist and I am going to talk about how you can build web applications with the help

of Yahoo!

Page 6: Building your first web application using Yahoo! APIs

This is going to be an interactive session, so don’t stop yourself from

asking questions.

Page 7: Building your first web application using Yahoo! APIs

What are we going to do today?

Page 8: Building your first web application using Yahoo! APIs

Basic Web development

Page 9: Building your first web application using Yahoo! APIs

Sleep…

Page 10: Building your first web application using Yahoo! APIs

Wake up for Pipes! Its Awesome

Page 11: Building your first web application using Yahoo! APIs

Check out YQL. It’s awesome too

Page 12: Building your first web application using Yahoo! APIs

Oh! I forgot. All stuff that we are releasing these days are just

awesome

Page 13: Building your first web application using Yahoo! APIs

BOSS (Baba )

Page 14: Building your first web application using Yahoo! APIs

Sleep, sleep and more sleep

Page 15: Building your first web application using Yahoo! APIs

YUI and other useful services

Page 16: Building your first web application using Yahoo! APIs

How will it help in my college projects?

Page 17: Building your first web application using Yahoo! APIs

The Yahoo Developer Network is the central source of everything

Yahoo! does to make developers happy!

Page 18: Building your first web application using Yahoo! APIs

http://developer.yahoo.com/

Page 19: Building your first web application using Yahoo! APIs

Web - development

Page 20: Building your first web application using Yahoo! APIs

Computer industry is waiting for you guys to write another compiler

Page 21: Building your first web application using Yahoo! APIs

Of the top FIVE paying companies amongst all colleges under VTU,

FOUR of them are web based

Page 22: Building your first web application using Yahoo! APIs

For developing a web app I need to know:

• PHP (Yeah!) / Python / Asp.Net / JSP / PERL

• HTML

• JavaScript

• CSS (helps to make your page look better)

Page 23: Building your first web application using Yahoo! APIs

Ok.. We know PHP.. And agree that it rocks!!!!

Page 24: Building your first web application using Yahoo! APIs

But for this session I need to know cURL. It’s useful.

Page 25: Building your first web application using Yahoo! APIs

cURL – client URL A cURL call helps me fetch a page

given a URL

Page 26: Building your first web application using Yahoo! APIs

Now let us look at Pipes...

http://pipes.yahoo.com

Page 27: Building your first web application using Yahoo! APIs

Pipes!!! – Is this similar to Unix pipe operator?

Page 28: Building your first web application using Yahoo! APIs

Yes. A couple of people at Yahoo! thought that having a Unix like pipe

for the web. It is kick ass!

Page 29: Building your first web application using Yahoo! APIs

Now. Let me build a sample mash up using pipes.

Page 30: Building your first web application using Yahoo! APIs

It is the Lok Sabha elections time. Lets aggregate news about it

Page 31: Building your first web application using Yahoo! APIs
Page 32: Building your first web application using Yahoo! APIs

Lok Sabha Elections!!!!!!

Looks like our friend has bought the keyword “Lok Sabha Elections”

every where. Literally!!!

Page 33: Building your first web application using Yahoo! APIs

Terminology

• Source: your data source, similar to cat or echo.

• Operator: anything that operates on data.

• Pipe: a pipe of data from an operator or source to an operator or destination, same as |.

• Output: the last element in your pipe, this returns data to the user.

Page 34: Building your first web application using Yahoo! APIs

Duck.. There will be code

Page 35: Building your first web application using Yahoo! APIs

I can fetch it using..

$url = 'http://pipes.yahoo.com/pipes/pipe.run?_’.’id=ZBGw3O4L3hG8R_C5AFYZ7A&_render=php';

function fetchURL($url)

{

$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url ); curl_setopt($ch, CURLOPT_POST, 0 ); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); return curl_exec($ch);

}

$data = unserialize(fetchURL($url));

Page 36: Building your first web application using Yahoo! APIs

Now.. Wake up guys..

Page 37: Building your first web application using Yahoo! APIs

Its YQL time

Page 38: Building your first web application using Yahoo! APIs

YQL is Yahoo! Query Language

Page 39: Building your first web application using Yahoo! APIs

YQL is a SQL-style interface to all Yahoo data – and the web!

Page 40: Building your first web application using Yahoo! APIs

It is like the bottle opener of the Web, a single interface for all the properties of Yahoo! which have

exposed their APIs

Page 41: Building your first web application using Yahoo! APIs

The best part of YQL is the concept of open tables, in addition to the

50+ Yahoo tables

Page 42: Building your first web application using Yahoo! APIs

http://developer.yahoo.com/yql/console

http://developer.yahoo.com/yql/guide

Page 43: Building your first web application using Yahoo! APIs

Lets look at YQL

Page 44: Building your first web application using Yahoo! APIs

BOSS – Build your Own Search Service

Page 45: Building your first web application using Yahoo! APIs

Fourth highest number of search queries

Page 46: Building your first web application using Yahoo! APIs

First get an App Id

Page 47: Building your first web application using Yahoo! APIs

http://boss.yahooapis.com/ysearch/web/v1/katrina?format=xml&appid=...

Page 48: Building your first web application using Yahoo! APIs

http://boss.yahooapis.com/ysearch/web/v1/katrina?format=xml&view=keyterms&appid=...

Page 49: Building your first web application using Yahoo! APIs

Then you take YUI CSS grids, and spend 30 minutes playing with

colours and fonts.

Page 50: Building your first web application using Yahoo! APIs

And you have a product: http://keywordfinder.org

Page 51: Building your first web application using Yahoo! APIs

What else can I do?

Page 52: Building your first web application using Yahoo! APIs

Image SearchKeywords

Spelling suggestionsFilters

etc etc..

Page 53: Building your first web application using Yahoo! APIs

What is done with BOSS?

• http://isithackday.com/hacks/web-the-adventure/

• http://ask-boss.appspot.com/

• http://hakia.com/

• http://www.oneriot.com/

Page 54: Building your first web application using Yahoo! APIs

Sample code

Page 55: Building your first web application using Yahoo! APIs

http://paul.slowgeek.com/hacku/

Page 56: Building your first web application using Yahoo! APIs

YUI

Page 57: Building your first web application using Yahoo! APIs

Let’s take a walk... ...on the client side

Page 58: Building your first web application using Yahoo! APIs

The client side is where strange things happen.

Page 59: Building your first web application using Yahoo! APIs

Browsers render in fascinating and totally wrong ways.

Page 60: Building your first web application using Yahoo! APIs

YUI is a framework to build working web applications.

Page 61: Building your first web application using Yahoo! APIs

It includes CSS solutions to create layouts that work across browsers

and allow for predictable typography.

Page 62: Building your first web application using Yahoo! APIs

And it takes the pain out of writing JavaScript.

Page 63: Building your first web application using Yahoo! APIs

Last but very much not least it allows you to create applications using tested and working widgets that extend what HTML gives us.

Page 64: Building your first web application using Yahoo! APIs

Interface Widgets AutoComplete

DataTable Button Layout

Calendar Menu

Rich Text Charts TabView Container

Page 65: Building your first web application using Yahoo! APIs

http://developer.yahoo.com/yui/grids/builder/

Page 66: Building your first web application using Yahoo! APIs

http://isithackday.com/hacks/delhi/

Page 67: Building your first web application using Yahoo! APIs

What else does Yahoo! provide?

Page 68: Building your first web application using Yahoo! APIs

Design Patterns

Page 69: Building your first web application using Yahoo! APIs

Patterns are optimal solutions to common problems.

Page 70: Building your first web application using Yahoo! APIs

http://developer.yahoo.com/ypatterns/

Page 71: Building your first web application using Yahoo! APIs

Flickr

Page 72: Building your first web application using Yahoo! APIs

http://developer.yahoo.com/everything.html

Page 73: Building your first web application using Yahoo! APIs

End

Every business in the world is just another

Page 74: Building your first web application using Yahoo! APIs

Thanks

Page 75: Building your first web application using Yahoo! APIs

Harsha R Vashishthttp://www.harsharv.comhttp://twitter.com/harsharv

[email protected]@harsharv.com