SB and UA and RFP

someone ranting here
However:

This is an old image (FF52.5) but what I want to ask is

does safe browsing requests respect the RFP UA spoof
If it does, is this by design or an artifact: i.e  could this change inadvertently if RFP was exempted in some privileged contexts?
does it send the major version only or also the minor (e.g below it shows 52.5)
how do I capture this to test it?

Class, discuss
@earthlng

how do I capture this to test it?

either with the browser console by enabling XHR + Request logs (top right) or with an external local proxy software that supports HTTPS inspection like Fiddler or Burp Suite for example.
It's possible that the browser console doesn't show all requests or if it does, doesn't show fully accurate data information like Headers, POST data etc. So, ideally you would test both ways and see if what FF shows you in the browser console actually matches what's really sent.

could this change inadvertently if RFP was exempted in some privileged contexts?

that's certainly possible. Anything could change at any point. That's why they have so many test files; to try to make sure that everything keeps working the way it should after any code changes

Damn, I just uninstalled Fiddler because it sat there unused for over a year :) And I'm guessing I would need to fire up a new profile with no SB lists and await the update check

the update checks are probably tied to a timestamp pref that you could reset. Or maybe toggling SB off and on again might also trigger the update, idk.
You might also want to find a way to trigger the hash-check requests for a given website and since I believe those are cached as well, a way to reset that cache too. Have fun ;)

Have fun ;)

F Off No way :) I think I'd rather just ask @tomrittervg (or get him to ask someone like @groovecoder .. no idea if Luke will even see this ).. because if it did send the real UA (and minor version?) to google (despite the legal agreement between mozilla/google) then that wouldn't be the optimal setup

So I used my Nightly

wiped everything in \AppData\Local\Mozilla\Firefox\Profiles\xxxx.default-nightly\safebrowsing
started Nightly, opened network inspector, checked all
within about 2 minutes the SB folder updated
the inspector shows nothing

So I guess someone (or me if I ever get time) will need to use an external app. If anyone already has one set up, it'll take you five minutes

I can't believe that after all these years you still don't know the difference between the browser console and the network inspector.
All the Devtools like the Inspector, Console (="Web" console!), Debugger, Network Monitor, etc are always attached to a certain tab whereas the Browser Console logs messages triggered by the browser itself and by addons. If you enable the "Show Content Messages" checkbox it'll also show you the same things as the Web Console but from all tabs.
There's also the Browser Toolbox which basically attaches the Devtools to the browser context and lets you fe inspect the Storage (ie IDB databases etc) used by FF itself and things like that, but it's hidden by default and you'll rarely need that anyways.
for more details see:
https://developer.mozilla.org/en-US/docs/Tools
https://developer.mozilla.org/en-US/docs/Tools/Web_Console
https://developer.mozilla.org/en-US/docs/Tools/Browser_Console
https://developer.mozilla.org/en-US/docs/Tools/Browser_Toolbox

There is no Show Content Messages in nightly. The console below is just an empty one and not related to the one underneath. I am aware of results being attached to a specific tab - I simply didn't have the right "content" when I opened it the first time round - my bad.

IDK if this is enough info, but the request header respects RFP

There is no Show Content Messages in nightly.

Under cogwheel in top right corner.

Actually, it doesn't matter if google ever gets sent the real version for non 60, 68, 78 (ESR) releases: because loads of others will be as well (and you should kept your Firefox up to date). In this respect even the minor version doesn't matter. And I'm pretty sure google ain't interested in tying a FF release version to an IP: because it's flawed for starters: as an IP addy is not a single computer, person, or application.
Closing this as a waste of time, but thanks everyone for helping out

Under cogwheel in top right corner.

Still nothing there: but it's already getting all windows. I guess it depends from where I opened it. Thanks: I did look under there earlier for a toggle in the menu: I should have gone deeper into the cog wheel.


Company info

Is it possible to get the current user's company info through Harvested?—the who_am_i method seems to ignore the company data returned from that endpoint.

Doesn't seem to be possible currently, PR's are always welcome though.

Just merged https://github.com/zmoazeni/harvested/pull/90 and will release v4.0 soon. That'll be included in the who_am_i now.


gomodifytags: 1.6.0 -> 1.16.0

gomodifytags: 1.6.0 -> 1.16.0

Enabled tests.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-already-reviewed/2617/466


Add ratings control

Rating controls are used in many apps from mobile to web. This addition to the UWP toolkit will include a simple and easy to customize ratings control that allows custom icons at a varied length.
The control will also need to support both an edit function and read-only.

I found the control :Building a UWP Rating Control using XAML and the Composition API  XAML Brewer, by Diederik Krols


custom_lint fails with "Failed to decode" on unrelated files.

Describe the bug
When trying to run custom_lint on a more complex flutter project, it fails with Failed to decode .dart_tool/package_config.json on unrelated files. This happens for:

Symlinked iOS plugins (when depending on a package that provides a native iOS flutter plugin, i. e. package_info_plus

Failed to decode .dart_tool/package_config.json at .../ios/.symlinks/plugins/package_info_plus. Make sure to run pub get first.

The synthetic package generated by flutter_localizations

Failed to decode .dart_tool/package_config.json at .../.dart_tool/flutter_gen. Make sure to run pub get first.

The error is the same in all cases (with different paths):
PathNotFoundException: Cannot open file, path = '.../.dart_tool/package_config.json' (OS Error: No such file or directory, errno = 2)
#0      _checkForErrorResponse (dart:io/common.dart:55:9)
#1      _File.open.<anonymous closure> (dart:io/file_impl.dart:381:7)
#2      _rootRunUnary (dart:async/zone.dart:1407:47)
#3      _CustomZone.runUnary (dart:async/zone.dart:1308:19)
<asynchronous suspension>
#4      _File.readAsBytes.<anonymous closure> (dart:io/file_impl.dart:562:24)
<asynchronous suspension>
#5      parsePackageConfig (package:custom_lint_core/src/package_utils.dart:161:5)
<asynchronous suspension>
#6      CustomLintProject.parse (package:custom_lint/src/workspace.dart:1025:34)
<asynchronous suspension>
#7      Future.wait.<anonymous closure> (dart:async/future.dart:534:21)
<asynchronous suspension>
#8      CustomLintWorkspace.fromContextRoots (package:custom_lint/src/workspace.dart:516:22)
<asynchronous suspension>
#9      _runServer.<anonymous closure> (package:custom_lint/custom_lint.dart:90:25)
<asynchronous suspension>
#10     _AsyncCompleter.complete (dart:async/future_impl.dart:41:3)
<asynchronous suspension>
#11     _runServer.<anonymous closure> (package:custom_lint/custom_lint.dart:126:19)
<asynchronous suspension>
#12     _runServer (package:custom_lint/custom_lint.dart:86:3)
<asynchronous suspension>
#13     customLint (package:custom_lint/custom_lint.dart:50:5)
<asynchronous suspension>
#14     entrypoint (file:///Users/user/.pub-cache/hosted/pub.dev/custom_lint-0.6.5/bin/custom_lint.dart:68:3)
<asynchronous suspension>
#15     main (file:///Users/user/.pub-cache/hosted/pub.dev/custom_lint-0.6.5/bin/custom_lint.dart:80:5)
<asynchronous suspension>

#0      CustomLintProject.parse.<anonymous closure> (package:custom_lint/src/workspace.dart:1028:7)
#1      _rootRunBinary (dart:async/zone.dart:1423:47)
#2      _CustomZone.runBinary (dart:async/zone.dart:1315:19)
#3      _FutureListener.handleError (dart:async/future_impl.dart:178:22)
#4      Future._propagateToListeners.handleError (dart:async/future_impl.dart:873:47)
#5      Future._propagateToListeners (dart:async/future_impl.dart:894:13)
#6      Future._completeError (dart:async/future_impl.dart:674:5)
<asynchronous suspension>

To Reproduce
(Example project: test_project.zip)

flutter create -e test_project
flutter pub add package_info_plus 'flutter_localizations:{"sdk":"flutter"}' dev:custom_lint
Setup custom_lint and flutter_localizations
flutter build ios --debug --no-codesign (To create the .symlinks directory)
Run custom_lint

Expected behavior
The tool should run without any errors.
Workaround
For now, the only workaround seems to be to delete the ios/.symlinks and .dart_tool/flutter_gen directories prior to executing dart run custom_lint.

I encountered the same issue with custom_lint: 0.6.5, and the problem was only resolved after downgrading to version 0.6.4.

For me, I ran flutter clean and that fixed it, for now. It'll probably break next time I build the app, but it works in CI at least.


parameters not updating after making changes to the config file

parameters not updating after making changes to the config file

Hi @rshah18, could you please provide steps to reproduce the issue?
Just to clarify, the node does not support dynamic reconfigure. If you don't restart the node you won't be able to change the parameters.

I had two different sets of same package installed. I resolved the issue. thank you so much for replying.

Glad you were able to get it working! I'll go ahead and close this then, let us know in case of any other questions.


CVE-2023-32001 issue not addressed in the latest release 2.0.20230811-2.0

The release here https://github.com/microsoft/CBL-Mariner/releases/tag/2.0.20230811-2.0 says that it had addressed the below security vulnerability: Upgrade package curl to version 8.2.1 to address **CVE-2023-32001**.
But when i try to pull the latest image, and inspect the dependencies, i still see that curl version used is: mariner/curl 8.0.1-2.cm2 which is getting flagged as vulnerable

I think the above image is a onebranch mariner image.
One way to verify if it is actually 2.0.20230811 release, can we please verify with:
cat /etc/os-release

@venkatr21 using the toolkit from 2.0.20230811-2.0 release does pull the correct curl package:
 Downloading toolchain RPM: curl-8.2.1-1.cm2.x86_64.rpm
which should have the fix. From the curl.spec:
%changelog
* Tue Aug 08 2023 Muhammad Falak<EMAIL_ADDRESS>- 8.2.1-1
- Bump curl to 8.2.1 to address CVE-2023-32001
- Drop un-needed patch

My bad, Yea thanks @elsaco @mfrw, i was checking on the wrong image


Allow for setting any Postfix variables in the config file #74

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@knipknap Hi, do you have any problem with this PR?
I believe it's very valuable and I would like to merge it if you can remove the unrelated changes with CLA signed.

Hi @knipknap, I would love to be able to use this. Would you reconsider and continue the PR? I will be happy to review it.

Implemented by #93


Questions concerning rendering from SPIFFS.

Hi,
I successfully rendered a gif (converted to .h file) from memory on my TTGO T-Dispaly (ESP32 with 16MB flash and a TFT_eSPI display).
I wanted to try render the same gif from flash memory. I successfully saved the .gif in my filesystem and can open the file, however I don't see anything appearing on the screen.+
Can I use the same GIFDRAW callback as the TFT_eSPI_memory example, while using the  GIFOpenFile, GIFCloseFile, GIFReadFile, GIFSeekFile functions from the SD examples? (with GIF open modified to use SPIFFS).
Btw the gif I'm trying to use is this one:

You need to ensure that the open/read/seek/close callbacks correctly access the data whether it's coming from SPIFFS, SD card or some other place. If the callback functions are doing their job correctly, the decoding will succeed. The GIFDraw function shouldn't need to change if you're using the same display.

Thank you for the answer. I'll look into the callback functions.
I understand what the open/read & close functions should do. However I'm not clear about the function of the seek function. Do you mind clarifying this a little bit?

Read normally advances the current read position by the number of bytes requested. If you want to read data that's before or after that point in the file, you need to use the Seek function to set the file pointer to a different spot. See:
https://man7.org/linux/man-pages/man3/fseek.3.html


New grammars for Prolog and ECLiPSe

This pull request changes the grammar for Prolog.
It also dissociate ECLiPSe (.ecl files) from Prolog to apply a distinct grammar.
The new grammar for Prolog is slightly better than the old one in term of scopes:
Old grammar in Lightshow - New grammar in Lightshow
The new package also contains a grammar for ECLiPSe.
ECLiPSe is a superset of Prolog which adds a few new constructs and functions.
ECLiPSe syntax with Prolog grammar in Lightshow
ECLiPSe syntax with dedicated grammar in Lightshow

:+1: awesome. Thanks @pchaigno

Before I merge - should we have a sample file here too?

I already have one in samples/ECLiPSe/ (it was in samples/Prolog/ before). Do you think I should add another one?

Gah, sorry missed this :point_up:. This is good as-is.


python-vcstool failed to install on Ubuntu 14.04

$ sudo apt-get purge python-vcstool
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'python-vcstool' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 753 not upgraded.
$ sudo apt-get update && sudo apt-get install --reinstall python-vcstool
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  python-vcstool
0 upgraded, 1 newly installed, 0 to remove and 753 not upgraded.
Need to get 0 B/19.6 kB of archives.
After this operation, 145 kB of additional disk space will be used.
dpkg-deb: error: archive '/var/cache/apt/archives/python-vcstool_0.1.38-1_all.deb' has premature member 'control.tar.xz' before 'control.tar.gz', giving up
dpkg: error processing archive /var/cache/apt/archives/python-vcstool_0.1.38-1_all.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/python-vcstool_0.1.38-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.5 LTS
Release:        14.04

https://askubuntu.com/questions/982748/dpkg-error-when-installing-nmap
$ sudo apt-get clean && sudo apt-get autoclean
sudo apt-get update && sudo apt-get install python-vcstool

This returns the same error.

I no longer own 14.04 computer I think.


Question: Updates to LDS are duplicating certificate entries at /certs endpoint

I have been using go-control-plane to setup a xDS server that configures multiple routes through RDS while also setting up LDS and RDS for TLS support.
I noticed at /certs endpoint that everytime the listener is updated through LDS the certificates are duplicated. This happens for both delta-ADS and SotW ADS but it is only visible on /certs and not in the config dump.
To give you an example, the config dump looks like this:
    {
     "name": "https_listener",
     "active_state": {
      "version_info": "...",
      "listener": {
       "@type": "type.googleapis.com/envoy.config.listener.v3.Listener",
       "name": "https_listener",
       "address": {
        "socket_address": {
         "address": "<IP_ADDRESS>",
         "port_value": 8443
        }
       },
       "filter_chains": [
        {
         "filters": [
          {
           "name": "envoy.filters.network.http_connection_manager",
           "typed_config": {
            "@type": "type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager",
            "stat_prefix": "https",
            "rds": {
             "config_source": {
              "ads": {},
              "resource_api_version": "V3"
             },
             "route_config_name": "abcd_routes"
            },
            "http_filters": [
             {
              "name": "envoy.filters.http.router",
              "typed_config": {
               "@type": "type.googleapis.com/envoy.extensions.filters.http.router.v3.Router"
              }
             }
            ],
            "server_name": "abcd",
            "strip_any_host_port": true
           }
          }
         ],
         "transport_socket": {
          "name": "envoy.transport_sockets.tls",
          "typed_config": {
           "@type": "type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.DownstreamTlsContext",
           "common_tls_context": {
            "tls_certificate_sds_secret_configs": [
             {
              "name": "cert1.invalid",
              "sds_config": {
               "ads": {},
               "resource_api_version": "V3"
              }
             },
... multiple secret configs ...
             }
            ]
           }
          }
         }
        }
       ]
      },
      "last_updated": "2023-10-28T23:03:04.972Z"
     }
    }
   ]
  },
  {
   "@type": "type.googleapis.com/envoy.admin.v3.SecretsConfigDump",
   "dynamic_active_secrets": [
    {
     "name": "cert1.invalid",
     "version_info": "253a09e2bf00e0ee64ad0fb8708db2aa1594e5b897c3552a2e702fa6a16e18b9",
     "last_updated": "2023-10-28T23:03:05.020Z",
     "secret": {
      "@type": "type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.Secret",
      "name": "cert1.invalid",
      "tls_certificate": {
       "certificate_chain": {
        "inline_bytes": "..."
       },
       "private_key": {
        "inline_bytes": "..."
       }
      }
     }
    },
    ... multiple active secrets ...
    ]
  }

While the /certs output looks like this after 3 LDS reloads:
{
 "certificates": [
  {
   "ca_cert": [],
   "cert_chain": [
    {
     "path": "\u003cinline\u003e",
     "serial_number": "72b83132565820f2",
     "subject_alt_names": [
      {
       "dns": "cert1.invalid"
      }
     ],
     "days_until_expiration": "1826",
     "valid_from": "2023-10-28T21:30:27Z",
     "expiration_time": "2028-10-28T21:30:27Z"
    },
    ... multiple entries ...
   ]
  },
  {
   "ca_cert": [],
   "cert_chain": [
    {
     "path": "\u003cinline\u003e",
     "serial_number": "72b83132565820f2",
     "subject_alt_names": [
      {
       "dns": "cert1.invalid"
      }
     ],
     "days_until_expiration": "1826",
     "valid_from": "2023-10-28T21:30:27Z",
     "expiration_time": "2028-10-28T21:30:27Z"
    },
    ... multiple entries ...
   ]
  },
  {
   "ca_cert": [],
   "cert_chain": [
    {
     "path": "\u003cinline\u003e",
     "serial_number": "72b83132565820f2",
     "subject_alt_names": [
      {
       "dns": "cert1.invalid"
      }
     ],
     "days_until_expiration": "1826",
     "valid_from": "2023-10-28T21:30:27Z",
     "expiration_time": "2028-10-28T21:30:27Z"
    },
    ... multiple entries ...
   ]
  }
 ]
}

Is this a normal behavior?
What is the /certs endpoint supposed to show and why it shows different certificates under a single certificate chain?
Is there a way to cleanup the old certificate chains for proxies that have high rate of changing of certificates to avoid potential performance issues?

It prints all certificates in  existing TLSContexts created by Envoy. So if the TLSContexts are still being used, they will be shown here

Does this mean that adding a single cert initiates a whole new TLSContext instead of appending the new cert to the previous one?
Unless I am doing something wrong I saw that with LDS, even if you add a new certificate it will resend everything and not just the delta. This seems to be a scaling issue if you are having thousands of certificates right?

Do you still have a connection that on the old listener when you querying the /certs? Certificate validation only happens during the handshake so the connection can outlive and the TLS context won't be deleted until all those connections are down.

Oh it's the default drain time that is too high so the listener is waiting there in the background.
https://www.envoyproxy.io/docs/envoy/latest/configuration/listeners/lds
This statement is a bit problematic for listeners with thousands of certificates that you then add a single new one :grimacing:
Listeners are effectively constant once created. Thus, when a listener is updated, an entirely new listener is created (if the listener’s address is unchanged, the new one uses the same listen socket). This listener goes through the same warming process described above for a newly added listener.

Closing this issue as the answer was in the docs all along
When a listener is removed, the old listener will be placed into a “draining” state much like when the entire server is drained for restart. Connections owned by the listener will be gracefully closed (if possible) for some period of time before the listener is removed and any remaining connections are closed. The drain time is set via the [--drain-time-s](https://www.envoyproxy.io/docs/envoy/latest/operations/cli#cmdoption-drain-time-s) option.


Inference on PDB file by conversion into torchdrug.data.PackedProtein or TorchDrug.data.Protein

Hello,
I am getting errors that are blocking me from running GearNet inference on an input PDB file.
First, I loaded a PDB file into a TorchDrug.data.Protein structure.
Second, I followed the GearNet graph construction laid out in TorchProtein tutorial 3: Structure-based Protein Property Prediction. I encapsulated the graph construction logic in a function
However, when running these two steps:
protein_graph = torchdrug.data.Protein.from_pdb(path_to_pdb_file)
gearnet_protein_graph = graph_construction_model(protein_graph)

I get the following error:
  File "<path>/torchdrug/layers/geometry/function.py", line 171, in forward
    is_node_in = graph.atom2residue >= (graph.num_cum_residues - graph.num_residues)[graph.atom2graph] - i
AttributeError: 'Protein' object has no attribute 'num_cum_residues'

I studied the source code and found that num_cum_residues is a property of TorchDrug.data.PackedProtein but not of for torchdrug.data.Protein.
So, third, I attempted to convert Protein into PackedProtein, with resulting code:
        protein_graph = Protein.from_pdb(path_to_pdb_file)
        num_edges = protein_graph.edge_list.shape[0]
        num_residues = protein_graph.residue_type.shape[0]

        packed_protein_graph = PackedProtein(edge_list=protein_graph.edge_list,
                                             atom_type=protein_graph.atom_type,
                                             bond_type=protein_graph.bond_type,
                                             residue_type=protein_graph.residue_type,
                                             view=protein_graph.view,
                                             num_edges=[num_edges],
                                             num_residues=torch.tensor(
                                                 num_residues),
                                             )

        gearnet_protein_graph = self.graph_construction_model(
            packed_protein_graph)
        print("gearnet protein graph: {}".format(gearnet_protein_graph))
        return gearnet_protein_graph

However, now I get an error that ValueError: Expect node attribute atom_type to have shape (16344, *), but found torch.Size([16448]) (16448 is, I assume, the number of nodes derived from the edge_list).
Is this the right approach to run inference with Gearnet? I downloaded the PDB files directly from https://www.wwpdb.org, so I'd like to think the issue is not in the input data. Thank you in advance for any guidance here.
Example PDB files that can't be processed:

5XFH.cif.gz
6CM2.cif.gz

I have studied the pretrain/downstream scripts' way of initializing a dataset as here: https://github.com/DeepGraphLearning/GearNet/blob/780809836c87c1028b312241215e856d9b0634b2/script/pretrain.py#L65, but from studying the Torchdrug source code, this method is specific to TorchDrug-registered datasets.

I have tried with
_protein = data.Protein.pack([protein])
protein_ = graph_construction_model(_protein)

as described in the tutorials and had no issue at all

This fixed it for me. Not sure why I missed that option. Thanks!

This fixed it for me. Not sure why I missed that option. Thanks!

Hi gtamer2,
Can you please help me? I want to load the released pretrained model weight, and then pass a pdb file to the model. In this case, I can get the latent representation of the protein pdb file from the model.
Now I think I can successfully load the released pretrained weight, however, I am stuck at passing the pdb file to the model. Here is how I pass it:
def extract_representation(model, protein_structure_path):
    protein = Protein.from_pdb(protein_structure_path)

    _protein = Protein.pack([protein])

    input_feature = protein.atom2graph

    with torch.no_grad():
        representation = model(_protein, input_feature)

    # Return the output, which is the protein's representation
    return representation

I think GearNet model takes two parameter: 1. a Graph object, 2. input (not sure what this is). However, it seems like either _protein  is wrong or input_feature is wrong. With this code, I am getting this error:
Traceback (most recent call last):
  File "/content/GearNet-main/script/test.py", line 62, in <module>
    main()
  File "/content/GearNet-main/script/test.py", line 58, in main
    representation = extract_representation(model, args.pdb)
  File "/content/GearNet-main/script/test.py", line 43, in extract_representation
    representation = model(_protein, input_feature)
  File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1541, in _call_impl
    return forward_call(*args, **kwargs)
  File "/content/GearNet-main/gearnet/model.py", line 115, in forward
    edge_hidden = self.edge_layers[i](line_graph, edge_hidden)
  File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1541, in _call_impl
    return forward_call(*args, **kwargs)
  File "/content/GearNet-main/gearnet/layer.py", line 132, in forward
    update = self.aggregate(graph, message)
  File "/content/GearNet-main/gearnet/layer.py", line 118, in aggregate
    update = update.view(graph.num_node, self.num_relation * self.input_dim)
RuntimeError: shape '[4944, 472]' is invalid for input of size 711936

Can you please help me with this. Thank you


Feature support microsoft teams webhooks #585

Description
Feature support microsoft teams webhooks  #585
Issues Resolved
Posting to MSTeams channel through incoming webhook connector
Check List

[X] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Can the screenshot be a API call to create a teams channel? Then from there, call the test message on the teams channel to show it works fine. This would be a replacement for an integration test since we cannot have a real integration test on this as we dont want to expose webhook urls here.

This PR is included in #638, can be closed

stale PR, close it


[Device Support Request] Missing backlight mode entity in ZHA for _TZ3000_hhiodade

The problem
On the 1 gang Moes TS0011 switches there is no option to change the backlight status which on the 1 gang switches are all the opposite of what they should be, i.e go out when light off so you cant see the switch in the dark.
The 2 gang Moes switches ( TS0601 ) display an entity : *.backlight_mode and power on state in the configuration tab in ZHA.
Can the same configurations not be added to the 1 gang TS0011 switches so we can swap the LED status so they react in the correct way ?
I'm new to HA so not sure if ZHA has files missing or is it not a ZHA error ?
I have been asked to include the signitures or each.
TS0011 1 gang with no backlight feature :
{
  "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.EndDevice: 2>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress: 128>, manufacturer_code=4417, maximum_buffer_size=66, maximum_incoming_transfer_size=66, server_mask=10752, maximum_outgoing_transfer_size=66, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x0100",
      "in_clusters": [
        "0x0000",
        "0x0003",
        "0x0004",
        "0x0005",
        "0x0006"
      ],
      "out_clusters": [
        "0x0019"
      ]
    }
  },
  "manufacturer": "_TZ3000_hhiodade",
  "model": "TS0011",
  "class": "zhaquirks.tuya.ts001x.TuyaSingleNoNeutralSwitch_2"
}

TS0601 with fully working features :
{
  "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.EndDevice: 2>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress: 128>, manufacturer_code=4098, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x0100",
      "in_clusters": [
        "0x0000",
        "0x0004",
        "0x0005",
        "0x0006",
        "0xef00"
      ],
      "out_clusters": [
        "0x000a",
        "0x0019"
      ]
    },
    "2": {
      "profile_id": 260,
      "device_type": "0x0100",
      "in_clusters": [
        "0x0006"
      ],
      "out_clusters": []
    }
  },
  "manufacturer": "_TZE200_g1ib5ldv",
  "model": "TS0601",
  "class": "zhaquirks.tuya.ts0601_switch.TuyaDoubleSwitchTO"
}

In the TS0011 devices the backlight behavior can be set from the device view -> Admin zigbee device:

Select the TuyaZBOnOffAttributeCluster cluster and the backlight_mode attribute to get and set the value.
As the attribute is already there, the UI part must be addressed in HA.

BTW, some Moes devices accepts different backlight_mode values:

https://github.com/zigpy/zha-device-handlers/blob/8122e9283589f4fff585e4cf03892bf87587e345/zhaquirks/tuya/mcu/__init__.py#L70-L77

Thank you

@cayote64 have you be able to fix the behavior? can the issue be closed?

Yes all the switches changed to the correct status.
Many thanks, case closed 😀

We could also leave this open until the proper entities are added in ZHA/HA Core (even though it's technically a HA issue and not a quirks issue), but it's a bit easier to keep track of the issues here.
I think this should/would be fixed if we match quirk names instead of manufacturer names for Tuya devices?

I think this should/would be fixed if we match quirk names instead of manufacturer names for Tuya devices?

I think that would be a clear candidate to be implemented 😉

Been looking for this for ages...would be verry nice to be added to ui. The switch supports other functions also.

e and power on state in the configuration tab in ZHA.
Can the same configurations not be added to the 1 gang TS0011 switches so we can swap the LED status so they react in the correct way ?
I'm new to HA so not sure if ZHA has files missing or is it not a ZHA error ?
I have been asked to include the signitures or each.

And what are we supposed to write there if we want it disabled all the time?

@GerardUmbert it is mentioned above, write "0x00" (off) in the Value field and click on "Write attribute". You should now be able to see that the light is always off.


GPU Memory Leak

Hi,
After running the following code,GPU memory leak.
silx version=0.13.2
import numpy
import silx.opencl.sift as sift

def siftTest(image):
    gpuSiftPlan = sift.SiftPlan(template=image, devicetype="GPU")
    gpuSiftPlan.keypoints(image)

image = numpy.zeros((100, 100, 3), dtype=numpy.uint8)
for i in range(500000):
    siftTest(image)
    print(i)

Hi @weichengkai
The purpose of a SiftPlan is to be created once for a given image shape, and then to be used multiple times over different images. It is similar to the "FFTW plan" concept. Of course creating it each time will consume a lot of memory.
So instead, I would rather use:
import numpy
import silx.opencl.sift as sift

image = numpy.zeros((100, 100, 3), dtype=numpy.uint8)
gpuSiftPlan = sift.SiftPlan(template=image, devicetype="GPU")
for i in range(500000):
    gpuSiftPlan.keypoints(image)
    print(i)

image = numpy.zeros((100, 100, 3), dtype=numpy.uint8) just for testing
Actually, Images come from local files and come in different image shape.
Function siftTest get a image and return image's keypoint.Like following code
def siftTest(image):
    gpuSiftPlan = sift.SiftPlan(template=image, devicetype="GPU")
    kps = gpuSiftPlan.keypoints(image)
    return kps

When I called the function siftTest many times, I found that GPU memory could not be released.
What can I do to free memory before I return kps?

The plan instantiated within function siftTest，after the function runs, the plan is automatically destroyed.
The problem now is that GPU memory is not released after the plan is destroyed.

pyopencl keeps the context in caches but it should recycle them.
We could destroy the CommandQueue but it is not enough.


Does this repo implement a WIP paper?

Hi,
I want to ask if this repo served as code for a paper of yours or if it implements some paper. The architecture seems different from a normal recurrent agent.

TransformerXL refers back to Dai et al. 2019 and was applied to Reinforcement Learning by Parisotto et al. 2020. So this repository does not introduce a novel method. As Parisotto et al. 2020 did not share any source code it was pretty difficult to reproduce their method. Furthermore, no one was able to reproduce the V-MPO algorithm. This is why we put this lightweight PPO implementation to life.
Vanilla transformers are completely different to recurrence, however TransformerXL introduces a form of recurrence to support unlimited context lengths.


Add label selector for namespace and decrease timeout to 10 seconds

What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
This PR is for fixing admission plugin "MutatingAdmissionWebhook" failed to complete mutation in 13s issue on the openshift.
Add namespace selector to watch CR's namespace only.
A namespace selector is added into the mutation webhook configuration.
Special notes for your reviewer:

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

Release note:

/lgtm


LUIS warnings even if not using LUIS. Language code warnings OOB

Two related issues here:

I'm not using LUIS, but I get the LUIS warnings.
I am warned about unsupported codes, but I didn't set them up - that's what was configured out of the box.

Hey @scheyal , can you check if this still repros for you on a multilingual bot using Orchestrator? It should not, this should have been closed with #6370.

Closing this, I believe this was closed out with #6370.  Please re-open if necessary.


Write a PHP program to check alphabet

Description
Write a PHP program to check alphabet
Check that the given character is an alphabet or not (a-z, A-Z).
Input  : a
Output : Alphabet

How to contribute

Save the solution in check_alphabet.php file
Add check_alphabet.php file in check-alphabet folder

@harshraj8843 assign me please

Hey @rahmat-st
You can comment !assign on any good first issue you want to contribute to, to be auto-assigned
!assign


select multiply items & select with drag mouse area

is there any solutions ,  or something nearest implemented? Something like http://valerybugakov.github.io/react-selectable-fast/ or http://pablofierro.github.io/react-drag-select/ to omplement with this great library

Hi @rihannarickeminem, Thanks for Issue.
Implementation for selection is not included in react-stack-grid.
You need to implement your own it :+1:
Although it will be a while ago, there are repositories that implemented the selection UI so please try it :smiley:

DEMO
Source Code

In the above sample we implement it using react-selectable.


Some samples don't work on Edge 122 with Intel Iris Plus graphics

Some samples (tested: helloTriangle, cubemap, texturedCube) don't show anything (helloTriangle, cubemap) or show a black cube without any texture (texturedCube)
OS: Windows 11 23H2
GPU: Intel Iris Plus in 10th Gen Core i5 (Surface Pro 7) with latest drivers
Browser: Latest stable Edge 122 with No Flags set

Does it work in the equivalent Chrome 122? If so, this sounds like an Edge bug, and it should be filed with Edge. (please link to a bug report here if you file one)
If it doesn't work in Chrome either then it sounds like a Chromium issue - please file an issue on crbug.com


Add registry long running Op handler

Locates the registry operation by anchor and returns its state whether done or not done.

This code has been moved to a broader PR


intero hangs for several seconds when moving the cursor

I'm still investigating this, but I wanted to see if anyone had encountered something similar.
Occasionally intero will get in a state where shortly after moving the cursor the emacs UI for several seconds.  ^G doesn't break out of it, emacs CPU usage is high, and strace shows repeated polling like:
poll([{fd=6, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8, events=POLLIN}], 3, 0) = 0 (Timeout)
pselect6(21, [4 6 7 8 13 14 16 17 18 19], [], NULL, {0, 100000}, {NULL, 8}) = 0 (Timeout)
recvmsg(6, 0x7ffee32409b0, 0)           = -1 EAGAIN (Resource temporarily unavailable)

It appears to go away if I disable intero-check.  I'm not sure why flycheck is running when the cursor is moved, but the status line does seem to indicate that it is.
I don't think it's actually hanging in intero-check itself, but in some async operation triggered by it.  Removing the async call from intero-check also seemed to stop it.
I tried turning on intero-debug, but I can't reproduce the hang with it on.  The only warnings I get are like:
Warning (emacs): Received output but no callback in ‘intero-callbacks’: "
<interactive>:278:30: error: parse error on input `::'

when I have parse errors.   I doubt these are related, beacause the hangs happen without parse errors.

I've reproduced this both with 20160729.127 and master.

Actually looks like I am getting these warnings without parse errors in my module, for example:
Warning (emacs): Received output but no callback in ‘intero-callbacks’: "
<interactive>:2214:25: error:
    parse error on input `='
    Perhaps you need a 'let' in a 'do' block?
    e.g. 'let x = 5' instead of 'x = 5'
"

[Move cursor]
Warning (emacs): Received output but no callback in ‘intero-callbacks’: "
<interactive>:2216:23: error:
    parse error on input `='
    Perhaps you need a 'let' in a 'do' block?
    e.g. 'let x = 5' instead of 'x = 5'
"

I've fixed this by doing (setq flycheck-check-syntax-automatically '(mode-enabled save)) in my config.  While it does away with the convenience of on-the-fly compilation, I get better behavior triggering it on save.

@corngood Can you reproduce this reliably?

Not yet.  It seems to occasionally get into a state where it happens on cursor movements, but it's not always like that, even in the same module.
I'll carry on with the print debugging unless you have any ideas about how to approach it.

I don't know how related this is, but here's a fragment of intero-debug output (with a couple of prints I added) after intero-restart.
Intero arguments: --with-ghc intero "--docker-run-args=--interactive=true --tty=false" --no-build --no-load --ghci-options -odir=/tmp/intero1512p9d --ghci-options -hidir=/tmp/intero1512p9d vulkan-hl
Booting up intero ...
[Intero] <- The following GHC options are incompatible with GHCi and have not been passed to it: -Werror -threaded
Configuring GHCi with the following packages: vulkan-hl

[Intero] <- Intero 0.1.15 (GHC 8.0.1)
Type :intro and press enter for an introduction of the standard commands.
 [2 times]
[Intero] <- P
[Intero] <- relude> Prelude>
Booted up intero!
intero-check
[Intero] -> :l /home/david/git/vulkan-hl/src/Graphics/Vulkan/Types.hs
[Intero] <- [1 of 2] Compiling Graphics.Vulkan.Internal.Marshal ( /home/david/git/vulkan-hl/src/Graphics/Vulkan/Internal/Marshal.hs, /tmp/intero1512p9d/Graphics/Vulkan/Internal/Marshal.o )

[Intero] <- [2 of 2] Compiling Graphics.Vulkan.Types ( /home/david/git/vulkan-hl/src/Graphics/Vulkan/Types.hs, /tmp/intero1512p9d/Graphics/Vulkan/Types.o )

[Intero] <-

[Intero] <- /home/david/git/vulkan-hl/src/Graphics/Vulkan/Types.hs:10:1: warning: [-Wunused-imports]
    The import of `Control.Monad' is redundant
      except perhaps to import instances from `Control.Monad'
    To import instances alone, use: import Control.Monad()

/home/david/git/vulkan-hl/src/Graphics/Vulkan/Types.hs:13:1: warning: [-Wunused-imports]
    The import of `Data.Default' is redundant
      except perhaps to import instances from `Data.Default'
    To import instances alone, use: import Data.Default()

/home/david/git/vulkan-hl/src/Graphics/Vulkan/Types.hs:19:1: warning: [-Wunused-imports]
    The import of `Foreign.Marshal' is redundant
      except perhaps to import instances from `Foreign.Marshal'
    To import instances alone, use: import Foreign.Marshal()

/home/david/git/vulkan-hl/src/Graphics/Vulkan/Types.hs:21:1: warning: [-Wunused-imports]
    The import of `Foreign.Storable' is redundant
      except perhaps to import instances from `Foreign.Storable'
    To import instances alone, use: import Foreign.Storable()

/home/david/git/vulkan-hl/src/Graphics/Vulkan/Types.hs:24:1: warning: [-Wunused-imports]
    The import of `SDL.Internal.Types' is redundant
      except perhaps to import instances from `SDL.Internal.Types'
    To import instances alone, use: import SDL.Internal.Types()

/home/david/git/vulkan-hl/src/Graphics/Vulkan/Types.hs:25:1: warning: [-Wunused-imports]
    The import of `SDL.Video.Vulkan' is redundant
      except perhaps to import instances from `SDL.Video.Vulkan'
    To import instances alone, use: import SDL.Video.Vulkan()

[Intero] <- Ok
[Intero] <- , modules loaded: Graphics.Vulkan.Types, Graphics.Vulkan.Internal.Marshal.
Collecting type info for 2 module(s) ...

[Intero] <-
/home/david/g
[Intero] <- it/vulkan-hl/src/Graphics/Vulkan/Types.hs:10:1: warning: [-Wunused-imports]
    The import of `Control.Monad' is redundant
      except perhaps to import instances from `Control.Monad'
    To import instances alone, use: import Control.Monad()

/home/david/git/vulkan-hl/src/Graphics/Vulkan/Types.hs:13:1: warning: [-Wunused-imports]
    The import of `Data.Default' is redundant
      except perhaps to import instances from `Data.Default'
    To import instances alone, use: import Data.Default()

/home/david/git/vulkan-hl/src/Graphics/Vulkan/Types.hs:19:1: warning: [-Wunused-imports]
    The import of `Foreign.Marshal' is redundant
      except perhaps to import instances from `Foreign.Marshal'
    To import instances alone, use: import Foreign.Marshal()

/home/david/git/vulkan-hl/src/Graphics/Vulkan/Types.hs:21:1: warning: [-Wunused-imports]
    The import of `Foreign.Storable' is redundant
      except perhaps to import instances from `Foreign.Storable'
    To import instances alone, use: import Foreign.Storable()

/home/david/git/vulkan-hl/src/Graphics/Vulkan/Types.hs:24:1: warning: [-Wunused-imports]
    The import of `SDL.Internal.Types' is redundant
      except perhaps to import instances from `SDL.Internal.Types'
    To import instances alone, use: import SDL.Internal.Types()

/home/david/git/vulkan-hl/src/Graphics/Vulkan/Types.hs:25:1: warning: [-Wunused-imports]
    The import of `SDL.Video.Vulkan' is redundant
      except perhaps to import instances from `SDL.Video.Vulkan'
    To import instances alone, use: import SDL.Video.Vulkan()

[Intero] <-
[Intero] -> :m +
[Intero] <-
[Intero] -> :type-at "/home/david/git/vulkan-hl/src/Graphics/Vulkan/Types.hs" 34 42 34 55 "engineVersion"
[Intero] <- Graphics
[Intero] <- .Vulkan.Types.$sel:engineVersion:ApplicationInfo ::
  ApplicationInfo -> Version

intero-check
[Intero] -> :l /home/david/git/vulkan-hl/src/Graphics/Vulkan/Types.hs
[Intero] <- Ok,
[Intero] <- modules loaded: Graphics.Vulkan.Types, Graphics.Vulkan.Internal.Marshal.

[Intero] -> :m +
[Intero] <-

There are no changes to the module here, I'm just moving the cursor after intero starts up which triggers the second intero-check.
The first odd thing is the lack of warnings on the second :l.  This causes them to disappear from flycheck after you move the cursor.  I tried this using stack ghci --with-ghc intero and I got the warnings printed each time I loaded the module.  Any idea what would cause this behaviour?
As for why flycheck is triggered on cursor movement, I'm still investigating, but I did hit:
Debugger entered: nil
  apply(debug nil nil)
  edebug()
  flycheck-handle-change(1 26 0)
  insert("amu :: SamplerAddressMode")
  (progn (if (fboundp (quote haskell-mode)) (progn (haskell-mode))) (insert expression) (if (fboundp (quote font-lock-ensure)) (font-lock-ensure) (font-lock-fontify-buffer)) (buffer-string))
  (unwind-protect (progn (if (fboundp (quote haskell-mode)) (progn (haskell-mode))) (insert expression) (if (fboundp (quote font-lock-ensure)) (font-lock-ensure) (font-lock-fontify-buffer)) (buffer-string)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))
  (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (if (fboundp (quote haskell-mode)) (progn (haskell-mode))) (insert expression) (if (fboundp (quote font-lock-ensure)) (font-lock-ensure) (font-lock-fontify-buffer)) (buffer-string)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))))
  (let ((temp-buffer (generate-new-buffer " *temp*"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (if (fboundp (quote haskell-mode)) (progn (haskell-mode))) (insert expression) (if (fboundp (quote font-lock-ensure)) (font-lock-ensure) (font-lock-fontify-buffer)) (buffer-string)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))
  intero-fontify-expression("amu :: SamplerAddressMode")
  (if is-error nil (intero-fontify-expression (replace-regexp-in-string "[ \n]+" " " ty)))
  (let* ((ty (apply (function intero-get-type-at) (intero-thing-at-point))) (is-error (string-match "^<.+>:.+:" ty))) (if is-error nil (intero-fontify-expression (replace-regexp-in-string "[ \n]+" " " ty))))
  eldoc-intero()
  eldoc-print-current-symbol-info()
  #[0 "\204

I came across very similar behaviour, which lead me to abandon intero, but I can't reproduce it now.

I think the problem's here:
Debugger entered: nil
  apply(debug nil nil)
  edebug()
  flycheck-handle-change(1 26 0)
...
  eldoc-intero()
  eldoc-print-current-symbol-info()

eldoc-intero uses haskell-mode to fontify the output, but doing that seems to activate flycheck too (probably due to all the hooks for your haskell-mode).
As a workaround, I'll see if it's possible to fontify without enabling haskell-mode, or to enable haskell-mode with hooks disabled.

I have problems similar to those described in this bug report, with regards to emacs hanging for a long time on cursor movements, scrolling and typing. Sometimes it hangs seemingly forever, and i need to C-g in order to make emas responsive again. Additionally, flycheck error messages will sometimes appear and then disappear again after a few seconds.
The problems are frequently accompanied by the messages "error in process filter: Selecting deleted buffer" or "Couldn't guess module name, does it exists?" in the minibuffer
When enabling intero debug mode I also see
Warning (emacs): Received output but no callback in ‘intero-callbacks’: ""
messages in the Warnings buffer, and intero debug output appears briefly in the minibuffer. I'm a bit unsure about how to see the full intero debug output?
This is quite a big problem for me and makes intero nearly unusable.
I'm using intero 0.1.18, intero-mode 20160905.137 and emacs 25.1_rc2

Another strange thing is that intero sometimes opens named, for example, intero-script16999oPj containing
:set prompt ""
:set -fobject-code
:set prompt "\4 "

Were these supposed to be piped to the intero process?

Could
(when (fboundp 'haskell-mode)
      (let (flycheck-checkers)
        (haskell-mode)))

instead of (when (fboundp 'haskell-mode) (haskell-mode)))
in intero-fontify-expression work?

@unhammer might be a nice workaround.

@corngood I pushed something to disable haskell-mode's hooks when doing the fontification. Can you try it?


make cards align

Honestly I shouldn't care. Who am I to question alignment on your site? Life can offer more than straight lines, right? Maybe it was an artistic choice and yet here I am looking at my screen, scrolling up and down, looking for the css class in my devtools... just close this PR and let it rest.

if all conversation on Slack opened like that, the world would be a better place.
You're @jungdaniel! You can question any alignment you see fit. We believe in you, and you should too <3


[stdlib] Fixed for Cygwin

Cygwin uses Newlib (https://en.wikipedia.org/wiki/Newlib) as the C runtime library.
In Cygwin, Newlib was called Glibc. Newlib can now be called Newlib.
COFF image inspection code patched for Cygwin (and MinGW).
VarArgs, RefCount and other minor patches

@compnerd I modified the files and amended the commit. Thanks for your review.

@tinysun212 Could you please rebase this pull request so we can re-test these changes?

Can one of the admins verify this patch?

Alright, it's been quite a while and this patch hasn't seen much activity in a few years now. I'm going to close this out. Thanks!


[FLOC-4190] Fix a bug in the initialize-release tool

Fixes: https://clusterhq.atlassian.net/browse/FLOC-4190

Looks good, thanks for maintaining these scripts.
One real comment to address before merging.

I'd strongly suggest, instead of fixing the script, deleting it, and replacing the instructions to use it with prose instructions to create a new work-copy and virtualenv.

To expand on that:

less code to maintain
when releases get automated, the jenkins abstraction around getting a clean environment will be used, rather than this.

I'd strongly suggest, instead of fixing the script, deleting it, and replacing the instructions to use it with prose instructions to create a new work-copy and virtualenv.

I kind of agree. But I notice that the command also handles some stuff to do with installing OpenSSL on the OSX platform. I don't want to have to document that right now.
This command obviously worked for @zubron  during the last few releases, so I'll leave it for now and it can be deleted if / when we do fully automate the release process.

@wallrj: I ended up only doing one release which used this script. I fixed one bug in it during that release FLOC-3842 and then I encountered another bug that didn't affect me until later in the process. See FLOC-3918.

@zubron Oh, right :frowning: so this script hasn't got a great track record then. Perhaps next release I'll take another look and see if it can be deleted and documented instead. (as @tomprince suggested)


(abort): missing target-details inside chaosresult for the abort cases, if revert takes more time

Is this a BUG REPORT or FEATURE REQUEST?
Choose one: BUG REPORT

What happened:

Experiment which doesn't supports helper model. If the chaos revert takes more time(abort case) then it may miss the target details patch. As the chaosresult is updated before it gets the target details.

The target details also seem to be overwritten upon re-execution of the engine. Can this also be factored in as historical data?


Refactor statuses

Description of change
Four further statuses have been added: Not started, Invalidated, Returned and Withdrawn. Schema has been updated to use strings instead of an enum.
The AASM gem has been added so that we can set rules for transitions. Guards will be added in further commits.
In the UI, the tabs on the index page have been refactored to add Not started/invalidated applications and to rename the Determined tab to Closed.
Story Link
https://trello.com/c/PnFbvAhB/41-refactor-statuses-and-update-tabs

 Refactor statuses and update tabs


RelatedLinks uses incorrect namespace

The official documents for PowerShell cmdlet help states that RelatedLinks should be maml:relatedLinks as opposed to the currently used command:relatedLinks (https://msdn.microsoft.com/en-us/library/bb736334(v=vs.85).aspx).
This causes problems for other apps that expect the related links to have the maml namespace.
v0.5.0

Hi @Alcha , sorry for the long reply
I seen that you send a PR #260 and closed it, do you want to reopen it?
It would probably require fixing the tests as well so the build passes.

I was taking the namespaces and the tags from the existing built-in help. I suspect both namespaces work as far as help engine is concerned, but it would be better to follow the doc, if there is one.
Btw, what are the other apps that you mentioned? I;m curious to learn about other tools.

Now I get to apologize for the long delay. The other apps I was referring to were primarily the mobile apps from SAPIEN. At the time I was working on the Android version and trying to write some scripts to make the help files easier to parse.
As far as the help engine is concerned though, they do work just fine.

we can go either way, ideally we should dig in the https://github.com/PowerShell/PowerShell help system code and find what's the correct schema according to code and does it care one way or another.


[feature] Pass current user and current visit to api data pipeline

Addresses: https://github.com/restarone/violet_rails/issues/457

@alis-khadka can you attach some screenshots and a demo video? I believe in-line documentation for the variables in scope would be nice too!

:spiral_notepad: UAT on Heroku underway


Disable automated tests on PRs and run them only once per week

i.e. we have to make sure that a test passes locally because it won't be run on CI when we create a PR, correct?

i.e. we have to make sure that a test passes locally because it won't be run on CI when we create a PR, correct?

We're still able to fire off manual runs via the "Run workflow" button on https://github.com/coiled/benchmarks/actions/workflows/tests.yml
A better way of handling partial runs would be nice, but is out-of-scope.

thx


Multiple public distribution groups

Is your feature request related to a problem? Please describe.
I wish to use the AppCenter Distribute module in my app. Currently we have multiple different means to deploy our app and AppCenter would make this easier for us. At least on paper.
We would like to not have our customers create a Microsoft Account in order to get updates via Appcenter. We can do that using public distribution groups but then EVERY user would get an update. We prefer to not send updates to all customers at once.
Describe the solution you'd like
I suggest a property in the Distribute SDK that allows me to set a distribution group to check updates on. Something like Distribute.DistributionGroup = "Contoso";. That would give me full control on who receives an update without having to get all our users to create Microsoft Accounts.
Describe alternatives you've considered
I was looking into checking the ReleaseNotesUrl to determine whether the update is supposed to be installed on the customers phones. However for some reason the callback OnReleaseAvailable doesn't seem to work (see microsoft/appcenter-sdk-dotnet#1510). I also tried to set the group url using SetInstallUrl() but it didn't seem to work either.
Additional context
Add any other context or screenshots about the feature request here.

Hello, thank you for reaching out to us. Could you please provide a detailed description of how this feature is implemented from your perspective?

Hello, thank you for reaching out to us. Could you please provide a detailed description of how this feature is implemented from your perspective?

I have on-premise solution so I need to control which installation have been updated API to version which is sufficent to do update on its mobile devices. I use app center distribute OnReleaseAvailable event, and I ask my common server for conditions for upcoming build version. If conditions are met for such installation, I showing update message for user.
App also send intallation id in request so update server could check if update is available for particular installation.

Thanks @brzezinol for reaching to us but we do not plan to implement this feature.


[CI] Move Travis CI job "syncing available extensions to Microsoft/azure-docs-cli" to ADO

This is the last move for CI that migrate from Travis to ADO #1140
This PR is about updating extension list for Microsoft/azure-docs-clis
Basically, the origin job in Travis is do update a file docs-ref-conceptual/azure-cli-extensions-list.md of repo Microsoft/azure-docs-cli for syncing all of available extensions.
https://github.com/Azure/azure-cli-extensions/blob/f380e3ccddd9d26c84ea8ca414052aca90dc56ec/.travis.yml#L38-L51
The original scripts to do this job is placed in scripts/avail-ext-doc/. The most important script main.py do a list of jobs:

clone Microsoft/azure-docs-cli
check whether need to update or not
update docs-ref-conceptual/azure-cli-extensions-list.md
save changes to remote repo
create PR.

Which also involves a token with write permission of Microsoft/azure-docs-cli. (we don't have it)
Here, I only pick up the 3rd step and left the other parts of Job in an internal pipeline "Azure CLI Extension Sync" in AOD. The other files are basically copied from the original.
Those PR:

https://github.com/MicrosoftDocs/azure-docs-cli/pull/1823
https://github.com/MicrosoftDocs/azure-docs-cli/pull/1824

Why turns it into a Pipeline?
Scheduled configuration of ADO doesn't support to apply on task level, but pipeline level. Meanwhile, the original job in Travis is also in publish stage, which is the pipeline  counterpart of ADO .
are the output of this Pipeline and get valididated.
I will migrate Github account from myself to azclibot soon.

This checklist is used to make sure that common guidelines for a pull request are followed.

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR:
docker run -it microsoft/azure-cli:latest
export EXT=<NAME>
pip install --upgrade --target ~/.azure/cliextensions/$EXT "git+https://github.com/haroldrandom/azure-cli-extensions.git@move-ext-list-to-ado#subdirectory=src/$EXT&egg=$EXT"

This PR (https://github.com/MicrosoftDocs/azure-docs-cli/pull/1825) is created by azclibot, I have already changed the Github account to azclibot.
Also, I modified the author and manager to our guys. @yungezz  @yonzhan

This PR(https://github.com/MicrosoftDocs/azure-docs-cli/pull/1826) is triggered by schedule cron.
Build ID is 269103

After the triggered PR (https://github.com/MicrosoftDocs/azure-docs-cli/pull/1826) is merged, the pipeline won't procedure anymore when it detects no new extensions need to be updated.

So you plan to drop the usage of docker, just use vm agent on ADO to do the task?

So you plan to drop the usage of docker, just use vm agent on ADO to do the task?

Yeah, using docker is unnecessary. The Dockerfile is dummy.


Test seeInDatabase

I found #132 but I just don't understand it. I have followed the starter tutorial and this is my test.
$project = factory(App\Project::class)->create();
    $this->post('/api/project', [
        'user_id' => $project->user_id,
        'name' => $project->name,
        'description' => $project->description
    ])->seeApiSuccess()
        ->seeJsonObject('project')
        ->seeJsonKeyValueString('user_id', $project->user_id)
        ->seeJsonKeyValueString('name', $project->name)
        ->seeJsonKeyValueString('description', $project->description);

    $this->seeInDatabase('projects', [
        'user_id' => $project->user_id,
        'name' => $project->name,
        'description' => $project->description
    ]);

this is the response i get after running it.
Failed asserting that '{"errors":false,"data":{"project":{"user_id":2,"name":"Marian Doyle","description":"Animi quis sit culpa eum quam voluptatem voluptate.","updated_at":"2016-05-04 13:17:55","created_at":"2016-05-04 13:17:55","id":24}}}' matches PCRE pattern "/("user_id":"2"|"user_id":"2")/i".

Hi,
Actually you can now use ->seeJson instead of the seeJsonKeyValue and seeJsonKeyValueString which have been deprecated
Replace your assertion with this:
->seeJson(['user_id' => $project->user_id])
->seeJson(['name' => $project->name])
->seeJson(['description' => $project->description]);

and it should work.
Btw your the seeJsonKeyValueString is failing, not your seeInDatabase
Let me know if it fixes it for you 😄

Thanks a bunch. That worked. And thanks for the quick response.


[Bug] Better Discord won't load at all - Windows latest stable

Describe the Bug
After a few month of using, Better Discord won't launch anymore. I don't even have anything. Screen:

To Reproduce
Updated to last version
Already uninstalled multiple times discord and betterdiscord, with cleaning every files of discord remaining. Same issue.
Expected Behavior
Working ?
Reinstalling, fixing, or uninstalling / reinstalling BD doesn't seems to work.
Installations of discord and BD goes fine both.
Screenshots

Discord Version
Stable

Got the exact same issue over here ! (identical specs and stuff)

#600 latest version is having issues

same problem here

#600 latest version is having issues

Issue #600 is a Mac issue. And not describing the exact same problem.

I have the same issue for over a month now the only solution i've found it to uninstall discord and re-install it only fixes it for a short period

I have the same issue for over a month now the only solution i've found it to uninstall discord and re-install it only fixes it for a short period

It fixed it for like an hour for me.

I have the same issue for over a month now the only solution i've found it to uninstall discord and re-install it only fixes it for a short period

It fixed it for like an hour for me.

Let's hope they solve this issue it's really annoying

Discord's new update breaks BBD because it relied on insecure features that Discord has now disabled. The restructure branch contains a version that works for new Discord, but it hasn't been officially released yet.

Using that new installer fixed this (so far) for me, thanks.


Macro usage cleanup

Macro usage cleanup
Description

Remove defined checks as these macros are always defined
Remove redundant definitions of macros that are always defined
Move Static Assert definition to default macros so that it can be used more extensively for compile time checks

Test Steps

Checklist:

[x] I have tested my changes. No regression in existing tests.
[ ] I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/bot run formatting

/bot run formatting

/bot run formatting

Thanks @HTRamsey for taking time to contribute to FreeRTO+TCP, the changes look good. As v4.1 is around the corner we might have to include this change once v4.1 is released.

Thanks @HTRamsey for raising the PR and for answering my questions, this looks good to me as well so I've approved it!


No Such Module  when running fastlane snapshot

New Issue Checklist

[x] Updated fastlane to the latest version
[ ] I have read the Contribution Guidelines

Issue Description
I am using Cocoapods and I am getting "No Such Module [ModuleName]" when running fastlane snapshot. My UITesting runs in Xcode with no problem.
Snapfile content:
# Uncomment the lines below you want to change by removing the # in the beginning

# A list of devices you want to take the screenshots from
# devices([
#   "iPhone 6 Plus",
#   "iPad Pro (12.9-inch)"
# ])

languages([
  "en-US"
])

# The name of the scheme which contains the UI Tests
# scheme "UITests"

# Where should the resulting screenshots be stored?
output_directory "./screenshots"

clear_previous_screenshots true # remove the '#' to clear all previously generated screenshots before creating new ones

# Choose which project/workspace to use
project "./---.xcodeproj"
# workspace "./---.xcworkspace"

# Arguments to pass to the app on launch. See https://github.com/fastlane/fastlane/tree/master/snapshot#launch-arguments
# launch_arguments(["-favColor red"])

# For more information about all available options run
# fastlane snapshot --help

### Environment

🚫 fastlane environment 🚫
Stack

Key
Value

OS
10.12.2

Ruby
2.2.4

Bundler?
false

Git
git version 2.10.1 (Apple Git-78)

Installation Source
~/.fastlane/bin/bundle/bin/fastlane

Host
Mac OS X 10.12.2 (16C67)

Ruby Lib Dir
~/.fastlane/bin/bundle/lib

OpenSSL Version
OpenSSL 1.0.2g  1 Mar 2016

Is contained
false

Is homebrew
true

Is installed via Fabric.app
false

Xcode Path
/Applications/Xcode.app/Contents/Developer/

Xcode Version
8.2

System Locale

Variable
Value

LANG
en_US.UTF-8
✅

LC_ALL
en_US.UTF-8
✅

LANGUAGE
en_US.UTF-8
✅

Is there anyone to help me?

Is all you see after $fastlane snapshot exactly:

No Such Module [ModuleName]

If there's more to it, could you also drop it in here?
Also, have you tried it on the most current Xcode?

The problem is with compiling the code. I think it's because of CocoaPods. I switched between project and workspace in Snapfile but no success.
▸ Building App/Target [Debug]
▸ Check Dependencies
▸ Running script '[CP] Check Pods Manifest.lock'
▸ Compiling TestViewController.swift

❌  /<Path>/TestViewController.swift:10:8: no such module 'MBProgressHUD'

import MBProgressHUD
       ^

When I switch to workspace, the compiling goes well, but I'll get:
▸ Loading...
▸ xcodebuild: error: Scheme Pods-AppUITests is not currently configured for the test action.

I configured AppUITests for test, not Pods-AppUITests.

When snapshot runs, it prints out the commands it uses, if you paste the entire output?
It seems like as you described, it's trying to run the scheme Pods-AppUITests,
maybe along with compiling the workspace, you can pass in the scheme like this: fastlane snapshot --scheme "AppUITests" too

The entire output:
$ fastlane snapshot
For more information, check out https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[12:39:58]: Successfully loaded '/Desktop/app/fastlane/Snapfile' 📄

+----------------------------+-----------------------+
|     Detected Values from './fastlane/Snapfile'     |
+----------------------------+-----------------------+
| languages                  | ["en-US"]             |
| output_directory           | ./screenshots         |
| clear_previous_screenshots | true                  |
| workspace                  | ./App.xcworkspace |
+----------------------------+-----------------------+

$ xcodebuild -list -workspace ./App.xcworkspace
$ xcodebuild clean -showBuildSettings -workspace ./App.xcworkspace -scheme Pods-AppUITests

+----------------------------+--------------------------------------+
|                    Summary for snapshot 2.53.1                    |
+----------------------------+--------------------------------------+
| languages                  | ["en-US"]                            |
| output_directory           | Desktop/app/s  |
|                            | creenshots                           |
| clear_previous_screenshots | true                                 |
| workspace                  | ./App.xcworkspace                |
| scheme                     | Pods-AppUITests                  |
| devices                    | ["iPhone 5", "iPhone 7", "iPhone 7   |
|                            | Plus", "iPad Air", "iPad Pro (9.7    |
|                            | inch)", "iPad Pro (12.9 inch)"]      |
| launch_arguments           | [""]                                 |
| output_simulator_logs      | false                                |
| skip_open_summary          | false                                |
| skip_helper_version_check  | false                                |
| reinstall_app              | false                                |
| erase_simulator            | false                                |
| localize_simulator         | false                                |
| app_identifier             | com.app.test                 |
| buildlog_path              | ~/Library/Logs/snapshot              |
| clean                      | false                                |
| number_of_retries          | 1                                    |
| stop_after_first_error     | false                                |
| xcode_path                 | /Applications/Xcode.app              |
+----------------------------+--------------------------------------+

Clearing previously generated screenshots
Building and running project - this might take some time...
snapshot run 1 of 6
Patching '.../Library/Preferences/com.apple.iphonesimulator.plist' to scale simulator to 100%
------------------------
--- iPhone 5 - en-US ---
------------------------
[12:40:02]: $ set -o pipefail && xcodebuild -workspace ./App.xcworkspace -scheme Pods-AppUITests -derivedDataPath '/var/folders/f3/66q1pv0s2jx0ktn02mxb7f740000gn/T/snapshot_derived20170815-1220-11jg2h2' -destination 'platform=iOS Simulator,id=6FF7CE04-4EAA-483B-83C7-91FD57548468,OS=10.2' FASTLANE_SNAPSHOT=YES build test | tee /Users/macbookpro/Library/Logs/snapshot/Pods_AppUITests-Pods-AppUITests.log | xcpretty
[12:40:02]: ▸ Loading...
[12:40:03]: ▸ xcodebuild: error: Scheme Pods-AppUITests is not currently configured for the test action.
xcodebuild: error: Scheme Pods-AppUITests is not currently configured for the test action.
[12:40:03]: Exit status: 66
[12:40:03]: Caught error... 66
[12:40:03]: Patching '/Users/macbookpro/Library/Preferences/com.apple.iphonesimulator.plist' to scale simulator to 100%

When I try fastlane snapshot --scheme "AppUITests":
Couldn't find specified scheme 'AppUITests'.


[Proposal] Wrapper rewrite

Proposal
Gymnasium already contains a large collection of wrappers, but we believe that the wrappers can be improved to

Support arbitrarily complex observation / action spaces. As RL has advanced, action and observation spaces are becoming more complex and the current wrappers were not implemented with these spaces in mind.
Support for numpy, jax and pytorch data. With hardware accelerated environments, i.e. Brax, written in Jax and similar pytorch based programs, numpy is not the only game in town anymore. Therefore, these upgrades will use Jumpy for calling numpy, jax and torch depending on the data.
More wrappers. Projects like Supersuit aimed to bring more wrappers for RL however wrappers can be moved into Gymnasium.
Versioning. Like environments, the implementation details of wrapper can cause changes agent performance. Therefore, we propose adding version numbers with all wrappers.
In v28, we aim to rewrite the VectorEnv to not inherit from Env, as a result new vectorised versions of the wrappers will be provided.

Motivation
No response
Pitch
Lambda Observation Wrappers - wrappers.lambda_observation

Old name
New name
func tree struct
vector version

TransformObservation
LambdaObservation
-
VectorLambdaObservation

FilterObservation
FilterObservation
y
vectorise

FlattenObservation
FlattenObservation
x
vectorise

GrayScaleObservation
GrayscaleObservation
y
vectorise

PixelObservationWrapper
PixelObservation
x
vectorise

ResizeObservation
ResizeObservation
y
vectorise

-
ReshapeObservation
y
vectorise

-
RescaleObservation
y
vectorise

-
DTypeObservation
y
vectorise

NormalizeObservation
NormalizeObservation
x
VectorNormalizeObservation

TimeAwareObservation
TimeAwareObservation
-
VectorTimeAwareObservation

FrameStack
FrameStackObservation
-
VectorFrameStack

-
DelayObservation
-
VectorDelayObservation

AtariProcessing
AtariPreprocessing
-
-

Lambda Action Wrappers - wrappers.lambda_action

Old name
New name
func tree structure
vector version

-
LambdaAction
-
VectorLambdaAction

ClipAction
ClipAction
y
vectorise

RescaleAction
RescaleAction
y
vectorise

-
NanAction
y
vectorise

-
StickyAction
-
VectorStickAction

Lambda Reward Wrappers - wrappers.lambda_reward

Old name
New name
Vector version

TransformReward
LambdaReward
VectorLambdaReward

ClipReward
ClipReward
vectorise

-
RescaleReward
vectorise

NormalizeReward
NormalizeReward
VectorNormalizeReward

Common Wrappers - wrappers.common

Old name
new name
Vector version

AutoResetWrapper
AutoReset
-

PassiveEnvChecker
PassiveEnvChecker
-

OrderEnforcing
OrderEnforcing
vectorise

EnvCompatibility
remove for shimmy
-

RecordEpisodeStatistics
RecordEpisodeStatistics
VectorRecordEpisodeStatistics

RecordVideo
RecordVideo
VectorRecordVideo

RenderCollection
RenderCollection
VectorRenderCollection

HumanRendering
HumanRendering
-

-
JaxToNumpy
-

-
JaxToTorch
-

Vector Only Wrappers - vector.wrappers.common

Old name
New name

VectorListInfo
VectorListInfo

Alternatives
No response
Additional context
No response
Checklist

[X] I have checked that there is no similar issue in the repo

Relevant: #181
This proposal should also consider and be developed alongside PettingZoo 2.

Wrappers should be versioned like environments.


How to use dnd-droppable and dnd-draggable conditionally?

Hi All,
I am trying to use dnd-droppable and dnd-draggable conditionally, but some reason it is not working as I expected, I added below condition to dnd-droppable.
[attr.dnd-droppable] = "isDroppable ? true : null".
Here is the plnkr example. Is there something that I am doing wrong? Please help me.
Much Thanks!

Hi @v891
There are two sides involved in drag and drop process, so you can use different properties to manage them:

The dragEnabled for draggable components: dnd-draggable [dragEnabled]="true"
The dropEnabled for droppable components: dnd-droppable [dropEnabled]="true"
You can find example here.


Rmx2001 pp UI orangeskai

Don't build ppui, it has private repo

Ahh thanks for the information 🙏


Allow user to preview image upload using NYTPhotoViewer

I felt guilty for breaking images (again) so I'll give you a little present 🎁 seems fair right?
Closes #760

If I had to counterbalance every bug I made I'd be 💀
This is great!!
Adding a wishlist item to add cropping+zooming to the image upload flow. I use this in Twitter.app all the time to focus on a particular part of a screenshot.

I think we already had an issue to add markup there I think 👍
Sent with GitHawk


Format issue, seen in Firefox version 39

The format issue is also seen in Chrome and IE11

I believe this should be fixed, I was not able to reproduce in the first place, but I guess I know what is going on. Could you please check it again? Thanks for reporting this.

It's fixed.  Thanks.


Feat 494/email notification

Description
Add client for email, using Altinn.Notifications API ("notifications/api/v1/orders/email").
Related Issue(s)

#494

Verification

[x] Your code builds clean without any errors or warnings
[x] Manual testing done (required)
[ ] Relevant automated test added (if you find this hard, leave it and we'll help out)
[ ] All tests run green

Documentation

[ ] User documentation is updated with a separate linked PR in altinn-studio-docs. (if applicable)

Something we can also consider, is to actually handle and return an error object for bad requests (400)


wasm-pack test can not execute process wasm-bindgen-test-runner.exe

🐛 Bug description
wasm-pack test --chrome --headless produces the following error:
Caused by:
  could not execute process `C:\Users\David 'Glymph\AppData\Local\.wasm-pack\wasm-bindgen-7e757a9923d43b8a\wasm-bindgen-test-runner.exe' 'C:\Users\David Glymph\Desktop\coding\rust-wasm-tuts\wasm-game-of-life\target\wasm32-unknown-unknown\debug\deps\wasm_game_of_life-71aba50298adce03.wasm'` (never executed)
Error: Running Wasm tests with wasm-bindgen-test failed
Caused by: failed to execute `cargo test`: exited with exit code: 101
  full command: "cargo" "test" "--target" "wasm32-unknown-unknown" "--verbose"

I'm almost certain this is related the Windows path for wasm-bindgen-test-runner.exe having a space in it.
🤔 Expected Behavior
Run tests
👟 Steps to reproduce
Using the template app which comes with preconfigured test

cargo generate --git https://github.com/rustwasm/wasm-pack-template
wasm-pack test --chrome --headless

🌍 Your environment
Windows 11
wasm-pack version: 0.10.3
rustc version: 1.64.0 (a55dd71d5 2022-09-19)

Even I am getting this error. I think this error is due to the blank space in the user directory.

Run into same error with space in username.
Workaround with setting the WASM_PACK_CACHE env var, e.g.:
set WASM_PACK_CACHE=.wasm-pack-cache

This creates the cache dir in the cwd.


Getting wrong UserID in PeoplePicker of @pnp/spfx-controls-react.

When i use people picker i get following user in selectedItems function.
Output in Version:     "@pnp/spfx-controls-react": "1.11.0",
id<EMAIL_ADDRESS>imageInitials: "WJ"
imageUrl<EMAIL_ADDRESS>optionalText: ""
secondaryText<EMAIL_ADDRESS>tertiaryText: ""
text: "Waqar Javaid"

instead of
Output in version **"@pnp/spfx-controls-react": "1.6.0"**
id: 10
imageInitials: ""
imageUrl<EMAIL_ADDRESS>optionalText: ""
primaryText: "Waqar Javaid"
secondaryText<EMAIL_ADDRESS>selected: true
tertiaryText: ""

I just got bit by this after upgrading my PeoplePicker between versions.  I was writing the id field into a list item which broke when I upgraded.  Unfortunately, I didn't realize it before I had already deployed.

Closing this one as old.
Please, feel free to open a new issue if you still experience problems with PeoplePicker in the latest version of the library.


Add remap job

This PR:

Changes the remap pipeline from using environment variables to using ArgParse
Fixes filename parsing when applying remapping
Adds a remap job into our CI
Attempts to account for parallel remapping (will follow up in subsequent PR)

bors r+


Support for credit cards with 8 digits

Is there going to be support for credit cards with 8 digits?
Right now I can't proceed with manual input of 8 digits.
Thank you!

@danieltskv card.io is currently designed to scan MasterCard, Visa, American Express, Discovery, and JCB credit cards.
What kind of card are you interested in accepting?

@dgoldman-ebay In Israel we have a company called Isracard that issues various cards from Mastercard, Visa and more.
The domestic cards, the ones that are only valid in Israel, have 8 letter.
For example:

We have a lot of them here, and I guess more countries have these domestic cards.
Even if the scan can't read them It will be great if one can input them manually. Right now the user can't proceed with 8 digits.

@danieltskv thanks for that information.
For the moment, I guess you have two options: (1) create your own manual-input screen rather than using the card.io screen, or (2) build your own version of card.io based on our open-source codebase in which you change the behavior of the manual-input screen.
I think that creating your own manual-input screen would be the way to go. Most of the non-obvious code in ours involves credit card number prefixes and the Luhn checksum, which aren't things you'll need to worry about. Creating a screen to simply collect an unchecked card number plus an expiry month/year and perhaps a postal code should be easy for you. (Plus you'll be able to take the user directly to the manual-input screen, with camera scanning a secondary option.)

@dgoldman-ebay Thank you for the explanation. I will see what is the best option for us.


Fix #783 - replace Property extension method on object in fluent API

A new Ef helper class as an alternative to object.Property<T>() in the fluent API
@divega @rowanmiller

@divega and I discussed a while back and I think we concluded that we would be better off sticking with DbFunctions from EF6 (even though this isn't technically a function in the database). We should discuss as a team though.

@rowanmiller @divega I'm happy with DbFunctions.

:shipit: if we can agree on the name.

Not a big fan of DbFunctions because to me it seems counterintuitive.
Another nice thing about a single "EF" entry point is that we could do:
EF.DbFunctions

Which means that extension methods can be added like we do elsewhere.


Added some Sample Code for a demonstration in article commenting-code

Implemented some Sample Code for the reader so they can see how comments are used in a basic function.

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Congrats @mikejgurch on your first pull request (PR)! 🎉
Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 📝


Only works in 50mbps on s20 and s21

25mbps only produces one image, then freezes

On my Samsung S8 in 50mbps, it freezes for 10-30 seconds, then is fine. Have you tried waiting longer?

Yes, tried waiting for more than 20s. On 50mbps it does not even freeze

See also #12

This same behavior occurs on my OnePlus 8 Pro (I added this to the pinned issue also.)

Closing this as all devices info should be added to #12 :)


Manual query still fetches

Hi all,
Attempting to have a component which has a manual query. On initial page load it does not poll the server for the query.... however randomly, and I do not know why the query fetches, it seems to be on refocus? I have been unable to pinpoint the source of refetching.
Or is there a use case for manual querying that I could be missing.
I am passing the manual flag to be true
const myQuery = useQuery(
        ['myKey', { key }],
        performQuery,
        { manual: true, staleTime: HOUR_MS },
);

is the format I am using.

I'm having the exact same issue. What was the fix here which warranted to it being closed?


Fix typo and url to openai/whisper-large-v2

What's in this PR?
This PR solves a typo in the README.md and also adds a missing URL to https://huggingface.co/openai/whisper-large-v2.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Changed API key to type 'secret'

Firebase extensions now support storing keys and secrets in Google Secret Manager. (https://firebase.google.com/docs/extensions/manage-installed-extensions?platform=cli#view-extension-secrets)
Changed the type of the ALGOLIA_API_KEY param to 'secret' instead of 'text'. I am not sure if this will break existing installations.
(this is my first PR on an open source repository so apologies in advance if I might have missed something!)

This seems logical, but I'm indeed not sure if this will break existing implementations (I don't think so, as updating requires a reinstall). @smomin do you know a way to check?

I reached out to Iman from the Firebase Extensions team. He said that this won't break existing installations and it's how they have updated their extensions as well.
https://twitter.com/imanrahmati/status/1458979577510858754?s=21

We can't update extensions anymore.

Can we have more information about this? The API key from Algolia should be changed to something else? I looked into Secret Manager but didn't see anything i can get from there to make it work.

I was able to update our extensions - you need to grant access for Google Secret Manager - this would be available on the extensions update page itself, and then generate the secret from your API key (there will be a button beside the text field.)

The above screenshots are taken from the Twilio extension installation page, but the Algolia extension will require the same permissions.

Is there any way to configure this extension without requiring API access for the Secrets API? This is currently breaking one of our flows as we need to be able to install the Algolia extension automatically and do not have access to the GUI (from which you would enable the Secrets API).
Alternatively, do you know of a straightforward way to enable the Secrets API from the command line?

@agreaves it should be possible to enable the API via CLI given the user has the right permissions. My guess is there's another issue involved here. Can you create a new issue against this repo and add more detail on what the specific issue and error message you're seeing is, and we can take it from there?


Introduce a :nulldb_postgres adapter for providing postgres features.

This is not quite ready for merge, but I want to put it up for discussion. Currently nulldb blows up if you use any of the fancy new postgres features that Rails 4 rolls out. I set about getting them working an this is my approach: creating a minimal second adapter which extends the first, and adding some extension points to enable them to operate against one another.
The main concern I have at this point is not knowing how to reliable identify the original adapter type of the database, before it was nullified. I have it working in nulldb_rspec, but not in nulldb/core.
Any thoughts/advice would be appreciated.

@Empact @mckinnsb @erkki @kshmir I have just been added as a maintainer to nulldb. If this PR can be rebased off master, passed the tests I'll gladly look into it.

@mnoack I think I'll also need this PR merged b/c I have PostreSQL and JSON fields and trying to get NullDB working. I will be poking around the code in the next following days to get myself familiar. If the OP doesn't respond I will try to rebase this PR and see how it goes.

@atodorov If someone can rebase this PR off master of nulldb, and it passes the tests I'm more than happy to review and hopefully merge.
Even if you rebase and PR so we can at least see what tests are failing (e.g. I suspect rails 5 will fail in this PR - but this PR was done at a time when rails5 wasn't supported or tested against) and I can assist if needed.

@atodorov I'm closing this because I haven't heard back, but I definitely welcome postgres support. The key thing I would be looking for in any future PR is the test side to ensure automated tests can cover this change.


add ps:restore to start applications which weren't manually stopped

Allows e.g. restarting previously running apps on reboot.
depends on #1610

Hmm, this is interesting. We could potentially use this in /etc/init/dokku-redeploy.conf instead of ps:restartall. @josegonzalez thoughts?

@kdomanski we merged your post-stop plugin trigger, so can you remove that from this pr?
@michaelshobbs how would that work?

@josegonzalez  sed -i 's/ps:restartall/ps:restore' /etc/init/dokku-redeploy.conf
because ps:restore is a filtered list of apps to restart instead of all apps i think this might make more sense to use to start apps on boot. maybe i'm missing something though.

@michaelshobbs
dokku ps:restore as a oneshot supervisord task inside a container.
Before we used a systemd unit like this.

@michaelshobbs that might work. Any objections against this PR as is? We can test the reboot functionality separately from this.

@michaelshobbs Can we merge as is and have a separate pr that redoes our restart strategy?

yes


Vagrant with girder install

Convert ansible scripts to use new girder-install utility for plugins and building frontend web assets

LGTM


Make MethodGenerator parameter sorting preserve array keys

The parameter sorting bug fix introduced its own bug, wherein it didn't preserve the array keys on sort. This commit patches that problem.

Thanks for the quick reaction!

My pleasure. I didn't expect it to be merged in and released quite this quickly either!

@willjones-stratagem automation FTW, and having clear/readable tests makes this really easy to handle :-)


[FEATURE] custom forms in cms-base

Description
Add ability to display and manage custom forms coming as a another part of CMS element.
If it's possible - add missing OpenAPI Schema in the extension's codebase to enable fetching it via api-client-next.
@kstala may I ask you for the details what acceptance criteria in this matter should look like?
Use Case
Currently we handle only contact form and newsletter types. Custom for is another one we should cover in cms-base package.
Proposed Solution
Follow our latest practice how to deal with external extensions if it's not a part of the core. Maybe consider providing an example instead of extending cms-base itself.
Alternatives Considered
No response
Additional Context
No response

Created a custom form for testing here in the default storefront.


Export uses the wrong interpreter to perform the export

It defaults to using the 'jupyter interpreter' instead of using the user's interpreter. This makes it impossible for the user to diagnose errors as the errors don't match what their current interpreter might report.
See this issue:
#13229

Isn't this the right thing to do. Else they end up installing NbFormat in all interpreters that they use?

This makes it impossible for the user to diagnose errors as the errors

Shouldnt we improve our code with logging & the like? E.g. when installing dependencies we should install correctly. Sounds like we aren't installing it properly or not detecting this properly.

How is the user supposed to know to run the command with the 'jupyter interpreter'? They run the same command themselves in their own environment and it works fine. It just makes us look like we're broken.
We should attempt the users interpreter first, and if that doesn't work fallback to the jupyter interpreter.

To be clear I don't mean install nbconvert into the user's python interpreter. Just check it first. That would have alleviated some of the issues on the other bug.
Meaning do this:

Check current interpreter for nbconvert
If there, try running the export command
If fails, try the old code path

related to #11396

I concur that the but @IanMatthewHuff links above is core to this.  My notebook fails with the messages above when I do the convert from within Code, but if I do it from the command line ('jupyter nbconvert XXX --to python'), it works fine.
I'm using Conda, and the python interpreter for the extension, and the one for the notebook are both the same as the environment where I did this from the command line.


Use Disabled Option as "Placeholder"

Would it be possible to have this plugin work with a disabled attribute so an <option> can be used as a placeholder? In a traditional <select> you could do the following to achieve this:
<select id="dropdown-save-to-project" class="form-control">
    <option disabled selected>Choose Project..</option>
    <option>Project #1 </option>
    <option>Project #2</option>
    <option>New Project</option>
</select>

When using choices, the <select> is shown empty until a non-disabled element is selected. I also tried using the built in placeholder/placeholderValue options but could not get it working with a single select input and didn't see any examples on the demo page.
(I also think this would degrade nicely if you opted to use a traditional <select> for mobile.)

Hi @wydflannery,
As of version 2.0.6, setting a disabled option as a placeholder item will now work.
Thanks

I really appreciate it, thank you!


memory usage doesn't consider multiple instances of an application

Deployment type

[x] Kubernetes, using a helm chart

Expected behaviour
Memory usage displays correct amount of memory being used by any application in the Summary View, per Org and per Space.
Actual behaviour
Memory usage just displays the total memory of each application being started without considering further instances of the application.
Steps to reproduce the behavior
Scale your app to multiple instances and validate the displayed values in Stratos.
Log output covering before error and any error statements
Looking at the Space memory calculation it just summarizes the started apps and doesn't multiply according to the number of instances: https://github.com/cloudfoundry-incubator/stratos/blob/master/components/cloud-foundry/frontend/src/model/space.model.js#L601
        // Set memory utilisation
        details.memUsed = 0;
        _.forEach(space.entity.apps, function (app) {
          // Only count running apps, like the CF API would do
          if (app.entity.state === 'STARTED') {
            details.memUsed += parseInt(app.entity.memory, 10);
          }
        });

We've confirmed this is an issue and will put a fix in place.

PR has merged and been included in v1.0.2. Thanks @berchtos for raising this issue and let us know if you have any further questions or issues.


Feature/align with book

Hi @yaronha and @guy1992l
I am raising the PR to make sure the demo's notebooks are aligned with the book's content. Please review and let me know what's your thoughts. Thanks.
Changes:

changed the notebooks to align with the book's content.
changed the src/new_train_workflow.py to make sure it can run successfully.

Typos in the book:

page 236. run.outputs.keys() needs to change to describe_run.outputs.keys()
page 236. "The notebook 2-interactive-data-prep.ipynb demonstrates how to ..."
page 249. last line "select the most optimal features (using hub://feature_selection)
page 250- page 251's kubeflow's workflow didn't work. needs to replace with the code in src/new_train_workflow.py

Hi @guy1992l  ,
The changes:

Fixed the error in NB2.
Get rid of the project init in the notebooks. adding a project.yaml and project_setup.py
In notebook4, get rid of the workflow code. all the workflow code is in src/new_train_workflow.py. Add the hyperlink in the markdown cell of notebook4.
All the old notebooks are removed.

Question:

Add a flag pre_load_data flag in the project_setup.py as a place holder to solve the issue that the user may not run all the notebooks. My question is where do I put the logic of loading the data. it seems heavy to put everything in project_setup.py,  I am thinking about have a separate python script inside of src/pre_load_data.py. Call the function in project_setup.py. Is it good practice to include some data processing logic in project_setup.py. Need some guidance here. Please let me know.

Thank you.


Allow splitting modules in different files on external API

Due to an issue on generating a single SV output on designs that contain Blackbox modules (https://github.com/llvm/circt/issues/4249), having each module into a separate SV file solves the problem.
This PR exposes this option to the user-facing API.

This can then be used to stop relying on EmitAllModulesAnnotation

But isn't it kind of nice that the CIRCT stage uses the same mechanism as the previous stage? So anything that was using EmitAllModulesAnnotation doesn't have to be rewritten to use a new CIRCTStage annotation that does the same thing?
Maybe I am misunderstanding your suggestion.
My main feedback on tihs PR is that the name emitSystemVerilogFile is confusing if we sometimes emit multiple files. Maybe we should just make a new function emitSystemVerilogFiles? Thoughts?

Maybe we can join the two changes from this and #29 to have emitSystemVerilog for file or files and getSystemVerilogString to generate a string output at package level.
I'd remove these two functions from ChiselStage and move the functionality there together with the splitFiles flag.

But isn't it kind of nice that the CIRCT stage uses the same mechanism as the previous Chisel stage? So anything that was using EmitAllModulesAnnotation doesn't have to be rewritten to use a new CIRCTStage annotation that does the same thing?

EmitAllModulesAnnotation was always a bad user-facing API, though. It is a user-facing API that requires a user to tell it what Class[_ <: firrtl.Emitter] it should be sensitive to. This doesn't make any sense in a CIRCT world where such firrtl.Emitters aren't being run (and will be removed along with the SFC).
Another way of thinking about this is that circt.stage.ChiselStage and chisel3.stage.ChiselStag are totally different tools. Annotations, in this use, are the data storage for command line options. There is no good reason to maintain the same data storage for a command line option for a different tool. No user is manually generating EmitAllModulesAnnotations from inside a Chisel circuit. (They may be doing this in a {circt, chisel3}.stage.ChiselStage call. However, they are only doing this because we don't give them a good Array[String] API and they have to use the Seq[Annotation] API.)

What about having a separate method (rebased on #29) at the package level generate split files?

Thanks for this, @carlosedp! Apologies for letting this drop. I went with a slightly different API here: https://github.com/chipsalliance/chisel/pull/3026
This provides a --split-verilog Chisel-level option that can be used with circt.stage.ChiselStage.