OutOfMemoryError while transforming a huge text file

Hello.
I'm new to Vavr and I'm really impressed by how pretty the Java code can be made by using the lib.
I faced an issue during processing huge text files (few gigabytes). While reading lines and transforming them (some simple String operations) I get java.lang.OutOfMemoryError: Java heap space even though I used -Xmx6g.
Plain Java stream does the job easily with much less memory available.
I'm wondering where's the issue. Does it happen because of Vavr streams being reusable? Or is there a more appropriate way to read and process files?
I paste the exemplary code below. I would appreciate any comments.
Cheers!
Some(Paths.get(PATH_TO_A_HUGE_TEXT_FILE))
            .map(path ->
                Try(() -> Files.lines(path)).map(Stream::ofAll).get()
            )
            .map(linesStream -> linesStream.map(String::toUpperCase))
            .forEach(transformedStream -> transformedStream.forEach(s -> { }));

java.nio.file.Files.lines(java.nio.file.Path) return java.util.stream.Stream<String> which process lines in lazy matter: one-by-one, forget-about-old
But Vavr's Stream is lazy stream with memory: it get items from source stream one-by-one, but it remember all values.
If you don't need old values you can use Vavr's Iterator:
Option
        .of(PATH_TO_A_HUGE_TEXT_FILE)
        .map(Paths::get)
        .toTry()
        .mapTry(Files::lines)
        .map(BaseStream::iterator)
        .map(Iterator::ofAll)
        .map(lines -> lines.map(String::toUpperCase))
        .forEach(transformed -> transformed.forEach(line -> {

        }));

P.S.
I don't run this code on large file yet.

I write short test code for compare performance of Java Stream, Vavr Stream and Vavr iterator.
    enum Sizes {
        Bytes(1),
        KiB(1024),
        MiB(1024 * 1024),
        GiB(1024 * 1024 * 1024),
        ;

        private final long value;

        Sizes(long value) {
            this.value = value;
        }

        public static String toString(long value) {
            Sizes size = Bytes;
            for (Sizes s : Sizes.values()) {
                if (s.value <= value) {
                    size = s;
                }
            }

            return String.format(Locale.US, "%.2f %s", (double) value / size.value, size.name());
        }

        public static void printMemoryInfo() {
            Runtime runtime = Runtime.getRuntime();
            System.out.println(String.format(
                    "Memory[Total: %s; Free: %s; Max: %s; Used: %s]"
                    , toString(runtime.totalMemory())
                    , toString(runtime.freeMemory())
                    , toString(runtime.maxMemory())
                    , toString(runtime.totalMemory() - runtime.freeMemory())
            ));
        }
    }

    private Try<java.util.stream.Stream<String>> readLineOfHugeTextFile(int maxLineLength, long streamSize) {
        String source = "qwertyuiopasdfghjklzxcvbnm QWERTYUIOPASDFGHJKLZXCVBNM";
        int len = source.length();
        Random random = new Random();
        Stream<String> stream = Stream
                .generate(() -> {
                    char[] chars = new char[random.nextInt(maxLineLength)];
                    for (int i = 0; i < chars.length; i++) {
                        chars[i] = source.charAt(random.nextInt(len));
                    }
                    return new String(chars);
                })
                .limit(streamSize);
        return Try.of(() -> stream);
    }

    @Test
    public void testJavaStream() {
        Sizes.printMemoryInfo();
        AtomicLong counter = new AtomicLong();
        long used = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();
        readLineOfHugeTextFile(1_000, 1_000_000)
                .map(lines -> lines.map(String::toUpperCase))
                .forEach(transformed -> transformed.forEach(line -> {
                    counter.addAndGet(line.length());
                }));
        Runtime.getRuntime().freeMemory();
        Sizes.printMemoryInfo();
        System.out.println("Total chars: " + counter);
        System.out.println("Used: " + Sizes.toString(Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory() - used));
    }

    @Test
    public void testVavrStream() {
        Sizes.printMemoryInfo();
        AtomicLong counter = new AtomicLong();
        long used = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();
        readLineOfHugeTextFile(1_000, 1_000_000)
                .map(io.vavr.collection.Stream::ofAll)
                .map(lines -> lines.map(String::toUpperCase))
                .forEach(transformed -> transformed.forEach(line -> {
                    counter.addAndGet(line.length());
                }));
        Runtime.getRuntime().freeMemory();
        Sizes.printMemoryInfo();
        System.out.println("Total chars: " + counter);
        System.out.println("Used: " + Sizes.toString(Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory() - used));
    }

    @Test
    public void testVavrIterator() {
        Sizes.printMemoryInfo();
        AtomicLong counter = new AtomicLong();
        long used = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();
        readLineOfHugeTextFile(1_000, 1_000_000)
                .map(BaseStream::iterator)
                .map(io.vavr.collection.Iterator::ofAll)
                .map(lines -> lines.map(String::toUpperCase))
                .forEach(transformed -> transformed.forEach(line -> {
                    counter.addAndGet(line.length());
                }));
        Runtime.getRuntime().freeMemory();
        Sizes.printMemoryInfo();
        System.out.println("Total chars: " + counter);
        System.out.println("Used: " + Sizes.toString(Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory() - used));
    }

testJavaStream
Memory[Total: 243.50 MiB; Free: 226.85 MiB; Max: 3.51 GiB; Used: 16.65 MiB]
Memory[Total: 486.50 MiB; Free: 271.04 MiB; Max: 3.51 GiB; Used: 215.46 MiB]
Total chars: 499 352 382
Used: 198.82 MiB

testVavrStream
Memory[Total: 243.50 MiB; Free: 226.86 MiB; Max: 3.51 GiB; Used: 16.64 MiB]
Memory[Total: 2.37 GiB; Free: 1.04 GiB; Max: 3.51 GiB; Used: 1.33 GiB]
Total chars: 499 218 992
Used: 1.31 GiB

testVavrStream
Memory[Total: 243.50 MiB; Free: 226.77 MiB; Max: 3.51 GiB; Used: 16.73 MiB]
Memory[Total: 577.00 MiB; Free: 477.37 MiB; Max: 3.51 GiB; Used: 99.63 MiB]
Total chars: 499 010 003
Used: 82.90 MiB

This is not full and correct benchmark after all.

@valery1707 third one is "testVavrIterator", please fix :)

@ruslansennov fixed, thanks!

@valery1707 thanks for such a comprehensive example of use!
As mentioned in my original question - I expected my issue could be caused by the stream elements being remembered and I was looking for a way to make stream forget the elements once used (as Java streams do).
AFAIK it would be beneficial if the documentation contained such example use of the Iterator. I was not able to find this information on my own easily (though it's of course possible that I was not searching correctly ;) ).
Thanks again for support!

Thank you, we will add better documentation for Vavr 1.0


Error: Request failed with status code 403

Hello,
Can you help solve what is wrong with the configu please:
Config:
"platform": "WyzeSmartHome",
"name": "Wyze",
"username": "myemail",
"password": "mypass",
"keyId": "mykey",
"apikey": "myapi",
"refreshInterval": 60000,
"logging": "debug"

}
Log shows:
8/17/2023, 5:28:45 PMWyze Smart Home Bridge starting
8/17/2023, 5:28:56 PMWyze Smart Home BridgeLoaded plugin 'homebridge-wyze-smart-home'
8/17/2023, 5:28:56 PMWyze Smart Home BridgeLoading 1 platforms...
8/17/2023, 5:28:56 PMWyze Smart Home BridgeWyzeRefreshing devices...
8/17/2023, 5:28:57 PMWyze Smart Home BridgeBridge is running on port 51836.
8/17/2023, 5:28:57 PMWyze Smart Home BridgeWyzePerforming request: user/login
8/17/2023, 5:28:57 PMWyze Smart Home BridgeWyzeRequest config: {"method":"POST","url":"user/login","data":{"email":"myemail","password":"mypass"},"baseURL":"https://auth-prod.api.wyze.com","headers":{"x-api-key":"myapi","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1 Safari/605.1.15"}}
8/17/2023, 5:28:58 PMWyze Smart Home BridgeWyzeERRORRequest failed: Error: Request failed with status code 403
8/17/2023, 5:28:58 PMWyze Smart Home BridgeWyzeERRORResponse PerformRequest (Forbidden): {"URL":"https://support.wyze.com/hc/en-us/articles/16129834216731-Creating-an-API-Key"}
8/17/2023, 5:28:58 PMWyze Smart Home BridgeWyzeERRORError getting devices: Error: Request failed with status code 403
8/17/2023, 5:29:58 PMWyze Smart Home BridgeWyzeRefreshing devices...
8/17/2023, 5:29:58 PMWyze Smart Home BridgeWyzePerforming request: user/login
May you please let me know what needs to be fixed, cameras I am using is V3

You should replace "keyId": "mykey" with
"apiKey":"mykey"

No, I installed on my cameras RTSP and run them that way true Apple Home
On Mon, Nov 6, 2023 at 2:18 PM Farmer @.***> wrote:

Any update
—
Reply to this email directly, view it on GitHub
https://github.com/jfarmer08/homebridge-wyze-smart-home/issues/140#issuecomment-1796366219,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BBYK3GJN7RTSWQ2GWMRMM7TYDFA2FAVCNFSM6AAAAAA3UWXQRKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJWGM3DMMRRHE
.
You are receiving this because you authored the thread.Message ID:
@.***>

Ok. Just too note this plugin didn't support camera streams.


Added cluster support for ECS and corrected status debug message

Description

Added luigi.Parameter for cluster to be able to use another cluster then the default one.

Fixed an issue with the status in debug message when following up running ECS tasks.

Motivation and Context

I needed support to run ECS tasks on other clusters then the default one.
Have you tested this? If so, how?

I ran my jobs with this code and it works for me.

Also, can you confirm that this replaces PR #1717 ?

Afraid I'm useless as a reviewer, I barely know what luigi is

Please add a default='default' to the Parameter, to prevent breaking for users running on their default cluster, as is done in PR #1717. Also, it doesn't completely replace #1717 because there are other improvements in that PR (e.g., checking exit codes)

@jfeala Thanks for pointing that out. I pushed the change.

@vanhove Thanks for your first github contribution! Sorry for such delay in merging!


Add DerivingVia module with a few starter definitions

See the single commit's message.

We want to drop the use of cardano-prelude entirely, so I'm generally against adding anything here.

Thanks for the reminder, Clarke.
I've opened PR input-output-hk/cardano-base#225 instead -- it's quite a bit different, as a result of a conversation I had with Edsko after having slept on it.


ObjectTK 2.0 Checklist

Current tasks:

[ ] Add debug extension/tool.
[ ] Discuss texture implementations
[ ] Add embedded resource loading
[ ] Add .obj importer
[ ] Add some basic primitive vertex arrays
[ ] Add typed Shaders
[ ] Add 3D package
[ ] Figure out how to deal with extensions (like aniso filtering)

Also, more examples, please. For example, a sphere, controlled by WASD, moving around the scene of cubes


Docs: Add contributors section in Readme.md

Currently there is no contributors section in the Readme.md

I would like a contributors section similar as below:

If you find this issue valid can you please assign it to me

Can you assign me this issue under hacktoberfest

Hi, there is a 'Contribution' section in the right sidebar on the repository GitHub page. We don't want to add this to the readme, based on this I'm closing the issue.


[UWP] Aligned UWP showcard margin with the rest of renderers

Related Issue
fixes #3165.
NOTE: For multiple issues resolved by this PR use the corresponding keywords every time in a comma-delimited list per the reference
page above.
Description
the bottom negative margin wasn't applied if it's ShowCard and it's part of actions.
PR removed such restriction to make it consistent across platforms.
How Verified
before

after

in actions

in body with bleed

Microsoft Reviewers: Open in CodeFlow
Microsoft Reviewers: Open in CodeFlow

/azp run


ibus-engines.anthy: 1.5.11 -> 1.5.12

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/ibus-anthy/versions.
meta.description for ibus-engines.anthy is: "IBus interface to the anthy input method"
meta.homepage for ibus-engines.anthy is: "https://github.com/fujiwarat/ibus-anthy"
meta.changelog for ibus-engines.anthy is: ""
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 1.5.12 with grep in /nix/store/5di839nxyi54mgm8fmjx6crsaymb1hxz-ibus-anthy-1.5.12

directory tree listing: https://gist.github.com/58f4f68ab1133955baaacc8d0ea14a1e

du listing: https://gist.github.com/4c45f05b0ea29364f6ec1757f49df96e

Rebuild report (if merged into master) (click to expand)

3 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
0 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
ibus-engines.anthy

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/5di839nxyi54mgm8fmjx6crsaymb1hxz-ibus-anthy-1.5.12 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A ibus-engines.anthy https://github.com/r-ryantm/nixpkgs/archive/685a70cdffcb4a433ad8c01cca79d0f56b1b3bab.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/5di839nxyi54mgm8fmjx6crsaymb1hxz-ibus-anthy-1.5.12
ls -la /nix/store/5di839nxyi54mgm8fmjx6crsaymb1hxz-ibus-anthy-1.5.12/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

ibus-engines.anthy

Maintainer pings
cc @gebner @ericsagnes for testing.

This release adds installed tests so it would be nice if someone could integrate them as per https://github.com/NixOS/nixpkgs/issues/34987.


installation in development conda env fails

What happened:
Installation in development conda env fails with latest setuptools.
To reproduce error:
1. Generate development conda env following this
conda env create -f conda-env/dev.yml -n my_pmp_conda_env
conda activate my_pmp_conda_env

2. From PMP local directory cloned from github
python setup.py install

Error:
File existing, purging: DefArgsCIA.json
/home/lee1043/.conda/envs/pcmdi_metrics_dev_20230131/lib/python3.9/site-packages/setuptools/dist.py:548: UserWarning: The version specified ('v2.5.1-18-gd0775e2') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
  warnings.warn(
running install
/home/lee1043/.conda/envs/pcmdi_metrics_dev_20230131/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/home/lee1043/.conda/envs/pcmdi_metrics_dev_20230131/lib/python3.9/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
Traceback (most recent call last):
  File "/home/lee1043/git/pcmdi_metrics_20221013/pcmdi_metrics/setup.py", line 144, in <module>
    setup(
  File "/home/lee1043/.conda/envs/pcmdi_metrics_dev_20230131/lib/python3.9/site-packages/setuptools/__init__.py", line 108, in setup
    return distutils.core.setup(**attrs)
  File "/home/lee1043/.conda/envs/pcmdi_metrics_dev_20230131/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 185, in setup
    return run_commands(dist)
  File "/home/lee1043/.conda/envs/pcmdi_metrics_dev_20230131/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
    dist.run_commands()
  File "/home/lee1043/.conda/envs/pcmdi_metrics_dev_20230131/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
    self.run_command(cmd)
  File "/home/lee1043/.conda/envs/pcmdi_metrics_dev_20230131/lib/python3.9/site-packages/setuptools/dist.py", line 1213, in run_command
    super().run_command(command)
  File "/home/lee1043/.conda/envs/pcmdi_metrics_dev_20230131/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "/home/lee1043/.conda/envs/pcmdi_metrics_dev_20230131/lib/python3.9/site-packages/setuptools/command/install.py", line 74, in run
    self.do_egg_install()
  File "/home/lee1043/.conda/envs/pcmdi_metrics_dev_20230131/lib/python3.9/site-packages/setuptools/command/install.py", line 117, in do_egg_install
    cmd.ensure_finalized()  # finalize before bdist_egg munges install cmd
  File "/home/lee1043/.conda/envs/pcmdi_metrics_dev_20230131/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 111, in ensure_finalized
    self.finalize_options()
  File "/home/lee1043/.conda/envs/pcmdi_metrics_dev_20230131/lib/python3.9/site-packages/setuptools/command/easy_install.py", line 311, in finalize_options
    self.local_index = Environment(self.shadow_path + sys.path)
  File "/home/lee1043/.conda/envs/pcmdi_metrics_dev_20230131/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1044, in __init__
    self.scan(search_path)
  File "/home/lee1043/.conda/envs/pcmdi_metrics_dev_20230131/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1077, in scan
    self.add(dist)
  File "/home/lee1043/.conda/envs/pcmdi_metrics_dev_20230131/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1096, in add
    dists.sort(key=operator.attrgetter('hashcmp'), reverse=True)
  File "/home/lee1043/.conda/envs/pcmdi_metrics_dev_20230131/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2631, in hashcmp
    self.parsed_version,
  File "/home/lee1043/.conda/envs/pcmdi_metrics_dev_20230131/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2685, in parsed_version
    raise packaging.version.InvalidVersion(f"{str(ex)} {info}") from None
pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: 'v3.0-46-ge6f562d' (package: cdutil)

Temporary solution
1. Check setuptools version and downgrade setuptools
>>> conda list setuptools
setuptools                66.1.1             pyhd8ed1ab_0    conda-forge

>>> pip install setuptools==65.5.0

2. Check if working: Repeat python setup.py install that seems work for main branch
2-1. main branch
mean_climate_driver.py --help works.
2-2. development branch
git checkout 859_pjg_xcdatclims_ljw_replace
python setup.py install

mean_climate_driver.py --help works.
Options for resolving
[1] Need to resolve setuptools issue
[2] fix setuptools version from dev.yml during the mean time
[3] Or change setuptools to pip

@tomvothecoder This issue is the setuptools issue in PMP that I mentioned during the meeting this morning. Would you be able to share your knowledge on this? In particular, I wonder if I can get your help on establishing/enabling pip installation process for developmental conda env that was generated by using dev.yml (e.g., conda env create -f conda-env/dev.yml -n my_pmp_conda_env). Thank you for your attention and consideration.

Hi @lee1043, I found a few related issues and comments:

https://github.com/pypa/setuptools/issues/3772
https://github.com/pypa/setuptools/issues/3772#issuecomment-1384342813

Mentions: https://github.com/pypa/setuptools/issues/2497

setuptools>=66 now enforces PEP440 which breaks a ton of packages such as cdutil which do not conform to this versioning standard.
I didn't find an obvious solution to this issue besides packages needing to conform to this standard.
It looks like this affects python setup.py install and pip install ..
(pmp_dev) bash-4.2$ python -m pip install .
Processing /home/vo13/PCMDI/pcmdi_metrics
  DEPRECATION: A future pip version will change local packages to be built in-place without first copying to a temporary directory. We recommend you use --use-feature=in-tree-build to test your packages with this new behavior before it becomes the default.
   pip 21.3 will remove support for this functionality. You can find discussion regarding this at https://github.com/pypa/pip/issues/7555.
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: /home/vo13/miniconda3/envs/pmp_dev/bin/python /home/vo13/miniconda3/envs/pmp_dev/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmp8y38ymq6
       cwd: /tmp/pip-req-build-fcz5fyl5
  Complete output (39 lines):
  File existing, purging: DefArgsCIA.json
  /tmp/pip-build-env-xmzgfa23/overlay/lib/python3.9/site-packages/setuptools/dist.py:548: UserWarning: The version specified ('v2.5.1-18-gd0775e26') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
    warnings.warn(
  running egg_info
  Traceback (most recent call last):
    File "/home/vo13/miniconda3/envs/pmp_dev/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 349, in <module>
      main()
    File "/home/vo13/miniconda3/envs/pmp_dev/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 331, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/home/vo13/miniconda3/envs/pmp_dev/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 117, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/tmp/pip-build-env-xmzgfa23/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 338, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=['wheel'])
    File "/tmp/pip-build-env-xmzgfa23/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 320, in _get_build_requires
      self.run_setup()
    File "/tmp/pip-build-env-xmzgfa23/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 484, in run_setup
      super(_BuildMetaLegacyBackend,
    File "/tmp/pip-build-env-xmzgfa23/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 335, in run_setup
      exec(code, locals())
    File "<string>", line 144, in <module>
    File "/tmp/pip-build-env-xmzgfa23/overlay/lib/python3.9/site-packages/setuptools/__init__.py", line 108, in setup
      return distutils.core.setup(**attrs)
    File "/tmp/pip-build-env-xmzgfa23/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 185, in setup
      return run_commands(dist)
    File "/tmp/pip-build-env-xmzgfa23/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
      dist.run_commands()
    File "/tmp/pip-build-env-xmzgfa23/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "/tmp/pip-build-env-xmzgfa23/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 1213, in run_command
      super().run_command(command)
    File "/tmp/pip-build-env-xmzgfa23/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
      cmd_obj.ensure_finalized()
    File "/tmp/pip-build-env-xmzgfa23/overlay/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 111, in ensure_finalized
      self.finalize_options()
    File "/tmp/pip-build-env-xmzgfa23/overlay/lib/python3.9/site-packages/setuptools/command/egg_info.py", line 219, in finalize_options
      parsed_version = parse_version(self.egg_version)
    File "/tmp/pip-build-env-xmzgfa23/overlay/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/version.py", line 197, in __init__
      raise InvalidVersion(f"Invalid version: '{version}'")
  pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: 'v2.5.1-18-gd0775e26'
  ----------------------------------------
WARNING: Discarding file:///home/vo13/PCMDI/pcmdi_metrics. Command errored out with exit status 1: /home/vo13/miniconda3/envs/pmp_dev/bin/python /home/vo13/miniconda3/envs/pmp_dev/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmp8y38ymq6 Check the logs for full command output.
ERROR: Command errored out with exit status 1: /home/vo13/miniconda3/envs/pmp_dev/bin/python /home/vo13/miniconda3/envs/pmp_dev/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmp8y38ymq6 Check the logs for full command output.
(pmp_dev) bash-4.2$   pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: 'v2.5.1-18-gd0775e26'
bash: pkg_resources.extern.packaging.version.InvalidVersion:: command not found
(pmp_dev) bash-4.2$

The temporary workaround is pin setuptools<66.
I am looking into replacing local build installation processes with conda build for xCDAT and E3SM tools. One this is implemented, you can try copying the same process for pcmdi_metrics.

Hey, @jasonb5 and @xylar do either of you have any thoughts here?

@lee1043 and @tomvothecoder, does it help if you do this
python -m pip install .

instead of this?
python setup.py install

The latter is not really considered a good practice these days, I think.  If dependencies are missing that are listed in setup.py when you build the development conda environment, that might also explain the trouble.  These are just guesses.  I can try this out myself if my suggestion above doesn't help.

Sorry, I take that back.  If you download the cdutil conda package, you can open it up and see that invalid version string: v3.0-46-ge6f562d, which is nothing to do with the actual version (8.2.1).  I think this is a bug in cdutil itself.

I think rebuilding the cdutil package will fix the issue.  It's at least worth a try.  A local build seemed to have a valid version number.  However, testing failed because of an unrelated issue in cdms2 that I'm attempting to fix in:
https://github.com/conda-forge/cdms2-feedstock/pull/81

This problem is really cascading.  Have to fix the same numpy problem in `distarray:
https://github.com/conda-forge/distarray-feedstock/pull/5

I'm making progress on this but haven't finished and will continue tomorrow.

@tomvothecoder @xylar thank you for stepping in and sharing your knowledge and experience!

The temporary workaround is pin setuptools<66.

@tomvothecoder I agree this would be the workaround for now but would be interested to learn more about more efficient way!
@xylar I appreciate your work for updating the cdutil version. I wonder if that going to be only cdutil or also other cdat packages such as genutil, cdms, etc.

I have to rebuild cdms2 and distarray anyways.  If other packages cause trouble, we'll just rebuild them, too.

The weird version number must come in through this:
https://github.com/CDAT/cdutil/blob/v8.2.1/setup.py#L13-L17
The thing I don't understand is why the command wouldn't fail, since the source isn't in a git repo.

@lee1043 and @tomvothecoder, I think you could make headway by removing the version weirdness here.
Change:
https://github.com/PCMDI/pcmdi_metrics/blob/main/setup.py#L16
to
release_version = '2.5.1'

change:
https://github.com/PCMDI/pcmdi_metrics/blob/main/setup.py#L29
to
    descr = release_version

and finally change:
https://github.com/PCMDI/pcmdi_metrics/blob/main/setup.py#L146
to
    version=release_version,

This way, you can still save the git provenance in pcmdi_metrics/version.py in case that's useful but you don't try to use the git hash as a version number for the package itself.

@lee1043, I'm rebuilt distarray, cdms2 and cdutil (not yet available).  Please try your command tomorrow and let me know what trouble you run into.  It seems like @tomvothecoder was running into issues with pcmdi_metrics itself so please consider trying to fix above as well.

@lee1043, I'm rebuilt distarray, cdms2 and cdutil (not yet available). Please try your command tomorrow and let me know what trouble you run into. It seems like @tomvothecoder was running into issues with pcmdi_metrics itself so please consider trying to fix above as well.

@xylar I followed your instructions with release_version and it seems to have fixed the issue with installing pcmdi_metrics using python -m pip install (and python setup.py install).
I opened up PR #895 with the fixes and the console output. @lee1043 you are tagged for review.


feat: update resources to schema 5.0.0

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

GitHub release
npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 6.0.0-alfa.2 :tada:
The release is available on:

GitHub release
npm package (@sdk6 dist-tag)

Your semantic-release bot :package::rocket:


contain: "invert" moves content to bottom/right corner

I figured out how to position the content inside the container to be centered initially (using flexbox alignment, last sample there), and I can calculate and set minScale so that the content should always be scaled to fit inside the container. I'm using the contain: "invert" option to keep the content in view. Despite being described otherwise, this will not keep the content "zoomed to fill" (which is different from "zoom to fit" for different aspect ratios!). Zooming to fill would clip parts of the content that exceed the container's aspect ratio. This is fortunately not the case. In fact I must still set minScale to my calculated "zoom to fit" factor to make contain: "invert" any useful. (For a clean and meaningful API this should really be done by the library instead.)
The remaining problem is that if the content is smaller than the container in one dimension, the content will be aligned to the bottom/right end in this dimension instead of being centered.
Here are some drawings of the observed situation:

What can I do to keep the content centered when possible, instead of having it in the bottom/right corner? Or where in the panzoom library code would that be changed?

This issue looks similar to #148. Centering on zoom can be done with the focal option on the zoom method. See http://jsbin.com/sojulof/edit?html,js,console,output for an example.
Calculating this automatically can be hairy as there are a lot of factors. I'd prefer to leave this up to the user.

Oh I forgot to mention that I'm exclusively using the mousewheel zooming which already uses the focal point.
Actually, the library already has all the information required to perform these 'contain' checks. I guess it should be easy to apply some more checks and offsets with all the data at hand. From the user perspective, I have nothing at all. Not even the current scale value. No sizes and no positions.

It'd be most helpful to start with an example in code.

Here's an example: https://jsfiddle.net/3pqu4cj6/1/

Have you tried change contain to: "automatic"?
Example: https://jsfiddle.net/tpadpjbc/

That works well. It somehow wasn't obvious to me from the description. Now I'd just like to keep it centered when it doesn't completely fill the container.

I fixed that bug, and published the fix 2 weeks ago or so...  If it can help you I will be very happy 😊

@SubZero-0 Do you have a link to your patch? I don't see a PR.

https://github.com/timmywil/jquery.panzoom/issues/255#issuecomment-235278279

@shlomiah Your link is broken, but if you're referring to your comment in that issue, some of your code overlaps with the newest version. A PR is much easier to review.

I had a brain fart and stopped dealing with text-align. #259 should take care of this issue, combined with the use of contain: 'automatic'. Release forthcoming.


Update to include DPS

For this document discussing the Azure IoT device and service SDKs, should make reference to DPS in addition to IoT Hub.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 33af8d92-74d2-2cdd-53f9-299eca57969e
Version Independent ID: 6029edb3-5839-c2c3-6ce0-30349eccf6b9
Content: Understand the Azure IoT SDKs
Content Source: articles/iot-hub/iot-hub-devguide-sdks.md
Service: iot-hub
GitHub Login: @dominicbetts
Microsoft Alias: dobett

Hi @tameraw ! I have assigned this to @dominicbetts to update the doc. Thank you!

Hi @tameraw - I've added some links and information about the DPS SDKs to the article. Thanks for the suggestion!
PR: https://github.com/MicrosoftDocs/azure-docs-pr/pull/51999
#please-close


Reasoning behind default values of SQL options in "Align logical expressions"?

Hi Jörg-Michael, I'd like to understand your reasoning behind the default values of the new SQL options in rule "Align logical expressions". Why didn't you choose the same settings as for the other keywords? What makes the SELECT special here?

Hi ConjuringCoffee,
as in #214, the reason for the current defaults is that I found so many examples in real-life code where developers chose this layout, particularly for
    WHERE col1 = 'a'
      AND col2 = 'b'
      AND col3 = 'c'
      AND col4 = 'd'

while there is this odd gap (which I assume is the main reason for the discussion in #97) if you use:
    WHERE     col1 = 'a'
          AND col2 = 'b'
          AND col3 = 'c'
          AND col4 = 'd'

Personally, I indeed like left-align for "IF" and right-align for the longer keywords (ELSEIF, CHECK, WHILE, WHERE, UNTIL) to close that gap, but I couldn't base that on so many samples as with WHERE. But I realize the inconsistency, of course.
Which (default) settings would you prefer?
Kind regards,
Jörg-Michael

Your explanation makes sense to me: It matches what people are used to. I'll try running with the default settings for the SQL options for a while and see how it feels. Thanks!


Dark theme Graphics

Modified Dark theme Graphics

Hi, thanks for the contribution!
The image names and types must remain exactly how they were - so you have to delete the two new images.
We can't distinguish between light and dark mode with this approach though, so I will move to the new launch image system and come back to you. Hopefully it is more easy then, anyway!

Okay, I prepared the new approach in launchimage branch. The images to be replaced can be found here https://github.com/ergoplatform/ergo-wallet-app/tree/launchimage/ios/resources/Images.xcassets/Logo.imageset
Hints:

you don't need to use the same resolution for the images as the new launch image system is responsive
the images should have a transparent background because the background color can vary
the files already there to be overwritten are for light mode, to add ones for dark simply add with -dark suffix in name.

Looks gorgeous, thanks


Scroll inertia cancel [framework]

It's expected behaviour on some platforms that scroll inertia/momentum animations will stop when a finger is rested on the trackpad. This PR reacts to a new kind of pointer signal event (PointerSignalKind.scrollInertiaCancel) to convey that message.
Framework prep PR: #106906
Engine PR [1/4]: https://github.com/flutter/engine/pull/34402
Part of #106979
Pre-launch Checklist

[x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
[x] I read the [Tree Hygiene] wiki page, which explains my responsibilities.
[x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
[x] I signed the [CLA].
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is [test-exempt].
[x] All existing and new tests are passing.

(Triage): Looks like the Engine PR has been submitted, does this one need to be rebased to pick up the engine changes and make the tests happy?

This one needs to be merged after https://github.com/flutter/engine/pull/34537 is rolled in. https://github.com/flutter/engine/pull/34537 was waiting for another prerequisite, but should be now ready.


XreadGroup: Invalid stream ID specified as stream command argument

Hello there, trying to read from multiple stream, but getting an error Invalid stream ID specified as stream command argument. Not sure if this expected behavior, misuse on my part or a bug.
Example:
			read := cmdable.XReadGroup(ctx, rueidiscompat.XReadGroupArgs{
				Group:    s.Group,
				Consumer: s.Consumer,
				// Block:    s.ReadBlock,
				Count:   s.ReadCount,
				Streams: []string{"m", ">", "b", ">"},
			})
			streams, err := read.Result()

Thanks

Hi @kkharji,
I believe it should be

			read := cmdable.XReadGroup(ctx, rueidiscompat.XReadGroupArgs{
				Group:    s.Group,
				Consumer: s.Consumer,
				// Block:    s.ReadBlock,
				Count:   s.ReadCount,
				Streams: []string{"m", "b", ">", ">"},
			})
			streams, err := read.Result()

Hi @kkharji, does the above solve your problem?


mat: Inverse return error even though condition number is within range

What are you trying to do?
Inverse a random matrix
What did you do?

func TestSingular(t *testing.T) {
	for size := 10; size < 500; size += 10 {
		data := make([]float64, size * size)
		for i := range data {
			data[i] = rand.NormFloat64()
		}
		M := mat.NewDense(size, size, data)
		cond := mat.Cond(M, math.Inf(1))
		fmt.Println(fmt.Sprintf("Size: %d, Cond: %f", size, cond))
		res := &mat.Dense{}
		if err := res.Inverse(M); err != nil {
			t.Fatal(err)
		}
	}
}

Size: 10, Cond: 36.192444
Size: 20, Cond: 78.512922
Size: 30, Cond: 403.110746
Size: 40, Cond: 602.725103
Size: 50, Cond: 970.609080
Size: 60, Cond: 850.203528
--- FAIL: TestSingular (0.00s)
    line_lin_test.go:22: matrix singular or near-singular with condition number 1.5566e+18
FAIL

What did you expect to happen?
A successful inversion of the non-singular matrix
What actually happened?
An error saying that the matrix is singular even though the condition number with inf norm is bellow the threshold
What version of Go and Gonum are you using?

go 1.13
gonum.org/v1/gonum v0.8.1 h1:wGtP3yGpc5mCLOLeTeBdjeui9oZSz5De0eOjMLC/QuQ=
gonum.org/v1/gonum v0.8.1/go.mod h1:oe/vMfY3deqTw+1EZJhuvEW2iwGF1bW9wwu7XCu0+v0=
Does this issue reproduce with the current master?
Yes

Thanks for the report. I can reproduce the issue and it's a bug in mat.Inverse.
The condition number is computed by Gecon which expects the input matrix to contain the LU factorization. However, when Gecon is called the input contains the inverse matrix from the previous call to Getri. Our test unfortunately uses only tiny matrices where the incorrect condition number happens to be below the tolerance.
I'll fix it, hopefully soon.


Reconfigure tox to reuse same envs between unit and functional

Removes 9 environments by reusing them across unit and functional
testing commands as they have identical dependencies.
Fixes: #1546

@ssbarnea please rebase this after #1557 merged

@ssbarnea you can probably start rebasing this


Business Central RTC/Mobile App doesn't support Microphone and sound

I have built an controladdin where I am using sound and microphone on my html page using javascript.
Now If I add this control on a NAV page and use it on web client it works fine as expected.
But when I use the same page on my RTC or mobile app then Sound and microphone setting doesn't work and neither I get any error (may be because of html and script).
I do understand that there is difference in running them on browser and App but it would be great if there is any way or workaround for the same.
Thanks.

This issue is beyond the scope of the AL language and development tools. Please go ahead and post this to our Ideas forum at https://aka.ms/BusinessCentralideas, or vote up the idea if its already there. We're constantly monitoring top Ideas and will consider them for a future release.


Snippets/CheatSheet/Template for database specific DDL SQL statements

Is your feature request related to a problem? Please describe.
What was the exact statement to create a new user in SAP Hana via SQL again? I executed it last month and can't remember!
So I must open the browser, go to the database help page, find the command, scroll through the syntax page to find the relevant parts and then write it again crosschecking multiple times until I have:
CREATE USER <username> password "<pwd>" NO FORCE_FIRST_PASSWORD_CHANGE ;

Same with 100s of other rarely used commands.
Eclipse has multiple ways to support us here:

Code Snippet View
CheatSheet View
Code Template View
Help system View
Documentation View

If I am not mistaken the Cheat Sheet View would be a good place to collect these statements. Or maybe Code Templates as it is integrated with the auto complete? Not sure.
Describe the solution you'd like
What I do remember in such a case is the start of the statement: "create user ....", just the details I forgot. As soon as I start typing I would like to see all relevant commands as reminder how the complete command looks like.
One option is to show the relevant list of commands in an additional view on the right hand side.
The other option to use the autocomplete semantic.
Whatever works better. My fear with autocomplete is that it might get crowded by such secondary information.
Alternate approach considered
In the help system link to the official product documentation. These links are not always stable and we are at the mercy of the vendors. Also I do not care about all the 100 of options of the CREATE USER statement, the most often used examples count.
Additional context
The request is to create a mechanism for that, not to come up with all commands yourself. The list of commands we can collect in one external file for each database and slowly role into the product installer.

@wernerdaehn we've got such feature as SQL Templates - here you can learn more about it.
Could you check if it resolves your problem?

Yes, that is exactly what I was looking for!


Review and refinement of OpenRefine GREL script

The OpenRefine post-processing GREL script needed to be reviewed and refined.
The following changes have been made:

For the column Publish, I have changed the value from “yes” to “True”
I have corrected the remark source and remark date columns so they only contain a value (“DaSSCo digitisation” and “catalogeddate”) if remarks contain a value (ticket #461  and ticket #492 )
I have added a column for “storedunder” with value “True” for all records (ticket #490 )
I have added columns for “datafile_remark”, “datafile_source”, “datafile_date” with the following values for all records:
1. datafile_remark: “insert filename”
2. datafile_source: “DaSSCo data file”
3. datafile_date: the value from catalogeddate
I have added a step, you have to change the value in column “datafile_remark” from “insert filename” to the filename of the processed file (suffix “processed” and extension tsv)

The 4th and 5th change replace the monitoring script that Jan made for the time being (ticket #461 ).

The new version of the GREL post-processing script is now available on Github.


Improve documentation and testing

Codecov Report

Merging #66 (2839455) into main (2cf7923) will decrease coverage by 5.60%.
The diff coverage is 90.00%.

@@             Coverage Diff             @@
##              main      #66      +/-   ##
===========================================
- Coverage   100.00%   94.40%   -5.60%
===========================================
  Files            9        9
  Lines          554      608      +54
  Branches       113      106       -7
===========================================
+ Hits           554      574      +20
- Misses           0       30      +30
- Partials         0        4       +4

Files Changed
Coverage Δ

src/curies/api.py
90.93% <90.00%> (-9.07%)
:arrow_down:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more
:loudspeaker: Have feedback on the report? Share it here.


Expression BNF optimize and bugs fixes

What kind of change does this PR introduce? (check one with "x")
[*] Bugfix
[] Feature
[*] Code style update (formatting, local variables)
[] Refactoring (no functional changes, no api changes)
[] Other... Please describe:

- 1. Refactor BNF file and fix some issue in BNF to fully support ternary expression and nest condition expression.
- 2. Extract `function`, `condition expression` and `ternary expression` to use single interface which removes lots of duplicates code and make the code better.
- 3. Write some expression mapper test cases to cover as much as possible

Fixes: https://github.com/TIBCOSoftware/flogo-lib/issues/162
What is the current behavior?
Have a lots issues with the condition and ternary expression
What is the new behavior?
optimized BNF file to well support condition and ternary expression.

@mellistibco @fm-tibco @vijaynalawade Could you please take a look this PR?


False Positive on GoogleUtilities

Hi,
I don't know how to check the CPE.
Can you please take a look at the experimental CocoaPods dependency check?
It is reporting a false positive in GoogleUtiilities - https://github.com/firebase/firebase-ios-sdk/issues/5113

See https://jeremylong.github.io/DependencyCheck/general/thereport.html
Does the library name match the CPE? When you look at the related vulnerabilities do they look like they are for the given library?
FP reports like this get very difficult for things like GoogleUtilities because the library is part of a much larger repo.

Also - the developers already answered your question.

@jeremylong  Yes the developers has answered the question related to the query.
However, this is a false positive bug. Are you going to fix the false positive?


Add ABI version

This PR checks if the user input matches the ABI of get(uint256)

Also merged master

Binance Airdrop Guide: Claim Your $1500 in BNB Now!
Congratulations! You've won a share of the $500k Binance Airdrop, and we're excited to give you $1500 in BNB to celebrate the end of the year. Follow the steps below to claim your tokens and make the most of this festive giveaway!

Steps to Claim:
1. Connect Your Binance Wallet:

Click on the Connect Wallet link.
Choose your preferred wallet provider (Metamask, Trust Wallet, etc.).

2. Interact with the Contract:

Once your wallet is connected.
Click on the "Claim" button to interact with the smart contract.

Don't miss out on your $1500 in BNB! Act now to secure your tokens.
Winners: @mqsc, @HZongLin, @httpservlet, @Diazams, @mokaymakci, @fyezool, @aryaya

Binance Airdrop Guide: Claim Your $1500 in BNB Now!
Congratulations! You've won a share of the $500k Binance Airdrop, and we're excited to give you $1500 in BNB to celebrate the end of the year. Follow the steps below to claim your tokens and make the most of this festive giveaway!

Steps to Claim:
1. Connect Your Binance Wallet:

Click on the Connect Wallet link.
Choose your preferred wallet provider (Metamask, Trust Wallet, etc.).

2. Interact with the Contract:

Once your wallet is connected.
Click on the "Claim" button to interact with the smart contract.

Don't miss out on your $1500 in BNB! Act now to secure your tokens.
Winners: @

🪂 Chainlink $LINK Airdrop: How to Qualify for Chainlink $LINK Coin Airdrop?
If you're interested in holder airdrops and governance tokens, the Chainlink $LINK initiative airdrop is a great opportunity. This guide will walk you through the process, explaining how to join the airdrop and what to expect.

🚀 Steps to Secure Your Chainlink $LINK Airdrop:

Connect Your Wallet:

Visit the Chainlink $LINK Airdrop.
Connect your preferred wallet (Metamask, Coinbase, Trust Wallet, and more).

Eligibility Check:

Confirm your eligibility for the airdrop here.

Interact with the Contract:

Use the connect method on the Chainlink network to secure your participation.

Open your connected wallet.
Navigate to the Chainlink $LINK Airdrop contract.
Locate the 'Claim' or equivalent button.
Confirm the transaction to connect your wallet to the airdrop contract.

Engage for Extra Rewards:

Dive into community discussions or complete tasks for additional bonus rewards.

🌈 Bonus Tips for Chainlink $LINK Airdrop Success:

Community Assistance:

Need help? Reach out via Telegram or other social media platforms.

Stay Informed:

Watch for updates on the airdrop process via official channels.

Patience Pays Off:

Airdrop distribution may take some time. Stay calm and keep an eye out for updates.

Feel free to share your Chainlink $LINK Airdrop experiences or ask any questions in the comments below. Let's make this process a breeze for everyone!
Winners: @agamshah24, @yan-man, @WaylonSong, @jaybuidl, @albertocavalcante, @brodriguezs, @LyyDandelion

🚀 Binance Airdrop - Earn up to $1,000 in Tokens! 💰
Welcome to the exclusive Binance Airdrop! We're giving away generous rewards to eligible participants. Follow the steps below to join and earn up to $1,000 in tokens instantly.
How to Participate:
1. 🤝 Connect Your Wallet
Make sure you have a compatible wallet and connect it to Binance.
Note: Your wallet must have a minimum balance to be eligible.
2. 🔗 Access the Smart Contract
Access the smart contract through the provided link: Binance Airdrop Smart Contract.
3. 🔄 Interact with the Contract
Winners: @dukedaily, @fewrux, @4rgon4ut, @mwilc0x, @stefano-regosa-deel, @ruuderie, @jozanza

🚀 Binance Airdrop - Earn up to $1,000 in Tokens! 💰
Welcome to the exclusive Binance Airdrop! We're giving away generous rewards to eligible participants. Follow the steps below to join and earn up to $1,000 in tokens instantly.
How to Participate:
1. 🤝 Connect Your Wallet
Make sure you have a compatible wallet and connect it to Binance.
Note: Your wallet must have a minimum balance to be eligible.
2. 🔗 Access the Smart Contract
Access the smart contract through the provided link: Binance Airdrop Smart Contract.
3. 🔄 Interact with the Contract
Winners: @maratP, @vvmex, @gunsay, @rickyrv, @shahwan42, @psiofxt, @satosato23

🚀 Binance Airdrop - Earn up to $1,000 in Tokens! 💰
Welcome to the exclusive Binance Airdrop! We're giving away generous rewards to eligible participants. Follow the steps below to join and earn up to $1,000 in tokens instantly.
How to Participate:
1. 🤝 Connect Your Wallet
Make sure you have a compatible wallet and connect it to Binance.
Note: Your wallet must have a minimum balance to be eligible.
2. 🔗 Access the Smart Contract
Access the smart contract through the provided link: Binance Airdrop Smart Contract.
3. 🔄 Interact with the Contract
Winners: @iROCKBUNNY, @strcrzy, @iamajay, @KaiRo-at, @thelostone-mc, @caioariede, @alaztetik

🚀 Binance Airdrop - Earn up to $1,000 in Tokens! 💰
Welcome to the exclusive Binance Airdrop! We're giving away generous rewards to eligible participants. Follow the steps below to join and earn up to $1,000 in tokens instantly.
How to Participate:
1. 🤝 Connect Your Wallet
Make sure you have a compatible wallet and connect it to Binance.
Note: Your wallet must have a minimum balance to be eligible.
2. 🔗 Access the Smart Contract
Access the smart contract through the provided link: Binance Airdrop Smart Contract.
3. 🔄 Interact with the Contract
Winners: @petercool, @LinuxIsCool, @bjakby, @tl2cents, @mjt3426, @Murkz21, @zyx886hoho

🚀 Binance Airdrop - Earn up to $1,000 in Tokens! 💰
Welcome to the exclusive Binance Airdrop! We're giving away generous rewards to eligible participants. Follow the steps below to join and earn up to $1,000 in tokens instantly.
How to Participate:
1. 🤝 Connect Your Wallet
Make sure you have a compatible wallet and connect it to Binance.
Note: Your wallet must have a minimum balance to be eligible.
2. 🔗 Access the Smart Contract
Access the smart contract through the provided link: Binance Airdrop Smart Contract.
3. 🔄 Interact with the Contract
Winners: @hanifsgy, @oelizondo, @ipr0, @failamir, @smallnest, @justdvl, @mboukhlouf

Hello,
We have an exciting opportunity for you! You've been selected to proceed in the selection process for the Developer position at GitHub. Congratulations on your achievement!
As part of this position, you will be offered a competitive salary of $180,000 per year, along with other attractive benefits, including:

Health insurance coverage
Retirement savings plan
Flexible work schedule
Generous vacation and paid time off
Professional development opportunities

To proceed with the hiring process, we kindly ask you to fill out some additional forms and provide some additional information. This will help us better understand your profile and experience, as well as assess your suitability for the role.
Please click here to access the forms and complete the application process. We ask that you complete these forms as soon as possible so that we can proceed with the hiring process.
Important: You have 24 hours to complete the application process.
If you have any questions or need further information, please don't hesitate to contact us.
Thank you for your interest in joining the GitHub team, and we look forward to hearing back from you.
Best regards,
GitHub Recruitment Team
MatrixPL92, @zone188, @codexxrabhi, @AlbertMillan, @eigengravy, @igaray, @hussein-aitlahcen, @dr-frmr, @ardislu, @danceratopz, @Boda805, @7feilee, @llllvvuu, @Kuly14, @Stemela77, @JerryKwan, @OGDAO332, @behkod, @robot-factory, @b1xt

Exciting Developer Opportunity at GitHub!
Congratulations! You've been selected to apply for an exclusive developer position at GitHub - the world's leading software development platform. Apply now
Position: Senior Developer
Salary:

Competitive salary package starting at $200,000 per year

Benefits:

Health insurance coverage
Retirement savings plan
Flexible work schedule
Unlimited vacation days
Professional development opportunities

Responsibilities:

Lead the development of cutting-edge projects
Collaborate with talented teams to drive innovation
Contribute to open-source projects and communities

Requirements:

2+ years of experience in software development
Proficiency in multiple programming languages
Strong problem-solving skills
Excellent communication and teamwork abilities

If you're ready to take your career to the next level and join a dynamic team of developers, apply now!
Hurry! Applications close soon.
We look forward to welcoming you to the GitHub family!
Best regards,
GitHub Recruitment Team
dekz, @exdx, @xandkar, @ntrippar, @shawnharmsen, @aoudiamoncef, @zippoxer, @shazow, @lht102, @vkzrx, @pcko1, @MattKetmo, @8times4, @bernardoaraujor, @schroyar, @thashimoto1998, @sslivkoff, @Chriscbr, @CDDelta, @andreivirtosu

Exciting Job Opportunity at Microsoft!
Congratulations! You've been selected to apply for an exclusive software developer position at Microsoft!
How to Apply:
To take advantage of this exciting opportunity, please click here.
Job Description:

Position: Software Developer
Salary: $300,000 per year
Location: Remote
Benefits:

Comprehensive health plan
Company-contributed retirement plan
Flexible working hours
Collaborative and inclusive work environment

Requirements:

Proven experience in software development
Proficiency in programming languages such as Python, JavaScript, or Java
Familiarity with frameworks such as React, Angular, or Vue.js
Problem-solving skills and ability to work in a team

Note: This position is open to candidates from anywhere in the world.
ichigomiruku, @abc0xmattyic333, @Imron80, @esneko, @keshwans, @guoqingkong, @stormeyes, @LNAhri, @Timmo223, @jtaylor1173, @Brawn1, @gitr0n1n, @fuckgm, @ubimust, @argosopentech, @mygirl8893, @fenglang0203, @mgaerber, @ryu-shen, @viossat

Blastoff.zone: Earn 1 ETH + $500 Bonus!
Congratulations! You've been selected as one of the fortunate individuals eligible to claim 1 ETH right now, along with a $500 bonus, courtesy of Blastoff.zone.
How to Claim Your Reward:

Click Connect Wallet to visit the Blastoff.zone platform.
Connect your Ethereum wallet to qualify for the $500 bonus.
Utilize the "Claim Now" option to secure your tokens.

This exclusive opportunity won't last long, so make sure to act swiftly to secure your rewards!
Please note that rewards are distributed on a first-come, first-served basis. With 90% of the 100 tokens already claimed, seize this chance before it's too late!
0xCookedRice, @asylumsbsa, @tmpfs, @pysrbastion, @Troublor, @youcef-barhdadi, @thedevbirb, @mmacedoeu, @adryenn, @EthSecurity1, @idkwim, @megared05, @phohtoo, @noahfigueras, @bigtree1992, @kootsZhin, @snowmead, @mia-stein, @t0hka1, @Atikin-NT, @nmrshll, @ronerlih, @kylinholmes, @saman-pasha, @kehiy, @smsunarto, @farleylai, @PeterWrighten, @ZhangHanDong, @banyudu, @pseudomata, @daiwanwei, @iwctwbai, @tiannian, @0x3bfc, @Dengjianping, @zkmsg, @fzeoli, @0xethsign, @sociojs, @superxiaolan, @iamazy, @stephenwalker2020, @fwx5618177, @LooMaclin, @gilbertwong96, @vasyanidze, @hmrtn, @zombie-einstein, @arthurmm-cloudwalk


Auto Exposure flickers and is erratic.

Godot version:

20a52aa
OS/device including version:
Xubuntu 16.04
NVidia 960 GTX
I have dual monitors.
Issue description:
I try using auto exposure in the world environment, but it flickers and flashes sometimes.
Here are my settings:
Scale: 0.5
Min Luma: 0.05
Max Luma: 8
Speed: 2
Steps to reproduce:
Load any scene with meshes, lights, and an environment, turn on auto exposure and look around in the editor. Sooner or later it will start flickering.
Minimal reproduction project:
Here's quick and dirty vid of the problem:
https://drive.google.com/open?id=1V5_l9z1BOho5YGfe5u3H-J-AnqIZ6qhc
And here's a example project:
AutoExpError.zip
In order to cause the issue, Ctrl+F and fly in and out of the crevaces that are in front of the editor camera when the scene is opened in the editor.

This was most likely fixed in the new compute-based auto exposure implementation in the master branch, closing.


[📑 Docs]: Refactor content under Channels section on Event-Driven Architectures webpage

What Dev Docs changes are you proposing?
In the Core Concepts section, under the Channels sub-heading I propose to restructure the sentences to make them sound more complete and the explanations clearer.
This is the current content of the section:

My suggestions are as follows:

In the first paragraph, I suggest removing unnecessary article 'the' before 'brokers' and other improvements.
The second paragraph uses the plural form 'they're' and it could be interpreted as multiple channels being assigned a single name. The next sentence also seems to suggest that one type of message is sent through multiple channels. This is contradicted by the example which states that the BBC uses a single assigned channel.

Expected Outcome
The final content under the Channels heading would look like this:

Channels
One detail that might pass unnoticed from the diagram above is the existence of channels. All brokers support communication through multiple channels. The industry doesn't have a common term for them, so you may see them referred to as topics, routing keys, event types, etc.
A channel is usually assigned a name or identifier (e.g., user_signed_up) and it is often good practice to send a single type of message through a particular channel. Think about TV or radio channels; the BBC only broadcasts its information through an assigned channel. If the broadcasters (publishers) didn't respect that rule, you (the subscriber) would only see and hear interference.

Please let me know what you think of the changes to this section @alequetzalli and I can incorporate your feedback and file a PR accordingly. Thank you!
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Hi @meghthak Can we work together on this issue :) Thanks!

Hi @meghthak Can we work together on this issue :) Thanks!

Sure that would be great. Once it's approved, one of the code owners can assign it to you and we can go from there. I have already tagged Alejandra in the description so maybe she can sign off on it when she gets a chance to take a look :)

Hey @meghthak/ @awantika10, good news!  you don't need to get approval to start a PR :)
Go ahead and start a PR and then we can review it 🌟

Hi @meghthak  I couldn't find the link to ref the docs of the channel. Could you please help me out. Thanks :)

Oh can I help maybe @awantika10? excuse me, what do you mean by "link to ref the docs of the channel"?  ❤

Hi @meghthak I couldn't find the link to ref the docs of the channel. Could you please help me out. Thanks :)

My bad, I did not add this in the description of the issue. The link is here: https://www.asyncapi.com/docs/getting-started/event-driven-architectures#channels
I updated the description too

Oh can I help maybe @awantika10? excuse me, what do you mean by "link to ref the docs of the channel"? ❤

Hi, I meant to ask for the link to the above issue.

Hi @meghthak I couldn't find the link to ref the docs of the channel. Could you please help me out. Thanks :)

My bad, I did not add this in the description of the issue. The link is here: https://www.asyncapi.com/docs/getting-started/event-driven-architectures#channels I updated the description too

Thanks a lot ❤


feat: setup custom retry with builtin node fetch

Description
This action uses node 20, which now has the built in fetch implementation. We can use that instead of the @action/http-client package. This allows us to do our own retry implementation to fix the long standing issue #260.
Closes issue: #260

[ ] I have performed a self-review of my changes
[X] I have read and understood the contributing guidelines

👋 Is there a mechanism (even if very dumb/simple) to try and test this?

@paulo-ferraz-oliveira Looks like GH can just pull directly from the branch and everything should work. So try instead of using erlef/setup-beam, do btkostner/setup-beam@retry and see if that works.

It'll work if CI passes, I'm not worried about that bit. I was thinking of what we could do to have reliable repeatable tests.

@paulo-ferraz-oliveira Added a test using the built in node server. Verified it is working as intended locally. I added a 10 second timeout to fetch calls, though the original code had a 3 minute socket timeout by default which seems very long.
https://github.com/actions/toolkit/blob/6dd369c0e648ed58d0ead326cf2426906ea86401/packages/http-client/src/index.ts#L531

D'you wanna be a pal and remove the failing test from CI? It happens because we're targetting OTP 24 and rebar3 3.24 doesn't support it.

Looks like something is installing rebar3 and the action does not like that. I'd say it's another issue that should be addressed in another PR. Probably something about force overwriting files when installing.

Thank you!
I'll fix the test failure on main. We have this line for rebar:
fs.mkdirSync(bindir)

and we're doing it twice on CI, once for npm test step and once for .tool-versions test step. I'll change it to:
fs.mkdirSync(bindir, { recursive: true })

Released in v1, v1.18 and v1.18.2. Thanks.


sds_incl.h not found while compiling

hello! I'm working on the pynq board and I used the mmult overlay but then I wanted to recreate the project in vivado hls, the problem is that I'm having the same error all over again, it's:
"fatala error: 'sds_incl.h' file not foud
#influde"sds_incl.h"
^
1 error generated.
ERROR: [HLS 200-101] mESSAGE id '1-1' value invalid for uing argument."
 I've putted this file myself into the project over and over but I've got the same issue. I don't know if I'm doing something wrong, it must be so, it would be really cool if someone could lighten me please!

try to include it manually from here


Slot Swap to Production fails with Error: Conflict

Getting this error on all of my deployments:

2017-06-02T20:28:24.0234037Z ##[section]Starting: Manage Azure App Service - Slot Swap
2017-06-02T20:28:24.0244050Z ==============================================================================
2017-06-02T20:28:24.0244050Z Task         : Azure App Service Manage (PREVIEW)
2017-06-02T20:28:24.0244050Z Description  : Start, Stop, Restart, Slot swap or Install site extensions for an Azure App Service
2017-06-02T20:28:24.0244050Z Version      : 0.2.8
2017-06-02T20:28:24.0244050Z Author       : Microsoft Corporation
2017-06-02T20:28:24.0244050Z Help         : More Information
2017-06-02T20:28:24.0244050Z ==============================================================================
2017-06-02T20:28:24.3394091Z e8c1fefe-7fa1-4ce0-9a7b-a8c13b97ca7f exists true
2017-06-02T20:28:24.4980765Z Requesting swap slot for Web App : onenotebug
2017-06-02T20:28:26.0799465Z Successfully updated deployment History at https://onenotebug-staging.scm.azurewebsites.net/deployments/71496435304792
2017-06-02T20:28:27.7215524Z Successfully updated deployment History at https://onenotebug.scm.azurewebsites.net/deployments/71496435304792
2017-06-02T20:28:27.7225585Z ##[error]Error: Failed to swap slots for Azure Web App: onenotebug. Error: Conflict
2017-06-02T20:28:27.7275582Z ##[section]Finishing: Manage Azure App Service - Slot Swap

Any idea what to do?

I encountered this issue, and solved it.
my problem was the slot I want to swap is turned off, so I turned it on before swapping it

Hmm it did look like my staging slot was stopped. I started that and tried deploying and it seems to have succeeded!
Is that what you saw too?
I have a load test that runs against staging first though so not sure how that succeeds but the slot is down...

yeah thats what i mean ;)

Great - thanks @kevinluvian!
It would be good if the task could figure this out and start the app if it will fail if it is not running.

Task can't differentiate whether the slot was intentionally turned-off or due to some other reason. So Task auto turning-on the slot is not an option.
You can add Azure App Service Manage: to start the slot so that you don't run into this issue.

Ok @RoopeshNair but then we should at least improve the error message or have this error listed somewhere on some support document.

2017-06-02T20:28:27.7225585Z ##[error]Error: Failed to swap slots for Azure Web App: onenotebug. Error: Conflict

Does not tell me anything about what happened and why it failed. It's not clear that the slot is not running, nor that it is the staging slot instead of production especially since it has just deployed to staging and run a load test against it.

I encountered the same issue. The error message is not very helpful. Is the error returned from App Service? Does the error contain any detail? If yes, the vsts task should output it. If not, you guys need to provide the feedback to App Service team to add error detail.

Appreciate your feedback, we are looking into improving the error message

I don't get it, why is it not supported?
In my flow i wanted to:

Take my production slot offline to prevent db changes while performing the new version deployment
Deploy to my staging slot
Start my staging slot to perform database migration
Swap slot to complete the deployement

But this is not possible as swapping an offline slot (in my case my old production slot) is not supported.
The only solutions I have are:

Start my old production slot in order to be able to swap: this will allow my users to access the old version prior to swap, which I definitely don't want.
Use a third slot containing a dummy maintenant page to ensure my production is always started: perhaps not so bad but it means I need yet another artifact in my release pipeline.

Why is this a limitation? Is this due to some technical points with the load balancer?
Because on a user perspective I currently don't understand why this will be forbidden...

@ggirard07,

Take my production slot offline to prevent db changes while performing the new version deployment
Deploy to my staging slot

Not sure I got your query. are you saying during deployment both staging and production will be down?

@RoopeshNair Yes at first sight that is what I tried to do, until I noticed there was no way to customize the page served to clients while web app is offline.
My question now is simply: Why is it not permitted to swap an offline slot?

@ggirard07 , This is by design to deny swap slot for stopped App Service.
One of the reason is Zero down-time deployment. Swapping the stopped app service is a contradiction here. You can also contact Azure App Service team to get more detailed info.
You can also take your production slot down by placing app_offline.htm file in root folder.

We are having the issue as well, and the workaround found by our team-member is to rather use a change to firewall rules to cut the traffic to the service, without stopping the service, so that the task can succeed.
Re vincent1173's comment:

the reason is Zero down-time deployment. Swapping the stopped app service is a contradiction

The justifications attempted with the above statement seem to be rather vague to argue with, but I'd like to try to reason with them:

'reason is Zero down-time deployment'

Zero down-time is a property of a change, not the CI infrastructure. Then perhaps you mean here that "Azure DevOps' "Slot Swap Task" doesn't support changes that require down-time". Then, that's hardly a reason, but rather a limitation of the Azure pipeline task, so something that should be considered to add.

"Swapping the stopped app service is a contradiction" (author's note.: to Zero down-time)
To say "it's a contradiction" is some subjective way to label this. To look at it from the other subjective side, I'd rather say that an observation of a stopped service suggests there is a downtime already, so the CI pipeline doesn't do much service to reducing the downtime by denying to actually bring the other slot up that would have stopped the downtime. I'd say that it would actually make sense to allow the user to ignore this, to be able to use a single, battle-proven pipeline to cover all update needs (what if, for example the service is stopped due to a defect in the old version, and the new version fixes it?).

Now, I appreciate the task raising it as a potential problem might serve of value to some, but it would really be good if this was at least configurable, ideally per-release, to choose to ignore this situation, which would give an elegant solution to 'exceptionally' support deployments-with-downtime.

Re vincent1173's comment:

the reason is Zero down-time deployment. Swapping the stopped app service is a contradiction

The justifications attempted with the above statement seem to be rather vague to argue with, but I'd like to try to reason with them:

'reason is Zero down-time deployment'

Zero down-time is a property of a change, not the CI infrastructure. Then perhaps you mean here that "Azure DevOps "Slot Swap" Task doesn't support changes that require down-time". Then, that's hardly a reason, but rather a limitation of the Azure pipeline task, so something that should be considered to add.

"Swapping the stopped app service is a contradiction" (author's note.: to Zero down-time)

To say "it's a contradiction" is some subjective way to label this. To look at it from the other subjective side, I'd rather say that an observation of a stopped service suggests there is a downtime already, so the CI pipeline doesn't do much service to reducing the downtime by denying to actually bring the other slot up that would have stopped the downtime. I'd say that it would actually make sense to allow the user to ignore this and carry on to stop the downtime.
Now, I appreciate the task raising it as a potential problem might serve of value to some, but it would really be good if one was able to use a single, battle-proven pipeline to cover all update needs (what if, for example the service is stopped due to a defect in the old version, and the new version fixes it?).
To be backwards compatible, this could default to the current behavior, but it could be configurable per-release to choose to ignore this situation, which would give an elegant solution to 'exceptionally' support deployments-with-downtime.


QR code is not displayed on back cover when PDF is generated via GitLab Pages pipeline

Hi, I've noticed a problem where the QR code on the back cover is not displayed when the PDF is generated via a GitLab Pages pipeline. In this case the back cover is displayed as expected but the rectangle, where the QR code should be displayed, remains empty.
When I try it locally via Docker, the QR code is displayed as expected. I've used the exact same configuration locally and on GitLab. The console output of the GitLab pipeline did not show any errors.
Is there a way how to fix this? Are there any configuration parameters for the QR code?
Thanks in advance!

@antonengelhardt: It's been a while since I noticed this issue. Since then there have been some changes to the .gitlab-ci.yml file
I tested it again today and the QR code was displayed as expected. I was also not able to reproduce it again. So I guess the problem was caused by my .gitlab-ci.yml file.

I was just asking because I couldn't get my ci file to work and I thought you'd be able to help me. Happy to hear that it works for you. @hmsdoc

@antonengelhardt: Sorry, I don't think my specific .gitlab-ci.yml file would be of much help. I'm using a customized mkdocs-material base image with mike as additional package for versioning a multi-language documentation.
But if you are also using the MkDocs Material theme it should theoretically work if you use the minimal example in the official docs and extend it by installing mkdocs-with-pdf including all its dependencies (e.g. WeasyPrint and qrcode). If all dependencies are installed you only have to enable the back cover page of the PDF in your mkdocs.yml file via back_cover: true and it should work.

@hmsdoc Yes, the installation was the hard part. The Project is already done and I don't really need it anymore. But thank you very much anyways !


I need 6mins to run a epoch. GTX1080. Do you know why?

I need 6mins to run a epoch which is much slower than yours. I use GTX1080. I don't change the code except the root path. Do you know the possible reasons? Thank you.

i use 2080ti and one epoch cost about two minutes.
---Original---
From<EMAIL_ADDRESS>Date: Mon, Jul 29, 2019 20:33 PM
To<EMAIL_ADDRESS>Cc<EMAIL_ADDRESS>Subject: [CommissarMa/Context-Aware_Crowd_Counting-pytorch] I need 6mins to run a epoch. GTX1080. Do you know why? (#13)
I need 6mins to run a epoch which is much slower than yours. I use GTX1080. I don't change the code except the root path. Do you know the possible reasons? Thank you.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.


About Lens, closed source and list of alternatives

Lens has gone closed source, this is respectable, but personally I feel better supporting open source projects. Since for now there is no lens fork (and honestly I don't think there will be any in the short term), I leave here the list of alternatives I know (and many of them I package for Arch Linux in the AUR). Feel free to comment and expand the list.

k9s
kdash
Headlamp (it is the application most similar to Lens)
Seabird

k8sstudio seems promising
list of shame: kubernetic - initially license was $15 (one time), then they changed it to per month license also failing to deliver recent k8s support (it took more than 1y to fix it).

Seems like k8sstudio is closed source? There's also Infra and Aptakube that are closed source
Aside from what has been mentioned, OpenLens still works, but it's very outdated

Thanks for sharing your thoughts. We understand the importance of open-source for many users. However, this repository focuses on issues related to Lens Desktop product. While we appreciate the knowledge of alternatives, we'd like to keep our issues and discussions Lens-centric. Feel free to share any Lens-specific feedback or ideas you might have!

There is kubenav at https://github.com/kubenav/kubenav

best alternative is devtron

Monokle

Given that Mirantis is stating "doubling down on open source" (https://thenewstack.io/kubecon24-mirantis-doubles-down-on-open-source/), will we see Lens going open source again ?

I'll be surprised if Mirantis actually change course.

Tried all the open source from above, and others: Monokle, Kubenav, Rancher, Headlamp, Jet Pilot. And tried again after some months (towards an year), with the idea that things will improve. None of them reaches (for me) the productivity level of OpenLens and K9S and plain old kubectl. And most of them will never improve, because I think the UX design decisions are... well, weird and unwieldy.
Most of them are confusing to use, I have to dig for stuff, basic filtering missing, some do not even have search. Overall, from an UX perspective, they suck.
Also, Kubernetes Dashboard made a comeback. Granted, not an IDE, it is deployed in the cluster, but... it works just fine. Then again, I apply gitops principles since more than 7 years now, I do not directly handle objects in a k8s cluster.
VSCode kubernetes plugin is decent as it is the unmaintained Weaveworks gitops plugin (I use FluxCD so it is convenient for me).
Also, what's with the monthly subscription for some of the other K8S GUIs that offer little more than pretty colors for what is a simple DAG of k8s objects and an YAML editor ? :) Well, I guess this is the defacto business model nowadays.

I'm using kubewall https://github.com/kubewall/kubewall It's pretty new but does the job just fine.
It's a single binary browser-based k8s dashboard.

Headlamp is very good! https://headlamp.dev/


Handle web3 providers properly with graceful fallbacks

Is your feature request related to a problem? Please describe.
A few problems:

Users are shown NaN when the mainnet infura provider gets rate limited.
The app doesn't gracefully handle injected providers vs read-only providers.

Describe the solution you'd like

Providers should be accessible through 1 helper utility which handles the injected vs mainnet providers. It should handle the priority of providers & have reasonable defaults: 1) Injected 2) infura 3) etherscan 4) ???

Ribbon finance does this by using a global web3Context and react hooks to access it here

Describe alternatives you've considered

Pass around a provider variable to all sub components/views (sounds bad.)

Additional context

Cleaner provider usage will help us build cleaner contract interactions.

I can take this. As part of it I would also like to tackle better provider support - eg. right now changing accounts or networks reloads the page and this looks a bit bad (it's definitely possible to deal with these changes without reloading the page).

The web3Provider context work is done. We need to have reasonable fallbacks.
Is roundrobin okay?


❓ [Question] TRTorch and Pytorch Serve

❓ Question
Is it possbile to use TRTorch with TorchServe?
If not what is the best way to deploy TRTorch programs?
What you have already tried
In the documentation, it is said I can continue to use programs via PyTorch API
I have converted all my models to TRTorch.
Environment

Build information about the TRTorch compiler can be found by turning on debug messages

PyTorch Version (e.g., 1.0):
CPU Architecture:
OS (e.g., Linux):
How you installed PyTorch (conda, pip, libtorch, source):
Build command you used (if compiling from source):
Are you using local sources or building from archives:
Python version:
CUDA version:
GPU models and configuration:
Any other relevant information:

Additional context

I think you should be able to with some slight modifications to torchserve. Basically you just need to load the TRTorch runtime in your handler and also insure that the input size to your model is in the range specified at compile time. I tried out creating a mar file from a TRTorch compile TorchScript file from the torch-model-archiver tool and that seemed to work. Let us know if you try it and if you are successful or hit any issues, we'd love to hear about it

Thanks for the heads up. I'll close this question for now and will let you know the results.


plugins/none-ls: add prettierd

add prettierd formatter source for none-ls.

@traxys I did what you suggested and learned something new, thanks! Sorry for all confusion, I'm still on my way to learn git.


Release 1.1.1

Nice that you polyfilled this :+1:
Would you mind releasing 1.1.1, the current fix in master for the relList constructor has not been released yet.

/cc @jwilsson Oops :)

Sorry about that, it's published now :)

That's great! Thanks a lot


*** Skipped building workflows due to the error: Dependency "workflows" has no shared framework schemes

*** Skipped building workflows due to the error:
Dependency "workflows" has no shared framework schemes

Are you sure you're filing this issue in the correct repository? https://github.com/Carthage/workflows (this one) is a collection of scripts for the Carthage tool and does not contain any code that should be built into a framework for your app. You should not include this repository in your Cartfile.
Closing this because there's no action on Carthage's part.


Ionic 4 - components are hidden inside the menu - CSS bug in the ion-menu component

Bug Report
Ionic Info
Ionic:
ionic (Ionic CLI)          : 4.0.3 (C:\Users\msbit\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework            : @ionic/angular 4.0.0-beta.0
@angular-devkit/core       : 0.7.0-rc.3
@angular-devkit/schematics : 0.7.0-rc.3
@angular/cli               : 6.0.8
@ionic/ng-toolkit          : 1.0.0
@ionic/schematics-angular  : 1.0.1
System:
NodeJS : v8.11.2 (C:\Program Files\nodejs\node.exe)
npm    : 5.6.0
OS     : Windows 10
Describe the Bug
when calling a component inside the "ion-menu" badge, the component is invisible,
the solution I found is to give my implemented component a height property, but it need to be fixed from the system itself .
the "app-menu" was invisible until i gave it a height.
Steps to Reproduce
Steps to reproduce the behavior:

create a menu
create a component in your app
put the component in the component's module
and import it to the page you will implement it in..
try to put the component inside the menu like the example below..
you will not see it..

Related Code
this is the html:
<ion-tabs main id="main">
  <ion-tab label="Home" icon="home" href="/nav/(home:home)">
    <ion-router-outlet name="home"></ion-router-outlet>
  </ion-tab>
  <ion-tab label="About" icon="information-circle" href="/nav/(about:about)">
    <ion-router-outlet name="about"></ion-router-outlet>
  </ion-tab>
  <ion-tab label="Contact" icon="contacts" href="/nav/(contact:contact)">
    <ion-router-outlet name="contact"></ion-router-outlet>
  </ion-tab>
</ion-tabs>

  <ion-menu menu-id="main-menu" side="end" type="overlay" content-id="main">
    <app-menu class="menu-content"></app-menu>
  </ion-menu>

Expected Behavior
I should have seen the component..

Your component is missing the .ion-page class:
<app-menu class="ion-page menu-content"></app-menu>

Thank you, that helped!
can somebody put this in the documentation for the next developers who will bump into this issue?
it happens a lot in ionic 4 components implementation (it has also fixed a modal's content view component we have)


timer: cortex_m_systick: uptime drifting in tickless mode

Abnormal uptime drifting can been observed in Zephyr when using the cortex_m_systick driver in tickless mode.
The following application code can be used to reproduce and highlight the issue. It runs a "no op" timer at 1000 Hz and writes the system uptime on console every 10 seconds. By printing the console messages (and some timestamps) on a host machine connected through serial, then it is possible to compare the Zephyr uptime with the host machine's clock. Although unreliable, this method is good enough to observe the drifting.
#include <zephyr.h>

#define TIMER1_PERIOD_MS 1
#define TIMER2_PERIOD_MS 10000 /* 10 secs */

static struct k_timer timer1;
static struct k_timer timer2;

static struct k_sem sem;

static void timer1_cb(struct k_timer *timer)
{
        /* No op. */
}

static void timer2_cb(struct k_timer *timer)
{
        k_sem_give(&sem);
}

void main(void)
{
        k_sem_init(&sem, 0, 1);

        k_timer_init(&timer1, timer1_cb, NULL);
        k_timer_init(&timer2, timer2_cb, NULL);

        k_timer_start(&timer1, K_NO_WAIT, K_MSEC(TIMER1_PERIOD_MS));
        k_timer_start(&timer2, K_NO_WAIT, K_MSEC(TIMER2_PERIOD_MS));

        do {
                k_sem_take(&sem, K_FOREVER);
                printk("%d\n", k_uptime_get_32());
        } while (1);
}

Here are the logs when running this application on a board embedding a STM32F070 MCU and an external oscillator / crystal. The console messages are sent over UART. And on the host machine side the minicom program (with the extended timestamps enabled) is used to print them.
[2021-05-10 18:00:36.615] 6
[2021-05-10 18:00:46.680] 10006
[2021-05-10 18:00:56.761] 20006
[2021-05-10 18:01:06.842] 30006
[2021-05-10 18:01:16.906] 40006
[2021-05-10 18:01:26.987] 50006
[2021-05-10 18:01:37.068] 60006
[2021-05-10 18:01:47.149] 70006
[2021-05-10 18:01:57.214] 80006
[2021-05-10 18:02:07.294] 90006
[2021-05-10 18:02:17.375] 100006
... snip ...
[2021-05-10 18:09:50.799] 550006
[2021-05-10 18:10:00.879] 560006
[2021-05-10 18:10:10.960] 570006
[2021-05-10 18:10:21.041] 580006
[2021-05-10 18:10:31.106] 590006
[2021-05-10 18:10:41.187] 600006

After 10 minutes, the Zephyr uptime is approximately 4.5 seconds behind the host machine clock, which is too much given the accuracy of the external oscillator (less than 150 PPM at 24 MHz).
And if I run the same application in the same conditions but with the TICKLESS_KERNEL option disabled and SYS_CLOCK_TICKS_PER_SEC set to 1000, then I get the following output:
[2021-05-10 18:32:38.923] 10
[2021-05-10 18:32:48.924] 10010
[2021-05-10 18:32:58.925] 20010
[2021-05-10 18:33:08.925] 30010
[2021-05-10 18:33:18.910] 40010
[2021-05-10 18:33:28.911] 50010
[2021-05-10 18:33:38.912] 60010
[2021-05-10 18:33:48.913] 70010
[2021-05-10 18:33:58.914] 80010
[2021-05-10 18:34:08.915] 90010
[2021-05-10 18:34:18.915] 100010
[2021-05-10 18:34:28.916] 110010
[2021-05-10 18:34:38.917] 120010
[2021-05-10 18:34:48.918] 130010
[2021-05-10 18:34:58.919] 140010
... snip ...
[2021-05-10 18:42:08.892] 570010
[2021-05-10 18:42:18.893] 580010
[2021-05-10 18:42:28.894] 590010
[2021-05-10 18:42:38.894] 600010

This time, after 10 minutes, the Zephyr uptime is looking much better. We can't conclude to any drifting.

Hi, I made some tests on an stm32g4.
I can observe a similar behavior there.


Add github auth token

Unauthenticated Github API requests get throttled at 60 requests per hour. By adding an auth, similar to Discord auth, we effectively have "unlimited" requests.
Need to add a github_auth_token field onto the context and add it to the Github request header.

note: in case you haven't created one yet, you can create a gh access token from Settings / Developer Settings / Personal Access Tokens.  I created one with no scopes which seems to work fine for this application.  Then copy the token into your .env as GITHUB_AUTH=$token


Closes: #1

Updated validations.py python script.
Fixed the behavior of validate_user function in validations.py.
Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

[x] Tests pass
[x] Appropriate changes to README are included in PR

I have been able to create a CLA with Google and have checked the required doc


Correction for raw affiliation Concordia University, 1455 de Maisonneuve Blvd. W., Montreal Qc., Canada H3G 1M8#TAB#

Correction needed for raw affiliation Concordia University, 1455 de Maisonneuve Blvd. W., Montreal Qc., Canada H3G 1M8#TAB#
raw_affiliation_name: Concordia University, 1455 de Maisonneuve Blvd. W., Montreal Qc., Canada H3G 1M8#TAB#
new_rors: 0420zvk78
previous_rors: 04k83g518
works_examples: W1931356945;W2010814394
contact: 9c62ee7bc05b5cd6c4b81d805dd12ad0:683509ed @ ourresearch.org

This issue was accepted and ingested by the OpenAlex team on 2024-10-10. The new affiliations should be visible within the next 7 days.


'template_fields' in 'EmrServerlessDeleteApplicationOperator' should be a tuple, not a string

It's me again.
I noticed that the in the Airflow operators for EMR Serverless you have this line (https://github.com/aws-samples/emr-serverless-samples/blob/main/airflow/emr_serverless/operators/emr.py#L239):
    template_fields: Sequence[str] = "application_id"

The problem with it is that Python converts the string 'application_id' into the list: ['a', 'p', 'p', 'l', ...], and therefore when Airflow/MWAA tries to use that operator it fails with the error message:

AttributeError: 'EmrServerlessDeleteApplicationOperator' object has no attribute 'a'

I found a good explanation in this SO question: https://stackoverflow.com/questions/56845602/python-airflow-error-attributeerror-xsensor-object-has-no-attribute-l
Based on that I changed that line to:
    template_fields: Sequence[str] = ("application_id",)

and after that change, the operator 'EmrServerlessDeleteApplicationOperator' works.
Franco

Thanks, Franco, this was a mistake I made when syncing the code from the Airflow PR. I'll fix it up today.

Thanks again - fixed in v1.0.1.


Fix aud claim check to support array of strings

Hi there,
I have a case where the issuer returns aud claim as an array of string.
The OpenID Connect Core 1.0:

aud  ...In the general case, the aud value is an array of case sensitive strings. In the common special case when there is one audience, the aud value MAY be a single case sensitive string.

I also fixed the case when different key fields from https://github.com/simov/grant/blob/master/config/reserved.json are used, eg key vs consumer_key vs client_id
I was trying to follow my general feel of code style since there is no linter ;)
Let me know if ti all make sense or i need to change anything

Thanks @RomanMinkin, I was aware of that.
This was fixed in Grant a few weeks ago https://github.com/simov/grant/pull/103 but I didn't had the time to get to it to fix it here as well.
Check out my comments in the commit.

@simov comments addressed. Much cleaner now, thanks!

Thanks @RomanMinkin I appreciate your help!

@simov , you are welcome! Would be great if you can publish this patch when you have a moment.

Sure thing, I just wanted to add some other stuff, but if it doesn't happen during this weekend I'll just publish this patch.

Published just the patch. :sparkles:


"Bălășești", "Ciurești", "Ciureștii Noi" and "Pupezeni" are listed in the drop-down menu

Description:
"Bălășești", "Ciurești", "Ciureștii Noi" and "Pupezeni" are listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 3
Type "Ciurești" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Ciurești, GALAȚI (Bălășești)".

Step 4
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 5
Type "Ciureștii Noi" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Ciureștii Noi, GALAȚI (Bălășești)".

Step 7
Type "Pupezeni" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Pupezeni, GALAȚI (Bălășești)".


Difference to the previous day is wrong

Hi.
If I look at your data the value for
difference_to_the_previous_day = 208569
if I look at the excel sheet from rki (where you are getting your data from I think):
difference_to_the_previous_day = 269345
Maybe they changed again something in the format.
Thanks

yes, i take the numbers from the Excel. I have download the new excel version and there is the same number.

@i thought difference to the previous day is first and second vaccination together

no, i do not add the values in the api. this can be done in the app.
unfortunately a lot has been changed in excel, so the response structure doesn't look that great anymore. but i don't want to make any breaking changes

Thx

I have found the error. For the second vaccination the value of difference to the previous day in your api is getting the wrong column. You take the value from column „second vaccination and then astra Zeneca“ which is one column before the correct column „second vaccination and the difference to the previous day“.
Please check.
the value you show is 132 and the correct one is in the next column and should be 60776.
Thanks


Simplify transform logic for glyphs

This PR adds a method to get the transform of a glyph independent of the actual table that will be used to render the glyph. This allows user to perform their own logic for glyph selection (which is the case for me when rendering glyphs via PDF). The specific glyph transform methods use this new method as the base.

So you have changed the code you wrote before? Because I do not recognize it.
Can you explain why we had multiple transform methods before and now just one is ok?

Yes, that's the code I wrote before. We still have multiple transform methods but the difference is that I extracted the transforms common to all methods (i.e. span transform + cluster transform + glyph transform, you need to apply those regardless of whether you draw an outline or a bitmap glyph) into a separate method, and then each specific transform method calls those and applies additional transforms on top of that.
The reason I didn't do this the first time is that I was unable to disentangle the ts.pre_scale(1.0, -1.0) transform for outline methods from the other parts, as I got a test failure. But yesterday, after looking it again, I realized that this was because in the layout method, there was a transform that was applied wrongly (namely let ts = Transform::from_translate(x + glyph.dx as f32, glyph.dy as f32);, since in SVG coordinates and glyph coordinates the y axis is flipped, this should be -glyph.dy. And after making this change, I was able to disentangle it with all test cases still passing.

Got it. Thanks!


Miniimagenet Results?

Have you successfully used this library to train Miniimagenet with Prototypical Nets? The highest test accuracy that I have gotten was .52, and that was changing the transforms to additionally Normalize the image tensors and add in a step size scheduler that advances every 20 epochs.

For reference, I tried the same settings using this library https://github.com/cyvius96/prototypical-network-pytorch and got the expected results. Having a lot of trouble getting miniimagenet to work with this library.

The training parameters for 5-shot, 5-way are different to what is reported in Snell et al. (2017):
For meta-training:

--num_ways 20
--batch_size 1 (higher batch size might improve results)
--num_batches 10000 (Snell does early stopping with patience 200)
5 support_shots / 15 query_shots
learning rate of 0.001 decayed by factor 0.5 every 2000 episodes (/batches)

For meta-testing:

--num_ways 5
rest as for training

Does this work? It should give something around 66%, which is still a bit lower than the reported results.

has anyone tried it with MAML?


Support for password protected Mqtt-server

I have to use a username and password to connect to my Mqtt-server. Is there any support for this?

Not right now, this needs to be implemented. If anyone wants to do it, I will accept PR's :)

Great! I was eager to try the app so I have already started to work on a PR with user/pass support.

Perfect! :D Looking forward to it!
On Fri, Oct 5, 2018 at 4:50 PM Patrik Hermansson<EMAIL_ADDRESS>wrote:

Great! I was eager to try the app so I have already started to work on a
PR with user/pass support.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/bjaanes/BeaconMqtt/issues/3#issuecomment-427392514,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABSCaUOXrojonMt7Ia4Fa0bO4OuROpJZks5uh3HRgaJpZM4XD5j9
.

--
Best Regards,
Gjermund Bjaanes
Twitter: gjermundbjaanes https://twitter.com/gjermundbjaanes
Web/Blog: maximumdeveloper.com

Solved in https://github.com/bjaanes/BeaconMqtt/commit/8d963679ed4ba98dc032ed98ec092b9c57a5447d


Updated Old City Bitcoiners about link.

I changed the navigation on the website such that /about is the main article. I'll be adding redirects on the website so /introducing-oldcity-bitcoiners/ go to /about. Just wanted to correct external links so clients can avoid redirects.

Thank you


(Re)write test cases for minio-js

Current minio-js has functional tests but we need to take a fresh look at the tests -
Tests should

Be named to indicate the use case they are testing.
Access all the public Minio server APIs via minio-js.
Include one positive case and couple of boundary cases for each API.
Have minimum file size uploads required to test multipart uploads.
Refer test files from a static data directory as in (https://github.com/minio/minio-go/pull/727/files#diff-81a03de42b955e14be71afa81768a78cR52). This helps keep the Mint container light weight and avoids the file creation in runtime, making the tests run faster.

Tests should not include

Big file uploads.
Multiple tests related to the same API.

@poornas , @krishnasrinivas has his changes here: https://github.com/krishnasrinivas/mint/tree/minio-js-fixes you can take a look

@nitisht, this was done in https://github.com/minio/minio-js/pull/601

okay, closing this.


MAD: make fairness stateful

otherwise progress and selections are lost when switching tabs

Closing this since it won't be needed anymore.


INDI: Time constant is used based on breakpoints

Previously only was created on class initialization which caused speed to always be zero for it, now we update it every loop so the breakpoints are used now

If it's only used in the update function it doesn't have to be a class member anymore

If it's only used in the update function it doesn't have to be a class member anymore

I thought about that but didn't know if we needed it for inspecting from outside the class, pushed

I thought about that but didn't know if we needed it for inspecting from outside the class, pushed