[Feature request] Option to return json

It would be nice to return JSON (like LT HTTP server). It's frequent to not want a specific correction, some are even just suggestions.

Hi, thanks for the feature request!
Returning JSON doesn't make sense to me - I assume you mean returning a list of suggestions with start, end, replacements and message?
This is already implemented to some degree (copied from the Readme) in v0.1.9:
suggestions = rules.suggest_sentence("She was not been here since Monday.")
for s in suggestions:
  print(s.start, s.end, s.text)

# prints:
# 4 16 ['was not', 'has not been']

On master the message and source is parsed too:
suggestions = rules.suggest_sentence("She was not been here since Monday.")
for s in suggestions:
  print(s.start, s.end, s.text)

# prints:
# 4 16 ['was not', 'has not been'] WAS_BEEN.1 Did you mean was not or has not been?

This will be part of v0.2.0 which I'll release soon. Let me know if that's what you meant.

Hi, thanks for the feature request!
Returning JSON doesn't make sense to me - I assume you mean returning a list of suggestions with start, end, replacements and message?
This is already implemented to some degree (copied from the Readme) in v0.1.9:
suggestions = rules.suggest_sentence("She was not been here since Monday.")
for s in suggestions:
  print(s.start, s.end, s.text)

# prints:
# 4 16 ['was not', 'has not been']

On master the message and source is parsed too:
suggestions = rules.suggest_sentence("She was not been here since Monday.")
for s in suggestions:
  print(s.start, s.end, s.text)

# prints:
# 4 16 ['was not', 'has not been'] WAS_BEEN.1 Did you mean was not or has not been?

This will be part of v0.2.0 which I'll release soon. Let me know if that's what you meant.

Release 0.2.0 so the code in the sample above works now.

Release 0.2.0 so the code in the sample above works now.

Great, thanks!
I did really mean a json object return. My use case is to use nprule as a library to my own code, so I can inform the user about the correction, including information about type (like grammar, suggestions, wordiness, etc), examples of correct and incorrect use, and eventually links to rule justification. Just like LT Httpserver does. It could be used to implement a simple webapp, but also to integrate in other apps, like libreoffice or browser extensions.

Great, thanks!
I did really mean a json object return. My use case is to use nprule as a library to my own code, so I can inform the user about the correction, including information about type (like grammar, suggestions, wordiness, etc), examples of correct and incorrect use, and eventually links to rule justification. Just like LT Httpserver does. It could be used to implement a simple webapp, but also to integrate in other apps, like libreoffice or browser extensions.

Hi, I looked into setting __dict__ so it is easier to get all attributes as a dictionary but I'm not willing to add the extra complexity this would require (unless there's an easier way I'm missing).
Is there any reason something like this doesn't work for you:
import json

# ...

suggestions = rules.suggest_sentence("She was not been here since Monday.")

for s in suggestions:
    print(
        json.dumps(
            {
                "start": s.start,
                "end": s.end,
                "text": s.text,
                "source": s.source,
                "message": s.message,
            }
        )
    )

I believe that's good enough, unless you really care about never repeating yourself.

Hi, I looked into setting __dict__ so it is easier to get all attributes as a dictionary but I'm not willing to add the extra complexity this would require (unless there's an easier way I'm missing).
Is there any reason something like this doesn't work for you:
import json

# ...

suggestions = rules.suggest_sentence("She was not been here since Monday.")

for s in suggestions:
    print(
        json.dumps(
            {
                "start": s.start,
                "end": s.end,
                "text": s.text,
                "source": s.source,
                "message": s.message,
            }
        )
    )

I believe that's good enough, unless you really care about never repeating yourself.

but that wouldn't give me:
#1 Type of rule
#2 Examples
#3 Url of additional information on the rule
#4 help message coded on the rule
I  know nothing about rust, other than it's a cool name, but if it's OOP, then I would expect an object with all properties of a rule, and if that exists, then it would be rather easy to convert the rule to json and return that with the word, something like ruleO.serialize() ? Anyway, it was just a suggestion if you don't see the point, maybe someone else can contribute a pull request. Thanks.

but that wouldn't give me:
#1 Type of rule
#2 Examples
#3 Url of additional information on the rule
#4 help message coded on the rule
I  know nothing about rust, other than it's a cool name, but if it's OOP, then I would expect an object with all properties of a rule, and if that exists, then it would be rather easy to convert the rule to json and return that with the word, something like ruleO.serialize() ? Anyway, it was just a suggestion if you don't see the point, maybe someone else can contribute a pull request. Thanks.

Hi, sorry, I was thrown of a bit by the "JSON" then. So you want suggestions to contain more information about the match. That's a very valid issue and something I will work on. Point 4 you listed, "help message coded on the rule" actually already works in v0.2.0 via suggestion.message. I will add the rest.

Hi, sorry, I was thrown of a bit by the "JSON" then. So you want suggestions to contain more information about the match. That's a very valid issue and something I will work on. Point 4 you listed, "help message coded on the rule" actually already works in v0.2.0 via suggestion.message. I will add the rest.

Cool, thank you, I'll be looking forward to that.

Cool, thank you, I'll be looking forward to that.

Let's keep this issue open to remind me and thanks for bringing it up :)

Let's keep this issue open to remind me and thanks for bringing it up :)

Hi, I looked into setting __dict__ so it is easier to get all attributes as a dictionary but I'm not willing to add the extra complexity this would require (unless there's an easier way I'm missing).

I ran into this problem a while back, if you feel comfortable enabling slots, this could work (slots provide a speed and memory boost, but you can't assign attributes to instances unless the underlying class has that attribute in slots):
    def __iter__(self):
        for attr in itertools.chain.from_iterable(getattr(cls, '__slots__', []) for cls in self.__class__.__mro__):
            yield attr, getattr(self, attr)

It might work for __dict__ also if you change some stuff though. If you call dict(<instance of this class>), it'll return every attr/value pair in slots. If an instance doesn't have every slot attribute defined though, you'll need to add a try/except AttributeError around the yield though.

Hi, I looked into setting __dict__ so it is easier to get all attributes as a dictionary but I'm not willing to add the extra complexity this would require (unless there's an easier way I'm missing).

I ran into this problem a while back, if you feel comfortable enabling slots, this could work (slots provide a speed and memory boost, but you can't assign attributes to instances unless the underlying class has that attribute in slots):
    def __iter__(self):
        for attr in itertools.chain.from_iterable(getattr(cls, '__slots__', []) for cls in self.__class__.__mro__):
            yield attr, getattr(self, attr)

It might work for __dict__ also if you change some stuff though. If you call dict(<instance of this class>), it'll return every attr/value pair in slots. If an instance doesn't have every slot attribute defined though, you'll need to add a try/except AttributeError around the yield though.

Thanks! That looks interesting. The thing is that I always have to look at that in the context of PyO3 as the Python bindings are written in Rust as well so how to set __slots__ and __dict__ depends on how PyO3 handles them. I'll look a bit closer into __slots__.
I'd definitely like dict(suggestion) to work. It's "nice to have" but not necessary though so currently optimizing for speed has higher priority.

Thanks! That looks interesting. The thing is that I always have to look at that in the context of PyO3 as the Python bindings are written in Rust as well so how to set __slots__ and __dict__ depends on how PyO3 handles them. I'll look a bit closer into __slots__.
I'd definitely like dict(suggestion) to work. It's "nice to have" but not necessary though so currently optimizing for speed has higher priority.

Just finished implementing this. This is the API:
suggestion = rules.suggest_sentence("She was not been here since Monday.")[0]

# .rule(..) finds a rule by id
rule = rules.rule(suggestion.source)

print(rule.url, rule.short, rule.name, rule.category_id, rule.category_name, rule.category_type)

for example in rule.examples:
    print(example.text, example.suggestion)

A more detailed example is in the unit tests:
https://github.com/bminixhofer/nlprule/blob/a9b7f4039959ef30a6e1be503436d762d9672fa0/bindings/python/test.py#L54-L89
This will be part of release v0.3.0 which I'll release in a couple of days. NLPRule will also be roughly x4 faster for English and x2.5 faster for German with that Release :)

Just finished implementing this. This is the API:
suggestion = rules.suggest_sentence("She was not been here since Monday.")[0]

# .rule(..) finds a rule by id
rule = rules.rule(suggestion.source)

print(rule.url, rule.short, rule.name, rule.category_id, rule.category_name, rule.category_type)

for example in rule.examples:
    print(example.text, example.suggestion)

A more detailed example is in the unit tests:
https://github.com/bminixhofer/nlprule/blob/a9b7f4039959ef30a6e1be503436d762d9672fa0/bindings/python/test.py#L54-L89
This will be part of release v0.3.0 which I'll release in a couple of days. NLPRule will also be roughly x4 faster for English and x2.5 faster for German with that Release :)

Thanks! The speed boosts and additional functionality look super fun :)

Thanks! The speed boosts and additional functionality look super fun :)

I just released v0.3.0 so the code above works now. I'll close this issue for now, let me know if I forgot anything in the API.

I just released v0.3.0 so the code above works now. I'll close this issue for now, let me know if I forgot anything in the API.


Debug.Assert doesn't work in Unity

Debug.Assert doesn't actually do anything because the required compiler flags don't exist.
Need a way to have those present in the Editor and Developer builds.

Returning to the original issue, System.Diagnostics.Debug.Assert(...) doesn't seem to work in Unity, so any uses in anvil-csharp-core fail to log messages, throw exceptions, or halt execution when triggered. I think the screenshot above was using UnityEngine.Debug.Assert(...).
It's impossible to find information about this online - the solution is always "just use Unity's Debug.Assert", or Google assumes that's what you're looking up in the first place. The only option for non-Unity code appears to be explicitly throwing an exception when an if-check fails.

I haven't looked into this in any depth (https://docs.microsoft.com/en-us/dotnet/csharp/roslyn-sdk/source-generators-overview). I know ECS/DOTS is heavily using source generators to make things behind the scenes.
What would be awesome for Anvil is to have a way to write (all names etc TBD)
AnvilDebug.Assert(condition, $"Message with {context} variables {inline}")
Super quick and simple to write out.
The source generator picks that up and extracts it to:
AnvilAssert1(context1, context2);

#if DEBUG
[Conditional("DEBUG")] //This flag is based on the type of Assert "Debug.Assert vs Trace.Assert or whatever we invent"
private void AnvilAssert1(var context1, var context2)
{
        if (!condition)
        {
                return;
        }
        throw new Exception($"Message with {context1} and {context2});
}
#endif

You'd get the ease of use as a dev to write quick safety checks.
When running in a build without the flag, the callsite and implementation are stripped so no perf hit.
When running in editor or build with the flag we still get the safety but no perf hit with allocating strings that are never used.

See this post. Seems like we just need to set up a TraceListener?
https://forum.unity.com/threads/assert-in-unity3d.44513/#post-1860374
This is worth exploring before going down the path of source generation.

Oh yeah! I forgot about those too. We extended one in a console project last year. That might work really well. Good catch @mbaker3

On System.Diagnostics.Debug.Assert(...) failure, should the listener throw an exception or just Debug.LogError(...)? I think the former is what I'd expect and allows catching the exception, but the latter doesn't halt execultion.

In my opinion I think it should throw an exception. If an Assert gets triggered, something bad happened and you can't really trust the state of the entire app after that so we should halt and the dev fixes it.
OR in the rare case where an error could happen that is ok, then the dev can wrap in a try/catch and deal with it gracefully.
Debug.LogError in my mind feels more like a way to easily color-code the log in Unity.

We should probably just match whatever UnityEngine.Debug.Assert() does. Maybe even pass the error along to that method?
If that's not a good idea then I'm in the exception camp. Maybe there's an Assertion specific exception we can throw.

Annoyingly, UnityEngine.Debug.Assert(...) seems to simply log an error, no thrown exceptions.
UnityEngine.Assertions.Assert.IsTrue(...) does however.
Either way I agree that it should throw an exception, and will keep it doing so directly.


Add support for kerberos authentication

Very happy to contribute to open source

Add support for kerberos authentication
Upgraded pulsar-client to 2.10.3
Added pulsar-client-auth-sasl dependency to support kerberos authentication
#29

 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.刘佳乐 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


on:click not working on mobile devices.

Describe the bug
In my website, I have multiple buttons that do not execute its command on mobile. I have tested on multiple web browsers on desktop and mobile and it only seems to be a problem on mobile. In my package-lock.json file, it lists my svelte version as 3.48.0. I could also see this problem as a build error. I am building my svelte project to regular html and using hostinger to publish the website. Also a note for my demo attached, some of the buttons are wrapped in  tags making them links. Those buttons work fine, some examples of buttons not doing as intended include the watch trailer button and the hamburger menu.
Reproduction
https://radiumengine.com
Logs
No response
System Info
System:
    OS: Windows 10 10.0.22000
    CPU: (8) x64 Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz
    Memory: 974.32 MB / 7.78 GB
  Binaries:
    Node: 18.4.0 - C:\Program Files\nodejs\node.EXE
    npm: 8.12.1 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22000.120.0), Chromium (103.0.1264.49)
    Internet Explorer: 11.0.22000.120
  npmPackages:
    @sveltejs/adapter-auto: next => 1.0.0-next.52
    @sveltejs/adapter-static: ^1.0.0-next.34 => 1.0.0-next.34
    @sveltejs/kit: next => 1.0.0-next.355
    svelte: ^3.44.0 => 3.48.0

Severity
serious, but I can work around it
Additional Information
No response

After updating my whole project and switching over to vite the result is still the same.

I will try to get a reproduction up and running in the next day. Sorry for the wait I am pretty busy.


Error in travis when downgrading conda from 4.4.10 to 4.3

The error is:
PS1="$PS1" $_CONDA_EXE shell.posix reactivate
usage: conda [-h] [-V] command ...
conda: error: argument command: invalid choice: u'/home/travis/miniconda/bin/conda' (choose from u'info', u'help', u'list', u'search', u'create', u'install', u'update', u'upgrade', u'remove', u'uninstall', u'config', u'clean', u'package')

It seems to be related to this issue (conda >= 4.4):
https://github.com/direnv/direnv/issues/326

OK, did you try to remove versions or do you want me to try (It will perhaps be more easy for me to modify) ?

I prefer that you try because I do not know where the problem lie.
Tks

Ok, I first try on StatisKit, then merge in OpenAlea

Here is the issue concerning windows scripts https://github.com/conda/conda/issues/6553.
The issue is closed, but the problem not resolved.
Nevertheless, as mentioned, if all conda install are replaced by conda.exe instal, its working.
Oddly enough, it seems that you don't need to replace conda build by conda.exe build.

Travis CI seems to work but I need to finish with AppVeyor CI before pushing modifications to OpenAlea

Everything should be fine now. One can uncomment lines with CONDA_PIN, CONDA_BUILD_PIN and ANACONDA_CLIENT_PIN to revert to previous versions or to force new versions

While I have set CONDA=2, my package is built with python3.
See: https://travis-ci.org/openalea/core/jobs/347360455

I can't reproduce this behavior with any of my packages and the PYTHON_VERSION is correctly set.
I think it is due to the fact that python is missing in the build dependencies of your package.
For any package that needs python features, I always set python as build and run dependencies.


Open Source install and configure

Hi Team,
We are planning to install the Opensource Repositories supported by IBM. There are couple of question related to the IBM Open-Source Repositories only: we are concentrating only on the IBM Open-Source Repositories only:

How can we take the backup and what needs to be backed up once the IBM open-Source Repositories has been installed?

In case if we need to revert back to the previous version, how do we revert back?

For example, the current version is X.X.0.1 we have upgraded the version to X.X.0.2. unfortunately, we get into some issues, and we need to revert back to the X.X.0.1 version.
Regards,
Praveen.

Hi,
Can anyone assist us on the above queries?
Regards,
Praveen.

1. How can we take the backup and what needs to be backed up once the IBM open-Source Repositories has been installed?

For the most part, packages are only installed under /QOpenSys/pkgs so backing that up gets you 99% of everything. There's also some stuff in /QOpenSys/var and /QOpenSys/etc, but you would need to look at individual packages and what they are using.

2. In case if we need to revert back to the previous version, how do we revert back?

There is a mechanism to revert to an older package using yum downgrade, however we typically only keep the latest versions of packages on the repository to save space. If you want to have consistent downgrades, you'll need to keep local copies of the repo, eg. with the ACS clone repo tool

Classification: Confidential
Hi,
Is there any possibility that we can individually select the repository which we need to backup.
Regards,
Praveen.
From: Korinne Adler @.>
Sent: Monday, June 17, 2024 9:03 PM
To: IBM/ibmi-oss-issues @.>
Cc: Praveen Hb @.>; Author @.>
Subject: Re: [IBM/ibmi-oss-issues] Open Source install and configure (Issue #58)
[CAUTION: This Email is from outside the Organization. Unless you trust the sender, Don't click links or open attachments as it may be a Phishing email, which can steal your Information and compromise your Computer.]

How can we take the backup and what needs to be backed up once the IBM open-Source Repositories has been installed?

For the most part, packages are only installed under /QOpenSys/pkgs so backing that up gets you 99% of everything. There's also some stuff in /QOpenSys/var and /QOpenSys/etc, but you would need to look at individual packages and what they are using.

In case if we need to revert back to the previous version, how do we revert back?

There is a mechanism to revert to an older package using yum downgrade, however we typically only keep the latest versions of packages on the repository to save space. If you want to have consistent downgrades, you'll need to keep local copies of the repo, eg. with the ACS clone repo toolhttps://ibmi-oss-docs.readthedocs.io/en/latest/acscloner/README.html

Reply to this email directly, view it on GitHubhttps://github.com/IBM/ibmi-oss-issues/issues/58#issuecomment-2173725972, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BJIJGKGK5UY4DCLLALHYNQLZH36TFAVCNFSM6AAAAABJNW7WCKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZTG4ZDKOJXGI.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>::DISCLAIMER::

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.

I don't know what you mean by backing up a repository. If you're talking about the clone tool, that works on individual repositories so you already have a means to pick which repos you want. Do you mean something else?

Classification: Confidential
Hi Team,
When we tried to clone the repository, we got the below error message:
@.***
@.***
@.***
Can you please check and advice on how to proceed further.
Regards,
Praveen.
From: Korinne Adler @.>
Sent: Monday, June 17, 2024 9:03 PM
To: IBM/ibmi-oss-issues @.>
Cc: Praveen Hb @.>; Author @.>
Subject: Re: [IBM/ibmi-oss-issues] Open Source install and configure (Issue #58)
[CAUTION: This Email is from outside the Organization. Unless you trust the sender, Don't click links or open attachments as it may be a Phishing email, which can steal your Information and compromise your Computer.]

How can we take the backup and what needs to be backed up once the IBM open-Source Repositories has been installed?

For the most part, packages are only installed under /QOpenSys/pkgs so backing that up gets you 99% of everything. There's also some stuff in /QOpenSys/var and /QOpenSys/etc, but you would need to look at individual packages and what they are using.

In case if we need to revert back to the previous version, how do we revert back?

There is a mechanism to revert to an older package using yum downgrade, however we typically only keep the latest versions of packages on the repository to save space. If you want to have consistent downgrades, you'll need to keep local copies of the repo, eg. with the ACS clone repo toolhttps://ibmi-oss-docs.readthedocs.io/en/latest/acscloner/README.html

Reply to this email directly, view it on GitHubhttps://github.com/IBM/ibmi-oss-issues/issues/58#issuecomment-2173725972, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BJIJGKGK5UY4DCLLALHYNQLZH36TFAVCNFSM6AAAAABJNW7WCKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZTG4ZDKOJXGI.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>::DISCLAIMER::

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.

Classification: Confidential
Hi Team,
When we tried to clone the repository, we got the below error message:
@.***
@.***
@.***
Can you please check and advice on how to proceed further.
Regards,
Praveen.
From: Korinne Adler @.>
Sent: Tuesday, June 18, 2024 6:18 PM
To: IBM/ibmi-oss-issues @.>
Cc: Praveen Hb @.>; Author @.>
Subject: Re: [IBM/ibmi-oss-issues] Open Source install and configure (Issue #58)
[CAUTION: This Email is from outside the Organization. Unless you trust the sender, Don't click links or open attachments as it may be a Phishing email, which can steal your Information and compromise your Computer.]
I don't know what you mean by backing up a repository. If you're talking about the clone tool, that works on individual repositories so you already have a means to pick which repos you want. Do you mean something else?

Reply to this email directly, view it on GitHubhttps://github.com/IBM/ibmi-oss-issues/issues/58#issuecomment-2176020831, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BJIJGKHE7W5OYNGGBLJ3T23ZIAUBVAVCNFSM6AAAAABJNW7WCKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZWGAZDAOBTGE.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>::DISCLAIMER::

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.

Sorry @praveenhb-hcl but I don't see any error messages in your response. Maybe your email server is stripping it out? Can you please post it using the web interface? (the email reply also adds a bunch of extra clunky, email-y noise as it is)

Hi Team,
I have uploaded the files now.
Regards,
Praveen.

Classification: Confidential
Hi Team,
I have replied in the web interface.
Regards,
Praveen.
From: Korinne Adler @.>
Sent: Friday, June 21, 2024 8:19 PM
To: IBM/ibmi-oss-issues @.>
Cc: Praveen Hb @.>; Mention @.>
Subject: Re: [IBM/ibmi-oss-issues] Open Source install and configure (Issue #58)
[CAUTION: This Email is from outside the Organization. Unless you trust the sender, Don't click links or open attachments as it may be a Phishing email, which can steal your Information and compromise your Computer.]
Sorry @praveenhb-hclhttps://github.com/praveenhb-hcl but I don't see any error messages in your response. Maybe your email server is stripping it out? Can you please post it using the web interface? (the email reply also adds a bunch of extra clunky, email-y noise as it is)

Reply to this email directly, view it on GitHubhttps://github.com/IBM/ibmi-oss-issues/issues/58#issuecomment-2182900135, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BJIJGKCFXN5MOA5IWDW5GITZIQ4O7AVCNFSM6AAAAABJNW7WCKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBSHEYDAMJTGU.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>::DISCLAIMER::

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.

I have replied in the web interface.

Thanks, I saw that already.

Not exactly sure what the problem is, but is there a reason you are using the old repo? FYI that repo is no longer updated and you should use the repo-base-7.3.
As to the issue, unless @ThePrez has any quick ideas, you may need to contact IBM support since that is part of ACS and not under our control here.

Classification: Confidential
Hi Korinne Adler,
Thank you very much for the response.
However, I have couple of queries for the below 3 OSS:
OSS:

coreutils
filesystem-dummy
Pip3

For coreutils, I did find in the IBM link below, but its not showing in out ACS - Open source package.
https://www.ibm.com/support/pages/aix-toolbox-open-source-software-downloads-alpha
However, could you please also let us know where can we find the downloads software package for the below:
Filesystem-dummy
Pip3
Regards,
Praveen.
From: Korinne Adler @.>
Sent: Friday, June 21, 2024 10:15 PM
To: IBM/ibmi-oss-issues @.>
Cc: Praveen Hb @.>; Mention @.>
Subject: Re: [IBM/ibmi-oss-issues] Open Source install and configure (Issue #58)
[CAUTION: This Email is from outside the Organization. Unless you trust the sender, Don't click links or open attachments as it may be a Phishing email, which can steal your Information and compromise your Computer.]
Not exactly sure what the problem is, but is there a reason you are using the old repo? FYI that repo is no longer updated and you should use the repo-base-7.3.
As to the issue, unless @ThePrezhttps://github.com/ThePrez has any quick ideas, you may need to contact IBM support since that is part of ACS and not under our control here.

Reply to this email directly, view it on GitHubhttps://github.com/IBM/ibmi-oss-issues/issues/58#issuecomment-2183092322, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BJIJGKD2SIPC2D5UT2BWKH3ZIRKARAVCNFSM6AAAAABJNW7WCKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBTGA4TEMZSGI.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>::DISCLAIMER::

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.

For coreutils, I did find in the IBM link below, but its not showing in out ACS - Open source package.
https://www.ibm.com/support/pages/aix-toolbox-open-source-software-downloads-alpha

That package has nothing to do with ours. You should not attempt to run AIX software on IBM i.

However, could you please also let us know where can we find the downloads software package for the below:

What do you mean? The software is installed via ACS or yum. You should not need to download it manually at all.

Hi Kadler,
Thank you very much for the response.
However, I have attached the screenshot for your reference where you are able to see the OSS which is available in IBM website.
Can you please guide us on how to download the "coreutils" as this is not available in our ACS repository.
Regards,
Praveen.

The second screenshot you provided is for the AIX Toolbox, which is not applicable to IBM i and PASE. If you have questions about that, you need to talk to the AIX team. IBM is a large company with a lot of different offerings, just because it is available on the IBM website doesn't mean it's applicable to this product.
As to how to get GNU coreutils on IBM i, that is available as the "coreutils-gnu" package. Package names for IBM i can and many times are different than the AIX package names.

Classification: Confidential
Hi Team,
I have a question:
For example, we have installed Python OSS from the Opensource package available and its been started using it. Considering this, do you know what will would be the resource utilization for the jobs associated with it and how can we measure the utilization on the associated jobs and where can we check for the jobs associated with it and what would be the jobs names?
Regards,
Praveen.
From: Korinne Adler @.>
Sent: Tuesday, June 25, 2024 7:48 PM
To: IBM/ibmi-oss-issues @.>
Cc: Praveen Hb @.>; Mention @.>
Subject: Re: [IBM/ibmi-oss-issues] Open Source install and configure (Issue #58)
[CAUTION: This Email is from outside the Organization. Unless you trust the sender, Don't click links or open attachments as it may be a Phishing email, which can steal your Information and compromise your Computer.]
The second screenshot you provided is for the AIX Toolbox, which is not applicable to IBM i and PASE. If you have questions about that, you need to talk to the AIX team. IBM is a large company with a lot of different offerings, just because it is available on the IBM website doesn't mean it's applicable to this product.
As to how to get GNU coreutils on IBM i, that is available as the "coreutils-gnu" package. Package names for IBM i can and many times are different than the AIX package names.

Reply to this email directly, view it on GitHubhttps://github.com/IBM/ibmi-oss-issues/issues/58#issuecomment-2189090433, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BJIJGKE7PYPKDZJ7HBATRW3ZJF3Y5AVCNFSM6AAAAABJNW7WCKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBZGA4TANBTGM.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>::DISCLAIMER::

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.

Resource utilization will vary based on what you do with it. Finding the job name is not particularly easy at the moment. If you are using bash shell you can use the getjobid builtin to determine the shell's job name. The job name for your python job will be similar to that and in the same subsystem.

Classification: Confidential
Hi,
Once the OSS is installed and  If we need to monitor something to keep it running for example if these would require some jobs, etc to keep running? What would be the requirement?
Regards,
Praveen.
From: Korinne Adler @.>
Sent: Friday, June 28, 2024 1:44 AM
To: IBM/ibmi-oss-issues @.>
Cc: Praveen Hb @.>; Mention @.>
Subject: Re: [IBM/ibmi-oss-issues] Open Source install and configure (Issue #58)
[CAUTION: This Email is from outside the Organization. Unless you trust the sender, Don't click links or open attachments as it may be a Phishing email, which can steal your Information and compromise your Computer.]
Resource utilization will vary based on what you do with it. Finding the job name is not particularly easy at the moment. If you are using bash shell you can use the getjobid builtin to determine the shell's job name. The job name for your python job will be similar to that and in the same subsystem.

Reply to this email directly, view it on GitHubhttps://github.com/IBM/ibmi-oss-issues/issues/58#issuecomment-2195593976, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BJIJGKHK6IE7MFXAO6C27BDZJRW67AVCNFSM6AAAAABJNW7WCKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJVGU4TGOJXGY.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>::DISCLAIMER::

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.

That is too vague a question to answer. If you have specific followup questions, those would be better asked in our Ryver community: https://ibmi-oss-docs.readthedocs.io/en/latest/README.html#collaboration

Classification: Confidential
Hi Team,
I have skipped couple of email from the past and replying to one of the email.
I have got few question. We have installed the below OSS in one of our LPAR:
OSS
Ansible
bash
bzip2
ca-certificates
charset-aliases
chsh
coreutils
curl
db
db2util
dos2unix
file
file-magic
filesystem-dummy
findutils
gawk
git
grep-gnu
gzip
ibmi-repos.noarch
iconv-gnu (core)
joe
jq
less
man-db
mc
nano
openssl
pigz
Pip3
python3
python39
python3-ibm_db
python3-itoolkit
rpm
sed-gnu
tar-gnu
tree
unixODBC
update-alternatives
vim
wget
yum
zip
However, we need to know if there are any updates in the installed packages or any bug fix or any kind of major fixes, then, how can we come to know on this?
Regards,
Praveen.
From: Korinne Adler @.>
Sent: Friday, June 21, 2024 8:19 PM
To: IBM/ibmi-oss-issues @.>
Cc: Praveen Hb @.>; Mention @.>
Subject: Re: [IBM/ibmi-oss-issues] Open Source install and configure (Issue #58)
[CAUTION: This Email is from outside the Organization. Unless you trust the sender, Don't click links or open attachments as it may be a Phishing email, which can steal your Information and compromise your Computer.]
Sorry @praveenhb-hclhttps://github.com/praveenhb-hcl but I don't see any error messages in your response. Maybe your email server is stripping it out? Can you please post it using the web interface? (the email reply also adds a bunch of extra clunky, email-y noise as it is)

Reply to this email directly, view it on GitHubhttps://github.com/IBM/ibmi-oss-issues/issues/58#issuecomment-2182900135, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BJIJGKCFXN5MOA5IWDW5GITZIQ4O7AVCNFSM6AAAAABJNW7WCKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBSHEYDAMJTGU.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>::DISCLAIMER::

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.

Classification: Confidential
Hi Team,
I have got few question. We have installed the below OSS in one of our LPAR:
OSS
Ansible
bash
bzip2
ca-certificates
charset-aliases
chsh
coreutils
curl
db
db2util
dos2unix
file
file-magic
filesystem-dummy
findutils
gawk
git
grep-gnu
gzip
ibmi-repos.noarch
iconv-gnu (core)
joe
jq
less
man-db
mc
nano
openssl
pigz
Pip3
python3
python39
python3-ibm_db
python3-itoolkit
rpm
sed-gnu
tar-gnu
tree
unixODBC
update-alternatives
vim
wget
yum
zip
However, we need to know if there are any updates in the installed packages or any bug fix or any kind of major fixes, then, how can we come to know on this?
Regards,
Praveen.
::DISCLAIMER::

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.

You can view available updates through the Updates tab in the ACS Open Source Package Manager GUI or by running yum list updates.
If you have further questions please ask in our community channels or open a new issue.


Crash during initialization

Hello,
While I'm trying to run my app I keep getting "unfortunately [app_name] has stopped" message.
It crashes while trying to execute the following line:
function onDeviceReady() {
cordova.plugins.CipherlabRS30CordovaPlugin.initialise(some_func);
}
My environment:

App builder: phonegap build
Phonegap config.xml reference: <gap:plugin name="cordova-plugin-cipherlab-rs30" source="npm"/>
Model number: CipherLab RS30
Android version: 4.4.2
Kernel version: 3.4.67
Build number: ALPS.KK1.MP1.V2.38
Custom build version MER5320

Might be relevant: It use to work fine on another device with a slightly different build number. I also noticed that the ReaderConfig app Is also different.
Please advise,
Thanks in advance,
Meni

Hi There,
Please post the application output, it might provide a clue.
Also, do you have the RS30_ReaderSample app from CipherLab? I didn't look at the ReaderConfig app but if it has changed then it's likely that the other sample has changed too.
I have linked MainActivity.java from the ReaderSample I based the plugin off. You should compare the two to see what has changed.

Thank you for your response.
I'll try to get hold on the logs and let you know.
Meni

@mribbons  Hi, I've encountered the same issue
This is the first time me using this plugin so unaware if any previous versions were workable.
As soon as I call initialise() the app crashes.
App builder: cordova build
Model number: CipherLab RS30
Android version: 4.4.2
If you need anymore details, please let me know I'm happy to help debug any issue :+1:
cipherlaberrorlog.txt

Hi @web-slinger ,
Thanks for the info. I will review in further detail, but it looks like the plugin code isn't being reached (No debug output or related exceptions from the plugin).
Could you kindly post MainActivity.java from RS30_ReaderSample provided by Cipherlab?
Also exactly what version of phonegap are you using?
It would be great if you could post a sample app.

Hi @mribbons I used the Echo function just fine to check the plugin is functioning.
I believe I can get more info through a CatLog report but I can't save the recorded logs.
I'll have a look for this MainActivity.java later on.
Apologies I'm not using phonegap, I'm running this on Cordova android 4.1.1, with Cordova 5.1 CLI. I'll post an example app if that's needed.

Hi @web-slinger, The full logcat output is essential.
Cordova 5.1 should be OK, also you say that Echo works so that's a good start.

@mribbons Here's a better logcat it shows the plugin initialises correctly but then fails on receiving the broadcast intent as some class not found errors.
cipherlaberrorlog2.txt

Sorry but I can't see any ClassNotFound exceptions.
Also the output should contain a few lines starting with
V/CipherlabRS30Plugin

Actually your issue does sound similar to this: ttps://github.com/mribbons/cordova-plugin-cipherlab-rs30/issues/1
I am not 100% sure how @eurosystem2000 resolved it,
But could you try changing plugins\cordova-plugin-cipherlab-rs30\plugin.xml to the attachment and let me know if that helps.
https://gist.github.com/mribbons/893935f94431b7a92d54#file-plugin-xml

Hi @web-slinger,
I noticed you forked the repo and seem to be making some progress.
Would you mind testing this repo again?
I would like to collaborate with you on further functionality, like exposing configuration options and getting back the barcode type - I hope you are interested.

Hi @mribbons,
Yes, I noticed the ClassNotFound Exception was to do with the out of date CipherLabAPI and my keyboard emulation didn't have true/false states only None/InputMethod/KeyEvent.
This repo now works :+1:
The scanning works great for me, getting the barcode type would be a necessity for my use. You can see I forced to show the barcode format then split the data with : to get the format. Which seems a wrong way of doing it. I'd prefer to get the barcode type as an integer in the result as below.
int iCodeType = intent.getIntExtra(GeneralString.BcReaderCodeType, 0);
Then add in the barcode type from that, I'll help out with this repo for sure! I have some documentation with the barcode type and their respective integers.
https://github.com/web-slinger/cordova-plugin-cipherlab-rs30/blob/master/www/CipherlabRS30CordovaPlugin.js

Great, thanks @web-slinger
I have set up a couple of issues to cover these requirements.
https://github.com/mribbons/cordova-plugin-cipherlab-rs30/issues/4
https://github.com/mribbons/cordova-plugin-cipherlab-rs30/issues/5
Just a note on recompiling:
I noticed that you were committing to the plugin repo each time you made a code change.
That makes the commit history a little messy. What you can do is work in a local directory. This way you don't need to commit code to get the changes. You do still have to readd the plugin with each change you make though. eg:
cordova plugin remove cordova-plugin-cipherlab-rs30
cordova plugin add ~/code/cordovoa-cipherlab-rs30

It's a bit of a hassle but it keeps the commits clean and it's faster than pushing to github.


Preset includes with UNC paths not working with VSCode >=1.78.1

Brief Issue Summary
Beginning with version 1.78.1 VSCode starts to restrict the access to UNC paths on Windows. At work, we have some CMake presets that we share accross projects in the whole department. They are available on a network drive and accessed via UNC paths, e.g.:
{
  "version": 4,
  "include": ["//somedrive/artifacts/.../Presets.json"],
  ...
}

After the latest VSCode update I noticed that this failed with the following error message:
[presetController] Included presets file \\somedrive\artifacts\...\Presets.json cannot be found

Since it is a security feature of VSCode, I suppose you cannot prevent this from happening. But maybe you can check if an include uses UNC paths and then provide some information in the error message on what the problem is and how users can fix it, so others don't have to invest too much time in fixing it.
CMake Tools Diagnostics
{
  "os": "win32",
  "vscodeVersion": "1.78.1",
  "cmtVersion": "1.14.31",
  "configurations": [
    {
      "folder": "z:\\ente132_OpcPubSub_main_sdv",
      "cmakeVersion": "3.25.3",
      "configured": false,
      "generator": "",
      "usesPresets": true,
      "compilers": {}
    }
  ],
  "cpptoolsIntegration": {
    "isReady": true,
    "hasCodeModel": false,
    "activeBuildType": "",
    "buildTypesSeen": [],
    "requests": [],
    "responses": [],
    "partialMatches": [],
    "targetCount": 0,
    "executablesCount": 0,
    "librariesCount": 0,
    "targets": []
  },
  "settings": [
    {
      "communicationMode": "automatic",
      "useCMakePresets": "auto",
      "configureOnOpen": null
    }
  ]
}

Debug Log
No response
Additional Information
No response

@petwu Thanks for the suggestion!
Would a new error message like "[presetController] Included presets file \somedrive\artifacts...\Presets.json cannot be found. We detected that this appears to be a UNC path, which may be restricted by VSCode", be sufficient?


websocket-example doesn't work when I change protocol from http to https and web socket from ws to wss at port 7070

Javalin app = Javalin.create(config -> {
			config.registerPlugin( new SslPlugin(conf -> {
				conf.keystoreFromPath(location, password);
				conf.insecure = false;
				conf.host = host;
				conf.securePort = port;
			}));
			config.staticFiles.add("/public", Location.CLASSPATH);
			config.router.mount(router -> {
				router.ws("/chat", ws -> {

The html page and javascript file are stored under public folder.
error:
Failed to load resource: the server responded with a status of 404 ()Understand this errorAI
websocketDemo.js:5 WebSocket connection to 'wss://localhost:7070/chat' failed:
(anonymous) @ websocketDemo.js:5Understand this errorAI
style.css:1
   Failed to load resource: the server responded with a status of 404 ()

it works when using ws and http.

@zugazagoitia do you have working example on how to use ssl with websockets?

@zugazagoitia do you have working example on how to use ssl with websockets?

I do not, but it should just work as is according to jetty docs...
May it be a problem with our path matching? We could add a WS test in the SSL plugin module.


Assign a Contact/Company to a Group instead of a person

Is there a way whereas I can assign either a Contact or Company to a Group instead of a Person?
The use case is to setup teams of People to manage one or more Company or Contact entries within the system.
+1 if the Person login details can be used to set the default Group assignments for the Contact or Company.

Hello @dealproc We have this enhancement in our internal issue tracker(Bug 37114). We will fix it in  next releases.

Fantastic.  Is there a scheduled release to keep an eye out for?  Will begin some development into the base product in anticipation of this feature.

You can follow the latest news on our website.


Binance transaction fee in BNB bug

I believe there might be an issue when paying fees using BNB. Asset quantity that's persisted into the database doesn't match whats in the exchange wallet so there's a tiny amount of the asset left after a sell action.

When a first order is placed the bot divides the investment amount by the current rate you're buying it for. That quantity is sent to the exchange as the quantity of tokens you want to buy. Exchanges like Binance that use a maximum lot size (e.g. you cannot buy 3.91 of a token, only 3.9) then adjust that quantity as needed. However, when checking the buy order to see if it is filled Mynt always uses the quantity that was actually put on order, so the actual amount you're getting is always used. This is stored within Mynt and the exact same amount is used on the sell order. Therefore what you buy should always match what you sell.
I can't quite place my finger on why this is happening for you. Do you happen to have some referral users? Perhaps these referrals are giving you minimal amounts of those coins outside of Mynt? Another option could be that you bought those same coins when not using BNB for fees which always leaves a bit of dust?
If you check your open orders on the exchange and look at the buy/sell orders that Mynt has placed you should be able to tell if the amount bought matches the amount sold. I'd love to see a sample if this was not the case so I could diagnose further.


Layout control using either custom_css or st.container(s)

I'm just starting to use Streamlit, and st_aggrid was a fantastic find.
I was wondering if there's a way to control the layout of the Grids - I.e. to place the Grid next to another object, or in a locked position on the screen?
Streamlit has the st.container, st.empty, and st.column objects used for layout control, but I don't find a way to place a Grid inside one of these containers (usually this is done by creating column objects with something like col1, col2 = st.columns(2), and replacing st.write() with col2.write())
If not, can custom_css be used to control placement? I tried a number of different iterations, but couldn't find any that worked.
Thanks!

Ah. Thanks to Stack
with st.container():
    st.write("This is inside the container")
    AgGrid(df, height=200)
    st.bar_chart(np.random.randn(50, 3))


unwrap optional so that 2.3 swift compile xCode8

This is for people who would like to do a Swift Syntax conversion for Swift 2.3  NOT 3.0
it would be nice to have this released so that users not ready to migrate to Swift 3 yet can
pod 'Font-Awesome-Swift', 'x.x.x'
and easily migrate

Hello Kevin,
thanks for the pull request. I am planning to have a master branch with swift 3 version. I created swift-2.3 branch. Can you create pull request once again but to swift-2.3 branch?
Thanks

Done! Will close this one 👯  thanks!


Update on ARM templates from Labs - updated ARM templates to use the latest ARM schema.

Module: 01 to Mod 08
Lab/Demo: 00
Fixes # updated ARM templates to use the latest ARM schema.
Changes proposed in this pull request:

updated ARM templates to use the latest ARM schema.

Update:

Added Bicep files to simplify template deployments. These files include a readme file per Lab to avoid confusion.
Updated the labeling format per lab to identify Modules and Labs easier
Fixed typos in the 'Instructions' file of Module07-Unit05


Any syntax (including correct syntax) throws incorrect syntax error

Running current version of mkdocs, installed yesterday. Using superfences, and added the declaration so it loads.
Nothing at all shows up if I use mermaid version 10.0.2. If I swap to ANY OTHER VERSION (tried 8.7.0, 8.8.0, and 10.2.4) I get a syntax error, despite trying the code in the online editor with success. I even tried to use the example diagram right off this github readme and it still errors. Any ideas?

Thanks. Possibly a configuration problem?
Make sure you have the latest version of mkdocs-mermaid2 (use pip install --upgrade).
You would need to give at least the relevant info from the config file (mkdocs.yaml), and the relevant part from the markdown page, plus the error messages and any other info that could give an idea.

Mermaid is fully up to date
Relevant config lines look like the following
plugins:
  - search
  - mermaid2:
      version: 10.2.4
      arguments:
        theme: default
        securityLevel: 'loose'

markdown_extensions:
  - attr_list
  #- pymdownx.highlight:
   #   anchor_linenums: true
  - pymdownx.superfences:
       custom_fences:
        - name: mermaid
          class: mermaid
          format: !!python/name:mermaid2.fence_mermaid_custom
  #- pymdownx.inlinehilite
  #- pymdownx.keys
  - pymdownx.tasklist:
      custom_checkbox: true
  #- pymdownx.tabbed:
   #   alternate_style: true
  - admonition

markdown page

```mermaid
graph LR
    hello --> world
    world --> again
    again --> hello
```

The only error message I am getting is the generic "Syntax error in text" bomb message, no errors in console.

I do not see anything  strange.

What are the versions of Python, mkdocs, mkdocs-macros?
Have you tried to remove all arguments of mermaid2 in the config file, to see what happens?

Python 3.10.6, mkdocs 1.4.3, macros 1.0.2
Yes, I started out without any arguments because I have a tendency to get something working and then mess with it to my liking, but it not working brought me to those arguments just to see. I have removed them just now and nothing different occurred.
I cannot use mkdocs serve because I am currently running a live multi-site apache install and this is going into a little side project.
Here is the mkdocs build output if that helps at all (note, I replaced some stuff in the output with [redacted]
DEBUG    -  Loading configuration file: /var/www/[redacted]/mkdocs.yml
DEBUG    -  Loaded theme configuration for 'cinder' from
            '/home/ubuntu/.local/lib/python3.10/site-packages/cinder/mkdocs_theme.yml': {'cinder_theme': True,
            'static_templates': ['404.html'], 'include_search_page': False, 'search_index_only': False, 'shortcuts':
            {'help': 191, 'next': 78, 'previous': 80, 'search': 83}}
DEBUG    -  Config value 'config_file_path' = '/var/www/[redacted]/mkdocs.yml'
DEBUG    -  Config value 'site_name' = '[redacted] Family Archive'
DEBUG    -  Config value 'nav' = [{'About': 'about.md'}, {'Member Areas': '/members/'}, {'Current Events/Announcements':
            'announcements.md'}, {'Contact': 'contact.md'}]
DEBUG    -  Config value 'pages' = None
DEBUG    -  Config value 'site_url' = 'https://[redacted]/'
DEBUG    -  Config value 'site_description' = '[redacted] Family Archive!'
DEBUG    -  Config value 'site_author' = 'THENATHE'
DEBUG    -  Config value 'theme' = Theme(name='cinder', dirs=['/home/ubuntu/.local/lib/python3.10/site-packages/cinder',
            '/home/ubuntu/.local/lib/python3.10/site-packages/mkdocs/templates'], static_templates=['404.html',
            'sitemap.xml'], name='cinder', locale=Locale('en'), cinder_theme=True, include_search_page=False,
            search_index_only=False, shortcuts={'help': 191, 'next': 78, 'previous': 80, 'search': 83},
            highlightjs=True, colorscheme='dracula', hljs_languages=['yaml', 'bash', 'shell', 'javascript',
            'typescript', 'php', 'xml', 'css', 'scss', 'python', 'cs', 'markdown'])
DEBUG    -  Config value 'docs_dir' = '/var/www/[redacted]/docs'
DEBUG    -  Config value 'site_dir' = '/var/www/[redacted]/site'
DEBUG    -  Config value 'copyright' = None
DEBUG    -  Config value 'google_analytics' = None
DEBUG    -  Config value 'dev_addr' = _IpAddressValue(host='<IP_ADDRESS>', port=8000)
DEBUG    -  Config value 'use_directory_urls' = True
DEBUG    -  Config value 'repo_url' = None
DEBUG    -  Config value 'repo_name' = None
DEBUG    -  Config value 'edit_uri_template' = None
DEBUG    -  Config value 'edit_uri' = None
DEBUG    -  Config value 'extra_css' = ['css/custom.css']
DEBUG    -  Config value 'extra_javascript' = ['js/emoji++.js']
DEBUG    -  Config value 'extra_templates' = []
DEBUG    -  Config value 'markdown_extensions' = ['toc', 'tables', 'fenced_code', 'attr_list', 'pymdownx.superfences',
            'pymdownx.tasklist', 'admonition']
DEBUG    -  Config value 'mdx_configs' = {'pymdownx.superfences': {'custom_fences': [{'name': 'mermaid', 'class':
            'mermaid', 'format': functools.partial(<function fence_mermaid at 0xffffa80e11b0>, custom=True)}]},
            'pymdownx.tasklist': {'custom_checkbox': True}}
DEBUG    -  Config value 'strict' = False
DEBUG    -  Config value 'remote_branch' = 'gh-pages'
DEBUG    -  Config value 'remote_name' = 'origin'
DEBUG    -  Config value 'extra' = {'analytics': {'provider': 'google', 'property': 'G-XXXXXXXXXX'}}
DEBUG    -  Config value 'plugins' = {'search': <mkdocs.contrib.search.SearchPlugin object at 0xffffa7f6f670>,
            'mermaid2': <mermaid2.plugin.MarkdownMermaidPlugin object at 0xffffa7f6f910>, 'macros':
            <mkdocs_macros.plugin.MacrosPlugin object at 0xffffa531b040>}
DEBUG    -  Config value 'hooks' = {}
DEBUG    -  Config value 'watch' = []
DEBUG    -  Running 3 `config` events
INFO     -  MERMAID2  - Initialization arguments: {'theme': 'default', 'securityLevel': 'loose'}
INFO     -  MERMAID2  - Using javascript library (10.2.4):
<EMAIL_ADDRESS>INFO     -  [macros] - Macros arguments: {'module_name': 'main', 'modules': [], 'render_by_default': True,
            'include_dir': '', 'include_yaml': [], 'j2_block_start_string': '', 'j2_block_end_string': '',
            'j2_variable_start_string': '', 'j2_variable_end_string': '', 'on_undefined': 'keep', 'on_error_fail':
            False, 'verbose': False}
DEBUG    -  [macros] - Project dir '/var/www/[redacted]'
DEBUG    -  [macros] - Variables: ['extra', 'config', 'environment', 'plugin', 'git', 'analytics']
INFO     -  [macros] - Extra variables (config file): ['analytics']
DEBUG    -  [macros] - Content of extra variables (config file): {'analytics': {'provider': 'google',
            'property': 'G-XXXXXXXXXX'}}
INFO     -  [macros] - Extra filters (module): ['pretty']
DEBUG    -  [macros] - Docs directory: /var/www/[redacted]/docs
DEBUG    -  [macros] - Includes directory: /var/www/[redacted]/docs
DEBUG    -  [macros] - Undefined behavior: <class 'jinja2.runtime.DebugUndefined'>
DEBUG    -  Running 1 `pre_build` events
INFO     -  Cleaning site directory
INFO     -  Building documentation to directory: /var/www/[redacted]/site
DEBUG    -  Looking for translations for locale 'en'
DEBUG    -  No translations found here:
            '/home/ubuntu/.local/lib/python3.10/site-packages/mkdocs/contrib/search/templates/locales'
DEBUG    -  No translations found here: '/home/ubuntu/.local/lib/python3.10/site-packages/mkdocs/templates/locales'
DEBUG    -  No translations found here: '/home/ubuntu/.local/lib/python3.10/site-packages/cinder/locales'
INFO     -  The following pages exist in the docs directory, but are not included in the "nav" configuration:
              - index.md
              - members/index.md
WARNING  -  A relative path to 'about.md' is included in the 'nav' configuration, which is not found in the
            documentation files
DEBUG    -  An absolute path to '/members/' is included in the 'nav' configuration, which presumably points to an
            external resource.
WARNING  -  A relative path to 'announcements.md' is included in the 'nav' configuration, which is not found in the
            documentation files
DEBUG    -  Running 1 `nav` events
DEBUG    -  Reading markdown pages.
DEBUG    -  Reading: index.md
DEBUG    -  Running 1 `page_markdown` events
DEBUG    -  Reading: contact.md
DEBUG    -  Running 1 `page_markdown` events
DEBUG    -  Reading: members/index.md
DEBUG    -  Running 1 `page_markdown` events
DEBUG    -  Copying static assets.
DEBUG    -  Copying media file: 'snow.php'
DEBUG    -  Copying media file: 'audio/Grandpa Ted Part 1.flac'
DEBUG    -  Copying media file: 'audio/Grandpa Ted Part 2.flac'
DEBUG    -  Copying media file: 'css/ProductSans-Regular.woff'
DEBUG    -  Copying media file: 'css/custom.css'
DEBUG    -  Copying media file: 'img/computer.svg'
DEBUG    -  Copying media file: 'img/favicon.ico'
DEBUG    -  Copying media file: 'img/logo.svg'
DEBUG    -  Copying media file: 'img/party-blob.gif'
DEBUG    -  Copying media file: 'js/discordwidget.html'
DEBUG    -  Copying media file: 'js/emoji++.js'
DEBUG    -  Copying media file: 'css/base.css'
DEBUG    -  Copying media file: 'css/base.min.css'
DEBUG    -  Copying media file: 'css/bootstrap-custom.css'
DEBUG    -  Copying media file: 'css/bootstrap-custom.min.css'
DEBUG    -  Copying media file: 'css/cinder.css'
DEBUG    -  Copying media file: 'css/cinder.min.css'
DEBUG    -  Copying media file: 'css/highlight.css'
DEBUG    -  Copying media file: 'css/highlight.min.css'
DEBUG    -  Copying media file: 'fonts/fontawesome-webfont.eot'
DEBUG    -  Copying media file: 'fonts/fontawesome-webfont.svg'
DEBUG    -  Copying media file: 'fonts/fontawesome-webfont.ttf'
DEBUG    -  Copying media file: 'fonts/fontawesome-webfont.woff'
DEBUG    -  Copying media file: 'img/grid1.png'
DEBUG    -  Copying media file: 'img/grid10.png'
DEBUG    -  Copying media file: 'img/grid11.png'
DEBUG    -  Copying media file: 'img/grid12.png'
DEBUG    -  Copying media file: 'img/grid13.png'
DEBUG    -  Copying media file: 'img/grid14.png'
DEBUG    -  Copying media file: 'img/grid15.png'
DEBUG    -  Copying media file: 'img/grid16.png'
DEBUG    -  Copying media file: 'img/grid17.png'
DEBUG    -  Copying media file: 'img/grid18.png'
DEBUG    -  Copying media file: 'img/grid19.png'
DEBUG    -  Copying media file: 'img/grid2.png'
DEBUG    -  Copying media file: 'img/grid20.png'
DEBUG    -  Copying media file: 'img/grid3.png'
DEBUG    -  Copying media file: 'img/grid4.png'
DEBUG    -  Copying media file: 'img/grid5.png'
DEBUG    -  Copying media file: 'img/grid6.png'
DEBUG    -  Copying media file: 'img/grid7.png'
DEBUG    -  Copying media file: 'img/grid8.png'
DEBUG    -  Copying media file: 'img/grid9.png'
DEBUG    -  Copying media file: 'js/base.js'
DEBUG    -  Copying media file: 'js/bootstrap-3.0.3.min.js'
DEBUG    -  Copying media file: 'js/highlight.pack.js'
DEBUG    -  Copying media file: 'search/lunr.js'
DEBUG    -  Copying media file: 'search/main.js'
DEBUG    -  Copying media file: 'search/worker.js'
DEBUG    -  Building theme template: 404.html
DEBUG    -  Building theme template: sitemap.xml
DEBUG    -  Gzipping template: sitemap.xml
DEBUG    -  Building markdown pages.
DEBUG    -  Building page index.md
DEBUG    -  Running 1 `page_context` events
DEBUG    -  Running 1 `post_page` events
DEBUG    -  Building page contact.md
DEBUG    -  Running 1 `page_context` events
DEBUG    -  Running 1 `post_page` events
DEBUG    -  Building page members/index.md
DEBUG    -  Running 1 `page_context` events
DEBUG    -  Running 1 `post_page` events
INFO     -  MERMAID2  - Found superfences config: {'custom_fences': [{'name': 'mermaid', 'class': 'mermaid', 'format':
            functools.partial(<function fence_mermaid at 0xffffa80e11b0>, custom=True)}]}
INFO     -  MERMAID2  - Found 'fence_mermaid_custom' function: activate custom loader for superfences
INFO     -  MERMAID2  - Custom loader activated
INFO     -  MERMAID2  - Page '[redacted] Family Member Index': found 2 diagrams, adding scripts
INFO     -  MERMAID2  - Adding call to script for version10.2.4.
DEBUG    -  Running 2 `post_build` events
INFO     -  Documentation built in 0.69 seconds

It is bizarre, because I tested the same diagram on 10.2.4 and 10.1.1, and it works. 🤔
In the repository, I updated the /test/medium test case. Can you run it on your installation, and tell me what happpens on the page called "second"?

Looks like it is failing because of lack of material theme, as it worked with the example 'medium' you gave me, and I changed just the theme to cinder and it began failing again. I also tried using mkdocs without a theme and it still failing. Material-theme isn't a requirement, is it?

That's an interesting question 🤔.  My own doc declares that the plugin is compatible with the default, material and windmill themes. I haven't tested recently though.
If there was something wrong, I would have a look at the handling of fences.

I can confirm that on my machine it worked with only the material theme. I did not try windmill, but it is breaking because of cinder theme and default theme, but all other settings unchanged it works on the material theme.
I would love if you could get this working, I plan on using it to make a family tree that is updatable 😄 Let me know if you would like me to do any additional testing

Thanks for you help offer! If you test the simple test case, which uses the default template, you will see that it works out of the box.
It seems that the Superfences extension is needed (and works) for the Material theme only.
Can you check that you can make it work with loose?

@THENATHE Thanks for you help offer!
Now I got it straight.
The Superfences extension is needed only if you want syntax highlighting.
If you test the simple test case, which uses the default template, you will see that it works out of the box. It will also work if you set the theme to Material.
If you really want to use the Superfences extension, there are two custom_fences function:

fence_mermaid in the general case
fence_mermaid_custom for Material

Here is the why of your issue: You were using the Material fence function (custom) for the default themes. Hence the issue.
Solution: remove the _custom suffix, or remove altogether the Superfences extensions, if you don't want any syntax highlighting.

Apologies that it took so long for me to get back to you on this, but your solution does indeed work on the cinder theme. Thank you very much for your help!

I encountered a strange issue where the default fence_mermaid_custom in Material 9.4.3 theme is not working. I can only make it work by modifying it to fence_mermaid.

I encountered a strange issue where the default fence_mermaid_custom in Material 9.4.3 theme is not working. I can only make it work by modifying it to fence_mermaid.

Just in case this helps to someone else. I hit this same problem with my version of material which was quite outdated 7.3.3
Upgrading to these two versions worked for me:
mkdocs-material==9.5.25
mkdocs-material-extensions==1.3.1


documentation css change of last day or so breaks layouts and navigation.

The CSS for the documentation at http://keras.io appears to have changed in the last day or two, breaking display and navigation.
To reproduce:  visit e.g., http://keras.io/models/, note formatting of the examples, note the formatting of the navigation
(Issue present in Chrome and Safari; presumably others)

Right. It seems we had a botched doc update earlier today. It's fixed now. Thanks for spotting!


docs: add domain model of workspace management

What type of PR is this?
/kind feature
What this PR does / why we need it:
add domain model of workspace management.
Which issue(s) this PR fixes:

Fixes #617
Special notes for your reviewer:
The package registry is used to workspace config deserialization.

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 increased (+0.02%) to 75.885%

Totals

Change from base Build<PHONE_NUMBER>:
0.02%

Covered Lines:
6992

Relevant Lines:
9214

💛  - Coveralls

This pr get closed, upgrade is https://github.com/KusionStack/kusion/pull/639


Spotify wrong songs dl

I've got a list with songs from a singer for example songs from a new album:

https://open.spotify.com/track/7eSBwAdfW12By9KdL8ArvW
https://open.spotify.com/track/76SOEvtl5ouCbtxI7pOZnN
https://open.spotify.com/track/5M9I6XtHDH7z2tetf9vYFH
https://open.spotify.com/track/4PfTqzKt27FXbGHVKqJH7U
https://open.spotify.com/track/6m1jWmZPpxbtBcg3e1dTPt
https://open.spotify.com/track/7j21wx0CZsBcEB4s5pN1Bh
https://open.spotify.com/track/2hsYk4i7kq7BNxEKFTEhYa
https://open.spotify.com/track/0okOg5WzE7SiVIUFr5iKWJ
https://open.spotify.com/track/4h2qr1NNLxgYcLzZa2R244
https://open.spotify.com/track/7LGvnCZ2Iq8RbBS6VFBFAb
https://open.spotify.com/track/65h286cCCc83xJU4SdLqvc
https://open.spotify.com/track/7vWaBL92U9Ufq4vvOdHAwk
https://open.spotify.com/track/2xJ5izomXnGeQLkrqT1EX8
https://open.spotify.com/track/3rGvnte4I2VcVQMuyi4ZXn

after typing "list", it downloading me the totally wrong songs, in VLC Player, the tags like title or albumname are right, but as the wrong filename says, it is a totally other song from her.
Seems as if it is beeing downloaded through youtube, because console says:
"ERROR: zmlVGFOkjfU: YouTube said: Unfortunately, this video is not available in your country because it could contain music from UMG......."

yes, you're right it downloads the songs from youtube
the problem is no other website is reliable enough to download songs from and decrypting spotify songs is too hard..
this script will fail if a song on spotify has not been uploaded to youtube :(
i'm very interested to look for an alternative to youtube but none seems to be good enough
i'm open to any suggestions and ideas that could be an alternative to this problem

https://www.dropbox.com/sh/rl8xat83r09hxtg/AABOH1xHxaLw9eati7CC39Gra?dl=0
This one worked for loading 128kBs songs from spotify.

@hermiePRO i can not seem to log in
[10/18/2016 - 1:40:33 AM] Login requested [10/18/2016 - 1:40:35 AM] Login requested [10/18/2016 - 1:40:35 AM] Login requested [10/18/2016 - 1:40:35 AM] Login requested [10/18/2016 - 1:40:36 AM] Login requested [10/18/2016 - 1:40:38 AM] Couldn't login: Error: fallback: Invalid captcha value supplied [10/18/2016 - 1:40:39 AM] Couldn't login: Error: fallback: Invalid captcha value supplied [10/18/2016 - 1:40:39 AM] Couldn't login: Error: fallback: Invalid captcha value supplied [10/18/2016 - 1:40:39 AM] Couldn't login: Error: fallback: Invalid captcha value supplied [10/18/2016 - 1:40:39 AM] Couldn't login: Error: fallback: Invalid captcha value supplied [10/18/2016 - 1:40:42 AM] Login requested [10/18/2016 - 1:40:45 AM] Couldn't login: Error: fallback: Invalid captcha value supplied

works perfect in windows 7 64 bit (python 2.7)  , thks

I hope to find an updated version of it. Worked fine last months. I've got problems too! :-/

^ So, hermiePRO, was that Dropbox link you shared allow this program to download directly from Spotify?  The one I got from the repository also downloaded from YouTube which was an annoyance for me.

@FlareBlitz17 Thank you :D
yep, youtube is meh.
i'll do some testing with soundcloud when i get some free time next week.

@FlareBlitz17 Yes. That one worked to directly download songs from spotify. Only a spotify free account is needed to login.

@hermiePRO I tried it, and it says "Can't login", I've tried two different free Spotify account and it still doesn't work.  All I do is run the .bat file and it opens localhost and I input my credentials, right?

umm.. SoundCloud seems to only allow downloading the songs that are non-copyrighted.

Maybe you can check this out https://github.com/FGRibreau/spotify-downloader/blob/master/bin/spotify-downloader

Oh ok, so this doesnt load the songs from Spotify?
I thought it uses a direct spotify download?
Here is one tool I know so far which is working for direct spotify downloads:
http://uploaded.net/file/cx5rnr9z
But its pretty slow - its about 1,5 times as fast as listening to those songs, maybe you can implement this to your tool so we can directly load the songs from Spotify.

i'm very interested to look for an alternative to youtube but none seems to be good enough

Sorry for bumping this thread but what about VEVO (and YouTube as a fallback)?
youtube_dl/vevo.py

Closing this, read https://github.com/ritiek/spotify-downloader/issues/31#issuecomment-350201747.


pip install mediapipe giving an old version of Mediapipe which fails with tutorials using new Mediapipe version

Hi,
When I install Mediapipe through pip and then try to use it with the Python code on the facemesh tutorial page, it gives me a lot of errors. It turns out that pip installs an older version of Mediapipe because many of the files on the Mediapipe github are not in the pip version.
I tried copy pasting some files and lines of code here and there hoping to resolve the issue. My code finally ran without throwing in any errors, but face_mesh.process() doesn't give me anything for results.multi_face_landmarks (NoneType).
Any help?

Hi @shreshtashetty
Can you please provide an output of the command pip install --force-reinstall mediapipe which would allow us to look which version is installed in the system?

Hi,
Following is the output of pip install --force-reinstall mediapipe:

Also, when I tried to build mediapipe using python3 setup.py bdist_wheel, I get the following:

@shreshtashetty Looks like you are trying to install in an environment where tensorflow is already present. This is conflicting with other python packages.
Can you please follow steps to create new environment and then install mediapipe as provided here?
Also we strongly encourage our users to simply run pip install mediapipe to use the ready-to-use solutions, more convenient and much faster.

@ayushgdev UPDATE: The reason results.multi_face_landmarks gives me a NoneType is that I used a 48x48 image from the FER+ dataset which was too small for the model to detect anything and I just needed to go with a bigger image.
But even with just pip install mediapipe and a bigger image, I still get an error with the tutorials on the mediapipe page with mp_face_mesh.FACEMESH_TESSELATION . The pip installation of mediapipe doesn't have it, but the github version of it does, which is what the tutorials seem to be based on (correct me if I'm wrong).
Any idea how I could get around this discrepancy?

@shreshtashetty Can you check if the code below runs in your system? This runs fine in a virtual environment setup  for mediapipe as per the documentation.
import mediapipe, cv2
from mediapipe.python.solutions import drawing_styles, drawing_utils, face_mesh

cam = cv2.VideoCapture(0)
CONNECTION_STYLE = drawing_styles.get_default_face_mesh_tesselation_style()
CONNECTIONS = face_mesh.FACEMESH_TESSELATION

with face_mesh.FaceMesh(max_num_faces=1, min_detection_confidence=0.8, static_image_mode=False) as face_context:
    while cam.isOpened():
        success, img = cam.read()

        if success:
            img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
            results = face_context.process(img)

            # showing the image colors properly
            img = cv2.cvtColor(img, cv2.COLOR_RGB2BGR)
            if results.multi_face_landmarks:
                for landmarks in results.multi_face_landmarks:
                    drawing_utils.draw_landmarks(img, landmark_list=landmarks, connections=CONNECTIONS, landmark_drawing_spec=None, connection_drawing_spec=CONNECTION_STYLE)

        cv2.imshow('Webcam footage', img)
        if cv2.waitKey(5) & 0xFF==27:
            cam.release()
            cv2.destroyAllWindows()

same problem please give me a solution


Absence of randn function in Symbol API

As highlighted by @anirudhacharya in PR #12749
There is an absence of randn function in Symbol API
Is it a conscious omission?

@mxnet-label-bot [Question]

@ChaiBapchya You can also post this question on MXNet discussion forum (https://discuss.mxnet.io), where it will get a wider audience and allow other to learn as well.


grammar correction

-use is instead of or are
-remove 'a'

@rpetrusha I reverted the 2nd change :)


Set the transition authentication variables when syncing staging

The staging sync was recently changed to use a new script which has different variable names for the passwords, PG_TR_SRC_ENV_SYNC_PW and PG_TR_DST_ENV_SYNC_PW. Since before we were using the same password for normal postgres and transition postgres, I assume that we can set it to be the same as normal postgres.

Ah, this was only fixed for the AWS copy script in #7392.


[WIP] Fixes #70 - don't swallow errors when working with promises

My branch to fix this issue keeps getting associated with this pull, preventing me from creating my own pull request. Closing in hopes that is prevented.


Add navigate command history feature

Resolves #134.
The command history works as follows:

Press the Up key to navigate to the previous command, and the Down key to the next command in the history list.
If we entered a successful command which is different from the last successful command, then the new command will be pushed into the history list. If it is the same as the last successful command, then the new command will not be pushed into the history list.
The history list has maximum size 100. Beyond that, it will delete the least recent command history.

Codecov Report
Base: 69.94% // Head: 68.65% // Decreases project coverage by -1.29% :warning:

Coverage data is based on head (6184c39) compared to base (f7426e0).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #186      +/-   ##
============================================
- Coverage     69.94%   68.65%   -1.30%
  Complexity      497      497
============================================
  Files            95       95
  Lines          1647     1678      +31
  Branches        180      187       +7
============================================
  Hits           1152     1152
- Misses          444      475      +31
  Partials         51       51

Impacted Files
Coverage Δ

src/main/java/seedu/uninurse/ui/CommandBox.java
0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


chore(doc) add SCD example and instructions

Adapts the instructions from #747 into an example, adds README stuff.

Alright Github, I didn't expect this 🙄


P1716R3 ranges compare algorithm are over-constrained

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1716r3.html
__cpp_lib_ranges : 201911L

[x] equivalence_relation
[x] indirect_binary_predicate
[x] indirect_equivalence_relation
[x] indirectly_comparable
[x] ranges::find
[x] ranges::find_first_of
[x] ranges::adjacent_find
[x] ranges::count
[x] ranges::mismatch
[x] ranges::is_permutation
[x] ranges::replace
[x] ranges::replace_copy
[x] ranges::remove
[x] ranges::remove_copy
[x] ranges::unique
[x] ranges::unique_copy

完了


Release process: Merge 0.13.10 to stable

Merge 0.13.10 to stable
We can do a merge commit here or I can make a direct push.
Git decided that Carthage XCF support and OpenSSL 1.1.1k (#817) is not there... probably because it was merged with squash.
Carthage Bitrise test are failing expectedly (we are waiting for a new version of Carthage that supports XCF)

Some Carthage tests are failing for no reason, reruning them usually helps.


Adjustments to CDISC ODM process

The process for creating a project from CDISC ODM is currently requiring a project ID.
See the method definition for more details:
https://github.com/aldefouw/redcap_cypress/blob/master/cypress/support/commands.js#L390-L407
We should probably move towards something more robust.
It would be nice if we could specify the project name and then looked up the project ID in the database ... will require some thought.

Would it make sense to return the pid from the custom method itself and then chain from the method call?
Cypress.Commands.add('create_cdisc_project', (project_name, project_type, cdisc_file) => {

    //Run through the steps to import the project via CDISC ODM
    cy.visit_base({url: 'index.php?action=create'})
    cy.get('input#app_title').type(project_name)
    cy.get('select#purpose').select(project_type)
    cy.get('input#project_template_radio2').click()
    cy.upload_file(cdisc_file, 'xml', 'input[name="odm"]')
    cy.get('button').contains('Create Project').click().then(() => {
        cy.location('search').then((searchString) => {
            let params = new URLSearchParams(searchString)
            return params.get('msg') === 'newproject' && params.get('pid')
        })
    })

})

and then, e.g.
cy.create_cdisc_project('Example Project Title', '0', 'cdisc_files/core/logging.xml').then( (pid) => {
    cy.log(pid)
})

@AndrewPoppe  - I think that's a good idea.  You interested in seeing if that's possible?

It works as written above in my environment. I think I'd just be concerned about some edge case in which project creation failed but it still returned a pid. I tried to avoid that by short circuiting based on the msg=newproject being present in the query string.

That's awesome, Andrew!  Thanks for your work on this.
Regarding edge cases where project creation fails ...
I think your short circuit should be a good mitigation for most cases.
Since there's always a possibility for failure when doing the CDISC import, can you catch those expected failures you're aware of and return something to alert the user working on the test?  For instance, you could return an alert window to tell the user writing the script that something had gone wrong and provide whatever error feedback you're able to.
I think the most important thing here is to make it clear to the user writing the test (or running the test) that something has gone wrong so they can take action to rectify the problem.
Thanks.


signing-party: 2.0 -> 2.1

Fixes source not found error when building.
PS: upstream seems to keep only the most recent version archive file, so this package should be updated as soon as possible when upstream release a new version to avoid this issue to happen again in the future.

Thank you


Persist scroll on some elements.

Sometimes it's desirable to persist scroll position on some elements. It's already possible to do that, but would be nice to have it out of the box.
Code below allow to preserve scroll position of .left-content element on page update. Would be nice to have something like Turbolinks.persistScrollOn '.left-content'.
# Persist scroll position on page updates.
elementsWithPersistentScrolls = ['.left-content']

# Storing scroll positions of scrollable elements.
persistentScrollsPositions = {}
$(document).on 'page:receive', ->
  persistentScrollsPositions = {}
  for selector in elementsWithPersistentScrolls
    persistentScrollsPositions[selector] = $(selector).scrollTop()

$(document).on 'page:change', ->
  for selector, scrollTop of persistentScrollsPositions
    $(selector).scrollTop scrollTop

thanks @alexeypetrushin for this wonderful solution


Build failure: oh-my-posh

Steps To Reproduce
Steps to reproduce the behavior:

build oh-my-posh package as part of a system flake on nixos-unstable branch
only broke today, however most recent working commit I have found is: 6660475dea29309327ee3b2e6824ec0011589017 which is obviously confusing

Build log
issue with response and log and error message, referred to you by author
Additional context
package author says not their issue, but also says the package is out of date as they are on 19.5.2 and the package is on 18.26.1
My system config is:
https://github.com/BirdeeHub/birdeeSystems
Dont judge im kinda new I havent worked on secrets yet so I just dont have any secrets in it
Notify maintainers
@lucperkins
@urandom2

Looks like an update PR is in progress that'll probably fix it: #273191


fix: remove tower service if wasm32

Please can you provide more details around what's not working when the target is wasm?

Hi,
I haven't had a change to look at it deeper, but I too got problem with building reqwest-middleware on WASM since 0.3. I suppose I could, and maybe even should just not use reqwest-middleware on WASM as in my case it's for HTTP caching, but I thought you might want to know.
https://github.com/podusowski/walkers/actions/runs/11654418524/job/32447924794?pr=220

@eopb  Without this patch, builds for wasm32-unknown-unknown fail with the following errors:
error[E0599]: no method named `poll_ready` found for struct `Client` in the current scope
   --> reqwest-middleware/src/client.rs:284:24
    |
284 |             self.inner.poll_ready(cx).map_err(crate::Error::Reqwest)
    |                        ^^^^^^^^^^ method not found in `Client`

error[E0599]: no method named `poll_ready` found for reference `&Client` in the current scope
   --> reqwest-middleware/src/client.rs:306:27
    |
306 |             (&self.inner).poll_ready(cx).map_err(crate::Error::Reqwest)
    |                           ^^^^^^^^^^ method not found in `&Client`

error[E0599]: no method named `timeout` found for struct `reqwest::RequestBuilder` in the current scope
   --> reqwest-middleware/src/client.rs:427:31
    |
427 |             inner: self.inner.timeout(timeout),
    |                               ^^^^^^^ method not found in `RequestBuilder`

For more information about this error, try `rustc --explain E0599`.

You can reproduce this issue by running cargo build --target wasm32-unknown-unknown.

I see. Thanks for the information everyone.
Looking back at the git history, wasm has been somewhat unmaintained in reqwest-middleware for a while. We removed the tests for wasm in https://github.com/TrueLayer/reqwest-middleware/pull/105.
I'd be happy to merge this but ideally, someone should also add back some of tests so that we can ensure that we don't regress this fix in a future change. At the very least we should check in CI that the library builds with the wasm target.


Change the color value of some classes in the card

Prerequisites

[X] I have searched for duplicate or closed feature requests
[X] I have read the contributing guidelines

Proposal
Change the color value of some classes in the card to be written like the link color, that is, the calculation of RGBA+transparency, so as to realize the function of adjusting the transparency of the font in Bootstrap itself, because there is already a transparency class of the font class, such as .text- opacity-25.
However, the current .text-opacity-25 cannot adjust the transparency of .card-text, which can be achieved by changing the writing method of related classes, which does not seem to damage too much.
The known related classes are as follows:

.card-footer
.card-header
.card-title
.card-link
.card-body
.card-text

.card-link currently has no specific color setting, but only involves the spacing of elements. I hope you can add some useful styles or change the name, it feels a bit mismatched between the name and the actual function.
Motivation and context
Almost all card classes are involved. Card itself is an excellent layout structural component. It should use the newly introduced link-like operation of Bootstrap, and in the current color settings of these classes, custom attributes are undefined Yes, is it an active reserved custom name?
By the way, if it works, will it be added in the next stable version? There may not be enough time.

Thanks for suggesting a new feature @ZhangChengLin
Haven't read in detail, just answering to the question at the end:

By the way, if it works, will it be added in the next stable version? There may not be enough time.

The content of the next stable version (v5.3.0) is now frozen so this feature, if accepted, won't be in it.

Hi @julien-deramond , i have an excellent idea and I don't know where should I share it, I'm so sorry that I'm sharing this at wrong place. So my idea is to solve the issue regarding the HTML class attribute value length, where developers get themselves lost in searching and managing the classes of bootstrap. So what we can do is we can make something like single bootstrap class for each element instead of multiple classes, and the developer can target that particular class of element and can add as many class he needs to this section, so that all the sub classes are applied to the main class
Ex: Hello world
For above element:
Bootstrap class file:
.my-para{
class1;
class2;
class3;
class4;
}
Accordingly class1,2,3,4and class5 are applied to the element with class my-para
In short a separate boot.class like file which contains all the class applied to each element using class name of that element

Right now .text-opacity-* classes can only modify the other .text-* color utilities. I don't know when or how we'll tackle that exactly yet. You could set .text-body and then add your .text-opacity-* class.


Update kanbanist integration

Please remember the Contributing Guidelines :heart:
:star2: What does this PR do?
toggl-button for Kanbanist was already merged in #1318, but it is currently broken, as Kanbanist has recently performed a major update including some changes to its styles. (https://github.com/mwakerman/kanbanist/pull/73)
This PR fixes it, and gets it working back again.
:bug: Recommendations for testing
I tested this in Chrome and Firefox, and confirmed it works correctly in both.

@cosnomi Thank you for the fix! :)