Law of Unintended Consequence(s)

One particularly famous example is the Cobra effect. From Wikipedia:

The term cobra effect stems from an anecdote set at the time of British rule of colonial India. The British government was concerned about the number ofvenomous cobra snakes in Delhi.

The government therefore offered a bounty for every dead cobra. Initially this was a successful strategy as large numbers of snakes were killed for the reward. Eventually, however, enterprising persons began to breed cobras for the income. When the government became aware of this, the reward program was scrapped, causing the cobra breeders to set the now-worthless snakes free. As a result, the wild cobra population further increased. The apparent solution for the problem made the situation even worse.

FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, "What we do in life", "Echoes in eternity.");
RequestContext.getCurrentInstance().showMessageInDialog(message);

SocialAuth Posts

Brace yourselves. SocialAuth posts are coming…

First of all,

the problem I saw around here: Facebook, Twitter, etc. only allow you to define fully qualified website urls which means that you can’t provide a link such as

http://localhost:8080/MyFacebookConnectableProject/index

So, you will need a DNS configuration to show your localhost as a website.

How it is done in various operating systems is shown below:

1. Open a terminal window in your system (in Windows cmd must be run as administrator)

2. Open hosts file with your favorite text editor in terminal.

2.a. In Linux:

sudo vim /etc/hosts

2.b. In Mac:

sudo nano /private/etc/hosts

2.c. In Windows:

edit %WINDIR%\System32\Drivers\Etc\Hosts

3. if you have

127.0.0.1 localhost

line in your file, change this to:

127.0.0.1 localhost localhost.localdomain.com

if you don’t have you can add that line to your file

4. save and close, you are done!

Now, How to this info?

You will provide:

http://localhost.localdomain.com:8080/MyFacebookConnectableProject/index

and use this when connecting your local project.

Good Luck