Solving integral involving absolute value of a vector

I am trying to integrate the following in mathematica:
$ \int_0^r \frac{exp(-k_d(|\vec{r}-\vec{r_j}|+|\vec{r}-\vec{r_i}|)}{|\vec{r}-\vec{r_j}|\times|\vec{r}-\vec{r_i}|}r^2dr$ .
I have first defined, the following functions,
$ \vec p(x,y,z)= (x-x_j)\hat i + (y-y_j)\hat j+(z-z_j)\hat k$
Similarly,
$ \vec q(x,y,z)= (x-x_i)\hat i + (y-y_i)\hat j+(z-z_i)\hat k$ .
And,
$ \vec r(x,y,z)=x\hat i + y\hat j+z\hat k $
Then I clicked the integration symbol in the classroom assistant panel and typed the integrand in the $ expr$ portion. While typing this, I have used $ Abs$ to take modulus of the functions $ \vec p(x,y,z)$ and $ \vec q(x,y,z)$ . I have included the limits as $ 0$ to $ Abs(r)$ and the $ var$ as $ r$ in the integration symbol. But when I press( Shift + Enter ) no output value is shown . Can anyone tell me where I have made mistake ?

We Want Nothing Less Than Your Absolute Satisfaction

It’s been a busy few weeks for London-based Foot Patrol. After opening their newest retail location in Paris, they’ve now teamed up with asics clothing outlet for a special take on a well-known sneaker: the ASICS GEL-Saga. The legendary running silhouette—first released in 1991—originally drew its design inspiration from the mech characters featured in the classic anime series Gundam Wing.This heratage-inspired collaboration is drawing from that original vision even further, dressing the shoe in a combination of white, grey, blue, and just a touch of pink-just like a Gundam mobile suit’s color scheme. The shoe utilizes white mesh underlays and light grey suede overlays as a base, while the main accents arrive via pearlecent blue and silver patent leather detailing on the iconic tiger stripe. Co-branded accents arrive on the medial heel counter and throat, a medium grey tongue and heel collar add a pinch of dark contrast, and the shoe is completed with pink lace tips boasting a mech-style model number.
</br></br>
Above you will get another look at the latest collab release between Patta and asics appatel stores, the Patta x Asics Gel Lyte. The collab has the Gel Lyte dressed in a Grey, Honey Ginger and Dark Purple color scheme. The shoe is constructed out of premium nubuck, suede and mesh combination while also coming with features such as the co-branded tongue and graphic detailing on the insole, perforation hits on the toe, a total of three different tonal lace options, and the Patta lace dubrae done in Rose Gold. In addition, every pair comes with a custom Asics x Patta hangtag to complete the collaborative look and feel of the shoe. 
</br></br>
Rocking autumn vibes from head to toe, today we provide you with new images and release info on the upcoming asics men’s clearance.This latest collab between the two comes dressed in a Grey, Honey Ginger and Dark Purple color scheme. Constructed out of nubuck, suede and mesh, the shoe comes with features such as the co-branded tongue and graphic detailing on the insole, perforation hits on the toe, and the  Patta lace dubrae in Rose Gold. Every pair comes with a custom Asics x Patta hangtag and additional sets of Pink and Ginger Honey laces.
</br></br>
Having dropped overseas just last month, the asics womens clearance has now made its way stateside.Inspired by the Yokosuka jacket, a popular souvenir among American military in Japan, the BEAMS x mita sneakers x Asics Gel Lyte 3 Souvenir Jacket is made of navy pigskin nubuck and velour on the upper, while the heel features an embroidered dragon patch and ‘Japan’ is embroidered on the side in original script. The outer sole is also inspired by the dragon and features an original graphic.

Partition into pairs with minimum absolute difference, NP-hard?

I have a set $ S$ of an even number of positive elements $ 2m$ and $ m$ values $ t_1,t_2,\ldots,t_m$ where each $ t_i\leq1$ for all $ i$ .

The question is: can you select $ m$ pairs $ (a_i,b_i)$ from $ S$ such that $ |a_i-b_i|\geq t_i$ ?

I was trying to prove that this problem is NP-hard by a reduction from 3-Partition Problem. I failed because if I choose the numbers as in 3-partition I cannot guarantee that their absolute difference is at least $ t_i$ .

Do you have any hints?

Absolute URL for (MultiSite) link images

How I can I get WordPress to stop making link-image URLs relative?

I’m trying to add logos to the blog-roll widget, but WordPress makes the URLs of the images relative to the current blog.

For example, if the site is example.com/blogs, the images in the blog-roll widget at the main blog work correctly, but the ones at example.com/blogs/foobar are broken because instead of using something like /common/bloglogos/main.png (or even https://example.com/common/blog/logos/main.png), it uses https://example.com/blogs/foobar/common/bloglogos/main.png.

I’ve tried various combinations of URLs and formats, but it always makes the images’ URLs relative to the current blog which is annoying because it would require uploading the images for all of the blogs to each of them instead of having them all in a central location which can be updated as necessary with just one change.

The URLs of the links themselves are fine, it’s just the URLs of the images of the links that are the problem.

LibreOffice linked images: why relative paths looks like absolute

Does anybody know, for what reason relative paths of the linked images looks like the absolute ones?

Here is quick test:

  1. Open Writer.

  2. Ensure your LibreOffice options are correct:

    • Menu > Tools > Options > Load/Save > General
    • Save URLs relative to file system = True
  3. Then, insert some linked image (don’t simply paste it). Before inserting, the image should be in the same directory with the document.

  4. Close Writer.

  5. Move the document with the image to some another directory.

  6. Open Writer again. Ensure the image is visible.

  7. Close Writer again. Move the image outside this directory. The image should not be visible anymore.

In case all these steps works correctly for you, you know that the image is really the linked one, and is linked via relative path.

But now, look at this relative path:

Open image properties window > Open Image tab > See that the path in the File Name field looks as the absolute one.

Why?

getCanonicalPath() does not return absolute path on Ubuntu Server 18.04

I’m having an issue fetching the complete path of using getCanonicalPath() inside a spring boot app that I deployed in ec2 .

String absolute_path = new File("../datalake").getCanonicalPath()+"/"+files_path; absolute_path = absolute_path.replaceAll("\\", "/"); System.out.println(absolute_path); 

Expected Output :

/opt/apache-8/datalake/TestDataset-10001/TestDataSource-10001/Extraction-10027 

Current Output :

/datalake/TestDataset-10001/TestDataSource-10001/Extraction-10027 

More Detail

I have deployed a spring boot web application inside an ec2 instance under and I’m trying the fetch the path of ” data lake ” folder in the location

/opt/apache-8/datalake

from a war, I deployed under /opt/apache-8/webapps/

I’ve tried all internet answers I could find, not sure how to approach this, is it a permission issue, I was hoping if someone encountered similar issue

FYI Right now the permission distribution is as follows

Jenkins User/group: Jenkins/Jenkins

Tomcat, Apache2, SFTP Server User/group: ubuntu/ubuntu

I’ve spent like 2 days on this alone

How to get an absolute value of Around?

Around is a useful feature of Mathematica 12 to work with uncertain data.

x = Around[-1, {0.5, 1.5}] 

$ -1.0^{+1.5}_{-0.5}$

I’m curious how to get an absolute value of such uncertain data. When I use Abs directly I get an unexpected result:

Abs[x] 

$ 1.0^{+1.5}_{-0.5}$

I have expected: $ 1.0^{+0.5}_{-1.0}$ , because

Abs[x["Interval"]] 

Interval[{0, 1.5}]

In total there are two issues:

  1. Upper and lower uncertainties are not interchanged when taking Abs.

  2. Crossing of zero is ignored.

Is this intended behaviour of Around or some sort of a bug?

How should I calculate absolute values of uncertain data points? For example, when I want to plot Abs of uncertain of data?