Showing posts with label Funny. Show all posts
Showing posts with label Funny. Show all posts

Wednesday, January 30, 2013

Facebook Graph Search - some interesting queries

today I got approved by Facebook to use their graph search.

I played with it a bit and found it very useful in exploring the unknown/unexplored.

here are few of them:

1. Friends of friends who like to dance



2. Friends of my friends who live in San Francisco, California and work at Google



3.  This time, I'm looking for anyone who love playing cricket but is from my city. (I'm big fan of cricket so need to find more players)

"People who like Cricket and live in San Jose, California"



4. looking for job and willing to apply to company 'A'? you need to explore 1st, 2nd degree of connections to work in that company

"Friends of my friends who work at Google "



5. Facebook doesn't understand what is what - they seems to be missing natural language processing and I hope they know it and are working to improve it.

 



 

Graph Search if used cleverly, it could provide lots of insite into what we need.

 

that's all folks!

 

 

Amazing Page Architecture - Measuring the thickness of the web pages

disclaimer: i'm not css/html expert.

I believe that browsers render web pages in x,y co-ordinates (width, height) however they also keep the z-index. The z-index is somewhat controlled by css code. The performance of the page rendering is also controlled by how deep the content is i.e. depth of the displayable html element. Performance degrades as we move the elements deep inside the container elements. e.g.

<div><div><div><h3>hello world!</h3></div></div></div>

Some javascript operations (which operates on DOM structure internally, e.g. getelementbyid), also get affected by how deep the target element lies as it needs to traverse through the DOM tree.

Figuring out the depth of the element in the static html is easy however when it comes to browser, it all depends on how we generate final html code, using javascript,css as Dynamic Html. In this case the final view of the html codebase can be viewed only by the browser's internal memory.

I tried to play with the browser ('Firefox') tool and found very interesting web page architectures (because they look like amazing colorful physical designs) of google and HN home pages.

feel free to explore the gallery below:

[gallery link="file"]

Monday, October 17, 2011

Youtube Insult Generator

Insult Generator is a basically a "search engine for insults." Type in a search term, and it'll give you insults you can use against a person who doesn't like that term.

for example, enter the term "usa" and you will get below results:
You aren't american #
You have no heart :(
You need to diaf
You don't have an ocean...
You cant surf!
You are jealous

Each insult includes a link to its source YouTube video.

How does this search engine work?
1. It uses the YouTube API to search for the top 50 most relevant videos for your search term.
2. For each of those videos, it grabs the latest 50 comments.
3. Then it looks through all that for comments starting with a number followed by a word such as "people," "youtubers" or "nincompoops." (View source for the full list, a regular expression that would make Alex Gaynor proud.)
4. Finally, it just replaces the number and the word "people" with "You."

Insult Generator does work for 50% of times however when it works, it does pull amazing results.

click here to try it out!

!!!Insult!!!

*** don't abuse. use it wisely ***