I purchased my Canon 550D in 2011, and then I purchased a great set of lenses. Eventually, I owned a 5D Mark II and a 6D. But then it suffered a long pause. I wish I was a full-time photographer but not for making a living through it. Photography was more like showing everyone else … Continue reading Copper
If you are new to programming or want to step into learning programming, I am sure that you are in a dilemma of choosing your first programming language. Well, stop thinking and start with Python. How to start for now? Read this article first. Try to understand what he is saying, don’t skip any part. … Continue reading What should be your first programming language?
উত্তরা বিআরটিএ থেকে মোটরসাইকেলের রেজিস্ট্রেশন অ্যাকনলেজমেন্ট স্লিপের ডেট বাড়ানো, ডিজিটাল নাম্বার প্লেট তোলা, ফিংগার প্রিন্ট দেয়া এবং স্মার্ট কার্ড তোলার ডিটেইলস ১. রেজিস্ট্রেশন অ্যাকনলেজমেন্ট স্লিপের ডেট বাড়াতে হলে: স্লিপ নিয়ে সোজা চলে যান ১০৩ নম্বর রুমে, সেখানে কম্পিউটার নিয়ে বসে থাকা লোকটিকে কাগজপত্র দিন এবং বলুন যে আপনি স্লিপের ডেট বাড়াতে চান। তিনি আপনার কাগজের … Continue reading উত্তরা বিআরটিএ থেকে মোটরসাইকেলের রেজিস্ট্রেশন অ্যাকনলেজমেন্ট স্লিপের ডেট বাড়ানো, ডিজিটাল নাম্বার প্লেট তোলা, ফিংগার প্রিন্ট দেয়া এবং স্মার্ট কার্ড তোলার ডিটেইলস
*Special Note: Before you read and practice anything mentioned in this article, make sure that you understand the risk. Don’t fucking come back to blame me if anything goes wrong So, from reading the title you probably understand by now that I am seriously pissed off by this fucking (and super annoying) problem which is … Continue reading How to stop the kernel_task from fucking the CPU in your mac
Latest VestaCP comes with PHP5.6 by default. In this article, we will see how to upgrade PHP to it’s latest version, i.e PHP7.0 First, we need to add the correct REMI repository and enable remi update, remi release and remi-php70 repository. Here’s how [code lang=shell] wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm rpm -Uvh remi-release-7.rpm epel-release-latest-7.noarch.rpm yum –enablerepo=remi … Continue reading Upgrading PHP to PHP7.0 in a CentOS server with Vesta CP
I had a server which has both IPv4 and IPv6 and they were working perfectly fine. I had installed Vesta CP which is an amazing control panel application and it was working just great. But there was only one problem with Exim4. It was not sending emails properly to Gmail. Mails sent to gmail were … Continue reading How to disable IPv6 for Exim4 that comes with Vesta Panel
It might be required sometime to prevent a user or all users with a specific role from accessing the WordPress admin panel. It’s not tough. Let’s think that we want that all users with author role will not be able to access the admin panel. All you have to do is just add the following … Continue reading How to prevent someone or some role from accessing the WordPress admin panel
* Photo by Michael Fertig Authors in WordPress have a homepage url like http://domain.com/author/authorname where all their posts are shown. And many of us who think it doesn’t look attractive want to change that url format. The middle part of that url, which says author, is called an author_base and it is possible to change … Continue reading Changing Author Homepage URL Properly in WordPress
Slack is awesome. Slack is the de-facto of modern team communication and I am pretty sure that this is not the first time you’re hearing something like this about slack. But if you’re really never used slack, oh boy, I feel pity for you 🙂
Anyway, in this article we’re going to make a slack bot that will monitor the sales in our envato account and notify from time to time as soon as someone purchased an item. Pretty useful, eh?
Considering you have a slack account, log into it and open a new channel, for example “#sales”. Now go to http://your_slack_url.slack.com/services/new or just click on “Configure Integrations” from your slack app.
When you’re shipping your theme for sell, it’s often required to bundle the required plugins. Some people just keep these plugins like general vendor libraries inside their theme and load them using php’s
require_once. However, if you’re following this style, your themes will fail to pass the theme check because these plugin files will be considered as a part of your theme, and it will prompt you that CPT functions and shortcodes should be a part of the plugin. Moreover, if someone deactivate your theme, those shortcodes and CPTs will be unavailable immediately.
This is why, along with many other developers, we use TGM Plugin Activation library. This tiny little lib can force or suggest installing the plugins which are required (or good to have) for making your WordPress theme work flawlessly.
TGM can work with plugins which are hosted in WordPress plugin repository, or in a github public repository. It can also work with plugins which are shipped with the theme as a separate zip file. In this article we’ll see all these three cases of plugin installation and activation process using TGM library.
Download the TGM library from http://tgmpluginactivation.com/download/. After unzipping, keep the class-tgm-plugin-activation.php file inside
vendors/tgm/ inside your theme. Then add the following code in your
functions.php Continue reading “Packaging thirdparty plugins with your WordPress theme using TGM Plugin Activation library”