Why I hate Facebook personally ?

Why I hate Facebook personally because of :

    1. Its Interface
    2. Ok I admit I am no geek, so I took more than a week to understand the setting and buttons on Facebook. I hate Facebook as it no way supports the KISS(Keep it simple Silly) principle. There are buttons on every nook and cranny demanding some attention and action.

 

      Once registered you might be guided to fill this or that part simply because Facebook knows that you are lost. Settings have been categorized and then sub-categorized. Most never make sense initially and when you are fed up of the constant reminders, notifications, poking, tagging etc. you will never find which setting to change.

 

      I thought may be I am the only one until I did a Google trends for “Facebook help”, just check the results and you will understand what I mean.
    1. Privacy Issues
    2. Do I even need to elaborate this! Facebook has always been hated because of their lack of Privacy. Facebook was made for people to connect & socialize. Perhaps Mr Zuck never guessed that millions will connect in so fast without even realizing that Facebook is about sharing almost everything. Users started to hate facebook because of this and in came Google and Google+ corrected this. Facebook was later forced to add Privacy settings and now you can choose with whom you want to share.

 

      Even after enhanced Privacy settings still some countries believe that Tagging is a serious violation of User Privacy. I personally never add any private photos on Facebook profile but my friends can easily upload any group picture and anyone can Tag it. Now I have the option of un-tagging my picture and also reporting to Facebook….great ! Others can add you to Facebook Groups, but hey, you can leave that group later !
    1. Lack of Control and Timeline
    2. I cannot change the Interface in anyway. I cannot choose the colour or the template or anything about how Facebook may look however Facebook can always keep testing their ideas and later without asking change it to frightening “Timeline”. Timeline what ???

 

      I told before, I hate Facebook interface and learned to navigate in a week or so and when I was a bit comfortable they changed it to Timeline. Should I bother to understand the timeline, hell I would!
    1. Notifications and Emails
    2. There is a very thin line between Notification/Reminders and SPAM. Facebook used it to its benefit. Whether you want it or not people keep tagging and adding you in Groups and Facebook would flood you with notifications. There are Game requests and notifications for that too. I never played a single game and yet am flooded with Game requests !

 

      Thankfully Facebook reduced the E-mails sent else whenever I would not be able to get online for a week or so, it would fill my Inbox and bombard me with reminders and notifications.
    1. Waste of Time
    2. I log into Facebook and 99% of times I see “Good Morning”, “Good Evening”,”Hi” with no other updates. Then there are people who would update almost everything e.g. when they wake up, eat, sleep, f*rt, etc. I think Facebook has given this false belief to everyone that they matter online. Everyone is there to write their opinion and I am forced to skim through a lot of Garbage.

 

      I also waste time by un-tagging and leaving bizarre groups which I am added regularly. While I changed the setting already yet I wonder how this thing never stops.

 

    There are people who are in a race to have more friends than some other idiot and you will get Friend requests from people whom you do not know.

While I may hate the Facebook yet this website is viral. Can you believe that there almost 8-10% fake profiles on Facebook. So think about it ! There are millions who waste not only their time but even yours with more than 1 profile ! I have met people who spend hours everyday online liking, sharing, tagging, grouping, gaming, posting, following and what not on Facebook. They tell me “Time has killed them, now they are killing time through Facebook”. Do they realize that at the end of the day they are doing “nothing” in real sense !Why I hate Facebook as a User ?

 

 

 

 

Choosing between facebook Like vs Share

Choosing between facebook Like vs Share is confusing to most webmasters. I am not someone who is very active on Social networking websites but for sure they do drive great traffic to website if used properly! For years I used the like buttons on my website at bottom of content and always kept wondering why is it not effective ??

I checked my Facebook Insight recently and found interesting fact, performance of Facbook Like vs Share buttons, as shown below.

It seems like Facebook Share generates more Impression on facebook compared to Facebook like. While nobody can be sure about it and Facebook may keep changing the impression percentage for Like & Share, yet logically sharing of your website content on Facebook will get posted on Users walls or groups. These sharing will last forever (until deleted), will continuously generate traffic to your website and gather more likes on facebook itself.

To test this I changed all Social media buttons on my website and switched from Like to Share on 11 Dec 2013. The Like/Share count number is not shown to reduce page-load time and better user experience. Insights better monitored and will update soon who wins in this battle of

 

 

 

Facebook Like vs Share !Facebook Like vs Share

 

 

php-frontend-developer-test-v2-answer

php-frontend-developer-test-v2-answer

Fantastic three sequence

The fantastic three sequence is a series of numbers in which each subsequent number is the sum of the previous three,minus one. The first few numbers in fantastic three sequence are:

0, 1, 1, 1, 2, 3, 5, etc

Write a function that prints the Nth number in the fantastic three sequence to standard output.

<?php

function fantastic3($n) {

$series = array(0,1,1,1);

for($i=3 ; $i<=$n ; $i++){

$a = (isset($series[ (int)$i-3 ]))?$series[ (int)$i-3 ]:0;

$b = (isset($series[ (int)$i-2 ]))?$series[ (int)$i-2 ]:0;

$c = (isset($series[ (int)$i-1 ]))?$series[ (int)$i-1 ]:0;

$d = ($a+$b+$c)-1;

if($d<0){

$d = 0;

}

$series[$i] = $d;

}

echo $series[ (int)$n-1 ];

}

// Do NOT call the fantastic3 function in the code

// you write. The system will call it automatically.

?>



Question 2 of 4

Counts Days

Write a function named countDays which takes a single parameter named dateinstring which is string in the form ”MM.DD.YYYrepresent a real date value. The function should print to the console the number of days from the beginning of the year specified in dateInString until the date represented in dateInString. If the value of dateInString is invalid, the function should print ”Bad format” to the console.

Ans:

  1. function countDays($dateInString)
  2. {
  3. $data = explode(‘.’, $dateInString);
  4. $begining = date_create($data[2] . ‘-01-01’);
  5. $data = date_create($data[2] . ‘-‘ . $data[0] . ‘-‘ . $data[1]);
  6. $interval = $data->diff($begining);
  7. echo $interval->format(‘%R%a days’);
  8. }


Change Nickname

The following from enable user to change their nickname on their website.

 

ANS

  1. <?php

    function changeNickname($oldNickname, $newNickname, $users) {

    <?php

    function changeNickname($oldNickname, $newNickname, $users){

    $valid = preg_match(‘/^(([^0-9])+([A-Za-z0-9$#<>-_]+))$/i’, $newNickname, $matches);

    if($valid == true){

    $old_found = false;

    $new_exists = false;

    foreach($users as $id => $user){

    if($user[‘nickname’] == $oldNickname){

    $old_found = true;

    }

    if($user[‘nickname’] == $newNickname){

    $new_exists = true;

    }

    }

    if($old_found == true && $new_exists == false){

    echo ‘Your nickname has been changed from ‘.$oldNickname.’ to ‘.$newNickname;

    } else {

    echo ‘Failed to update’;

    }

    } else {

    echo ‘Failed to update’;

    }

    }

    }

    // Do NOT call the changeNickname function in the code

    // you write. The system will call it automatically.

    ?>



 

Question 4 of 4

Calculate shipping fees

A script is required to calculate shipping fees for a store.the store has two types of shipping local shipping and international shipping. they are calculated according to the following formulas.

Local shipping: number of items * distance * .8

international shipping : number of items * ( local distance * .8 + international distance * 1.2)

Ans:

<?php

// Do not modify the Shipping class.

abstract class Shipping

{

private $_itemsCount;

private $_distance;

public function __construct($itemsCount, $distance)

{

$this->_itemsCount = $itemsCount;

$this->_distance = $distance;

}

abstract public function getFees();

public function getDistance()

{

return $this->_distance;

}

public function getItemsCount()

{

return $this->_itemsCount;

}

}

// You can modify code below this comment.

class InternationalShipping extends Shipping

{

private $_internationalDistance;

public function __construct($itemsCount, $distance, $internationalDistance){

parent::__construct($itemsCount, $distance);

$this->_internationalDistance = $internationalDistance;

}

public function getFees(){

$no_of_items = $this->getItemsCount();

$local_distance = $this->getDistance();

$international_distance = $this->_internationalDistance;

$fees = $no_of_items * ($local_distance * 0.8 + $international_distance * 1.2);

return $fees;

}

}

class LocalShipping extends Shipping

{

public function getFees(){

$no_of_items = $this->getItemsCount();

$local_distance = $this->getDistance();

$fees = $no_of_items * $local_distance * 0.8;

return $fees;

}

}

function calculateShippingFees($items) {

// To print results to the standard output you can use print

// Example:

// print “Hello world!”;

$total = 0;

foreach ($items as $key => $object) {

# code…

if($object instanceof InternationalShipping || $object instanceof LocalShipping){

$total += $object->getFees();

} else {

$total = 0;

break;

}

}

echo $total;

}

// Do NOT call the calculateShippingFees function in the code

// you write. The system will call it automatically.

?>

 

With the death of Windows XP, now is the perfect time to switch to Linux

Windows XP to Ubuntu 14.04 switch

If you’re one of the few hundred million people that are still using Windows XP, I have a suggestion for you: It’s time to switch to make the switch to Linux. With the official retirement of Windows XP, the release of Ubuntu 14.04 LTS, and surprisingly healthy software and gaming ecosystems (yay, Steam!), there has never been a better time to switch to Linux. Linux will also run very well on any old, Windows XP-era hardware that you might still be using, too — and if you’re anxious that you’ll be filled with switchers remorse after nuking your Windows installation, don’t worry: dual-booting is a cinch as well.

Why switch to Linux?

As you’ve no doubt heard over the years from writers and enthusiasts far beardier than I, there are all sorts of reasons for switching to Linux, from financial to ideological to functional, and everything in between. For some tasks, Linux is far superior to Windows. More importantly, though, there are many tasks where Windows isn’t significantly better than Linux — such as surfing the web (Chrome for Ubuntu is the same as Chrome for Windows or OS X). Even for gaming, Linux is definitely catching up with Windows, thanks to Steam and the Source engine. (The big exception is big-budget FPSes, where Linux definitely falls flat).

A Beowulf cluster of beige box PCs

Really, a better question to ask is why shouldn’t I switch to Linux? If you need to use Microsoft Office, or one of Adobe’s multimedia apps, you should stick with Windows or OS X. If need a very Windows-specific tool, like Visual Studio, then Linux isn’t for you. If you want to play the latest and greatest PC games on release day, then you really need to use Windows.

For most everyday tasks, thanks to advanced browsers like Chrome and Firefox, and the maturity of web apps like Gmail and Google Docs, you may be surprised by how proficient a modern Linux distro is.

How do you switch to Linux?

Most modern Linux distributions make it fairly easy to switch from Windows. Wubi lets you install Ubuntu in a dual-boot configuration from Windows. For most other distros, such asLinux Mint or Debian, it’s mostly a matter of grabbing the correct 32-bit or 64-bit ISO, burning it to a CD or USB stick, and rebooting your PC. (How to do that is beyond the scope of this story, but Google will give you a dozen easy-to-follow guides.)

Windows 8 and Ubuntu dual-bootTo begin with, make sure you install Linux in a dual-boot configuration. That way, if you’re struck by switchers remorse, or you suddenly remember that you need to use an app that’s only available in Windows, you can simply reboot.

Depending on your hardware setup, installing and running Linux for the first time can be a bit tricky as well. A modern distro like Ubuntu 14.04 supports most hardware under the sun, but you may have trouble with older hardware or extreme outliers. Bear in mind that hardware makers focus their efforts on Windows and OS X drivers, relegating Linux drivers to a distant third place. Things like mice and keyboards and external hard drives should be fine — but you might have issues with your monitor calibration gizmo or USB audio breakout box.

Unfortunately, the only real way to find out if Linux has any issues with your computer is to install it (most distros install fairly quickly, though).

Fortunately, if you are having issues with a device after installing Linux, you can normally find very good support online. Linux support isn’t quite at the same omg-500-search-results-for-a-really-obscure-bug level as Windows, but it’s pretty good.

Steam for Linux, on Ubuntu

What should you do after installing Linux?

I won’t lie: Switching to Linux from Windows XP (or indeed any other operating system) will be a fairly harsh experience. Modern Linux distros are much better than they used to be, but there are still a lot of rough edges that you won’t notice until they’ve stabbed you in the ankle. In my opinion, the best thing you can do after installing Linux is to use it. Don’t fall for the usual trap: Don’t run back to Windows with your tail between your legs the first time Linux throws an error in your face. Stick with Linux, and you might just find that you like it.

Here are a few more tips for making the switch to Linux:

  • Install Steam, and then buy some Linux games. You will be surprised at the number of good and half-decent games that are now available for Linux through Steam, including FTL: Faster than Light, Dota 2, Europa Universalis IV, and all the usual Source engine games. Through Wine and Cygwin emulation, other older Windows games are available to you as well.
  • Read an Ubuntu guide. One of the biggest issues with switching to Linux is not knowing how to perform basic tasks, such as watching a video. The Getting Started guide, produced by the Ubuntu Manual team, is pretty good (you don’t need to read the whole thing, but the table of contents makes for a useful reference). Always remember that googling for “how do you do X in Ubuntu” will usually turn up a ton of results.
  • Finally learn to use the command line. Linux, at its heart, is a command-line based operating system. The Linux command line is incredibly powerful; there’s almost nothing you can’t do, and in many cases it’s the best or fastest way to do something. Ubuntu’s official Using The Terminal guide is a pretty good starting point. You willlove apt-get.

If you have your own tips for switching to Linux from Windows, be sure to share them in the comments. Alternatively, if you think that Linux still isn’t ready for an influx of ex-Windows XP users, be sure to let us know as well.

Latency between Amazon Web Services Regions

Recently I’ve had to spend quite a bit of time working out which of the 5 Amazon regions is best positioned for various services I’ve been setting up. As part of this I measured the latency between each of the Amazon regions. For anyone who’s interested – here are the results.

Note: For ease of reading I’ve including all measurements under each region. Half of the data will therefore be duplicated as I’ve assumed (rightly or wrongly) that EU-West -> US-East is the same as US-East -> EU-West (for example).

From US-West to…

  • US-East: 82 ms
  • AP-North: 130 ms
  • EU-West: 155 ms
  • AP-South: 185 ms

From US-East to…

  • US-West: 82 ms
  • EU-West: 101 ms
  • AP-North: 199 ms
  • AP-South: 256 ms

From EU-West to…

  • US-East: 101 ms
  • US-West: 155 ms
  • AP-North: 282 ms
  • AP-South: 292 ms

From AP-North to…

  • AP-South: 84 ms
  • US-West: 130 ms
  • US-East: 199 ms
  • EU-West: 282 ms

From AP-South to…

  • AP-North: 84 ms
  • US-West: 185 ms
  • US-East: 256 ms
  • EU-West: 292 ms

These numbers represent the rounded average ping time over 30 measurements between two EC2 instances, one in each region. They were all performed on the 8th June 2011.

I’ve put them here for curiosity value only. I strongly recommend you perform your own tests if you plan on making any decisions based on the outcome.

Newsletter Subscribe

Get the Latest Posts & Articles in Your Email

We Promise Not to Send Spam:)