Slick Carousal in RTL Mode

img_0448I have been scratching my head all night to get this thing fixed! We have been using Slick Carousal in one of our projects and it breaks whenever ‘dir=”rtl” is injected into the body tag.

I wish I had came across this before because it costed me a good night sleep and 2 cups of coffee to make it work in the arabic version of the website.

The solution was plain simple, you basically have to use the following option when initializing the carousal:

$('.single-item-rtl').slick({ 

rtl: true 

});

Source: http://kenwheeler.github.io/slick/

 

How to fix PHP.INI that is not updating in an apache mac setup

If you issue the following command in terminal:

php --i | grep ini

This will show you the loaded pho configuration file. My output was this:

Loaded Configuration File:         /usr/local/etc/php/5.6/php.ini

But when I upgraded my MacOS from El Capitan to Sierra, updating the above file didn’t reflect any change on my development websites. WordPress was still showing 2 MB even though I was using the following:

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

After googling here and there, I found a solution. Thanks to Gergely on stackoverflow here.

First use phpinfo to find out the current loaded file.

You would see:

Loaded Configuration File  None

now open your terminal:

cp /etc/php.in.default /etc/php.ini

Thats it. Make any change to the newly copied file and it would update in the webserver without any issues 🙂

Google Pakistan and other websites hacked defaced by eboz

Today I was very shocked to see that Google Pakistan has been defaced by an unknown group ‘eboz’. I can’t believe that a  reputed company like Google can be compromised so easily. The hackers must be very competent as google is not a little business to get Panga with 😉

Update: I have come to know that basically it was an infiltration in the PKNIC database. PKNIC is responsible for managing domain names ending with the ‘.PK’ tld. You can find more info about it at www.pknic.net.pk

The following is the screenshot of the defaced page:

Apparently, no one has taken the responsibility of hacking Google.com.pk as of now, but a message written in Turkish language indicates the presence of Turkish hacker group that goes by the name of Eboz.  There has been no motive or message left over the defaced website which usually is not the case as hackers love to leave their message on the websites they hack.

The hackers left the following message in turkish language:

Kankalarım hep yanımda arkadaş içinde
Yanımda olmayan mı var çekimlik her nefeste

Pakistan Downed
?
trabzon 2012
Dostlara selam ölmedik hala yaşıyoruz!

Here its translation in english which I got from Google Translate:

My homies in a friend always there for me
Have not shot by me with every breath

trabzon 2012

Hello friends who are still alive not dead!

Really… I have no idea what does it mean! 😉

Over the last 1-2 years, we have seen many other big websites getting hacked, and their secure information getting leaked in several ways, like the case in Sony Music which got hacked last year.  A text displaying “Downed Pakistan” can be observed on the defaced website, which is probably the sign for victory.

Solution: If you still not able to open Google Pakistan then simply you can:

  • Change your DNS address. to something else.
  • Use www.google.com/ncr to open google global page (NCR = No Country Redirect) (Thanks to our fan Ali Hassan)
Update: Some people also think that somebody have done it to poison Pak-Turkey relationships and the hackers are not Turks. Allah knows the best.

What are your comments on this?

WordPress Twenty Eleven Theme Problem: Divs & Images appear under Header Image

The twenty eleven theme is one of my favorite wordpress themes. Its very lightweight, well managed, fully functional and the best thing is it uses fewer resources of the web server.

Recently I came across a problem with the header image. I am using an awesome plugin for facebook which shows a slider at every page but now the problem was that the header image of the twenty eleven theme was appearing on top of the slider.

Read More