Join a subquery

Hi,
I'd like to join a query on the result of another subquery.
I tried:
subquery_table = TableFactory(subquery)
...
query.join(subquery_table, condition='id = sub_id', join_type='LEFT JOIN')

But it fails on:
  File ".../venv/lib/python3.6/site-packages/querybuilder/query.py", line 1093, in get_sql
    sql += self.build_select_fields()
  File ".../venv/lib/python3.6/site-packages/querybuilder/query.py", line 1380, in build_select_fields
    field_sql += join_item.right_table.get_field_sql()
  File ".../venv/lib/python3.6/site-packages/querybuilder/tables.py", line 279, in get_field_sql
    return [field.get_sql() for field in self.fields]
TypeError: 'NoneType' object is not iterable

Is it possible to do? If so, how?
Thanks!

Works well with:
query.with_query(subquery, alias='subquery_alias')
query.join(
    'subquery_alias',
    condition='id = sub_id', join_type='LEFT JOIN',
    fields=[
        SumField('sub_field', alias='sum_sub_field'),
    ],
)


[autorest] test_http fails

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)

      raise models.ErrorException(response, self._deserialize)

E           httpinfrastructure.models._models_py3.ErrorException: Operation returned an invalid status code 'Request Timeout'
Expected\AcceptanceTests\Http\httpinfrastructure\aio\operations_async_http_retry_operations_async.py:65: ErrorException

Maybe a dup of #5034. But keep it open for now.

https://github.com/Azure/azure-sdk-for-python/issues/5124

Fixed in https://github.com/Azure/azure-sdk-for-python/commit/c0d8339d198f7a0987ea6136dc3b0e266b946d6b


support for uint8array output

added uint8array support for uint8 indices. Does it need to return all uint types though?

Thank you so much for the pull request @Sugarlust! I noticed this is your first pull request and I wanted to say welcome to the Cesium community!
The Pull Request Guidelines is a handy reference for making sure your PR gets accepted quickly, so make sure to skim that.

:x: Missing CONTRIBUTORS.md entry.

Please add yourself to the contributors file!

:x: Missing CLA.

Please send in a Contributor License Agreement (CLA) and comment back here to let us know to check this!
Maintainers, here's how to check for a submitted CLA.

:grey_question: CHANGES.md was not updated.

If this change updates the public API in any way, please add a bullet point to CHANGES.md.

:grey_question: Unit tests were not updated.

Make sure you've updated tests to reflect your changes, added tests for any new code, and ran the code coverage tool.

Reviewers, don't forget to make sure that:

[ ] Cesium Viewer works.
[ ] Works in 2D/CV.

Filled in the CLA form.


Added fullscreen exit combination and hint.

Codecov Report

Merging #255 (8a488ff) into dev (a024b14) will decrease coverage by 0.26%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##              dev     #255      +/-   ##
==========================================
- Coverage   12.95%   12.68%   -0.27%
==========================================
  Files         225      225
  Lines        5389     5501     +112
  Branches      896      901       +5
==========================================
  Hits          698      698
- Misses       4607     4719     +112
  Partials       84       84

Impacted Files
Coverage Δ

...main/kotlin/tools/aqua/bgw/builder/FXConverters.kt
0.00% <0.00%> (ø)

...src/main/kotlin/tools/aqua/bgw/builder/Frontend.kt
0.00% <0.00%> (ø)

...kotlin/tools/aqua/bgw/core/BoardGameApplication.kt
0.00% <0.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 a024b14...8a488ff. Read the comment docs.


learn about JavaFX + GUI Skeleton

learn about JavaFX, it's probably the framework we're going to use in this project.
We're gonna watch tutorials on youtube and learn the syntax and skills of this framework.
We will update the wiki page as well.

[x] done watching tutorials of javafx framework

[x] done writing the wiki pages.

What is expected: -  we will know how to make GUIs with JavaFx framework.

we will write background about the framework in the wiki of the project.

I think it is better to phrase this 'make a small wiki page for JAVAFX'

@yossigil  as the project continues, we will update the wiki pages so the wiki will become richer.
we will update about the JavaFX framework as well.
the goal of this issue is learning about the framework, one of the results will be creating a wiki page for this framework.

Redefine the isssue so that it is clear what is expected, and how we will know it is done.

@yossigil I edited this issue.
also, i opened another issue (#55) related to this issue.
you can see there the progress of learning more clearly.
@Shahar-Y  and @ortroyaner  will open issues for their progress as well soon.

:+1:

mine is here: #61

You do not have to create wiki pages, an alternative could be create skeleton of our javaFX application. The advantge is that you create something that is soon useful. The down side is that you actually have to write code...

since I finished learning JavaFX, and I want the skeleton will divide between the three of us, let's do something like this:
I will do the initial skeleton for driver GUI (already did)
when @Shahar-Y  will finish he will complete my skeleton of driver GUI.
when @ortroyaner  will finish he will make a skeleton for manager GUI.

:+1:

Manager GUI Sekelton
(I couldn't find a way to upload straight to the wiki page, so I upload here and I'll use the GitHub URL to set this there)

Hey guys, it seems that this issue is finished, is there any reason not to close it?

I have to finish 2 more small screens for the manager skeleton, will be done in a few days.
Thanks for the note about the title, I fixed it.

I think that this page can be about learning javafx and you can open a new issue about the manager skeleton

I agree, I'll open new issues for the manager gui skeleton components and i'll close this issue.


SyncSet api updates

Update SyncSet API for gvk and update cd status as lists of SyncSets or SelectorSyncSets with status.

/lgtm

/retest


Butterfly classloader module isolation causes Jackson problems

As reported in https://github.com/OpenRefine/OpenRefine/issues/1882
with analysis in https://github.com/OpenRefine/OpenRefine/pull/1889

Butterfly implements its own ClassLoader called ButterflyClassLoader, with some custom logic to reload classes on the fly when they are modified.
To do so, the method loadClass from the parent class URLClassLoader was overridden, with a home-made interpretation of the delegation model which was incorrect: the problem was that it tried to load a class first by itself before trying the parent loader (whereas the parent loader should be tried first).
This lead to Jackson annotations being marked as loaded by ButterflyClassLoader instead of WebappClassLoader, so the hashes of the classes would differ and the Jackson introspection code would not find them when generating serializers and deserializers for POJOs coming from extensions.

I stumbled across the commented out classloader code (which is not associated with any PR, but is in 0de01cb325c89c7f8f1265f0ee538b183527d9e6) the other day and, independently stumbled across  the unlinked commentary in OpenRefine/OpenRefine#1889 just now.
I'm not sure what other workarounds are possible for Jackson's particular troubles, but the Butterfly classloader organization was intentional. It wasn't a "misinterpretation" of the delegation model, but, as I interpret it, an intentional firewalling mechanism to keep modules from interfering with each other. Many extension models have similar protection mechanisms, so OpenRefine may need a different mechanism than insisting that all code share a common classloader.

Yes I understand that this custom class-loading was intentional. Yes it could be useful to have something that enables extensions to use different versions of libraries, so provide the same sort of isolation. The solutions I have in mind are:

start a big refactoring to provide our own interface to handle JSON serialization / deserialization. Extensions would need to rely on that instead of Jackson (for me, the cost/benefit ratio is way too high)
convince Jackson to index classes not by hash of class object but by class name (it looks very hard to me too)
find a way to enforce that the same classloader is used for classes whose versions do not differ between main and extensions. That would amount to requiring that extensions use the exact same Jackson version, but would still be able to override other dependency versions thanks to the custom classloading code (looks hacky to me)
anything else?

Of course I found out about this problem extremely late in the migration process, and that did not really help find a satisfying solution. The problem only occurs with real-world testing of extensions (units tests are not affected as the class loading mechanisms are different when running tests).

Yes I understand that this custom class-loading was intentional.

Thanks for the clarification. That wasn't clear to me from what I read before.
I'm still not clear on what the exact problem is/was. Can you expand with a little more detail (perhaps an example)? Is it to do with preferences or communication between the core and extensions or the front end and backend or something else entirely?
The purpose in creating this issue wasn't to do something different immediately or even consider the issue now. It was just to get the existing history captured since we use Github as our principal form of institutional memory.

Here is a summary of the issue:
We use Jackson to serialize / deserialize our classes in JSON. Jackson makes it possible to specify how a class is (de)serialized by annotating it with its own set of annotations. Given a class to (de)serialize, Jackson generates a (de)serializer on the fly by looking at the annotations on the class. In Java, annotations are classes themselves, so they are associated to the classloader that loaded them. This classloader is taken into account when checking for equality of classes (and hashCode), so two annotations classes loaded by different classloaders are considered different.
If an extension declares a new operation, or overlay model, or anything else that will be serialized to JSON by the main application, this is a problem. With Butterfly's custom classloader, Jackson annotations are marked as loaded by ButterflyClassLoader instead of WebappClassLoader, so the hashes of the classes would differ and the Jackson introspection code would not find them when generating serializers and deserializers for POJOs coming from extensions.
The issue on Jackson's side is here: https://github.com/FasterXML/jackson-databind/issues/542
That being said, one low-hanging solution for this comes to mind as I write this: adding jackson as a provided dependency to the extensions could ensure that the ButterflyClassloader fails to find them in the extension and falls back on the main classloader. Perhaps it is that simple - I suspect I have tried that back in the days, but there is a slight chance that I did not. If it does work it would be by far the best way forward.

I have no idea what I am talking about but perhaps the new Java module system introduced in Java 9 could help with this sort of problem.

Modules are essentially a "package of packages" that can declare requires transitive as necessary or requires static and give strong encapsulation.
One thing to note is that by default, all packages are module private but you can export...to to expose to only certain packages as necessary.
Another thing is thinking about ButterflyClassloader and would it itself be an Application Module or perhaps even a Service by signifying with module my.module { uses ButterflyClassloader; } or even considering it a Service Provider that provides ?

I think only you can answer that having some knowledge of what Butterfly currently gives to OpenRefine extensions.
Good Reference: https://www.baeldung.com/java-9-modularity

Revisiting this in the context of the OpenRefine extension ecosystem discussion, I think it would be useful to restore the module isolation which was disabled.
While I think exposing Jackson in the extension interface is dangerous for the same reason that having org.json objects in the extension interface was dangerous, as I previously argued

If an extension gets broken by the JSON serialization change, I'd argue that that indicates that it's not well enough isolated and the solution isn't to make the abstraction even more leaky, but, rather, to force the extensions to provide their own JSON serialization, unless it's a facility provided by OpenRefine through an opaque API.

a bandaid fix might be to declare Jackson databind to be a sort of bootstrap dependency that gets loaded first by Butterfly or to otherwise provide special treatment of the necessary classes (effectively make Jackson a core Butterfly facility).

I took a closer look as I was preparing to implement the bootstrapping scheme described above and discovered that it's exactly as simple as @wetneb described:

adding jackson as a provided dependency to the extensions could ensure that the ButterflyClassloader fails to find them in the extension and falls back on the main classloader.

There are actually two sources of conflict: slf4j and Jackson. The Jackson conflict seems to be with ObjectMapper declarations rather the annotations, but I pulled in both just to be safe.

Fixing all the bundled extensions works, but it only takes a single rogue extension to mess things up again for all. For example, an older version of the rdf-extension bundles jena-shaded-arq-3.8.0.jar which is a shaded "uber jar" that includes its own jackson-core (among other bundled dependencies).
Contrary to my assumption above, the Butterfly classloader doesn't actually provide intermodule classloading isolation, but merges all the modules classpaths together into a single classloader,
https://github.com/OpenRefine/simile-butterfly/blob/79296b6640ee1f61937cbd5f97b218d5a9547323/main/src/edu/mit/simile/butterfly/Butterfly.java#L644-L651
so the database module can have its Jackson loading broken by the mere presence of the rdf-extension.
Also, because the order of module loading is effectively random (hashset iteration order), the priority of modules on the classpath relative to each other is random.

This discussion really encourages me to go for an established plugin system. I mean, honestly, I am really not knowledgeable on Java class loading details (as can be seen with the classloading change I made), and I don't think it's a good use of our time to become experts on that and implement something solid, when there are existing solutions we could adopt (OSGi, PF4J, maybe others). I have written more about this on the forum.

Sure! If we do decide to adopt an existing plugin system, it's not something that's going to happen overnight, so I wouldn't make that block up any fixes on the current system.


[lc_ctrl] Refactor tests to use status t

The first commit comes from #17563

Couple of other things:

Looks like you need to run clang-format on your code to pass the CI check. You can do that with bazel run //quality: clang_format_fix, or if you happen to be VIM user and are looking for a pro-tip: I'm a fan of hooking up ALE to format automatically with clang-format when you save a file.
If you want to automatically link a PR to an Issue on GitHub, use any the keywords [close, closes, closed, fix, fixes, fixed, resolve, resolves, resolved] in you message, i.e., "Fixes #XYZ", instead of "Solves #XYZ". You can also manually link a PR an Issue using the selection box under "Development" in the right side bar.

#17563 has been merged, you can rebase / repush this now.


Explicitly set default CNI network name in libpod.conf

Makes Podman network selection more deterministic in cases where multiple CNI networks are present. Should resolve issues with our config file being overridden by the CRI-O config file.

@vrothberg If you're not shipping the CNI config we include in this repo (87-podman-bridge.conflist) you might want to comment this out by default

Looks like flakes in the tests.

LGTM assuming happy tests.

bot, retest this please

How/where is the conf variable being used/parsed?

We load the conf when the libpod Runtime initializes. Anything set in the config file overrides the default config, and is overridden by user-specified options

(The default config being the defaults baked into runtime.go - I chose not to put this there because the current empty string default is more multi-distro safe)

bot, retest this please

bot, retest this please

@rh-atomic-bot r=TomSweeneyRedHat

@vrothberg If you're not shipping the CNI config we include in this repo (87-podman-bridge.conflist) you might want to comment this out by default

Just returned from vacation. Thanks, @mheon, for the ping!

@vrothberg Welcome back.


Add NFT Transfer tab to Account detail page

figma link
https://www.figma.com/file/bSUF8SniEtSOWNGsnHTEpI/statescan?node-id=3632%3A14919
preview

please change columns order, to  time/age , NFT , Name ... and also check for column width


Questions about Calculating ROC-AUC of MUV Dataset

Hi, @yuyangw , thanks for sharing your nice works!
I have some questions about calculating ROC-AUC in MUV Dataset.
As you know, there are very few positive(label=1) data in MUV.
So when I'm trying to get ROC-AUC following your scaffold split and metric evaluation(), I encounter with the problem that ONLY ONE CLASS present in y_true.
Can I ask you how did you cope with that problem?
###Further Question!(Simple)##
For multiple label task, Is it right that Each individual run result in Table 1 and Table2 is the average for whole tasks?
And then stdev must be considered by '# of runs' not by '# of runs * # of tasks'. Is that correct?
Thanks!!!

Hi @JongKook-Heo,
Thanks for your interest in our work. For MUV, in rare cases where only one class is included in y_true, we calculate the accuracy instead of ROC-AUC.
And yes, the std is considered by the number of runs and averaged over all tasks.
Hope this helps.
Best,
Yuyang

Thanks for your kind reply!! And I feel sorry for late response, but I have one more question.
In that case, Yot mean that the MUV result table in your paper shows the mixed value of ROC-AUC(Mostly) and Accuracy(Only for one class in y_true case)??


[SPARK-49986][INFRA] Restore scipy installation in dockerfile

What changes were proposed in this pull request?
Restore scipy installation in dockerfile
Why are the changes needed?
scipy actually depends on gfortran, but apt-get remove --purge -y 'gfortran-11' broke this dependency.
Does this PR introduce any user-facing change?
no
How was this patch tested?
manually check with the first commit:
move apt-get remove --purge -y 'gfortran-11' ahead of scipy installation, then the installation fails with
#18 394.3 Collecting scipy
#18 394.4   Downloading scipy-1.13.1.tar.gz (57.2 MB)
#18 395.2      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.2/57.2 MB 76.7 MB/s eta 0:00:00
#18 401.3   Installing build dependencies: started
#18 410.5   Installing build dependencies: finished with status 'done'
#18 410.5   Getting requirements to build wheel: started
#18 410.7   Getting requirements to build wheel: finished with status 'done'
#18 410.7   Installing backend dependencies: started
#18 411.8   Installing backend dependencies: finished with status 'done'
#18 411.8   Preparing metadata (pyproject.toml): started
#18 414.9   Preparing metadata (pyproject.toml): finished with status 'error'
#18 414.9   error: subprocess-exited-with-error
#18 414.9
#18 414.9   × Preparing metadata (pyproject.toml) did not run successfully.
#18 414.9   │ exit code: 1
#18 414.9   ╰─> [42 lines of output]
#18 414.9       + meson setup /tmp/pip-install-y77ar9d0/scipy_1e543e0816ed4b26984415533ae9079d /tmp/pip-install-y77ar9d0/scipy_1e543e0816ed4b26984415533ae9079d/.mesonpy-xqfvs4ek -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/tmp/pip-install-y77ar9d0/scipy_1e543e0816ed4b26984415533ae9079d/.mesonpy-xqfvs4ek/meson-python-native-file.ini
#18 414.9       The Meson build system
#18 414.9       Version: 1.5.2
#18 414.9       Source dir: /tmp/pip-install-y77ar9d0/scipy_1e543e0816ed4b26984415533ae9079d
#18 414.9       Build dir: /tmp/pip-install-y77ar9d0/scipy_1e543e0816ed4b26984415533ae9079d/.mesonpy-xqfvs4ek
#18 414.9       Build type: native build
#18 414.9       Project name: scipy
#18 414.9       Project version: 1.13.1
#18 414.9       C compiler for the host machine: cc (gcc 11.4.0 "cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
#18 414.9       C linker for the host machine: cc ld.bfd 2.38
#18 414.9       C++ compiler for the host machine: c++ (gcc 11.4.0 "c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
#18 414.9       C++ linker for the host machine: c++ ld.bfd 2.38
#18 414.9       Cython compiler for the host machine: cython (cython 3.0.11)
#18 414.9       Host machine cpu family: x86_64
#18 414.9       Host machine cpu: x86_64
#18 414.9       Program python found: YES (/usr/local/bin/pypy3)
#18 414.9       Run-time dependency python found: YES 3.9
#18 414.9       Program cython found: YES (/tmp/pip-build-env-v_vnvt3h/overlay/bin/cython)
#18 414.9       Compiler for C supports arguments -Wno-unused-but-set-variable: YES
#18 414.9       Compiler for C supports arguments -Wno-unused-function: YES
#18 414.9       Compiler for C supports arguments -Wno-conversion: YES
#18 414.9       Compiler for C supports arguments -Wno-misleading-indentation: YES
#18 414.9       Library m found: YES
#18 414.9
#18 414.9       ../meson.build:78:0: ERROR: Unknown compiler(s): [['gfortran'], ['flang'], ['nvfortran'], ['pgfortran'], ['ifort'], ['ifx'], ['g95']]
#18 414.9       The following exception(s) were encountered:
#18 414.9       Running `gfortran --version` gave "[Errno 2] No such file or directory: 'gfortran'"
#18 414.9       Running `gfortran -V` gave "[Errno 2] No such file or directory: 'gfortran'"
#18 414.9       Running `flang --version` gave "[Errno 2] No such file or directory: 'flang'"
#18 414.9       Running `flang -V` gave "[Errno 2] No such file or directory: 'flang'"
#18 414.9       Running `nvfortran --version` gave "[Errno 2] No such file or directory: 'nvfortran'"
#18 414.9       Running `nvfortran -V` gave "[Errno 2] No such file or directory: 'nvfortran'"
#18 414.9       Running `pgfortran --version` gave "[Errno 2] No such file or directory: 'pgfortran'"
#18 414.9       Running `pgfortran -V` gave "[Errno 2] No such file or directory: 'pgfortran'"
#18 414.9       Running `ifort --version` gave "[Errno 2] No such file or directory: 'ifort'"
#18 414.9       Running `ifort -V` gave "[Errno 2] No such file or directory: 'ifort'"
#18 414.9       Running `ifx --version` gave "[Errno 2] No such file or directory: 'ifx'"
#18 414.9       Running `ifx -V` gave "[Errno 2] No such file or directory: 'ifx'"
#18 414.9       Running `g95 --version` gave "[Errno 2] No such file or directory: 'g95'"
#18 414.9       Running `g95 -V` gave "[Errno 2] No such file or directory: 'g95'"
#18 414.9
#18 414.9       A full log can be found at /tmp/pip-install-y77ar9d0/scipy_1e543e0816ed4b26984[4155](https://github.com/zhengruifeng/spark/actions/runs/11357130578/job/31589506939#step:7:4161)33ae9079d/.mesonpy-xqfvs4ek/meson-logs/meson-log.txt
#18 414.9       [end of output]

see https://github.com/zhengruifeng/spark/actions/runs/11357130578/job/31589506939
Was this patch authored or co-authored using generative AI tooling?
no

cc @dongjoon-hyun and @panbingkun

Just wanted to add that dev/create-release/spark-rm/Dockerfile also has gfortran installed.

LGTM

Merged to master.


The constructor parameters and the fields in RandomOffsetPlacementModifier are inconsistent.

The fields are named spreadXz and spreadY, but the constructor parameters are named xySpread and ySpread.
https://github.com/FabricMC/yarn/blob/29f3c7a07edca6483012bdc10c1a638519db7b57/mappings/net/minecraft/world/gen/decorator/RandomOffsetPlacementModifier.mapping#L3-L7

It could be renamed to use horizontal/vertical as it seems to be more common in yarn although the string literals call them xz/y.


Visual Strain: Code Block Labels

I'm checking the repo I maintain (git novice) after transitioning to the workbench, and notice significant visual strain when reading the bash input and output, because the text is on the left side, while the label is on the right.  My eyes are constantly scanning back and forth, and it's actually making me nauseated.
I highly recommend making the label left justified so it's easier to read.

Here are some resources which indicate left-to-right languages should be left justified. While they only explicitly state for labels on forms that left-to-right languages should have labels on the left side, they model having labels and headers for text blocks on the left side.
https://www.w3.org/WAI/GL/low-vision-a11y-tf/wiki/Supplemental_Guidance:_Text_Justification
https://accessibility.huit.harvard.edu/design-readability
https://www.w3.org/WAI/tips/designing/
https://www.ada.gov/resources/web-guidance/

Thank you for the resources. I will use these when consulting with @elichad and @brynnelliott on forward steps.


[docs] encapsulate rendered code snippets within an Iframe

rendered code snippets within the 11ty docs site should be encapsulated for various reasons -

detachable pristine html
cases where component take control over document (e.g. side-drawer, top-bar, etc'.)

the plan is to dynamically create a src for iframe to render as if it was a real html page
see -
https://stackoverflow.com/questions/10418644/creating-an-iframe-with-given-html-dynamically

does codepen provide a way to dynamically embed pens (for pens that aren't hosted)?


[BUG]:

How are you running AnythingLLM?
Docker (remote machine)
What happened?
按照https://docs.anythingllm.com/installation/desktop/linux中的Install using Docker安装
Are there known steps to reproduce?
[collector] info: Collector hot directory and tmp storage wiped!
[collector] info: Document processor app listening on port 8888
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
✔ Generated Prisma Client (v5.3.1) to ./node_modules/@prisma/client in 493ms
Start using Prisma Client in Node.js (See: https://pris.ly/d/client)
import { PrismaClient } from '@prisma/client'
const prisma = new PrismaClient()

or start using Prisma Client at the edge (See: https://pris.ly/d/accelerate)
import { PrismaClient } from '@prisma/client/edge'
const prisma = new PrismaClient()

See other ways of importing Prisma Client: http://pris.ly/d/importing-client
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Datasource "db": SQLite database "anythingllm.db" at "file:../storage/anythingllm.db"
SQLite database anythingllm.db created at file:../storage/anythingllm.db
23 migrations found in prisma/migrations
Applying migration<PHONE_NUMBER>1814_init
Applying migration<PHONE_NUMBER>1441_init
Applying migration<PHONE_NUMBER>5421_init
Applying migration<PHONE_NUMBER>2019_add
Applying migration<PHONE_NUMBER>3409_init
Applying migration<PHONE_NUMBER>1333_init
Applying migration<PHONE_NUMBER>2020_init
Applying migration<PHONE_NUMBER>1106_init
Applying migration<PHONE_NUMBER>1916_init
Applying migration<PHONE_NUMBER>4848_init
Applying migration<PHONE_NUMBER>4405_init
Applying migration<PHONE_NUMBER>4639_init
Applying migration<PHONE_NUMBER>1018_init
Applying migration<PHONE_NUMBER>2308_init
Applying migration<PHONE_NUMBER>1053_init
Applying migration<PHONE_NUMBER>5034_init
Applying migration<PHONE_NUMBER>3346_init
Applying migration<PHONE_NUMBER>4220_init
Applying migration<PHONE_NUMBER>0707_init
Applying migration<PHONE_NUMBER>2311_init
Applying migration<PHONE_NUMBER>4346_init
Applying migration<PHONE_NUMBER>5625_init
Applying migration<PHONE_NUMBER>5054_init
The following migrations have been applied:
migrations/
└─<PHONE_NUMBER>1814_init/
└─ migration.sql
└─<PHONE_NUMBER>1441_init/
└─ migration.sql
└─<PHONE_NUMBER>5421_init/
└─ migration.sql
└─<PHONE_NUMBER>2019_add/
└─ migration.sql
└─<PHONE_NUMBER>3409_init/
└─ migration.sql
└─<PHONE_NUMBER>1333_init/
└─ migration.sql
└─<PHONE_NUMBER>2020_init/
└─ migration.sql
└─<PHONE_NUMBER>1106_init/
└─ migration.sql
└─<PHONE_NUMBER>1916_init/
└─ migration.sql
└─<PHONE_NUMBER>4848_init/
└─ migration.sql
└─<PHONE_NUMBER>4405_init/
└─ migration.sql
└─<PHONE_NUMBER>4639_init/
└─ migration.sql
└─<PHONE_NUMBER>1018_init/
└─ migration.sql
└─<PHONE_NUMBER>2308_init/
└─ migration.sql
└─<PHONE_NUMBER>1053_init/
└─ migration.sql
└─<PHONE_NUMBER>5034_init/
└─ migration.sql
└─<PHONE_NUMBER>3346_init/
└─ migration.sql
└─<PHONE_NUMBER>4220_init/
└─ migration.sql
└─<PHONE_NUMBER>0707_init/
└─ migration.sql
└─<PHONE_NUMBER>2311_init/
└─ migration.sql
└─<PHONE_NUMBER>4346_init/
└─ migration.sql
└─<PHONE_NUMBER>5625_init/
└─ migration.sql
└─<PHONE_NUMBER>5054_init/
└─ migration.sql
All migrations have been successfully applied.
┌─────────────────────────────────────────────────────────┐
│ Update available 5.3.1 -> 5.19.1 │
│ Run the following to update │
│ npm i --save-dev prisma@latest │
│ npm i @prisma/client@latest │
└─────────────────────────────────────────────────────────┘
[backend] info: [EncryptionManager] Self-assigning key & salt for encrypting arbitrary data.
[backend] info: [TELEMETRY ENABLED] Anonymous Telemetry enabled. Telemetry helps Mintplex Labs Inc improve AnythingLLM.
[backend] info: prisma:info Starting a sqlite pool with 5 connections.
[backend] info: [TELEMETRY SENT] {"event":"server_boot","distinctId":"c70e1268-675f-42ea-a0df-ea6981fb54e6","properties":{"commit":"--","runtime":"docker"}}
[backend] info: [CommunicationKey] RSA key pair generated for signed payloads within AnythingLLM services.
[backend] info: [EncryptionManager] Loaded existing key & salt for encrypting arbitrary data.
[backend] info: Primary server in HTTP mode listening on port 3001
[backend] info: [BackgroundWorkerService] Feature is not enabled and will not be started.
[collector] info: Collector hot directory and tmp storage wiped!
[collector] info: Document processor app listening on port 8888
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
✔ Generated Prisma Client (v5.3.1) to ./node_modules/@prisma/client in 487ms
Start using Prisma Client in Node.js (See: https://pris.ly/d/client)
import { PrismaClient } from '@prisma/client'
const prisma = new PrismaClient()

or start using Prisma Client at the edge (See: https://pris.ly/d/accelerate)
import { PrismaClient } from '@prisma/client/edge'
const prisma = new PrismaClient()

See other ways of importing Prisma Client: http://pris.ly/d/importing-client
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Datasource "db": SQLite database "anythingllm.db" at "file:../storage/anythingllm.db"
Error: Schema engine error:
SQLite database error
unable to open database file: ../storage/anythingllm.db

unable to open database file: ../storage/anythingllm.db

Sounds like you are running the docker container without using the official command which proactively sets the ENV to the correct place to prevent this issue.
 export STORAGE_LOCATION="/var/lib/anythingllm" && \
 mkdir -p $STORAGE_LOCATION && \
 touch "$STORAGE_LOCATION/.env" && \
 docker run -d -p 3001:3001 \ # expose on port 3001 (can be any host port)
 --cap-add SYS_ADMIN \
 -v ${STORAGE_LOCATION}:/app/server/storage \
 -v ${STORAGE_LOCATION}/.env:/app/server/.env \
 -e STORAGE_DIR="/app/server/storage" \
 mintplexlabs/anythingllm:master

also for export STORAGE_LOCATION="/var/lib/anythingllm" Make sure you have read+write permissions to this directory for the docker user!
chmod -R 777 /var/lib/anythingllm to quickly be sure


CLI unusable without KUBECONFIG

It should be possible to use the CLI without having a valid KUBECONFIG, by setting ARGO_SERVER and ARGO_TOKEN, but this is not the case :(
FATA[0000] invalid configuration: no configuration has been provided

See #2793.


Calling Function or eval should be eliminated as a security measure and would cause the application execution to be halted if the document CSP header has script-src 'self';

https://github.com/webpack/webpack/blob/fb8afe71385734cfd65f47949117306a91f20753/buildin/global.js#L10

@will-stone yeah this issue still exists, my current local solution for it is to run the following bash command to replace it with undefined before deploying my code:
"find /assets/ -type f -name "*.js" | xargs sed -i '' 's/([0,1], eval)("this")/undefined/g'"

Any news?

No, we need eval here. Solution:

https://csp-evaluator.withgoogle.com/

script-src 'strict-dynamic' 'nonce-rAnd0m123' 'unsafe-inline' http: https:;
object-src 'none';
base-uri 'none';
report-uri https://csp.example.com;

@evilebottnawi can you explain why eval is needed please?

@bakrkawkji-trustly return global context

@evilebottnawi let me rephrase my question:
In what case (1,eval)("this") will be executed? isn't Function("return this")() is healthy enough way to return the global context without using eval? if Function("return this")() fails, it's more likely there's something wrong with the browser, so why trying to return the global context using (1,eval)("this")? I find this as an overkill way to obtain the global context, not quite justified as a need but as a "do whatever it takes" approach

@bakrkawkji-trustly Function(str) is eval.

Can we have some provision to avoid evals in build totally. I tried same code with browserify and vueify which was earlier build with webpack and vue-loader and I found exactly 0 issues of eval or function constructor.

The Vue documentation describes how "On the other hand, the runtime-only build is fully CSP-compliant. When using the runtime-only build with Webpack + vue-loader or Browserify + vueify, your templates will be precompiled into render functions which work perfectly in CSP environments."
https://vuejs.org/v2/guide/installation.html#CSP-environments
So coming from Vue, I'd expect to be able to use Webpack to bundle up mye Vue app as something that can be run in a Chrome extension.

change your webpack.config to this:
const path = require('path');
module.exports = {
  devtool: "source-map",
  entry: ['babel-polyfill', path.resolve(__dirname, './yourjs.js')],
  mode: 'production',
  output: {
    path: __dirname+'/draft.iml.ru/static/main/js/',
    filename: 'yout.js'
  }
};

had to add devtools option.

We also have CSP that disallows eval()/Function(str) for security reasons and I have not figured out any way to produce production code without eval(). And the 'nonce-rAnd0m123' is not an option because the CSP headers are being set by our authentication layer so we can't just add nonce- for all webpack files.
The previous proposed solutions did not solve the problem for us.

@jhuesos, I suspect this is because your webpack config does not explicitly set global to false on the node object, so it injects the global.js polyfill which uses eval/new Function.
For instance, I was also having this problem with the default webpack config from the 'webpack' template for Vue CLI. So I modified the below block in build\webpack.base.conf.js:
node: {
    // prevent webpack from injecting useless setImmediate polyfill because Vue
    // source contains it (although only uses it if it's native).
    setImmediate: false,
    // prevent webpack from injecting mocks to Node native modules
    // that does not make sense for the client
    dgram: 'empty',
    fs: 'empty',
    net: 'empty',
    tls: 'empty',
    child_process: 'empty',
    // prevent webpack from injecting eval / new Function through global polyfill
    global: false
}

For others paying attention to this thread, I am curious whether this could have performance implications as well? Is it still true that the presence of eval or new Function at all effectively causes other code on the page to lose out on a lot of JS engine optimizations? Or is this one of those things that was more true when Crockford said so, but is a little more nuanced now? I'm not seeing much conclusive analysis out there.
I am also wondering if there might be some value to allowing an option in configuration of injecting a more "naïve" shim for the global object which omits the eval/new Function avenue but still tries the other things? I realize it won't cover as many cases, but seems like it might be preferable under some circumstances.

@jkobylec Finally a solution that solves this issue! thanks!
For anyone else who's still looking for a solution to remove:
g = g || Function("return this")() || (1,eval)("this");
Use:
node: {
global: false
}

While above solutions for turning of global works, there are few libraries(e.x. babel-es6-polyfill) which refer to window variable via global and thus webpack bundling fails. So to be extra cautious, define a plugin for global as well.
{
  node: {
     global: false
  },
  plugins: new webpack.DefinePlugin({
     global: 'window'		// Placeholder for global used in any node_modules
  })
}

From what I understood, script loader NEEDS to use eval and then is incompatible with a strict script-src CSP required, and needs unsafe-inline which is not acceptable for any sensible application.
So is it possible, at least, to add a warning about that issue in the readme?

From what I understood, script loader NEEDS to use eval

This is no longer true:

https://mathiasbynens.be/notes/globalthis
https://github.com/ungap/global-this

@jkobylec Finally a solution that solves this issue! thanks!
For anyone else who's still looking for a solution to remove:
g = g || Function("return this")() || (1,eval)("this");
Use:
node: {
global: false
}

I solved the problem by only setting devtool to "cheap-module-source-map"

No, we need eval here. Solution is strict-dynamic directive:

https://csp-evaluator.withgoogle.com/

script-src 'strict-dynamic' 'nonce-rAnd0m123' 'unsafe-inline' http: https:;
object-src 'none';
base-uri 'none';
report-uri https://csp.example.com;

this does not work when you are trying to rub your code in various environments which require strict CSP eg chrome extensions

We are hitting this as well and none of the solutions above seem to be working for us. I've narrowed our specific problem down to our use of code splitting and customizing the public path. We make use of code splitting though the import webpackChunkName syntax and we also use __webpack_public_path__ to dynamically set the path since we host our files on a CDN and since we use a form of versioning, the path is dynamic. It seems that use of either of these things results in this webpack/runtime/global code with new Function being emitted.
The following code all by itself does this:
declare let __webpack_public_path__: string;
__webpack_public_path__ = `/versions/`;

function doSomething() {
  return 0;
}

export { doSomething };

We've tried the node: { global: false } change as well as the various values for devtool. If I eliminate the use of __webpack_public_path__ but still have webpackChunkName then the code is still emitted. If we disable chunking by using LimitChunkCountPlugin then the code is not emitted.


Cycloidal bearing change

Changed cycloidal bearing size to reduce costs

To do this, we had to:

Change motor hex output to pass through both cams,
This allowed us to decrease OD of cam to allow for smaller ID bearing
Cheaper bearing was thicker, so the drive cavity's depth increased, along with the cycloidal disk and cam thicknesses

Also changed:

Increased space between cycloidal gears (0,5mm -> 2mm) to allow for a washer to prevent cycloidal disk contact

Changed how the cams "lock" together to support the inner race of the cycloidal disk bearings, since the counter bore in the disks didn't allow for how they previously locked
Never mind, I'm dumb, this is what the cams look like now

Discussion point before merge: Nylon washers. Do we want 'em? Should we resize them? Should we chamber the edges of the discs to avoid binding

can you delete the washer part from the PR as well


Merge v0.5.0 back into develop

v0.5.0 took the latest state from develop before the new go-wire. It includes the refactor of the Keybase.
Note this required splitting the commit 788cc0a79256d4fe0448e17a90217acf3d61346b because that commit refactored the Keybase and updated for new go-wire all at once.
So v0.5.0 needs to be merged back into develop, or develop should be rebased on it. Probably the former

Done via merge https://github.com/tendermint/go-crypto/commit/e05ba9511ae5a48987168918c92583729f218952


App crashing on iOS 14.2 when deployed using an MDM

Environment

Cross-platform modules:

nativescript 6.7.8
tns-core-modules 6.5.21

iOS Runtime:

tns-ios 6.5.3

Describe the bug
App works just fine on iOS 14.1 and below (deployed using MDM). It crashes with iOS 14.2 when deployed using an MDM tool (works fine with normal deployment).
Our MDM provider sent us this link for troubleshooting: https://developer.apple.com/forums/thread/666399
The Xamarin team have a fix, but it is very Xamarin specific. Looking for a NativeScript fix.
error     11:00:27.580673-0500  cloudd  [Request 0x145166db0] Finishing request with error 0x143e47750
error     11:00:27.597337-0500  cloudd  Couldn't pull url from backing account <private> or context <private>
error     11:00:27.597455-0500  cloudd  Couldn't pull url from backing account <private> or context <private>
error     11:00:27.663547-0500  duetexpertd      <private> - unable to load NSUserDefaults suite
error     11:00:27.689133-0500  dasd     Activity <private> not tracked as being started, ignoring it
error     11:00:28.593288-0500  SpringBoard     Snapshot generation request for bundleID: our.app.id rejected due to the app being denylisted.
error     11:00:28.614079-0500  kernel   System Policy: mobileapp(492) deny(1) dynamic-code-generation MAP_JIT requires the dynamic-codesigning entitlement
error     11:00:28.645842-0500  SpringBoard     Snapshot generation request for bundleID: our.app.id rejected due to the app being denylisted.
error     11:00:28.647825-0500  wifid     __WiFiManagerUpdateFamilyPreferences_block_invoke_2: error loading family members: Error Domain=com.apple.family.error Code=-1004 "(null)"
error     11:00:28.647958-0500  familycircled     No iCloud, no family. You know the rules.
error     11:00:28.876152-0500  kernel   Sandbox: mobileapp(492) deny(2) file-test-existence /private/etc/.mdns_debug
error     11:00:29.286648-0500  runningboardd  RBSStateCapture remove item called for untracked item <RBProcessMonitorObserver| qos:0 qos:(null) configs:{            }>
error     11:00:29.297266-0500  SpringBoard     Unable to get short BSD proc info for 492: No such process
error     11:00:29.304982-0500  SpringBoard     Unable to get short BSD proc info for 492: No such process
error     11:00:29.326567-0500  SpringBoard     Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>
error     11:00:29.337173-0500  familycircled     No iCloud, no family. You know the rules.
error     11:00:29.339870-0500  wifid     __WiFiManagerUpdateFamilyPreferences_block_invoke_2: error loading family members: Error Domain=com.apple.family.error Code=-1004 "(null)"
error     11:00:29.354877-0500  SpringBoard     tried to remove an assertion that was never added: <SBFloatingDockBehaviorAssertion: 0x2813fbf80> {
    pinned = NO;
    animated = YES;
    gesture possible = YES;
    visible progress = 0.000000;
    level = in app;
    reason = in app;
    timestamp = 2020-12-08 16:00:28 +0000;
}
error     11:00:29.361299-0500  SpringBoard     HW kbd: Failed to set keyboard focus pid:0 ((null)) scene:(null)
error     11:00:29.361396-0500  SpringBoard     HW kbd: Failed to set keyboard focus pid:0 ((null)) scene:(null)
error     11:00:29.362488-0500  SpringBoard     Snapshot generation request for bundleID: our.app.id rejected due to the app being denylisted.
error     11:00:29.374109-0500  SpringBoard     Error creating the CFMessagePort needed to communicate with PPT.
error     11:00:29.817637-0500  duetexpertd      <private> - Current subscription is in a recursion. StreamId: homeScreen
error     11:00:29.817768-0500  duetexpertd      <private> - Current subscription is in a recursion. StreamId: homeScreen
error     11:00:29.818027-0500  duetexpertd      <private> - Current subscription is in a recursion. StreamId: homeScreen
error     11:00:29.818279-0500  duetexpertd      <private> - Current subscription is in a recursion. StreamId: homeScreen
error     11:00:29.818612-0500  duetexpertd      <private> - Current subscription is in a recursion. StreamId: homeScreen
error     11:00:29.818805-0500  duetexpertd      <private> - Current subscription is in a recursion. StreamId: homeScreen
error     11:00:29.819149-0500  duetexpertd      <private> - Current subscription is in a recursion. StreamId: homeScreen
error     11:00:29.819241-0500  duetexpertd      <private> - Current subscription is in a recursion. StreamId: homeScreen
error     11:00:29.820290-0500  duetexpertd      <private> - Current subscription is in a recursion. StreamId: homeScreen
error     11:00:29.820425-0500  duetexpertd      <private> - Current subscription is in a recursion. StreamId: homeScreen
error     11:00:29.820482-0500  duetexpertd      <private> - Current subscription is in a recursion. StreamId: homeScreen
error     11:00:29.820559-0500  duetexpertd      <private> - Current subscription is in a recursion. StreamId: homeScreen
nativescript

To Reproduce
Deploy application via an MDM tool a device using iOS 14.2
Expected behavior
Not crash

We are also having this issue.  Apple says it is fixed in 14.4 beta 2.  Has anyone found a workaround for NativeScript?

We are also having this issue.  Apple says it is fixed in 14.4 beta 2.  Has anyone found a workaround for NativeScript?

@JamesRoome ios 14.4 was just released and this issue appears to be fixed.  My app was working well after the update.

@JamesRoome ios 14.4 was just released and this issue appears to be fixed.  My app was working well after the update.


add documentation: hints, kind, and labels

As part of the ALS Hackathon, add documentation for the hints, kind, and labels attributes.
TODO

[ ] add hints subsection under Device to device-overview.rst
[ ] add links to hints from other sections in ophyd and bluesky
[ ] add kind section to signals.rst (but that doc is very limited!)
[ ] add links to kind from other sections in ophyd and bluesky
[ ] in ophyd.device.Device, Kind needs a link to its class
[ ] add labels subsection under Component to device-overview.rst
[ ] add links to labels from other sections in ophyd and bluesky

Take into account that labels might be deprecated in the near future.

This will compel bluesky documentation for attributes such as dimensions since those values might be derived from ophyd's hints["dimensions"]

@danielballan : The Signal documentation is very lightweight.  Yet it seems to me the best place to document the kind attribute.  Suggestions?

travis is failing but cannot tell if it due to the work on this branch.  Since there are 7 fails in the unit test, that's not this branch.  moving on ... =O--O=

Building sphinx locally, this error happens in the master branch:
Warning, treated as error:
/installed_path/BlueSky/lib/python3.6/site-packages/ophyd/areadetector/base.py:docstring of ophyd.areadetector.base.ADBase:1:Literal block expected; none found.

This error gets in the way of local syntax checks on the contributions from this branch.

skipping the items to add links to kind and labels - need to identify specific places to add them - that's for new issue(s)


Diagram Architecture

Create a diagram and description of the new event based architecutre

@elliedavidson where is this diagram?

@jbearer https://github.com/EspressoSystems/HotShot/tree/main/task-impls


Attribute ID does not belong to a known attribut (1.18.2)

This keep appearing on console when restarting : Full Log (scroll to very bottom then up little)

Hi there,
Thanks for the report; I'll look into it. Full disclosure, I've had messages like this occasionally present in the dev environment, but they were due to minor timing issues between client/server syncing, and were not actually indicative of any mechanical problem.
Just to be clear, other than the error messages you've shown, are you noticing any functional issues in-game? I.e. crashes, suspicious values? If not, the solution will be to just mute the error messages in future releases.


res.catch is not a function  from vuex when enable devtools

if I disable vue.js-devtools from google chrome extension , my website will work

Please refer to here https://github.com/vuejs/vuex/issues/263


Add max_execution_time parameter to backend.run

When using backend.run(), jobs are converted into circuit-runner jobs. By default, circuit-runner jobs have max_execution_times of around 4 hours.
It is possible to manually set the max_execution_time for jobs submitted through the QiskitRuntimeService, so this functionality could also be moved to backend.run().
What is the expected behavior?
Have backend.run() accept a max_execution_time parameter. This will work the same as if you manually created the circuit-runner job and manually set a max_execution_time.

Closing since backend.run is deprecated.


Powers in house_e.cpp are inconsistent

One example is evident when hvac_load is higher than total_load. Upon investigation total_load is actually a magnitude of complex power where hvac_load is only the real power of the hvac demand.
Further investigation is required to confirm the consistency of the units.

@aivanova5, it's not clear whether this issue was fixed by #217.

@ftuffner, any thoughts on this issue? Is this what is intended?

This is unlikely to result in any changes to the definitions of the properties, at least not in the near term. Closing.


Invalid SQL statement generated for a table without a primary key

In addition to a feature added in #8760 it would be better to somehow warn the user that generated SELECT .. WHERE .. IN statement would be invalid if the table does not have a primary key.

Or we can use selected columns instead of keys.

Duplicate of #13344


Add (disabled) test for cancelling an in-progress connection attempt

This PR adds a (disabled) test which ensures that Container.disconnect() will cancel any in-progress connection attempts and the container will remain disconnected. This test is disabled because it would fail in the codebase's current state. It will be enabled when https://github.com/microsoft/FluidFramework/issues/9789 is resolved and the underlying behavior is corrected.

Closed because this is included in https://github.com/microsoft/FluidFramework/pull/10493


Update Pillow-10.1.0.tar.gz to 10.2.0

🤖 This pull request was automatically generated by flathub/flatpak-external-data-checker. Please open an issue if you have any questions or complaints. 🤖

Covered by #150


 And I don't have environment information.
That's why I'm calling the sandbox environment as an official guide. However, unlike the official guide, certain apps sometimes use production URLs to call endpoints to receive 401 status codes and successfully call endpoints using the sandbox environment.
Why does this difference occur unlike the official guide?
Is there any way to determine if I should call into a sandbox environment when I receive a 401 status code from a production endpoint?
Sometimes it's a production transaction and JWT hasn't expired, but I'm getting a 401 status code response and calling it into a sandbox environment.
Please let me know the solution.

I call transaction information for several apps. And I don't have environment information.
That's why I'm calling the sandbox environment as an official guide. However, unlike the official guide, certain apps sometimes use production URLs to call endpoints to receive 401 status codes and successfully call endpoints using the sandbox environment.
Why does this difference occur unlike the official guide? Is there any way to determine if I should call into a sandbox environment when I receive a 401 status code from a production endpoint?
Sometimes it's a production transaction and JWT hasn't expired, but I'm getting a 401 status code response and calling it into a sandbox environment.
Please let me know the solution.

If you actively call the apple api to obtain information, you can first use the online configuration to request the transactionId to obtain relevant information. If the online configuration request returns TRANSACTION_ID_NOT_FOUND (4040010L), you can then use the sandbox environment configuration to request the information.
If you are receiving information from the callback address and are not sure whether it is sandbox or production, you can add parameters to the callback address, such as xxxx?issandbox=true.

Hello. Thank you for your response.
May I know the meaning of the 'issandbox' parameter?
I don't know the environment, so what criteria should I write the value?
Currently, the 'Get Transaction Info' API does not have the corresponding parameters written.
Do I call it like the example below?
ex) https://api.storekit.itunes.apple.com/inApps/v1/transactions/1234567890?issandbox=false
What I want to know is that when I receive a 401 status code in response from a production environment endpoint, I want to know if this status code is a real error or if I have to call it into a sandbox environment.

Hello. Thank you for your response. May I know the meaning of the 'issandbox' parameter? I don't know the environment, so what criteria should I write the value? Currently, the 'Get Transaction Info' API does not have the corresponding parameters written. Do I call it like the example below? ex) https://api.storekit.itunes.apple.com/inApps/v1/transactions/1234567890?issandbox=false
What I want to know is that when I receive a 401 status code in response from a production environment endpoint, I want to know if this status code is a real error or if I have to call it into a sandbox environment.
If the production environment endpoint needs to receive a 401 status code and call it to the sandbox, we have confirmed that the response header of the production environment endpoint contains keys 'b3' and 'apple-tk'. Should I check for the presence or absence of a heading key?

This library has already encapsulated the relevant requests for you, why do you still need to request this link yourself? You can refer to this https://github.com/apple/app-store-server-library-java/issues/76
The issandbox I am talking about is the App Store server notification, which probably has nothing to do with you.

Hello. Thank you for your response. May I know the meaning of the 'issandbox' parameter? I don't know the environment, so what criteria should I write the value? Currently, the 'Get Transaction Info' API does not have the corresponding parameters written. Do I call it like the example below? ex) https://api.storekit.itunes.apple.com/inApps/v1/transactions/1234567890?issandbox=false
What I want to know is that when I receive a 401 status code in response from a production environment endpoint, I want to know if this status code is a real error or if I have to call it into a sandbox environment.
If the production environment endpoint needs to receive a 401 status code and call it to the sandbox, we have confirmed that the response header of the production environment endpoint contains keys 'b3' and 'apple-tk'. Should I check for the presence or absence of a heading key?

This library has already encapsulated the relevant requests for you, why do you still need to request this link yourself? You can refer to this I only have one transactionId, but I’m not sure whether it’s a sandbox or a production environment. How to get the subscription plan? #76
The issandbox I am talking about is the App Store server notification, which probably has nothing to do with you.

I already know how to call the sandbox environment when the TRANSSACTION_ID_NOT_FOUND response occurs.
The question is, if it's a sandbox payment, when you call a production environment endpoint to get a response with a 401 status code and call a sandbox environment endpoint to succeed.
I was wondering if it was a real error when I received the 401 status code from the production environment endpoint, or in what case should I call it into the sandbox environment.

TRANSACTION_ID_NOT_FOUND

Now in my company, TRANSACTION_ID_NOT_FOUND appears online and then calls the sandbox environment. There is no other good way for the time being.

Hello. Thank you for your response. May I know the meaning of the 'issandbox' parameter? I don't know the environment, so what criteria should I write the value? Currently, the 'Get Transaction Info' API does not have the corresponding parameters written. Do I call it like the example below? ex) https://api.storekit.itunes.apple.com/inApps/v1/transactions/1234567890?issandbox=false
What I want to know is that when I receive a 401 status code in response from a production environment endpoint, I want to know if this status code is a real error or if I have to call it into a sandbox environment.
If the production environment endpoint needs to receive a 401 status code and call it to the sandbox, we have confirmed that the response header of the production environment endpoint contains keys 'b3' and 'apple-tk'. Should I check for the presence or absence of a heading key?

This library has already encapsulated the relevant requests for you, why do you still need to request this link yourself? You can refer to this I only have one transactionId, but I’m not sure whether it’s a sandbox or a production environment. How to get the subscription plan? #76
The issandbox I am talking about is the App Store server notification, which probably has nothing to do with you.

I already know how to call the sandbox environment when the TRANSSACTION_ID_NOT_FOUND response occurs.
The question is, if it's a sandbox payment, when you call a production environment endpoint to get a response with a 401 status code and call a sandbox environment endpoint to succeed.
I was wondering if it was a real error when I received the 401 status code from the production environment endpoint, or in what case should I call it into the sandbox environment.

Now in my company, TRANSACTION_ID_NOT_FOUND appears online and then calls the sandbox environment. There is no other good way for the time being.

@sigriswil If you don't have a production release of the app, you are not allowed to use the production App Store Server API. Once you release an app for the first time in production, then you will be able to receive a TRANSSACTION_ID_NOT_FOUND exception

@sigriswil If you don't have a production release of the app, you are not allowed to use the production App Store Server API. Once you release an app for the first time in production, then you will be able to receive a TRANSSACTION_ID_NOT_FOUND exception

Thank you for your answer. We manage multiple app information and don't know if the apps have a production release. Even if there is a production release, the token hasn't expired, and very occasionally returns a 401 response for unknown reasons. Is there a way to know if it's an actual 401 error, or a 401 error because there's no production release?

Is this the scene?
https://github.com/apple/app-store-server-library-java/issues/96

@sigriswil If you don't have a production release of the app, you are not allowed to use the production App Store Server API. Once you release an app for the first time in production, then you will be able to receive a TRANSSACTION_ID_NOT_FOUND exception

Thank you for your answer. We manage multiple app information and don't know if the apps have a production release. Even if there is a production release, the token hasn't expired, and very occasionally returns a 401 response for unknown reasons. Is there a way to know if it's an actual 401 error, or a 401 error because there's no production release?

Is this the scene? https://github.com/apple/app-store-server-library-java/issues/96

@sigriswil If you don't have a production release of the app, you are not allowed to use the production App Store Server API. Once you release an app for the first time in production, then you will be able to receive a TRANSSACTION_ID_NOT_FOUND exception

Thank you for your answer. We manage multiple app information and don't know if the apps have a production release. Even if there is a production release, the token hasn't expired, and very occasionally returns a 401 response for unknown reasons. Is there a way to know if it's an actual 401 error, or a 401 error because there's no production release?

Is this the scene? (httpStatusCode=401, apiError=null, apiErrorMessage='null') #96

Yes. I happen in the 'Get Transaction Info' API.

The issue appears to have changed into a duplicate of https://github.com/apple/app-store-server-library-java/issues/96, closing this issue in favor of that issue


New append series data to append chart, but subtract series data to subtract chart failed in react !

Version
4.3.0
Reproduction link
https://jsfiddle.net/afzs8go9/
Steps to reproduce
set series to empyt array and reset data but can't subtract series data in getOption result
What is expected?
subtract series data can subtract  chart
What is actually happening?
subtract chart failed

You should set the seconds parameter of setOption to be true to remove series.

thank you


Renamed Python module to ikz_plugin

I reverted the name of the python module from nomad_ikz_plugin to ikz_plugin to avoid problems with existing m_defs.

I haven't tested the changes so would be good if someone could do that. Alternatively I can do this later.


future::Shared can hang if a clone gets dropped

Consider the following program:
    use futures::Future;
    use futures::sync::oneshot;

    let mut core = ::tokio_core::reactor::Core::new().unwrap();
    let handle = core.handle();

    let (tx, rx) = oneshot::channel::<u32>();
    let f1 = rx.shared();
    let f2 = f1.clone();

    let (tx2, rx2) = oneshot::channel::<u32>();

    handle.spawn(
        f1.map_err(|_| ()).map(|x| *x).select(rx2.map_err(|_| ()))
            .and_then(|x| { println!("first task got {}", x.0); Ok(()) }).map_err(|_| ()));

    let (tx3, rx3) = oneshot::channel::<u32>();

    handle.spawn(f2.map(|x| tx3.complete(*x)).map_err(|_| ()));

    tx2.complete(11); // Causes `f1` to get cancelled.
    core.turn(Some(::std::time::Duration::from_millis(1)));

    tx.complete(42); // Should cause `f2` and then `rx3` to get resolved.
    let result = core.run(rx3).unwrap();
    assert_eq!(result, 42);

I expect this to terminate successfully. Instead, it hangs at the core.run(). The problem, as I understand it, is that once f1 is cancelled, tx.complete(42) has no way of waking up the proper task. One way to solve this might be to add some unpark() logic in the destructor of Shared<F>.

Thanks for the detailed report! I think I've fixed this in https://github.com/alexcrichton/futures-rs/pull/305, but it's not quite done in an optimal fashion unfortunately. Could you see if it fixes your use case locally, though? (the test here should pass at least)


Validate client's TLS certificates, when CA provided

If a root CA is passed, we set RequireAndVerifyClientCert on the tls config, which ensures that a client certificate should be requested during the handshake, and that at least one valid certificate is required to be sent by the client.
If no root CA is passed, no client certificate will be requested during the handshake, and if any certificates are sent they will not be verified.
Fixes #76
/cc @lucboj @halber

Merging validation changes.

I accidentally closed the pr.  Going to wait for tests again then merge it.


UnsupportedError: Unsupported URL: https://app.konf.co/event/nV9LOoiQ/session/4675?wvideo=4nh2gmql2j

Checklist

[x ] I'm reporting a new site support request
[x ] I've verified that I'm running youtube-dl version 2021.06.06
[x ] I've checked that all provided URLs are alive and playable in a browser
[x ] I've checked that none of provided URLs violate any copyrights
[x ] I've searched the bugtracker for similar site support requests including closed ones

Example URLs

Single video: https://www.youtube.com/watch?v=BaW_jenozKc
Single video: https://youtu.be/BaW_jenozKc
Playlist: https://www.youtube.com/playlist?list=PL4lCao7KL_QFVb7Iudeipvc2BCavECqzc

Description

WRITE DESCRIPTION HERE

Verbose output is here: (version is 2021.06.06) - thanks
chris@aranda:/media/chris/One Touch
$ youtube-dl -v https://app.konf.co/event/nV9LOoiQ/session/4675?wvideo=4nh2gmql2j
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://app.konf.co/event/nV9LOoiQ/session/4675?wvideo=4nh2gmql2j']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2021.06.06
[debug] Python version 2.7.13 (CPython) - Linux-4.19.0-5-amd64-x86_64-with-MX-18.3-Continuum
[debug] exe versions: ffmpeg 3.3.4-1mx17, ffprobe 3.3.4-1mx17, rtmpdump 2.4
[debug] Proxy map: {}
[generic] 4675?wvideo=4nh2gmql2j: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 4675?wvideo=4nh2gmql2j: Downloading webpage
[generic] 4675?wvideo=4nh2gmql2j: Extracting information
ERROR: Unsupported URL: https://app.konf.co/event/nV9LOoiQ/session/4675?wvideo=4nh2gmql2j
Traceback (most recent call last):
File "/home/chris/.local/lib/python2.7/site-packages/youtube_dl/extractor/generic.py", line 2503, in _real_extract
doc = compat_etree_fromstring(webpage.encode('utf-8'))
File "/home/chris/.local/lib/python2.7/site-packages/youtube_dl/compat.py", line 2571, in compat_etree_fromstring
doc = _XML(text, parser=etree.XMLParser(target=_TreeBuilder(element_factory=_element_factory)))
File "/home/chris/.local/lib/python2.7/site-packages/youtube_dl/compat.py", line 2560, in _XML
parser.feed(text)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1653, in feed
self._raiseerror(v)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1517, in _raiseerror
raise err
ParseError: syntax error: line 1, column 0
Traceback (most recent call last):
File "/home/chris/.local/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 815, in wrapper
return func(self, *args, **kwargs)
File "/home/chris/.local/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 836, in __extract_info
ie_result = ie.extract(url)
File "/home/chris/.local/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 534, in extract
ie_result = self._real_extract(url)
File "/home/chris/.local/lib/python2.7/site-packages/youtube_dl/extractor/generic.py", line 3520, in _real_extract
raise UnsupportedError(url)
UnsupportedError: Unsupported URL: https://app.konf.co/event/nV9LOoiQ/session/4675?wvideo=4nh2gmql2j

You've provided example URLs from YouTube rather than the site being proposed.
The URL in your log seems to redirect to the event page (once JS is enabled): presumably you need to provide login details.

Thankyou, I will review.

Previous info applies.
Please note that video plays directly in browser from link without needing to provide login details.
https://app.konf.co/event/nV9LOoiQ/session/4675?wvideo=4nh2gmql2j
Something else is occurring???

For me your link always redirects to https://konf.co/event/nV9LOoiQ/go. Possibly a browser compat issue, or might you have a persistent cookie from a previous login?

Yes - good tip - I think I need to work out which cookie - when I try another computer I also get sent to  https://konf.co/event/nV9LOoiQ/go


Added static async factory to SpotifyApi to catch exceptions thrown by oauth2 package

Right now the only way to instantiate SpotifyApi class with credentials is like this:
var credentials = SpotifyApiCredentials(
  'clientId',
  'clientSecret',
);
var spotify = SpotifyApi(credentials);

But with wrong credentials you get AuthorizationException, which you can't catch with any obvious way (and probably can't catch without modifying the library itself at all)
try {
  var spotify = SpotifyApi(invalidCredentials);
} on AuthorizationException {
  print('This will never print despite the exception being thrown');
}

That is because _getOauth2Client method never gets awaited and is instantly used in class.
https://github.com/rinukkusu/spotify-dart/blob/7af8323ebe3831fac1ac8beb72aa5c991728f827/lib/src/spotify_base.dart#L54-L56
However, this PR allows instantiating SpotifyApi asynchronously with static method asyncFromCredentials, meaning that exceptions can be handled in <Future>.catchError or a try/catch block.
try {
  var spotify = await SpotifyApi.asyncFromCredentials(invalidCredentials);
} on AuthorizationException {
  print('Invalid credentials!');
}

I also added export from oauth2 package exposing AuthorizationException and ExpirationException so these can be handled
Might resolve #73

Hmm, I think I've either done something wrong while trying to get your branch up-to-date (so I could merge it), or Github doesn't behave well with merge conflicts...

Thanks and sorry for reacting so late!!

I think I did it? Hope I didn't messed up

Now everything should be fine (I really hope so!)


Use Ubuntu LTS 20.04 instead of 18.04 in CI

🚀 Enhancement in CI
Some are already been running on 20.04, but not all of them (see below).
Motivation
It enables testing on a more widely used version of Ubuntu.
Pitch
Replace the following occurrences with 20.04:
$ grep -rnI 18.04
./dockers/base-cuda/Dockerfile:17:FROM nvidia/cuda:${CUDA_VERSION}-devel-ubuntu18.04
./dockers/base-conda/Dockerfile:17:FROM nvidia/cuda:${CUDA_VERSION}-devel-ubuntu18.04
./.github/workflows/ci_test-full.yml:20:        os: [ubuntu-18.04, windows-2019, macOS-10.15]
./.azure-pipelines/gpu-tests.yml:29:      # base ML image: mcr.microsoft.com/azureml/openmpi3.1.2-cuda10.2-cudnn8-ubuntu18.04

Alternatives
No update
Additional context
Ubuntu's release cycle: https://ubuntu.com/about/release-cycle

If you enjoy Lightning, check out our other projects! ⚡

Metrics: Machine learning metrics for distributed, scalable PyTorch applications.

Lite: enables pure PyTorch users to scale their existing code on any kind of device while retaining full control over their own loops and optimization logic.

Flash: The fastest way to get a Lightning baseline! A collection of tasks for fast prototyping, baselining, fine-tuning, and solving problems with deep learning.

Bolts: Pretrained SOTA Deep Learning models, callbacks, and more for research and production with PyTorch Lightning and PyTorch.

Lightning Transformers: Flexible interface for high-performance research using SOTA Transformers leveraging Pytorch Lightning, Transformers, and Hydra.

cc @carmocca @akihironitta @borda

Sounds good to me 👍. Could also set ubuntu-latest if you are feeling spicy 🌶


Spanish translations

Hello,
This adds support for the Spanish language.
There is one catch, though.
In English, May (short name) and May (long name) are the same. But in Spanish (at least), May (short name) and Mayo (long name) are different.
The file months.po does not have a placeholder for the long name for May. I'm not really sure how to tackle this, but it seems the same thing happens in Italian, where Mag and Maggio are different but there's only one placeholder.
Any thoughts?
Thank you!

Coverage decreased (-0.08%) to 66.137% when pulling 0de95317feff98f11fdce601f1bf6bdd4e937a74 on PortaText:spanish_translation into 31b95569ecfd5253c03bbffb6c0b4af9a6d3027c on bitwalker:master.

We should probably make sure May has both short/long variants, I can take a look at this and update once I have a bit more of an idea of how to proceed.

So I just reviewed the Translator module, and it has the following:
  dgettext "months", "Jan"
  dgettext "months", "Feb"
  dgettext "months", "Mar"
  dgettext "months", "Apr"
  dgettext "months", "May"
  dgettext "months", "Jun"
  dgettext "months", "Jul"
  dgettext "months", "Aug"
  dgettext "months", "Sep"
  dgettext "months", "Oct"
  dgettext "months", "Nov"
  dgettext "months", "Dec"

  dgettext "months", "January"
  dgettext "months", "February"
  dgettext "months", "March"
  dgettext "months", "April"
  dgettext "months", "May"
  dgettext "months", "June"
  dgettext "months", "July"
  dgettext "months", "August"
  dgettext "months", "September"
  dgettext "months", "October"
  dgettext "months", "November"
  dgettext "months", "December"

These are the "short" and "long" versions. As far as I can tell, there is support for the two variants you mentioned. Is that what you meant?

Yes, but this file: https://github.com/bitwalker/timex/blob/master/priv/translations/months.pot#L79 has only 1 placeholder with ID "May". So the "long may" should be changed then to something like "LongMay" and then add this new msgid to all the translations available, right?

Oh ha, did not even see that. Ok yeah, I'll look into changing this, just have to make sure there's no code expecting "May" to be translated based on a parse or something.

Hi @bitwalker! I know this might not be a priority right now, but I was wondering if you have any plans on going back to this pull.
Thank you! :)
Best,

@marcelog I've pushed a change to master which introduces a different msgid for abbreviated months, and updates existing translations to use it. Could you rebase your translations on the new .pot files and add in the translations you couldn't before? Once that's done I can go ahead and merge :)

Coverage decreased (-0.04%) to 64.798% when pulling 6402f2df5aa051acd6aea76fb1e9cd3f48e5fe2c on PortaText:spanish_translation into 4474aeba6f323830721727231a1682e9e232deb7 on bitwalker:master.

Coverage increased (+0.04%) to 64.879% when pulling a4d213df9951670e70313b1d0a152983804b399b on PortaText:spanish_translation into 4474aeba6f323830721727231a1682e9e232deb7 on bitwalker:master.

Updated :) Thank you @bitwalker!

No problem, but you deserve the thanks here @marcelog :)

My pleasure! :)


Update domains and scale sets

This doc says:
"(Resource Manager deployments can then be increased to provide up to 20 update domains)"
First, how is this done? I don't see a portal setting, nor a parameter to change this for Update-AzureRmAvailabilitySet.
https://docs.microsoft.com/en-us/powershell/module/azurerm.compute/update-azurermavailabilityset?view=azurermps-6.6.0
If it can only be specified at creation with New-AzureRmAvailabilitySet -PlatformUpdateDomainCount, that doesn't match what is being said here.
Also, scale sets info says:
"A regional (non-zonal) scale set uses placement groups, which act as an implicit availability set with five fault domains and five update domains. "
https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-faq
Would the update domain settings of an availability set override the default 5 for the placement group (scale set), if a VM is created in both a scale set and an availability set?
Thanks!

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

ID: 948b29e3-d488-0a0e-89c7-42849a93522d
Version Independent ID: 8c986086-9343-4b99-ae53-f4fd1159d4f8
Content: Manage the availability of Windows VMs in Azure
Content Source: articles/virtual-machines/windows/manage-availability.md
Service: virtual-machines-windows
GitHub Login: @cynthn
Microsoft Alias: cynthn

Thanks for the feedback! We are currently investigating and will update you shortly.

@dcbrown16 You are right. A VM can only be added to an availability set when it is created. To change the availability set, you need to delete and then recreate the virtual machine.
I have assigned the issue to the content author to evaluate and update as appropriate.

@Karishma-Tiwari-MSFT is your response intended for a different issue? It seems like it isn't answering the original question.
The docs already cover the fact that you can't add a VM to an AV set after it is created... but I don't think that is what this issue is about? It sounds like it is more about update domains.

@cynthn @Karishma-Tiwari-MSFT
Thanks, yes I'm not 100% sure if the fact that VMs can only go into AVs at creation also determines the update domains. How can we increase the number of update domains after creation?
And what happens if there is a conflict in the number specified from the AV (apparently up to 20) and the scale set (fixed at 5)?
Thanks!

Can the change only be made with REST API calls? I don't see any options in the portal or PowerShell as mentioned, but I found this.
https://docs.microsoft.com/en-us/rest/api/compute/availabilitysets/createorupdate

@cynthn Since Availability set comprises of Fault domain and update domain, this statement from the doc:
"To change the availability set, you need to delete and then recreate the virtual machine."
it implied to me that we need to delete and then recreate VM to update the update domain as well.
I could not find any other documentation on how to update the update domain other than this doc shared by the customer.
Please share if you have any insights or an existing doc you know of, that can be shared with the customer. :)

@cynthn one more restriction about availability sets that I'll add to the pile to confirm - it seems the Portal at least will only let you put a new VM in an availability set that is in the same resource group (as the VM you are making). Is that an intentional restriction? Any workarounds with PS/CLI etc.?

Hello @cynthn. Any update on this issue? I see that there's also an update function with azcli
https://docs.microsoft.com/en-us/cli/azure/vm/availability-set?view=azure-cli-latest#az-vm-availability-set-update
We are also looking to update our fault domains for our availablity set and ran into issues with terraform and like other users I dont see the ability to update fault domains in the azure portal either.
Thanks!

@dcbrown16 and @v-maroge sorry it has taken so long for me to loop back around on this. My understanding is that the VMs need to be in the same resource group as the availability set. I don't see a way to specify where the AV set is when you create the VM and testing using the Azure CLI fails when I try to create a VM and put it in an AV set that isn't in the same resource group.
I also can't find a way to change the update or fault domain count on an existing availability set. The Update-AzAvailabilitySet cmdlet looks like it is only for converting between "aligned" and not aligned (you use "aligned" when your VMs use managed disks).
You can specify up to 20 update domains in the portal, CLI and PowerShell.
I'm adding @mayanknayar from the scale-sets team to see if he can answer the question about "who wins" if you create VMs in both a scale-set and an availability set. He might know whether you can only get 5 fault and update domains or if you can go up to 20 update domains in that circumstance.
Depending on the response from @mayanknayar, I will update the VMs and VMSS docs. Thank you!

Thanks @cynthn, the original support request was resolved as "we don't know" but I'm sure it will come up again so any info would be appreciated.

For the who wins question, you can't have the same VM in an AVSet and also in a VMSS. The creation and management of Standalone/AvSet VMs is different from that of VMSS instances and the two are not changeable.
For VMSS specifically, the default FD count is 5. You can change it to 1, 2 or 3 from the default of 5. The UD count is 5 and is not changeable. And you can't move an instance from one FD to another. You can specific the FD count at the VMSS level and then VMSS will distribute the instances across the number of fault domains you've specified. You can check the UD and FD details for any instance through the instance view of the VMSS instance.
More information on VMSS FD can be found in this article: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-manage-fault-domains
VMSS instance view details are here: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-upgrade-scale-set#the-scale-set-instance-view

#please-close

Thanks :)


Fix: Increase file size limit for uploads in nginx configuration

This pull request adds the client_max_body_size directive to the nginx configuration and sets it to 100mb, allowing for larger file uploads.
@BeritJanssen did or do we have a file size limit configured already somewhere in Django?
Resolves #777

I've considered timeouts that might occur when uploading files. The default value in nginx is 60 seconds, which should be enough I think. If not, it should be very easy to increase it:
server {
    listen 80;

    client_max_body_size 100M;
    client_body_timeout 120s;
    client_header_timeout 120s;
    keepalive_timeout 120s;


UI updates

Remove the extra arrow on Safari
Display Total Claimed on OP reward page
Change buttons to connect wallet button on the FE when not connected
Allow users to send transactions more quickly by enabling the send button immediately after they set the values for a new route

On it thanks!


Fix internet connection check for non Wi-Fi connections

Currently it's limited to only Wi-Fi connectivity check, which it should not.
Related to https://github.com/knutkirkhorn/cisco-vpn-rdp-connecter/commit/7ba96e40d7290cd44dd397adc65f255864583f48.

Could try to solve this by just checking if the VPN server is reachable.


pinned selections

based on #88
closes #84
allow the user to pin one or more nodes that remain in focus (the union of their one hop neighbors is shown)

added the ctrl-click and click to select feature. In addition, please run yarn install since I added font-awesome

This looks ready to merge to me.


WIP: Remove tensorflow.compat.v1.reset_default_graph()

Closes #2731
Investigating the safety of removing reset default graph.
No review needed yet.

We are using tensorflow.compat.v1.reset_default_graph() in:

Activity Classifier
Drawing Classifier
Object Detector
Style Transfer

After removing reset_default_graph from all four toolkits, only Activity Classifier and Drawing Classifier tests break. Adding the graph context manager fixes the breaks.


problem with documentation publishing

Public documentation is not updated although GitHub publishing action says it has been pushed .  The new commits are seen in the documentation repo.

Looking at the published docs repo, It's obvious now what is the problem.  They've been published with the wrong name: ${PACKAGE}.

Got toresolve this issue in the main branch since that is the only one that processes the publishing workflow.

Once successful, delete the ${PACKAGE} directory from the published docs repo.

Ha!  Delete the directory, easier said than done.  Laborious process, deleting one-by-one from the web UI.
see, for instance: https://narayanatutorial.com/version-controls/git/how-to-delete-folder-in-github-repository-and-local-git-repository

Too many files to do it by that method, each one a separate commit.

@mrakitin : Agree with this procedure (to execute on my local workstation):
cd /tmp
git clone https://github.com/bluesky/bluesky.github.io
cd bluesky.github.io
/bin/rm -rf "\${PACKAGE}"
git commit -am "remove PACKAGE directory"
git push
cd ..
/bin/rm -rf bluesky.github.io

Maybe needs a (temporary) deploy key first, to push from local command line?

@prjemian, in /bin/rm -rf "\${PACKAGE}", why do you escape the $? Do you want this variable to be expanded?

The repo:

It is necessary to delete the subdirectory with name exactly ${PACKAGE} (not as a macro expansion)
(bluesky_2021_1) prjemian@zap:~/.../Bluesky/hklpy$ env | grep PACKAGE
(bluesky_2021_1) prjemian@zap:~/.../Bluesky/hklpy$ echo "${PACKAGE}"

(bluesky_2021_1) prjemian@zap:~/.../Bluesky/hklpy$ echo "\${PACKAGE}"
${PACKAGE}

That thing circled in red must be deleted.

Oh, got it. How did it end up there?

https://github.com/bluesky/hklpy/blob/05aa6fa62c53c35a391ce074cc31cc85007cc0da/.github/workflows/publish-docs.yml#L86
It's been there a while and we did not find it.

Looks like a typo.  But, ${{ PACKAGE }} was not the fix (because PACKAGE was not defined at that stage).  Not sure what fix to apply that would pick this up automatically, but the current change works.

It's easy to overlook this type of thing that appears to be related to configuration or something else.

I think if you export it at around that line: https://github.com/bluesky/hklpy/blob/05aa6fa62c53c35a391ce074cc31cc85007cc0da/.github/workflows/publish-docs.yml#L30
that may appear in the environment variables in the last step. The Azure-like syntax would be $(PACKAGE).
Can you try that?

I am referring to https://docs.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=yaml%2Cbatch#runtime-expression-syntax. That may be different for GitHub Actions, but it's still M$, so hopefully it's consistent.

OK, I see the env. var PACKAGE was added to the env. Looking into https://docs.github.com/en/actions/reference/environment-variables, it seems we need to use:
${{ env.PACKAGE }}

... As long as that definition is exactly the one we want.

A good sign is that it did not fail the workflow right away (that's what a workflow syntax error looks like in the yaml file).

Good.  This ran to completion.  Now, the only remaining item is to delete the directory named  ${PACKAGE}.

Using the commands above, deleted the offending directory in https://github.com/bluesky/bluesky.github.io/commit/5c92b9c61be17c84ea8024d0236192e430077574

The destination dir looks good now:

Thanks, @prjemian!


Feature request to shut down the app & BackHandler not working in Snack

https://snack.expo.io/SJdErhlLZ
BackHander does not prevent the back button default behavior to close the app in this Snack (on preview and device). But it does prevent in my project.
The other issue is that on the real device back button does not shut down the app it just puts it in background. It would be good to have an option to shut down the app on back button pressed. Check also #15106.
(Android 7.0, expo 18.0.3, react-native 0.45.1 )
#13483

hello! please follow the issue template in the future :) I don't really understand what you are describing here

OK :). In case someone wanders, the answer is probably this:
The back button should not shut down the app but put it in background. The developer should assure that all things that should stop when app is in background actually do stop.


Synexpand fixes

Found and fixed some issues. Still not tested well enough. _rewrite isn't even used as macro anymore. Expect some instability.

Ha. The direct recursion tallying feature from #220 no longer has any usages in any examples, so I no longer have any test coverage for that branch. The examples using it were all in the synexpand docstring. I know the current version works and I also want to keep the feature. I should probably demonstrate recursive macros in the docs somewhere. I'm going to merge this anyway, even though that means giving up my 100% coverage. Probably temporarily. I also kind of doubt my macros are 100% covered, or those bugs I just fixed would have already been caught. I'm not sure how useful a coverage report on the compiled Python would be though. I'll have to try it.


DatePickerAndroid styling not working when provide mode prop

Description
On Android when using native style.xml DatePickerAndroid returns to theme default colors when using mode prop. When you don't use it at all it works fine.
https://github.com/mmazzarolo/react-native-modal-datetime-picker/issues/29
Reproduction Steps and Sample Code
style.xml
<resources>

    <!-- Base application theme. -->
    <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <!-- Customize your theme here. -->
        <item name="colorAccent">@color/mainRed</item>
    </style>
    <style name="Dialog.Theme" parent="Theme.AppCompat.Light.Dialog">
        <item name="colorAccent">@color/mainRed</item>
    </style>

</resources>

DatePickerAndroid.open(); // Styling works fine
DatePickerAndroid.open({mode: 'calendar'}); // Styling is not working
DatePickerAndroid.open({mode: 'spinner'}); // Styling is not working

Solution
Don't know much about native code but I assume that when using mode prop something overrides the styling to default theme.
Additional Information

React Native version: "0.43.3"
Platform: Android
Development Operating System: MacOS
Dev tools: Android Studio

@bennygenel  Have no Idea why its not working . But you can make your android theme in android studio .
Go to tools>Android>Theme Editor and you can create your own theme . I built mine and its working everywhere. First just import the project to android studio. You dont have to touch any files , the studio itself will do it .

@PARAGJYOTI I already created my own theme. As you can see I set the theme on style.xml and it works fine too unless I use mode prop on DatePickerAndroid as I mentioned before.

This issue appeared for me when updating from 0.43.0 to 0.44.0

Hi there! This issue is being closed because {:search=>"repo:facebook/react-native is:open is:issue updated:<2017-05-25 -label:"Good First Task" -label:"Help Wanted" ", :message=>"it has been inactive for a while"}. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally!
If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:

Does the issue still reproduce on the latest release candidate? Post a comment with the version you tested.
If so, is there any information missing from the bug report? Post a comment with all the information required by the issue template.
Is there a pull request that addresses this issue? Post a comment with the PR number so we can follow up.

If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution.

Ok, I found out how to apply styles when mode prop is set. The problem was the style names, when the mode prop is set react native looks for specific styles in the resources. For spinner mode:
<style name="SpinnerDatePickerDialog" parent="android:Theme.Material.Light.Dialog">
    <item name="android:datePickerStyle">@style/MyDatePicker</item>
    <item name="android:colorAccent">@color/colorPrimary</item>
    <item name="android:colorControlNormal">@color/colorPrimary</item>
</style>

<style name="MyDatePicker" parent="android:Widget.Material.DatePicker">
    <item name="android:datePickerMode">spinner</item>
</style>

No the style with the datePickerMode attribute, without it android renders the standard mode not the spinner mode (don't know why). These are the style attributes I found that work, maybe there are others but I haven't found them. Another thing I have not been able to set is the title, but probably this should be done in react-native.
And for calendar mode:
<style name="CalendarDatePickerDialog" parent="android:Theme.Material.Light.Dialog">
    <item name="android:headerBackground">@color/colorPrimary</item>
    <item name="android:colorControlNormal">@color/colorPrimary</item>
    <item name="android:colorControlHighlight">@color/colorPrimary</item>
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorAccent">@color/colorPrimary</item>
    <item name="textColor">@color/colorPrimary</item>
</style>

These style attributes are not fully tested but I think they work. I hope this works for other people.

thank you @khrizt your solution for the spinner works like a charm! Haven't tested the calendar version.


Should we remove the core.shm module?

Don't shoot me...
Snabb Switch has a module called core.shm that makes it easy to allocate C data structures as named shared memory objects that can be accessed from other processes. This became the backend for the core.counter module that defines named counters that can be accessed externally e.g. via snabb top. The module has also been valuable for rapidly experimenting with different multiprocessing models while we investigated which one suited us best.
Question: is the complexity of this module justified by the relatively few ways that we are actually using it?
Overall we want to have as little code and concepts in the core of Snabb Switch as possible. The core.shm module is a fairly elaborate concept with some surprisingly subtle issues:

Includes its own hierarchical naming scheme that can be confusing compared with e.g. explicit filenames. (For example to me it is not immediately obvious how much risk there is of multiple Snabb Switch processes on the same machine accidentally over-sharing link objects when using the multiprocessing support from #601 and that might be more predictable if the user would supply a full qualified unix filename for the link instead of a shm handle?)
Includes a mapping onto the filesystem that is prone to leaving garbage files on ramdisk.
It is prone to exercise the worst case for x86 L2 cache because it uses mmap() to allocate objects and this gives them page-aligned addresses which causes their cache lines to collide (in practice we have had to take special care to avoid this in the counter module - see #566).
It makes it easy to write code that shares objects in undisciplined ways that can lead to race conditions. (The multiprocessing experiments we did that made heavy use of core.shm objects were the most complex ones -- in the end we were drawn to a "shared nothing" design.)

Relatedly: I am also cooling to the representation of counters as files on disk that contain a 64-byte value. Having only one value for a counter seems limited and is usually not what I want. I am more interested to see how the value of a counter has changed over time rather than what its value is right now.
I wonder if we should consider moving to a new counter format (again... sorry...) that is more in the spirit of RRDtool that tracks the values of counters over time at different resolutions (per second, per minute, per hour, per day) and lets you immediately review the historical values of counters (perhaps spanning multiple instances of the process). This seems like it would be more valuable information for snabb top to present than only the current value (or the values since the command started running). In practice I find that I don't use snabb top but instead eyeball the "engine load reports" that snabbnfv prints every second.
cc @alexandergall @javierguerragiraldez @eugeneia

Short answer: When we have an alternative that's simpler, sure.
Long answer: core.shm is indeed a kind of DSL. I think its API is nice (map, unmap, unlink), the “name syntax” is slightly foreign but useful. I found core.shm to be a breeze to work with and using it very enjoyable. top and gc are short, simple programs, even though the need for gc is a wart.

For example to me it is not immediately obvious how much risk there is of multiple Snabb Switch processes on the same machine accidentally over-sharing link objects when using the multiprocessing support from #601 [...]

If I understand correctly, its safe as long as only one process transmits on a given “link name”. Note: This should be well documented.

I wonder if we should consider moving to a new counter format

Does core.shm restrict our choices in counter formats? I would defer deciding on core.shm's fate until compared it with its potential replacements.

Why not make "snabb top" be able to populate an RRD file?  It seems to me that if we did RRD/RRA writing directly from the data plane, so to speak, that is overhead and complexity that would be nice to avoid.  Dunno.  Exposing raw named counters seems to me like a nice facility that can be built on fairly flexibly :)

OK I am mentally working through your list of objections and I see what you mean.  However I don't see how using a different counter format would fix these.  Would you avoid exposing counters to external processes?


different opening menue

Discussed in https://github.com/Proektsoftbg/Calcpad/discussions/87

Originally posted by hanneskoenig457 October 21, 2022
sometimes when I press Ctrl+O it returns this:

is this a kind of bug? it´s quite disturbing

Thank you for posting this issuse. It is fixed now in the latest release: https://github.com/Proektsoftbg/Calcpad/releases/tag/v5.8.9


Can't render SwiftUI previews with Code Coverage Enabled

[REQUIRED] Step 1: Describe your environment

Xcode version: 12.5.1
Firebase SDK version: 7.1
Installation method: CocoaPods
Firebase Component: Core
Target platform(s): | iOS

[REQUIRED] Step 2: Describe the problem
I am currently experiencing this issue that was closed previously. https://github.com/firebase/firebase-ios-sdk/issues/6219
The solution for me was also to turn off code coverage as mentioned in the comments.
Steps to reproduce:
What happened? How can we make the problem occur?
This could be a description, log/console output, etc.
This is the error occurring:
linker command failed with exit code 1 (use -v to see invocation)

LinkDylibError: Failed to build ... .swift

Linking failed: linker command failed with exit code 1 (use -v to see invocation)

ld: warning: directory not found for option '-F/Applications/Xcode-12.5.1.app/Contents/SharedFrameworks-iphonesimulator'
Undefined symbols for architecture x86_64:
  "___llvm_profile_runtime", referenced from:

I am unable to determine exact specific of how firebase is causing this issue. Firebase is just included in the project, but no firebase methods are called in the swift ui files.

Thanks for reporting, @farzinfaghihi. Could you share the detailed steps on how the issue occurred?

Also, please update to an 8.x version of Firebase if you're still having trouble.


Add asset template tag to provide quick URL reference to assets

Add an {% asset "path/to/asset" %} tag for easy reference to assets.

Now added in v0.2.4

Thanks for this quick URL reference to assets :+1:  :heart_eyes:


feat: add use case for TRISTAN reproducibility study

add config feature to allow user to use pre-defined TRISTAN-rat variables
include outputs for Ktrans and E (Extraction Fraction)
allow user to custom set non-model parameters (e.g., Fp)
add use case example for TRISTAN rat reproducibility study

Added one small comment just to try out the review process ;-)

@plaresmedima I've addressed your comment and updated the pull request.