SmexyyWeby

Scripting for Fun and Passion

Category Archives: Facebook

Calculate Age from Shoe Size m//


Find Age from Shoe Size

Find Age from Shoe Size

I saw the above image floating around in my facebook feed today and was quite amused at how people believe in such plain simple mathematical illusions. So as I was a bit free in office and found this problem to be pretty easy. I found the simple equation and the detailed explanation of the same and posted it as a comment on the post.

My Comment went like this:

Won’t work for the following cases:

1. Your shoe size is greater than 9
2. Your age is greater than 99

And yes it will only work in the year 2012 and not any other. For other years simply use the (birthYear- 1000) instead of 1012.

Also it is not just true for your shoe size but also for the number of nose, eyes, ears you have. Also it works for the current hour number if its less than 10. If its more than 10 then simply use the last 2 digits of the solution. Try it with your cloth sizes as well, just use the last 2 digits. Simple MATH =)

Also here is the full calculation:

Let shoe size be x
Then final number is {(5*(x)+50)*20 + 1012 - birthYear}
{= (100*x) + 2012 - birthYear}
{= X00 + (Your Age in 2012)}

PS: X00 means put 2 zeroes at the end of X.
Now since your age is mostly going to be a 2 digit number,
Hence, {X00 + (Your Age in 2012) = A number with last 2 digits equal to your age } .

Hence proved.

I hope people are more interested in enjoying the math behind these posts than just being amazed by the pointless magic. m//

Hoping to get some likes for my comment =D

Advertisements

Reject ALL Requests with 1 Click


Hi everyone, thanks for visiting my last article on Confirm ALL Friend Requests with 1 Click I received a lot of feedback regarding that on twitter. A lot of them asking to also give a code for REJECTing all the requests on Facebook with 1 click.

Thanks Saptak for the idea. Here you are =)

So when you get a lot of friend requests and find it boring to click Not Now on each one of them. Then just create this bookmarklet and use it to REJECT all friend requests with just 1 click. Simple!

Important point: this bookmarklet will reject all the requests on the page including event invites, apps, etc.

I have already given a tutorial on how to make a bookmarklet in your browser. So if you are a newbie to makeing a bookmarklet read How to Invite all Friends Facebook Event

In the above Bookmarklet just change the URL to the following code to get your bookmarklet for confirming all friend requests.

javascript: var field = document.getElementsByName("actions[hide]");for (i = 0; i < field.length; i++)field[i].click() ;
Reject Requests but do confirm the one's you do want to add

Reject Requests but do confirm the one's you do want to add

Now once created. Go to the following page to get all your Friend Requests: http://www.facebook.com/reqs.php and use the bookmarklet to reject all your requests which you do not want. [Don’t forget to accept the ones you do want manually before clicking the bookmarklet].

PS: Its unsafe to accept unknown friend requests on facebook as a lot of your private information which you wish only your close friends should know becomes accessible to all your facebook friends. This includes messages, contacts, personal pictures etc.

Please feel free to post a comment if you find any difficulty in using the bookmarklet.
Also Read about how to make the bookmarklet which Confirm ALL Friend Requests with 1 Click
Feel free to share the information and help others.

Confirm ALL Friend Requests with 1 Click


Facebook is growing and so is the about of connections we are making. It happens a lot of time that when people join facebook that they get a lot of friend requests. Its highly suggested that you make friends with only the people you know.

So when you get a lot of friend requests and find it boring to click confirm on each one of them. Then just create this bookmarklet and use it to confirm all friend requests with just 1 click. Simple!

I have already given a tutorial on how to make a bookmarklet in your browser. So if you are a newbie to makeing a bookmarklet read How to Invite all Friends Facebook Event

Join Zipcar and get $25 in free driving

In the above Bookmarklet just change the URL to the following code to get your bookmarklet for confirming all friend requests.

javascript: var field = document.getElementsByName("actions[accept]");for (i = 0; i < field.length; i++)field[i].click() ;
Confirm Requests

Confirm Requests but do Reject the one’s you don’t want to add

Now once created. Go to the following page to get all your Friend Requests: http://www.facebook.com/reqs.php and use the bookmarklet to confirm all your new friend requests. [Don’t forget to reject the ones you don’t want manually before clicking the bookmarklet].

PS: Its unsafe to accept unknown friend requests on facebook as a lot of your private information which you wish only your close friends should know becomes accessible to all your facebook friends. This includes messages, contacts, personal pictures etc.

Join Zipcar and get $25 in free driving

Please feel free to post a comment if you find any difficulty in using the bookmarklet.
Feel free to share the information and help others.

Join Zipcar and get $25 in free driving

Invite all Facebook Friends for Event Bookmarklet


Facebook Invite all Friends to events Bookmarklet

Facebook Invite all Friends to events Bookmarklet

Hello Folks,

A lot of time you end up in this situation where you have created a new Facebook event and would want to invite all your friends to attend that event. If you have a lot of friends then its a real trouble clicking on select for all the friends and then sending the invites.

To solve this problem I have created a small bookmarklet which automates the process of selecting all your friends for inviting to an event just with the click of the mouse button.

First of all Create a Bookmarklet in your Browser. I am stating the steps for Chrome Browser.

  1. Right Click on the Bookmarks Bar and Click on Add New Page… [Click Ctrl+Shift+B to open Bookmarks bar if its not there] 

    Create New Bookmarklet

    Create New Bookmarklet

  2. Give a Name to the Bookmarklet. 

    Edit Bookmarklet

    Edit Bookmarklet

  3. In the URL Section enter the following code. 
    javascript: var field = document.getElementsByName("checkableitems[]");for (i = 0; i < field.length; i++)field[i].checked = true ;
  4. Hit OK and your Bookmarklet will show in your Browser Bar.

Following are the steps to invite all your friends to an event. Lets consider the event Youth 2 Business – IIT Kharagpur 

  • Go to the Event Page https://www.facebook.com/event.php?eid=231553940227603
  • Click on +Select Guests to Invite
  • An Invite Friends box will open. Drag the scroll bar to the end of that box. [It will happen slowly as facebook loads all your friends as you scroll to the bottom of the box. Make sure you end only when the box is at the very end of the scroll space as shown in the picture.]

    Instructions for Invite Friends Box

    Instructions for Invite Friends Box

  • Click on the Bookmarklet from your browser bookmark Bar.
  • All your friends will be selected. Now click on Submit and your invites will be sent. 
Please feel free to post a comment if you find any difficulty in using the bookmarklet.
Also if you want you can try using the bookmarklet at our event Youth 2 Business – IIT Kharagpur . Visit the link to try it out. https://www.facebook.com/event.php?eid=231553940227603
Feel free to share the information and help others.

Enable Facebook Timeline


My Facebook Timeline

Today I enabled the new Facebook Timeline Feature using the developer preview available.

Following are the steps to enable your timeline:

  1. Go to this Facebook Developers App Page at: https://developers.facebook.com/apps

    Facebook Developers Apps

    Facebook Developers Apps

  2. Click on Create New App and write the Name and namespace for your new app. Click on Continue.

    Create New App

    Create New App

  3. Now on your applications Settings Page. Click on the Edit Open Graphlink as shown in the screen shot below.

    Edit Open Graph

    Edit Open Graph

  4. Now on the Getting Started Page Enter the Action and Object for your application and click on Getting Started.  

    Set Actions and Objects to Enable Timeline

    Set Actions and Objects to Enable Timeline

  5. Now Go to your Homepage and You on the top you will see an invitation to Enable Timeline. And there you are. With all the new Facebook Features.

Watch the Facebook Timeline Feature video and learn about the new set of possibilities through it. The Feature was launched at the Facebook Annual f8 Developer confernece.

Watch the conference live at www.facebook.com/f8

Do post in your valuable feedback and comments about the new Facebook Upgrade

%d bloggers like this: