Open external links in new tab or open external links in new window automatically using jquery

 

How to open external links in new tab or how to open external links in new window automatically using jquery?

Today, when I am working with the link building for my blog than suddenly one new thought come in my mind that when we include external links in our web-site, and readers redirect on those links from our web-site. This way we can loose the readers from our web-site and may be they will not come back from that.

One way to keep the readers on our web-site is to open all the external links in new tabs. Or open all the external links in new windows. This means open external link in separate tab or open external link in separate window.
There are two way to fix this issue, either you can do it automatically using the jquery or you can give target _blank in all <a> tags in the content of each web page as well as all the links in your website navigation.

I don’t think that I need to explain regarding how to open external links in new tab or how to open external links in new window in <a> tag.
You can do it automatically using jquery code which is as below.

//Open external links in new tab or open external links in new window automatically using jquery
 
$(function($){
    $('a[href^="http://"]')
        .not('[href*="freelancephpdevelopment.com "]')
        .attr('target','_blank');
});

You need to add this code in your page in script tags, make sure that you change the domain name or url which is “freelancephpdevelopment.com” in this code with your domain name or url. Please let me know if you need more help to fix this type of issues.

Voice calls is the first new feature in whatsapp after Facebook buy it

 

Voice calls is the first new feature in whatsapp after Facebook buy it.

 

Everybody know that giant social networking company facebook have recently bought whatsapp, which is also biggest messaging service provider in the world. Whatsapp and facebook deal closed nearly $19 billion.

Recently, I knew from some sources that whatsapp will planning to launch the voice calls in the application. Once this feature added than this is count as a major new feature in whatsapp application after bought by facebook. Whatsapp have users in millions worldwide, and all the users get benefits of this new feature. If all goes well then whatsapp add this voice calls for their users as soon as possible, hopefully it will be done in this year.

 

Voice calls is the first new feature in whatsapp after Facebook buy it

Voice calls is the first new feature in whatsapp after Facebook buy it. (Image Source: Google).

 

Skype is the most popular service provider in the voice call and video call all over the world. There are many users who use skype to communicate with others worldwide. Once whatsapp launch this feature then people get option in the voice calls and they can use either skype or whatsapp, may be people can choose either skype or whatsapp depends on the voice calls clarity and services.

Long URL link text not goes in next line in iPhone and breaking out of container

Long URL link text not goes in next line in iPhone and breaking out of container

Today, when i am working with the responsive design and doing testing with iPhone and other smartphone, I found one issue which is related with the long URL text, where there is a URL whose length is more than certain characters and its break the container (div) and goes out of the screen, because of this I am not able to read the full url in my iPhone screen and other smartphone screen. As i knew that word-wrap is not working and long url is not goes to next line because there is not any space in between the url link. So basically auto word-wrap is working with the text but not working with the url link and long urls breaking out of container in my case, if you have same issue then I have a solution for that, its simple css trick, you need to apply one css class with the below code in that class.

 
.LongLinks{
    -ms-word-break: break-all;
     word-break: break-all;
     word-break: break-word;
     -webkit-hyphens: auto;
     -moz-hyphens: auto;
     hyphens: auto;
}

This is working fine with all the latest browsers and all the smartphones including iphone series, Samsung galaxy series, Motorola android phones etc…

Warning: SplFileInfo::openFile(/app/tmp/cache/persistent/myapp_cake_core_file_map) [function.SplFileInfo-openFile]: failed to open stream: Success in /lib/Cake/Cache/Engine/FileEngine.php on line 357

Recently, I am working with cakephp projects and its working fine in my local server, when i moved to the production server then its give the error which is as below.

Warning: SplFileInfo::openFile(/app/tmp/cache/persistent/myapp_cake_core_file_map) [function.SplFileInfo-openFile]: failed to open stream: Success in /lib/Cake/Cache/Engine/FileEngine.php on line 357

Warning: SplFileInfo::openFile(/app/tmp/cache/persistent/myapp_cake_core_file_map) [function.SplFileInfo-openFile]: failed to open stream: Success in /lib/Cake/Cache/Engine/FileEngine.php on line 357

Warning: SplFileInfo::openFile(/app/tmp/cache/persistent/myapp_cake_core_cake_dev_en-us) [function.SplFileInfo-openFile]: failed to open stream: No such file or directory in /lib/Cake/Cache/Engine/FileEngine.php on line 357

Warning: _cake_core_ cache was unable to write ‘cake_dev_en-us’ to File cache in /lib/Cake/Cache/Cache.php on line 325

Warning: _cake_core_ cache was unable to write ‘file_map’ to File cache in /lib/Cake/Cache/Cache.php on line 325

Fatal error: Call to undefined function error_get_last() in /lib/Cake/Core/App.php on line 913

Basically, when we look error like this then we think that this is a permission issue, same way i go to tmp folder and set permission and make the folder writable. There is no change at all in the error after i set the permission.

After few research i found that might be this is a issue of owner and group, so i look in that and set the owner and group of the tmp folder to apache, but still no change at all.

Since last two days, i am working on this issue and today suddenly i think that let me check it from starting point and looked in the cakephp requirements which is as below

Requirements

HTTP Server. For example: Apache. mod_rewrite is preferred, but by no means required.
PHP 5.2.8 or greater.

Technically a database engine isn’t required, but we imagine that most applications will utilize one. CakePHP supports a variety of database storage engines:

MySQL (4 or greater)
PostgreSQL
Microsoft SQL Server
SQLite

When i check php version on the production server then its 5.1.6 and cakephp 2 require php 5.2.8 or greater.

This is very silly issue but normally we never look on the version when we move the code from local server to production server, make sure when you stuck then look on version.

samsung galaxy s5 smartphone will launch on february 24 in barcelona event of mobile world congress

Samsung galaxy S5 smartphone will launch on february 24 in barcelona event of mobile world congress

Its really good news for the all smartphone users, apple launch iphone 5S and iphone 5C in the market last years with the new fingerprint identity sensor. but samsung is also in the race with apple and it may launch new samsung galaxy S5 smartphone with the iris scanner on february 24 in barcelona event of mobile world congress.

New Samsung Galaxy S5 probability to comes with the upgraded hardware, new camera (expecting 16-megapixel), may be improved touch screen sensor, with more powerful processor, may be wider screen or high resolution with existing screen size as well as some changes in the battery, so its charging faster then existing one.

iphone 5S and iphone 5C in the market last years with the new fingerprint identity sensor while new samsung galaxy S5 have iris scanner which is scanning your eye-balls.

All the smartphone lovers know more on the features of samsung galaxy S5 on february 24, 2014. but i am sure that samsung will come with many new features which will beat apple iphone 5S and iphone 5C. We all know that Apple will also launch iphone 6 in this year. Many people look on the apple as well that when apple will launch iphone 6, so they can compare samsung galaxy S5 with apple iphone 6 and decide to go with either apple or samsung.