fix: Correct permission on AWS load balancer controller

Description

Correct permission on AWS load balancer controller; looks like it was a copy past error https://github.com/kubernetes-sigs/aws-load-balancer-controller/blob/694a0b14184e388806f9f34be0dd9075aa8fb0a7/docs/install/iam_policy.json#L216

Motivation and Context

Closes #190

Breaking Changes

No

How Has This Been Tested?

[x] I have tested and validated these changes using one or more of the provided examples/* projects

This PR is included in version 4.13.1 :tada:


Tracking issue for libz blitz evaluation of reqwest

This is the tracking issue for the evaluation performed by the libs team this week.

[x] Expose RedirectAttempt and RedirectAction types
[x] Hide trait impls that are inaccessible to users
[x] Send and Sync in return type of Error::get_ref
[x] Switch to &mut self builder
[x] Move try_ macro to error.rs
[x] Use realistic error handling in example code
[x] Include an "Errors" section in documentation of functions that can return error
[x] Decide how to handle JSON serialization errors
[x] Comment why unwrap() won't fail
[x] Include html_root_url attribute
[x] Response doc improvements
[x] Examples for the Body constructors
[ ] Error doc improvements
[x] Example for RequestBuilder::headers
[x] Examples for RequestBuilder::body
[x] Conform to the recommended pattern for sealed traits
[ ] Reimplement StatusCode and HttpVersion using associated constants
[ ] Stabilize some of the foundational types in a separate crate

I don't know if this was discussed in the meeting,
but what are your thoughts regarding hyper async and stabilizing request?
Should 1.0 wait for a stable release of hyper async?
Or should there already be a SyncClient with a backwards compatible API once hyper async arrives?

It was mentioned that since an async client will need to expose Future, and the futures crate won't stabilize before reqwest, then reqwest 1.0 will just have a sync client, and and reqwest_async will live seperately as an unstable thing. When it can stabilize, it could be merged into reqwest and released as v2.0.

That said, to reduce breakage of reqest v1 -> v2, the Client naming issue is relevant here.

Lots of these issues are doc or examples. I'm thinking about writing examples using https://httpbin.org. Would that be good, or did you have other ideas in mind?

It's fine for the example to refer to httpbin, just because the example isn't in a fn main() {}, so we don't have the doctests actually making requests.

Hi large part of docs (including part of landing page) are missing links when referencing  symbols. Should these be corrected (assuming yes from log crate evaluation)?

#1196 was superceded by the existing https://github.com/hyperium/hyper/issues/894 issue, which still needs to be fixed before reqwest 1.0


Livy notebook session properties dialog has UI errors, and doesn't apply settings with multiple session recreates

Is the issue already present in https://github.com/cloudera/hue/issues or discussed in the forum https://discourse.gethue.com?  No
Describe the bug:
Somewhere between Hue 4.7 and 4.9 there has been a regression in the Notebook Session properties dialog settings for Livy sessions.  If you create a new PySpark or Scala session, then go to edit the session properties, there are 2 distinct problems:

Session properties dialog shows "Spark Conf" kvp option without even selecting it, and more kvp's can't be added.
The first use of any other properties are applied to the Livy session, but the second time you try and recreate a session with some different properties, they aren't applied.

Steps to reproduce it?
For UI issue with properties dialog:

Open new Notebook and add a Livy-based snippet, like Pyspark or Scala
Let the snippet create the new Livy session with the default properties.
Open the Session Properties dialog for the Notebook.
The dialog will show "Spark Conf" kvp option and it shouldn't be shown yet without the user first selecting it. (See attached screenshot).  User also can't add additional Spark Conf kvp's.

For Livy session properties issue:

Open new Notebook and add a Livy-based snippet, like Pyspark or Scala
Let the snippet create the new Livy session with the default properties.
Open the Session Properties dialog for the Notebook.
Add a new property, like "Queue" (or any other).  Change the value to something other than the default.
Recreate the session.  The changed properties are correctly applied.
Re-do steps 3 through 5, using a different value for the property this time.  The changed properties are not correctly applied... it is still using the property values from the first time the value was changed.

Hue version or source? (e.g. open source 4.5, CDH 5.16, CDP 1.0...). System info (e.g. OS, Browser...).
Hue 4.9, Python 3.7.

There is probably some js error with ko.js saying the json data it needs to convert to the Conf input boxes does not match

There is probably some js error with ko.js saying the json data it needs to convert to the Conf input boxes does not match

Why I have no the bottom of the add a prop.


Implement type projection tags

Related: #374

We should probably remove free term singleton equality heuristics as part of this, and restrict pdts/projections to static objects only

Implementation involves adding a match on TypeRef here:
https://github.com/pshirshov/izumi-r2/blob/develop/fundamentals/fundamentals-reflection/src/main/scala/com/github/pshirshov/izumi/fundamentals/reflection/TagMacro.scala#L66
and the associated logic.

The only way to get into a situation where a type prefix may need resolution is to use type projection on a type parameter, as in:
class Path {
  type Child
}

def getTag[A <: Path]: Tag[A#Child] = Tag[A#Child]

However, type parameters CANNOT be used in prefixes starting from Scala 3, only concrete class types can. So Path#Child is ok, but A#Child is illegal - https://dotty.epfl.ch/docs/reference/dropped-features/type-projection.html
I think since this form is deprecated anyway, it's not a good idea to use – and we don't really have to support it either.


docs: adjust summary

Coverage remained the same at 100.0% when pulling 299082b202be39da855ce228f1f15538f31fb6ef on docs-adjust-summary into 02b616f8d7658b098d4c79efec6544c8fe788632 on main.

:tada: This PR is included in version 1.2.34 :tada:
The release is available on:

GitHub release
npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:


Failed to create PR

Hello, my workflow is...
name: Frogbot Scan and Fix
on:
  push:
permissions:
  contents: write
  pull-requests: write
  security-events: write
jobs:
  create-fix-pull-requests:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Setup NodeJS
      uses: actions/setup-node@v3
      with:
        node-version: "16.x"
    - uses: jfrog/frogbot@v2
      env:
        JF_INSTALL_DEPS_CMD: npm ci --legacy-peer-deps
        JF_URL: https://na.artifactory.taas.kyndryl.net/
        JF_GIT_API_ENDPOINT: https://github.kyndryl.net/api/v3
        JF_GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        JF_ACCESS_TOKEN: ${{ env.JF_TOKEN }}

Allow GitHub Actions to create and approve pull requests checked
We are facing:
10:05:24 [Info] Creating branch: frogbot-moment-33a86fc7fc0e1cfbe5636bdf4c66e95f
Error: 7 [Error] failed while trying to fix and create PR for: moment with version: 2.29.4 with error: npm install<EMAIL_ADDRESS>command failed: exit status 1
...
10:05:28 [Info] Creating branch: frogbot-terser-bd0ab704e2f11528b2588cddd3a649c9
Error: 1 [Error] failed while trying to fix and create PR for: terser with version: 4.8.1 with error: npm install<EMAIL_ADDRESS>command failed: exit status 1

Hey @Dzmitry-Varashylau, it seems like the npm install fails. When you run npm install on your project, does it succeed? Is it possible that your package.json/package-lock.json is corrupted?

Yes, npm install fails


allow peridot project to specify a build pool type in additional to build pool architecture

allow peridot project to specify a build pool type in additional to build pool architecture
do not place IntelliJ workspace artifacts into git

/ok-to-test


Nuxt3 api/me route cannot resolve import from '#supabase/server'

Hi, I'm having typescript error saying that cannot find module in "#supabase/server" even tho everything works fine, it's just that error. Tried in VS Code, Nvim and got same error. For now i use // @ts-ignore for that part but it's just so I can find fix for it. Anybody know how to fix this?

Version
@nuxtjs/supabase: v0.3.7
nuxt: v3.5.3
Steps to reproduce
Create server/api/me.ts and try to import serverSupabaseUser without typescript error
What is Expected?
Typescript should be able to import and show types for serverSupabaseUser when importing.
What is actually happening?
Typescript is throwing error that it cannot find module or declaration in #supabase/server as shown in image above.

@ASoldo I'm getting the same thing. I think it's something to do with how VSCode is resolving the generated types in .nuxt/types/supabase.d.ts as the typescript compiler doesn't seem to have an issues with it.
My hack is a little more tolerable than @ts-ignore. I simply copied the type defs to server/types.d.ts. Unfortunately I wasn't able to find the root issue in the time I have.
declare module "#supabase/server" {
  const serverSupabaseClient: typeof import("../node_modules/@nuxtjs/supabase/dist/runtime/server/services").serverSupabaseClient;
  const serverSupabaseServiceRole: typeof import("../node_modules/@nuxtjs/supabase/dist/runtime/server/services").serverSupabaseServiceRole;
  const serverSupabaseUser: typeof import("../node_modules/@nuxtjs/supabase/dist/runtime/server/services").serverSupabaseUser;
}

I also get the same issue.
Any idea to solve this issue?


Test error

When I try to run test folder, it gives me errors in the client, and the application is crashing in the server, need to fix.

Could you give more details? Which OS-enviroment and how are you trying to run tests?

Now we’ve released new version of compilers, and tests were moved to bare example.
If you’re facing this issue, please let me know.


improve h performance

Hello again!
I've noticed some performance issues in the main h function.
These are:

using delete on props - this modifies props shape and hidden classes, so it's much more efficient just to set the ref and key to undefined when they exist in props
flat function is using concat and spreads, which both are quite slow operations. I've rewritten it using plain forEach iteration and also fused it with your some filter function, so there is no temporary array.
It's about 2x faster than your version: https://jsben.ch/VKq8X

So, all of this give 2.5-3x performance speedup on some common JSX, here's the benchmark: https://jsben.ch/vLEYO
Will be glad be hear any feedback!

I fixed some tests of the h function.
I didn't know that delete was so slow. It would be great if V8 could optimize it in the future.
I still hope to keep clean props

Thanks for merging!
I've noticed you have changed undefined to null for ref and key values - I think it's really better to keep them undefined, here's why.
In dom.ts you have a line:
https://github.com/yisar/fre/blob/f5acae8e2e64a83e9064421fbf9f16cd9566bdc7/src/dom.ts#L54
So when key or ref specified, on initial DOM node creation the jointIter will iterate through the key and ref, and because of strict equality check here (in this case, a === undefined and b === null, so a === b is false):
https://github.com/yisar/fre/blob/f5acae8e2e64a83e9064421fbf9f16cd9566bdc7/src/dom.ts#L22-L23
it will execute unnecessarily DOM operations here:
https://github.com/yisar/fre/blob/f5acae8e2e64a83e9064421fbf9f16cd9566bdc7/src/dom.ts#L36-L37
If the key and ref will be undefined, the strict equality check will pass and no DOM opeations will be done.
Another way, you could add additional name check like this:
if (a === b || name === 'children' || name === 'key' || name === 'ref') {

I think it's really better to keep them undefined.
Ah, you're right. undefined would be better.


CI:  Add step to enable proxy port from firewall

For some environment when firewalld service is enable then proxy scenario is failing because  port 3128 is not part of libvirt firewall rules and proxy server is not accessible by instance. We should add it as part of step just to avoid this failure.

Fwiw, a more detailed description of the issue/failing setup will be needed, on my test machine:
$ sudo firewall-cmd  --info-zone=libvirt
libvirt (active)
  target: ACCEPT
  icmp-block-inversion: no
  interfaces: crc virbr0
  sources:
  services: dhcp dhcpv6 dns ssh tftp
  ports:
  protocols: icmp ipv6-icmp
  forward: no
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:
	rule priority="32767" reject

but I can connect nonetheless from the VM to port 3128 of another physical machine in the same local network as the host.

On the qe environment where we saw a fail related to the proxy, the firewalld setup is exactly the same:
sudo firewall-cmd  --info-zone=libvirt
libvirt (active)
  target: ACCEPT
  icmp-block-inversion: no
  interfaces: crc virbr0 virbr1
  sources:
  services: dhcp dhcpv6 dns ssh tftp
  ports:
  protocols: icmp ipv6-icmp
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:
	rule priority="32767" reject

where is the proxy running?

The proxy is running as a container on the same host  where crc is running

I ran additional tests, starting nc --listen in a container running on the host, then I can reach it from the VM by using either the external IP address of my host, or <IP_ADDRESS>, and both were fine.
So either my setup is more permissive than a default install, and but I don't remember making changes, or the problem which is being seen is not related to firewall rules.

So either my setup is more permissive than a default install

It is not, according to the setup on the machine showing the issue: https://github.com/code-ready/crc/issues/2934#issuecomment-1009850565 during testing


Mixin "EQSTATECHECK" does not accept a content block.

Hi Sam,
Just to let you know that using latest beta releases from gulp-sass and node-sass the eq mixin throws the following error:
events.js:141
      throw er; // Unhandled 'error' event
      ^
Error<EMAIL_ADDRESS>  31:12  Mixin "EQSTATECHECK" does not accept a content block.

Backtrace:
	jspm_packages/github/Snugug/eq.js@1.7.1/sass/_eq.scss:31, in mixin `eq`
	src/sass/_shame.scss:469
    at options.error (/Users/luismartins/Sites/rulergy.dev/wp-content/themes/rulergy-marketing/node_modules/gulp-sass/node_modules/node-sass/lib/index.js:277:32)

This with something like the following on my Sass file:
.banner-home{
    @include eq-pts((
        small: 400,
        medium: 500,
        large: 700
    ));

    @include eq('small', 'medium', 'large') {
      font-size: 1em;
    }
}

If you're lazy like me, in the meantime you can make a copy of the mixins file from the bower/npm repo and remove the error-checking function (what's the worst that could happen? Famous last words.)
https://gist.github.com/jonscottclark/6255c80b46371f2d4ac6

Thanks for the tip @jonscottclark
I've abandoned the idea of using those mixins though. Because im now unable to provide any feedback about it, will close this.


Specular_roughness default mismatch

The documentation claims the roughness to be 0.2 by default. The materialx reference uses 0.1.

Thanks for reporting this! I'll fix this in the materialx reference.


How to configure ClientBuilder etc with custom serializer?

Hello, i have been struggling about how to set custom serializer and pass it to ClientBuilderInterface::setSerializer().
This is final solution i was able to get working, but i am unsure if it is correct and there is no easier way?
Either i think in config i should use Sentry\ClientBuilderInterface instead of Sentry\ClientBuilder but since it is private service (defined in services.xml) and when i tried to exchange that i received Error: Cannot instantiate interface Sentry\ClientBuilderInterface
services:
    Entrydo\Sentry\GenericSentrySerializer: ~
    Entrydo\Sentry\SentryClientBuilderSerializerConfigurator: ~
    Sentry\ClientBuilder:
        configurator: ['@Entrydo\Sentry\SentryClientBuilderSerializerConfigurator', 'configureSerializer']

final class SentryClientBuilderSerializerConfigurator
{
    /**
     * @var GenericSentrySerializer
     */
    private $genericSentrySerializer;

    public function __construct(GenericSentrySerializer $genericSentrySerializer)
    {
        $this->genericSentrySerializer = $genericSentrySerializer;
    }

    public function configureSerializer(ClientBuilderInterface $clientBuilder): void
    {
        $clientBuilder->setSerializer(
            $this->genericSentrySerializer
        );

        ClientBuilderConfigurator::configure($clientBuilder);
    }
}

final class GenericSentrySerializer implements SerializerInterface
{
    /**
     * @var Serializer
     */
    private $originalSerializer;

    public function __construct(Options $options)
    {
        $this->originalSerializer = new Serializer($options);
    }

    /**
     * Serialize an object (recursively) into something safe to be sent in an Event.
     *
     * @param mixed $value
     *
     * @return string|bool|float|int|object|array|null
     */
    public function serialize($value)
    {
        // and other logic

        if ($value instanceof UuidInterface) {
                return [
                    'uuid' => $value->toString(),
                ];
            }

        return $this->originalSerializer->serialize($value);
    }
}

If this is the right way of extending ClientBuilder, can we document it? I have spent some time figuring out that the only way (IS IT or am i wrong?) of doing that is using a symfony service configurator + decorating with calling the original configurator which i found in SentryExtension

That's one way to do it, but you could've just added a setSerializer call to the builder service, Symfony would've done that for you without the need for an additional class.

@Jean85 thank you for your reply, though i did not figure out how to do that directly on existing service with id Sentry\ClientBuilderInterface.

https://symfony.com/doc/current/service_container/calls.html

https://symfony.com/doc/current/service_container/calls.html

Meh, i knew u must have missed something stupid and easy :-). Thank you!
Can we please keep this open for few days? I would prepare PR with updating docs mentioning this as i think it might save some time for other devs looking for same thing.

I have tried suggested approach with calls and it still fails (i think it is because service is ClientInterface private) with message Error: Cannot instantiate interface Sentry\ClientBuilderInterface
My services.yaml looks like this:
Entrydo\Sentry\GenericSentrySerializer: ~
    Sentry\ClientBuilderInterface:
        calls:
            - method: setSerializer
              arguments:
                  - '@Entrydo\Sentry\GenericSentrySerializer'

Nope, the issue here is that with YAML you're completely overriding the bundle configuration, so the class key missing, and the service doesn't know how to instantiate the class. So you either add the call with PHP (like with a compiler pass) or you have to copy what' you're overriding.

Ah, damn, i see 😄
What do you think about extending sentry/symfony extension to make this easier, something like this (i would prepare PR):
Sentry yaml:
sentry:
    dsn: '%env(SENTRY_DSN)%'
    client:
        serializer: '@MyService' # new option
    options:
        environment: '%kernel.environment%'

SentryExtension::load():
- $container->getDefinition(ClientBuilderInterface::class)
-    ->setConfigurator([ClientBuilderConfigurator::class, 'configure']);

+ $clientBuilder = $container->getDefinition(ClientBuilderInterface::class);
+ $clientBuilder->setConfigurator([ClientBuilderConfigurator::class, 'configure']);

+ if ($processedConfiguration['client']['serializer']) {
+    $clientBuilder->addMethodCall('setSerializer', /** .. */);
+ }

I would have to maintain a lot of different stuff for that, since that is not the only option that could be configured in that way, and not the only way.


How to fine tune roberta for multi-label classification?

Sorry new to fairseq. I would like to know how can we fine-tune roberta model for multilabel classification. Which fairseq dataset would be best for the task? do I need a custom task or can I use sentence prediction task?

https://github.com/pytorch/fairseq/blob/master/examples/roberta/README.custom_classification.md

@villmow the readme you linked is only for solution in which you can have only one label per sample (the multiclass problem). But what about the situation in which you can have multiple labels per sample? E.g. you have a sentence that is being labeled with 2 or 3 categories?

Yes you're right. Sorry I missed that. I think then you'll need a custom task. The sentence_prediction task simply uses a CrossEntropyLoss, which is probably not what you want for multi-label classification. You'd probably want a BinaryCrossEntropy loss...

Yes, I also ended up creating a custom task and criterion for using Binarycrossentropy. But finding the right dataset class for loading the multilabel data was tricky, I ended up using the LanguagePairDataset and one hot encoded the labels to a fixed length.

@neelansh, any chance you might be willing to share a gist for how you loaded the data?

@pstjohn sure. Let me dig it out. and would post it soon.

@pstjohn here is the code for loading the multilabel data. You need to create a custom task where you can define this data loader function and a custom criterion that uses binary cross entropy loss. you can register both these classes using @register_task and @register_criterion  decorators.
The following is the load_data set definition for the custom task
`def load_dataset(self, split, combine=False, **kwargs):
"""Load a given dataset split (e.g., train, valid, test)."""
split_path = os.path.join(self.args.data, 'input0', split)
input0 = data_utils.load_indexed_dataset(
split_path,
self.source_dictionary,
self.args.dataset_impl,
combine=combine,
)
    if self.args.init_token is not None:
        input0 = PrependTokenDataset(input0, self.args.init_token)

    src_tokens = input0

    with data_utils.numpy_seed(self.args.seed):
        shuffle = np.random.permutation(len(src_tokens))

    if self.args.truncate_sequence:
        src_tokens = TruncateDataset(src_tokens, self.args.max_positions)

    src_dataset = src_tokens

    labels, label_lengths = [], []
    with open(os.path.join(self.args.data, 'label', split+".label")) as file:
        for line in file:
            line = line.strip()
            line = line.split(" ")
            label = [self.label_vocab.add_symbol(l) for l in line]

            if(len(label) < self.args.max_target_positions):
                label = label + [self.label_vocab.add_symbol('<pad>')]*(self.args.max_target_positions-len(label))

            label = label[:self.args.max_target_positions]

            label = torch.tensor(label)
            labels.append(label)
            label_lengths.append(len(label))

    assert len(src_dataset) == len(labels)
    print('| {} {} {} examples'.format(self.args.data, split, len(src_dataset)))
    self.datasets[split] = LanguagePairDataset(
        src=src_dataset,
        src_sizes=src_dataset.sizes,
        src_dict=self.input_vocab,
        tgt=labels,
        tgt_sizes=torch.tensor(label_lengths),
        tgt_dict=self.label_vocab,
        left_pad_source=False,
        max_source_positions=self.args.max_positions,
        max_target_positions=self.args.max_target_positions,
        input_feeding=False,
    )`

following is the code snippet for using binary_cross_entropy_with_logits loss for multilabel classification. This needs to be added to the forward definition in your custom criterion class
targets = F.one_hot(targets.long(), num_classes=logits.size()[-1]+4) targets = targets.sum(dim=1) targets = targets[:, 4:] loss = F.binary_cross_entropy_with_logits(logits, targets.float(), reduction='sum')

Hi @neelansh, in which file(s) did you add/modify the code?


CoreML for IOS with RoboVM

Hi , will you plan to support CoreML for IOS on DeepLearning4J ?

@eix128  are you using the fork? https://github.com/MobiVM/robovm I just want to be clear, since the original robovm was shuttered long ago. @johanvos actually did some  ios work a  while ago. We're also going to be working with graalvm as well. We can technically compile no problem for ios, but aren't supporting ios specifically yet. If your team is willing to commercially sponsor the work, we would consider prioritizing it, otherwise we will have to wait for more community attention to this.


[Issue]: Failing Unit Tests

Problem Description
The following tests FAILED:
         24 - Unit_deviceAllocation_Malloc_PerThread_PrimitiveDataType (Failed)
         25 - Unit_deviceAllocation_New_PerThread_PrimitiveDataType (Failed)
         26 - Unit_deviceAllocation_Malloc_PerThread_StructDataType (Failed)
         27 - Unit_deviceAllocation_New_PerThread_StructDataType (Failed)
         28 - Unit_deviceAllocation_InOneThread_AccessInAllThreads (Failed)
         29 - Unit_deviceAllocation_Malloc_AcrossKernels (Failed)
         30 - Unit_deviceAllocation_New_AcrossKernels (Failed)
         31 - Unit_deviceAllocation_Malloc_ComplexDataType (Failed)
         32 - Unit_deviceAllocation_New_ComplexDataType (Failed)
         33 - Unit_deviceAllocation_Malloc_UnionType (Failed)
         34 - Unit_deviceAllocation_New_UnionType (Failed)
         35 - Unit_deviceAllocation_Malloc_SingleCodeObj (Failed)
         36 - Unit_deviceAllocation_New_SingleCodeObj (Failed)
         37 - Unit_deviceAllocation_Malloc_PerThread_Graph (Failed)
         38 - Unit_deviceAllocation_New_PerThread_Graph (Failed)
         39 - Unit_deviceAllocation_Malloc_DeviceFunc (Failed)
         40 - Unit_deviceAllocation_New_DeviceFunc (Failed)
         41 - Unit_deviceAllocation_VirtualFunction (Failed)
         42 - Unit_deviceAllocation_Malloc_MulKernels_MulThreads (Failed)
         43 - Unit_deviceAllocation_New_MulKernels_MulThreads (Failed)
         44 - Unit_deviceAllocation_Malloc_SingKernels_MulThreads (Failed)
         45 - Unit_deviceAllocation_New_SingKernels_MulThreads (Failed)
         46 - Unit_deviceAllocation_Malloc_MulCodeObj (Failed)
         47 - Unit_deviceAllocation_New_MulCodeObj (Failed)
        631 - Unit_hipMemPrefetchAsync_NonPageSz (Failed)
        946 - Unit_hipMemPrefetchAsync_Basic (Failed)
        1044 - Unit_hipHostMalloc_CoherentTst (Bus error)
        1045 - Unit_hipMallocManaged_CoherentTst (Bus error)
        1322 - Unit_printf_flags (Failed)
        1323 - Unit_printf_specifier (Failed)
        1615 - Unit_hipStreamPerThread_MangdMem (Failed)
        1659 - Unit_hipCGMultiGridGroupType (Bus error)
        1660 - Unit_hipCGMultiGridGroupType_BaseType (Bus error)
        1661 - Unit_hipCGMultiGridGroupType_PublicApi (Bus error)
        1662 - Unit_coalesced_groups_shfl_down (Failed)
        1663 - Unit_coalesced_groups_shfl_up (Failed)
        1664 - Unit_coalesced_groups (Failed)
        1711 - Unit_hipHostMalloc_WthEnv1 (Failed)
        1712 - Unit_hipHostMalloc_WthEnv1Flg1 (Failed)
        1713 - Unit_hipHostMalloc_WthEnv1Flg2 (Failed)
        1714 - Unit_hipHostMalloc_WthEnv1Flg3 (Failed)

Operating System
35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May  7 09:00:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
CPU
13th Gen Intel(R) Core(TM) i9-13900K
GPU
AMD Radeon VII
ROCm Version
ROCm 5.7.1
ROCm Component
HIP
Steps to Reproduce
No response
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
I've opened an issue on hip-tests but got no reply: https://github.com/ROCm/hip-tests/issues/462
On there, I've tested ROCm 6.1
Since last official release for gfx906 was on ROCm 5.7, I've downgraded the installation and ran the tests again.
╭─pvelesko@cupcake ~/HIPAMD/hip-tests ‹rocm-5.7.x›
╰─$ dpkg -l | grep rocm                                                                                130 ↵
ii  rocm-clang-ocl                             <IP_ADDRESS>700-63~20.04                                            amd64        OpenCL compilation with clang compiler.
ii  rocm-cmake                                 <IP_ADDRESS>700-63~20.04                                           amd64        rocm-cmake built using CMake
ii  rocm-core                                  <IP_ADDRESS>700-63~20.04                                            amd64        Radeon Open Compute (ROCm) Runtime software stack
ii  rocm-dbgapi                                <IP_ADDRESS>700-63~20.04                                           amd64        Library to provide AMD GPU debugger API
ii  rocm-debug-agent                           <IP_ADDRESS>700-63~20.04                                            amd64        Radeon Open Compute Debug Agent (ROCdebug-agent)
ii  rocm-dev                                   <IP_ADDRESS>700-63~20.04                                            amd64        Radeon Open Compute (ROCm) Runtime software stack
ii  rocm-device-libs                           <IP_ADDRESS>700-63~20.04                                            amd64        Radeon Open Compute - device libraries
ii  rocm-dkms                                  <IP_ADDRESS>700-63~20.04                                            amd64        Radeon Open Compute (ROCm) Runtime software stack
ii  rocm-gdb                                   13.2.50700-63~20.04                                             amd64        ROCgdb
ii  rocm-llvm                                  <IP_ADDRESS>52.50700-63~20.04                                     amd64        ROCm compiler
ii  rocm-ocl-icd                               <IP_ADDRESS>700-63~20.04                                            amd64        clr built using CMake
ii  rocm-opencl                                <IP_ADDRESS>700-63~20.04                                            amd64        clr built using CMake
ii  rocm-opencl-dev                            <IP_ADDRESS>700-63~20.04                                            amd64        clr built using CMake
ii  rocm-smi-lib                               <IP_ADDRESS>700-63~20.04                                            amd64        AMD System Management libraries
ii  rocm-utils                                 <IP_ADDRESS>700-63~20.04                                            amd64        Radeon Open Compute (ROCm) Runtime software stack
ii  rocminfo                                   <IP_ADDRESS>700-63~20.04                                            amd64        Radeon Open Compute (ROCm) Runtime rocminfo tool

Looks like an PCIe atomics issue.
Can you share a few more details: What PCI-e gen you are on? I think Radeon VII supports 3.0.
Also is Large BAR enabled? It will be "4G decode" or something in your motherboard bios menu.

Can you share a few more details: What PCI-e gen you are on? I think Radeon VII supports 3.0.

https://www.gigabyte.com/Motherboard/B660-DS3H-AC-DDR4-rev-10-12#kf
PCIe 4.0

Also is Large BAR enabled?

yes

Hi @pvelesko, let's use https://github.com/ROCm/hip-tests/issues/462 to continue investigating this issue.


Don't remove a readme that isn't there

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 90.264%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
4543

Relevant Lines:
5033

💛  - Coveralls

I'm still getting the same problem as in #147 and #149, where the first time I actually try to run a lammps job it crashes. Since pyiron_atomistics imposes no upper bound on pyiron_base, I wind up getting pyiron_base=0.6.20 together with the very old pyiron_atomistics=0.3.5. Let's try pinning base to the expected value from pyiron_atomistics

Nope. I honestly have no idea.


New user module to receive *status messages as notices

implements long-standing feature request #328
This PR adds a new user module "statusnotice" that, when activated, makes *status send notices instead of privmsgs.

My use case was to make znc more transparent to users. Normally, znc is installed by an irc user, in which case a *status query seems appropriate. In this particular case, znc was installed by an admin as a way to add multi-client support to a private ircd. Ideally, znc would be invisible to connecting clients, but I settled for locking down the control interface and receiving znc messages as notices instead of privmsgs.
You don't seem overly enthusiastic about this PR. That's fine with me. I just thought I'd contribute the code, since this had been requested at some point (#328). I don't feel motivated to write a test case though, so I'll just close this PR. I'll leave the code up in case someone else is looking for this feature in the future.


Define separate environments for local, CI and Deployment

Once dagster is fully integrated into PUDL, we can develop different resource configurations for different environments.
Some examples:

Local testing (1 year of data, persist to disk or SQLite)
CI testing (all years of data, persist to internal Postgres / GCS)
Deployment (all years of data, persist to public Postgres / GCS)

This issue isn't very fleshed out and not super relevant anymore. I think we'll end up having preconfigured jobs for each that might be environment specific when we tackle https://github.com/catalyst-cooperative/pudl/issues/3161


train argument in MultipleOutputField.process needs to be removed?

Here https://github.com/harvardnlp/TextFlow/blob/0eb8552ae5b370f69e440bca6c6c226b1734c1ba/utils.py#L43
there is a train argument that is unused. So when running on the polyphonic music data, this causes an error:
File ".../TextFlow/main.py", line 43, in run_epoch
    for i, batch in enumerate(iter(ds)):
  File ".../torchtext/data/iterator.py", line 156, in __iter__
    yield Batch(minibatch, self.dataset, self.device)
  File ".../torchtext/data/batch.py", line 34, in __init__
    setattr(self, name, field.process(batch, device=device))
TypeError: process() missing 1 required positional argument: 'train'

because the process method of the Field class in torchtext only has arguments batch and device - c.f. https://github.com/pytorch/text/blob/f765e517d6cc456b876715f1cb9c843bec8b14ed/torchtext/data/field.py#L225
It runs without error when the train argument is removed.

This is a torchtext version issue. Please use the versions listed in the README if you want everything to run!

I see, I was indeed using the latest torchtext v0.4.0 as opposed to v0.2.3 used for this repository. If people want to use v0.4.0, I think the above is the only change that needs to be made.


IE 11"alert alert-warning" class icon is too big

When we are using the" alert alert-warning" class like this

    Es gibt noch eine weitere Bestellung in diesem Zeitbereich

the exclamation mark icon appears bigger in IE than in Firefox or Chrome. I think this is caused by using em in the stylesheet. I have temporarily fixed the issues by overwriting the css to use rem instead of em.
Firefox:

IE 11:

Cannot reproduce
on https://swiss.github.io/styleguide/en/widgets.html#03-widgets-01-alerts, warning alerts are displayed correctly with IE11
Issue will be closed

Cannot reproduce


Add brew installation instructions

I've created a homebrew formula for easier installation of eta on MacOS.
Please, review the formula too: https://github.com/cema-sp/homebrew-tap/blob/master/Formula/eta.rb

The formula looks good, I'll try it out and merge if it works.


add aria-hidden

Overview

PR Checklist

[ ] Related to designs:
[ ] Related to JIRA ticket: ABC-123
[ ] I have run this code to verify it works
[ ] This PR includes unit tests for the code change

🚀 Styleguide deploy preview ready!https://612f7bab854aeede84f3e47d--gamut-preview.netlify.appDeploy Logs


Removing b' from object column in dask dataframe

What happened: Reading parquet file NYC taxi dataset for object column IATA_CODE_Reporting_Airline results in b' which needs to be removed.
What you expected to happen: data read without b'
Minimal Complete Verifiable Example:
data = dd.read_parquet( 's3://airlines-2019/20yr_airline_parquet/*parquet', engine='pyarrow',
                               columns = [ 'Flight_Number_Reporting_Airline',
                                           'Year', 'Quarter', 'Month', 'DayOfWeek',
                                           'DOT_ID_Reporting_Airline', 'OriginCityMarketID', 'DestCityMarketID',
                                           'DepTime', 'DepDelay', 'DepDel15', 'ArrDel15',
                                           'AirTime', 'Distance', 'IATA_CODE_Reporting_Airline'])

data.dtypes
Flight_Number_Reporting_Airline    float32
Year                               float32
Quarter                            float32
Month                              float32
DayOfWeek                          float32
DOT_ID_Reporting_Airline           float32
OriginCityMarketID                 float32
DestCityMarketID                   float32
DepTime                            float32
DepDelay                           float32
DepDel15                             int32
ArrDel15                             int32
AirTime                            float32
Distance                           float32
IATA_CODE_Reporting_Airline         object
dtype: object

```
| Flight_Number_Reporting_Airline | Year | Quarter | Month | DayOfWeek | DOT_ID_Reporting_Airline | OriginCityMarketID | DestCityMarketID | DepTime | DepDelay | DepDel15 | ArrDel15 | AirTime | Distance | IATA_CODE_Reporting_Airline
-- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | --
5657.0 | 2019.0 | 1.0 | 1.0 | 5.0 | 20304.0 | 34236.0 | 32457.0 | 1353.0 | -7.0 | 0.0 | 0.0 | 37.0 | 190.0 | b'OO'
5658.0 | 2019.0 | 1.0 | 1.0 | 5.0 | 20304.0 | 31453.0 | 31834.0 | 930.0 | -5.0 | 0.0 | 0.0 | 76.0 | 438.0 | b'OO'
5658.0 | 2019.0 | 1.0 | 1.0 | 5.0 | 20304.0 | 34783.0 | 31453.0 | 637.0 | -6.0 | 0.0 | 0.0 | 88.0 | 513.0 | b'OO'
5659.0 | 2019.0 | 1.0 | 1.0 | 5.0 | 20304.0 | 32389.0 | 30325.0 | 1314.0 | -21.0 | 0.0 | 0.0 | 80.0 | 576.0 | b'OO'
5660.0 | 2019.0 | 1.0 | 1.0 | 5.0 | 20304.0 | 33342.0 | 30325.0 | 826.0 | -10.0 | 0.0 | 0.0 | 127.0 | 896.0 | b'OO'

**Environment**:

- Dask version: 2.30.0
- Python version: 3.7.9
- Operating System: Ubuntu 18.04.4 LTS
- Install method (conda, pip, source): conda

Is that indicating that the values are bytes? Or is it actually a string starting with the characters b'?

The dtype remains same as object. So I believe just a b' string attached in front of object column.

byte strings are still represented as object dtype in pandas. For example:
import pandas as pd

df = pd.DataFrame([b"str", b"wer"])
print(df.dtypes)
print(type(df[0][0]))
df[0].str.decode("utf8")

Parquet does store both bytes and (utf8) strings as distinct types. Is this an example data file from us? You might want to look at the parquet schema of the dataset using, pyarrow directly.

Closing due to lack of activity. @roarjn feel free to re-open if you'd like to continue


Using a parent-relative ("..") path for the interpeter fails to find exe

Environment data

VS Code version: 1.45.1
Extension version (available under the Extensions sidebar): 2020.5.80290
OS and version: Windows 7 Enterprise
Python version (& distribution if applicable, e.g. Anaconda): 3.7.0
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
Relevant/affected Python packages and their versions: n/a
Relevant/affected Python-related VS Code extensions and their versions: n/a
Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info #3977): Language Server
Value of the python.languageServer setting: Microsoft

Expected behaviour
{
  "python.pythonPath": "..\\.venv\\Scripts\\python.exe",
}

I expect this to be able to use a parent virtual environment as the editor's environment.  I also tried ${workspaceFolder}/../.venv.  I am trying to use the multi-root workspace feature with a full-stack app scaffold I work with for maintainability in my editor experience.
Setting pythonPath in the .code-workspace also seems to have no effect.
Actual behaviour
I receive generic extension crash modals and a re-prompt to select my python environment.  The crash was intermittent, but it always re-prompts for a python interpreter.
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
PowerShell MVP setup script:
#requires -Version 3
$PSDefaultParameterValues['Out-File:Encoding'] = 'utf8'

$root = "${PWD}\repro-example"

$niParams = @{
    Path     = "$root\src\server\.vscode", "$root\src\client"
    ItemType = 'Directory'
    Force    = $true
}
New-Item @niParams > $null

@'
{
  "folders": [
    {"path": "."},
    {"path": ".\\src\\server"},
    {"path": ".\\src\\client"}
  ]
}
'@ | Out-File -FilePath "$root\vscode.code-workspace"

@'
{
  "python.pythonPath": "..\\.venv\\Scripts\\python.exe",
  "python.jediEnabled": false,
}
'@ | Out-File -FilePath "$root\src\server\.vscode\settings.json"

'' | Out-File -FilePath "$root\src\server\__init__.py" -NoNewline

py.exe -3 -m venv "$root\.venv"

code.cmd "$root\vscode.code-workspace"

Logs

Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

Starting Microsoft Python language server.
> c:\Users\maximilian\repos\repro-example\src\.venv\Scripts\python.exe c:\Users\maximilian\.vscode\extensions\ms-python.python-2020.5.80290\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
> c:\Users\maximilian\repos\repro-example\src\.venv\Scripts\python.exe c:\Users\maximilian\.vscode\extensions\ms-python.python-2020.5.80290\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)"
Diagnostic Code: InvalidPythonInterpreterDiagnostic, Message: No Python interpreter is selected. You need to select a Python interpreter to enable features such as IntelliSense, linting, and debugging.

I think you may have set the incorrect path to python. It should be
"python.pythonPath": "..\\..\\.venv\\Scripts\\python.exe",

Also, if you've a common interpreter for all workspace folders, you could just set the workspace setting instead of workspace folder setting. Run the command Open workspace settings and set python.pythonPath there.

@karrtikr Is pythonPath meant to be relative to .vscode/settings.json or to the working folder that ${workspaceFolder} would refer to?  The logs indicate that it does find the python interpreter, but the extension is still reporting that an interpreter isn't selected.
Setting pythonPath in the workspace settings doesn't have any effect.  Does it need any additional configuration or action?  Looking at multi-root documentation, it looks like the only settings that can apply there are window-specific, not necessarily extension-specific.
But, I tried your suggestion of adding an extra parent reference ("..\..\") and it worked.  It wasn't clear that that path was relative to the settings.json file from the documentation.  It also didn't work when I used ${workspaceFolder}\\.. which is unintuitive.

it looks like the only settings that can apply there are window-specific, not necessarily extension-specific.

Nope that's not true. You can use any type of settings.

Setting pythonPath in the workspace settings doesn't have any effect.

I think you maybe setting the wrong location to pythonPath. Can you try using the absolute path in workspace settings and see if it works?

I think you maybe setting the wrong location to pythonPath. Can you try using the absolute path in workspace settings and see if it works?

Okay, this works but defeats the purpose of having a shared workspace for my team.  Using a relative path or using ${workspaceFolder} here doesn't work for the other roots.

Nope that's not true. You can use any type of settings.

https://code.visualstudio.com/docs/editor/multi-root-workspaces#_settings
"To avoid setting collisions, only resource (file, folder) settings are applied when using a multi-root workspace. Settings which affect the entire editor (for example, UI layout) are ignored."
This was my cause for confusion, but it looks like it's referring to the individual workspace settings.

Using a relative path or using ${workspaceFolder} here doesn't work for the other roots.

I am suspecting you may have entered the wrong relative interpreter path, what path did you enter?
The workspace settings are saved here $root\vscode.code-workspace, so maybe try entering the path relative to this file.
I realize docs may not be entirely clear. You can bring that up with https://github.com/microsoft/vscode-docs if you want to.

I am suspecting you may have entered the wrong relative interpreter path, what path did you enter?

The workspace settings are saved here $root\vscode.code-workspace, so maybe try entering the path relative to this file.

I've tried .\\.venv\\Scripts\\python.exe with and without the explicit CWD specifier (".\"), but I still get prompted to select an interpreter in the other roots.

Can you try using ..\\.venv\\Scripts\\python.exe?

It also didn't work when I used ${workspaceFolder}\.. which is unintuitive.

It should be ${workspaceFolder}\\..\\.. because ${workspaceFolder} is $root\src\server and interpreter location is $root\.venv.

. resolves to ${workspaceFolder} in case when you Open a folder, in case of multiroot workspaces, it resolves to path to .code workspace file.

It also didn't work when I used ${workspaceFolder}.. which is unintuitive.

It should be ${workspaceFolder}\\..\\.. because ${workspaceFolder} is $root\src\server and interpreter location is $root\.venv.

The unintuitive part to me is that ${workspaceFolder} resolves not to where .code-workspace is, but where the other root is (wherever that may be) when used inside the settings property of the code workspace.

The unintuitive part to me is that ${workspaceFolder} resolves not to where .code-workspace is

Why would you expect that? ${workspaceFolder} refers the workspace folder, not the workspace (the .code-workspace file).
Remember workspace folder & workspace are separate things.

Remember workspace folder & workspace are separate things.

See, that is confusing right there.  Is it possible for pythonPath to resolve respective to .code-workspace for a multi-root project?

See, that is confusing right there.

I see. Maybe I can help, what exactly is confusing there? Workspace is the .code-workspace file, and you can add workspace folders to that workspace. For instance, $root\src\server is the workspace folder in your case.

Is it possible for pythonPath to resolve respective to .code-workspace for a multi-root project?

If there's a . in pythonPath mentioned inside .code-workspace file settings section, it would resolve respective to .code-workspace. Quoting my understanding,

. resolves to ${workspaceFolder} in case when you Open a folder, in case of multiroot workspaces, it resolves to path to .code workspace file.

If there's a . in pythonPath mentioned inside .code-workspace file settings section, it would resolve respective to .code-workspace. Quoting my understanding,

. resolves to ${workspaceFolder} in case when you Open a folder, in case of multiroot workspaces, it resolves to path to .code workspace file.

Okay, here's where our miscommunication stems.  . does not resolve to the folder that .code-workspace is in, but the folder of wherever another root is.  So my server folder above is actually resolving it to $root\src\server\.vscode\

Okay, here's where our miscommunication stems. . does not resolve to the folder that .code-workspace is in, but the folder of wherever another root is.

My bad, you're right. I just tested it out.
If there's a . in pythonPath mentioned inside .code-workspace file settings section, each workspace folder resolves it differently. Short answer, having relative paths in .code-workspace doesn't work.
For your server folder, it should resolve to $root\src\server, not $root\src\server\.vscode\. Please double check.

The correct solution should be to resolve relative paths in .code-workspace files against the location of the workspace file.

For your server folder, it should resolve to $root\src\server, not $root\src\server.vscode. Please double check.

Yep, you're right.  I was missing a layer mentally.

The correct solution should be to resolve relative paths in .code-workspace files against the location of the workspace file.

Yes, thanks.

Feature request from VSCode: https://github.com/microsoft/vscode/issues/98424

Feature request from VSCode: https://github.com/microsoft/vscode/issues/98424

See, that is confusing right there.

Another upstream issue you may relate to https://github.com/microsoft/vscode/issues/77718
Please upvote these if you would like that.

Closing this issue are pythonPath setting is no longer shareable with this. https://github.com/microsoft/vscode-python/issues/12313


Parsing error in Code Editor for double-quoted DB-Objects' names

Hi,
DBeaver 6.1.5, Oracle, here.
When I click on the procedure icon (within the left-hand tree) to open for edit the following, legit, procedure within following package:
`
CREATE OR REPLACE PACKAGE BODY ODS."MF=MX_DP=fact=mis=etl" IS
PROCEDURE "STD=trnc=mv" IS
BEGIN
EXECUTE IMMEDIATE 'TRUNCATE TABLE "ODS"."MF=MX_DP=fact=mv" DROP STORAGE';
END;
END;
`
I get following error :
Dangling meta character '*' near index 12 PROCEDURE\s+*STD*=trnc=mv             ^ Dangling meta character '*' near index 12 PROCEDURE\s+*STD*=trnc=mv
The parser seems to not process the double-quote naming notation properly
(which is very useful for both profiting of code-generation and overcoming
ORACLE's silly 30-char limitation, btw)

if issue is still actual for you - feel free to reopen the ticket

Re-tested on Version <IP_ADDRESS>008302047
Problem still there.
To be precise, it happens when double-clicking in the left-hand tree on a Package's Procedure (ORACLE) which name
looks like  "*STD*=trnc=mv".
(see the stars ?)
I then get a pop-up saying:
Dangling meta character '*' near index 12
`PROCEDURE\s+*STD*=trnc=mv`


Switch to a non-static API

It would help our testing if there was a non-static API - it would allow mock instances of the RxFirebase* classes to be injected with Dagger while we are testing.

Hi @psh !
I don't think non-static API is good for such kind of helpers. IMO would just make is harder to consume.
To test your code you may mock firebase's DatabaseReference/DataSnapshot as I do for unit testing in this repo.


init() reset method

Initially forked the impress.js repo to create dependency for our
project. We could not init() consecutively without trouble; impress
would not setup the presentation correctly on the second init(). Likely
because roots is not flushed on init() and so remains the second time
with stale data. This change seems to fix it.

Hi @perrybutler, in an effort to clear up older issues/PRs we are pinging back to know if you are still tracking this request.
To give a little bit of context, recently a decision was made in the project to make the development more active and the first task is to clear up older PRs like this one to see if the OP is still interested in keep it going.

Closing due to the lack of feedback from the OP. If you want to work in the PR again, feel free to comment here to open up the discussion again

No problem, I think we worked around this anyway.


Particles from adding eye of ender to portal frame lose precision

From splitting #9
Bug tracker ticket: https://bugs.mojang.com/browse/MC-161969

Marked as In Progress on the bug tracker, so this github ticket may end up being unnecessary if fixed by Mojang.

Fixed in the latest pre in vanilla anyway


⚠ Bofrost.be has degraded performance

In 6f911c4, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 946 ms

Resolved: Bofrost.be performance has improved in a504e38 after 25 minutes.


[Node SDK] create new object for exec in RegExpRecognizer

Calling exec on a RegExp object returns null every second time for matches

which makes recognizer fail every second time if the RegExps are specified as literals
bot.recognizer(new RegExpRecognizer('...', {
  '*': /.../,
});

This prevents that by creating a new RegExp object every time for exec

@suyash,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by Microsoft. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

@Stevenic Actually this is expected behaviour of a global RegExp (/a/g), since in this example, @suyash is calling the regex on a single letter string ('a'), so first run, it finds the first index of 'a' and updates properties of the regular expression object, and second run it returns null because there is no second instance since the search (second run) was started from the lastIndex (aka where the first instance was found in positon 0). Thus the returned null on second run is expected when the input to the regex object is a single letter string.
To avoid this behavior, don't use a global regex as input to the RegExpRecognizer. We should update our docs to reflect that.
Source: MDN - RegExp.prototype.exec()

If the match succeeds, the exec() method returns an array and updates properties of the regular expression object. The returned array has the matched text as the first item, and then one item for each capturing parenthesis that matched containing the text that was captured.

If the match fails, the exec() method returns null.

See also:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/exec#Finding_successive_matches

If your regular expression uses the "g" flag, you can use the exec() method multiple times to find successive matches in the same string. When you do so, the search starts at the substring of str specified by the regular expression's lastIndex property (test() will also advance the lastIndex property).


Compile and publish race condition on components

📇 User story

As a developer, I want our publishing workflow not to fail, so that I can publish our components package easier when doing a release

✅ Definition of Done / Outcomes

[ ] A feedback check is implemented to see if the package exists on NPM
[ ] If the package does not exist, try again for at most 3 times
[ ] Optional: Separate the CDN upload from the publishing so we can run it manually

📜 Acceptance criteria

[ ] Once a release PR is merged, it compiles and publishes successfully to:

[ ] Web
[ ] React
[ ] Angular
[ ] Vue (coming soon)
[ ] SSR (coming soon)

[ ] CDN files we're linking to are available

[ ] https://cdn.design-system.alpha.canada.ca/<EMAIL_ADDRESS>[ ] https://cdn.design-system.alpha.canada.ca/<EMAIL_ADDRESS>[ ] https://cdn.design-system.alpha.canada.ca/<EMAIL_ADDRESS>[ ] https://cdn.design-system.alpha.canada.ca/<EMAIL_ADDRESS>[ ] https://cdn.design-system.alpha.canada.ca/<EMAIL_ADDRESS>[ ] https://cdn.design-system.alpha.canada.ca/<EMAIL_ADDRESS>

📝 More info
When releasing version v0.21.0 we encountered a race condition with the publishing workflow for the react and angular CDN because it was waiting for the packages to be available in NPM
When releasing version v0.22.0, we added sleep timers to all packages but the new package (vue) failed because it took more than 60 seconds.

Testing with my scratch account at the moment, here are the links for quick testing

[ ] https://cdn.ds.daine.app/<EMAIL_ADDRESS>[ ] https://cdn.ds.daine.app/<EMAIL_ADDRESS>[ ] https://cdn.ds.daine.app/<EMAIL_ADDRESS>[ ] https://cdn.ds.daine.app/<EMAIL_ADDRESS>[ ] https://cdn.ds.daine.app/<EMAIL_ADDRESS>[ ] https://cdn.ds.daine.app/<EMAIL_ADDRESS>


POM dissappears at close proximity when starting recording

my POM looks fine using shaders, also when I start my path using bauercam. But when I press F4 to record the POM suddenly disappears around me at close proximity, you can see here it's still there at the far end of the block, but not close to me

Ressource pack?
Shader pack?
Version of Minema, Forge and OptiFine?
Any other mods?

Resourcepack: Stratum 1K
Shader: Continuum 2.0.2
Mods:
Forge 1.12.2-<IP_ADDRESS>68
Minema 1.12.2
Bauercam 1.13 for 1.12.2
Optifine 1.12.2_HD_U_E3
Worldedit forge 1.12-6.1.8-dist

Alright, I will try to reproduce it. It's hard to find these logical bugs as nothing is crashing but maybe there is a fix or workaround.

thank you, if you need any more details or settings I am using don't hesitate to ask.

Looks fine to me:
https://youtu.be/wNc0UqhlMkM
Same version of Forge and OptiFine.
Continuum 2.0.2 with default settings
Minema v3.4.2 with default settings (you didn't specify which one you are using but v3.4.2 is the latest)
Stratum 1K is not public, so I used S&K Photo Realism 512 with a fitting POM pack (https://www.minecraftforum.net/forums/mapping-and-modding-java-edition/resource-packs/2690082-resource-pack-shader-support-parallax-pom-bump) for this test. It may make a difference since it's only a 512x512 pack? But I doubt it.
But what I did notice: POM cuts off at the near plane. But that is normal and happens regardless of recording.
Strange, I trust you, but something is going on on your side that's not there on my side.

What do you mean with POM cuts off at the near plane? Also I'm running just 3.4 so I'll update it and try to record a clip again

You can put this on resolved, it seems updating Minema has fixed my issue. Thank you for making me aware that I was running an outdated version. :)


Error generating code. Please contact support.

The docker image and containers are loading, after fixing some js to cjs file rename, however, I receive below error when uploading printscreen, video or code. I'm using Ollama, locally, with Llava and following variables:
screenshot-to-code\backend .env
OPENAI_BASE_URL=http://localhost:11434/v1
OPENAI_API_KEY=fake-key
screenshot-to-code\frontend .env
OPENAI_BASE_URL=http://localhost:11434/v1
OPENAI_API_KEY=fake-key
No Frontend error, but:
Page Error: Error generating code. Please contact support.
Backend Errors:
2024-12-24 15:53:33 INFO:     ('<IP_ADDRESS>', 53064) - "WebSocket /generate-code" [accepted]
2024-12-24 15:53:33 INFO:     connection open
2024-12-24 15:53:34 Traceback (most recent call last):
2024-12-24 15:53:34   File "/app/llm.py", line 128, in stream_claude_response
2024-12-24 15:53:34     async with client.messages.stream(
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/anthropic/lib/streaming/_messages.py", line 305, in aenter
2024-12-24 15:53:34     raw_stream = await self.__api_request
2024-12-24 15:53:34                  ^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/anthropic/_base_client.py", line 1838, in post
2024-12-24 15:53:34     return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)
2024-12-24 15:53:34            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/anthropic/_base_client.py", line 1532, in request
2024-12-24 15:53:34     return await self._request(
2024-12-24 15:53:34            ^^^^^^^^^^^^^^^^^^^^
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/anthropic/_base_client.py", line 1633, in _request
2024-12-24 15:53:34     raise self._make_status_error_from_response(err.response) from None
2024-12-24 15:53:34 anthropic.AuthenticationError: Error code: 401 - {'type': 'error', 'error': {'type': 'authentication_error', 'message': 'invalid x-api-key'}}
2024-12-24 15:53:34 Traceback (most recent call last):
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 66, in map_httpcore_exceptions
2024-12-24 15:53:34     yield
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 366, in handle_async_request
2024-12-24 15:53:34     resp = await self._pool.handle_async_request(req)
2024-12-24 15:53:34            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request
2024-12-24 15:53:34     raise exc from None
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request
2024-12-24 15:53:34     response = await connection.handle_async_request(
2024-12-24 15:53:34                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request
2024-12-24 15:53:34     raise exc
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request
2024-12-24 15:53:34     stream = await self._connect(request)
2024-12-24 15:53:34              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py", line 124, in _connect
2024-12-24 15:53:34     stream = await self._network_backend.connect_tcp(**kwargs)
2024-12-24 15:53:34              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp
2024-12-24 15:53:34     return await self._backend.connect_tcp(
2024-12-24 15:53:34            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp
2024-12-24 15:53:34     with map_exceptions(exc_map):
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/contextlib.py", line 158, in exit
2024-12-24 15:53:34     self.gen.throw(value)
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
2024-12-24 15:53:34     raise to_exc(exc) from exc
2024-12-24 15:53:34 httpcore.ConnectError: All connection attempts failed
2024-12-24 15:53:34
2024-12-24 15:53:34 The above exception was the direct cause of the following exception:
2024-12-24 15:53:34
2024-12-24 15:53:34 Traceback (most recent call last):
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/openai/_base_client.py", line 1576, in _request
2024-12-24 15:53:34     response = await self._client.send(
2024-12-24 15:53:34                ^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1617, in send
2024-12-24 15:53:34     response = await self._send_handling_auth(
2024-12-24 15:53:34                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1645, in _send_handling_auth
2024-12-24 15:53:34     response = await self._send_handling_redirects(
2024-12-24 15:53:34                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1682, in _send_handling_redirects
2024-12-24 15:53:34     response = await self._send_single_request(request)
2024-12-24 15:53:34                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1719, in _send_single_request
2024-12-24 15:53:34     response = await transport.handle_async_request(request)
2024-12-24 15:53:34                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 365, in handle_async_request
2024-12-24 15:53:34     with map_httpcore_exceptions():
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/contextlib.py", line 158, in exit
2024-12-24 15:53:34     self.gen.throw(value)
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 83, in map_httpcore_exceptions
2024-12-24 15:53:34     raise mapped_exc(message) from exc
2024-12-24 15:53:34 httpx.ConnectError: All connection attempts failed
2024-12-24 15:53:34
2024-12-24 15:53:34 The above exception was the direct cause of the following exception:
2024-12-24 15:53:34
2024-12-24 15:53:34 Traceback (most recent call last):
2024-12-24 15:53:34   File "/app/llm.py", line 62, in stream_openai_response
2024-12-24 15:53:34     stream = await client.chat.completions.create(**params)  # type: ignore
2024-12-24 15:53:34              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/openai/resources/chat/completions.py", line 1720, in create
2024-12-24 15:53:34     return await self._post(
2024-12-24 15:53:34            ^^^^^^^^^^^^^^^^^
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/openai/_base_client.py", line 1843, in post
2024-12-24 15:53:34     return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)
2024-12-24 15:53:34            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/openai/_base_client.py", line 1537, in request
2024-12-24 15:53:34     return await self._request(
2024-12-24 15:53:34            ^^^^^^^^^^^^^^^^^^^^
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/openai/_base_client.py", line 1600, in _request
2024-12-24 15:53:34     return await self._retry_request(
2024-12-24 15:53:34            ^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/openai/_base_client.py", line 1670, in _retry_request
2024-12-24 15:53:34     return await self._request(
2024-12-24 15:53:34            ^^^^^^^^^^^^^^^^^^^^
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/openai/_base_client.py", line 1600, in _request
2024-12-24 15:53:34     return await self._retry_request(
2024-12-24 15:53:34            ^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/openai/_base_client.py", line 1670, in _retry_request
2024-12-24 15:53:34     return await self._request(
2024-12-24 15:53:34            ^^^^^^^^^^^^^^^^^^^^
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/openai/_base_client.py", line 1610, in _request
2024-12-24 15:53:34     raise APIConnectionError(request=request) from err
2024-12-24 15:53:34 openai.APIConnectionError: Connection error.
2024-12-24 15:53:34 ERROR:    Exception in ASGI application
2024-12-24 15:53:34 Traceback (most recent call last):
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 250, in run_asgi
2024-12-24 15:53:34     result = await self.app(self.scope, self.asgi_receive, self.asgi_send)
2024-12-24 15:53:34              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in call
2024-12-24 15:53:34     return await self.app(scope, receive, send)
2024-12-24 15:53:34            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/fastapi/applications.py", line 1054, in call
2024-12-24 15:53:34     await super().call(scope, receive, send)
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/starlette/applications.py", line 113, in call
2024-12-24 15:53:34     await self.middleware_stack(scope, receive, send)
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/starlette/middleware/errors.py", line 152, in call
2024-12-24 15:53:34     await self.app(scope, receive, send)
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/starlette/middleware/cors.py", line 77, in call
2024-12-24 15:53:34     await self.app(scope, receive, send)
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/starlette/middleware/exceptions.py", line 62, in call
2024-12-24 15:53:34     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
2024-12-24 15:53:34     raise exc
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
2024-12-24 15:53:34     await app(scope, receive, sender)
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 715, in call
2024-12-24 15:53:34     await self.middleware_stack(scope, receive, send)
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 735, in app
2024-12-24 15:53:34     await route.handle(scope, receive, send)
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 362, in handle
2024-12-24 15:53:34     await self.app(scope, receive, send)
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 95, in app
2024-12-24 15:53:34     await wrap_app_handling_exceptions(app, session)(scope, receive, send)
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
2024-12-24 15:53:34     raise exc
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
2024-12-24 15:53:34     await app(scope, receive, sender)
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 93, in app
2024-12-24 15:53:34     await func(session)
2024-12-24 15:53:34   File "/usr/local/lib/python3.12/site-packages/fastapi/routing.py", line 383, in app
2024-12-24 15:53:34     await dependant.call(**solved_result.values)
2024-12-24 15:53:34   File "/app/routes/generate_code.py", line 335, in stream_code
2024-12-24 15:53:34     raise Exception("All generations failed")
2024-12-24 15:53:34 Exception: All generations failed
2024-12-24 15:53:34 INFO:     connection closed

The issue is in the logs:
anthropic.AuthenticationError: Error code: 401 - {'type': 'error', 'error': {'type': 'authentication_error', 'message': 'invalid x-api-key'}}


streaming_delta reports not connected while giving lag details

Replication is OK. One primary, one slave.
Here is what pg_stat_replication says:
# select pg_current_wal_lsn(), * from pg_stat_replication;
-[ RECORD 1 ]------+------------------------------
pg_current_wal_lsn | 52/4550B460
pid                | 125106
usesysid           | 18440
usename            | replicator
application_name   | walreceiver
client_addr        | <IP_ADDRESS>
client_hostname    |
client_port        | 34134
backend_start      | 2021-06-19 16:42:49.425495+02
backend_xmin       |
state              | streaming
sent_lsn           | 52/4550B460
write_lsn          | 52/4550B460
flush_lsn          | 52/4550B460
replay_lsn         | 52/4550B460
write_lag          | 00:00:00.000311
flush_lag          | 00:00:00.001427
replay_lag         | 00:00:00.001573
sync_priority      | 0
sync_state         | async
reply_time         | 2021-06-21 09:30:08.352629+02

And here is what check_pgactivity 2.5 says:
$ bin/check_pgactivity -s streaming_delta --dbservice yolo --slave '<IP_ADDRESS>' -w 300MB -c 500MB
POSTGRES_STREAMING_DELTA CRITICAL: <IP_ADDRESS> not connected | 'sent delta<EMAIL_ADDRESS>'wrote delta<EMAIL_ADDRESS>'flushed delta walreceiver@<IP_ADDRESS>'=0B;314572800;524288000 'replay delta walreceiver@<IP_ADDRESS>'=0B;314572800;524288000 'pid<EMAIL_ADDRESS>'# of excluded slaves'=0 '# of slaves'=1

The most surprising is that it says that the host is not connected while still giving PID, and lag deltas.

Hi @gleu,
This is because the --slave argument format must contain the standby name and its IP, as documented:
The provided values must be of the form "APPLICATION_NAME IP".

So I suspect the following command would work as expected:
$ bin/check_pgactivity -s streaming_delta --dbservice yolo --slave 'walreceiver <IP_ADDRESS>' -w 300MB -c 500MB

Sounds fair. Thanks.


AWS Transcribe API

Has there been a request to support AWS Transcribe API?
Sounds easy to implement. Would you accept a PR if I do?

Hi,
I'm waiting for the same for long days, That would be very helpful in comparison of  all the transcription platforms available.
Thanks


pagination page-query returns 1 total pages

Description
if I enter my graphql query into the graphql playground, it shows the correct amount of pages but when used on a page it's only showing up as one page is available.
Steps to reproduce
create a query that can be paginated, explore it on the graphql playground then add it to a page.
Expected result
depending on how many items, it should show more than 1 page for both the playground and a page.
Actual result
just shows totalpages as 1 on a page but correctly on the playground.
Environment
Paste the information here as shown by gridsome info
  System:
    OS: Linux 5.4 Ubuntu 20.04 LTS (Focal Fossa)
    CPU: (4) x64 Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
  Binaries:
    Node: 12.17.0 - /usr/bin/node
    Yarn: 1.22.4 - ~/.yarn/bin/yarn
    npm: 6.14.4 - /usr/bin/npm
  Browsers:
    Firefox: 76.0.1
  npmPackages:
    @gridsome/plugin-google-analytics: 0.1.1 => 0.1.1
    @gridsome/plugin-sitemap: 0.3.0 => 0.3.0
    @gridsome/source-filesystem: ^0.6.2 => 0.6.2
    @gridsome/transformer-remark: 0.6.0 => 0.6.0
    gridsome: 0.7.15 => 0.7.15
    gridsome-plugin-remark-prismjs-all: ^0.3.5 => 0.3.5
    gridsome-plugin-robots-txt: ^1.0.2 => 1.0.2

Hi @eman1986
could you please share your query?
Thanks!

query($page: Int) {
    posts: allPost(
        filter: { published: { eq: true } },
        sortBy: "date",
        order: DESC,
        perPage: 4,
        page: $page,
    ) @paginate {
        totalCount
        pageInfo {
            totalPages
            currentPage
        }
        edges {
            node {
                title
                date(format: "MMMM DD, YYYY")
                timeToRead
                description
                path
                tags {
                    id
                    title
                    path
                }
            }
        }
    }
}

This is happening to me too, it was working fine when I was on version 0.7.0 but then I updated to 0.7.15 and it broke. Literally I changed nothing and it returns totalPages with 1

Tested it shortly, and I can confirm, the bug exists if you're using 0.7.15.
With 0.7.14 it was working fine.
@hjvedvik - Any idea how to solve this?

@noxify I can take a look at this tomorrow.

Same bug here. If you go to a paginated route i.e, products/2, you get the correct totalPage count and the pagination works. Page 1 link on the Pager component doesn't correctly link to a paginated page though.

@stikoo I've noticed that myself

A new version (0.7.16) was just published and should fix this.

Hi @hjvedvik
thanks for the quick fix.
I have tested it shortly and can confirm that the bug is fixed.
@eman1986 - Please test and close the issue if your test were successful :)

I can confirm it's working now


Impossible to call built-in validators from method/function validators

I'm seeing the same behavior as in #191.
Built-in validators only have access to format functions when declared for that attribute, otherwise they don't have access to the context with the format functions and throw an error.

I incorrectly was using the npm backbone.validation package instead of the backbone-validation one, thus using an old version of the library


Add support for ABI encoded keccak256

Motivation
A utility to simplify code for developers hashing data to be used on-chain. Is equivalent to keccak25(abi.encode(...)) on-chain.
Solution
Abi encoding the arguments of a function before hashing them and calling .into() as a combinator on the [u8;32] we get back from the keccak256 function.
PR Checklist

[ +] Added Tests
[ +] Added Documentation
[ -] Breaking changes

Would like to close as unneeded - this is easy enough that one can do themselves, and we can tackle packed stuff separately


Add msg.topic to payload from Alarm triggered node

Hi, is possible to add msg.topic to payload from Alarm triggered node?
It can be useful for make log, which device triggered alarm.
Or is another way to give this information? Thank you for reply.

This might be related to #38?


[ConstPlugin]  use RestElement in ObjectPattern will got error

Bug report

What is the current behavior?
Module parse failed: Cannot read properties of undefined (reading 'type')
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
TypeError: Cannot read properties of undefined (reading 'type')
    at collectDeclaration (/Users/chenyulun390/learn/testwebpack/node_modules/webpack/lib/ConstPlugin.js:26:16)
    at getHoistedDeclarations (/Users/chenyulun390/learn/testwebpack/node_modules/webpack/lib/ConstPlugin.js:110:7)
    at /Users/chenyulun390/learn/testwebpack/node_modules/webpack/lib/ConstPlugin.js:196:25
    at Hook.eval [as call] (eval at create (/Users/chenyulun390/learn/testwebpack/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:7:16)
    at Hook.CALL_DELEGATE [as _call] (/Users/chenyulun390/learn/testwebpack/node_modules/tapable/lib/Hook.js:14:14)
    at JavascriptParser.walkIfStatement (/Users/chenyulun390/learn/testwebpack/node_modules/webpack/lib/javascript/JavascriptParser.js:1805:41)
    at JavascriptParser.walkStatement (/Users/chenyulun390/learn/testwebpack/node_modules/webpack/lib/javascript/JavascriptParser.js:1736:10)
    at JavascriptParser.walkStatements (/Users/chenyulun390/learn/testwebpack/node_modules/webpack/lib/javascript/JavascriptParser.js:1613:9)
    at JavascriptParser.parse (/Users/chenyulun390/learn/testwebpack/node_modules/webpack/lib/javascript/JavascriptParser.js:3593:9)
    at /Users/chenyulun390/learn/testwebpack/node_modules/webpack/lib/NormalModule.js:1092:26

webpack 5.82.0 compiled with 1 error in 98 ms

If the current behavior is a bug, please provide the steps to reproduce.
// index.js
var test = {
  a: 1,
  b: 2,
  c: 3
};
if (process.env.NODE_ENV === 'development') {
  var {
    a,
    ...other
  } = test;
  console.log('development:', other);
} else {
  var {
    b,
    ..._other, // error here
  } = test;
  console.log('production:', _other);
}

What is the expected behavior?

Do it need to add a non empty judgment here?
for (const property of node.properties) {
+ if(property.value) {
    stack.push(property.value);
+ }
}

Other relevant information:
webpack version:  5.82.0
Node.js version: v16.17.0
Operating System: macOS
Additional tools:

const test = {a:1, b:2, c: 3}
if (process.env.NODE_ENV === 'development') {
// if (true) {
  const {
    a,
    ...other
  } = test;
  console.log('development:', other);
} else {
  const {
    b,
    ...other
  } = test;
  console.log('production:', other);
}

I added @babel/plugin-transform-block-scoping to the Babel plugin, but did not add @babel/plugin-transform-spread,
Because<EMAIL_ADDRESS>does not support the following code
 for (let i = 0; i < 5; i++) {
         setTimeout(() => console.log(i), 1); // All returns here are 4
    }

Close in favor of https://github.com/webpack/webpack/issues/14800


is_closed() gives false positives for simple STLs

When I construct an STL with just two triangles, opposite of each other, is_closed() returns True although the surface is far from being closed.
solid test
facet normal -1 0 0
  outer loop
    vertex 0 0 0
    vertex 0 0 1
    vertex 0 0.5 0.5
  endloop
endfacet
facet normal 1 0 0
  outer loop
    vertex 0.1 0 0
    vertex 0.1 0.5 0.5
    vertex 0.1 0 1
  endloop
endfacet
endsolid test

This STL gives the following result:
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import stl
>>> mesh = stl.mesh.Mesh.from_file("test.stl")
>>> mesh.is_closed()
True

Version of numpy-stl: newest version according to PyPI

The is_closed() function uses very basic heuristics to test whether the mesh is likely to be closed:
https://github.com/WoLpH/numpy-stl/blob/cde945e662b7b7e314398abc47ca9de4f6fcba59/stl/base.py#L358
As you can imagine, this is a far cry from a proper detection method and is only a very basic sanity check. A proper detection method would be far more complicated to write and probably much slower :)
I'm open to pull requests for better algorithms though :)

The easiest way to check if a surface of triangles is closed would be to check if each edge is defined exactly twice in the STL file, i.e., each triangle has exactly one neighbour attached at each of its three edges. I will think about if and how such a check can be easily implemented.

I think this particular problem could be solved in linear time if the mesh is already stored in a face-vertex form. When I write face-vertex, I mean that there is a vertex array whose columns are the X,Y,Z positions and a face array of indices pointing to rows of the vertex array.
Suppose the mesh is in face-vertex (FV) form and that the faces are in an N-by-3 array.

Get a size (3*N)-by-2 array from columns [1,2] and [2,3] and [1,3] from the face array, concatenating them along the first dimension. These are the edges as indices pointing to rows of the vertex array.
Sort along the second dimension so that edge (2,1) becomes edge (1,2), i.e., a canonical form for the edges.
Convert the array to a list of tuples of length 2 so that edges are hashable.
Reduce using a collections.Counter and ensure that every entry has count 2.

There may be some clever way to do this purely with numpy, but I'm not a numpy expert by any stretch.
At any rate, I'm not familiar with numpy-stl yet, but if there is a facility for converting to face-vertex form, then the above could be implemented. If not, the face-vertex facility could be implemented with some clever array slicing and call to unique() (or a tolerance-based version of unique, if you want to close tiny holes along the way).

The newer version written by @jb-leger has been released :)

It's only a warning, but it would be nicer not to include it :)
Thanks for the heads up @JasperBoogers, the new release is online


lib/core: add Text::prefix and Text::suffix

I wanted a way to detect and possibly remove a prefix from a string but there was no straight-forward way.
So I propose one:
var str = "hello world"
var p = str.prefix("hello")
assert p != null and p.text_after == " world"
assert str.prefix("fail") == null

Same with suffix

Legitely legit code, :shipit:


want to use ctrl-w to move between the explorer and the code part

Use neovim's standard ctrl-w to move between neovim file explorers such as nvim-tree and neo-tree.
I want to move between explorers with ctrl-w in vscode-neovim, is there a way?
Or do you plan to support it?

From gitter:

I forget the command off the top of my head but there exists one in vscode that lets you navigate left/right views or panels, maybe workbench.action.navigateDown. You have two options. You can either bind something like c-hjkl to those commands, or you can copy the C-w vim bindings in the extension vscode-window-commands.vim and replace the command that it uses. Currently they just use focusBelowGroup.

Basically, you need to use vscode keybindings to support c-w from the explorer, and modify (using vscode or nvim keybindings) the c-w from nvim to move across views, not just windows.

add this to ~/.config/nvim/init.vim:
nnoremap <C-w>h <Cmd>call VSCodeNotify('workbench.action.navigateLeft')<CR>
xnoremap <C-w>h <Cmd>call VSCodeNotify('workbench.action.navigateLeft')<CR>


Remove Google's arbitrary style for menu, recover Windows native style

This is Windows:

This is Google on Windows:

Google won't fix this.

Could you clarify what you mean by "arbitrary"? Additionally, what specifically do you consider to be "Windows native style"?
For my curiosity, do you mind posting a source to your claim that Google won't change this?

You should obey the system's style guide.
Use Windows's default style, instead of implement your own.
Specification: https://msdn.microsoft.com/en-us/library/windows/desktop/dn742392.aspx
The source of Google won't change this: https://superuser.com/a/630510

@zcyzcy88 If you're looking for UI consistency, then Windows is not the operating system to go for, considering that Windows 10 UI alone has several different context menus.

My knowledge on this is limited, but I believe Chrome uses its own rendering engine for its UI. It also has a consistent UI across all of its desktop platforms. So changing the context menu style may not be trivial.

@Eloston Bad argument.

Chrome uses its own rendering engine for its UI.

Gecko (Firefox engine) also, but Gecko did it.

It also has a consistent UI across all of its desktop platforms.

False. Chrome obey the standard on Mac.

@zcyzcy88 What I mean is Aura, which is not the same thing as the web rendering engine Blink.
Apparently macOS doesn't use Aura, which is why the style is not the same there (source)

@zcyzcy88 Regarding your images, it's possible the context menu in the top image is from the title bar. The title bar might be rendered by Windows, not Chrome, so the style wouldn't be different.

I just want to pitch in to say that this might be out of scope for this project, whose goal is to remove Google's spyware from Chromium. If you want to mess with the UI design, you should maintain a separate patchset for that.
Just my two cents.

@Streetwalrus You are correct, but I would be fine with it if someone is able to continually maintain such patch and it doesn't interfere with main development (within reason). The motivations of this project describe the core changes I want in a Chromium browser, but I don't mind other changes if they don't deviate too far from how Chromium looks and behaves.

This issue should be closed.


Smart components requests tests

Changes

Added tests for smart-components/request files
Added react/jsx-equals-spacing` eslint rule
Fixed loading state in stage-list component
moved isExpanded function call from stage-list to parent component (reduced multiple function calls to one)

Codecov Report

Merging #76 into master will increase coverage by 11.33%.
The diff coverage is 92.85%.

@@             Coverage Diff             @@
##           master      #76       +/-   ##
===========================================
+ Coverage   72.05%   83.39%   +11.33%
===========================================
  Files          55       55
  Lines         544      536        -8
  Branches       56       55        -1
===========================================
+ Hits          392      447       +55
+ Misses        132       79       -53
+ Partials       20       10       -10

Impacted Files
Coverage Δ

...ntational-components/shared/loader-placeholders.js
90% <ø> (+15%)
:arrow_up:

...-components/workflow/add-stages/summary-content.js
100% <ø> (ø)
:arrow_up:

...-components/workflow/edit-workflow-stages-modal.js
91.3% <ø> (ø)
:arrow_up:

...rt-components/workflow/edit-workflow-info-modal.js
100% <ø> (ø)
:arrow_up:

...smart-components/workflow/remove-workflow-modal.js
100% <ø> (ø)
:arrow_up:

...omponents/workflow/add-stages/add-stages-wizard.js
100% <ø> (ø)
:arrow_up:

...rt-components/request/request-detail/stage-list.js
100% <100%> (+90%)
:arrow_up:

src/smart-components/workflow/workflows.js
100% <100%> (ø)
:arrow_up:

...c/smart-components/request/request-detail/stage.js
100% <100%> (+88.88%)
:arrow_up:

...omponents/request/request-detail/request-detail.js
83.33% <100%> (+64.28%)
:arrow_up:

... and 9 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e133183...43a7265. Read the comment docs.


ocamlPackages.pgocaml_ppx: init at 4.0

Motivation for this change
Required to update ocsigen-start.
cc #75766
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build ocamlPackages.pgocaml_ppx