What to do after creating a package?

I have created the following package.

BeginPackage("AplicacionCartesiana`")
AplicacionCartesiana::usage = "AplicacionCartesiana(f, {x0, x1, dx}, 
{y0, y1, dy}) plots the image of the Cartesian coordinates under the 
complex function f."
Begin("`Private`")
AplicacionCartesiana(func_, {x0_, x1_, dx_}, {y0_, y1_, dy_}) :=
 Module({xy, x, y, hg, vg},
  xy = func(x + I y);
  hg = Curves(xy, {x, x0, x1, dx}, {y, y0, y1});
  vg = Curves(xy, {y, y0, y1, dy}, {x, x0, x1});
  Show(Graphics(Join(hg, vg)),
   AspectRatio -> Automatic,
   Axes -> True)
  )
Curves(xy_, spread_, bounds_) :=
 With({curves = Table({Re(xy), Im(xy)}, spread)},
  ParametricPlot(curves, bounds, DisplayFunction -> Identity)((1))
  )
End()
EndPackage()

But I want to know where to put it on my computer to use (with Get () or Needs ()) in another Mathematica session.
Thank you very much.

NixOS: Set package configuration globally (for all packages)

Under NixOS I try to compile my system without Gnome.
For example, network-manager / openconnect has an withGnome option:

{ stdenv, fetchurl, openconnect, intltool, pkgconfig, networkmanager, libsecret
, withGnome ? true, gnome3, procps, kmod }:

I want to set that to false; but while I could do that with an overlay,
I'm not sure how to set Gnome to false all Packages that were created as part of the system.

In 6.1.1 of the nixos manual, the following is; However, it seems like overwriting a single package for the benefit of all dependent people instead of overwriting all packages with a single option.

The overrides shown above are not global. They do not affect the
Original packaging; Other packages in Nixpkgs continue to depend on the
Original and not the customized package. This means that if
Another package in your system depends on the original package, you
in the end with two instances of the package. If you want to have
Everything depends on your custom instance. You can apply a global instance
overwrite as follows:

Any help appreciated.

SQL Server – SSIS Package Deployment. Changing the protection level takes a long time

We are currently migrating our servers to a new data center. Currently, SQL Server 2014 and SSIS packages are deploying in seconds.

The new data center has several SQL Server 2016 installations and I've found that "changing the protection level" takes a long time for some (about 7 minutes!), But for some it's fast. If I change the SSIS project TargetServer version to 2016, changing the protection level on all new servers is slow.

The protection level of the project and the packages has been (and is) set to DontSaveSensitive.

What is the cause of the slowness and how can I fix it? It is finally provided without error.

Differential Equations – Error while attempting to solve a 2D elasticity problem with the FEM package

I have the following equations
$$ frac { partial {N_x}} { partial {x}} + frac { partial {n_ {xy}} { partial {y}} = 0 $$
$$ frac { partial {N_y}} { partial {y}} + frac { partial {N_ {xy}}} { partial {x}} = 0 $$
Where
begin {equation}
begin {bmatrix} N_ {x} \ N_ {y} \ N_ {xy} end {bmatrix} = begin {bmatrix} A_ {11} (x) & A_ {12} (x) & 0 A_ {12} (x) & A_ {22} (x) & 0 \ 0 & A_ {66} end {bmatrix} begin {bmatrix} frac { partial {u}} { partial {x }} \ frac { partial {v}} { partial {y}} \ frac { partial {u}} { partial {y}} + frac { partial {v}} { partial {x}} end {bmatrix} end {equation}

$ A_ {ij} $ are only varied on $ x $ Direction. The boundary conditions are shown below. I'm trying to apply the complete panel BCs.

99

Can someone help me to model this problem. I have looked at the FEM package, but still can not solve it. Thank you in advance. I'm looking for a solution for u (x, y) and v (x, y).

Follow my code:

E1 = 147 10^9; E2 = 10.3 10^9; G12 = 7 10^9; nu12 = 0.27; nu21 = (E2*nu12)/E1; t = 0.127 10^-3; a = 1; b = 1; u0 = -1;

Son = {{1/E1, -nu12/E1, 0}, {-nu21/E2, 1/E2, 0}, {0, 0, 1/G12}};
Qon = Inverse(Son);
angles = {{0, 45}, {0, -45}, {0, -45}, {0, 45}};
num = Dimensions(angles)((1));
h = num*t;
pos = Table(0, num + 1);
pos((1)) = -h/2;
For(i = 2, i <= num + 1, i++,
pos((i)) = pos((i - 1)) + t;)
mA = ConstantArray(0, {3, 3});
mB = ConstantArray(0, {3, 3});
mD = ConstantArray(0, {3, 3});

For(i = 1, i <= num, i++,
T0 = angles((i, 1)) (pi/180);
T1 = angles((i, 2)) (pi/180);
theta(x_) = (2/a) (T1 - T0) Abs(x) + T0;
m = Cos(theta(x));
n = Sin(theta(x));
Q11 = Qon((1, 1));
Q12 = Qon((1, 2));
Q22 = Qon((2, 2));
Q66 = Qon((3, 3));
Qxx = m^4*Q11 + n^4*Q22 + 2*m^2*n^2*Q12 + 4*m^2*n^2*Q66;
Qyy = n^4*Q11 + m^4*Q22 + 2*m^2*n^2*Q12 + 4*m^2*n^2*Q66;
Qxy = m^2*n^2*Q11 + m^2*n^2*Q22 + (m^4 + n^4)*Q12 + -4*m^2*n^2*Q66;
Qss = m^2*n^2*Q11 + m^2*n^2*Q22 - 2*m^2*n^2*Q12 + (m^2 - n^2)^2*Q66;
Qxs = m^3*n*Q11 - m*n^3*Q22 + (m*n^3 - m^3*n)*Q12 + 2*(m*n^3 - m^3*n)*Q66;
Qys = m*n^3*Q11 - m^3*n*Q22 + (m^3*n - m*n^3)*Q12 + 2*(m^3*n - m*n^3)*Q66;
Qoff = {{Qxx, Qxy, Qxs}, {Qxy, Qyy, Qys}, {Qxs, Qys, Qss}};
mA = mA + Qoff*(pos((i + 1)) - pos((i)));
mB = mB + Qoff*(pos((i + 1))^2 - pos((i))^2);
mD = mD + Qoff*(pos((i + 1))^3 - pos((i))^3);
);
mB = mB/2;
mD = mD/3;

Needs("NDSolve`FEM`")
omega = Rectangle({-a/2, -b/2}, {a, b});
mesh = ToElementMesh(omega);

A11(x_) = mA((1, 1)); A12(x_) = mA((1, 2)); A16(x_) = mA((1, 3)); 
A22(x_) = mA((2, 2)); A26(x_) = mA((2, 3)); A66(x_) = mA((3, 3));
Nx(x_, y_) = A11(x) D(u(x, y), {x, 1}) + A12(x) D(v(x, y), {y, 1}) + 
             A16(x) (D(u(x, y), {y, 1}) + D(v(x, y), {x, 1}));
Ny(x_, y_) = A12(x) D(u(x, y), {x, 1}) + A22(x) D(v(x, y), {y, 1}) + 
             A26(x) (D(u(x, y), {y, 1}) + D(v(x, y), {x, 1}));
Nxy(x_, y_) = A16(x) D(u(x, y), {x, 1}) + A26(x) D(v(x, y), {y, 1}) + 
              A66(x) (D(u(x, y), {y, 1}) + D(v(x, y), {x, 1}));

PDEs = {D(Nx(x, y), {x, 1}) + D(Nxy(x, y), {x, 1}), D(Ny(x, y), {y, 1}) + 
        Nxy(x, y), {y, 1})};
gammaD = {DirichletCondition(u(x, y) == u0, x == a/2), 
          DirichletCondition(u(x, y) == -u0, x == -a/2)};
NDSolve({PDEs == {0, 0}, gammaD}, {u, 
   v}, {x, y} (Element) mesh);

I get the following error:

NDSolve::femcnmd: The PDE coefficient {{0.000508 (-8.22842*10^11 Cos(Times(<<2>>))^3 Sin(1.5708 Abs(<<1>>)) (Abs^(Prime))(x)-4.04788*10^10 Cos(1.5708 Abs(<<1>>)) Sin(Times(<<2>>))^3 (Abs^(Prime))(x))+0.000254 (<<1>>)+<<1>>+1/2 (-0.001016 (-8.22842*10^11 Power(<<2>>) Sin(<<1>>) (<<1>>^(<<1>>))(<<1>>)-4.04788*10^10 Cos(<<1>>) Power(<<2>>) (<<1>>^(<<1>>))(<<1>>))-0.000508 (2.32093*10^11 Power(<<2>>) (<<1>>^(<<1>>))(<<1>>)-7.45065*10^11 Power(<<2>>) Power(<<2>>) (<<1>>^(<<1>>))(<<1>>)+1.62623*10^10 Power(<<2>>) (<<1>>^(<<1>>))(<<1>>)+1.67953*10^10 Plus(<<3>>))-0.000508 (-2.32093*10^11 Power(<<2>>) (<<1>>^(<<1>>))(<<1>>)+7.45065*10^11 Power(<<2>>) Power(<<2>>) (<<1>>^(<<1>>))(<<1>>)-1.62623*10^10 Power(<<2>>) (<<1>>^(<<1>>))(<<1>>)+1.67953*10^10 Plus(<<3>>))),<<1>>}} does not evaluate to a numeric matrix of dimensions {1,2} at the coordinate {-0.4625,-0.4625}; it evaluated to {{0.,5.79879*10^6 (Abs^(Prime))(-0.4625)}} instead.

Can someone help me? Thank you all in advance.

Java license does not work in the Snap package

we use Ubuntu 16.04 for our packaging of java application in grab, We've developed a Java facial recognition application using a third-party SDK. The application requires a license from a third-party SDK to run. The license should be run as a separate instance on the installed computer.

After our application has been packaged with the dependencies and licenses with snap, our Java application does not recognize the license instance being executed.

The license file is executed through the SDK-provided shell script, which runs locally on the port 5000,

Do we need to take other steps when packaging the application specifically for this type of licensing?

I have attached my snapcraft.yaml file below

name: facecheck # you probably want to 'snapcraft register '
base: core18 # the base snap is the execution environment for this snap
version: '1.0' # just for humans, typically '1.2+git' or '1.3.2'
summary: Face recognition # 79 char long summary
description: |
  This application is used to recognise and detect the persons face
  with the enrolled data from database.

grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots

apps:
 facecheck:
   command: usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -jar $SNAP/Bin/Java/simple-surveillance-application.jar
   environment:
     JAVA_HOME: $SNAP/usr/lib/jvm/java-1.8.0-openjdk-amd64
     PATH: $JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
     LD_LIBRARY_PATH: $SNAP/Lib/Linux_x86_64
   plugs: [desktop, home, camera, x11, desktop-legacy, opengl, alsa, pulseaudio, network-bind]
   autostart: Facecheck-surveillance.desktop

parts:
  facecheck:
   source: .
   plugin: dump
   build-packages: 
     - nvidia-384-dev
     - libgtk-3-dev
     - gstreamer1.0-vaapi
     - vainfo
     - openjdk-8-jre
     - openjdk-8-demo
     - libgdk-pixbuf2.0-dev
     - alsa-utils
     - libasound2-data
     - libasound2-plugins
     - libasound2
     - libopus-dev
     - libortp-dev
     - gcc
     - g++
     - make
     - libgudev-1.0-0
     - libgudev-1.0-dev 
     - libgstreamer1.0-0 
     - gstreamer1.0-plugins-base 
     - gstreamer1.0-plugins-good 
     - gstreamer1.0-plugins-bad 
     - gstreamer1.0-plugins-ugly 
     - gstreamer1.0-libav 
     - gstreamer1.0-doc 
     - gstreamer1.0-tools 
     - gstreamer1.0-x 
     - gstreamer1.0-alsa 
     - gstreamer1.0-gl 
     - gstreamer1.0-gtk3 
     - gstreamer1.0-qt5 
     - gstreamer1.0-pulseaudio
     - libfontconfig1-dev 
     - libfreetype6-dev 
     - libpng-dev
     - libcairo2-dev 
     - libjpeg-dev 
     - libgif-dev
     - libgstreamer-plugins-base1.0-dev
     - python-gst-1.0 
     - python3-gst-1.0
     - postgresql
     - postgresql-contrib
     - odbc-postgresql
     - unixodbc
     - unixodbc-dev
     - build-essential
     - manpages-dev
   stage-packages:
     - libgpm2
     - libslang2 
     - libnvidia-compute-390
     - openjdk-8-jre
     - openjdk-8-demo
     - nvidia-384-dev
     - libgtk-3-dev
     - gstreamer1.0-vaapi
     - vainfo
     - libgdk-pixbuf2.0-dev
     - alsa-utils
     - libasound2-data
     - libasound2
     - libasound2-plugins
     - gcc
     - g++
     - make
     - libgudev-1.0-0
     - libgudev-1.0-dev
     - libgstreamer1.0-0 
     - gstreamer1.0-plugins-base 
     - gstreamer1.0-plugins-good 
     - gstreamer1.0-plugins-bad 
     - gstreamer1.0-plugins-ugly 
     - gstreamer1.0-libav 
     - gstreamer1.0-doc 
     - gstreamer1.0-tools 
     - gstreamer1.0-x 
     - gstreamer1.0-alsa 
     - gstreamer1.0-gl 
     - gstreamer1.0-gtk3 
     - gstreamer1.0-qt5 
     - gstreamer1.0-pulseaudio
     - libfontconfig1-dev 
     - libfreetype6-dev 
     - libpng-dev
     - libcairo2-dev 
     - libjpeg-dev 
     - libgif-dev
     - libgstreamer-plugins-base1.0-dev
     - python-gst-1.0 
     - python3-gst-1.0
     - postgresql
     - postgresql-contrib
     - odbc-postgresql
     - unixodbc
     - unixodbc-dev
     - build-essential
     - manpages-dev

broken Debian package and fix with apt-get -f

What exactly happens when we have one deb Package that ends up as a bad installation, and how is it? apt-get -f fixes the situation (instead of starting during the installation)?

Example:

1) We install the Ferdi package downloaded from https://github.com/getferdi/ferdi/releases/tag/v5.3.3:

$ dpkg -i ferdi.deb
Selecting previously unselected package ferdi.
(Reading database ... 180829 files and directories currently installed.)
Preparing to unpack .../ferdi_5.3.3_amd64.deb ...
Unpacking ferdi (5.3.3-157) ...
dpkg: dependency problems prevent configuration of ferdi:
 ferdi depends on gconf2; however:
  Package gconf2 is not installed.
 ferdi depends on gconf-service; however:
  Package gconf-service is not installed.
 ferdi depends on libappindicator1; however:
  Package libappindicator1 is not installed.

dpkg: error processing package ferdi (--install):
 dependency problems - leaving unconfigured
Processing triggers for mime-support (3.64) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Errors were encountered while processing:
 ferdi

As we can see, the package is not installed correctly due to missing dependencies.

2) Repairing the broken package is easy:

$ apt-get --fix-broken --yes install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  gconf-service gconf2 libappindicator1 libdbusmenu-gtk4 libindicator7
Suggested packages:
  gconf-defaults-service
The following NEW packages will be installed:
  gconf-service gconf2 libappindicator1 libdbusmenu-gtk4 libindicator7
0 upgraded, 5 newly installed, 0 to remove and 53 not upgraded.
1 not fully installed or removed.
Need to get 993 kB of archives.
After this operation, 1,539 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian unstable/main amd64 gconf-service amd64 3.2.6-6 (415 kB)
Get:2 http://deb.debian.org/debian unstable/main amd64 gconf2 amd64 3.2.6-6 (426 kB)
Get:3 http://deb.debian.org/debian stable/main amd64 libdbusmenu-gtk4 amd64 18.10.20180917~bzr490+repack1-1 (45.7 kB)
Get:4 http://deb.debian.org/debian stable/main amd64 libindicator7 amd64 0.5.0-4 (53.0 kB)
Get:5 http://deb.debian.org/debian stable/main amd64 libappindicator1 amd64 0.4.92-7 (53.3 kB)
Fetched 993 kB in 1s (1,071 kB/s)          
Selecting previously unselected package gconf-service.
(Reading database ... 181193 files and directories currently installed.)
Preparing to unpack .../gconf-service_3.2.6-6_amd64.deb ...
Unpacking gconf-service (3.2.6-6) ...
Selecting previously unselected package gconf2.
Preparing to unpack .../gconf2_3.2.6-6_amd64.deb ...
Unpacking gconf2 (3.2.6-6) ...
Selecting previously unselected package libdbusmenu-gtk4:amd64.
Preparing to unpack .../libdbusmenu-gtk4_18.10.20180917~bzr490+repack1-1_amd64.deb ...
Unpacking libdbusmenu-gtk4:amd64 (18.10.20180917~bzr490+repack1-1) ...
Selecting previously unselected package libindicator7:amd64.
Preparing to unpack .../libindicator7_0.5.0-4_amd64.deb ...
Unpacking libindicator7:amd64 (0.5.0-4) ...
Selecting previously unselected package libappindicator1:amd64.
Preparing to unpack .../libappindicator1_0.4.92-7_amd64.deb ...
Unpacking libappindicator1:amd64 (0.4.92-7) ...
Setting up libindicator7:amd64 (0.5.0-4) ...
Setting up gconf-service (3.2.6-6) ...
Setting up libdbusmenu-gtk4:amd64 (18.10.20180917~bzr490+repack1-1) ...
Setting up libappindicator1:amd64 (0.4.92-7) ...
Setting up gconf2 (3.2.6-6) ...
Setting up ferdi (5.3.3-157) ...
Processing triggers for man-db (2.9.0-1) ...
Processing triggers for libc-bin (2.29-2) ...
  1. Why are the missing dependencies not installed while? dpkg -i?
  2. why is apt-get -f able to solve it easily?
  3. Is that okay, or is it possibly causing a system failure?

E: Package handbrake-cli could not be found

I'm trying to install the handbrake on my Raspberry Pi 3 under Ubuntu 18.04.3 LTS (GNU / Linux 4.15.0-1041-raspi2 aarch64).
I keep trying to install a handbrake on my Pi, but everything is unsuccessful. The Internet seems to have a consensus on how to do this, but I still get the error message E: Package handbrake-cli could not be found. what does that mean?

sudo apt-get install handbrake-cli

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package handbrake-cli