technology

Fix – ERROR 2006 (HY000) while importing database in MySQL

While importing big database in MySQL, you might get the error as shown below: ERROR 2006 (HY000) at line 3387 in file: ‘path_to_the_db_dump.sql’: MySQL server has gone away Step 1: Open a terminal and find a config file for MySQL by command locate my.cnf. You will get the list of files. Open your responsible file. […]

Fix – ERROR 2006 (HY000) while importing database in MySQL Read More »

Git is not working after macOS Update

Yesterday I updated my macOS to latest Catalina version. After updating it GIT was not working. That always happens to me :-). I was getting following error. xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun   Many of you might also get this error. So the solution is pretty simple. Just follow

Git is not working after macOS Update Read More »

BuddyPress Re-post Activity WordPress Plugin

Sometimes you like someone’s post in activity thread and you want to re-post that activity publically or on your group. So now you can re-post an activity from BuddyPress activity page with the help of this plugin. What this plugin does? It will provide a button for reposting activity. We can also enable/disable this functionality

BuddyPress Re-post Activity WordPress Plugin Read More »

User avatar in BuddyPress notification loop

BuddyPress by default doesn’t show user avatar in the notifications. But you can do that by simply adding couple of lines in notification loop. BuddyPress stores the other user id as secondary id. Here is the code to be used in notification loop. echo bp_activity_avatar( array( ‘user_id’ => bp_get_the_notification_secondary_item_id() ) ); That’s it…

User avatar in BuddyPress notification loop Read More »

Fix Unhandled rejection Error: EACCES: permission denied

I was trying to install gulp on my mac. But I was getting following errors while running command sudo npm install gulp -g Unhandled rejection Error: EISDIR: illegal operation on a directory, open ‘/Users/bhargav/.npm/_cacache/….’ Unhandled rejection Error: EISDIR: illegal operation on a directory, open ‘/Users/bhargav/.npm/_cacache/….’ npm ERR! cb() never called! npm ERR! This is an

Fix Unhandled rejection Error: EACCES: permission denied Read More »