## typeorm – how to add extra field to “many to many” table?

for example:

3 tables

user user_business_lines_business_line business_line 

those created by typeorm with the declaration in User

@ManyToMany(type => BusinessLine) @JoinTable() businessLines: BusinessLine[] 

then, how to add columns fields like

@CreateDateColumn({ type: 'timestamp' }) createdAt: Date  @UpdateDateColumn({ type: 'timestamp' }) updatedAt: Date 

to user_business_lines_business_line

## What camera shoulder bag to choose for small DSLR with 2-3 extra lenses and flash?

I would like to purchase a camera shoulder bag to fit a small DSLR camera with an attached lens, 2-3 extra lenses and a flash.

The collection of lenses I am planning to carry can vary depending on the situation, but I would like to be able to carry at least these selections in a manner that one lens is attached to the camera and 2 or 3 others have the lens caps on both sides:

1. Zoom, telezoom and 50mm
• Canon 55-250mm
• Canon 18-55mm
• Canon 50mm f/1.8 prime
2. Many zooms
• Canon 55-250mm
• Canon 18-55mm
• Canon 10-18mm
3. Primes and ultrawide
• Canon 24mm f/2.8 prime (pancake lens)
• Canon 50mm f/1.8 prime
• Canon 85mm f/1.8 prime
• Canon 10-18mm

Note the 50mm and 24mm together are the size of a zoom lens, so even though one of the lens selections has 4 lenses, in practice it still counts as 3.

I also have a small DSLR (Canon 2000D) and a flash (Canon 430EX-III RT). I also ordered a MagMod MagGrip and a MagMod MagBounce.

There are several criteria I have:

• Weather sealing is a must
• Weight of the bag should be reasonably low (I calculated the shoulder bag would add total max weight to about 2.6 – 2.8 kg depending on the bag weight if carrying lens selection 3, flash and MagMod equipment; that’s the worst possible case — although I hate weighty equipment, I have carried temporarily a laptop in a shoulder bag with 3.5 kg total weight which is slightly uncomfortable, so 2.6 – 2.8 kg should be barely acceptable)
• Should be durable
• Shouldn’t be excessively large in external dimensions; no need for “future expansion” as the amount of equipment I can carry is anyway limited by weight

My research has led me to believe that of the Lowepro bags, Nova 160 AW II and 170 AW II would be too small and thus I’ll have to purchase Nova 180 AW II if going with a Lowepro bag.

Can anyone recommend what bag to choose? Is my estimate correct that Nova 180 AW II would be necessary? Any other good choices than Lowepro?

One option would be to go to a retailer that has various Lowepro bags on the shelf and try to fit all the equipment to the bag, but this is complicated by two things: (1) the 10-18mm and MagMod equipment I ordered haven’t yet arrived, (2) one of the retailers I frequently buy stuff from doesn’t have 170 AW II on the shelf, so I can’t try all three.

I’m not going to use the bag for foreign travel. If I’m someday visiting another country and carry a DSLR for the trip, I’ll buy another, smaller camera bag for the trip.

## How to remove extra versions of python from Ubuntu 3.6

I have manually installed python 2.6.5 as I wanted to link it with special verison of OpenSSL. Things did not work at all. I removed OpenSSL and now I want to completely remove Python 3.6 and leave only the default Python 3.6.

I run: whereis python and got:

python: /usr/bin/python2.7-config /usr/bin/python3.6 /usr/bin/python3.6m /usr/bin/python /usr/bin/python2.7 /usr/lib/python3.6 /usr/lib/python2.7 /usr/lib/python3.7 /etc/python3.6 /etc/python /etc/python2.7 /usr/local/bin/python3.6-config /usr/local/bin/python3.5m-config /usr/local/bin/python3.6 /usr/local/bin/python3.6m-config /usr/local/bin/python3.6m /usr/local/bin/python3.5-config /usr/local/bin/python3.5m /usr/local/bin/python3.5 /usr/local/lib/python3.6 /usr/local/lib/python2.7 /usr/local/lib/python3.5 /usr/include/python3.6m /usr/include/python2.7 /usr/share/python /usr/share/man/man1/python.1.gz  

It seems to me there are multiple versions of Python 3.6? How can I delete all of them and just leave the default (system shipped one).

I am worried as I read that removing Python 3.6 from Ubuntu is dangerous. Please, help me.

## re.findall() is adding extra characters in the output

I have file with the following content:

<td Class='result-name '>timing: cycles</td> <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>31787.0</td> <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>4973.0</td> <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>incomplete</td> <td Class='metric' title='Test gave a performance metric.' lastPassTag=''>4973.0</td> </tr><tr class='detail-hide'> 

This is the code I have written to extract lines between first and last lines:

with open(html_file,'r') as file:         contents=file.readlines()         m = re.findall (r"<td Class='result-name '>timing: cycles</td>(.*?)</tr><tr class='detail-hide'>", str(contents), re.DOTALL)         print(m)  

It gives me the following output with extra characters :

"<td Class=\'metric\' title=\'Test gave a performance metric.\' lastPassTag=\'\'>31787.0</td>\n", "<td Class=\'metric\' title=\'Test gave a performance metric.\' lastPassTag=\'\'>4973.0</td>\n", "<td Class=\'metric\' title=\'Test gave a performance metric.\' lastPassTag=\'\'>incomplete</td>\n", "<td Class=\'metric\' title=\'Test gave a performance metric.\' lastPassTag=\'\'>4973.0</td>\n", 

Please suggest me how I can remove that. Thank you.

## Why is there an extra space when I type “ls” on the Desktop?

Just out of curiosity, I was wondering if there is a reason for the extra space when I ls on the Desktop. Compare…

~/Desktop$ls file1 file2 file3  …to… ~/Documents$   ls file1 file2 file3 

Notice that when I ls on the Desktop I get an extra space at the beginning of the line (not part of the filename). I can’t find any other example location where I get this extra space at the beginning of the line. Does anyone else get this? Is there a reason?

NB: I am using Ubuntu Bionic Beaver LTS release and the default terminal that ships with it.

## Can you add an extra e^x when integrating? [migrated]

So I’ve been given this problem to solve (pretend it’s a fraction or click the link to see the question please)

 ∫     -26e^x-144     e^(2x) + 13e^x + 36 

problem image

and I got this far:

-2∫      13e^x + 72      e^(2x) + 13e^x + 36 

The next step is a simple u-sub which I am unable to do. I looked to a step-by-step calculator for help, and what I see is

∫      13u+ 72   u(u^2 + 13u + 36) 

clearer image

But I’m confused. Where did the extra u come from?

I’m guessing that its like in the situation where you have ∫cos(2θ)dθ and you have u = 2θ and du = 2dθ, but there is no extra 2, so the end result is (1/2)∫cos(u)du

But I thought you could only do that with constants! You don’t just add an extra x^2 when you need it. As thus, you shouldn’t be able to add an extra e^x just cos you need it. Or am I missing something.

## Auth0: Provide extra context during client credentials OAuth token exchange

I am building a multi-tenant application where we have a concept of an organization that has users. Our application is modeled such that a user can belong to many organizations, but the user can only be logged into one of them at a time. I am attempting to come up with a solution in Auth0 for putting the ID of the organization the user is currently using within a JWT access token (using Auth0 hooks) as a custom claim.

In terms of when the user is logging into the app, our idea here is to have one Auth0 Application per organization where the Application has metadata about which organization it represents. So no issue there.

The problem comes as I am trying to allow our services to communicate with each other and also have the access tokens scoped down to a single organization. Originally, I had thought I would put metadata in these Auth0 Applications which indicate they have permission to access any organization and then request a specific scope when getting a token to indicate which organization I want right now. For example, I would request a token with scope org:xyz and have an Auth0 Hook which could cross-check this scope with the metadata to know whether to allow it.

The problem is that there’s no way to specify a scope in the /oauth/token route for the client_credentials token. I cannot find any other way to indicate to the hook which org I am trying to access.

So my questions are twofold:

Is there some way to provide this contextual information to Auth0 so that in my hook I know which organization ID to put in the token?

If not, any other architectural suggestions for dealing with the setup described above? The only options I can think of are for our services to manage one OAuth client per organization or to perhaps have one Auth0 “API” per organization so that I can specific a specific audience that I am requesting the token for. Both of these sound like a management nightmare, however.

## Normal bundle of “extra” curve in a fiber

Suppose that $$X$$ is a general $$(4,1)$$ hypersurface in $$\mathbb P^3 \times \mathbb P^1$$, which we think of via $$\pi : X \to \mathbb P^1$$, the projection onto the second factor, as a family of K3 surfaces.

For a genenal $$t \in \mathbb P^1$$, $$X_t$$ doesn’t contain any $$(-2)$$ curves, but for special values of $$t$$ it does (for example, if the quartic contains a line). Suppose that $$C \subset X_t$$ is a $$(-2)$$-curve on $$X_t$$. What is $$N_{C/X}$$?

Of course it is an extension of $$N_{C/X_t}$$ by $$N_{X_t/X}\vert_C$$, i.e. of $$\mathcal O_{\mathbb P^1}(-2)$$ by $$\mathcal O_{\mathbb P^1}$$. But that could be either $$\mathcal O_{\mathbb P^1}(-1)^{\oplus 2}$$ or $$\mathcal O_{\mathbb P^1}(-2) \oplus \mathcal O_{\mathbb P^1}$$, and I don’t know how to distinguish.

## Arabic and English voice over + free extra one for \$30

Hello. My name is Omar Elkadi. I am a native Arab. I am very fluent in English. I can do a professional voice over in the originals Arabic. Also, I can do the Saudi, Egyptian accents and other accents. I can do English Arab accent also. About the English accent, I can do it in an American accent and English Arab accent.