pip fails on python 3.10 + windows

Current Behavior
(hydra) PS C:\Users\circleci\project> nox -s lint-3.10
nox -s lint-3.10
nox > Running session lint-3.10
nox > Creating virtual environment (virtualenv) using python.EXE in .nox\lint-3-10
Operating system	:	Windows
NOX_PYTHON_VERSIONS	:	['3.10']
nox > python -m pip install --upgrade pip
nox > Command python -m pip install --upgrade pip failed with exit code 1:
Traceback (most recent call last):
  File "C:\tools\miniconda3\envs\hydra\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\tools\miniconda3\envs\hydra\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\circleci\project\.nox\lint-3-10\lib\site-packages\pip\__main__.py", line 29, in <module>
    from pip._internal.cli.main import main as _main
  File "C:\Users\circleci\project\.nox\lint-3-10\lib\site-packages\pip\_internal\cli\main.py", line 9, in <module>
    from pip._internal.cli.autocompletion import autocomplete
  File "C:\Users\circleci\project\.nox\lint-3-10\lib\site-packages\pip\_internal\cli\autocompletion.py", line 10, in <module>
    from pip._internal.cli.main_parser import create_main_parser
  File "C:\Users\circleci\project\.nox\lint-3-10\lib\site-packages\pip\_internal\cli\main_parser.py", line 8, in <module>
    from pip._internal.cli import cmdoptions
  File "C:\Users\circleci\project\.nox\lint-3-10\lib\site-packages\pip\_internal\cli\cmdoptions.py", line 23, in <module>
    from pip._internal.cli.parser import ConfigOptionParser
  File "C:\Users\circleci\project\.nox\lint-3-10\lib\site-packages\pip\_internal\cli\parser.py", line 12, in <module>
    from pip._internal.configuration import Configuration, ConfigurationError
  File "C:\Users\circleci\project\.nox\lint-3-10\lib\site-packages\pip\_internal\configuration.py", line 24, in <module>
    from pip._internal.utils import appdirs
  File "C:\Users\circleci\project\.nox\lint-3-10\lib\site-packages\pip\_internal\utils\appdirs.py", line 13, in <module>
    from pip._vendor import platformdirs as _appdirs
  File "C:\Users\circleci\project\.nox\lint-3-10\lib\site-packages\pip\_vendor\platformdirs\__init__.py", line 33, in <module>
    PlatformDirs = _set_platform_dir_class()  #: Currently active platform
  File "C:\Users\circleci\project\.nox\lint-3-10\lib\site-packages\pip\_vendor\platformdirs\__init__.py", line 29, in _set_platform_dir_class
    result: type[PlatformDirsABC] = getattr(importlib.import_module(module), name)
  File "C:\tools\miniconda3\envs\hydra\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "C:\Users\circleci\project\.nox\lint-3-10\lib\site-packages\pip\_vendor\platformdirs\windows.py", line 3, in <module>
    import ctypes
  File "C:\tools\miniconda3\envs\hydra\lib\ctypes\__init__.py", line 8, in <module>
    from _ctypes import Union, Structure, Array
ImportError: DLL load failed while importing _ctypes: The specified module could not be found.

I can run pip on the same machine with no issue outside of nox
(hydra) PS C:\Users\circleci> python --version
python --version
Python 3.10.4
(hydra) PS C:\Users\circleci\project> python -m pip install --upgrade pip
python -m pip install --upgrade pip
Requirement already satisfied: pip in c:\tools\miniconda3\envs\hydra\lib\site-packages (22.1)

on the same machines, other python versions works as expected.
(hydra) PS C:\Users\circleci\project> nox -s lint-3.9
nox -s lint-3.9
nox > Running session lint-3.9
nox > Creating virtual environment (virtualenv) using python.exe in .nox\lint-3-9
nox > python -m pip install --upgrade pip
nox > python -m pip install --upgrade setuptools
...

Expected Behavior
nox should work on py 3.10 + windows.
Steps To Reproduce
here is an example failures job we have on our CI. https://app.circleci.com/pipelines/github/facebookresearch/hydra/14406/workflows/26c69463-cd46-40ad-a8f1-771e0bfd33a9/jobs/140853
You should be able to repro it by submitting a PR in our repo.
Environment
- OS: windows
- Python: 3.10.4
- Nox: 2022.1.7

more system info in case it helps:

(hydra) PS C:\Users\circleci\project> systeminfo
systeminfo

Host Name:                 PACKER-623CA52B
OS Name:                   Microsoft Windows Server 2019 Datacenter
OS Version:                10.0.17763 N/A Build 17763
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Server
OS Build Type:             Multiprocessor Free
Registered Owner:          N/A
Registered Organization:   N/A
Product ID:                00430-00000-00000-AA835
Original Install Date:     3/24/2022, 5:09:54 PM
System Boot Time:          5/12/2022, 10:45:21 PM
System Manufacturer:       Google
System Model:              Google Compute Engine
System Type:               x64-based PC
Processor(s):              1 Processor(s) Installed.
                           [01]: Intel64 Family 6 Model 63 Stepping 0 GenuineIntel ~2300 Mhz
BIOS Version:              Google Google, 1/1/2011
Windows Directory:         C:\Windows
System Directory:          C:\Windows\system32
Boot Device:               \Device\HarddiskVolume2
System Locale:             en-us;English (United States)
Input Locale:              en-us;English (United States)
Time Zone:                 (UTC+00:00) Monrovia, Reykjavik
Total Physical Memory:     15,356 MB
Available Physical Memory: 10,910 MB
Virtual Memory: Max Size:  16,380 MB
Virtual Memory: Available: 12,012 MB
Virtual Memory: In Use:    4,368 MB
Page File Location(s):     C:\pagefile.sys
Domain:                    WORKGROUP
Logon Server:              \\PACKER-623CA52B
Hotfix(s):                 10 Hotfix(s) Installed.
                           [01]: KB5010473
                           [02]: KB4470788
                           [03]: KB4486153
                           [04]: KB4524244
                           [05]: KB4535680
                           [06]: KB4562562
                           [07]: KB4577586
                           [08]: KB4589208
                           [09]: KB5011503
                           [10]: KB5009642
Network Card(s):           2 NIC(s) Installed.
                           [01]: Google VirtIO Ethernet Adapter
                                 Connection Name: Ethernet
                                 DHCP Enabled:    Yes
                                 DHCP Server:     <IP_ADDRESS>
                                 IP address(es)
                                 [01]: <IP_ADDRESS>
                                 [02]: fe80::9a5:52ac:99fa:df30
                           [02]: Hyper-V Virtual Ethernet Adapter
                                 Connection Name: vEthernet (nat)
                                 DHCP Enabled:    No
                                 IP address(es)
                                 [01]: <IP_ADDRESS>
                                 [02]: fe80::8c2:4b00:254b:a7bf
Hyper-V Requirements:      A hypervisor has been detected. Features required for Hyper-V will not be displayed.

Anything else?
any pointer would be awesome... thanks for your amazing work!!

I don't really think this is a Nox issue. Looking at the output, the error didn't came from a Nox operation, so I assume it came from somewhere else. Does a pip install fails on a Python 3.10 virtual environment [^1]?
[^1]: Just to be clear, try a package that is not installed (using pip itself is not bad, but you'll might get a Requirement already satisfied message instead of a real installation process). Also, I see that Nox made your virtual environments using virtualenv, so you might have to use this tool, just to reproduce the situation as far as possible :)

hi @DiddiLeija thanks for the suggestion. pip also succeeds in virtualenv as well which is why i suspect this might be nox related.
(hydra) PS C:\Users\circleci> python -m venv venv
python -m venv venv
(hydra) PS C:\Users\circleci> which python
/c/tools/miniconda3/envs/hydra/python
(hydra) PS C:\Users\circleci> python --version
python --version
Python 3.10.4
(hydra) PS C:\Users\circleci> venv\Scripts\Activate.ps1
venv\Scripts\Activate.ps1
(venv) (hydra) PS C:\Users\circleci> which python
which python
/c/Users/circleci/venv/Scripts/python
(venv) (hydra) PS C:\Users\circleci> python -m pip install --upgrade pip
python -m pip install --upgrade pip
Requirement already satisfied: pip in c:\users\circleci\venv\lib\site-packages (22.0.4)
Collecting pip
  Using cached pip-22.1-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 22.0.4
    Uninstalling pip-22.0.4:
      Successfully uninstalled pip-22.0.4
Successfully installed pip-22.1

Well, that's weird. This is what I suppose: the issue comes from a somehow broken venv, the question is where.
Your Python is managed via conda (miniconda, actually), but you create the venv via python -m virtualenv. Just to discard a possibility, can you set up Nox to create the venv with conda?

thanks @DiddiLeija for the suggestion! I will give it a try. TIL could use conda as the backend  :P

@jieru-hu this looks like some conda weirdness to me, IIRC conda does a lot of complex stuff with compiled stuff and linked libraries in the environment such that it "just works".
I'd suggest using conda as the venv backend and report back. Unfortunately I don't have a windows machine to debug on so you actually may be better placed than me to experiment!

Yeah, I also think this came from mixing conda and virtualenv. So that's why we have venv_backend, more info here.

Hi @jieru-hu! It's been a while since my last comment here, so did you manage to fix your issue? Please let us know :upside_down_face:


Samourai Theme in Dribbblish does not properly display Popup Text or Song Time

When you bring your mouse over the playback slider the time left in the song and the current position of the song is not visible, popup notifications which are supposed to display text are also blank.

OS: Windows 10
Spotify <IP_ADDRESS>0.g2ae50076
Spicetify 1.2.1
Dribbblish

@spoutn1k

having the same issue


Question about the spatial-wise RSC implementation

Can you please elaborate more on the question (1) ? I still don't understand why the spatial-wise RSC was implemented as a sum of the activations (x_new) weighted by the mean gradients of each channel (spatial_mean = torch.sum(x_new * grad_channel_mean, 1)).
Based on the description in the paper ("global average pooling is applied along the channel dimension to the gradient tensor G to produce a weighting matrix wi of size [7 × 7]."), instead of lines 99-103 it should be just:
spatial_mean = torch.mean(grads_val.view(num_rois, num_channel, -1), dim=1).
Originally posted by @AhmedFrikha in https://github.com/DeLightCMU/RSC/issues/15#issuecomment-796242412

Thanks for your questions.
Different from other network architectures, ResNet is a special case that uses the average pool at the last conv layer. We use the current implementation for convenience so that all networks can share the same implementation. Feel free to use your implementation or downsample spatial middle layer gradient as guidance.


Installation error

Hi mansellrace ... I'm trying to port your YAML code to ESP32. I did the following:

changed ESP8266 platform to ESP32
changed ESP8266 pins to the corresponding on ESP32 I used
stored comelit.h in /homeassistant/esphome/

Validation is without errors. On attempt to upload I get errors you can see in the attached log file.
Do you have any idea to fix this?
logs_esphome-web-381c28_run.txt
esphome-web-381c28.yaml.txt

Hi,
The project has progressed from the version currently available on github. Both as hardware and software.
As hardware I created a new hardware version with a completely new power section, adding protections regarding undervoltages and instabilities that could occur.
As software I have in development an external component for esphome that will be more powerful, more customizable, easier to set up. is in good progress, the receiving part works well and I am refining some small details, I need to develop the transmission part , but I think it will take a short time.
I think in a week there will be big changes on this project, stay tuned!

Super cool ... sounds good!

Hi! New software and schematics is online! You can test it and if you have other problems you can open another issue or contact me on<EMAIL_ADDRESS>


Navbar Toggle Does not Appear on Collapsed view in Microsoft Edge

Welcome to Academic's GitHub repo 👋
We use GitHub only for bug reports and feature requests - it's our project management tool.
For help and questions, please join our community chat or use the forum 🚑.
Also, you can search and browse the extensive Academic and Hugo documentation.
For questions on Blogdown, please reach out to the Blogdown community.
Describe the bug
If you build the Academic Kickstart app (without the example content) and collapse the window to a small size, the menu collapses into the toggle for Chrome and Firefox but not Microsoft Edge.
To Reproduce
Steps to reproduce the behavior:

Build the Academic Kickstart site with Git.
cd sitedir
hugo --server --watch.....
Now view the site at <IP_ADDRESS>:1313 in Chrome and shrink the window to "phone size."  You will see the menu items collapse into the toggle.
Do the same thing in Firefox and it works.
Do the same thing in Microsoft Edge and the toggle does not appear.

A clear and concise description of what you expected to happen.
The toggle should appear when the site is collapsed in Microsoft Edge.
Technical details:
Academic Version: 4.6.3 (I think...)
Hugo Version: v0.60.0/extended linux/amd64
Browser/OS: Chrome 78.0.3904.108 (Official Build) (64-bit)
If applicable, add screenshots to help explain the issue.

I am closing this for now.  This may be a rendering problem with Hugo server.


Compacting PackageRevision tasks list

With the PackageRevision tasks list (in spec.tasks) always being appended to anytime a package revision is updated, we'll need a way to compact this list after a number of tasks occur to ensure the list does not continuously grow in size.

I would probably classify an eternally growing list as a bug rather than an enhancement. Eventually this will reach various limits and cause different parts of the pipeline to puke.

I would probably classify an eternally growing list as a bug rather than an enhancement. Eventually this will reach various limits and cause different parts of the pipeline to puke.

Agree. Updated the title of this issue, removed the enhancement label, and added the bug label.


Support forward refs

Codecov Report

Merging #7 (60836d5) into main (b807b8f) will increase coverage by 0.01%.
The diff coverage is 97.05%.

@@            Coverage Diff             @@
##             main       #7      +/-   ##
==========================================
+ Coverage   95.88%   95.89%   +0.01%
==========================================
  Files          26       27       +1
  Lines        1311     1340      +29
==========================================
+ Hits         1257     1285      +28
- Misses         54       55       +1

Impacted Files
Coverage Δ

chili/__version__.py
0.00% <0.00%> (ø)

chili/hydration.py
89.64% <100.00%> (+<0.01%)
:arrow_up:

tests/issues/test_resolve_forward_references.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


docs: add data generator to tools

Add Mockium, an online CSV/SQL mock data generator, to the list of resources and tools of SQL FAQs.

@cyrilbois appreciate the additions—approving & adding this to the site now!


SC13 should say support USBClient

https://forums.ghielectronics.com/t/flea-support-usb-cdc/24604/2

The error was on the GHI webpage and has been corrected.
https://www.ghielectronics.com/sitcore/sbc/


Bug 2086849: Create VM yaml with something working

📝 Description

YAML example template for the 'Create with YAML' VM page

🎥 Demo

/lgtm


Updating codegen

I have a PR to add async/await support #741 and @slotik is working on adding type nodes to sweet's AST sweet-js/sweet-spec#4. Both of these efforts require some way of doing codegen but at the moment we are relying on shift-codegen which only supports ES2016 (no async/await). Shift-codegen will be updated to ES2017 soon but it is unlikely to get support for type annotations so what should we do?
There are a few options I can see.

Fork shift-codgen and add type annotation support ourselves. This involves also forking shift-spec and shift-reducer.
Write our own sweet-codegen using sweet-spec.
Convert our AST to a babel AST (which supports type nodes) after expansion and let babel do our codegen.

At the moment I'm leaning towards the babel option since I think it's the least amount of work for us and often you want to use babel as a backend anyway. Arguably writing our own codgen is the best long-term since that give us the most flexibility (and it would allow us to do things like rendering syntax declarations syntax m = ctx => ...).
Thoughts? Am I forgetting an option?
/cc @gabejohnson

I'd be in favor of the Babel option. Perhaps even better would be to do an AST transform instead. Then handoff to Babel. See #515 and https://github.com/shapesecurity/shift-spidermonkey-converter-js/issues/16


Failed to resolve 'dunder-proto/get' from './node_modules/get-intrinsic/index.js'

Facing this error -> Failed to resolve 'dunder-proto/get' from './node_modules/get-intrinsic/index.js'
here is the line it fails at -> var getDunderProto = require('dunder-proto/get');
Which is part of third party get-intrinsic module.
[build-proxy] npm run build-proxy exited with code 0
[build-ui] Building...
[build-ui] 🚨 Build failed.
[build-ui]
[build-ui] @parcel/core: Failed to resolve 'dunder-proto/get' from './node_modules/get-intrinsic/index.js'
[build-ui]
[build-ui]   /**********/node_modules/get-intrinsic/index.js:46:30
[build-ui]     45 | var hasSymbols = require('has-symbols')();
[build-ui]   > 46 | var getDunderProto = require('dunder-proto/get');
[build-ui]   >    |                              ^^^^^^^^^^^^^^^^^^
[build-ui]     47 |
[build-ui]     48 | var getProto = (typeof Reflect === 'function' && Reflect.getPrototypeOf)
[build-ui]
[build-ui]
[build-ui]
[build-ui] @parcel/resolver-default: Error parsing JSON
[build-ui]   /**********/node_modules/dunder-proto/package.json:5:14
[build-ui]     4 |   "description": "If available, the `Object.prototype.__proto__` accessor and mutator, call-bound",
[build-ui]   > 5 |   "main": false,
[build-ui]   >   |               ^ invalid type: boolean `false`, expected path string at line 5 column 14
[build-ui]     6 |   "exports": {
[build-ui]     7 |     "./get": "./get.js",

Any idea how can I fix this?

It seems like a parcel bug (@parcel/resolver-default specifically) - false is a valid value for main in package.json. I'd suggest filing it there.

We are having the same issue. Setting main in package.json to a boolean is not mentioned in the docs for package.json. As far as I can tell the error on Parcel is justified. It would really help us out if this could be fixed, thanks!

npm's docs aren't relevant, since it's always been accepted by node. The error on Parcel is flatly incorrect.
There's been lots of working resolution implementations for over a decade - primarily https://npmjs.com/resolve - so if a tool decides to rewrite it from scratch, it's incumbent on them to look at existing implementations and not just the docs.

What is the meaning of setting main to false?

So that require('math-instrinics') fails. It's identical to setting it to a string that points to a nonexistent file, but with clearer semantics.

I see, that makes sense.
I asked an AI about different ways to do this and one suggestion was to point to an existing file that throws an error. One advantage would be that you can control the error message. If you could find a solution that has both a clear semantics and works well with bundlers that would be very helpful to us and I think the community at large.
Also, thank you for your open source work!

I could definitely make that change - but the only bundler that seems to be broken here is parcel, and I'd hate to worsen the ecosystem by working around it rather than trying to push parcel to fix itself. Have you filed an issue with them?

Ok, I will create an issue on parcel. Do you know of a good source that I can refer to where the correct semantics of the main filed is described?

I mean, in this case nothing's actually trying to import the main anyways, so parcel shouldn't be looking at it at all - but "do whatever node does" is pretty straightforward.

Is that documented in the node docs? I'm all for getting them to do the right thing but it would help to be able to refer to something

https://nodejs.org/api/modules.html#all-together is the algorithm. Specifically:

LOAD_AS_DIRECTORY(X)

If X/package.json is a file,
a. Parse X/package.json, and look for "main" field.
b. If "main" is a falsy value, GOTO 2.

meaning it supports any falsy value, and the next steps stringify any truthy value.

A different location of the node docs says: "The "main" field defines the entry point of a package when imported by name via a node_modules lookup. Its value is a path." So there is an incompatibility in the node docs.  Which is why the docs never matter more than the actual implementation, for which "main": false has worked fine for a decade and a half.

Imo, if the goal it to provide code with a clear semantics it's best not to use constructs over which there is some confusion. If unavoidable maybe but in this case I think there are easy fixes. My VS code also gives a warning for that line by the way.

yes, the jsonschema that vscode uses for package.json is also incorrect, sadly.

Oh come on. Why is this necessary? You could just remove the main field entirely from your package. That would have the exact same effect without breaking compatibility. There's no reason to set it to false at all. I will change this in Parcel but this is silly and a waste of everyone's time.

@devongovett it's a standard thing that's in numerous packages throughout the ecosystem. It seems like Parcel not doing what npm has always done is the thing that's wasted the most time here?
Removing the main field is not the same - that defaults to index.js, which if it exists would allow it to be imported. Setting it to false is objectively clearer and more correct than omitting it, and ensures that nobody can unintentionally add an entrypoint to the package.

it's a standard thing that's in numerous packages throughout the ecosystem

It is now that you've done it. We've never had this issue come up before.

Removing the main field is not the same - that defaults to index.js

That's not true. Following the algorithm you posted above:

If "main" is a falsy value, GOTO 2.
...
2. LOAD_INDEX(X)

@devongovett i'm not the first one to do it; as i said, this is how node itself, and the ecosystem, has always worked. That it's never come up before just means the overlap of "someone using parcel" and "someone using a package that does this somewhere in their graph" hasn't occurred before.
yes - "GOTO 2" then does "LOAD_INDEX". meaning it defaults to index.js.
This is all empirically observable in every version of node that's ever existed, as well as resolve, and every other resolution tool and bundler in the ecosystem. I'm not sure why you're giving this much pushback when Parcel is the only tool in existence that seems to have this problem.

meaning it defaults to index.js

right, exactly what removing the main field would do.

I'm not sure why you're giving this much pushback when Parcel is the only tool in existence that seems to have this problem.

As I said, I'm gonna fix it but this is silly.

As long as it gets fixed, that's fine. Your belief in what's silly is unfortunately irrelevant, because the ecosystem works the way it works ¯\_(ツ)_/¯
I'd strongly suggest auditing your resolution algorithm and comparing it to node itself, just to make sure there's no additional issues and that this isn't a brown m&m.

There are two possible solutions to this problem

the dunder-proto team can make a very simple change (2 charachters) or
the Parcel team has to do a much more complicated change that takes time to review and get right.

If we were all in one team it would be clear what we would do: Implement an easy fix in dunder-proto to give the Parcel team to time to get it right.

Seems like this is somewhat fixed in https://github.com/parcel-bundler/parcel/pull/10053, so I'll close this.

Thank you. Updated to 2.13.3 and and it works.


New doc:  use static assets that are part of a RCL project

I created a Razor Class Library this weekend. I was able to encapsulate Razor Views and associated Models + a Controller in a Razor Class Library and accompanying NuGet package. However, I would also like to encapsulate a collection of files under a Razor Class Library "wwwroot" folder that would be copied over to the "wwwroot" folder of the referencing ASP.NET Core web application upon package installation. Is this possible?

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

ID: d92ffa7c-fd65-7dc3-194e-6a67a8a7f176
Version Independent ID: 2df11a37-d64e-6353-bd92-0b7729070c3e
Content: Reusable Razor UI in class libraries with ASP.NET Core
Content Source: aspnetcore/mvc/razor-pages/ui-class.md
Product: asp.net-core
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

@pranavkm can you comment

We have an item tracking experiences around static class libraries + Razor Sdk here - https://github.com/aspnet/Razor/issues/2322. In the meanwhile, our recommendation is to follow what's done in IdentityUI. I'll highlight the relevant pieces of code:

https://github.com/aspnet/Identity/blob/dev/src/UI/Microsoft.AspNetCore.Identity.UI.csproj#L9
https://github.com/aspnet/Identity/blob/dev/src/UI/Microsoft.AspNetCore.Identity.UI.csproj#L14
https://github.com/aspnet/Identity/blob/dev/src/UI/IdentityDefaultUIConfigureOptions.cs#L50-L67

@pranavkm Would you recommend using Identity UI as an example for making a RCL with MVC instead of Razor Pages? I have a very similar need with static assets so this is super interesting.

IdentityUI uses Razor Pages - https://github.com/aspnet/Identity/tree/dev/src/UI/Areas/Identity/Pages. That said, Controllers with Views and Razor Pages are two flavors of MVC the framework. We think Razor Pages has fewer ceremony for browser based applications, but either (or both) should be fine to share UI in class libraries.

RPL.Demo
This is my demo to use wwwroot as a part of a RCL project.
I hope it will help someone who are looking for this.

@pranavkm : Your links are broken, can you update them please?

@jeremyVignelles Looks like the code in question is now here:
https://github.com/aspnet/Identity/blob/master/src/UI/
It looks like some of the link numbers have changed from those referenced above. I believe the following is what was originally being pointed at:

https://github.com/aspnet/Identity/blob/master/src/UI/Microsoft.AspNetCore.Identity.UI.csproj#L9
https://github.com/aspnet/Identity/blob/master/src/UI/Microsoft.AspNetCore.Identity.UI.csproj#L18
https://github.com/aspnet/Identity/blob/master/src/UI/IdentityDefaultUIConfigureOptions.cs#L56-L73

@pranavkm I'm getting the following error when trying to replicate the simple setup the docs state here: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/file-providers?view=aspnetcore-2.1#manifestembeddedfileprovider
My Razor Class Library csproj file looks like this:
<Project Sdk="Microsoft.NET.Sdk.Razor">

  <PropertyGroup>
    <TargetFramework>netcoreapp2.1</TargetFramework>
    <GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.1.0" />
  </ItemGroup>

  <ItemGroup>
    <EmbeddedResource Include="wwwroot/**/*" />
  </ItemGroup>

</Project>

And the main application does this:
services.AddMvc().AddRazorOptions(options => options.FileProviders.Add(
    new ManifestEmbeddedFileProvider(assembly, "wwwroot")
)).SetCompatibilityVersion(CompatibilityVersion.Version_2_1);

Which gives the following error:
InvalidOperationException: Could not load the embedded file manifest 'Microsoft.Extensions.FileProviders.Embedded.Manifest.xml' for assembly 'Library'.

Not really sure what should be happening under the hood here regarding the manifest. I'm referencing the library via its nupkg file after performing a pack on the Library - would that make any difference?

A critical detail that wasn't obvious to me initially is the following package reference:
<PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="2.1.0" />
Without it, the application will compile but fail at runtime with:
Could not load the embedded file manifest 'Microsoft.Extensions.FileProviders.Embedded.Manifest.xml' for assembly 'RPL.Demo'.

when running:
var filesProvider = new ManifestEmbeddedFileProvider(GetType().Assembly, basePath);
Thanks @sheng-jie for the details walkthrough!

The first answer explains how to do this. It's work I just try: https://stackoverflow.com/questions/51610513/can-razor-class-library-pack-static-files-js-css-etc-too

The first answer explains how to do this. It's work I just try: https://stackoverflow.com/questions/51610513/can-razor-class-library-pack-static-files-js-css-etc-too

This doesn't work if there multiple resourceFiles for different languages. (Resources.resx and Resources.en.resx)
If these files in the project available and the solution of the stackoverflow thread applied the following error occurs:
Error	MSB4018	The "GenerateEmbeddedResourcesManifest" task failed unexpectedly. System.InvalidOperationException: An item with the name '' already exists.    at Microsoft.Extensions.FileProviders.Embedded.Manifest.Task.Internal.Entry.AddChild(Entry child)    at Microsoft.Extensions.FileProviders.Embedded.Manifest.Task.Manifest.AddElement(String originalPath, String assemblyResourceName)    at Microsoft.Extensions.FileProviders.Embedded.Manifest.Task.GenerateEmbeddedResourcesManifest.BuildManifest(EmbeddedItem[] processedItems)    at Microsoft.Extensions.FileProviders.Embedded.Manifest.Task.GenerateEmbeddedResourcesManifest.Execute()    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()	RCLProject	C:\Users\developer\.nuget\packages\microsoft.extensions.fileproviders.embedded\2.2.0\build\netstandard2.0\Microsoft.Extensions.FileProviders.Embedded.targets	65

@pranavkm : Your links are broken, can you update them please?

I fixed the links but the file numbers are off.  @pranavkm can you edit the line numbers and review new comments?

🆙 📅 the links

@mttkrb See #8121 for workaround:
https://github.com/aspnet/Mvc/issues/8121#issuecomment-410327701


Return empty claims if user claims endpoint responds with not found

Coverage increased (+0.02%) to 91.535% when pulling 2789116d7e032898fe302995730311822eea222a on g-w:user-claims-404 into 1f46a6546c6b81a03ecac4af660271faea54dee6 on tarent:master.


Added desktop icon that opens the Fun-with-Quantum Repo in GitHub.

The examples and serious games from the "Fun with Quantum" repo would be a great addition to RasQberry.
However, they are currently not well suited for a small 4'' display, I'd think.
How would these examples be used on a RasQberry?
Maybe we need specific implementation with a different frontend (other than Jupiter notebooks) to make them usable on RasQberry.

I agree. That is a problem that also needs to be solved. With this PR I wanted to cover issues #44. Maybe I misunderstood the issues.

Hi Jasmin, I think now I recall the intention when we opened this issue :-)
We should put all demos that require a large screen (or vnc connection with high-res) in a separate folder on the desktop.
And add a standard vnc config that saves two virtual screens: one with a mirror of the 4' display, and one with a full DH resolution that can then be used for demos like FwQ and the Qiskit tutorials, etc.

before merging this PR, the new issue #63 should be solved, in order to make the FwQ demos usable (which need a high-res screen).


Implement Events for Menus

Currently none of the menus have methods implemented, this shall be done.

https://github.com/billyeatcookies/Biscuit/blob/master/src/lib/components/menubar/__init__.py#L34

File, Edit menus implemented
https://github.com/billyeatcookies/Biscuit/blob/b57e4c5aee6013812887f7088e2718da80380ac7/src/lib/components/menubar/__init__.py#L34-L59


🔀✨ Excel Import

Description
Excel Import Funktionalität eingefügt.
Reference
Issues #13

We should consider using flyway for our DB Migrations so we can track them with git as well and do not have to rely on the magic of spring when migrating our DB.


feat(tauri) add app CLI interface config

What kind of change does this PR introduce? (check at least one)

[ ] Bugfix
[x] Feature
[ ] New Binding Issue #___
[ ] Code style update
[ ] Refactor
[ ] Build-related changes
[ ] Other, please describe:

Does this PR introduce a breaking change? (check one)

[ ] Yes. Issue #___
[x] No

The PR fulfills these requirements:

[x] It's submitted to the dev branch and not the master branch
[ ] When resolving a specific issue, it's referenced in the PR's title (e.g. fix: #xxx[,#xxx], where "xxx" is the issue number)

If adding a new feature, the PR's description includes:

[ ] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:
With something like this under tauri.conf > tauri:
"cli": {
  "description": null,
  "longDescription": null,
  "beforeHelp": null,
  "afterHelp": null,
  "args": [{
    "short": "c",
    "name": "config",
    "takesValue": true,
    "description": "Config path"
  }, {
    "short": "t",
    "name": "theme",
    "takesValue": true,
    "description": "App theme",
    "possibleValues": ["light", "dark", "system"]
  }, {
    "short": "v",
    "name": "verbose",
    "multipleOccurrences": true,
    "description": "Verbosity level"
  }],
  "subcommands": null
}

You can run ./app -vvv --theme light -c ./config.toml call window.tauri.cliMatches() and get this:
{
  "args": {
	"verbose":{
	  "value": null,
	  "occurrences": 3
	},
	"config": {
	  "value": "./config.toml",
	  "occurrences": 1
	},
	"theme": {
	  "value": "light",
	  "occurrences": 1
	}
  },
  "subcommand":null
}

Using https://github.com/clap-rs/clap

clap-rs has a lot of arg possibilities, let me know if you find a cool one here that's not implemented under the config.rs > CliArg struct

Since I'm locally using the current dev version of clap-rs, this PR will have to wait a little longer for their next beta release. (or for their repo to be usable as a git dependency, right now there's a reference to a local package aswell).


etcd: Fix gRPC load balancer issue

This bumps the etcd dependency in order to pull in
github.com/etcd-io/etcd/pull/11184 which is required to fix a gRPC load
balancer issue when using a k8s service name to connect to etcd.
Fixes: #9791
The upstream description of the issue can be found here:
https://github.com/etcd-io/etcd/issues/11176

This change is

test-me-please

Coverage increased (+0.003%) to 45.557% when pulling 21d06c1856f6712d559146ab748e412e768f824e on pr/tgraf/update-to-etcd-stable into 6d583fddff183b81b3a03400011d89bed31c503e on master.


Delete core-js library from dependecies

Codecov Report

Merging #191 into master will increase coverage by 0.38%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #191      +/-   ##
==========================================
+ Coverage   88.72%   89.10%   +0.38%
==========================================
  Files           2        2
  Lines         204      202       -2
  Branches       30       30
==========================================
- Hits          181      180       -1
+ Misses         23       22       -1

Impacted Files
Coverage Δ

src/components/Menu.vue
89.77% <0.00%> (+0.44%)
:arrow_up:

Continue to review full report at Codecov.

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

Build change:
Before
File                               Size                                                                       Gzipped

dist/vue-stripe-menu.umd.min.js    31.89 KiB                                                                  10.74 KiB
dist/vue-stripe-menu.umd.js        90.99 KiB                                                                  22.57 KiB
dist/vue-stripe-menu.common.js     90.50 KiB                                                                  22.41 KiB
dist/vue-stripe-menu.css           6.79 KiB                                                                   1.44 KiB

After
File                               Size                                                                       Gzipped

dist/vue-stripe-menu.umd.min.js    12.84 KiB                                                                  4.11 KiB
dist/vue-stripe-menu.umd.js        32.65 KiB                                                                  8.53 KiB
dist/vue-stripe-menu.common.js     32.17 KiB                                                                  8.39 KiB
dist/vue-stripe-menu.css           6.79 KiB                                                                   1.44 KiB


Multiple users for same application

If I understand correct, currently there can be only one user:password pair for an application.
Wouldn't it be nice to allow multiple user:password pairs for the same application? For example, for people who have two accounts for some service with different privileges? This could be a potential feature upgrade.

Hello @iia! Yes, you are right, currently there is only one password for each application name. So you can't have multiple passwords for one app named "Github", for instance.
The way I handle that is by having multiple entries in Rooster. For example:
rooster generate GoogleWork<EMAIL_ADDRESS># work account
rooster generate Google<EMAIL_ADDRESS>     # personal account

rooster get ggl

When you do rooster get ggl, Rooster will understand that you meant either GoogleWork or GooglePersonal and ask you which password you want.
Does that meet your needs? If not, please explain in more detail what your use case is so we can try and find a way for Rooster to work for you.

Hi,
Yah that works too.
I had a different mental model of the system previously. As in, when creating a new user:password pair the pair must belong to one application and the users of an application must be unique.

Great to hear that works for you 😃
FYI the only thing unique in Rooster is the app name. Usernames and passwords can be duplicated.
If you have any other questions, feel free to open a new issue or get back via email.
Cheers !


Allow numbers in function names

I had a look at this, but then I don't really know the details. I guess it requires some specification. What identifiers are allowed in what places?
Currently function names can be VarName which is [a-z][A-Za-z_]*. Just changing this to alpha-numeric works [a-z][\w_]* but is that too broad of a change?

It is not what I was thinking but could be even better. Unicode support is good for people speak languages other than English.
Can we think of any characters it matches that we might not want?

Oh! Sorry! I wish to disallow uppercase letters in variable names.


"Adding respect of XML" to some HTML elements

Hey there. Thanks! We appreciate it :) I'm going to close this as this project is deprecated.


OpenAPI3 support

As per this issue in the father project, is anything planned to finally support OpenAPI3 standards in this package?
https://github.com/axnsan12/drf-yasg/issues/33

It's worth mentioning that drf-spectacular exists to support this exact use case. I haven't used it personally, but from the DRF docs:

drf-spectacular is a OpenAPI 3 schema generation tool with explicit focus on extensibility, customizability and client generation. It's usage patterns are very similar to drf-yasg.

@johnthagen thanks for mentioning it. we exclusively do OpenAPI 3. initially, we also used yasg and thus tried staying close to yasg in terms of look and feel. some things are nearly the same, other deviate considerably. worth noting that the underlying implementation is not based on yasg, as it was initially planned to be upstreamed into DRF (which didn't pan out).
anyways, kind of sad that Christi disappeared. big thumbs up to @JoelLefkowitz for picking up yasg and maintaining it. it's still an awesome lib.

@johnthagen thanks for mentioning it. we exclusively do OpenAPI 3. initially, we also used yasg and thus tried staying close to yasg in terms of look and feel. some things are nearly the same, other deviate considerably. worth noting that the underlying implementation is not based on yasg, as it was initially planned to be upstreamed into DRF (which didn't pan out).
anyways, kind of sad that Christi disappeared. big thumbs up to @JoelLefkowitz for picking up yasg and maintaining it. it's still an awesome lib.

Cristsi is back and we're working on the original repo again. It is worthwhile continuing to track this issue there axnsan12#33


Proposal: Remove Sealed modifier from RepeatButton

Proposal: Remove Sealed modifier from RepeatButton
Summary
ButtonBase, ToggleButton, HyperLinkButton, DropDownButton, SplitButton and ToggleSplitButton, are all defined to be inheritable classes while RepeatButton is marked with the Sealed modifier.
Rationale
It is beneficial when designing a user interface if you can subclass basic foundational types such as those that provide button features.  Since the RepeatButton is sealed, it forces developers to create a subclass of ButtonBase, add the features that the RepeatButton provides and then add additional custom properties and/or overrides.
Open Questions
I am guessing that there was solid rationale for preventing this class from being inherited from.  If that rationale far outweighs the benefit that developers achieve with that flexibility then I can certainly understand a quick closure of this proposal.

@jtbrower Your suggestion is part of proposal https://github.com/microsoft/microsoft-ui-xaml/issues/780 which as of now is still unclear when it will be acted upon. Make sure to make your voice heard in that issue as the team is monitoring how highly requested a feature this would be (everything unsealed).

@Felix-Dev sounds good, I will go ahead and close this out and provide feedback at #780


Fixing bug where Instructions would crash at startup when device was in landscape orientation

Current coverage is 79.31% (diff: 0.00%)

Merging #93 into master will decrease coverage by 0.12%

@@             master        #93   diff @@
==========================================
  Files            26         26
  Lines          1313       1315     +2
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           1043       1043
- Misses          270        272     +2
  Partials          0          0

Powered by Codecov. Last update f96a399...2c51b86


POC of Default inline resolver with showcase

Motivation
Allow defining a default inline rich text resolver as a fallback when no other resolver is used.
Checklist

[ ] Code follows coding conventions held in this repo
[ ] Automated tests have been added
[ ] Tests are passing
[ ] Docs have been updated (if applicable)
[ ] Temporary settings (e.g. variables used during development and testing) have been reverted to defaults

How to test
If manual testing is required, what are the steps?

Described on:
https://github.com/Kentico/kontent-java-packages/wiki/Rich-text-resolution#completely-custom-template-configuration-ie-default-fallback-rich-text-element-resolver

Described on:
https://github.com/Kentico/kontent-java-packages/wiki/Rich-text-resolution#completely-custom-template-configuration-ie-default-fallback-rich-text-element-resolver


Tag 2.60.2 is missing from jenkinsci/jenkins

It seems when building/publishing the newest LTS image it was only published as jenkinsci/jenkins:lts (17h ago as of writing this) but no tag 2.60.2 was created. As jenkins/jenkins has 0 tags yet, can this tag be added to jenkinsci/jenkins please? We always build with version specified in the tag.

ping @rtyler

Folks are so impatient, a Pipeline run daily ought to be enough :smiling_imp:
KK had released the LTS some time last night after the normal cron executed the Pipeline fwiw

Thanks, I was just trying to act on the update warning that Jenkins itself now gives in the UI header.


some sounds doesn't load

Hi,
please check this simple project:  https://dl.dropboxusercontent.com/u/6974/ion.soundsbug.zip
Strangely, sounds 1, 3 and 5 plays; sounds 2, 4 and 6 doesn't.
What's wrong?

Hi, this is because of sound names 1, 2, 3 etc. Fix will be ready soon. If you don't want to wait, just rename sounds to, for example, "a1", "a2", "a3" etc.

Fixed in 3.0.4

Thanks a lot. I upgraded to  3.0.4 but it seems not fixed yet.

I tested on your demo. It was fine. Maybe cache? Bower version could still be old.

right, was a cache topic. thanks.


(Optionally) allow authentication on a configured LDAP server

Implements #2519, fix #2058 (albeit by directly allowing AD access rather than going an extra hop through Dex).
Hints to reviewer
I have tried to arrange this PR by commits.  You might consider reviewing each commit separately, to see a smaller difference set.

Reviewers: Please approve so that we can merge #2525 .

Thanks!
Pulling...


✨ ReadOnly type in work

Summary
Related issue(s)
Fixes #

/lgtm

/hold

/lgtm

LGTM

/unhold


[WIP] Metadata

not to be merged yet...

wooops... I read your comment as I was clicking "merge"! sorryy


audit: false positive when using 'depends_on "check"'

If you have an optional dependency on a formula named "check", the automatically constructed --with-check option will trigger audit's complaint about the deprecated --with-check, even though it's different semantics in this case. We should probably ignore that particular --with-check.
$ brew audit --strict gst-plugins-good
gst-plugins-good:
  * Use '--with-test' instead of '--with-check'. Migrate '--with-check' with `deprecated_option`.
Error: 1 problem in 1 formula
[✘ /usr/local/Library/Taps/homebrew/homebrew-core on ⇄ master]
$ grep 'depends_on "check"' Formula/*
Formula/gst-plugins-good.rb:    depends_on "check" => :optional
Formula/gst-plugins-good.rb:    depends_on "check"
Formula/libstrophe.rb:  depends_on "check"
Formula/libu2f-server.rb:  depends_on "check" => :build
[/usr/local/Library/Taps/homebrew/homebrew-core on ⇄ master]
$ brew audit --strict libstrophe
[/usr/local/Library/Taps/homebrew/homebrew-core on ⇄ master]
$

Nice find.

Could probably just query the dependency list and skip this if it optionally depends on check?

I would think so. I'll PR it when I have some time tomorrow.


Small issue on Waypoint: Add Borders Around your Elements

There is a small mistake on page http://www.freecodecamp.com/challenges/waypoint-add-borders-around-your-elements.

The fifth criteria for completion says:
Your img element should be green.
When it should say:
You img element's border should be green.

This has been fixed in beta. Please close :)


Enable host admins to reject expenses

Sometimes a collective admin / core contributor approves an expense which isn't valid according to the host's policies, for example not including a valid invoice or receipt. However, the host admin can't reject or delete the invalid expense.
I'm not sure what the ideal flow would be, but perhaps a reject option that kicks it back to the collective admin / core contributor to approve or reject again, with a note of explanation from the host admin?

Another example where it would be good to be able to delete and expense: this person has put a note saying actually nevermind they don't want to submit this expense.

This is the current logic for rejecting an expense:

    const canReject = LoggedInUser
      && LoggedInUser.canApproveExpense(expense)
      && (
        expense.status === 'PENDING'
        || (expense.status === 'APPROVED' && (Date.now() - (new Date(expense.updatedAt).getTime())) < 60 * 1000 * 15) // we can reject an expense for up to 10mn after approving it
      );

For some reason, we didn't want to allow people to reject an expense that has been approved unless it was a mistake (hence the 10mn window). Maybe @piamancini remembers why we decided to do that?
So you'd like to be able to reject an expense no matter its current state?
Is it enough to allow just the host to do that?
This would be the new logic:
const canReject = LoggedInUser
      && LoggedInUser.canApproveExpense(expense)
      && (
        expense.status === 'PENDING'
        ||
        (
          expense.status === 'APPROVED'
          &&
          (
            ((Date.now() - (new Date(expense.updatedAt).getTime())) < 60 * 1000 * 15) // admin of collective can reject the expense for up to 10mn after approving it
            ||
            LoggedInUser.canEditCollective(collective.host)
          )
        )
      );

I can't remember why we set that window, we should remove the bar then.

I have been getting around this by editing the listing slightly, which un-approves it, and then not re-approving it. It's OK as a workaround. I think ideally, though, the host would be able to reject it and give a reason (like "no receipt") so the submitter and core contributor could be notified.


docs: fix simple typo, lighweight -> lightweight

There is a small typo in README.md.
Should read lightweight rather than lighweight.

Sorry, I had to.


convert face landmarks into *.obj file

Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
None
OS Platform and Distribution
No response
MediaPipe version
No response
Bazel version
No response
Solution
No response
Programming Language and version
No response
Describe the actual behavior
Hello, can mediapipe use predicted face landmarks to generate obj file。

Describe the expected behaviour
No response
Standalone code/steps you may have used to try to get what you need
No response
Other info / Complete Logs
No response

@PMPBinZhang,
Thank you for raising this request, For now, We do not have any official plugin to convert face landmark into obj file. However, We are marking this as feature request and sharing internally, Based on discussion team will prioritise the work.

Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
None
OS Platform and Distribution
No response
MediaPipe version
No response
Bazel version
No response
Solution
No response
Programming Language and version
No response
Describe the actual behavior
Hello, can mediapipe use predicted face landmarks to generate obj file。

Describe the expected behaviour
No response
Standalone code/steps you may have used to try to get what you need
No response
Other info / Complete Logs
No response

checkout this https://github.com/DrCyanide/mediapipe-facemesh-to-obj


add missing screen functions

This work is related and necessary for https://github.com/fltk-rs/fltk-rs/pull/1163

Thank you!


Remove extraneous attribute spaces

Pre-Submission Checklist

[x] Your pull request targets the staging branch of FreeCodeCamp.
[x] Branch starts with either fix/, feature/, or translate/ (e.g. fix/signin-issue)
[x] You have only one commit (if not, squash them into one commit).
[x] All new and existing tests pass the command npm test. Use git commit --amend to amend any fixes.

Type of Change

[x] Small bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds new functionality)
[ ] Breaking change (fix or feature that would change existing functionality)
[ ] Add new translation (feature adding new translations)

Checklist:

[x] Tested changes locally.
[ ] Closes currently open issue (replace XXXX with an issue no): Closes #XXXX

Description

Removed unneeded spaces around the equals sign after some HTML attributes.

Please forgive the extra commit. :fearful:

Hi @drguildo! Thanks for these changes. ❤
I am going to ask you if you could please squash those two commits into one 😛
Here's a wiki article on how to do that.
If you need any help, you can hit us up in the Contributors chat room on Gitter.

I am going to ask you if you could please squash those two commits into one

Done. :+1:

LGTM :+1:


Upgrade runtime requirements

Checklist:

[X] Used a personal fork of the feedstock to propose changes
[X] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[X] Ensured the license file is being packaged.

It does not need to be re-rendered, because it was already done less than 30 minutes ago.
This PR updates the runtime requirements for basemap as appearing upstream. I noticed that the upper pin for matplotlib-base was not allowing to get the Python 3.12 migrator in the basemap-feedstock (see https://conda-forge.org/status/#python312):
linux_64_python3.12.____cpythonpython_implcpython: Could not solve for environment specs
The following packages are incompatible
├─ matplotlib-base >=1.5,<3.8  is installable with the potential options
│  ├─ matplotlib-base [2.1.2|2.2.3|2.2.4] would require
│  │  └─ python_abi * *_cp27mu, which can be installed;
│  ├─ matplotlib-base [2.1.2|2.2.3|...|3.2.0] would require
│  │  └─ python_abi * *_cp36m, which can be installed;
│  ├─ matplotlib-base [2.1.2|2.2.3|...|3.2.0] would require
│  │  └─ python_abi * *_cp37m, which can be installed;
│  ├─ matplotlib-base [2.2.4|3.1.1|3.1.2|3.1.3|3.2.0] would require
│  │  └─ python_abi * *_cp38, which can be installed;
│  ├─ matplotlib-base 2.2.5 would require
│  │  └─ python_abi 2.7.* *_cp27mu, which can be installed;
│  ├─ matplotlib-base [2.2.5|3.2.1|...|3.3.4] would require
│  │  └─ python_abi 3.6.* *_cp36m, which can be installed;
│  ├─ matplotlib-base [2.2.5|3.2.1|...|3.5.3] would require
│  │  └─ python_abi 3.7.* *_cp37m, which can be installed;
│  ├─ matplotlib-base [2.2.5|3.2.1|...|3.7.3] would require
│  │  └─ python_abi 3.8.* *_cp38, which can be installed;
│  ├─ matplotlib-base [2.2.5|3.3.2|...|3.7.3] would require
│  │  └─ python_abi 3.9.* *_cp39, which can be installed;
│  ├─ matplotlib-base [3.2.2|3.3.0|...|3.3.4] would require
│  │  └─ python_abi 3.6 *_pypy36_pp73, which can be installed;
│  ├─ matplotlib-base [3.3.3|3.3.4|...|3.5.2] would require
│  │  └─ python_abi 3.7 *_pypy37_pp73, which can be installed;
│  ├─ matplotlib-base [3.4.3|3.5.0|...|3.7.3] would require
│  │  └─ python_abi 3.10.* *_cp310, which can be installed;
│  ├─ matplotlib-base [3.5.2|3.5.3|...|3.7.2] would require
│  │  └─ python_abi 3.8 *_pypy38_pp73, which can be installed;
│  ├─ matplotlib-base [3.5.2|3.5.3|...|3.7.3] would require
│  │  └─ python_abi 3.9 *_pypy39_pp73, which can be installed;
│  └─ matplotlib-base [3.6.1|3.6.2|...|3.7.3] would require
│     └─ python_abi 3.11.* *_cp311, which can be installed;
└─ python_abi 3.12.* *_cp312 is not installable because it conflicts with any installable versions previously reported.
osx_64_python3.12.____cpythonpython_implcpython: Could not solve for environment specs
The following packages are incompatible
├─ matplotlib-base >=1.5,<3.8  is installable with the potential options
│  ├─ matplotlib-base [2.1.2|2.2.3|2.2.4] would require
│  │  └─ python_abi * *_cp27m, which can be installed;
│  ├─ matplotlib-base [2.1.2|2.2.3|...|3.2.0] would require
│  │  └─ python_abi * *_cp36m, which can be installed;
│  ├─ matplotlib-base [2.1.2|2.2.3|...|3.2.0] would require
│  │  └─ python_abi * *_cp37m, which can be installed;
│  ├─ matplotlib-base [2.2.4|3.1.1|3.1.2|3.1.3|3.2.0] would require
│  │  └─ python_abi * *_cp38, which can be installed;
│  ├─ matplotlib-base 2.2.5 would require
│  │  └─ python_abi 2.7.* *_cp27m, which can be installed;
│  ├─ matplotlib-base [2.2.5|3.2.1|...|3.3.4] would require
│  │  └─ python_abi 3.6.* *_cp36m, which can be installed;
│  ├─ matplotlib-base [2.2.5|3.2.1|...|3.5.3] would require
│  │  └─ python_abi 3.7.* *_cp37m, which can be installed;
│  ├─ matplotlib-base [2.2.5|3.2.1|...|3.7.3] would require
│  │  └─ python_abi 3.8.* *_cp38, which can be installed;
│  ├─ matplotlib-base [2.2.5|3.3.2|...|3.7.3] would require
│  │  └─ python_abi 3.9.* *_cp39, which can be installed;
│  ├─ matplotlib-base [3.2.2|3.3.0|...|3.3.4] would require
│  │  └─ python_abi 3.6 *_pypy36_pp73, which can be installed;
│  ├─ matplotlib-base [3.3.3|3.3.4|...|3.5.2] would require
│  │  └─ python_abi 3.7 *_pypy37_pp73, which can be installed;
│  ├─ matplotlib-base [3.4.3|3.5.0|...|3.7.3] would require
│  │  └─ python_abi 3.10.* *_cp310, which can be installed;
│  ├─ matplotlib-base [3.5.2|3.5.3|...|3.7.2] would require
│  │  └─ python_abi 3.8 *_pypy38_pp73, which can be installed;
│  ├─ matplotlib-base [3.5.2|3.5.3|...|3.7.3] would require
│  │  └─ python_abi 3.9 *_pypy39_pp73, which can be installed;
│  └─ matplotlib-base [3.6.1|3.6.2|...|3.7.3] would require
│     └─ python_abi 3.11.* *_cp311, which can be installed;
└─ python_abi 3.12.* *_cp312 is not installable because it conflicts with any installable versions previously reported.
osx_arm64_python3.12.____cpython: Could not solve for environment specs
The following packages are incompatible
├─ matplotlib-base >=1.5,<3.8  is installable with the potential options
│  ├─ matplotlib-base [3.3.2|3.3.3|...|3.7.3] would require
│  │  └─ python_abi 3.8.* *_cp38, which can be installed;
│  ├─ matplotlib-base [3.3.2|3.3.3|...|3.7.3] would require
│  │  └─ python_abi 3.9.* *_cp39, which can be installed;
│  ├─ matplotlib-base [3.4.3|3.5.0|...|3.7.3] would require
│  │  └─ python_abi 3.10.* *_cp310, which can be installed;
│  └─ matplotlib-base [3.6.1|3.6.2|...|3.7.3] would require
│     └─ python_abi 3.11.* *_cp311, which can be installed;
└─ python_abi 3.12.* *_cp312 is not installable because it conflicts with any installable versions previously reported.
win_64_python3.12.____cpythonpython_implcpython: Could not solve for environment specs
The following packages are incompatible
├─ matplotlib-base >=1.5,<3.8  is installable with the potential options
│  ├─ matplotlib-base [2.1.2|2.2.3|2.2.4|2.2.5] would require
│  │  └─ vc 9.* , which does not exist (perhaps a missing channel);
│  ├─ matplotlib-base [2.1.2|2.2.3|...|3.2.0] would require
│  │  └─ python_abi * *_cp36m, which can be installed;
│  ├─ matplotlib-base [2.1.2|2.2.3|...|3.2.0] would require
│  │  └─ python_abi * *_cp37m, which can be installed;
│  ├─ matplotlib-base [2.2.4|3.1.1|3.1.2|3.1.3|3.2.0] would require
│  │  └─ python_abi * *_cp38, which can be installed;
│  ├─ matplotlib-base [2.2.5|3.2.1|...|3.3.4] would require
│  │  └─ python_abi 3.6.* *_cp36m, which can be installed;
│  ├─ matplotlib-base [2.2.5|3.2.1|...|3.5.3] would require
│  │  └─ python_abi 3.7.* *_cp37m, which can be installed;
│  ├─ matplotlib-base [2.2.5|3.2.1|...|3.7.3] would require
│  │  └─ python_abi 3.8.* *_cp38, which can be installed;
│  ├─ matplotlib-base [2.2.5|3.3.2|...|3.7.3] would require
│  │  └─ python_abi 3.9.* *_cp39, which can be installed;
│  ├─ matplotlib-base [3.4.2|3.4.3|3.5.0|3.5.1|3.5.2] would require
│  │  └─ python_abi 3.7 *_pypy37_pp73, which can be installed;
│  ├─ matplotlib-base [3.4.3|3.5.0|...|3.7.3] would require
│  │  └─ python_abi 3.10.* *_cp310, which can be installed;
│  ├─ matplotlib-base [3.5.2|3.5.3|...|3.7.2] would require
│  │  └─ python_abi 3.8 *_pypy38_pp73, which can be installed;
│  ├─ matplotlib-base [3.5.2|3.5.3|...|3.7.3] would require
│  │  └─ python_abi 3.9 *_pypy39_pp73, which can be installed;
│  └─ matplotlib-base [3.6.1|3.6.2|...|3.7.3] would require
│     └─ python_abi 3.11.* *_cp311, which can be installed;
└─ python_abi 3.12.* *_cp312 is not installable because it conflicts with any installable versions previously reported.

It is also a good moment to revise how strict the pinnings are. In particular, if I look at one package in https://anaconda.org/conda-forge/basemap/files:
linux-64/basemap-1.4.0-py38h0d7212a_0.conda
No Description

Uploaded	Tue Jan 9 16:14:19 2024
md5 checksum	5e73cf8a0eba451355e82d84bdc3fcba
arch	        x86_64
build	        py38h0d7212a_0
depends	        basemap-data, geos >=3.12.1,<<IP_ADDRESS>a0, geos >=3.12.1,<4.0a0,
                libgcc-ng >=12, libstdcxx-ng >=12, matplotlib-base >=1.5,<3.8,
                numpy >=1.24.4,<2.0a0, pyproj >=1.9.3,<3.7.0, pyshp >=1.2.0,<2.4.0,
                python >=3.8,<3.9.0a0, python_abi 3.8.* *_cp38
license	        MIT
license_family	MIT
machine	        x86_64
operatingsystem	linux
platform	linux
subdir	        linux-64
target-triplet	x86_64-any-linux
timestamp<PHONE_NUMBER>032

I can see that the geos >=3.12.1,<<IP_ADDRESS>a0 dependency is too narrow, it should be geos >=3.12.1,<<IP_ADDRESS>a0 to allow bugfix versions of GEOS too.

I think the GEOS strict pin comes directly from the configuration files in the .ci_support folder, but I do not know how I should change it to allow bugfix releases as valid GEOS dependency.

@ocefpaf Thanks for the feedback. In the case of basemap, its Cython extension only links to libgeos_c, which I thought it was considered as the stable interface. But I am not so experienced regarding the conda ecosystem, so I assume that the pinnings have a sensible reason as you indicated. In the worst case, we will have some duplicate basemap builds when the GEOS migrator comes with a new bugfix release.
@ocefpaf Do you think it is better then to merge this pull request as it is now? The rest is already green.

In the worst case, we will have some duplicate basemap builds when the GEOS migrator comes with a new bugfix release.

Yep. We get many "flavors" of basemap+geos but that will ensure we don't hit ABI incompatibilities when installing basemap together with other packages that are also built against geos.

@ocefpaf Do you think it is better then to merge this pull request as it is now? The rest is already green.

LGTM! I'm not sure if we can add the bot re-run label in https://github.com/conda-forge/basemap-feedstock/pull/120 b/c it was closed but we can copy the migration file and try it again manually after this one is merged.

Great, then I will be merging this and let's see if @regro-cf-autotick-bot creates a new PR or we can re-run the old one, otherwise the migration will need some manual work from my side.


chore(samples): add create start instance samples

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

[ ] Make sure to open an issue as a bug/issue before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
[ ] Ensure the tests and linter pass
[ ] Code coverage does not decrease (if any source code was changed)
[ ] Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

A test failed:
 1) create start instance tests
       should create instance with subnet:
     Error: Command failed: node instances/create-start-instance/createInstanceWithSubnet long-door-651 europe-central2-b gcloud-test-instance-d378d517 global/networks/default regions/europe-central2/subnetworks/default
Invalid value for field 'resource.networkInterfaces[0].subnetwork': 'regions/europe-central2/subnetworks/default'. The referenced subnetwork resource cannot be found.

      at checkExecSyncError (child_process.js:635:11)
      at Object.execSync (child_process.js:671:15)
      at execSync (test/createStartInstance.test.js:29:28)
      at Context.<anonymous> (test/createStartInstance.test.js:208:20)

@SurferJeffAtGoogle it looks like the project doesn't have default subnetworks.

@FrodoTheTrue there's still a failure:
     Error: Command failed: node instances/create-start-instance/createInstanceWithSubnet long-door-651 europe-central2-b gcloud-test-instance-851aafd2 global/networks/default-compute regions/us-central1/subnetworks/default

I believe that the subnetwork should be default-compute too.

@bcoe Yep, have just updated subnetwork too.
Also, I have created separate bug for deleting test instances: b/215012704.
I am going to do separate PR for this and support deleting instances for all test samples (not only for create/start).
WDYT?


How to read Cookies

I am trying to read cookies from webview.
Is that possible?

See https://github.com/joeferraro/react-native-cookies


[carbon-2185-quickstart] Create char sheet for new game

Changes / Comments
Create new character sheet for the quickstart rules for the game Carbon 2185, which is based on D&D 5E. Carbon 2185 recently finished a very successful kickstarter campaign.
Quickstart rules can be downloaded by signing up at www.carbon2185.com
Full rules expected to be released in July.
Roll20 Requests
Include the name of the sheet you made changes to in the title.

If changes fix a bug or resolves a feature request, be sure to link to that issue.
For pull request that change multiple sheets please confirm these changes are intentional for all sheets. This will help us catch unintended submissions.
When updating existing sheets if you are changing attribute names please note what steps you have taken, if any, to assist players in keeping their data.

Thank you Cassie,
I have fixed that.
Thanks,
Chris
On Mon, Mar 11, 2019 at 12:10 PM Cassie Levett<EMAIL_ADDRESS>wrote:

@clevett approved this pull request.
Greetings,
You'll actually need to remove the @wizardeddas
https://github.com/wizardeddas from the authors section of the
sheet.json but you can add it into the instructions section.
Thanks,
Cassie
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Roll20/roll20-character-sheets/pull/4804#pullrequestreview-213001281,
or mute the thread
https://github.com/notifications/unsubscribe-auth/At_m9EH0zn_OtMuBTWhvW6VIS1J8C5ZJks5vVpwNgaJpZM4bkiFO
.

You're welcome. I signed up for the Quickstart rules. This is a cool looking system that I'll keep my eye on.

Glad to hear it. I backed the game on kickstarter, and can't wait for the
full system to come out.
On Mon, Mar 11, 2019 at 1:54 PM Cassie Levett<EMAIL_ADDRESS>wrote:

You're welcome. I signed up for the Quickstart rules. This is a cool
looking system that I'll keep my eye on.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Roll20/roll20-character-sheets/pull/4804#issuecomment-471697048,
or mute the thread
https://github.com/notifications/unsubscribe-auth/At_m9LI46pWTrakNhNWtnUWsLFiNcr3Sks5vVrRngaJpZM4bkiFO
.

FYI,
The line endings were set to Windows. You'll want to update your code to use Unix (LF). Your text editor should be able to do this and a quick google search will tell you how.
Thanks,
Cassie

Oy, Sorry, I thought I had changed that.
I've got it changed now, and (think) I have the changes committed. This is
my first experience with git/github, so I'm not 100% sure it uploaded.
Thank you,
Chris
On Mon, Mar 11, 2019 at 5:15 PM Cassie Levett<EMAIL_ADDRESS>wrote:

FYI,
The line endings were set to Windows. You'll want to update your code to
use Unix (LF). Your text editor should be able to do this and a quick
google search will tell you how.
Thanks,
Cassie
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Roll20/roll20-character-sheets/pull/4804#issuecomment-471778181,
or mute the thread
https://github.com/notifications/unsubscribe-auth/At_m9E94-QIjT6oTA6ERhI0YSsL6Uaa4ks5vVuOfgaJpZM4bkiFO
.


Request PR again after modifying build & test 1.22.

Request PR again after modifying build & test 1.22.
go 1.22 Update & Updated dependencies

go.mod
go.sum

#177 update

main.go
Updated dependencies; removed pointer analyzer as it panics in go 1.22; updated readme and gitignore #177

Modifying Readme Syntax

Add a .markdownlint.json file
README.md

Thank you @minias! Finally working for me again on v1.23.1

Hey, @ondrej-fabry do you still have access to your non-work GitHub account?

Hello, sorry for my inactivity.
I have opened new PR #202 that should address all the remaining issues. It would be great if someone can test it out to confirm it works okay now.
This PR contains too many changes and some of them are included in the PR #202 so please, if you could rebase this PR once the #202 gets merged that would be great.


Features request

Hello. I've started using DBeaver recently after a lot of years using TOAD and I'm loving DBeaver. I can say now that I officially removed TOAD from my development environment. So, first of all I'd like to congratulate you for the great job you performed in DBeaver. It's quick, it's stable, it's easy to use and it's friendly interface.
I'd like to ask you to implement some great features that in my opinon can contribute to DBeaver success.

Text indentation guides
Column text edit >>> already exist.
Display on the status bar the characters count of the selected word
SQL Recall (automatically save recent executed SQL, keep it after closing DBeaver and allow user to consult this list)
User SQL Quicklist (one can create a quicklist of saved SQL queries and easily load it from memory to editor using a keyboard shortcut that opens a drop-down list with the named queries)

Thank you!

I believe 2 and 4 already exist: defaul shortcut to toggle rectangular selection should be alt+shift+a (it is a toggle, so you enable, select, edit, then disable to get back to normal selection). And you can get 4 from window -> view -> query browser (history is lost after closing dbeaver unless you have Enterprise version)

p91paul, thank you! I'm still getting familiar to DBeaver. Tested item 2, worked fine! Regarding item 4, any chance to have this feature on free version?

 However, I understand the need they have to offer more features in the paid version... If you were previously paying for TOAD, buying a dbeaver license should feel like getting a coffee :stuck_out_tongue_winking_eye:

You can see query history in SQL Execution Log tab (in SQL Editor). Or in Query Manager view (it keeps history for all editors/tools and actually 100% of SQL executed by DBeaver including internal system queries).

We have shortcuts for that. Maybe a bit different than in TOAD. You can see templates in Preferences->Database->Editors->SQL Editor->Templates.
To activate template type its name (or ctrl+alt+space) and press TAB.

Hello serge-rider, thanks a lot. What about items 1 and 3 ?

3 is not supported. Actualy I never saw suc hfeature in a text editor. We show just cursor position.

Hello, item 3 is a very common feature in text editors.
Notepad++ example:

TOAD example:


Rosetta: Add models and network endpoints

The modules in the models folder were generated using the Rosetta OpenAPI spec.
This PR contains a mostly proof-of-concept implementation of the network API. There are still several issues with it, but an attempt was made to get all the pieces hooked up and working together.
I still haven't totally finished up the dockerfile from https://github.com/CodaProtocol/coda/pull/5109, so I can't test it in that environment. The server itself seems to run ok locally, harder to get it tested with a working network + archive :P
TODO:

Convert to using Logger rather than print statements done
Try to get it building in docker?
Fix/improve network endpoint logic
Figure out the best place to get the genesis block info

Landing this so we can start from somewhere


[BUG] Micro API- Custom timeout value not working.

I tried sending Timeout Header with value of 600 from postman. But still I got deadline exceeded after 5sec.
However I tried to print context receiving on service and I got deadline time is not modified and still is 5 sec,.
How to reproduce the bug:
Run micro api
Make request to service with header key Timeout and value 600
Environment:
go version go1.14.4 linux/amd64
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/manish/.cache/go-build"
GOENV="/home/manish/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/manish/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/manish/go/src/github.com/itzmanish/charted/service/accounts/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build008428856=/tmp/go-build -gno-record-gcc-switches"

The timeout is processed as nano seconds. https://github.com/micro/go-micro/blob/master/server/grpc/grpc.go#L253L259

Attaching screenshot.
fmt.Println(ctx)
context.Background.WithDeadline(2020-07-22 18:51:26.953241734 +0530 IST m=+3200.137908178 [4.98366557s])

This is still 5sec.

The code says its a 400 error not a timeout

It also completes in 3 seconds

Okay, Let me show you.

i think that you need to create simple repo that can reproduce the issue and we are happy to fix it

Ok. I will soon provide you sample repo.


⚠ GitLab Server has degraded performance

In 27a4219, GitLab Server (https://gitlab01.its-telekom.eu) experienced degraded performance:

HTTP code: 200
Response time: 4775 ms

Resolved: GitLab Server performance has improved in 66c6a4b.


python3Packages.markdown-it-py: 1.1.0 -> 2.0.0

Motivation for this change
Update to latest upstream release 2.0.0
Change log: https://github.com/executablebooks/markdown-it-py/releases/tag/v2.0.0
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 148562 run on x86_64-linux 1

12 packages built:

python38Packages.jupytext
python38Packages.markdown-it-py
python38Packages.mdformat
python38Packages.mdit-py-plugins
python38Packages.mdurl
python38Packages.mypy-boto3-builder
python39Packages.jupytext
python39Packages.markdown-it-py
python39Packages.mdformat
python39Packages.mdit-py-plugins
python39Packages.mdurl
python39Packages.mypy-boto3-builder


Don't use https://api.parse.com/1 as default serverURL

The parse js sdk uses https://api.parse.com/1 as default serverURL for obvious reasons. However I can't think of a common use case for it in Parse Server and it might be confusing #356 #407 #477. This pull request simply overwrites the default url with en empty string if the user does not specify it.
When using queries in cloud code and forgetting to change the serverURL you currently get a ParseError { code: undefined, message: 'unauthorized' }. With this change you instead get a ParseError {code: 100, message: 'XMLHttpRequest failed: "Unable to connect to the Parse API"' }. This might only be a slight improvement, but it makes it possible to add a custom error message in the parse js sdk when no serverURL is found.
It might also be desirable to make serverURL a required property or adding a warning when it is not set?

Awesome, I think this will improve the usability of Parse Server quite a bit. I like your idea of making it required, though, I think that would be an even better experience. @gfosco is there any situation where you wouldn't care if serverURL isn't set? Maybe if you don't have cloud code? If thats the case we could require a serverURL only if any Cloud Code is also provided.

the Parse SDK need the serverURL, for any code running on the server whether it's Cloud Code or not.

I like this because at least it will fail, rather than incorrectly calling Parse.  If users run in to problems here, we'll have to readdress how we enforce it.


Headers are shown multiple times

I switched to this wonderful lib. I spend whole day reading docs. But still I have this issue. Headers are displays above every item.
As always the code is here:
https://github.com/thelong1EU/FlipViewDemo

@thelong1EU, UserHeader must be the same instance for each section, so you should NOT create new header object for each sectionable in your use case.

I see. I thought that the equals method deals with it.
On May 7, 2017 12:18 AM, "Davide Steduto"<EMAIL_ADDRESS>wrote:

@thelong1EU https://github.com/thelong1EU, UserHeader must be the same
instance for each section, so you should NOT create new header object for
each sectionable in your use case.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/davideas/FlexibleAdapter/issues/355#issuecomment-299666510,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AI2nVpSuc3yP3QnKFXBKgpD7IUQD89Hpks5r3OOHgaJpZM4NS6Ko
.

I changed it in the mock app and it works. But on my real app it doesn't. I get the same result.
Where are you from?
public ArrayList<BookItem> list() {
        ArrayList<BookItem> bookItem = new ArrayList<>();
        String[] columns = {COLUMN_LOCATION, COLUMN_USER, COLUMN_BOOK};
        UserHeader header = null;
        Cursor cursor = database.query(TABLE_TITLE, columns, null, null, null, null, COLUMN_USER + " ASC");
        if (cursor != null && cursor.moveToFirst()) {
            do {
                String databaseLocation = cursor.getString(cursor.getColumnIndex(COLUMN_LOCATION));
                User user = User.getFromJson(cursor.getString(cursor.getColumnIndex(COLUMN_USER)));
                Book book = Book.getFromJson(cursor.getString(cursor.getColumnIndex(COLUMN_BOOK)));

                talk.setDatabaseLocation(databaseLocation);
                user.setDatabaseLocation(databaseLocation);

                if (header == null) header = new UserHeader(user);
                UserHeader newHeader = new UserHeader(user);
                if (!header.equals(newHeader)) header = newHeader;

                BookItem item = new BookItem(book, header);
                bookItem.add(item);
            } while (cursor.moveToNext());
            cursor.close();
        }

        log.d(talkItems.get(0).getHeader() == talkItems.get(5).getHeader());//returns true
        log.d(talkItems.get(1).getHeader() == talkItems.get(4).getHeader());//returns true
        log.d(talkItems.get(2).getHeader() == talkItems.get(3).getHeader());//returns true
        return bookItems;
    }

I think I found the reason. In the FlexibleAdapter there is the method showAllHeadersWithReset(). Here you check if the headers are the same instance. Why not try equals?

Hi @thelong1EU, I didn't think about Parcelable, sometimes we write a feature without seeing all the user points of views for development, some can be missed. The improvement can be done.
I'm Italian living in Brussels. for the beer I will check about donations, because you are not the first, neither second that would like to, I appreciate it :-D

Added fix to #357, so I'm closing this.
Thanks again.

Added fix to #357, so I'm closing this.
Thanks again.


[rtorrent-flood] WebUI not loading properly

I just installed your rtorrent-flood container, and I'm coming across an error. I'm attempting to use it in a virtual directory /flood, and I'm getting errors in the terminal, sed: bad option in substitution expression, and then when I look at the web page for flood, I'm noticing  window.floodConfig = {baseURI: '<CONTEXT_PATH>', maxHistoryStates: 30, pollInterval: 5000}; with a very suspicious <CONTEXT_PATH> where there should be a '/flood' isntead.
That might be because my CONTEXT_PATH is set like this: CONTEXT_PATH=/flood, though I changed how the value was quoted and it didn't fix it.
My guess is that the sed expression that is throwing the error is resolving to: sed -i -e "s/<CONTEXT_PATH>//flood/g" /usr/flood/config.js which is causing sed to feak out.

Should be fixed in the next build.

That fixed it, still have some problems but I believe that is with my nginx config. Thanks.


graph/topo: add function to find k-core of undirected graph

This could be done using VertexOrdering, but this is marginally more efficient, and probably clearer to read given the naming for its use.
@mewmew Please take a look.

Related to this, but a separate PR is that I think VertexOrdering should be renamed to DegeneracyOrdering. This is #212.

I'm still too novice in graph theory to validate the implementation of this PR. Hopefully, this autumn of studies will improve that situation :)
@vladimir-ch is a better candidate for reviewing this PR.

No, I think you'll be fine. The PR here is fairly straight forward change factoring out a component of an already reviewed function and adding a special case of that function. The link in the code to the wiki article on graph degeneracy should help you.
This is the best way to learn.


Incorrect behavior of face authentication on Honor Play device

Device: Honor Play
Android version: 9
There are problems with face authentication on Honor Play. The dialog displays text about fingerprint scanner even though biometric type is BIOMETRIC_FACE and authentication not working on this device.
Video:
https://user-images.githubusercontent.com/17468894/168077078-d8ac97fe-aa5e-4dd0-a1bb-af788b911660.mp4
Logs:
log1.txt
log2.txt

The library does not develop directly for Honor, but as I know, cause Honor is a sub-brand of Huawei, I expect that some API's can also be accessible on Honor devices.
I'll try to investigate why FaceId doesn't work on Honor, I hope it's some minor changes.
Due to texts - used 'system' terma that exists in  com.android.internal.R$string. Probably I need to get a dump from some Huawei/Honor device to get more realistic strings ID's, cause now used 'default' for fingerprint/biometric

Okay, can you try test APK with Camera permission request?
https://github.com/sergeykomlach/AdvancedBiometricPromptCompat/blob/main/app/app-debug.apk

Nothing changed. First time there was a face dialog which didn't authenticate. And second time it was just HARDWARE_UNAVAILABLE error
log.txt

@sandboiii sorry for late response.
I start fixing device specific issues, and problem with Honor Play now in work.
Can you try to test APK on your device?

Hey, text about fingerprint is fixed, but face biometric still doesn't work. Some logs like [CheckBiometric.onUIOpened()] are missing for unknown reason.
https://user-images.githubusercontent.com/17468894/188451726-e01f683d-8381-4510-9b37-55f960302c66.mp4
cor-l29.txt
cor-l29-2.txt
cor-l29-3.txt

I also tested face biometric on huawei p50 pro and it also doesn't work both current main branch and apk which you provided.
But at least there are more logs with all events.
https://user-images.githubusercontent.com/17468894/188453381-6cd983d3-0695-4765-9550-946612aba4fb.mp4
p50-pro-main.txt
p50-pro-gdrive.txt

Yeah, sorry about p50 😬. I actually asked another person to test this app and they didn't know what was supposed to happen. So they said that it didn't work, but actually it does.

@sandboiii I see :) Okay, let's close the issue about Huawei P50)
If back to Honor Play. I prepare the build Huawei3DFaceManager.APK - plz check it, and some difference in behavior I hope we will notice.
Thank you

Not very clear - user cancel dialog or "manager" do this.
I don't see any fails/errors/success-related Toasts :(

@sandboiii any new tests/logs from the latest build?

I hope to get it this week, please wait a little bit more

Here are the logs
cor-l29 Huawei3dFaceManager.txt

v2.1.40 hope solves the issue

Hey, there is still happens a crash when trying to show callback toast
https://user-images.githubusercontent.com/17468894/209938007-e26dc844-c727-4860-aa19-1403ec98e07d.mp4
beginning of crash
E AndroidRuntime: FATAL EXCEPTION: Thread-2
E AndroidRuntime: Process: dev.skomlach.biometric.app, PID: 17503
E AndroidRuntime: java.lang.RuntimeException: Can't toast on a thread that has not called Looper.prepare()
E AndroidRuntime: at android.widget.Toast$TN.<init>(Toast.java:393)
E AndroidRuntime: at android.widget.Toast.<init>(Toast.java:117)
E AndroidRuntime: at android.widget.Toast.makeText(Toast.java:280)
E AndroidRuntime: at android.widget.Toast.makeText(Toast.java:270)
E AndroidRuntime: at dev.skomlach.biometric.app.utils.BiometricExtensionKt$startBiometric$1.onUIClosed(BiometricExtension.kt:176)
E AndroidRuntime: at dev.skomlach.biometric.compat.BiometricPromptCompat$startAuth$1$callback$1.onUIClosed(BiometricPromptCompat.kt:568)
E AndroidRuntime: at dev.skomlach.biometric.compat.BiometricPromptCompat$startAuth$1$callback$1.onCanceled(BiometricPromptCompat.kt:502)
E AndroidRuntime: at dev.skomlach.biometric.compat.impl.BiometricPromptGenericImpl.cancelAuth(BiometricPromptGenericImpl.kt:103)
E AndroidRuntime: at dev.skomlach.biometric.compat.impl.BiometricPromptGenericImpl$BiometricAuthenticationCallbackImpl.onCanceled(BiometricPromptGenericImpl.kt:211)
E AndroidRuntime: at dev.skomlach.biometric.compat.engine.BiometricAuthentication$authenticate$1.onCanceled(BiometricAuthentication.kt:322)
E AndroidRuntime: at dev.skomlach.biometric.compat.engine.internal.face.huawei.HuaweiFaceUnlockModule$AuthCallbackLegacy.onAuthenticationError(HuaweiFaceUnlockModule.kt:160)
E AndroidRuntime: at dev.skomlach.biometric.compat.engine.internal.face.huawei.impl.HuaweiFaceRecognizeManager$mFRCallback$1.onCallbackEvent(HuaweiFaceRecognizeManager.kt:186)
E AndroidRuntime: at com.huawei.facerecognition.FaceRecognizeManager$1.onCallbackEvent(FaceRecognizeManager.java:150)
E AndroidRuntime: at huawei.android.security.facerecognition.FaceRecognizeManagerImpl$CallbackHolder.onCallbackEvent(FaceRecognizeManagerImpl.java:674)
E AndroidRuntime: at huawei.android.security.facerecognition.task.AuthenticateTask$1.onTaskCallback(AuthenticateTask.java:68)
E AndroidRuntime: at huawei.android.security.facerecognition.base.HwSecurityTaskBase.endWithResult(HwSecurityTaskBase.java:82)
E AndroidRuntime: at huawei.android.security.facerecognition.task.PrepareCameraTask.access$500(PrepareCameraTask.java:12)
E AndroidRuntime: at huawei.android.security.facerecognition.task.PrepareCameraTask$2.onTaskCallback(PrepareCameraTask.java:48)
E AndroidRuntime: at huawei.android.security.facerecognition.base.HwSecurityTaskBase.endWithResult(HwSecurityTaskBase.java:82)
E AndroidRuntime: at huawei.android.security.facerecognition.task.OpenCameraRetryTask.access$500(OpenCameraRetryTask.java:14)
E AndroidRuntime: at huawei.android.security.facerecognition.task.OpenCameraRetryTask$2.onTaskCallback(OpenCameraRetryTask.java:47)
E AndroidRuntime: at huawei.android.security.facerecognition.base.HwSecurityTaskBase.endWithResult(HwSecurityTaskBase.java:82)
E AndroidRuntime: at huawei.android.security.facerecognition.base.HwSecurityTaskBase.execute(HwSecurityTaskBase.java:56)
E AndroidRuntime: at huawei.android.security.facerecognition.base.HwSecurityTaskThread.run(HwSecurityTaskThread.java:85)

Looks like this toast tried to show error message onAuthenticationError

So the issue is that on some Huawei/Honor devices API is accessible, but API cannot start the Camera due to permissions restrictions.
Adding and granting permissions directly to the library doesn't solves the problem.
The only solution I can suggest - detect in some way devices with blocked Camera and "hide" face API.

So, after months of investigations together with @sandboiii - this ticket will be closed as "partially fixed".
Some Huawei/Honor devices have failed on camera launch when face authentification started (errorCode=12 aka CAMERA_FAILED), at the same time isHardwareAvailable is TRUE and no chance to identify such behavior earlier than authentification started.
As a fix for this problem was developed the solution that checks once for CAMERA_FAILED errorCode and memorizes results for future calls, so if the device has broken camera access, the FaceAuth feature will be not available on device.
In other cases, FaceAuth should work properly for Huawei/Honor


'GoogleHttpClient.send' ('Future Function(BaseRequest)') isn't a valid override of 'IOClient.send'

In my code, there is an error with "send". here is my code.
class GoogleHttpClient extends IOClient {
  Map<String, String> _headers;

  GoogleHttpClient(this._headers) : super();

  @override
  Future<http.StreamedResponse> send(http.BaseRequest request) =>
      super.send(request..headers.addAll(_headers));

  @override
  Future<http.Response> head(Object url, {Map<String, String> headers}) =>
      super.head(url, headers: headers..addAll(_headers));
}

when I  hover mouse on the error which is on "send" then it shows:
'GoogleHttpClient.send' ('Future Function(BaseRequest)') isn't a valid override of 'IOClient.send' ('Future Function(BaseRequest)').dart(invalid_override)

Hi @santoshakil
This platform is not meant for assistance on personal code.
Please see https://flutter.dev/community for resources and asking questions like this,
you may also get some help if you post it on Stack Overflow and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you


[SMALLFIX] Fix format and remove unnecessary whitespace/emptylines

Some whitespace were not removed in this file.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/Tachyon-Pull-Request-Builder/5762/
Test PASSed.

@calvinjia  fixed. PTAL

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/Tachyon-Pull-Request-Builder/5763/
Test PASSed.

LGTM


How to migrate middleware?

Version
Tell us which versions you are using:

react-native-router-flux ^4.0.0-beta.21
react-native ^0.44.3

Expected behaviour
My project use middlewares in v3.
export default (s: State, a: PlainAction): State => {
    switch (a.type) {
    case 'LOGIN_FORM_OPEN':
        return { name: 'login' }
    case 'LOGIN_FORM_CLOSE':
        return { name: 'pop' }
    case 'AUTH_DID_AUTH':
            return { name: 'popTo', data: 'root' }
    }
    return noRoute
}

export default () => {
    return <Router createReducer={reducerCreate} tintColor={colors.greeny_blue} getSceneStyle={getSceneStyle}>
        <Stack key='root'>

            <Tabs key='tabs' hideNavBar tabs showLabel={false} tabBarComponent={TabBar}>
                <Stack {...navBarProps} key='feed'>
                    <Scene key='feedView' title='Feed' component={FeedContainer} />
                </Stack>

                <Stack {...navBarProps} hideNavBar={false} key='more'>
                    <Scene key='moreView' title='More' component={More} />
                </Stack>
            </Tabs>

            <Scene key='login' component={Login} hideNavBar={true} />

        </Stack>
    </Router>;
};

Actual behaviour
pop works
popTo does not work now. It cause the app freezed
How to migrate middlewares to v4?
Are there any examples?

popTo now requires scene name, not container ('root' is container)

thanks for your feedback @aksonov
i tried popTo tabs with no luck
my flow is: tabs > login > back to tabs
Do you have any suggest?

If possible, please add more examples to prevent the newbies like me to bother your time :)

tabs is container as well - popTo requires child only - like feedView in your example.

But I see problem in your case - you don't know what child will be...

feedView works
thank you
How about currentTab or activeTab?

Please try to reproduce it with Example project and latest version 4.0.0-beta.40. Feel free to open if the issue still exists


update PVs for subclasses NucleotideSequencing and MassSpectrometry, post berkeley

fixes #2154
break down AnalyteCategoryEnum into enumerations specific to subcategories. At present it would be valid to have analyte_category populated with nom for class NucleotideSequencing

@aclum and @turbomam FYI, neither @samobermiller  or I could actually get the inheritance on the "sub Enums" to result in properly validating or invalidating examples (see this example src/data/invalid/MassSpectrometry-working.yaml in this branch validates but it should not).
We tried a few different things to no avail. We only opened this PR to see if the documentation would render appropriately (it doesn't).  Just to give you a heads up about this branch and PR.  I don't think @samobermiller  or I plan to pick it back up anytime soon (we were using it as a training example for how to write and test example yaml data).

This does not appear to be working properly based on the passing invalid data MassSpectrometry-working.yaml, it should fail b/c of an invalid analyte_category PV.

@kheal  yes, I see that now. @sierra-moxon  or @turbomam  can you take over here?

cc @pkalita-lbl  in case you have any linkml insights

The JSON Schema generator only handles explicitly defined permissible values at the moment: https://github.com/linkml/linkml/blob/5cc5a16e345d3ee5233a193eba4909a8999b43db/linkml/generators/jsonschemagen.py#L426-L457
So, in particular, it doesn't have any logic yet to deal with inherits or minus as used in this changes.

I will wait until the 12/16 release to merge this in  but @turbomam  @sierra-moxon @kheal @mslarae13  I need at least one reviewer on this


Hack: rename webp images to jpeg

Fixes #1414
For some reason Instagram incorrectly sets the file extension to webp, even though the image is a jpg. This pull request assumes that webp images are always jpgs, that is verified using the magic header bytes "ffd8ff". If for some reason the header bytes do not match, it will print an error and exit.

so if it was a real webp it will reject the webps to be downlaoded?

In that case it will download the webp but save it as jpg, and print an error. This way was easier to implement: assume that instagram always returns jpeg, and if in the future that's not true then hopefully somebody can fix it. Or maybe even remove this hack, because it looks like a bug on instragram's side.

OK

Hi! Thanks for your effort and for sharing your ideas on how to fix this. I prefer the approach outlined in #1447 to use the Content-Type header to determine an appropriate file extension.

Ok no worries, I had been using this workaround for a few days and I opened this pull request because nobody else had a fix, now that it is properly fixed this hack is not needed anymore.


Fix test-python job for github actions.

fix bad quoting.

(same as https://github.com/line/line-bot-sdk-python/pull/545/files)


Alternative format of log messages

Dear PgWeb Developers,
is it possible to change the format a log messages?  I guess it is fixed for now and is simply based on the fmt.Println
Thank you!

No, the log format is pretty fixed. What is that you're looking to add to the log?

In my use case I have a requirement to change the logging level. For instance, SQL queries could be logged in trace or debug level, but not as INFO.
SQL queries contains parameters, that information could be sensitive.
The application is already dockerized, it would be beneficial to have the log level and format configurable with the env vars.

Take a look at CLI options here: https://github.com/sosedoff/pgweb/wiki/Usage#cli-options, you may find what you're looking for after all. You can configure the log level and format (json/text).


Elm code generation problem

Hi
I am trying to generate Elm code from servant proxy : [Api.hs] (https://github.com/ashishnegi/sanskell/blob/master/src/Sanskell/Api.hs#L22)
I see that for following [Types.hs] (https://github.com/ashishnegi/sanskell/blob/master/src/Sanskell/Types.hs#L13) :
newtype JobId = JobId Int deriving (Eq, Ord, Show, Generic)

Elm code generated is :
type JobId
  = JobId  : Int

which should be
type JobId = JobId Int

Also code like decode-code
decodeJobId : Json.Decode.Decoder JobId
decodeJobId =
<Constructor "JobId" (Selector "" (Field (Primitive "Int")))>

is being generated.
Any suggestions on how to solve the problem ?
To reproduce, please clone sanskell and run make ui-setup ui-build

Is there any other way that i can have temporary solution ?
like if i have my own custom toJSON for Generic, can elm-export take some hint from that ?

Is there any other way that i can have temporary solution ?
like if i have my own custom toJSON for Generic, can elm-export take some hint from that ?

I don't think so, but that would also be an elm-export question.

thanks. closing the issue.


Fix long filenames

Copying working files to a new computer shows 2 files with path longer than Windows maximum of 260 characters.  Need to fix.

I shortened the two filenames so issues will be avoided.  However, during that process I changed the Git longpaths setting because I could not check out the master branch again.  I previously changed the setting on Windows when Python was installed. This will probably the fix the issue in other repositories with similar issues.  Close this issue.