Buddypress with yoast plugin. Incorrect canonical url.

Not so long time ago I’ve completely disappointed with All in One SEO Pack plugin which I usually use for SEO purpose. Previously it has many feature which were easy executable by adding another plugins of the top of All in One SEO Pack, but with each new version they transferred slowly into professional version, making my existing All in One SEO Pack nonfunctional after it’s upgrade or upgrade other plugins. So I completely moved to Yoast SEO. So it was like a new level of SEO management for WordPress, but unfortunately not for buddypress which was installed in my several project. The main headache appeared to be with Buddypress groups and Buddypress members. Every group and member profiles processed by Yoast generates in code incorrect canonical url, usually chopped to http://yoursite.com/members, but not http://yoursite.com/members/membername, what causes complete exclusion for scanning by Google and other search engines.

I’m not a PHP developer, but after tearful researches I found where to make changes to fix buddypress yoast  canonical.

So I edited theme function.php

# Yoast canonical for buddypress

function wpseo_canonical_exclude( $canonical ) {
global $bp;
if ( $bp->current_component) {
$canonical = false;
}
return $canonical;
}
add_filter( ‘wpseo_canonical’, ‘wpseo_canonical_exclude’ );

# end of yoast canonical for buddypress

 

Now all my groups and members are properly processed by Yoast SEO. Great thanks for developer who made this plugin. I hope you will take it in account for the future version.

CDN. Amazon CloudFront CDN with Cloudflare

Here some thoughts about my recent experience with CDN. Actully I it twice in my life for two project. First time it was CloudFlare, and another one is hard to call CDN solution but it was GEO IP  caching node built on Nginx, to provide better ping in Russia. Definelty tiny experience, until I was asked to make the review and to find CDN solution for one of the game portal www.sevelina.org. This was quite challenging due to this project is quite heavy load and I’ve spent on it enough time for optimization, so the customer decided to request my service again.

So after reviewing and following the suggested budget I’ve ended on two candidates  Amazon CloudFront CDN and Cloudflare. Both give opportunity to try for free, and both look well-known. As for Amazon Cloudflare CDN I was familiar with, I’ve put the test for on week and review it for 5 days. And I found it exactly what I was looking, but I wish to provide some digits and explanation to my customer and tested for 1 day with Amazon CloudFront CDN. To be honest it was disappointing experience. First of all registration, money demanding registration, no bank card, no service to try. Another thing, which is not statement but my thoughts, that you should use 2 other products from Amazon to have successful CDN service: Route 53 (Amazaon DNS service) and Amazon Store EC2. You still have the opportunity to try it, and that what I used for testing, some junky path redirected link to the requested web which should be distributed over Amazon CDN.

So in total I wasn’t happy but decided to finish my small reviewing and here the figures. The main server located in NY, North America. I’ve used just-ping.com service, same while I was testing CloudFlare, which gives ping time in ms from various locations around the world, and here what I found:

 Location Cloud Flare Amazon CloudFront
 Amsterdam2, Netherlands: 1.4 1.7
 Florida, U.S.A.: 28.3 22.2
 Amsterdam3, Netherlands: 0.8 0.7
 Sydney, Australia: 1.6 0.9
 New York, U.S.A.: 5 4.4
 Stockholm, Sweden: 5.6 5.6
 Santa Clara, U.S.A.: 5
 Vancouver, Canada: 23.3 4.5
 London, United Kingdom: 3 1.8
 Madrid, Spain: 41.5 16.1
 Padova, Italy: 17.6 5.7
 Singapore, Singapore: 3.5 3.1
 Austin, U.S.A.: 6.4 5.2
 Cologne, Germany: 4.7 4.2
 München, Germany: 10.1 7.5
 Amsterdam, Netherlands: 1 1.7
 Shanghai, China: 165.1 223.1
 Hong Kong, China: 2.8 4.7
 Melbourne, Australia: 14.5 14
 Copenhagen, Denmark: 10.5 11.9
 Lille, France: 9.9 9.6
 San Francisco, U.S.A.: 12 8.6
 Zurich, Switzerland: 11.5 13.9
 Mumbai, India: 66.4 70.9
 Auckland, New Zealand: 24.2 24.3
 Groningen, Netherlands: 6.6 19.1
 Antwerp, Belgium: 3.6 4.1
 Dublin, Ireland: 14.4 12
 Kharkov, Ukraine: 48 36.4
 Manchester, United Kingdom: 8.6 18.6
 Vilnius, Lithuania: 42.6 40.5
 Bucharest, Romania: 31.6 32.2
 Bangkok, Thailand: 50 67.7
 Kuala Lumpur, Malaysia: 192.1 7.1
 Jakarta, Indonesia: 13.8 14.9
 Cape Town, South Africa: 150.6 340.7
 Glasgow, United Kingdom: 1.3 9.2
 Lisbon, Portugal: 46.8 21.2
 Chicago, U.S.A.: 1.4 6.8
 Dallas, U.S.A.: 1.7 2
 Istanbul, Turkey: 51.8 43.6
 Gdansk, Poland: 29.9 26.2
 Cairo, Egypt: 170.3 329.2
 Beijing, China: 331 299.5
 Buenos Aires, Argentina: 129.1 29.7
 Belgrade, Serbia: 27.7 36.5
 Toronto, Canada: 13.1 21.8
 Athens, Greece: 71 50.4
 Frankfurt, Germany: 6.9 5.9
 Sofia, Bulgaria: 34.5 30.7
 Budapest, Hungary: 13.9 19.9
 Sao Paulo, Brazil: 107.1 2.2
 Paris, France: 0.8 82.4
 Mumbai, India: 63.8 67.2
 New Delhi, India: 111.1 76.7
 Chicago, U.S.A.: 0.6 31.3
 Bangalore, India: 41 42.9
 Montreal, Canada: 26 8.2
 Tokyo, Japan: 20 3.2

Amazon CloudFront vs Cloudflare. Which CDN service to use.

Ping signifcantly slower
Ping almoast equal
Ping is faster

I suppose this color marks will ease the reading of this table, but in general it is clearly visible that it is almost similar with some benefits in various locations, which were not priority for my customer. Take on the top the simplicity in registration process, complete free access the Cloudflare service, and deadly more simple setup. I’m very happy that this service exists, and I recommended my customer to subscribe for paid service, to have ability to communicate in case of disaster. Keep in mind that Amazon specially charge for support, and support is not included in their price plan.

I hope it will help you with your first step into CDN using process.

Sony VAIO cpu cleaning

All laptops, I’m talking about proper laptops, but not the tiny slow net-books, do always produce heat. This is the payment for performance and you have to live with it. So cooler is necessary and not avoidable part of these devices. Cooler will always intake dust, and in a month or two you will notice that the sound of cooler is louder than the voice of your opponent in Skype, while the person you speak will complain that it barely possible to hear you due to this noise.

Smart guys from nearest IT service shop will suggest you wonderful compressed air cleaner, which I can suggest to stick it in their… well you decide where :) The most reliable way it to open the notebook and clean it.

preparation to open notebook

Ader cover view, inside view vaio

 

 

 

 

 

 

 

 

Here the simple steps of opening the laptop. Pictures describe it better than my boring writing. Just take your Sony laptop and open it.

Now the small explanation. The cooling performance usually depends on the amount of dust and other small wastes on the cooler and radiator which sucked in with the air flow.

 

 

 

 

 

 

 

Well at this part just take a brush a blow all unneeded stuff away. The main idea is to remember which screw is coming from to have ability to assemble it back.

 

 

 

 

 

 

 

After all these manipulations you screw everything  back and can enjoy cool silent performance for the next 2-3 month. In half a year you can repeat this procedure.
If you notebook is your took, you should take care about it like a bout a gun, and clean it with love. Guys own the weapon can understand me.

 

iPod comparison – iPod 4 vs iPod 5.

Here the small comparison of two latest and currently available on market iPods. iPod 4 touch and iPod 5.

I hate when marketing departments of the companies try to heavily affect on every-bodies mind ensuring people that THIS device is “revolutionary super mega new stuff”. Extremely rotten approach which is the standard for our society. Anyway, they don’t what to do that, to give the clear and simple comparison with previous (already non-profitable products) somebody else like me will spend some time and dig-out this simple data for everybody. And this miserable comparison from Apple is not honest  I know for sure that you saw pictures of the both, so I’ll paste only pure technical specifications.

Here you are iPod 5 vs iPod 4 touch compiled by ITRESIDENT

Model iPod 5 iPod 4 touch
Object specifications
Weight 88 grams 101 grams
Width 58.6 mm 58.9 mm
Height 123.4 mm 111.4 mm
Depth 6.1 mm 7.2 mm
Screen size 10.16 mm (4-inch) 8.89 mm (4-inch)
Screen specifications
Screen resolution 1136-by-640-pixel 960-by-640-pixel
Contrast ratio 800:1 800:1
Brightness 500 cd/m2 max 500 cd/m2 max
Matrix IPS TN LCD
Connectivity specifications
Wi-Fi 802.11a/b/g/n 802.11b/g/n
Bluetooth 4.0 -
TV Apple TV (3rd generation) -
Performance
CPU Apple A5 1Ghz, 2 cores, 32 nm Apple A4 1Ghz, 1 core, 45 nm
RAM 512 MB 256 MB
ROM 32-64 GB 8-32 GB
OS iOS 6 iOS 5
Video camera
Rear HD 1080p 30 frames p/s HD 720p 30 frames p/s
Front HD 720p 30 frames p/s 640×480 30 frames p/s
Focus Autofocus Autofocus
Photo camera
Rear 5 MP iSight 0.7 MP
Front 1.2 MP 0.3 MP
Focus Autofocus Autofocus
Battery & Power
Capacity 1140 mAh 930 mAh (2680mAh clones)
Connection ports and buttons
Headphone 3.5 mm jack 3.5 mm jack
Special Lightning connector -
Volume Single button UP/DOWN Single button UP/DOWN
Specific features
Location sensor Three-axis gyro Three-axis gyro
Movement sensor Accelerometer Accelerometer
Release date
Available October 2012 September 2010
Price
(October 2012) at Amazon 300 USD 180 USD

Repair power supply for laptop

Here I will share my experience how I fixed power supply for my Sony laptop.

It happened one day without any reason, plug in my almost discharged laptop to power supply and connected it to the current socket. Instead for charging the battery I heard ticking sound, green indicator was off, and not sign of charging at all. And it happened in the worst possible moment when I was at my parents house in small city where delivery could take up to 3-5 days. All the shops in the town worked only by pre-order (I hate it so much). And my Linux server cannot wait until I connect it to view the logs.

Continue reading ‘Repair power supply for laptop’ »