Surrogate key macro does not work with case sensitive column names

Describe the bug
Our database is case sensitive and we need to use quotation marks. Thus I cannot to use the surrogate key macro, since the result is always the given column name without quotation marks. I have also tried specifying in the model.yml to use quotation marks for the specific column but it does not work.
Steps to reproduce
This
<{{ dbt_utils.surrogate_key (["idNumber"]) }} as "idNumber">

Compiles into this
<md5(cast(coalesce(cast(idNumber as TEXT), '') as TEXT)) as "idNumber">

Expected results
We would need for it to compile to
<md5(cast(coalesce(cast("idNumber" as TEXT), '') as TEXT)) as "idNumber">

otherwise the SQL won't run
Actual results
I expect to have a way to say for the macro wether it needs to use quotation marks or not
Or alternatively work automatically like for example dbt_utils.stars works with our case sensitive tables
System information
The contents of your packages.yml file:
packages:

package: dbt-labs/codegen
version: 0.8.1
package: dbt-labs/dbt_utils
version: 0.9.2

Which database are you using dbt with?

[ ] postgres
[ ] redshift
[ ] bigquery
[x] snowflake
[ ] other (specify: ____________)

The output of dbt --version:
Core:
  - installed: 1.2.1
  - latest:    1.3.0 - Update available!

  Your version of dbt-core is out of date!
  You can find instructions for upgrading here:
  https://docs.getdbt.com/docs/installation

Plugins:
  - bigquery:  1.2.0 - Update available!
  - snowflake: 1.2.0 - Update available!

Hey @villar1, you can resolve this using a second set of quotes:
{{ dbt_utils.surrogate_key (['"idNumber"']) }} as "idNumber"

the single quotes will be "eaten" by Jinja to turn it into a string, but the double quotes will make it through as part of the actual command:

Thanks for the help!


Perl bindings

Checklist

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

This is a continuation/replacement of #5 and builds on @kenodegard's work there.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@conda-forge-admin, please rerender

@conda-forge-admin, please rerender

@conda-forge-admin, please rerender

I have convinced myself that this is the right approach. Perl bindings are only built for Linux; the Macos build produces a segfault on the test and will be investigated further later on.
I believe this is ready for merge.


Timepicker integration

Hey! Just a short question. I know that timepicker in beta stage, but is it possible to use it via slack-bolt? I gave it a try, but slack denies my attempt to use it. And also i enabled beta features on my app website.  Is there a workaround for it? Many thanks
slack-bolt 1.4.4
Python runtime version
3.7.4
OS info
ProductName:    macOS
ProductVersion: 11.2.3
BuildVersion:   20D91
Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64
Expected result:
(Tell what you expected to happen)
Actual result:
I got unexpected type timepicker, skipping....

Hi @tomeszmh, thanks for asking the question! Of course, you can use the feature as long as you configured your Slack app properly.
I've created an example Bolt app that utilizes timepicker. Check the source code in the repository should be helpful for you.

https://github.com/seratch/send-it-later-for-slack/blob/e5f3555f347826576099f2f8551b03089ba7479d/README.md
https://github.com/seratch/send-it-later-for-slack/blob/e5f3555f347826576099f2f8551b03089ba7479d/app/modals.py#L141-L151
https://github.com/seratch/send-it-later-for-slack/blob/e5f3555f347826576099f2f8551b03089ba7479d/app/listeners.py#L135

Thank you so much. I tried, but same error. I investigated and found something. i
link to code in slack-sdk
In this method if type does not exist it will be skipped.
I always get   Unknown element detected and skipped message. I think my code runs into the else block.
Many thanks, Tamas

@tomeszmh As it's still in beta, we haven't merged the change for it: https://github.com/slackapi/python-slack-sdk/pull/876 I do understand you prefer using classes for building blocks but please use dict values for the time being.

@tomeszmh Thanks for your positive reaction to my last comment. It seems everything is clear now. Would you mind closing this issue?

Yes, sure, thx


fix report template generation

Fixes two issues in current master:

redis-profiler command does not create outfile (only prints out html variable)
report.html.template is not included by setup.py when running pip install

https://github.com/sripathikrishnan/redis-rdb-tools/pull/54


transit/read throwing RuntimeException, not EOFException

The docstring for transit/read says it throws an EOFException when the input is empty. However in ReaderFactory, it catches all Throwables and rethrows them as RuntimeExceptions.
It seems like either the docstring for transit-clj read is wrong, or the implementation in transit-java shouldn't be catching all Throwables?
This is using transit-clojure 0.8.295 and transit-java 0.8.319
Here's a minimal test case to reproduce it:
(let [out (java.io.ByteArrayOutputStream. 4096)
      writer (transit/writer out :json)
      _ (transit/write writer {:a 1 :b 2 :c 3 :d 4})
      reader (transit/reader (java.io.ByteArrayInputStream. (.toByteArray out)) :json)]
  (transit/read reader)
  (try (transit/read reader)
       (catch java.io.EOFException e
         (println "Caught EOF Exception"))
       (catch RuntimeException e
         (println "Caught Runtime Exception"))))

Just released 0.8.297 with the change to the docstring.

And thanks for the report!

Should ReaderFactory catch all throwables or just exceptions? That seems a bit broad?

What's your concern?

Throwable is much broader than the IOException that is expected to be thrown, and could mean that you catch Error's that shouldn't normally be caught (OOM), and would otherwise cause the program to crash.
http://stackoverflow.com/questions/2274102/difference-between-using-throwable-and-exception-in-a-try-catch
http://eclipsesource.com/blogs/2012/08/08/to-catch-or-not-to-catch-throwable/
I know that the API is pretty well set by now, but I think it might have made more sense to catch IOException and rethrow it, rather than catching all Throwables and rethrowing as RuntimeExceptions. If I want to catch the EOFException when parsing multiple items in a transit stream, I need to actually catch RuntimeException, then check it for EOF, and otherwise rethrow it.


zos: implement uv__fs_futime

Implement uv__fs_futime for zos

LGTM, I suppose.  I'll take your word for it that it works.
What is your strategy for getting zos changes merged?  Landing things piecemeal is acceptable to me but there is no way to verify that everything actually builds and works until the last changes land.

All of these PRs are actually cherry picked from here
https://github.com/ibmruntimes/libuv/tree/v1.x-zos.
That branch is confirmed to work on zOS for all test cases.
The piecemeal strategy was to make it easier for code review. I am open to any way that makes it easier for the libuv project maintainers.

LGTM (taking your word for it) :-)

Cheers, landed in 4040257.


curl: enable session cookies

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.
Not sure just fixing parameters in the test is enough or not.

[x] Have you successfully run brew tests with your changes locally?

For some URLs like the dmg URL in https://gitlab.com/yan12125/homebrew-staging/blob/master/Casks/pulse-secure.rb, cookies from Set-Cookie of the first request should be passed down to the following requests, or the file can't be correctly downloaded. For example:
$ brew -v cask install pulse-secure
==> Satisfying dependencies
==> Downloading https://wiki.univ-nantes.fr/_media/nomade:pulse_clients:ps-pulse-mac-9.0r1.0-b571-installer.dmg
/usr/bin/curl -q --show-error --user-agent Homebrew/1.6.9-33-g0d33aba (Macintosh; Intel Mac OS X 10.13.5) curl/7.54.0 --fail --location --remote-time --continue-at - --output /Users/yen/Library/Caches/Homebrew/Cask/pulse-secure--9.0r1.0-b571.dmg.incomplete https://wiki.univ-nantes.fr/_media/nomade:pulse_clients:ps-pulse-mac-9.0r1.0-b571-installer.dmg
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   571    0     0    0     0      0      0 --:--:--  0:00:04 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:06 --:--:--     0
  0   571    0     0    0     0      0      0 --:--:--  0:00:10 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:11 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:13 --:--:--     0^C

Adding two parameters to curl does the trick:
$ brew -v cask install pulse-secure
Updating Homebrew...
==> Satisfying dependencies
==> Downloading https://wiki.univ-nantes.fr/_media/nomade:pulse_clients:ps-pulse-mac-9.0r1.0-b571-installer.dmg
/usr/bin/curl -q --show-error --user-agent Homebrew/1.6.9-34-gd47f485 (Macintosh; Intel Mac OS X 10.13.5) curl/7.54.0 --fail --location --remote-time --continue-at - --cookie-jar /dev/null --output /Users/yen/Library/Caches/Homebrew/Cask/pulse-secure--9.0r1.0-b571.dmg.incomplete https://wiki.univ-nantes.fr/_media/nomade:pulse_clients:ps-pulse-mac-9.0r1.0-b571-installer.dmg
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   571    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:03 --:--:--     0
100 15.6M  100 15.6M    0     0   219k      0  0:01:13  0:01:13 --:--:--  418k
==> Verifying checksum for Cask pulse-secure

Thanks for the PR! I’m not sure we should change the arguments for all curl downloads for single cask, though? This seems like something more than just Homebrew will have problems with and may be worth speaking to upstream about.

Well, AFAIK only curl is broken. Both wget and Firefox download it fine - they have session cookies enabled by default.

@reitermarkus Thoughts?

Ping for @reitermarkus and other @Homebrew/maintainers opinions on this.

I agree this is bad/unusual practice on the server end. I wouldn't call it a curl "bug" though (curl's primary use-case is not browsing or website crawling). IMO it is fine to add this option to Homebrew to make these few servers happy. I'm using this option in https-check (chkhttps.sh) since the beginning and it doesn't seem to be causing a problem for regular servers. (It is a little surprising that even /dev/null works well as a cookie jar though.)

The url on casks supports setting cookies with cookies: {}. Have you tried that, @yan12125?

The url on casks supports setting cookies with cookies: {}. Have you tried that, @yan12125?

Nope. And my Mac gets broken a few days ago. I'm afraid I can't test it recently.

It should add -b '' when given an empty hash, which seems to work with your pulse-secure example.

Confirmed add -b '' to the curl command works. I think this pull request is no longer necessary. Thanks!


Java: no ResourceName types for repeated fields

Never generate ResourceName types for repeated fields to avoid type erasure problems when List param method is generated alongside the overriden List param method.

Codecov Report

Merging #2138 into master will decrease coverage by 0.32%.
The diff coverage is 66.66%.

@@             Coverage Diff              @@
##             master    #2138      +/-   ##
============================================
- Coverage     86.72%   86.39%   -0.33%
+ Complexity     5060     5055       -5
============================================
  Files           453      453
  Lines         20079    20085       +6
  Branches       2130     2134       +4
============================================
- Hits          17413    17353      -60
- Misses         1925     1983      +58
- Partials        741      749       +8

Impacted Files
Coverage Δ
Complexity Δ

...pi/codegen/transformer/java/JavaFeatureConfig.java
84.61% <66.66%> (-15.39%)
15 <9> (+9)

...egen/viewmodel/PagedResponseIterateMethodView.java
0% <0%> (-100%)
0% <0%> (-2%)

...n/viewmodel/testing/PageStreamingResponseView.java
75% <0%> (-25%)
3% <0%> (-1%)

...e/api/codegen/transformer/TestCaseTransformer.java
88.84% <0%> (-7.92%)
52% <0%> (-1%)

...n/transformer/java/JavaModelTypeNameConverter.java
80.74% <0%> (-5.93%)
35% <0%> (-2%)

.../api/codegen/transformer/DefaultFeatureConfig.java
83.33% <0%> (-5.56%)
28% <0%> (-1%)

...api/codegen/transformer/java/JavaSurfaceNamer.java
79.54% <0%> (-4.55%)
47% <0%> (-3%)

...degen/transformer/java/JavaSurfaceTransformer.java
95.55% <0%> (-2.91%)
59% <0%> (-1%)

...m/google/api/codegen/transformer/SurfaceNamer.java
71.42% <0%> (-0.74%)
199% <0%> (-2%)

...en/transformer/StaticLangApiMethodTransformer.java
95.51% <0%> (-0.57%)
66% <0%> (-1%)

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 db377f1...a138f0f. Read the comment docs.

PTAL


Closing background tab does not dispose dirty text models

open fileA.ts that exports a symbol that is used in fileB.ts
rename a symbol in fileA.ts
(fileB.ts opens as a background tab)
save all
hit the x on the fileB.ts tab
observe (through logging) that fileB.ts is not disposed

Now do the same steps, but first click on the tab with fileB.ts before hitting x. Now, fileB.ts is disposed.

Notice how fileB.ts and fileC.ts do not get disposed:

Notice how fileB.ts and fileC.ts get disposed now:

Have tried the fix in the insider, looks like the dirty text models don't exist any more. But i observe a side effect on the moving file scenario.
A typical workflow as below:

Open file A.java in VS Code.
Modify file A.java and add some contents, and leave it unsaved.
Drag and drop A.java to a new folder f1.
I observed the following events happening:
-> didClose { uri: A.java }
-> didOpen { uri: f1/A.java, version: 1, text:  }
-> didChange { uri: f1/A.java, version: 2, contentsChanges:  }

When moving files, the VS Code would modify the unsaved files again to restore the dirty state. If i want to enable refactoring feature based on the move operation, the silent didChange behavior from VS Code client probably conflicts with the refactoring job.
Is it possible to restore the unsaved model contents in the didOpen event directly when reopening the newly moved file?

@testforstephen I am not sure what you are trying to build, but do you maybe rather wanna use vscode.onWillRenameFiles and vscode.onDidRenameFiles to participate in that operation?

YES, i register listener on the renameFiles event for refactoring operation. IMO, how you restore the model is something that the client implements, and from the user's point of view, i just need know when to close the old file and open the new file. didChange is not user-operated.

It is true that we first load the model from disk and then update it with the previous contents if you look at this code:
https://github.com/microsoft/vscode/blob/1cc95bad5440a0ce78db0bf0d2913f3f48325166/src/vs/workbench/services/textfile/common/textFileEditorModelManager.ts#L224-L240
It would probably make more sense to load the model directly with the contents we had before, but we currently have no way of doing so.

I suggest a follow up issue to investigate 👍

Created a new issue https://github.com/microsoft/vscode/issues/100255


docs(faq): reorganise by category

Break the FAQ into 4 broad categories:

background
usage
data
infrastructure

and place the existing entries under these.
Address various markdownlint complaints and a config file to disable

line length
embedded HTML

You can host a preview version of the docs by changing the branch in your fork repository that github pages publish. E.g. https://github.com/andrewpollock/osv.dev/settings/pages

You can host a preview version of the docs by changing the branch in your fork repository that github pages publish. E.g. https://github.com/andrewpollock/osv.dev/settings/pages

Thanks, https://andrewpollock.github.io/osv.dev/faq/ has it but the rendering is weird...

That does look odd.. Are your settings same as here? https://github.com/google/osv.dev/settings/pages (except with a different branch)

That does look odd.. Are your settings same as here? https://github.com/google/osv.dev/settings/pages (except with a different branch)

Ah, I had it set to the root instead of /docs. Now, how to force a republish? Push a no-op commit I guess?

https://andrewpollock.github.io/osv.dev/faq/ is looking more like intended


Is there a bug in imgaug

Hi, I have been recently using your great tensorpack, but I think the imgaug part may seem exists some bug.
The code below just flip a dataflow, and the result is rather confusing. Perhaps you can try and see the result?
`
%matplotlib inline
import matplotlib.pyplot as plt
from tensorpack import *
from tensorpack.tfutils.symbolic_functions import *
from tensorpack.tfutils.summary import *
cifar10 = dataset.Cifar10('train', shuffle=False)
cifar10.reset_state()
for img_label in cifar10.get_data():
plt.figure()
plt.imshow(img_label[0])
break
flip_cifar10 = AugmentImageComponent(cifar10, [imgaug.Flip(horiz=True, prob=1.0),])
flip_cifar10.reset_state()
for img_label in flip_cifar10.get_data():
plt.figure()
plt.imshow(img_label[0])
break
`

haven't had a chance to look. is there still an issue?


JSON.parse() crashes on strings of 10M characters

Looks like JSON.parse() may have a problem when reporting a syntax error for strings of 10M or more characters. For example, if json is a long string followed by a comma (invalid character), the following script run in ch.exe should report syntax error, but instead the process seems to crash and nothing is logged after JSON.parse():
let desiredLength = 10 * 1000 * 1000;
//desiredLength -= 1;
const json = `"${'a'.repeat(desiredLength - 3)}",`; // "aaa...aaa",
console.log(json.length);
JSON.parse(json);
console.log('finished');

Output:

10000000

However, uncommenting line 2 and decreasing desiredLength by 1 produces expected result:

9999999
SyntaxError: JSON.parse Error: Unexpected input at position:9999999
at Global code (C:\Temp\cc_windows_1_11_6\x86_release\script.js:8:1)

Does JSON.parse use some internal buffer of 10M characters so that exceeding this size causes it to crash?
ChakraCore: 1.11.6 x86 release
OS: Windows 10 17763.316

Is the fix going to be released in 11.12? Is there any approximate timeline for this release?


Support 2016 Table Display : "page_size"

I am adding "page_size" to indicate the default page size associated with the page. Please modify the read call associated with the compact and compact/brief contexts to use it.

Instead of changing the limit in read function implicitly, we decided to just expose the defined "page_size" in Reference.display._defaultPageSize.


[ONNX] Exporting the SSD model to ONNX lowers the quality metric.

Describe the bug
The documentation (link) states that Box AP for SSD model when using ONNX Runtime should be 25.6.
But if you export the model to ONNX with the last checkpoint and collect the metric using the tools/deployment/test.py script, then it will be less than expected: 23.3.
If you use the previous checkpoint (which was before #5291), then after updating it using tools/model_converters/upgrade_ssd_version.py, the metrics correspond to the data from the table.
Table with Box AP metrics for ONNX Runtime:

Before #5291
Current
With upgrade old checkpoint

25.6
23.3
25.6

It looks strange and I have not found a solution to this problem yet.
Reproduction

Export SSD model with the current checkpoint:

python tools/deployment/pytorch2onnx.py configs/ssd/ssd300_coco.py /tmp/openmmlab/snapshots/ssd300_coco_20210604_193052-b61137df.pth --output-file /tmp/openmmlab/ssd/ssd300_coco/config_current.onnx --dynamic-export

Testing the model config_current.onnx:

python tools/deployment/test.py configs/ssd/ssd300_coco.py /tmp/openmmlab/ssd/ssd300_coco/config_current.onnx --backend onnxruntime --eval bbox

 Average Precision  (AP) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = 0.233
 Average Precision  (AP) @[ IoU=0.50      | area=   all | maxDets=1000 ] = 0.398
 Average Precision  (AP) @[ IoU=0.75      | area=   all | maxDets=1000 ] = 0.239
 Average Precision  (AP) @[ IoU=0.50:0.95 | area= small | maxDets=1000 ] = 0.063
 Average Precision  (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=1000 ] = 0.253
 Average Precision  (AP) @[ IoU=0.50:0.95 | area= large | maxDets=1000 ] = 0.389
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = 0.345
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=300 ] = 0.346
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=1000 ] = 0.346
 Average Recall     (AR) @[ IoU=0.50:0.95 | area= small | maxDets=1000 ] = 0.116
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=1000 ] = 0.387
 Average Recall     (AR) @[ IoU=0.50:0.95 | area= large | maxDets=1000 ] = 0.538

Update the old checkpoint and export the model:

python tools/model_converters/upgrade_ssd_version.py /tmp/openmmlab/snapshots/ssd300_coco_20200307-a92d2092.pth /tmp/openmmlab/snapshots/ssd300_coco_20200307-a92d2092_upgrade.pth

python tools/deployment/pytorch2onnx.py configs/ssd/ssd300_coco.py /tmp/openmmlab/snapshots/ssd300_coco_20200307-a92d2092_upgrade.pth --output-file /tmp/openmmlab/ssd/ssd300_coco/config_upgrade.onnx --dynamic-export

python tools/deployment/test.py configs/ssd/ssd300_coco.py /tmp/openmmlab/ssd/ssd300_coco/config_upgrade.onnx --backend onnxruntime --eval bbox

Testing the model config_upgrade.onnx:

 Average Precision  (AP) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = 0.256
 Average Precision  (AP) @[ IoU=0.50      | area=   all | maxDets=1000 ] = 0.438
 Average Precision  (AP) @[ IoU=0.75      | area=   all | maxDets=1000 ] = 0.263
 Average Precision  (AP) @[ IoU=0.50:0.95 | area= small | maxDets=1000 ] = 0.071
 Average Precision  (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=1000 ] = 0.278
 Average Precision  (AP) @[ IoU=0.50:0.95 | area= large | maxDets=1000 ] = 0.422
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = 0.375
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=300 ] = 0.376
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=1000 ] = 0.376
 Average Recall     (AR) @[ IoU=0.50:0.95 | area= small | maxDets=1000 ] = 0.125
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=1000 ] = 0.417
 Average Recall     (AR) @[ IoU=0.50:0.95 | area= large | maxDets=1000 ] = 0.586

Environment

Environment
sys.platform: linux
Python: 3.7.9 (default, Aug 31 2020, 12:42:55) [GCC 7.3.0]
CUDA available: True
GPU 0,1,2: GeForce RTX 2080 Ti
CUDA_HOME: /usr/local/cuda-10.2
NVCC: Cuda compilation tools, release 10.2, V10.2.89
GCC: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
PyTorch: 1.8.1
PyTorch compiling details: PyTorch built with:
- GCC 7.3
- C++ Version: 201402
- Intel(R) Math Kernel Library Version 2020.0.2 Product Build 20200624 for Intel(R) 64 architecture applications
- Intel(R) MKL-DNN v1.7.0 (Git Hash 7aed236906b1f7a05c0917e5257a1af05e9ff683)
- OpenMP 201511 (a.k.a. OpenMP 4.5)
- NNPACK is enabled
- CPU capability usage: AVX2
- CUDA Runtime 10.2
- NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_37,code=compute_37
- CuDNN 7.6.5
- Magma 2.5.2
- Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CUDA_VERSION=10.2, CUDNN_VERSION=7.6.5, CXX_COMPILER=/opt/rh/devtoolset-7/root/usr/bin/c++, CXX_FLAGS= -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_KINETO -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, TORCH_VERSION=1.8.1, USE_CUDA=ON, USE_CUDNN=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON,
TorchVision: 0.9.1
OpenCV: 4.5.3-openvino
MMCV: 1.3.8
MMCV Compiler: GCC 7.5
MMCV CUDA Compiler: 10.2
MMDetection: 2.14.0+76a9b44

@SemyonBevzuk Thanks for the info. @jshilong Could you take a look at this issue?

Sorry for the late response
@RangiLyu, Would you mind helping check if #5291 causing the issue？

Hi, we find out that the VGG SSD models were trained with a buggy version of mmdet which can cause label disordering. That bug was fixed after #5243 while the models were trained before that. And the val mAP of the pth model on the correct label order dataset is 0.233. So, there is nothing wrong with the onnxruntime.
We will retrain the model as soon as possible.


Naming a variable 'document' breaks the class Document

Whenever you create a variable named document, you can't use the class Document anymore.
As work-around you can rename the variable (to e.g. doc).
Steps To Reproduce
https://deck.net/3707a48b6ab5672937f9c3b1a8207979
public class Program
{
    public static void Main()
    {
        var document = new HTMLDivElement {
            TextContent = "Hello world!"
        };

        Document.Body.AppendChild(document);
    }
}

Expected Result
/**
 * @compiler Bridge.NET 17.10.0
 */
Bridge.assembly("Demo", function ($asm, globals) {
    "use strict";

    Bridge.define("Demo.Program", {
        main: function Main () {
            var $t;
            var $document = ($t = document.createElement("div"), $t.textContent = "Hello world!", $t);

            $document.body.appendChild(document);
        }
    });
});

Actual Result
/**
 * @compiler Bridge.NET 17.10.0
 */
Bridge.assembly("Demo", function ($asm, globals) {
    "use strict";

    Bridge.define("Demo.Program", {
        main: function Main () {
            var $t;
            var document = ($t = document.createElement("div"), $t.textContent = "Hello world!", $t);

            document.body.appendChild(document);
        }
    });
});

We'll have to check on this. It's a tricky scenario because document is an assigned object in web browsers, but I also thought Bridge would be auto-renaming this variable if declared in C#.
I believe your Expected Result should be:
document.body.appendChild($document);

As you mentioned, renaming document will work-around the issue.

You're correct, it should be $document.
First I had the expected result as window.document.body.appendChild(document);, but I found out that this is kinda the same as https://github.com/bridgedotnet/Bridge/issues/1355 where a variable named window would break the Window-class. The variable name was renamed to $window when transpilling.


Title is editable, even when the pencil icon is set to non-editabl

@superdav42  It the title a graft? If so, it will be fixed with the graft editor changes.

Title is a graft so this has been fixed with #49


Do we need to stop the robot (call robot.stop()) each time when doing the mode switch?

Sorry to bother, from the official ROS controller, I noticed this piece of code:
void FlexivHardwareInterface::write(
    const ros::Time& /*time*/, const ros::Duration& period)
{
    // Enforce safety joint limits for all registered handles
    enforceLimits(period);

    std::vector<double> target_acceleration(num_joints_, 0);
    std::vector<double> target_velocity(num_joints_, 0);
    std::fill(target_acceleration.begin(), target_acceleration.end(), 0.0);
    std::fill(target_velocity.begin(), target_velocity.end(), 0.0);

    if (position_controller_running_
        && robot_->getMode() == flexiv::Mode::RT_JOINT_POSITION
        && !(vectorHasNan(joint_position_command_))) {
        robot_->streamJointPosition(
            joint_position_command_, target_velocity, target_acceleration);
    } else if (velocity_controller_running_
               && robot_->getMode() == flexiv::Mode::RT_JOINT_POSITION
               && !(vectorHasNan(joint_velocity_command_))) {
        for (std::size_t i = 0; i < num_joints_; i++) {
            internal_joint_position_command_[i]
                += joint_velocity_command_[i] * period.toSec();
        }
        robot_->streamJointPosition(internal_joint_position_command_,
            joint_velocity_command_, target_acceleration);
    } else if (effort_controller_running_
               && robot_->getMode() == flexiv::Mode::RT_JOINT_TORQUE
               && !(vectorHasNan(joint_effort_command_))) {
        robot_->streamJointTorque(joint_effort_command_, true, true);
    }
}

Then the mode switch (setMode) is done in the main thread by another function.
I would like to check is it possible to just directly do mode switch in the main thread (setMode) without stop the robot?

It is recommended to stop the robot before switching mode. Please refer to the Flexiv RDK API doc

To avoid unexpected behavior, it's recommended to call stop() and check if the robot has come to a complete stop using isStopped() before switching mode.


Android Studio 3.1: Failed to resolve: android-async-http

Got the same issue here. Apparently gradle 4.4 cannot find the cz.msebera.android.httpclient jars. It can find the com.loopj.android.http jars just fine. My workaround was to add this to build.gradle:
implementation "cz.msebera.android:httpclient:<IP_ADDRESS>"

@sgiurgiu  I tried to use your method, but the problem is still unresolved.

@sgiurgiu version 1.4.8,you try it，it's not Failed to resolve.

@sgiurgiu   in your app gradle : useLibrary 'org.apache.http.legacy'

build.gradle (app)
`apply plugin: 'com.android.application'
android {
compileSdkVersion 26
defaultConfig {
    applicationId "nl.alternate.mobirails"
    minSdkVersion 22
    targetSdkVersion 26
    versionCode 23
    versionName "23.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

}
dependencies {
api fileTree(include: ['*.jar'], dir: 'libs')
// ... other dependencies
api files('libs/android-async-http-1.4.9.jar')
api files('libs/jcifs-1.3.19.jar')
api 'com.squareup.okhttp3:okhttp:3.4.1'
api 'cz.msebera.android:httpclient:4.3.6'
}`
the gradle file I use, might help
also remember to put the zip in project_dir->app->libs

build.gradle (app)
apply plugin: 'com.android.application'

android {
    compileSdkVersion 26`

    defaultConfig {
        applicationId "com.company.program"
        minSdkVersion 22
        targetSdkVersion 26
        versionCode 23
        versionName "23.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    api fileTree(include: ['*.jar'], dir: 'libs')
    // ... other dependencies
    api files('libs/android-async-http-1.4.9.jar')
    api files('libs/jcifs-1.3.19.jar')
    api 'com.squareup.okhttp3:okhttp:3.4.1'
    api 'cz.msebera.android:httpclient:4.3.6'
}

the gradle file I use, might help
also remember to put the jar in project_dir->app->libs

There should be an implementation keyword instead of an api.
Because at the end of 2018, api & compile keywords are going to be removed.

Relevant answers has been provided, thank you all.
Closing this ticket, as it is no issue of library, only problem on developer-side


Update fileName buf size to match buf size ( 64 ) passed to guiTextBox in image_exporter example.

@cabarger Oh! Good catch! Thanks for the fix! 😄


Faulty Object Parent 65535 Pool error bitmask value 1

Hi, hope you can help. I'm quite new to this and finding your platform very interesting and helpful.
I'm using a ESP32 and trying to upload the VT test pool (VT3). I'm getting an error after uploading the object pool to the VT. Below is the output from my serial monitor: -
I (554) AgIsoStack: [Info][NM]: Partnered control function with name a0001d100cdf412c has claimed address 38 on channel 0.
I (1764) AgIsoStack: [Info][VT]: No version label from the VT matched. Client will upload the pool and store it instead.
E (47784) AgIsoStack: [Error][VT]: Error in end of object pool message.Faulty Object 65535 Faulty Object Parent 65535 Pool error bitmask value 1
The VT is a MF Datatronic 5. It doesn't seem to like the "65535" from the object pool. When I look at the object pools in the library I notice that they all start with this and it is labelled "UNDEFINED". I assume I'm missing something and after spending a few days trying to get to the bottom of the issue I though I'd reach out and see if you can point me in the right direction?
Many thanks

The faulty object IDs only matter if they are not 65535. 65535 is the null object ID. There isn't actually an object with that ID in any object pool.
That error bitmask value 1 means method or attribute not supported by the VT which means something in that pool is unsupported by your VT, but it's not a lot of information to go on without also getting a CAN trace.
It could be something like that VT only supports 16 (or even 2) colors, but our example pool uses 8 bit color.

Hi, I've found the issue.
When having trouble building my application I had removed the "-1" from the below line in the code: -
virtualTerminalClient->set_object_pool(0, testPool, (object_pool_end - object_pool_start)-1, "ais1");
After putting it back in it worked perfectly and I finally got it working on my VT. On to the Seeder example next.
I'm just writing this as I've seen your response. Thank you for your help and very fast response.
Regards Matthew

Ah, nice, OK! Glad you were able to figure it out!


Update models.py

The Issue of 'Add visualization through graphs to plot loss/epoch live while training' has been written in the models.py file

@uakarsh Make sure that the plots you make are updated live and not just shown after the training completes.
Also, the logs should be permanent instead of temporary. You can add your code to root/utils/visualisation.py. Users must be able to import this and then set up code to see the model training live in front of them.

Closed Due to Inactivity!


Too many values to unpack (expected 2)

I am not able to run simple test from lighteval (math) tasks - I am getting "Too many values to unpack (expected 2)"
accelerate launch --multi_gpu --num_processes=4 run_evals_accelerate.py  --model_args "pretrained=openchat/openchat-3.5-0106"     --tasks "lighteval|math:algebra|0|0"     --override_batch_size 1     --output_dir="./evals/"

Hi, could you provide your full logs?

I can also reproduce the error with commit bbe3b5f8eff55c63dee8a28ebedc7a3a46556598
Command to reproduce:
accelerate launch --multi_gpu --num_processes=8 run_evals_accelerate.py \
    --model_args "pretrained=Qwen/Qwen1.5-0.5B-Chat" \
    --use_chat_template \
    --tasks "lighteval|math:algebra|0|0" \
    --override_batch_size 1 \
    --output_dir "./scratch/evals"

Logs attached.
logs.txt

Some notes on this.
It looks like the math_normalizer trys to parse a gold answer text:
The fraction $\\frac{1}{2y+1}$ fails to be defined only if the denominator is zero. This occurs when $y$ is the solution of the equation $$2y+1=0,$$ which is $y=-\\frac 12$. Thus the domain of $k(y)$ is $$\\boxed{\\left(-\\infty,-\\frac 12\\right)\\cup \\left(-\\frac 12,\\infty\\right)}.$$

This then fails in fix_fracs, which tries to parse the following:
(-\\infty,-\\frac12)\\cup(-\\frac12,\\infty)

and ends up failing when it tries to unpack:
a, b = substr # substr=12)\\cup(-

The parsing logic may need to be made more robust:
Here is an example code from a private repo that may help with this:
import re

def last_boxed_only_string(string):
    """
    Extracts the last LaTeX boxed or framed expression from a string.
    Args:
        string (str): The input string containing LaTeX expressions.
    Returns:
        str or None: The last boxed or framed expression, if found;
        otherwise, None.
    """

    idx = string.rfind("\\boxed")
    if idx < 0:
        idx = string.rfind("\\fbox")
        if idx < 0:
            return None

    i = idx
    right_brace_idx = None
    num_left_braces_open = 0
    while i < len(string):
        if string[i] == "{":
            num_left_braces_open += 1
        if string[i] == "}":
            num_left_braces_open -= 1
            if num_left_braces_open == 0:
                right_brace_idx = i
                break
        i += 1

    if right_brace_idx is None:
        retval = None
    else:
        retval = string[idx : right_brace_idx + 1]

    return retval

def remove_boxed(s):
    """
    Removes the LaTeX boxed command, returning the content inside the braces.
    Args:
        s (str): The string containing a LaTeX boxed expression.
    Returns:
        str or None: The content inside the boxed command, if valid;
        otherwise, None.
    """

    left = "\\boxed{"
    try:
        assert s[: len(left)] == left
        assert s[-1] == "}"
        length = len(left)
        return s[length:-1]
    except Exception:
        return None

def extract_boxed_answer(pred_str, strip_double_curly_brace=False):
    """
    Extracts the answer from a LaTeX boxed expression within
    a prediction string.
    Args:
        pred_str (str): The string containing one or more LaTeX
        boxed expressions.
        strip_double_curly_brace (bool): If True, removes an additional
        layer of braces.
    Returns:
        str or None: The extracted answer, if any; otherwise, None.
    """

    boxed_str = last_boxed_only_string(pred_str)
    if boxed_str is None:
        return None
    answer = remove_boxed(boxed_str)
    if answer is None:
        return None
    if strip_double_curly_brace:
        match = re.match("^\{(.*)\}$", answer)  # noqa: W605
        if match:
            answer = match.group(1)
    return answer

def normalize_final_answer(final_answer: str) -> str:
    """
    Normalizes a final answer string by removing or replacing various LaTeX
    and text elements.
    Args:
        final_answer (str): The answer string to normalize.
    Returns:
        str: The normalized answer string.
    """

    match = re.search(r"(.*?)Problem:", final_answer, flags=re.S)
    if match:
        final_answer = match.group(1)  # 返回匹配的第一部分，即"Problem"之前的所有文本
    """Normalize a final answer to a quantitative reasoning question."""
    # final_answer = final_answer.split('=')[-1]
    SUBSTITUTIONS = [
        ("an ", ""),
        ("a ", ""),
        (".$", "$"),
        ("\\$", ""),
        (r"\ ", ""),
        (" ", ""),
        ("mbox", "text"),
        (",\\text{and}", ","),
        ("\\text{and}", ","),
        ("\\text{m}", "\\text{}"),
        ("\\le", "<"),
    ]
    REMOVED_EXPRESSIONS = [
        "square",
        "ways",
        "integers",
        "dollars",
        "mph",
        "inches",
        "ft",
        "hours",
        "km",
        "units",
        "\\ldots",
        "sue",
        "points",
        "feet",
        "minutes",
        "digits",
        "cents",
        "degrees",
        "cm",
        "gm",
        "pounds",
        "meters",
        "meals",
        "edges",
        "students",
        "childrentickets",
        "multiples",
        "\\text{s}",
        "\\text{.}",
        "\\text{\ns}",
        "\\text{}^2",
        "\\text{}^3",
        "\\text{\n}",
        "\\text{}",
        r"\mathrm{th}",
        r"^\circ",
        r"^{\circ}",
        r"\;",
        r",\!",
        "{,}",
        '"',
        "\\dots",
        "\n",
        "\r",
        "\f",
    ]
    for before, after in SUBSTITUTIONS:
        final_answer = final_answer.replace(before, after)
    for expr in REMOVED_EXPRESSIONS:
        final_answer = final_answer.replace(expr, "")

    # Extract answer that is in LaTeX math, is bold,
    # is surrounded by a box, etc.
    final_answer = re.sub(r"(\\text\{)(.*?)(\})", "\\2", final_answer)
    final_answer = re.sub(r"(\\textbf\{)(.*?)(\})", "\\2", final_answer)
    final_answer = re.sub(r"(\\overline\{)(.*?)(\})", "\\2", final_answer)
    final_answer = re.sub(r"(\\boxed\{)(.*)(\})", "\\2", final_answer)
    assert "\n" not in final_answer
    assert "\r" not in final_answer
    assert "\f" not in final_answer
    if len(re.findall(r"finalansweris(.*)", final_answer)) > 0:
        final_answer = re.findall(r"finalansweris(.*)", final_answer)[-1]

    if len(re.findall(r"answer?is:?(.*)", final_answer)) > 0:
        final_answer = re.findall(r"answer?is:?(.*)", final_answer)[-1]

    if len(re.findall(r"oxed\{(.*?)\}", final_answer)) > 0:
        final_answer = re.findall(r"oxed\{(.*?)\}", final_answer)[-1]

    if len(re.findall(r"\$(.*?)\$", final_answer)) > 0:
        final_answer = re.findall(r"\$(.*?)\$", final_answer)[-1]
    final_answer = final_answer.strip()
    if "rac" in final_answer and "\\frac" not in final_answer:
        final_answer = final_answer.replace("rac", "\\frac")

    final_answer = re.sub(r"(frac)([^{])(.)", "frac{\\2}{\\3}", final_answer)
    final_answer = re.sub(r"(sqrt)([^{])", "sqrt{\\2}", final_answer)
    final_answer = final_answer.replace("$", "")

    if final_answer.replace(",", "").isdigit():
        final_answer = final_answer.replace(",", "")

    return final_answer


Merge release 2.15.0 into develop

What does this PR do?
Merge develop into release/2.15.0
Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] Make sure you discussed the feature or bugfix with the maintaining team in an Issue
[ ] Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

Codecov Report
Attention: Patch coverage is 86.31579% with 13 lines in your changes missing coverage. Please review.

Project coverage is 70.47%. Comparing base (0470eb4) to head (2383221).

Files with missing lines
Patch %
Lines

...lay/internal/recorder/mapper/SwitchCompatMapper.kt
79.17%
10 Missing :warning:

...ternal/recorder/mapper/CheckableWireframeMapper.kt
33.33%
1 Missing and 1 partial :warning:

...ternal/recorder/resources/DefaultDrawableCopier.kt
50.00%
1 Missing :warning:

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2361      +/-   ##
===========================================
+ Coverage    70.34%   70.47%   +0.13%
===========================================
  Files          742      741       -1
  Lines        27671    27646      -25
  Branches      4630     4628       -2
===========================================
+ Hits         19464    19483      +19
+ Misses        6911     6896      -15
+ Partials      1296     1267      -29

Files with missing lines
Coverage Δ

...nternal/recorder/mapper/CheckableTextViewMapper.kt
61.82% <100.00%> (ø)

...replay/internal/recorder/mapper/ImageViewMapper.kt
97.22% <100.00%> (+5.12%)
:arrow_up:

.../recorder/resources/DefaultImageWireframeHelper.kt
95.33% <100.00%> (+0.03%)
:arrow_up:

...ay/internal/recorder/resources/ResourceResolver.kt
95.24% <100.00%> (-1.88%)
:arrow_down:

...order/mapper/BaseAsyncBackgroundWireframeMapper.kt
94.74% <100.00%> (-0.26%)
:arrow_down:

...ndroid/sessionreplay/utils/ImageWireframeHelper.kt
66.67% <100.00%> (+6.67%)
:arrow_up:

...ternal/recorder/resources/DefaultDrawableCopier.kt
50.00% <50.00%> (ø)

...ternal/recorder/mapper/CheckableWireframeMapper.kt
86.67% <33.33%> (ø)

...lay/internal/recorder/mapper/SwitchCompatMapper.kt
88.24% <79.17%> (-4.22%)
:arrow_down:

... and 41 files with indirect coverage changes


Fix AirGap same device integration in Android & reenable in Android

what is the current block here?

probably was fixed in 7f3437ab3e2e194b29a480692c1f33fcc7ddb554


Permission denied to access property "handleEvent".

Greetings!  I tried to run your script, and at click event I get the error:
[error] Unexpected Exception: Error: Permission denied to access property "handleEvent".
I tried googling to find a solution, but didnt find much.
Do you know any workaround?
Using Firefox 3.8 , Selenium IDE 2.9.0

@Patrikkk ah, I will check it later

I'm having the same issue, I'm using Firefox 41.0a2.

Same problem here. I would love to have this working.

I have already confirmed this issue, due to slack.com uses bugsnap. I just update the command from click to fireEvent.
Enjoy it :sparkles:


Fix misaligned edit box when clicking on Tree items with different sizes

When clicking between items from a Tree that have a different height than one another (e.g. one has an icon and the other doesn't), the first time the edit box would appear, it would be misaligned, taking into account the position of the previous edited item.

Thanks!


return correct information on create session

Fixes https://github.com/appium/appium/issues/5920
createSession wasn't returning the javascriptEnabled server capability - ruby client wouldn't execute JS.
CC @imurchie @KazuCocoa

Interesting. Looks good to me.

thanks! :+1:


Flutter wont start on iOS simulator for example app

Steps to Reproduce
I try to start app after configuring flutter, and I get this output inside terminal
Running lib/main.dart on iPhone 5s... ondemandd: ondemandd is starting up... ondemandd: ondemandd is starting up... ondemandd: ondemandd is starting up... ondemandd: ondemandd is starting up... syslogd: ASL Sender Statistics ondemandd: ondemandd is starting up... routined: CoreLocation: Error occurred while trying to retrieve motion state update: CMErrorDomain Code:104
Flutter Doctor
`[✓] Flutter (on Mac OS, channel alpha)
• Flutter at /Users/matej/IdeaProjects/flutter/flutter
• Framework revision 9a0a0d9903 (2 weeks ago), engine revision f8d80c4617
[✓] Android toolchain - develop for Android devices (Android SDK 24.0.2)
• Android SDK at /Users/matej/Library/Android/sdk
• Platform android-24, build-tools 24.0.2
• Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
[✓] iOS toolchain - develop for iOS devices (Xcode 7.3.1)
• XCode at /Applications/Xcode.app/Contents/Developer
• Xcode 7.3.1, Build version 7D1014
[✓] Atom - a lightweight development environment for Flutter
• flutter plugin version 0.2.4
• dartlang plugin version 0.6.38
`
Logs and Crash Reports
This is paste from verbose mode, and I dont get any logs. Device is iPhone 5s simulator

For more information about diagnosing and reporting Flutter bugs, please see https://flutter.io/bug-reports/.

Looks like this is on the alpha branch.  I believe we've had other reports of simulator not working there.  @danrubel or @chinmaygarde would you be willing to check?  It may be time to just remove alpha since we're not actively keeping it up to date with master.

after I switch to master I get similar error
http://pastebin.com/yi8k6Vfb

Thanks.  I don't see any errors in that output.  Which is likely itself an error in our tooling. :/

One workaround is to open up ios/Runner.xcodeproj and run directly from XCode, but you shouldn't have to do that flutter run should work.

This is without verbose mode
Running lib/main.dart on iPhone 5s... securityd:  SOSKeychainCopySavedAccountData Failed to load account: Error Domain=NSOSStatusErrorDomain Code=-25300 "Error (null) reading for service 'iCloud Keychain Account Meta-data'" UserInfo={NSDescription=Error (null) reading for service 'iCloud Keychain Account Meta-data'} syslogd: Disabling module com.apple.securityd writes to /var/mobile/Library/Logs/CrashReporter/DiagnosticLogs/security.log following 6 failures (Operation Failed) CloudKeychainProxy:  __45-[UbiqitousKVSProxy doEnsurePeerRegistration]_block_invoke <UB---e-C---> ensurePeerRegistration called, success ((null)) IDSKeychainSyncingProxy:  -[IDSKeychainSyncingProxy doSetIDSDeviceID:] Error Domain=com.apple.security.ids.error Code=-1 "IDSKeychainSyncingProxy could not retrieve device ID from keychain" UserInfo={NSLocalizedDescription=IDSKeychainSyncingProxy could not retrieve device ID from keychain} securityd:  __SOSTransportMessageIDSGetIDSDeviceID_block_invoke Could not ask IDSKeychainSyncingProxy for Device ID: Error Domain=com.apple.security.ids.error Code=-1 "IDSKeychainSyncingProxy could not retrieve device ID from keychain" UserInfo={NSLocalizedDescription=IDSKeychainSyncingProxy could not retrieve device ID from keychain} securityd:  __talkWithIDS_block_invoke_2 talkwithIDS callback error: Error Domain=com.apple.security.ids.error Code=-1 "IDSKeychainSyncingProxy could not retrieve device ID from keychain" UserInfo={NSLocalizedDescription=IDSKeychainSyncingProxy could not retrieve device ID from keychain} healthd: (Error) MC: MobileContainerManager gave us a path we weren't expecting; file a radar against them 	Expected: /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles 	Actual: /Users/matej/Library/Developer/CoreSimulator/Devices/48373847-81AB-42BF-A8D4-EEA0170151B2/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles 	Overriding MCM with the one true path healthd: PairedSync, Debugging at level 0 for console and level 0 for log files healthd: Error: Could not create service from plist at path: file:///Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PairedSyncServices/com.apple.pairedsync.healthd.plist. Returning nil PSYSyncCoordinator for service name com.apple.pairedsync.healthd.  Please check that your plist exists and is in the correct format. healthd: Error: failed to load bundle "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Health/Plugins/CompanionHealth.bundle": Error Domain=NSCocoaErrorDomain Code=4 "The bundle “CompanionHealth.bundle” couldn’t be loaded because its executable couldn’t be located." UserInfo={NSLocalizedFailureReason=The bundle’s executable couldn’t be located., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSBundlePath=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Health/Plugins/CompanionHealth.bundle, NSLocalizedDescription=The bundle “CompanionHealth.bundle” couldn’t be loaded because its executable couldn’t be located.} suggestd: table drop: 101 suggestd: 2016-08-30 14:57:28.610+0530|67271|0x7f8572e10d60|EventKit: __44-[EKEventStore insertSuggestedEventCalendar]_block_invoke_3: Could not insert the Found in Mail calendar with error Error Domain=EKCADErrorDomain Code=1012 "(null)" routined: CoreLocation: Error occurred while trying to retrieve motion state update: CMErrorDomain Code:104 routined: Connection interrupted! suggestd: Connection interrupted! routined: CoreLocation: Error occurred while trying to retrieve motion state update: CMErrorDomain Code:104 routined: CoreLocation: Error occurred while trying to retrieve motion state update: CMErrorDomain Code:104 syslogd: ASL Sender Statistics routined: CoreLocation: Error occurred while trying to retrieve motion state update: CMErrorDomain Code:104

+1... Been running on my Android Emulator and wanted to switch over to iOS to quickly try your integration testing solution, but using the alpha branch didn't work for me :(

I connected a new iPod Touch, ran flutter run -d ipod, and it failed in a similar way.
This is what I did to get it working...

open ios/Runner.xcodeproj/ to open the flutter ios project in XCode
enable developer mode in XCode
sign in with my Apple Developer ID to get a signing cert
update the app bundle identifier to start with com.<my-apple-dev-id>.
delete libPods-*.a file in the Frameworks folder
verify the developer app certificate on the connected ipod device

At this point, I can launch it from XCode and see it run on the iPod.
Next, I closed XCode and tried to run it from the command line...
$ flutter run -d ipod
Running lib/main.dart on iPod touch...
Could not find the built application bundle at build/ios/Release-iphoneos/Runner.app.
Error running application on iPod touch.

$ flutter run --debug -d ipod
Running lib/main.dart on iPod touch...
Could not find the built application bundle at build/ios/Release-iphoneos/Runner.app.
Error running application on iPod touch.

After some splunking into the build directory...
$ flutter build ios
$ cp -r build/ios/Debug-iphoneos/ build/ios/Release-iphoneos/
$ flutter run -d ipod

... and it worked.
I'm new to iOS development so some of the steps above may not be necessary, but this worked for me. Not yet sure why I had to copy Debug-* over to Release-*.

CC @chinmaygarde.  flutter run should "just work".  And no amount of signing configuration should be necessary for simulators (but will be necessary for devices, sadly).

@danrubel, just to confirm, you have a copy of the iOS simulator running?

Nope. It's probably in the docs or a tutorial somewhere and I just missed it. My opinion is that the flutter tool should have pointed that out and provided information about how I should go about installing / configuring it. Guess it's something I need to investigate and fix :-)
https://github.com/flutter/flutter/issues/5674

Yes, I think it's something that other users have hit as well.

I'm not sure there is anything more to do here.  FYI @cbracken @xster (to see some of the historical trouble folks have had getting flutter run working with ios).
Happy to help diagnose newer flavors of this bug.  We now have several folks working on our iOS side of things and we believe our tooling to be much more stable.  Please file a new bug if you're still having trouble and i promise we'll resolve it much quicker this time. :/

Should we interpret this as: for quality of life improvements, we can prompt the user to with an option to start an android or ios emulator for them if nothing is connected?

That sounds like a good idea.

#7863

I faced this challenge and it stalled my learning and development for 2 weeks.
Luckily I have solved it. I carefully ensured that Flutter, Xcode were properly installed, then in the project terminal in Android Studio, I ran Flutter Clean.
After that, I realised that the app installed on the iOS simulator and am able to run it.
SO RUN Flutter Clean


Enabling Level 20 allows for free levels after reaching Level 13

Game version 1.4.31 and mod version <IP_ADDRESS>. No other mods installed.
It seems that when levelling up past Level 12, if you save after and load a new save file, you'll be able to level up again, even if no XP has been acquired. It seems this can be repeated indefinitely, up to Level 20, though I stopped at 15.
To reproduce, enable levelling past the base game cap and reach Level 13, finish the level-up process, save, quit to main menu, then load the save. You'll be able to level up again, as stated above. Repeat and you'll be able to keep gaining levels.
Overlevel.zip

Try disabling bypass min/max levels under gameplay > tools and let me know.

I had it off before, but when I turned it on, they weren't able to level up for free.


Where did release 0.10.0 disappear?

Today I was targeting<EMAIL_ADDRESS>as specified in the latest documentation but suddenly it just disappeared after 0.10.1 was introduced. After switching to 0.10.1 I get this error:
error: Uncaught Error: downloading plugin "deno_mongo" from "https://github.com/manyuanrong/deno_mongo/releas
es/download/v0.10.0/deno_mongo.dll" failed.
    throw Error(`downloading plugin "${name}" from "${remoteUrl}" failed.`);
          ^
    at downloadFromRemote (mod.ts:76:11)
    at async download (mod.ts:46:7)
    at async prepare (mod.ts:60:21)
    at async init (util.ts:44:3)
    at async mod.ts:13:1

Clearly, there is something wrong here in the dependencies

Fixed now, thanks


Look for msbuild in default install path on Linux

It is almost the same way as 3046320 did for Mac.

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

( This is one of the issues I mentioned at https://github.com/cake-build/cake/issues/1733 )

Relates to #1771

@aateeque your changes have been merged, thanks for your contribution 👍


Suggestion to use valid greenkeeper.json is not valid json.

I recently had a greenkeeper.json file that had syntax errors. We got a notification on our repo that a bad greenkeeper.json file was detected, which was excellent 👏 , but the example suggested was not written in valid json. Here was the notification:

Haha, oh dear, thanks 🙈 Excellent point, we’ll get on it!


vue-cli-service test:e2e won't work

Version
4.2.2
Reproduction link
https://github.com/mg98/Minimal-Reproduction-for-Issue
Environment info
Environment Info:

  System:
    OS: macOS 10.15.2
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
  Binaries:
    Node: 13.7.0 - /usr/local/bin/node
    Yarn: 1.21.1 - /usr/local/bin/yarn
    npm: 6.13.6 - /usr/local/bin/npm
  Browsers:
    Chrome: 79.0.3945.130
    Firefox: 72.0.2
    Safari: 13.0.4
  npmPackages:
    @chenfengyuan/vue-countdown: ^1.1.4 => 1.1.4
    @vue/babel-helper-vue-jsx-merge-props:  1.0.0
    @vue/babel-plugin-transform-vue-jsx:  1.1.2
    @vue/babel-preset-app:  4.1.2
    @vue/babel-preset-jsx:  1.1.2
    @vue/babel-sugar-functional-vue:  1.1.2
    @vue/babel-sugar-inject-h:  1.1.2
    @vue/babel-sugar-v-model:  1.1.2
    @vue/babel-sugar-v-on:  1.1.2
    @vue/cli-overlay:  4.1.2
    @vue/cli-plugin-babel: ^4.1.2 => 4.1.2
    @vue/cli-plugin-e2e-cypress: ^4.2.2 => 4.2.2
    @vue/cli-plugin-eslint: ^4.1.2 => 4.1.2
    @vue/cli-plugin-router:  4.1.2
    @vue/cli-plugin-unit-mocha: ^4.1.2 => 4.1.2
    @vue/cli-plugin-vuex:  4.1.2
    @vue/cli-service: ^4.1.2 => 4.1.2
    @vue/cli-shared-utils:  4.1.2 (4.2.2)
    @vue/component-compiler-utils:  3.1.1
    @vue/preload-webpack-plugin:  1.1.1
    @vue/test-utils: 1.0.0-beta.29 => 1.0.0-beta.29
    @vue/web-component-wrapper:  1.2.0
    babel-helper-vue-jsx-merge-props:  2.0.3
    eslint-plugin-vue: ^6.1.2 => 6.1.2
    typescript:  3.7.2
    vue: ^2.6.11 => 2.6.11 (2.3.3)
    vue-acl: 4.1.7 => 4.1.7
    vue-apexcharts: ^1.5.1 => 1.5.1
    vue-apollo: ^3.0.2 => 3.0.2
    vue-awesome-swiper: ^3.1.3 => 3.1.3
    vue-backtotop: ^1.6.1 => 1.6.1
    vue-class-component:  7.1.0
    vue-cli-plugin-apollo: ^0.21.3 => 0.21.3
    vue-clickaway:  2.2.2
    vue-clipboard2: ^0.3.1 => 0.3.1
    vue-context: ^5.0.0 => 5.0.0
    vue-echarts: ^4.1.0 => 4.1.0
    vue-eslint-parser:  2.0.3 (7.0.0)
    vue-feather-icons: ^5.0.0 => 5.0.0
    vue-flatpickr-component: ^8.1.5 => 8.1.5
    vue-form-wizard: ^0.8.4 => 0.8.4
    vue-fullcalendar: ^1.0.9 => 1.0.9
    vue-hot-reload-api:  2.3.4
    vue-i18n: ^8.15.3 => 8.15.3
    vue-instantsearch: ^2.6.0 => 2.6.0
    vue-loader:  15.8.3
    vue-perfect-scrollbar: ^0.2.1 => 0.2.1
    vue-prism-component: ^1.1.1 => 1.1.1
    vue-property-decorator: ^8.3.0 => 8.3.0
    vue-quill-editor: ^3.0.6 => 3.0.6
    vue-router: ^3.1.3 => 3.1.3
    vue-select: ^3.4.0 => 3.4.0
    vue-simple-calendar: ^4.3.2 => 4.3.2
    vue-simple-suggest: ^1.10.1 => 1.10.1
    vue-star-rating: ^1.6.1 => 1.6.1
    vue-style-loader:  4.1.2
    vue-template-compiler: ^2.6.11 => 2.6.11
    vue-template-es2015-compiler:  1.9.1
    vue-tour: ^1.2.0 => 1.2.0
    vue-tree-halower: ^1.8.3 => 1.8.3
    vue-video-player: ^5.0.2 => 5.0.2
    vue2-google-maps: ^0.10.7 => 0.10.7
    vue2-hammer: ^2.1.2 => 2.1.2
    vuecode.js: 0.0.27 => 0.0.27
    vuedraggable: ^2.23.2 => 2.23.2
    vuejs-datepicker: ^1.6.2 => 1.6.2
    vuelidate: ^0.7.4 => 0.7.4
    vuesax: ^3.11.5 => 3.11.5
    vuex: ^3.1.2 => 3.1.2
  npmGlobalPackages:
    @vue/cli: 4.1.1

Steps to reproduce
Run vue-cli-service test:e2e.
What is expected?
Cypress e2e tests should run in headless mode.
What is actually happening?
I am getting this error message:
internal/modules/cjs/loader.js:983
  throw err;
  ^

Error: Cannot find module '@vue/cli-plugin-e2e-cypress'
Require stack:
-<EMAIL_ADDRESS>-<EMAIL_ADDRESS>    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)
    at Function.Module._load (internal/modules/cjs/loader.js:862:27)
    at Module.require (internal/modules/cjs/loader.js:1040:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at idToPlugin (/usr/local/lib/node_modules/@vue/cli-service/lib/Service.js:150:14)
    at /usr/local/lib/node_modules/@vue/cli-service/lib/Service.js:189:20
    at Array.map (<anonymous>)
    at Service.resolvePlugins (/usr/local/lib/node_modules/@vue/cli-service/lib/Service.js:175:10)
    at new Service (/usr/local/lib/node_modules/@vue/cli-service/lib/Service.js:34:25)
    at Object.<anonymous> (/usr/local/lib/node_modules/@vue/cli-service/bin/vue-cli-service.js:16:17) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
<EMAIL_ADDRESS><EMAIL_ADDRESS>  ]
}

It is actually working with command cypress run and I would have expected the vue cli command to do the same.

Have you tried "npm run test:e2e"? In my project that works fine.
Actually, "vue-cli-service test:e2e" as is in your package.json will (should) run the Cypress Runner. If you want to run in headless mode, you should use "vue-cli-service test:e2e --headless".

It's npm run test:e2e.
Seems you mistakenly installed the @vue/cli-service package globally and ran the wrong command.

My package.json is configured to run vue-cli-service test:e2e on npm run test:e2e, just like npm run test:unit executes vue-cli-service test:unit --recursive .... (which does work for me!) and I think it's like that for you too! Or isn't it? I see Vue example projects that also use the vue-cli-service command to build and serve too. And isn't a cli library supposed to be installed globally to be able to be run on the command line?
To clarify: npm run test:e2e gives me the very same output and error.
Thanks so far.

Please provide the error log of npm run test:e2e.
The error log in the original post doesn't look right unless your project locates under /usr/local/lib, which, typically, is the place where npm installs its global packages.
Plus, the reproduction repo isn't even runnable.


Provide a way to halt future navigation

It is possible to override navigation using Config.navigation.override, but it not possible to prevent it. That means that in any situation where you interrupt navigation (e.g. when a player dies) using the override, multiple navigation instances (e.g. a <<goto>> triggering inside a link, or a <<goto>> followed by another <<goto>>, will result in the same passage being navigated to more than once.
It would be nice to have a way to prevent navigation entirely. This could be by returning a special constant from the override function, or by setting a flag/calling a function (similar to how event.preventDefault() allows an event handler to cancel the remaining effects of the original event. Alternatively the flag could be a global Config.navigation.prevented which could be set to turn off all navigation until it is turned back on.

Multiple navigations occurring roughly simultaneously should never happen in the first place.  That's bad, and undefined, behavior as-is—i.e., it's broken even without an override.
Maybe I'm not seeing the full picture here, but my gut reaction is that if end user code is doing bad things, then fix that code.

There are other use-cases for cancelling transition.
For example, you may wish to prevent all navigation if some condition is not met. Yes, every link could be modified to include that conditional check (perhaps as a widget), but it would be much easier to be able to globally prevent the transition without creating a new moment (as navigating back to the passage would do).

Personally it sounds like a foot-gun solution to a situation that should be handled by a better designed custom interface, and I can see potential confusions when trying to debug a request for help.
Why show the end-user what appears to be a selectable link that actually isn't.

Personally it sounds like a foot-gun solution to a situation that should be handled by a better designed custom interface, and I can see potential confusions when trying to debug a request for help.
Why show the end-user what appears to be a selectable link that actually isn't.

A practical example. At the end of one game I transitioned to a Death passage, but wanted to show the text from the previous passage to indicate how the user died. On that passage I would like to shut down all links. I think I did it by modifying the links themselves, but an override would have made it a lot easier.
In the end, this is something more than one person has suggested (e.g. see Maliface's pull request: https://github.com/tmedwards/sugarcube-2/pull/302/files). I'd be interested in what harm you think having such a method in the Engine would cause?

I think I did it by modifying the links themselves, but an override would have made it a lot easier.

But this feature wouldn't of visibly disable those links, so from the end-user's point-of-view they would still be selectable options , unless some other method was being used to force those links to appear disabled, and if this is the case then why isn't that method also being used to make those links actually unselect-able?
So using this purposed method of "disabling" a link results in a potentially confusing situation where nothing happens (1) if one of those selectable links are selected, thus a badly designed User Experience, and thus breaking the principle of least astonishment / surprise.
(1) and I understand that JavaScript could be used in the handler to notify the end-user, but that would happen after a selection was made.
eg. the old "Please do not press this button again" scene from Hitchhikers Guide.
Is there a potential need to be able to disable multiple links at a time, Maybe. But that functionality also needs to make it clear that those links have been disabled, and more importantly why!  And this is where things become complex, because if there is one set of such links then there could potentially be multiple such sets, and it's likely that each set will have its own why.

That is one of my primary concerns.  You have no method of notifying the caller why or even how a link should be disabled.


support disableListDelimiter

Druid specify the listDelimiter to split value before, also when listDelimiter = null, it is set to “\u0001” by default.
However, when the user's value contains "\u0001", and do not want to treat it as a separator, they encountered trouble.
So I added a switch named "disableListDelimiter" to disable listDelimiter.
eg1:
delimiter: ","
listDelimiter: null
disableListDelimiter: true
columns:  col1,col2,col3
input: "1,2,x\u0001y\u0001z"
 parsedMap(output):
      {
              "col1": "1",
              "col2": "2",
              "col3": "x\u0001y\u0001z"
      }

eg2:
delimiter: ","
listDelimiter: null
disableListDelimiter: false
columns:  col1,col2,col3
input: "1,2,x\u0001y\u0001z"
 parsedMap(output):
      {
              "col1": "1",
              "col2": "2",
              "col3": [
                      "x",
                      "y",
                      "z"
                ]
      }

The TCI task always failed，because the maximum time limit is exceeded.
Detail msg: "The job exceeded the maximum time limit for jobs, and has been terminated"
Can someone help me solve this problem?

Probably it's better to disable listDelimiter if it is not specified, rather than assign it to \u0001?

I agree with your point, but doing that would affect existing druid users, so i added a new key to do this.

What do you think about making the default listDelimiter configurable?

@jihoonson what do you mean by "making the default listDelimiter configurable"? Changing "\u0001" to other str? If so, I don't think it essentially resolve the problem mentioned here when it contains the new default listDelimiter in user's input events.
If user don't want a column being multi-value column, I think it's better to stop trying to split the input events using the listDelimiter, like setting disableListDelimiter=true

what do you mean by "making the default listDelimiter configurable"? Changing "\u0001" to other str? If so, I don't think it essentially resolve the problem mentioned here when it contains the new default listDelimiter in user's input events.

@kaijianding yes, I meant it would be good for backward compatibility if users can change the default listDelimiter from \u0001 to something. Also, we can treat empty listDelimiter (both given listDelimiter and default listDelimiter are empty) as disalbeListDelimiter=true.
Or, IMO, it also makes sense to add a new configuration like multiValueDelimiter which has null as its default value, and make listDelimiter deprecated.
I basically agree on this feature is needed, but think that there will be a better option rather than simply adding a turn-off flag.

how about change disableListDelimiter to nullListDelimiterAsDisable? @jihoonson
if nullListDelimiterAsDisable==true and listDelimiter==null, it means to disable listDelimiter
if nullListDelimiterAsDisable==false and listDelimiter==null, it means listDelimiter=\u0001, and it is backward compatible
I think it's similar to change default listDelimiter to something other than \u0001

@kaijianding it looks good to me.

@leventov what do you think about changing disableListDelimiter to nullListDelimiterAsDisable?

nullListDelimiterAsDisable also looks a good choice, what do you think ? @leventov

Among the suggested solutions I like adding multiValueDelimiter, because it allows to eventually remove listDelimiter in a way that is safe for user. Adding something like nullListDelimiterAsDisable it ugly and doesn't provide a way clean the legacy later.

When the user does not specify multiValueDelimiter and listDelimiter, that means multiValueDelimiter = null and listDelimiter = null, and '\ u0001' will also be used as delimiter,
which could not fix this problem.  @leventov

@winval indeeded. If so I'm in preference to disableListDelimiter, because it's simpler than nullListDelimiterAsDisable.

@winval @leventov what do you think about removing listDelimiter and adding multiValueDelimiter? Our next release will be a major release, so we can make a breaking change?

See this discussion. Maybe it would be good if users can specify multiValueDelimiter for each dimension.

@jihoonson I think "multiValueDelimiter" for each dimension is much too complex for user, perhaps it is not a common need.

I think "multiValueDelimiter" for each dimension is much too complex for user, perhaps it is not a common need.

@winval yeah, maybe. But, I think disabling listDelimiter for each dimension is worthwhile for the case of the referred link. There will be many similar cases.
Also, I still think that it's better to remove listDelimiter and add multiValueDelimiter. What do you think?

@jihoonson multiValueDelimiter is better indeed, I have changed this PR to support multiValueDelimiter which can specify the delimiter of each dimension.

@leventov  @kaijianding  @jihoonson How do you think the design of multiValueDelimiter ?


Game Crashing

Mod Version:
1.12.2 <IP_ADDRESS>
Forge Version:
<IP_ADDRESS>55
Link to client log:
https://pastebin.com/qGMwDrDE
Link to crash log:
https://pastebin.com/LqejcCDn
Description:
My game just crash, I don't known if there is any conflicting mod, I tried search for but I found nothing.

Did you just add the mod to a pack?
Yes
Did it just start crashing, or has it always crashed?
Always crashed
Did you update any other mods in your pack and it started crashing?  This includes Forge.
No, I added this mod to my modpack and he begin to crash.
If updating multiple mods did you update one by one or all at once?  To help narrow the problem down adding one by one is helpful.
I haven't updated any mods
Is the modpack you are using available online somewhere?  If the crash is due to mod interaction having the pack available makes things much easier.  It is much harder to work these types of issues with a private kitchen sink pack containing 250 mods.
No, this is my personal pack, but he has only 57 mods.

Do you have MixinBootstrap installed?

Do you have MixinBootstrap installed?

No , I should ? I don't know what this mod does.
I'm out of time now but soon i'll can do more tests.

Do you have MixinBootstrap installed?

I installed this, and it worked. Today I read the mod's main page more carefully and saw this guidance.


Add previous awx doc for oauth2_provider

Found the original at https://github.com/ansible/awx/blob/c3d9aa54d89b23dd23012fc2a21825f47ba87872/awx/api/templates/api/api_o_auth_authorization_root_view.md
Are there plans to remove the docs from AWX since they are maintained here now?


Add a compatibility codec for Foreign?

As far as I can tell, Foreign and Json are the same thing. However, since they are two separate types, JsonCodecs require a conversion from Foreign to Json (and vice versa if going the opposite direction) before they can encode/decode their values.
Could such a compatibility codec be added?

Some people do use Foreign for JSON, but they're not really the same.
Foreign is basically the "any" type, whereas Json is only values that are valid in JSON. So, a JS Date object would be Foreign, but not Json, also, Window, etc. Anything with a prototype basically. So a codec would in theory have to determine whether the Foreign value is safe to use as JSON too, and I don't really know a good way of doing that.
Actually, as it happens, in JS Json isn't even the full set of values that are valid JSON, since the spec puts no bounds on the size of numbers in the JSON format, so larger numbers than can be represented in JS are valid JSON, technically.
I now think Foreign was a mistake to introduce at all (even though I was involved in it), I can't think of a time I'd choose to use it over a foreign data type introduced to represent a smaller subset of possibilities, rather than having the more general toolkit for foreign values.

Gotcha. Thanks for answering my question! I'll close this.


Question: Does the 'unpack' accept the object types in spec.json

Tutorial Select
Prepare Custom Model
Feedback
I am trying to write the spec.json for yolo_v5. The output of the model is "models.common.Detections" object, and I didn't see this type of output mentioned in the tutorial. Currently, it seems like I have to let my project able to obtain the object type of prediction result first, then trying to access the specific data (like bounding box) in the .js file.

@JohnZcp, the YOLOv5 model is not supported out of the box. IIRC, there is 1 additional native data processing step missing at the moment. Let me know if you are interested in adding the step, and we can help/advice!

I checked the output through Colab. At this moment, the prediction result I got from the ptl file is a tuple of list of tensor (Tensor,[Tensor, Tensor, Tensor]). Generally, the prediction result of yolo_v5 is a object (before I convert the model to ScriptModule). The object should able to return the following info - xmin, ymin, xmax, ymax, confidence, class, name, by using method object.xyxy(0). I guess the first tensor is equivalent to the bounding box(xmin, ymin, xmax, ymax) and the tensors in the list are the confidence, class, and name. However, the tuple and list type of  are not supported on iOS for "unpack" section in the spec.json. If I understand correctly, I think the biggest problem are the structure of "unpack", and how to pre-process the first tensor of the output in the spec.json.

@raedle Can you explain more about the native data processing step you mentioned above?

@JohnZcp, the pack and unpack data processing steps are in the following folders:
Android

Packer implementations on Android
Unpacker implementations on Android
Packer/Unpacker registration on Android

iOS

Packer implementations on iOS
Unpacker implementations on iOS
Packer/Unpacker registration on iOS

A good example to look at would be the bounding_boxes unpacker that's used for the DETR model.
We are working on a solution that will make the integration easier, but it's probably going to take a bit until it's stable. That said, we are looking for feedback from the community, so let us know if you want to experiment with this API

@raedle Yes. And I wonder what should I do if I want to design a unpacker for yolo_v5. I want to have a try, but not sure how.

@JohnZcp, do you have a torchscripted YOLOv5 model that runs in the lite interpreter runtime, and can you share the model with me with example input/output processing?
Feel free to DM me on the PyTorch Live Discord channel to work out a solution for YOLOv5

Closing this issue out since the packer / unpacker approach was removed with 0.2.2. Check out the PyTorch-inspired API in the README as an alternative that avoids these issues: https://github.com/facebookresearch/playtorch/tree/main/react-native-pytorch-core#example-usage
As an additional note, see the YOLOv5 example for how to unpack using the current APIs: https://playtorch.dev/docs/tutorials/snacks/yolov5/


Enforce R-package dependencies in build_r.R before compilation begins

I found myself forgetting to install a couple of R-package dependencies repeatedly on successive LightGBM installations. This wasted some time because compilation runs for quite a while before getting to the part where these packages are required.

@zkurtz looks good to me! Thanks for the change
@Laurae2 I will merge when all the CI stuff builds

@jameslamb To merge?

@Laurae2 yep looks good to me! I'll merge


A better PartialService, for those who like to chain.

Another experimental offshoot of #332.
A PartialFunction can now optionally be lifted into a PartialService, which gets back its or and orElse operations via syntax.  This supports a chaining style for those who want it, but tucks it out of the way because most people won't.
There is probably something clever to be done with middleware here, but I'm done being clever until someone supports this idea.

What is the reason we now need an explicit dependency on scalaz as opposed to pulling it in transiently?

To get to a new enough version to get OptionT.getOrElseF, which comes in handy.

Also has the green light. Merging into #332.


Get much lower global_sfm results for OpenIBL

I directly downloaded the model_best.pth.tar and pca_params_model_best.h5 for sfrs from the google drive link offered by the author of OpenIBL. And produce global features like extract_kapture.py with pca whitening. Then I ran kapture_pipeline_image_retrieval_benchmark.py and get sfrs_top1(Feather2d2 20k) results for global_sfm:
Model: global_sfm_config_2
Found 688 / 916 image positions (75.11 %).
Found 688 / 916 image rotations (75.11 %).
Localized images: mean=(38.5954m, 50.3685 deg) / median=(10.5967m, 2.3077 deg)
All: median=(39.9641m, 24.5639 deg)
Min: 0.0037m; 0.0890 deg
Max: 1678.3912m; 179.9506 deg
(0.25m, 2.0 deg): 30.79%
(0.5m, 5.0 deg): 33.41%
(5.0m, 10.0 deg): 34.61%
which is much lower than the results you offered for openibl_vgg16_netvlad:
(0.25m_2.0deg):42.36%
(1.0m_5.0deg):48.03%
median distance (m):10.6814
median angle (deg):1.8746
What may be the problems I get while reproducing the results?
I also use the openibl_vgg16_netvlad global features provided by you and get similar results as the benchmark:
Model: global_sfm_config_2
Found 789 / 916 image positions (86.14 %).
Found 789 / 916 image rotations (86.14 %).
Localized images: mean=(31.5377m, 38.1892 deg) / median=(0.1040m, 1.4645 deg)
All: median=(10.0326m, 1.9461 deg)
Min: 0.0037m; 0.1103 deg
Max: 197.0356m; 179.9974 deg
(0.25m, 2.0 deg): 42.03%
(0.5m, 5.0 deg): 47.60%
(5.0m, 10.0 deg): 48.47%

I don't know. What I can tell you is that to extract global features for openibl, we (minus some pipelining difference) followed the quickstart guide https://github.com/yxgeee/OpenIBL#extract-descriptor-for-a-single-image


[SPARK-19149][SQL] Follow-up: simplify cache implementation.

What changes were proposed in this pull request?
This patch simplifies slightly the logical plan statistics cache implementation, as discussed in https://github.com/apache/spark/pull/16529
How was this patch tested?
N/A - this has no behavior change.

cc @wzhfy

Test build #71189 has started for PR 16544 at commit 622d62b.

LGTM

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/71189/
Test FAILed.

Test build #3524 has started for PR 16544 at commit 622d62b.

Test build #3524 has finished for PR 16544 at commit 622d62b.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merging in master.


Feature Request: Option to Disable LSP in Preview Window

It does not always make sense to have the LSP attached the preview window.

It does not always make sense to have the LSP attached the preview window.

I'd argue it never makes sense, and would be nice to be set to off by default or completely throw away. Not only pointless overload of operations when scrolling through entries, but larger surface for potential breakage.  Had to disable some async lsp capabilities to get rid of the storm of errors as buffers get swapped faster than lsp is able to handle it and likely due to async nature of lsp operations, no amount of trying to prevent this, detach lsp or anything of sorts helped. Still getting spammed with lps progress indicators (notifications, fidget...) going crazy as I cycle entries. Would maybe make sense to prevent lsp from loading in the first place, or create a copy of buf with telescope syntax only to display as prev... But it is slightly outside of my capabilities for now, and I am quite swamped with school/work. It is not complaining - it's an honest opinion and some ideas added on top.

Fixed with #467. Thanks!


Downloading language model from within .py, Is there a version of language model?

Another option to invoke the download(sputnik)
from spacy.en import download
download.main()
or
download.main(force=True)
Is there an API method to determine the version or release date of the language model?
I see the version name is 1.0.9 on the folder, is there an API call to determine the same?
Is there an announcement or location to review the latest available language model?

Yes, that's possible via sputnik, a separate library that abstracts data model management for spacy and similar projects. Try this code (sorry, docs are not great, but here's an overview: https://github.com/spacy-io/sputnik):
import spacy
import sputnik
pkg = sputnik.package(spacy.about.__title__, spacy.about.__version__, 'en')
print(pkg.name, pkg.version)

The first two parameters, spacy.about.__title__ and spacy.about.__version__ are for telling sputnik about spacy and its version. The third parameter, 'en', specifies the model. You can also add version constraints, e.g., en>=1.0.0. Note that the model needs to be installed before being queried in this way.
Also check out the download script to see how you can install models directly via sputnik: https://github.com/spacy-io/spaCy/blob/master/spacy/download.py, in short:
import spacy
import sputnik
sputnik.install(spacy.about.__title__, spacy.about.__version__, 'en')

For obtaining a package path use:
import spacy
import sputnik
pkg = sputnik.package(spacy.about.__title__, spacy.about.__version__, 'en')
pkg.path

For obtaining the latest en model please run python -m spacy.en.download. Until now we didn't announce model updates, but plan to do so in the future. Specifically for those and other announcements we created a newsletter. You can subscribe to it on the website (scroll down to the end): https://spacy.io


Replace components

Hi, can I replace  MAX4619CSE+T with MAX4619CPE+(PDIP-16)
? I saw that they both have the same specification

This is way long over due. But this will work but won't fit the Pi HAT since the original is surface mounted and this one is through hole.


YouTube API doesn't seem to work

The YT specific functions don't seem to be defined when it uses HTML5 <video>. I tried this instead which works:
if(document.getElementsByTagName('video')[0]) {
    var video = document.getElementsByTagName('video')[0];
    var isVideoPaused = video.paused;
    var playVideo = function() { video.play(); };
    var pauseVideo = function() { video.pause(); };
} else {
    var video = document.getElementById('movie_player');
    var isVideoPaused = (video.getPlayerState() === 2);
    var playVideo = function() { video.playVideo(); };
    var pauseVideo = function() { video.pauseVideo(); };
}

if(isVideoPaused)
    playVideo();
else
    pauseVideo();

Any progress on this? I'd really like to use this extension with YouTube.

This does seem to be in the current code (although it seems to be quite rewritten). I am not sure which pull request solved it (haven't looked). This issue can probably be closed though.


Added a solution/fixed stub :)

Added a solution to the stub regarding Javascript Algorithms And Data Structures Certification\Regular Expressions

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x]My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

@AlexandreLeFou


az cli seems to spend 10 seconds looking for account config, even if it doesn't need them

Describe the bug
While looking into what causes the az-cli to load slowly on the hosted agents of GitHub Actions and Azure pipelines I noticed that az tries to look for accounts and throws a couple of exceptions even if the account isn't needed.
In this case the access token to access Azure DevOps is supplied through the environment, yet az is trying to load accounts and spends unneeded time there.
It's hard to tell from the logs, bet between the last logged line and the error handling there is a jump of about 10 seconds in the Azure pipelines log. Would be lovely if that time waste could be prevented.
Related command
Az DevOps pipelines show ...
Errors
2023-09-15T18:37:12.7002991Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x0000025BD8AEC430>]
2023-09-15T18:37:12.7003914Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x0000025BD8AEF0A0>]
2023-09-15T18:37:22.0011676Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
2023-09-15T18:37:22.0012102Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x0000025BD8B51090>, <function register_cache_arguments..add_cache_arguments at 0x0000025BD8B511B0>]
2023-09-15T18:37:22.0026227Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
2023-09-15T18:37:22.0026678Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
2023-09-15T18:37:22.3327775Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x0000025BD63AFF40>, <function CLIQuery.handle_query_parameter at 0x0000025BD63F92D0>, <function register_ids_argument..parse_ids_arguments at 0x0000025BD8B51120>, <function DevCommandsLoader.post_parse_args at 0x0000025BD8B72B90>]
2023-09-15T18:37:22.3348603Z DEBUG: cli.azext_devops.dev.common.services: PAT is present which can be used against this instance
2023-09-15T18:37:22.3375557Z DEBUG: cli.azure.cli.core: Current cloud config:
2023-09-15T18:37:22.3375819Z AzureCloud
2023-09-15T18:37:22.3376906Z DEBUG: cli.azext_devops.dev.common.services: az login is not present
2023-09-15T18:37:22.3382543Z DEBUG: cli.azext_devops.dev.common.services: There are no active accounts.
2023-09-15T18:37:22.3382797Z Traceback (most recent call last):
2023-09-15T18:37:22.3383541Z   File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/_profile.py", line 537, in get_current_account_user
2023-09-15T18:37:22.3384147Z   File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/_profile.py", line 546, in get_subscription
2023-09-15T18:37:22.3384535Z knack.util.CLIError: Please run 'az login' to setup account.
2023-09-15T18:37:22.3384768Z
2023-09-15T18:37:22.3385009Z During handling of the above exception, another exception occurred:
2023-09-15T18:37:22.3385200Z
2023-09-15T18:37:22.3385466Z Traceback (most recent call last):
2023-09-15T18:37:22.3385884Z   File "C:\Program Files\Common Files\AzureCliExtensionDirectory\azure-devops\azext_devops\dev\common\services.py", line 61, in _get_credentials
2023-09-15T18:37:22.3386261Z     token_from_az_login = get_token_from_az_logins(organization, pat_token_present)
2023-09-15T18:37:22.3386725Z   File "C:\Program Files\Common Files\AzureCliExtensionDirectory\azure-devops\azext_devops\dev\common\services.py", line 118, in get_token_from_az_logins
2023-09-15T18:37:22.3387095Z     dummy_user = profile.get_current_account_user()     # noqa: F841
2023-09-15T18:37:22.3387524Z   File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/_profile.py", line 539, in get_current_account_user
2023-09-15T18:37:22.3387878Z knack.util.CLIError: There are no active accounts.
2023-09-15T18:37:22.3388195Z INFO: cli.azext_devops.dev.common.services: received PAT from environment variable
2023-09-15T18:37:22.3388587Z INFO: cli.azext_devops.dev.common.services: Creating connection with personal access token.
Issue script & Debug output
2023-09-15T18:37:12.7002991Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x0000025BD8AEC430>]
2023-09-15T18:37:12.7003914Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x0000025BD8AEF0A0>]
2023-09-15T18:37:22.0011676Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
2023-09-15T18:37:22.0012102Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x0000025BD8B51090>, <function register_cache_arguments..add_cache_arguments at 0x0000025BD8B511B0>]
2023-09-15T18:37:22.0026227Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
2023-09-15T18:37:22.0026678Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
2023-09-15T18:37:22.3327775Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x0000025BD63AFF40>, <function CLIQuery.handle_query_parameter at 0x0000025BD63F92D0>, <function register_ids_argument..parse_ids_arguments at 0x0000025BD8B51120>, <function DevCommandsLoader.post_parse_args at 0x0000025BD8B72B90>]
2023-09-15T18:37:22.3348603Z DEBUG: cli.azext_devops.dev.common.services: PAT is present which can be used against this instance
2023-09-15T18:37:22.3375557Z DEBUG: cli.azure.cli.core: Current cloud config:
2023-09-15T18:37:22.3375819Z AzureCloud
2023-09-15T18:37:22.3376906Z DEBUG: cli.azext_devops.dev.common.services: az login is not present
2023-09-15T18:37:22.3382543Z DEBUG: cli.azext_devops.dev.common.services: There are no active accounts.
2023-09-15T18:37:22.3382797Z Traceback (most recent call last):
2023-09-15T18:37:22.3383541Z   File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/_profile.py", line 537, in get_current_account_user
2023-09-15T18:37:22.3384147Z   File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/_profile.py", line 546, in get_subscription
2023-09-15T18:37:22.3384535Z knack.util.CLIError: Please run 'az login' to setup account.
2023-09-15T18:37:22.3384768Z
2023-09-15T18:37:22.3385009Z During handling of the above exception, another exception occurred:
2023-09-15T18:37:22.3385200Z
2023-09-15T18:37:22.3385466Z Traceback (most recent call last):
2023-09-15T18:37:22.3385884Z   File "C:\Program Files\Common Files\AzureCliExtensionDirectory\azure-devops\azext_devops\dev\common\services.py", line 61, in _get_credentials
2023-09-15T18:37:22.3386261Z     token_from_az_login = get_token_from_az_logins(organization, pat_token_present)
2023-09-15T18:37:22.3386725Z   File "C:\Program Files\Common Files\AzureCliExtensionDirectory\azure-devops\azext_devops\dev\common\services.py", line 118, in get_token_from_az_logins
2023-09-15T18:37:22.3387095Z     dummy_user = profile.get_current_account_user()     # noqa: F841
2023-09-15T18:37:22.3387524Z   File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/_profile.py", line 539, in get_current_account_user
2023-09-15T18:37:22.3387878Z knack.util.CLIError: There are no active accounts.
2023-09-15T18:37:22.3388195Z INFO: cli.azext_devops.dev.common.services: received PAT from environment variable
2023-09-15T18:37:22.3388587Z INFO: cli.azext_devops.dev.common.services: Creating connection with personal access token.
Expected behavior
Account info is only loaded when needed. Lack of account data doesn't result in a swallowed error.
Environment Summary
azure-cli 2.52.0
core 2.52.0
telemetry 1.1.0
Extensions:
azure-devops 0.26.0
Dependencies:
msal 1.24.0b1
azure-mgmt-resource 23.1.0b2
Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Program Files\Common Files\AzureCliExtensionDirectory'
Python (Windows) 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)]
Additional context
https://github.com/actions/runner-images/pull/8294

Thank you for opening this issue, we will look into it.

https://github.com/actions/runner-images/pull/8294#issuecomment-1729194245
My knowledge of Python is not at the level you want me hacking away at that. From what I'm reading into the code, the AzureDevOps CLI was built as an extension to az-cli, but for a long time could have been a stand-alone thing. az-cli does a number of sanity checks on first launch to iterate through accounts and such and az-devops catches that and substitutes its own auth mechanism if the environment variable is set.
I'm not sure az-devops can currently convince az-cli not to do its discovery and thus the solution is a bit hacky. I don't have the telemetry on how many times az-devops runs on the hosted runner, but if this is another 10 seconds at 100.000+ invocations per day, it's a lot of compute saved, trees saved and water preserved.
Ideally ac-cli would have check with the extension whether account iteration is needed before proceeding.

https://github.com/Azure/azure-devops-cli-extension/blob/bd34a6fd0658a15dadf6c09c7f6217ca5ffa662b/azure-devops/azext_devops/dev/common/services.py#L60
Is where the presence of the environment variable is detected, but the code proceeds to try az login anyway there is no code path that forces the use of the PAT token here.

According to the docs here, this seems like the behavior is intended:

To gain access in a non-interactive manner for automation scenarios, you can use environment variables or fetch a PAT from a file.
If az login or az devops login haven't been used, all az devops commands try to sign in using a PAT stored in the AZURE_DEVOPS_EXT_PAT environment variable.

https://learn.microsoft.com/en-us/azure/devops/cli/log-in-via-pat?view=azure-devops&tabs=windows#use-the-azure_devops_ext_pat-environment-variable
If so, it's a very unfortunate choice for automation workflows.

It would be nice to have a --use-token-from-environment like switch to just immediately jump to the codepath that uses the token supplied. Or something like --auth env or --auth auto.


scss-lint failed with error code: 70

scss-lint failed with error code: 70
and the following message:Error: Command failed: C:\WINDOWS\system32\cmd.exe
/s /c "scss-lint -c .scss-lint.yml
app/sass/views/contact-us/_contact-us.scss"

was working, now isn't. only change was to change branch in git then come back.
reinstalled everything (npm cache clean, npm install)

$ node -v
v4.2.1
$ ruby -v
ruby 2.2.3p173 (2015-08-18 revision 51636) [x64-mingw32]
$ gem -v
2.5.1

My Bad
I had my JS comment hat on!!!
max_depth: // needs to be <= 4 for new builds - this is for legacy code
the path enlightenment started by running scsslint from the command line. this gave me a more specific error:
Linter::NestingDepth raised unexpected error linting file app/sass/views/contact-us/_contact-us.scss: 'comparison of Fixnum with String failed'
looking at the NestingDepth rule I noticed the // replaced with proper comment #...
wasted afternoon!!! blush


Suggestion - less boxy sidebar

The current sidebar seems a bit boxy and over-styled. Thought I'd suggest maybe simplifying.
Current

Suggested Revision

Closing this. The design has changed in the v5 (https://stackedit.io/app).