How to revert or recall the message sent in Outlook

Ever been in a situation where you sent the wrong email to the wrong person?

OR

You sent the mail but forgot to include the important information?

OR

You wanted to send a private message but you replied all.




I have been there. So in this post I am going to tell you how to recall the sent mail in Outlook.

Follow below steps:

- Go to sent items
- Double click the mail you want to recall
- Select the message tab of the email message window.
- Click drop down beside 'Actions' and select 'Recall This message'.
- Now select 'Delete unread Copies of this Message'.
- If you want information regarding success or failure of message recall, select 'Tell me If Recall Succeeds or Fails for Each Recipient' checkbox.
- Finally click OK

Now, you really unsent your sent email to the users who didn't read the email in Outlook.

Set JAVA_HOME path in ubuntu

Many a times after installing Java, JRE works fine as to run Java applications. But when it comes for Java development, JDK is required.

We get issues like 

- "The JAVA_HOME environment variable is not defined correctly. 
This environment variable is needed to run this program.
JAVA_HOME should point to a JDK not jre."

- "No compiler is provided in this environment. Perhaps you are running on a JRE rather than JDK"

- Maven unable to find JAVA_HOME.


To solve these issues on Ubuntu 18.04.

- Update apt : Advanced Package Tool

sudo apt update

- Install JDK: Skip if JDK already installed

sudo apt install openjdk-8-jdk

- Set JAVA_HOME

export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64

- Check if JAVA_HOME is set

echo $JAVA_HOME

- Add Java bin to path variable

export PATH=$PATH:$JAVA_HOME/bin

- verify PATH

echo $PATH

- Verify Java setup

java -version

- Verify maven

mvn -v


If everything goes right your issue is solved and you are ready to dive into java development.

How to add Java and Maven in alpine

In this post I am going to tell you how to add Java and Maven in alpine.




Example:
For java we will be adding openjdk 8

Run below commands:

apk add --no-cache openjdk

To add Maven just run below command:

apk add maven


Solve Maven configuration Problem on the pom.xml file in eclipse

When we import an existing Maven project we see Eclipse error on pom.xml file with Maven Configuration Problem.


This is the issue of ide, to see the details of the bug, see:


Now this bug has been fixed by eclipse developers.

To solve this issue: 

Install the latest m2e connector in your eclipse.

Below is the link:


On eclise, go to help

Try check for updates. If it doesn't work then,

Go to help,
Then, Install new software
Enter url :

Click next as prompted

Accept agreement

That's it you will no longer see error.








How to solve refusing to merge unrelated histories



When we try to connect our local repo to existing remote repository we get this error

"refusing to merge unrelated histories"

To solve this issue run below command

git pull --allow-unrelated-histories


Now this issue will get fixed and you can continue working on git.


Mere Kalam se | Shahadat bhi meri Qurbani bhi meri hai

Shahadat bhi meri, qurbani bhi meri hai
Bebas lachar ye zindagani bhi meri hai

Aabad e Chaman Ko lahu bhi mera hai
Aur Mehfil k beech badzubani bhi meri hai



Export table/ tables from database in MySQL

To export we have "mysqldump" command in MySQL.

we will use this command to export single or multiple tables in database.

To export single table:

mysqldump -u dbusername -p database name tablename > table.sql

It will prompt you to enter password. 

To export multiple tables:

mysqldump -u dbusername -p database name tablename1 tablename2 > export.sql

It will prompt you to enter password. 

You can view your file or save it as back.




Solve "source folder is not a Java project error" in Eclipse

When we import project from somewhere, Maven sometimes doesn't understand the project as a Java project in Eclipse and shows error as source folder is not a Java project.

Many programmers believes it as a bug because Maven should automatically recognise Java project.

For the time being, if you are facing this issue:

You can try two approaches to solve this:

1. run as
 mvn eclipse : eclipse

2. Change project facets

Right click on Properties

Click on Project Facets

Click check on Java

Click Apply

How to change docker tags

When we build our docker image, we give our desired name, but sometimes we caught up with requirements which demands docker image tag to be changed.


So, in order to change the tag of already build docker image, use following command:


docker tag <container_id> <image_name:tag>


Happy coding..

How to check docker container logs

When we run our application we need to check logs to check the smooth execution of the application or any unpleasant events like exception, error etc. This is the case with docker too.

To ckeck the logs run below command:

docker run <container_id> logs


How to clone a specific branch in git

If you are a developer then you would have come across git. You need to clone the already existing project to enhance it, bug fixes etc. 

Most of the git has branches. So we might need to clone specific branch from git. 

To clone the specific branch in git, syntax is:


git clone -b <branchname> <repository>


As for example view below command

git clone -b fun https://aprsdigital.com/r/fun.git

Solve "The link you followed has expired" Problem in Wordpress

We love wordpress, as it makes our live easier. But sometimes we face issues while setting up website. In this post I am going to talk about such error installing a new theme.

How problem generates:


When we try to install our theme via appearance -> themes -> add new, we get following message:
The link you followed has expired.



Cause of the problem:


Upload max size or maximum memory on our server are not well configured.


Solution of the problem:


We have to set Upload max size or maximum memory on our server as below:

memory_limit = 256
upload_max_size = 64M
post_max_size = 64M
upload_max_filesize = 64M
max_execution_time = 300
max_input_time = 1000

You can do that via contacting host company or you can do it yourselves by editing .htaccess file. Follow below steps to do that:


  • Access your WordPress installation.
  • In root directory, you will find your .htaccess file.
  • Edit it to add below lines at the end:


php_value memory_limit 256M
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 1000

Become MI K20 explorer for XIOMI

Xiomi brings Mi Explorers 2019 for Indian residents

You can register for the explorer program below

Register Now!

Before registering read below instructions carefully:

  • The fun-filled, super exciting and most challenging competition to explore the unexplored 'Mi Explorers 2019'.


Registration Timeline

Registration process for Mi Explorers starts today i.e. 20th June and ends on 22nd June 2019 at 23:59:59 hrs (IST). 


So without further ado, go ahead and register now. Note that you need to furnish all the required information in order to be shortlisted.





Available Slots


Only 48 applicants will be shortlisted as Mi Explorers.




Selection Criteria


During the selection process, applicant's Mi Community profile, as well as social media handles, will be evaluated in order to find out their level of engagement, competency, & ability to generate quality submissions in the context of 'Mi Explorers 2019', so we would like to request you to keep all your social media handles open to public.




Announcement Date


We will send email to notify all the qualified applicants on 25th June, so don't forget to check your email inbox.




T&C's


The application is open only for Indian nationals.


Only the selected users will get a chance to be one of the Mi Explorer, and the application doesn't guarantee a selection.


Details provided by the applicants during the registration process, cannot be modified later.


We will send an email to notify all qualified applicants on 25th June. Shortlisted applicants need to follow the instructions mentioned in the email regarding Mi Explorers participation requirements and time-frame.


Following the confirmation, sudden cancellation is not allowed and the shortlisted candidate will not be eligible to register to any Xiaomi events in the future.


By signing the NDA, shortlisted candidate agree not to leak any details in regards to the product, including the product name/images/screenshots/others on any platform without Xiaomi's permission. 


We support fair practices and therefore, only individuals can participate in the Mi Explorers program. Group participation, Xiaomi staff, event organizers, distributors, and Xiaomi affiliated employees are not eligible to participate.


All selected 'Mi Explorers' need to complete a series of missions. The mission details, timelines, and the mission format will be shared on the mission thread and are subject to change. Stay tuned to Mi Community for further information.


All missions need to be submitted on/before the deadline and will be monitored closely.


Explorers acquire points by accomplishing missions, and by the number of likes received on their completed missions.


Points & likes will relate to rankings and will be the deciding factor.


The collected information will solely be used for Mi Explorers 2019.


Xiaomi has ownership to keep and use your submitted content, to change, to re-use, to reproduce without prior notice. Xiaomi has the right to collect your personal data for contact purpose and check your given social media handles.