plotting – Removing polygons from exported RegionPlot

I have the following code that runs a RegionPlot

Clear(Rg3, SetRg3, Ig3, SetIg3, (Kappa)1, Set(Kappa)1, (CapitalGamma), Set(CapitalGamma), (Kappa)2, Set(Kappa)2, g1, Setg1, g2, Setg2, r1)
Set(Kappa)1 = 1; Set(CapitalGamma) = 0.01; Set(Kappa)2 = 20;
r1 = RegionPlot(SetRg3 = 0; SetIg3 = 0; 
NMG3 = {{-(CapitalGamma)/
  2, -I*g1, -I*Rg3 + Ig3}, {-I*g1, -(Kappa)1/
  2, -I*g2}, {-I*Rg3 - Ig3, - I*g2, -(Kappa)2/2}} /. {Rg3 -> 
  SetRg3, Ig3 -> SetIg3, (Kappa)1 -> 
  Set(Kappa)1, (CapitalGamma) -> 
  Set(CapitalGamma), (Kappa)2 -> Set(Kappa)2, g1 -> Setg1, 
 g2 -> Setg2};
EigensysNMG3 = 
Eigensystem(NMG3, Cubics -> True); {Chop(
Min({((Abs(
       Normalize(
         EigensysNMG3((2))((1))) /. {(Kappa)1 -> 
          Set(Kappa)1, (CapitalGamma) -> 
          Set(CapitalGamma), (Kappa)2 -> Set(Kappa)2, 
         g3 -> Setg3})).Transpose({{1, 0, 0}})), ((Abs(
       Normalize(
         EigensysNMG3((2))((2))) /. {(Kappa)1 -> 
          Set(Kappa)1, (CapitalGamma) -> 
          Set(CapitalGamma), (Kappa)2 -> Set(Kappa)2, 
         g3 -> Setg3})).Transpose({{1, 0, 0}})), ((Abs(

       Normalize(
         EigensysNMG3((2))((3))) /. {(Kappa)1 -> 
          Set(Kappa)1, (CapitalGamma) -> 
          Set(CapitalGamma), (Kappa)2 -> Set(Kappa)2, 
         g3 -> Setg3})).Transpose({{1, 0, 0}}))}) >= 
 RankedMax({((Abs(
        Normalize(
          EigensysNMG3((2))((1))) /. {(Kappa)1 -> 
           Set(Kappa)1, (CapitalGamma) -> 
           Set(CapitalGamma), (Kappa)2 -> Set(Kappa)2, 
          g3 -> Setg3})).Transpose({{1, 0, 0}}))((1)), ((Abs(
        Normalize(
          EigensysNMG3((2))((2))) /. {(Kappa)1 -> 
           Set(Kappa)1, (CapitalGamma) -> 
           Set(CapitalGamma), (Kappa)2 -> Set(Kappa)2, 
          g3 -> Setg3})).Transpose({{1, 0, 0}}))((1)), ((Abs(
        Normalize(
          EigensysNMG3((2))((3))) /. {(Kappa)1 -> 
           Set(Kappa)1, (CapitalGamma) -> 
           Set(CapitalGamma), (Kappa)2 -> Set(Kappa)2, 
          g3 -> Setg3})).Transpose({{1, 0, 0}}))((1))}, 
  2))}, {Setg1, 0.01, 10}, {Setg2, 0.01, 12}, PlotRange -> Full, ImageSize -> Large, PlotLegends -> Automatic, PlotPoints -> 100, PlotStyle -> Directive(Red, Opacity(0.35)), PlotRangePadding -> None, BoundaryStyle -> None, Mesh -> None)

which generates
enter image description here

Now I need it to be in vector format so I did Export("r1.pdf", r1). However, there are these polygons/triangles that shows up and it becomes really inconvenient for me to when doing post editing on Inkscape. I have included the zoomed in example below
enter image description here

As one can see, there are faint lines of triangles that are tiled in there. Removing them is what I’m trying to do.

Now I understand that this seems to be a common question upon Googling. However, none of the solutions worked for me in that it did not achieve what I want (namely, have it to be still vectorized, minus the triangles) or they were too difficult for me to understand and implement. For example, I have tried

Export("r1.pdf", 
Show(r1, 
Prolog -> {Opacity(0), Texture({{{0, 0, 0, 0}}}), 
VertexTextureCoordinates -> {{0, 0}, {1, 0}, {1, 1}}, 
Polygon({{0, 0}, {.1, 0}, {.1, .1}})})
)

which seems to do the trick. However, I need to post process it on Inkscape. But doing

Export("r1.svg", 
Show(r1, 
Prolog -> {Opacity(0), Texture({{{0, 0, 0, 0}}}), 
VertexTextureCoordinates -> {{0, 0}, {1, 0}, {1, 1}}, 
Polygon({{0, 0}, {.1, 0}, {.1, .1}})})
)

Doesn’t seem to vectorize it properly (while removing the triangles). I still see course pixels upon opening r1.svg on Inkscape.

Appreciate any help that I can get. Thanks for reading.

workflow – Should I add my exported photos to my Lightroom catalog?

After processing my RAW files in Lightroom, I often export JPGs to give to people or to post online. I create these files in a directory structure under an Export top level directory. I’m trying to decide whether it is good practice to add these files to my Lightroom catalog (or perhaps create a separate catalog just for exported files).

I’m kinda hesitant to add them to my main catalog, as I don’t know that I need to ever make changes to them, and I can always recreate them from the original (plus non-destructive mods stored in the Catalog for the RAW files).

On the other hand, it might be handy to have all your output files in a Catalog so they can be searched/sorted quickly and easily.

(A related question might be: should I even keep exported files once they’ve been delivered/sent/posted?)

I realize there are arguments to be made, and there probably isn’t a “correct” answer, so this may be too subjective, but I think the arguments themselves are valid and useful to others. The “correct” answer may be different for each person.

jpeg – Lightroom: how to not lose quality by exporting a photo from a previously exported photo collection?

enter image description hereI’m thinking to use Lightroom in order to organize catalogues by year (to avoid having large areas of files that I normally have in the cloud and download locally to work them).

Having catalogs per year precludes me from creating trans-year collections. Therefore the idea could be to work with collections per year and then on the folders of the exported items per year create a super catalog (of the best photos) from which to create trans-year collections.

The question is: is there any way to do not lose quality by exporting a photo from a previously exported photo collection?

jpeg – Lightroom: how to do not lose quality by exporting a photo from a previously exported photo collections?

I’m thinking to use Lightroom in order to organize catalogues by year (to avoid having large areas of files that I normally have in the cloud and download locally to work them).

Having catalogs per year precludes me from creating trans-year collections. Therefore the idea could be to work with collections per year and then on the folders of the exported items per year create a super catalog (of the best photos) from which to create trans-year collections.

The question is: is there any way to do not lose quality by exporting a photo from a previously exported photo collection?

spfx – Use SharePoint theme colors in SASS exported variables

I want to apply the color palette of the selected SharePoint theme to an SPFx web part by setting a number of variables that I export from the SPFx web part .scss file. I want to define the colors as exported variables instead of specifying classes, because I want to apply these colors inline in the output HTML and have to be able to dynamically select the different color variables. The intent is to apply the various exported color variables to an array according to the event category, and then set inline styles in the output HTML code with the color of the event category. I thought I could define the exported variables in the .scss, such as:

@import "~@microsoft/sp-office-ui-fabric-core/dist/sass/SPFabricCore.scss";
@import "./node_modules/spfx-uifabric-themes/office.theme.vars";

//category color variables (in order to get theme's actual colors)
$categoryColor1: $ms-color-themePrimary;
$categoryColor2: $ms-color-themeSecondary;

:export {
  themeDark: $ms-color-themePrimary;

  //event category colors
  categoryColor1: $ms-color-themePrimary;
  categoryColor2: $ms-color-themeSecondary;
  categoryColor3: $ms-color-themeTertiary;
  categoryColor4: $ms-color-themeDark;
  categoryColor5: $ms-color-themeDarker;
  categoryColor6: $ms-color-themeDarkAlt;
}

Then apply them to the array per event, e.g.

  const categoryDropdownOption = await this.getChoiceFieldOptions(siteUrl, listId, 'Category');
  let categoryColor: { category: string, color: string }() = ();
          let x = 1;
  for (const cat of categoryDropdownOption) {
    if (x == 1) {
      categoryColor.push({ category: cat.text, color: styles.categoryColor1});
    }
    if (x == 2){
      categoryColor.push({ category: cat.text, color: styles.categoryColor2});
    }
    if (x == 3){
      categoryColor.push({ category: cat.text, color: styles.categoryColor3});
    }
    if (x == 4){
      categoryColor.push({ category: cat.text, color: styles.categoryColor4});
    }
    if (x == 5) {
      categoryColor.push({ category: cat.text, color: styles.categoryColor5});
    }
    if (x == 6) {
      categoryColor.push({ category: cat.text, color: styles.categoryColor6});
    }
    if (x > 6){
      categoryColor.push({ category: cat.text, color: await this.colorGenerate() });
    }
    x++;
  }

Finally, apply it to the HTML code of the SPFx web part (with the array elements set to the color property of an event object:


However, when debugging the results, I notice that the color set in the exported variable is a string literal like "& # 39; (theme: themeDarkAlt, default: # 106ebe) & # 39;" instead of being the actual theme color. If I specify the exact colors like the following in my exported variables, the colors are applied as intended. Therefore, I have come to the conclusion that the problem is that the Sass does not set the color of the exported variables according to the topic. Any suggestions?

:export {
  themeDark: $ms-color-themePrimary;

  //event category colors
  categoryColor1: #A4262C;
  categoryColor2: #5d1418;
  categoryColor3: rgb(199, 3, 13);
  categoryColor4: #222222;
  categoryColor5: #ca5a27;
  categoryColor6: #b9350c;
}

gnupg – gpg Export keys and subkeys: What is exported and how?

I try to wrap my head around gpg. My current understanding is that you generate a master key and then a series of subkeys that are cross-signed with the master key. This determines that the subkeys are rightly under the master key and offers flexibility in generating / revoking subkeys for various purposes. Good enough for me.

Then I want to make sure that I can export subkeys independently, e.g. For example, distributing public keys / moving my private keys between computers, etc. To do this, I generated a master key and subkey and did the following:

admjr@jf-HP:~/Desktop/for_posts$ gpg --list-keys --with-subkey-fingerprints 866A0F0CAFBF78E3100ADAEDB6B59ACF3F735A94
pub   rsa4096 2020-02-29 (SC)
      866A0F0CAFBF78E3100ADAEDB6B59ACF3F735A94
uid           (ultimate) name SURNAME (master key of name SURNAME) 
sub   rsa4096 2020-02-29 (E)
      3A5F8AA232514D9D13DFAC5D8A3DE8A2403BA317
sub   rsa4096 2020-02-29 (E) (expires: 2021-02-28)
      3FFDAB789DD0A6FF7C6E3E9251F38499FF336B11

admjr@jf-HP:~/Desktop/for_posts$ gpg --armor --output export_of_name.gpg --export name.SURNAME@domain 
admjr@jf-HP:~/Desktop/for_posts$ gpg --armor --output export_of_ID_main.gpg --export 866A0F0CAFBF78E3100ADAEDB6B59ACF3F735A94
admjr@jf-HP:~/Desktop/for_posts$ gpg --armor --output export_of_ID_E1.gpg --export 3A5F8AA232514D9D13DFAC5D8A3DE8A2403BA317
admjr@jf-HP:~/Desktop/for_posts$ gpg --armor --output export_of_ID_E2.gpg --export 3FFDAB789DD0A6FF7C6E3E9251F38499FF336B11

admjr@jf-HP:~/Desktop/for_posts$ sha256sum export_of_name.gpg 
89a4c59749614bc858a63ba0296d70f1f87ef2ca6c19237a29a986c196e2d180  export_of_name.gpg
admjr@jf-HP:~/Desktop/for_posts$ sha256sum export_of_ID_main.gpg 
89a4c59749614bc858a63ba0296d70f1f87ef2ca6c19237a29a986c196e2d180  export_of_ID_main.gpg
admjr@jf-HP:~/Desktop/for_posts$ sha256sum export_of_ID_E1.gpg 
89a4c59749614bc858a63ba0296d70f1f87ef2ca6c19237a29a986c196e2d180  export_of_ID_E1.gpg
admjr@jf-HP:~/Desktop/for_posts$ sha256sum export_of_ID_E2.gpg 
89a4c59749614bc858a63ba0296d70f1f87ef2ca6c19237a29a986c196e2d180  export_of_ID_E2.gpg

and here i am very confused. Why are all public keys that were exported from the different subkeys identical? I would expect each subkey to be a pair (private_ID, public_ID) of private and public keys. Doesn't it look like this?

Then look at the private keys similarly:

admjr@jf-HP:~/Desktop/for_posts$ gpg --armor --output private_of_ID_main.gpg --export-secret-keys 866A0F0CAFBF78E3100ADAEDB6B59ACF3F735A94
admjr@jf-HP:~/Desktop/for_posts$ gpg --armor --output private_of_ID_E1.gpg --export-secret-keys 3A5F8AA232514D9D13DFAC5D8A3DE8A2403BA317
admjr@jf-HP:~/Desktop/for_posts$ gpg --armor --output private_of_ID_E2.gpg --export-secret-keys 3FFDAB789DD0A6FF7C6E3E9251F38499FF336B11

admjr@jf-HP:~/Desktop/for_posts$ sha256sum private_of_ID_main.gpg 
5e982d782a0a28ce264cbbd2afd04bbfd43aef61e1deec0bcad797c4c001663a  private_of_ID_main.gpg
admjr@jf-HP:~/Desktop/for_posts$ sha256sum private_of_ID_E1.gpg 
0b34781df51eec6a0f96818f74aec7ce2ae49f3af587296eb9202af5785ea5fa  private_of_ID_E1.gpg
admjr@jf-HP:~/Desktop/for_posts$ sha256sum private_of_ID_E2.gpg 
f1d9d8e63287b152bc0f045cc6174a4821910ed1c193bf54261c6a7aeb7fa696  private_of_ID_E2.gpg

This looks more like what I would expect (different private keys). But only for verification:

admjr@jf-HP:~/Desktop/for_posts$ gpg --armor --output private_of_ID_main_2.gpg --export-secret-keys 866A0F0CAFBF78E3100ADAEDB6B59ACF3F735A94
admjr@jf-HP:~/Desktop/for_posts$ sha256sum private_of_ID_main_2.gpg 
90c770a7bf06a4c8c34fe252edeec149073cbf46d95d4af1c21f7df788612d8c  private_of_ID_main_2.gpg

and I'm getting a different hash for the same subkey that I tried a few seconds earlier … I think this means adding some kind of timestamp when exporting private subkeys?

I suppose this means that some things in my "mental picture" of things are wrong. So:

  • Are subkeys good "individual" pairs of (private key, public key)?
  • How do I export the private and public part of subkeys independently for each subkey?

PS: This uses Gnupg on Ubuntu 18.04. Version Details:

admjr@jf-HP:~/Desktop/for_posts$ gpg --version 
gpg (GnuPG) 2.2.4
libgcrypt 1.8.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: /home/admjr/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
        CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2

Sharepoint Server – Field titles are missing in exported translation Resx files

I am working on a SharePoint 2019 environment that must support 5 languages. The additional 4 language packs have been installed and I have a script in PowerShell to translate the Resx files exported from each site into their own language based on external translations we already have.

The problem is that some lists and libraries only have their list title in the exported translation file, while others automatically include all field titles and descriptions in the exported Resx file.

If I change the field name in an alternate language in a list whose fields are not shown in the exported Resx files, this field title is included in all exported Resx files for this site.

Is there a rule or explanation why some lists and libraries contain all field names and descriptions in the exported translation files, but not others?

We installed the CU package from January 2020.

gnupg – GPG – exported secret key also with public

I tried to export a public key from my keychain. Then I imported my public key into another key ring. I also find the private key in the 2nd key ring and can sign files from the 2nd key ring. Why is it possible?

-K = list private keys  /  -k = list public keys

gpg --no-default-keyring --keyring ./K -K
./K
---
sec   rsa4096/5CF17A855E7A80B6 2020-02-15 (SC)
      Key fingerprint = 9B0D 8B76 9F11 E766 0C64  C295 5CF1 7A85 5E7A 80B6
uid                 (ultimate) Ama Ama Me (No Comment) 
ssb   rsa4096/89B1B6657E669E13 2020-02-15 (E)
ssb   rsa4096/2FDAA73DFB9A6711 2020-02-15 (S)

------------------------------------------------------------------------------------

gpg --no-default-keyring --keyring ./K -k
./K
---
pub   rsa4096/5CF17A855E7A80B6 2020-02-15 (SC)
      Key fingerprint = 9B0D 8B76 9F11 E766 0C64  C295 5CF1 7A85 5E7A 80B6
uid                 (ultimate) Ama Ama Me (No Comment) 
sub   rsa4096/89B1B6657E669E13 2020-02-15 (E)
sub   rsa4096/2FDAA73DFB9A6711 2020-02-15 (S)

------------------------------------------------------------------------------------

gpg --no-default-keyring --keyring ./K -o KPUB --export 5CF17A855E7A80B6
gpg --no-default-keyring --keyring ./K4 --import KPUB

------------------------------------------------------------------------------------

root@vps767407:~/Sig2/Sig2.1# gpg --no-default-keyring --keyring ./K4 -K
./K4
----
sec   rsa4096/5CF17A855E7A80B6 2020-02-15 (SC)
      Key fingerprint = 9B0D 8B76 9F11 E766 0C64  C295 5CF1 7A85 5E7A 80B6
uid                 (ultimate) Ama Ama Me (No Comment) 
ssb   rsa4096/89B1B6657E669E13 2020-02-15 (E)
ssb   rsa4096/2FDAA73DFB9A6711 2020-02-15 (S)

------------------------------------------------------------------------------------

gpg --no-default-keyring --keyring ./K4 -o file.firmato -sau 5CF17A855E7A80B6! file
gpg --no-default-keyring --keyring ./K4 -o file.firmato -sau 2FDAA73DFB9A6711! file

The KPUB file appears to be a single public key file:

gpg --list-packets KPUB 
# off=0 ctb=99 tag=6 hlen=3 plen=525
:public key packet:
    version 4, algo 1, created 1581792429, expires 0
    pkey(0): (4096 bits)
    pkey(1): (17 bits)
    keyid: 5CF17A855E7A80B6
# off=528 ctb=b4 tag=13 hlen=2 plen=31
:user ID packet: "Ama Ama Me (No Comment) "
# off=561 ctb=89 tag=2 hlen=3 plen=590
:signature packet: algo 1, keyid 5CF17A855E7A80B6
    version 4, created 1581792429, md5len 0, sigclass 0x13
    digest algo 10, begin of digest 13 b1
    hashed subpkt 33 len 21 (issuer fpr v4 9B0D8B769F11E7660C64C2955CF17A855E7A80B6)
    hashed subpkt 2 len 4 (sig created 2020-02-15)
    hashed subpkt 27 len 1 (key flags: 03)
    hashed subpkt 11 len 4 (pref-sym-algos: 9 8 7 2)
    hashed subpkt 21 len 5 (pref-hash-algos: 10 9 8 11 2)
    hashed subpkt 22 len 3 (pref-zip-algos: 2 3 1)
    hashed subpkt 30 len 1 (features: 01)
    hashed subpkt 23 len 1 (keyserver preferences: 80)
    subpkt 16 len 8 (issuer key ID 5CF17A855E7A80B6)
    data: (4095 bits)
# off=1154 ctb=b9 tag=14 hlen=3 plen=525
:public sub key packet:
    version 4, algo 1, created 1581792429, expires 0
    pkey(0): (4096 bits)
    pkey(1): (17 bits)
    keyid: 89B1B6657E669E13
# off=1682 ctb=89 tag=2 hlen=3 plen=566
:signature packet: algo 1, keyid 5CF17A855E7A80B6
    version 4, created 1581792429, md5len 0, sigclass 0x18
    digest algo 10, begin of digest 61 ad
    hashed subpkt 33 len 21 (issuer fpr v4 9B0D8B769F11E7660C64C2955CF17A855E7A80B6)
    hashed subpkt 2 len 4 (sig created 2020-02-15)
    hashed subpkt 27 len 1 (key flags: 0C)
    subpkt 16 len 8 (issuer key ID 5CF17A855E7A80B6)
    data: (4096 bits)
# off=2251 ctb=b9 tag=14 hlen=3 plen=525
:public sub key packet:
    version 4, algo 1, created 1581793239, expires 0
    pkey(0): (4096 bits)
    pkey(1): (17 bits)
    keyid: 2FDAA73DFB9A6711
# off=2779 ctb=89 tag=2 hlen=3 plen=1132
:signature packet: algo 1, keyid 5CF17A855E7A80B6
    version 4, created 1581793239, md5len 0, sigclass 0x18
    digest algo 10, begin of digest 69 2f
    hashed subpkt 33 len 21 (issuer fpr v4 9B0D8B769F11E7660C64C2955CF17A855E7A80B6)
    hashed subpkt 2 len 4 (sig created 2020-02-15)
    hashed subpkt 27 len 1 (key flags: 02)
    subpkt 16 len 8 (issuer key ID 5CF17A855E7A80B6)
    subpkt 32 len 563 (signature: v4, class 0x19, algo 1, digest algo 10)
    data: (4096 bits)

Charts – Highcharts: Custom SVG files are not exported to the highchart

We draw threshold bars on the graph after the graph is created, but it is not exported in any format. ThresholdBar is drawn on the right side of the diagram.

drawThresholdBar: function(chart, config, parentSvg) {
    if (config.from !== config.to) {
        var me = this;
        var xAxis = chart.xAxis(0);
        var yAxis = chart.yAxis(0);
        var barWidth = 6;
        var barXPos = xAxis.toPixels(xAxis.max) + barWidth / 2;
        var fromPos = yAxis.toPixels(Ext.isNumeric(config.from) && config.from > yAxis.min ? config.from : yAxis.min) + 1;
        var toPos = yAxis.toPixels(Ext.isNumeric(config.to) && config.to < yAxis.max ? config.to : yAxis.max) - 1;
        var thresholdBarItem = chart.renderer
            .path(('M', barXPos, fromPos, 'L', barXPos, toPos))
            .attr({
                'stroke-width': barWidth,
                stroke: config.color
            })
            .add(parentSvg);
       }
},

We save the SVG threshold value bar in the thresholdBarItem.

Is there a way to move thresholdBarItem svg in the diagram configuration? or otherwise I can export it while exporting the chart.

magento2 – User-defined EAV attribute that is not exported for the product

New to Magento is that I am using the core of Magento 2 module-catalog-import-export to export my products to a CSV file.

Based on this URL pattern: https://mysite/admin/admin/export/index/key/02e9c13a84/

The list of attributes displayed on the page is correct. The filter system is also correct.

But when I export the file, these attributes (or just part of them) seem to be ignored (even if I don't check the box to exclude them).

For example, I have an eav_attribute id_advantage which is ignored and does not appear in the file.
On the other hand, for example msrp_display_actual_price_type is also an eav attribute from the magento core, but this is shown in the additionnal_attributes column.

I don't know where to look to make it work.

Thanks for your help.