feat(#193): Refactor XmlProgram Class

Refactor XmlProgram class by adding XmlNode class.
Closes: #193.

History:

feat(#193): simplify methods in XmlProgram
feat(#193): fix all integration tests
feat(#193): remove redundant code
feat(#193): add one more puzzle for unit tests

PR-Codex overview
Detailed summary

The PR focuses on making changes to the XmlProgram class and related classes in the org.eolang.jeo.representation.xmir package.
Changes include refactoring methods in XmlProgram, introducing a new XmlNode utility class, and updating method names and signatures.
The topClass method in XmlProgram is renamed to top and now returns an instance of XmlClass.
The withTopClass method in XmlProgram is renamed to with and now takes an instance of XmlClass as a parameter.
The findClass and isClass methods in XmlProgram are removed and replaced by the child method in the new XmlNode class.
The XmlNode class provides utility methods for working with XML nodes, such as finding child nodes, cleaning nodes, and appending nodes.
Unit tests for XmlProgram and XmlNode are mentioned as a future improvement.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@rultor merge

@volodya-lombrozo OK, I'll try to merge now. You can check the progress of the merge here

@rultor merge

@volodya-lombrozo Done! FYI, the full log is here (took me 3min)

@rultor release, tag is 0.1.3, title is 0.1.3.

@rultor release, tag is 0.1.3, title is 0.1.3.

@volodya-lombrozo OK, I will release it now. Please check the progress here

@rultor release, tag is 0.1.3, title is 0.1.3.

@volodya-lombrozo Done! FYI, the full log is here (took me 7min)


Add rectangles back

          You can now also get a new rectangle from the toolbar!

Originally posted by @TodePond in https://github.com/TodePond/CellPond/issues/106#issuecomment-1081907489

Hey @TodePond, can you add the rectangles back to the toolbar? It makes it easier to work with.
Also suggestion, you could make it so that you can click on a rectangle and the toolbar rectangle will save that color saturation level.


Issues with introspection query when no Query type is in schema

Consider a schema that contains only mutations:
type Mutation {
  doSomething: Boolean
}

In such cases, it appears that an empty root Query object is being added to the results of the introspection queries:
{
  "data": {
    "__schema": {
      "queryType": { "name": "Query" },
      "mutationType": { "name": "Mutation" },
      "subscriptionType": null,
      "types": [
        {
          "kind": "OBJECT",
          "name": "Query",
          "description": "",
          "fields": null,
          "inputFields": [],
          "interfaces": [],
          "enumValues": null,
          "possibleTypes": []
        },
...

This is good, because (as I learned), the GraphQL spec requires a Query type but you can't define an empty type Query or type Query {} because all object types must have at least one field.  Short of adding a fake field that would clutter the schema, having the introspection query tack on a Query object is a good idea!
HOWEVER, I'm getting an error in Postman:

This seems to be caused by "fields": null.  As a workaround, I modified our code to patch that to be "fields": [] and the error goes away.  (see https://github.com/hypermodeinc/modus/pull/558)
I dug through the GraphQL Go Tools sources, but I really can't seem to find where the Query type is being added.  Any ideas?  Happy to send a PR if you can point me in the right direction.  Thanks.

Hi @mattjohnsonpint
Basically, in our case, we anyway will add a Query type with introspection service fields
But right now our introspection generator skips such fields
They could be added and the query would never be empty


trimslider takes too much time to generate thumbnails

when i open a video it takes 10-15 secs to generate all thumbnails of a video
i was using this function before with videothumbnail package and it took 3-5secs mostly to get all thumbnail even in high quality
Stream<List> generateThumbnails(String video) async* {
final String _videoPath = video;
int videoDuration=await getVideoLength(File(video));
double _eachPart = videoDuration / 10;
print(_eachPart);

List<Uint8List> _byteList = [];

for (int i = 1; i <= 10; i++) {
  print((_eachPart * i).toInt());
  Uint8List _bytes;
  _bytes = await VideoThumbnail.thumbnailData(
    video: _videoPath,
    imageFormat: ImageFormat.JPEG,
    timeMs: (_eachPart * i).toInt(),
    quality: 80,
  );
  _byteList.add(_bytes);

  yield _byteList;
}

}

At the beginning I had used a stream for the generation of the thumbnails but I had a problem that when I pressed the trim slider the Stream would update again

At the beginning I had used a stream for the generation of the thumbnails but I had a problem that when I pressed the trim slider the Stream would update again

Thanks for your Issue I improved the TrimSlider on release 1.0.2 :)

Thanks for your Issue I improved the TrimSlider on release 1.0.2 :)


Use MTLCompiler directly (v2)

Wow this actually looks a lot faster
master:
IGNORE_BEAM_CACHE=1 DEBUG=2 BEAM=2 python3 examples/efficientnet.py  201.02s user 16.31s system 144% cpu 2:30.44 total
this:
IGNORE_BEAM_CACHE=1 DEBUG=2 BEAM=2 python3 examples/efficientnet.py  214.95s user 18.58s system 364% cpu 1:04.03 total

You still have a typo. Again, this back and forth is very frustrating.
I copy and pasted the code into chatgpt and it found it. https://chatgpt.com/share/67500421-22e0-8000-a7b6-d91c1dca7b44
Please stop wasting my time with something you haven't sanity checked in an LLM.

Okay, I will merge when CI passes and give you the bounty. I want this for the search speed. Can pay via PayPal or USDC on ETH.
However, if I see any more PRs that haven't been carefully read before they are submitted, they will immediately not be bounty eligible.


corrupted rendering in scorehero trace on updated Pixel3

After our Pixel3 device updated from:
Driver Build: 4a00b69, I4e7e888065\nDate: 04/09/19\nCompiler Version: EV<IP_ADDRESS>\nDriver Branch: mybranche95a5ea3-cf05-f19a-a0e7-5cb90179c3d8

to:
Driver Build: ef9bae8, Ia11ce2d146,<PHONE_NUMBER>\nDate: 09/02/20\nCompiler Version: EV<IP_ADDRESS>\nDriver Branch: gfx-adreno.lnx.2.0

the scorehero trace for the device started failing with corrupted rendering.  Inside LunarG you can see the reference and rendered images here:  http://tcubuser/cgi-bin/server.py?request=results-compare&reference=f85409bc5ab53837989615e1379220e9115b0759de9ee814eccdea54181f07aa&generated=0d34229c5729f1389cd09656c2a7fc586bbe6a955e72d87dd0fd6c285b82ab01
The failure occurred both on a test branch and on dev.  It is certainly related to the driver update, but it's not clear whether there's a bug in the driver, or an existing issue in either the capture layer or gfxrecon-replay that the new driver caused to manifest.  We need to investigate far enough to determine whether it's a trace issue, replay issue, or driver issue.
A failed run against dev is here: http://erusea:8080/view/Manual/job/manual-gfxreconstruct/396/console
This was against GFXReconstruct commit f705d93.   The commands used were:
$ adb -s 89RX0E68Y shell mkdir -p /sdcard/Android/data/com.lunarg.gfxreconstruct.replay/files/vulkantest-results
$ adb -s 89RX0E68Y push /media/nas/smb_traces/vulkan/GFXR/android/adreno/scorehero/ScoreHero.gfxr /sdcard/Android/data/com.lunarg.gfxreconstruct.replay/files/vulkantest-results/ScoreHero.gfxr
$ adb -s 89RX0E68Y shell am start -a android.intent.action.MAIN -c android-intent.category.LAUNCH -n com.lunarg.gfxreconstruct.replay/android.app.NativeActivity --es args "\"--opcd --sfa --screenshots 1,54,99,165,214,1318,1493,1800,1860,2940 --screenshot-dir /sdcard/Android/data/com.lunarg.gfxreconstruct.replay/files/vulkantest-results /sdcard/Android/data/com.lunarg.gfxreconstruct.replay/files/vulkantest-results/ScoreHero.gfxr\""

This may be related to a Vulkan-ValidationLayers issue that also appeared with the new driver: https://github.com/KhronosGroup/Vulkan-ValidationLayers/issues/3065

I don't think I can ask Pau to have a Google person debug our
GFXReconstruct of validation layer issues (if we think the issue is in that
code). But I can indicate that the driver update is causing these
catastrophic errors and we are suspicious of a driver bug (and ask if there
is a contact at Google who can look at the driver). And I can also ask if
there is a way to remove the updated driver build and go back to a previous
driver build.
Karen Ghavam
CEO and Engineering Director
LunarG, Inc. - 3D Graphics Software Solutions
@.***
970-988-9043
On Fri, Jul 30, 2021 at 10:22 PM Bob Ellison @.***>
wrote:

After our Pixel3 device updated from:
Driver Build: 4a00b69, I4e7e888065\nDate: 04/09/19\nCompiler Version: EV<IP_ADDRESS>\nDriver Branch: mybranche95a5ea3-cf05-f19a-a0e7-5cb90179c3d8
to:
Driver Build: ef9bae8, Ia11ce2d146,<PHONE_NUMBER>\nDate: 09/02/20\nCompiler Version: EV<IP_ADDRESS>\nDriver Branch: gfx-adreno.lnx.2.0
the scorehero trace for the device started failing with corrupted
rendering. Inside LunarG you can see the reference and rendered images
here:
http://tcubuser/cgi-bin/papillo-ci-servers/triage/cgi-bin/server.py?request=results-compare&reference=f85409bc5ab53837989615e1379220e9115b0759de9ee814eccdea54181f07aa&generated=f85409bc5ab53837989615e1379220e9115b0759de9ee814eccdea54181f07aa
The failure occurred both on a test branch and on dev. It is certainly
related to the driver update, but it's not clear whether there's a bug in
the driver, or an existing issue in either the capture layer or
gfxrecon-replay that the new driver caused to manifest. We need to
investigate far enough to determine whether it's a trace issue, replay
issue, or driver issue.
A failed run against dev is here:
http://erusea:8080/view/Manual/job/manual-gfxreconstruct/396/console
This was against GFXReconstruct commit f705d93. The commands used were:
$ adb -s 89RX0E68Y shell mkdir -p /sdcard/Android/data/com.lunarg.gfxreconstruct.replay/files/vulkantest-results
$ adb -s 89RX0E68Y push /media/nas/smb_traces/vulkan/GFXR/android/adreno/scorehero/ScoreHero.gfxr /sdcard/Android/data/com.lunarg.gfxreconstruct.replay/files/vulkantest-results/ScoreHero.gfxr
$ adb -s 89RX0E68Y shell am start -a android.intent.action.MAIN -c android-intent.category.LAUNCH -n com.lunarg.gfxreconstruct.replay/android.app.NativeActivity --es args ""--opcd --sfa --screenshots 1,54,99,165,214,1318,1493,1800,1860,2940 --screenshot-dir /sdcard/Android/data/com.lunarg.gfxreconstruct.replay/files/vulkantest-results /sdcard/Android/data/com.lunarg.gfxreconstruct.replay/files/vulkantest-results/ScoreHero.gfxr""
This may be related to a Vulkan-ValidationLayers issue that also
appeared with the new driver: KhronosGroup/Vulkan-ValidationLayers#3065
https://github.com/KhronosGroup/Vulkan-ValidationLayers/issues/3065
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/LunarG/gfxreconstruct/issues/560, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEDQMKHY2AWCGU5PH7QULITT2N26TANCNFSM5BJTUPSQ
.

I was hoping that our own people would be investigating the issues in parallel.
I believe the VVL crash has to be a VVL error (as VVL should never cause a crash that wasn't there before, yes?).
But the rendering corruption on trace replays strongly suggests a driver bug; it's possible that the driver deliberately upgraded in a way that wasn't backward-compatible, but that's unlikely IMHO, as doing so could break numerous apps and games, which is not something I think Google would risk (at least not intentionally).
It still could be either a capture or replay bug that was just hidden until it manifested on the new driver, but I think that's less likely than a driver bug.  But I'd still like GFXR people to look at the trace to be sure.
Other potential exercises:

if the same version of ScoreHero that created the trace is still on the device, try to execute it and see whether it fails.  (I'll try this next week.)
Install a debuggable GFXR on the device with validation layers, and attempt to run the trace through validation.  It's possible this is an app bug that only manifests on the new driver, and using validation could give us a clue as to what it's doing wrong.

Yes. I wasn’t implying that we won’t investigate the errors ourselves. I
was just saying that what I can ask Pau for is someone to look at
suspicious issues we think are driver bugs or help removing a driver update.
On Sat, Jul 31, 2021 at 9:22 PM Bob Ellison @.***>
wrote:

I was hoping that our own people would be investigating the issues in
parallel.
I believe the VVL crash has to be a VVL error (as VVL should never cause a
crash that wasn't there before, yes?).
But the rendering corruption on trace replays strongly suggests a driver
bug; it's possible that the driver deliberately upgraded in a way that
wasn't backward-compatible, but that's unlikely IMHO, as doing so could
break numerous apps and games, which is not something I think Google would
risk (at least not intentionally).
It still could be either a capture or replay bug that was just hidden
until it manifested on the new driver, but I think that's less likely than
a driver bug. But I'd still like GFXR people to look at the trace to be
sure.
Other potential exercises:

if the same version of ScoreHero that created the trace is still
on the device, try to execute it and see whether it fails. (I'll try this
next week.)
Install a debuggable GFXR on the device with validation layers,
and attempt to run the trace through validation. It's possible this is an
app bug that only manifests on the new driver, and using validation could
give us a clue as to what it's doing wrong.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/LunarG/gfxreconstruct/issues/560#issuecomment-890441483,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEDQMKG5WJRSH6HJOD3I7ELT2S4VRANCNFSM5BJTUPSQ
.

--
Karen Ghavam
CEO and Engineering Director
LunarG, Inc. - 3D Graphics Software Solutions
@.***
970-988-9043


[5.4][Runtime] Fix incorrect memory ordering in ConcurrentReadableArray/HashMap

Cherry-pick https://github.com/apple/swift/pull/35348 and https://github.com/apple/swift/pull/35383 to 5.4.
When reallocating storage, the storing the pointer to the new storage had insufficiently strong ordering. This could cause writers to check the reader count before storing the new storage pointer. If a reader then came in between that load and store, it would end up using the old storage pointer, while the writer could end up freeing it.
Also adjust the Concurrent.cpp tests to test with a variety of reader and writer counts. Counterintuitively, when freeing garbage is gated on there being zero readers, having a single reader will shake out problems that having lots of readers will not. We were testing with lots of readers in order to stress the code as much as possible, but this resulted in it being extremely rare for writers to ever see zero active readers.
rdar://69798617

@swift-ci please test

@swift-ci please test

@swift-ci please test

@swift-ci please test

Build failed
Swift Test OS X Platform
Git Sha - 118a6b0b19e7948c4b9c246900211e7f22208ae4

Build failed
Swift Test OS X Platform
Git Sha - 118a6b0b19e7948c4b9c246900211e7f22208ae4

@swift-ci please test os x platform

@swift-ci please test os x platform


Fix UsingMatchers.md

Somebody copying this code would get a failing test, and the purpose is to show toBeCloseTo matcher, which wouldn't ever get called after your fix.

why copying the code? 🤔
const value = 0.1 + 0.2;
expect(value).not.toBe(0.3);    // It isn't! Because rounding error

This is confusing because the comment is meant for expect(value).toBe(0.3)

How about this?
test('adding floating point numbers', () => {
  const value = 0.1 + 0.2;
  // expect(value).toBe(0.3);        This won't work because of rounding error
  expect(value).toBeCloseTo(0.3); // This works.
});

LGTM 👍


fix: correct precompile interface and json abi

Description of proposed changes
fixes precompile interface and abi json

This will require a runtime upgrade, @atodorov do I bump the runtime version in this PR? Also how do I chain the mainnet json files?


Initial Scope

First, reading through https://github.com/pkgjs/create/issues/9 "Project Scope" is an important place to start for getting context on this package and it's intent.
I've been thinking about this tool so much that I got lost in it, essentially. The above linked project scope helped me better see the intent for this package.
So to begin with, it's my personal opinion that this package should do a few straightforward things for the initial scope:

Create a base package.json file

Prompt CLI users for input for a subset of fields
Expose a JS API to write a package.json to disk

House defaults for what the "base package.json" should be.

Specifically, I think that these defaults should be what is currently the defaults for npm init

So more or less, feature parity with the current state of npm init is what I believe initial scope should be.
I'd love to see that include "additive editing", i.e. running npm init -y in a project that already has a package.json will not overwrite your the file, but will fill out any defaults yours is missing (such as repo links if a git repo is present). This is my opinion, and I think this issue is a great place for discussion for/against what an MVP of this package looks like.
In the future I'd like to see features such as:

Validation -- is the package.json (and the input for CLI prompts) valid according to defaults set by this package, or settings passed to the package from userland.
Default configuration. The bread and butter of this package. Allowing users to define what defaults, prompts, and valid data looks like for their package.json needs.

I think I am in 100% agreement on the above. The goal is that the 1.x release would be just a bit more than npm init -y but not yet covering more than some sensible defaults.

Validation

This is tied in with the collab space work. I think we would want a separate pacakge to validate the package.json, but that could then be used by this one.

Default configuration

Ideally folks can layer on top of our opinions with their own defaults. But yes I think the initial goal from the PMWG was to have a place to setup default configurations which follow "best practices".


[fix][#3322][gws][todo] there are no todos on "na"

Coverage decreased (-21.3%) to 50.488% when pulling 6c09670051b784dade42230266d1d13e63e37952 on sunny4381:fixes/ss-3322 into 4d974275419dbe608d587581f622024900e08e6c on shirasagi:master.


import locale 2017-05-15

Coverage increased (+0.1%) to 1.137% when pulling 3761240eb4217f0f9ce8d3a68b3cafa3e1b47be2 on u9520107:import-locale-20170515 into d2ebd26ad47f0477d1bfb38daaec248b627a2184 on ringcentral:master.

Coverage decreased (-0.05%) to 0.974% when pulling 5250e689412fa513bf5ab1d8d77fefd0f7ca4a28 on u9520107:import-locale-20170515 into d2ebd26ad47f0477d1bfb38daaec248b627a2184 on ringcentral:master.


naics_classification is missing from data_dictionary()

unique(r2dii.dataraw::data_dictionary()$dataset)
#> [1] "ald"                 "data_dictionary"     "isic_classification"
#> [4] "iso_codes"           "loanbook"            "nace_classification"
#> [7] "overwrite"           "region_isos"         "scenario"

Created on 2020-03-05 by the reprex package (v0.3.0)

Closed by 3c1ff8a0328bfb5e2ec9da80074a79364b069d36


UNRECOVERABLE CAPABILITIES API ERROR: FORBIDDEN

IMPORTANT: Before you create an issue, please take a look at our Issue Reporting Guide.
Briefly summarize your issue:

##################################################################
UNRECOVERABLE AUTHORIZATION ERROR: INVALID_REQUEST
Entering limited interaction mode.
##################################################################
There is some difficult to understand procedure in the RPI instructions, since many people is reporting the same problem and, after following instructions in other threads we keep stucked in the same error.
It seems Client ID, Amazon ID, ProductID, and all other IDs in AVS Products and Security profiles are confusing us all.
We understood the fields in config.txt are
DEVICE_SERIAL_NUMBER="whatever # you like while it´s unique for the device"
CLIENT_ID= Apps & Services ->Security Profile Management ->General->Client ID
PRODUCT_ID= Alexa Voice Service ->My Products->ProductID
But...  those values are not working.
We deleted ~/db/cblAuthDelegate.db and reauthorized the device a couple of times and it´s not working.
What is the expected behavior?
A proper install of AVS-Device-SDK in a clean installed raspberry pi
What behavior are you observing?

2018-05-28 16:17:36.940 [  2] 5 HttpPost:doPostSucceeded:code=400
2018-05-28 16:17:36.940 [  2] 5 CBLAuthDelegate:receiveTokenResponse:code=400
2018-05-28 16:17:36.940 [  2] 5 CBLAuthDelegate:mapHTTPStatusToError:code=400,error=INVALID_REQUEST
2018-05-28 16:17:36.941 [  2] 5 CBLAuthDelegate:errorInLwaResponseBody:error=invalid_request,errorCode=INVALID_REQUEST
2018-05-28 16:17:36.941 [  2] 5 CBLAuthDelegate:setAuthError:authError=INVALID_REQUEST
2018-05-28 16:17:36.941 [  2] 0 CBLAuthDelegate:receiveTokenResponseFailed:result=INVALID_REQUEST
2018-05-28 16:17:36.941 [  2] 5 CBLAuthDelegate:setAuthState:newAuthState=UNRECOVERABLE_ERROR
2018-05-28 16:17:36.941 [  2] 9 CBLAuthDelegate:callingOnAuthStateChange:state=UNRECOVERABLE_ERROR,error=INVALID_REQUEST
##################################################################
UNRECOVERABLE AUTHORIZATION ERROR: INVALID_REQUEST
Entering limited interaction mode.
##################################################################
2018-05-28 16:17:36.942 [  9] E CapabilitiesDelegate:getAuthTokenFailed:reason=Unrecoverable error by auth delegate
2018-05-28 16:17:36.942 [  9] E CapabilitiesDelegate:publishCapabilitiesFailed:reason=getAuthTokenFailed
....

2018-05-28 16:17:36.942 [  9] 5 CapabilitiesDelegate:setCapabilitiesState:newCapabilitiesState=FATAL_ERROR
2018-05-28 16:17:36.943 [  9] 9 CapabilitiesDelegate:callingOnCapabilitiesStateChange:state=FATAL_ERROR,error=FORBIDDEN
2018-05-28 16:17:36.944 [  9] E

CapabilitiesDelegate:capabilitiesPublishFailed:reason=unableToPublishCapabilities
###############################################################
UNRECOVERABLE CAPABILITIES API ERROR: FORBIDDEN
Entering limited interaction mode.
###############################################################
2018-05-28 16:17:36.942 [  2] 5 CBLAuthDelegate:handleStopping

Provide the steps to reproduce the issue, if applicable:

Tell us about your environment:
Distributor ID:	Raspbian
Description:	Raspbian GNU/Linux 9.4 (stretch)
Release:	9.4
Codename:	stretch
Linux version 4.14.34-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1110 SMP Mon Apr 16 15:18:51 BST 2018
What version of the AVS Device SDK are you using?
SDK Version 1.7.1
Tell us what hardware you're using:
Raspberry Pi
Tell us about your OS (Type & version):
Raspbian Stretch

Hi @fedeblock , to properly authorize your device using CBL, for the CLIENT_ID, you have to use the client ID found in  "Alexa Dashboard" > "My products" > "manage" > "Security Profiles" > "Other devices and platforms".
Please refer to this document for more information: https://github.com/alexa/avs-device-sdk/wiki/Code-Based-Linking----Configuration-Update-Guide

Found it!
It´s not actually from Alexa Dashboard but from Developer Console -> Alexa Voice Service -> My Products -> Manage ->Details and Management / Security Profile -> Other Devices and Platforms
or
https://developer.amazon.com/avs/home.html#/avs/products/edit/RPIMindgeist/securityProfile/

Must test before closing the thread, but i'm pretty sure it must work.

Thanks @fedeblock , let me know if it worked

Solved!


Order Buyer Info

When I call the /orders/v0/orders/{orderId}/buyerInfo SP API call,the structure of the returned value obtained is as follows：

{"payload":{"AmazonOrderId":"<EMAIL_ADDRESS>
Why have not buyer's name and phone message?

Hi @mgecmez,
this is probably because you don't have access to PII (Personally Identifiable Information) via the SP API.

Hi @amz-tools ,
If that's what you're talking about I have it:

I think that in order to get the 'buyerInfo' and 'shippingAddress' information in the order query, it is necessary to get the restrictedDataToken first.
We were trying to obtain buyerinfo, shippingAddress from the getOrders endpoint (/orders/v0/orders) by requesting a restricted data token using the below requests

payload= {targetApplication: 'amzn1.sp.solution.xxxx'.'restrictedResources': [{'method':'GET','path':'/orders/v0/orders','dataElements':['shippingAddress','buyerInfo']}]}

We included the access token and necessary authorization headers when making the request but still, we always get 'Application does not have access to one or more requested data elements: [buyerInfo, shippingAddress]'.

I am not sure if that really means that you have access to PII. As far as I know you can successfully retrieve an RDT even if you can't use it due to PII restrictions. I think you would have to clarify that directly with Amazon. I don't think its an issue with the client.

I guess I solved the problem here. In the developer account, permissions must be obtained for the use of PII. We applied for permits. It hasn't been approved by Amazon yet, but I'll try it after getting approved and I'll share the result here.

Hello,
Is the library send any request to the url '/tokens/2021-03-01/restrictedDataToken'
https://github.com/amzn/selling-partner-api-docs/blob/main/references/tokens-api/tokens_2021-03-01.md#createrestricteddatatoken

HI @cpeker-extenship,
yes, just call it as you would call any other operation. See the following example:
let res = await this.sellingPartner.callAPI({
  operation:'tokens.createRestrictedDataToken',
  body:{
    restrictedResources:[{
      path:'/orders/v0/orders',
      method:'GET',
      dataElements:['buyerInfo', 'shippingAddress']
    }]
  }
});

Hi @amz-tools
Thanks for the suggestion.
I've reached required fields successfully via calling RDT like you mention above.


Renaming columns and table

Is it possible to rename the columns and the table generated by acts-as-taggable-on?

dup of #113


Accepted accepts null and empty strings.

Using 5.0.5 and this schema:
const schema = { 'foo', 'accepted' }

Validation passes for:
const test = { foo: '' }

and
const test = { foo: null }

Documentation says:

Ensures that the field under validation is accepted. Empty strings, false, null, 0 and undefined values will be considered as not accepted.

https://indicative.adonisjs.com/docs/accepted
False and 0 are rejected as expected.

Is const schema = { 'foo', 'accepted' } this the correct schema syntax?


XBee 900HP

Hi Jeff,
I'm having issues getting the library to work with an XBee 900HP. When I plug in a Series 1 everything works great, but my application requires the 900HP.
The 900HP device is discovered correctly, but as soon as a packet of data comes in I get an exception. I have the endpoint device configured for cyclic sampling so my packets are coming in as RxIndicatorSampleExtFrame.
I noticed that in the source for RxIndicatorSampleExtFrame.cs the valuePath for the SerializeWhen attribute on the AnalogSamples is "AnalogSampleChannels" when the name of the field is AnalogChannels (AnalogSampleChannels is the field type). I changed "AnalogSampleChannels" to "AnalogChannels", but I still get an exception in GetAnalogSamples:
"Value cannot be null.Parameter name: first"
I've been trying to track down what else might be wrong by working my way through the Binary Serializer, but haven't been able to find much.
How much have you tested this against the 900HP series? Would you expect to see these kinds of issues?

I would say I've tested it "somewhat" :)
I'm just getting on a plane and I'll be away from hardware for a few days but I'll try to look at it as soon as possible. It does sound like there's a bug although the exception you got after the change doesn't sound familiar. Kind of sounds like a linq exception.
If you figure out anything else in the meantime let me know. I also wrote the serializer so it's possible it's a problem there (although that's much better tested). Make sure you're updated to the 4.6.4 serializer.
Thanks,
Jeff
_____________________________
From: ajgriesemer<EMAIL_ADDRESS>Sent: Tuesday, March 29, 2016 12:30 PM
Subject: [jefffhaynes/XBee] XBee 900HP (#6)
To: jefffhaynes/XBee<EMAIL_ADDRESS>Hi Jeff,
I'm having issues getting the library to work with an XBee 900HP. When I plug in a Series 1 everything works great, but my application requires the 900HP.
The 900HP device is discovered correctly, but as soon as a packet of data comes in I get an exception. I have the endpoint device configured for cyclic sampling so my packets are coming in as RxIndicatorSampleExtFrame.
I noticed that in the source for RxIndicatorSampleExtFrame.cs the valuePath for the SerializeWhen attribute on the AnalogSamples is "AnalogSampleChannels" when the name of the field is AnalogChannels (AnalogSampleChannels is the field type). I changed "AnalogSampleChannels" to "AnalogChannels", but I still get an exception in GetAnalogSamples:
"Value cannot be null.Parameter name: first"
I've been trying to track down what else might be wrong by working my way through the Binary Serializer, but haven't been able to find much.
How much have you tested this against the 900HP series? Would you expect to see these kinds of issues?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

Thanks for the quick response.

Let me know if you're ok closing this. Thanks.


docs(logo): add logo files

From #394 I have tried making a logo. AI and SVG files are also included in the logo folder. It contains 2 artboards : with a text and square sized without a text.

Hi @5argon,
Thanks so much for this logo submission; it was an excellent start to our competition and was very well liked! Despite setting a very high bar it didn't make the final cut - excellent effort nonetheless!
Thanks for being awesome,
Benjie.


gitignore airflow home

@aaronsteers pointed out that we should probably drop a gitignore when we initialize the AIRFLOW_HOME for users.  If they really want to check it into their repo they can still explicitly remove it or update it accordingly. Since it contains potentially sensitive data - its however not something that should be checked in unintentionally.

My memory is a bit rusty here but I think specifically I remember wanting to make sure we exclude airflow.db as the SQLite backend.
We probably do want ariflow.cfg and webserver_config.py to be committed though, so a comment at the top of each file reminding folks not to put passwords there may be warranted.
Were there any other things to include? (We can always run airflow and then confirm. 😄 )

There's also stuff like logs that can end up there (depending on your config). So maybe the move is to drop a .gitignore that ignores all by default but makes exceptions for the configs?

@pandemicsyn - re:

So maybe the move is to drop a .gitignore that ignores all by default but makes exceptions for the configs?

Yes, I think having a .gitignore installed with the scaffold probably makes sense as a general best practice for plugins that need special ignores for security and/or repo cleanliness.

Then we can drop a log line that says something like: "heads up, we've deployed some gitignore rules governing AIRFLOW_HOME at $PATH."

I don't have any problem with this, but I also assume it'll be obvious to users when they review their git diff - either they'd see a new file at something like $MELTANO_PROJECT_ROOT/orchestrators/airflow/.gitignore, or else they'd see appended/inserted lines in $MELTANO_PROJECT_ROOT/.gitignore. Either way, it should be easy for them to see the updates and I think we can get away with a code comment in the respective section of .gitignore "This section defines standard ingores for the Meltano '{plugin-name}' extension".


Add properties of shapes

Proposal
Instead of having different section for properties of each shape in graphs and shapes, we can make a option called " Properties of shapes" in which I want to add properties of square , rectangle, parallelogram, triangles and will also add the already existed properties of circles and parallel line under this section.
I will add page for each shape.
The structure will be like:
Properties of shapes(by clicking on this new window have following options)
--->Parallel Lines---->new window
---->Parallelogram---->new window
----->square---->new window
''''
''''
Please assign this issue to me, I want to work on this.

Instead of adding new window/ html page
implement in the index.html, in few days, I will create a new issue for the same to shift all the Theory to a new html


Draftail remaining release blockers

First of all, I’m very sorry to open this issue… I’m totally OK with releasing Draftail with some minor bugs since it’ll still be better than Hallo.js. The purpose of this issue is to focus only on critical, misleading and easily noticeable issues. These important issues must be fixed before 2.0, otherwise Draftail will get a ton of negative feedback and end users will remember Wagtail 2.0 as the release that changed their habits in a bad way (it’s even more important that Draftail is almost the only really noticeable change in 2.0 for end users).
List of Draftail release blockers
Here is the current list of Draftail release blockers still present in Wagtail 2.0rc1:

[ ] Deleting an image can delete the whole field
[x] #4295  Draftail crash when rich text field is named "description"
[ ] The “Alt text” field should either be a modifiable input, or not an input at all. Right now it’s misleading everyone.
[ ] For some reason the “Alt text” input became huge and lost its border radius between 2.0b1 and 2.0rc1

Another very noticeable deprecated functionality is the image that no longer float in the text. While I’m strongly in favor of the Draftail behaviour, it is to be expected that a vast part of users will want to keep the old behaviour (I already got feedback on this).
Deleting an image can delete the whole field
As listed below, I faced a case where the whole field disappeared when deleting an image. For some reason, the image was previously saved as outside of a paragraph, so the body field contains this in the database:
<embed alt="Displaced_Persons_and_Refugees_in_Germany_BU6643.jpg" embedtype="image" format="right" id="503"/>

Note that the issue only occurs when you didn’t modify anything in that field since the page loaded. Adding content after the image, saving and trying to delete the image still does the same issue, even if you add an entire encyclopedia after the image.
Let’s delete an image!

Here is the corresponding JS error

Another deprecated feature I was asked about is the ability to move images within the same field. It was possible with Hallo, though I’m pretty sure it wasn’t supposed to work given the lack of interactive feedback when we do it.

To reproduce 'Deleting an image can delete the whole field':

Enable hallo.js via the setting:
  WAGTAILADMIN_RICH_TEXT_EDITORS = {
      'default': {
          'WIDGET': 'wagtail.admin.rich_text.editors.hallo.HalloRichTextArea'
      }
  }

Edit a rich text field; delete its contents and continue pressing backspace until the 'P' toolbar button becomes un-highlighted

Insert an image; after the modal closes, do not re-focus the rich text field. Hit 'publish'.

Enable draftail by removing the setting above, and re-edit the page

Click on the image and hit 'delete'

I'd expect the html-to-contentstate converter to produce the same output for  and

 - namely, an unstyled block consisting of a single space character with an entity definition on it. Since it apparently isn't doing so, I think the converter code is at least partly at fault - I'll investigate.

@thibaudcolas Thanks for the detailed answer!
Nice to see we have a workaround for moving images, way better than nothing :)
About the alt field, I personally think it should be replaced by just plain text on the black background of the tooltip.
About its broken styling, I’m positive, it’s coming from this commit: https://github.com/wagtail/wagtail/commit/947b9dab6ed6df55b64db473e4991dde7900dd6a. Here are the rules that break the alt input styling that were not in 2.0b1:
@media only screen and (min-width: 50em)
.full .halloeditor, .full input, .full textarea {
    padding-left: 50px;
    padding-right: 50px;
}

.full .halloeditor, .full input, .full textarea {
    padding: 2em 20px;
    border-radius: 0;
    font-size: 1.2em;
    line-height: 1.6em;
}

Further on the image deletion issue: it seems that the error happens when the image is the final block in the field to be removed. Draft.js apparently doesn't accept an empty list of blocks as valid...
This doesn't happen in regular Draftail usage because, it seems, the editor always makes sure to place a paragraph block before and after the image, which can't be deleted without also deleting the image. Sure enough, the HTML output on the frontend template also contains a leading / trailing

. This in itself is probably a bad thing: one of the common complaints about hallo.js was that it inserted unwanted / inconsistent whitespace that couldn't be deleted, and it would be really annoying if Draftail did the same :-(
Incidentally, a

 sequence in the database representation (which can be generated by hallo.js, but not by Draftail) gets converted to an empty paragraph block followed by the image block, which by sheer chance is the correct thing to prevent Draftail from crashing...
If necessary, I think all of this could be fixed / worked around by applying appropriate fixups during the HTML/contentState conversion: inserting the leading/trailing paragraph block when converting to contentState, and stripping empty paragraphs at the start/end when converting to HTML (or stripping all empty paragraphs regardless of position, which would prevent users from using them to insert extra padding - a good thing or a bad thing depending on how much of an HTML purist you are...). Of course, I'd be keen to hear what's feasible to fix on the editor side before going down that route.

Thanks for chasing this @BertrandBordage. Those styles were in before 2.0b1. They affect .full fields, and I did most of my testing within StreamField.
For the image deletion, I have yet to spend meaningful time chasing this but here is what I can say so far:

An empty list of blocks should be valid, but it won't be of any use – if there are no blocks, there is nowhere for the user to type text. Draftail is probably crashing because it wrongly assumes there is at least one block. In any case, I don't think there is a valid editing scenario leading to "no blocks".
Draft.js always adds blocks before/after images because otherwise there would be no way for them to be selected, then removed. This isn't true for Draftail, which has the tooltip and "Delete" button, so in theory we could change the default Draft.js behavior. I haven't done this because images have never been a priority. (PR welcome)

For the empty paragraphs – yep, this hasn't been addressed because even with WagtailDraftail generally images were made with StreamField rather than rich text. I don't think this is comparable to the Hallo situation though – it's not inconsistent (empty blocks in the editor = empty paragraph), and it's only unwanted when the image or embed is the first or last block in rich text. In all other configurations, they can be removed.
I don't think it's a good idea to automatically strip paragraphs, we should rather address their unwanted creation in the editor. That's not something I want to do before the release, but if anyone wants to have a go at it here's where to start.

Further trying this, there seems to be quite a few parts of Draft.js where "no content blocks" will throw an error. At least the parts that Draftail uses do. I'm not sure whether this can be considered a bug or a feature, but for now let's assume there has to be at least one block for the editor to be functional.
With this in mind, I think the simplest and most future-proof solution would be to change the editor behaviour when removing block-level entities like IMAGE and EMBED so that instead of completely removing the block, it replaces it with an empty one and moves the cursor there. This is similar to how Google Docs and MS Word delete images.
Current behavior:

Proposed behavior:

This makes it impossible for fields to lose all their blocks when removing an image/embed, and doesn't introduce workarounds to wrap images with unstyled blocks, which we would want to remove later on.
How does that sound?

@thibaudcolas That sounds like a good plan (and to me, placing the cursor in the gap left by the image looks intuitively "more correct", so that's good too).
Does this mean we can go ahead and turn off the insertion of leading/trailing paragraphs when inserting an image at the top / bottom of the field? Or does that still need to be addressed separately?

@thibaudcolas: This is an excellent idea, feels more natural to use.

@gasman good question. Do you mean in the editor, or in the HTML -> contentstate transformation?
They are still useful in order to guarantee it's possible to move the cursor before or after an image (eg. if the last block in the editor was an image, it would be impossible to add text after the image without first removing it, then entering text, then inserting it again above the text).
In the editor, I think that should be kept as-is (or perhaps tweaked so it only happens when the image/embed is inserted at the top or bottom of the editor, or next to another image/embed, rather than in all cases) – unless we find a better way to move the cursor around images.
In the contentstate transform, considering the scenario described above causes a usability issue rather than a crash, I think we should turn it off. It will cause some annoyance, but only with content coming from Hallo, and at least it'll preserve content as-is unless intentionally edited.
I'm not entirely sure how this behaves at the moment though so this is just my best guess.

@thibaudcolas I meant in the editor... but you're right, having played around a bit more those spacers are pretty important to ensure sensible editor behaviour, and not just for images at the top/bottom. They're also needed when you have two adjacent image blocks, so that you can place the cursor between them.
I think tweaking the HTML -> contentstate converter to always insert the spacer paragraphs should be an easy (and big) win, so I'll have a go at implementing that.
The

 appearing in the final output does still bother me a bit: not so much the adjacent-images case (if you're building image galleries in rich text and need to micro-manage the HTML to that extent, Draftail probably isn't for you...), but more the image-at-top case. I suspect that it's quite common for rich text content to consist of a floated image followed by a paragraph of text around it, and it would be nice if we didn't do anything "quirky" in that case. I dare say it's not an absolute release blocker, though.

👍
The current behavior definitely isn't ideal but I would find it quirkier if there was an empty block shown in the editor that didn't render as a corresponding empty block in the rendered content, at least with a default config. I don't think fixing this is worth breaking the "WYSIWYG" "one block = one block" assumption.
I'd rather spend more time on this (either before or after the 2.0 release) and look for ways to improve the editor's behaviour with image insertions & moving selection on/around images. And if people want an immediate fix they can use some variation of p:empty { display: none; } (which any Wagtail site using Hallo already uses, or should use), or StreamField, or stay on Hallo.
For the conversion inserting a spacer paragraph, same, I'm skeptical because it breaks the expectation that what you see in the editor will be reflected on the page. In the editor, those paragraphs would look like any other paragraph, but then on the page they aren't there anymore.

Have created a PR for updating the HTML->contentstate converter: #4311. Unless I'm missing something, this change doesn't break WYSIWYG - effectively, it just performs a one-off fixup of hallo.js content to add the spacer paragraphs that Draftail expects. From that point on, it's functionally the same as content entered through Draftail, and the spacing will match what appears on the front-end.

Completed as of #4311 and Draftail 0.17.0.

Awesome! Thank you very much to you, @gasman & @thibaudcolas!


Unit test failed.

TestCustomMid.cs Line: 54 should be
get => Time.ToString("dd'/'MM'/'yyyy HH:mm:ss");
Or the unit test could be failed.
https://stackoverflow.com/questions/6343289/why-does-datetime-tostringdd-mm-yyyy-give-me-dd-mm-yyyy

Thanks for submiting the issue.
The way how it is now works, but Culture is always a problem. Going to fix!


Some api change.

Current coverage is 5.26% (diff: 38.70%)

Merging #40 into master will increase coverage by 0.53%

@@            master       #40   diff @@
========================================
  Files           29        31     +2
  Lines          761       778    +17
  Methods        730       745    +15
  Messages         0         0
  Branches        31        33     +2
========================================
+ Hits            36        41     +5
- Misses         725       737    +12
  Partials         0         0

Powered by Codecov. Last update cd51f5b...830ec22


Fix Minor typo mistake in Readme.md

@unguiculus Thanks for pointing out that, I have removed extra space now

/lgtm


Update cql-worker dependency

Summary:
Update cql-worker dependency to 1.1.7
Test:
Run npm test and all unit tests shall pass

@yunwwang Once you merge, I will create a new push to npm.


Scope of the article

Thank you for the documentation!
Would you be able to clarify the scope of the article?
https://learn.microsoft.com/en-us/azure/security/fundamentals/production-network
Is it Azure regions globally or Azure regions in the US?
It does mention multiple times that datacenters are located within the US:
"the Azure production network that's located in the nearest regional datacenter within the US"
"Azure is hosted in geographically distributed Azure datacenters within the US"

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

ID: 6c72a04f-f6c9-5cce-baba-2f958d6bb77d
Version Independent ID: 328c52f4-3eb8-4cb4-9ec9-2732856741f7
Content: Azure production network
Content Source: articles/security/fundamentals/production-network.md
Service: information-protection
Sub-service: aiplabels
GitHub Login: @TerryLanfear
Microsoft Alias: terrylan

@pemsft
I've delegated this to content author @TerryLanfear, who will review it and offer his insightful opinions.


Error after supplementing prompt requirements

Bug description

I always encounter an issue with MetaGPT not installing the necessary package.json  dependencies for Vue, even after multiple uses of the prompt with requirement descriptions. Therefore, when I requested MetaGPT to add dependencies to ensure that the Vue project runs locally, it resulted in an error after running.

Bug solved method

Environment information

LLM type and model name:
System version:
Python version:

packages version:
installation method:

Screenshots or logs

Improper use of ' " ' resulted in incorrect parameter splitting.


Vcpkg publish framework

Example of this process working: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=533922&view=results
Example of the release that was published: https://github.com/Azure/azure-sdk-for-cpp/releases/tag/azure-template_1.0.0-beta.6
Closes https://github.com/Azure/azure-sdk-for-cpp/issues/622
How it works:

Build stage

Generate release artifact (.tar.gz file)
Publish release artifact to the appropriate artifacts package folder (packages/<package-name>/vcpkg/<artifact-name>.tar.gz
Publish vcpkg port file templates from sdk/<service>/<package-name>/vcpkg to artifacts for use in opening the vcpkg PR

Publish stage

Publish vcpkg (disabled by comment for now)

Upload .tar.gz file to the release created in the repo tagging and release creation step
Mutate the files in the artifact vcpkg location to use the version and uploaded file information. (Many of these facts, like version, filename, and SHA-512 can be filled in from previous steps but the download URL (which can probably be guessed) is only known after the Upload step completes)

What's not done here:

Individual per-package build -- this work should be done with the build
Final form of compressed release assets? -- Following the example of zlib I created a script which will take files from a given folder and zip them into an archive under a folder that has the same name. (see New-ReleaseArtifact.ps1). This is configured in the archetype-sdk-client.yml to zip up the root of the repo today but can be adjusted to zip up any other folder.

@weshaggard -- PTAL

Example PR: https://github.com/microsoft/vcpkg/pull/13581
Example pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=541160&view=logs&j=db30d5e9-5c21-5d7b-155a-3df6a2f30198&t=a3fef35d-9b6a-5366-f09d-305a73b62337


[WIP] hot fix databricks es dependency issue

Signed-off-by: Yuqing Wei<EMAIL_ADDRESS>Description

Resolves #XXX
How was this PR tested?

Does this PR introduce any user-facing changes?

[ ] No. You can skip the rest of this section.
[ ] Yes. Make sure to clarify your proposed changes.

Let's get this in for 0.8.1 release. I don't think databricks will solve the issue in short term per some offline conversation.


Add a postMessage API

Problem
The URL api is robust for one-off solutions, but makes it harder to integrate.
Proposed Solution
In addition to a well-documented URL param scheme, offer a postMessage API that allows for basic things like "run some code", arbitrary lumino commands, or anything that an extender can imagine.
Background
Having fought with more than a few IFrames, it can be nice to offer both a bare-minimum, fire-and-mostly-forget URL api, as well as a well-structured, message-based API.  A good (counter-)example is the drawio embed mode:

hooray! it can do lots of things!
boo! that's pretty much it for docs!

a robust API in a JSON schema and typings would go a long way to helping implementers who wanted to build e.g. replite-react or replite-vue or whatever they want

indeed, as a low-effort integrator demo, it could use rjsf to draw a message builder/viewer

Why both?
By splitting "long term" URL params and "on-demand" postMessage an integrator can then get interesting interplay effects: pass ?ui=0&input=0 and then have the host take over firing all of the execute methods with their own buttons
For e.g. wasm-based kernels, until we can figure out a SharedWorker worker kernels it's particularly important to not add 10s of 100mb kernels, even if in iframes.  In a long-form document, a more feasible approach one would be to have a single iframe/kernel/cell, fixed in the viewport, that gets updated as the reader scrolls/clicks on things.
Design Considerations
As for what actually goes in this API: a really quick win is the app.commands.execute... while no a-priori schema exists, a running lab could at least enumerate what commands it has.

@meeseeksdev please migrate to jupyterlite/jupyterlite

Closing in favor of https://github.com/jupyterlite/jupyterlite/issues/510


Removed rendering test, added file reading example

The existing auto-generated rendering test is a little misleading. Happy for a candidate to extend/write such tests but it's not really what we're after.
Also providing an example of how to import a JSON file, so we don't have to spend too much time on that particular issue. It's trivial thanks to a webpack plugin provided by create-react-app - so isn't particuarly easy to search for.

I'm not against importing the json file in the non-test code too

I'd be happy on @richkeenan 's suggestion. Even just console.log(data) in the render - would be interesting to see if candidates see this and check to see what they've got (a string or parsed already)

This was my original approach - but the import into the test file provided a good opportunity to write a test that wasn't completely arbitrary & didn't rely on adding solution code. I'll do both :)


titi's homework

许婷婷
学号：16210130090

homework2
homework2.zip

homework3
tianya.html.zip
Uploading titanicdata.html.zip…

#homework4
作业4.zip

homework5
作业5.zip

homework6
homework6.html.zip


Quick Open

Description of the new feature / enhancement
Option to quickly open/look on file in explorer with pressing a  key,which setted by user
Scenario when this would be used?
like,you are an Vector artist,and all your files by default are opening Adobe Illustrator,and you need to just look at file,not change anything.Without this feature,you will be needed to wait,until program opens,loads,loads addons e.t.c. With this feature you will just press [KEY] and file will open.
Supporting information
Windows have that feature,but realisation are really bed,and you always view file that selected.
There is an application that works in a similar way called Quick View, but you cannot assign a key in it, and some files look bad, for example,  black pictures with a dark theme.

Maybe a starting point?

/dup #80


docker issues.

unable to startup docker
ERROR: Get https://registry-1.docker.io/v2/library/mongo/manifests/sha256:d2a3543d1bcfb6208cde0c1e89df39b51731a249d42fb4c1552f72f817e8507d: dial tcp: lookup registry-1.docker.io on <IP_ADDRESS>:53: read udp <IP_ADDRESS>:40902-><IP_ADDRESS>:53: read: connection refused

Try again? Maybe just internet connection issues. Never had this problem before.

ive resolved the issue trough https://github.com/docker/for-mac/issues/1317 im not behind a proxy but setting chaning the dns of docker fixed my issues.

Glad you solved it


Regex fixes

Better default regex:

Added JWT/JWE, Square
Fixed broken ones (JWT and a few others)

Hi @korikhin, I tried running cargo test on your branch and it failed but it runs successfully on main. I also didn't see any new tests for the added patterns. Please make sure the existing tests work and you add test cases for the new patterns added. If you look at the one_per_line files in the test directory, it's pretty easy to add test cases

Hi @sirwart, tests added! But JWT still relies on "eyJ" prefix as before.

Squeezed some syntax highlight with extra sh


C++ executable

I don't know how to download the C++ executable, I think it is erased.
How can I get the program?
Thank you :)

Yes, the executable is not provided. You have to compile the source as per instructions (under the installation section).

Okay, Thank You!


Writing EXIF data ?

Hi,
Is there anyway we can write EXIF data into image from web, using nodejs, meteor or any scripts ?
Peace,

@shtefcs : I might end up implementing this in the future, check out my fork at https://github.com/aerilon/node-exif. As of today, it mostly contains code enhancement (offset validation, code de-duplication, etc). For the near future, I will certainly go through the path of least resistance and add a JPEG APP1 segments containing pure JSON, though, I still need to write that package, but that should be pretty trivial.

Hi @lacombar. Starred your fork, will check it out in future. I needed this option for something in that moment, but I can't remember now why i needed exactly.

+1 I also think it would be great to be able to copy EXIF data from one image into another
I use this library in one of my projects and I love it.. Thanks..

+1

+1


chore: update operator-sdk version to 1.32

What type of PR is this?
/kind chore
What does this PR do / why we need it:
This PR upgrades the operator-sdk version to v1.32
Have you updated the necessary documentation?

[ ] Documentation update is required by this PR.
[ ] Documentation has been updated.

Which issue(s) this PR fixes:
Fixes #?
Test acceptance criteria:

[ ] Unit Test
[ ] E2E Test

How to test changes / Special notes to the reviewer:
Download the 1.32 operator-sdk binary, run make operator-sdk also move this to your $PATH. Then run the makefile targets to verify the upgrade.

In test/e2e/suite_test.go and test/nondefaulte2e/suite_test.go , please update the CRDDirectoryPaths to []string{filepath.Join("..", "..", "config", "crd", "bases")},

We also need to pull in the latest ArgoCD and NotificationsConfiguration CRD from https://github.com/argoproj-labs/argocd-operator/tree/master/config/crd/bases to https://github.com/redhat-developer/gitops-operator/tree/master/config/crd/bases and update argocd-operator commit to latest in go.mod.

I am planning to do the go.mod changes in next part of operator-sdk version upgrade 1.35

I am planning to do the go.mod changes in next part of operator-sdk version upgrade 1.35

Sounds good. Looks like we also need to update operator-sdk version in openshift-ci configs. I see one reference here : https://github.com/redhat-developer/gitops-operator/blob/6cf2a8e31d153a5585ee699722f894404b295dc7/openshift-ci/build-root/Dockerfile#L6
@varshab1210 are there any other places where operator-sdk version  is hardcoded, maybe in openshift/release repo?

/lgtm

/approve


Unable to install 'vsls-contrib.codetour' extension

not compatible with VSCode 1.40.2

Did not see any way to install gistpad without this extension, so even though not technically a problem inside gistpad, makes it unusable.

Thanks for reporting this! Let me push a fix for this right now. Apologies for the inconvenience!

@dixonge I just published an update to CodeTour that fixes this version issue. Apologies for this, and please let me know if you run into any other issues. Thanks!

@lostintangent wow, that was a fast fix! I use another extension to copy all my existing code snippets from text file to GitHub, but now I removed it and switched back to GistPad. Very nice!


Contradiction in using hyphen with prefix re

Hello!
On the page that I'm now commenting, instructions imply there's only one option to spell reuse (without hyphen); as it can only mean use again.
On the other hand, on this page, you interchangeably use reuse and re-use in the blog.
Would you please explain a difference, because as a Technical Writer I heavily rely on Microsoft technical writing instructions and rules and need to understand the case.
Thanks in advance and have good day!

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

ID: ae3ac5f4-d755-0e7d-623e-9d8eab510309
Version Independent ID: c52a5c1d-1ed4-d7bc-1d0d-c62a18aff784
Content: re- - Microsoft Style Guide
Content Source: styleguide/a-z-word-list-term-collections/r/re.md
Product: non-product-specific
GitHub Login: @pallep
Microsoft Alias: pallep

Hi @vremn  and thanks for the feedback. Our guidance is to close compound forms with "re" unless there may be confusion. However, we can't control how people out in the wild use "re" and so you will see inconsistent use of the prefix and hyphen out there. You are correct that "reuse" should always be spelled as one word.


backup item action changes to objects aren't being persisted in the backup tarball

What steps did you take and what happened:
[A clear and concise description of what the bug is, and what commands you ran.)

build sample plugin container image
ark plugin add <my-repo>/ark-plugin-example:latest
ark backup create foo

The backed-up items should be annotated, per https://github.com/heptio/ark-plugin-example/blob/master/ark-backupitemaction-log-and-annotate/myplugin.go#L53. They are not.
It looks like https://github.com/heptio/ark/blob/82f1cd87dcc70965ef093872daaca92685dda90c/pkg/backup/item_backupper.go#L312 is to blame, as a pointer is being updated to point to a new location within a helper func, but this only lasts for the scope of the function, so the parent function which actually writes the item to the backup still has a pointer to the original obj.

cc @nrb @carlisia @Evesy

Sounds reasonable to me.


Pods list on Deployment details page doesn't update

This is happening on master:
https://user-images.githubusercontent.com/40840436/141183468-e72f1d40-f3ea-4554-80c9-2e9cf101eed5.mov
Even if you close the details page or show a different deployment's details page and then reopen the details page, the pods list is stale. If you click to a different dashboard page and then back to deployments and reopen, then the pods list is up-to-date. Missing watch on pods for deployments?

Regression from #4089


Mint Amazon Tagger 1.44 no longer recognized manually logged in Mint

I am using v1.44 GUI with manually downloaded Amazon transaction files and a manual log in to Mint itself. I am able to log in successfully by hand to the Chrome window that mint-amazon-tagger brings up. However, the mint-amazon-tagger GUI continues to display a "Tagger is running..." window displaying "Logging in to mint.com" with a pgoress bar.
I'm on the new UI version of Mint in case that matters.
Any suggestions on how to debug this further? Is there a way to turn on more verbose logging in the GUI?

I am having this same problem as well :(

Part of the problem, it seems, is that the URL for the Overview page changed, which is how the tool determined that you were logged in. I attempted to address that in PR #104 but it gets stuck later on in code I'm unfamiliar with.

Thank you all for the report and thanks @noahd1 for the PR for the URL change. I am closing this issue and will make https://github.com/jprouty/mint-amazon-tagger/issues/100 the primary tracking issue for the mint revamp.


Refresh Configuration Script Sources action

Refresh action for configuration script sources collection and resource as needed for the refresh blocker BZ
POST /api/configuration_script_sources/:id
{
  "action": "refresh"
}

POST /api/configuration_script_sources
{
  "action":"refresh",
  "resources" [{ "id": :id }, {"id": id}]
}

@miq-bot add_label enhancement, api
@miq-bot assign @abellotti
cc: @durandom @jameswnl @dclarizio @gmcculloug

cc: @mzazrivec

@jntullo for multiple tasks in response, see https://github.com/ManageIQ/manageiq/issues/14404
I'd still want task_id/task_href referencing the first for compatibility, but tasks, an array of id and href hash, the client can then build the Task resource objects for each.   Thanks.

LGTM @jntullo 👍   Thanks for updating the tasks signature in action results.
/cc @dclarizio @mzazrivec  ok by you ?

LGTM.


Fixed typo in IPV6 alphabet

According to python3 base64.b85decode module https://github.com/python/cpython/blob/3.8/Lib/base64.py

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


[MM-29035] Remove usage of mention-highlight-bg-## CSS variables

Summary
Remove usage of mention-highlight-bg-## CSS variables
Ticket Link
Fixes https://github.com/mattermost/mattermost-server/issues/15781
JIRA: https://mattermost.atlassian.net/browse/MM-29035

Hello @KuSh,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

Thanks for the contribution @KuSh :tada:


Change belt type on the fly without using preferences

Suggestion
Ability to change the belt type on the fly with a keybind, at least on the compact view? Sometimes I want to use the appropriate belts depending how fast my floor needs supplies. If an item is consumed slowly, i dont need to use red or blue belts. I want to check if a yellow belt is sufficient, and then quickly switch back, without having to go to preferences.

Hi, same idea as #153 funnily enough. I can see your issue, but I think the complexity would be too much, at least for how the system currently works.


Add bottom menu when shake for support

Description
When the user shakes their phone, a bottom menu will appear giving them the option to progress to the Contact Support screen
Tested

How others should test
Shake phone from any screen in the app
Related issues

Fixes #395

Backwards compatibility
Yes

https://valora.testquality.com requirement R37.

https://valora.testquality.com requirement R61.

Hi @MuckT We have verified this issue on Latest android build V1.16.0 & Testflight build V1.16.0(66) and updated the status in testqulaity tool.
Testquality tool link:
Android:

https://valora.testquality.com/project/12128/plan/20854/run/148956/result/2432159

iOS:

https://valora.testquality.com/project/12128/plan/20854/run/148956/result/2432187

New issue:

https://github.com/celo-org/wallet/issues/849

Hi @MuckT, We have verified this issue on Latest android build V1.16.0 in Android 11.0 OS and everything is working as expected.
Device Details: Google Pixel 4a(11.0)


Some errors on the for-influxdb-v2.json

Environment info:
grafana/krakend/for-influxdb-v2.json: latest
Grafana: v9.1.6
System info: docker / k8s
Describe what are you trying to do:
Hi guys, I'm trying to send data from multiple krakend kubernetes pods, running at same namespace to one influxb2 database instanse.
But dashboard host selector is broken. If "all" or multiple hosts selected, we have error in reqest:

from(bucket: "krakend")
|> range(start: 2022-10-03T23:05:03.495Z, stop: 2022-10-04T11:05:03.496Z)
|> filter(fn: (r) => r._measurement == "responses" and r._field == "count" and r.host =~ /{gateway-public-5d6c4fbdf-gcx2h,gateway-public-9f585b4d7-mlnvn,gateway-public-7c568f66b8-m9z7j}/)
|> group(columns: ["name","status"], mode: "by")
|> aggregateWindow(every: 20m, fn: sum)
|> yield()

invalid: compilation failed: error @3:94-3:197: regex parse error:
{gateway-public-5d6c4fbdf-gcx2h,gateway-public-9f585b4d7-mlnvn,gateway-public-mr-15-7c568f66b8-m9z7j} error:
repetition operator missing expression

Any suggestions?

I tried a few times, but I cannot reproduce it. Please reopen if you are still facing this issue, although the new Grafana dashboard we support is based on Prometheus.


Update remove.md for GA

Removed "preview" and changed freshness date

@awaadhwa : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off


Java Script error for certain JSON response

I'm running into an issue that the Jaeger UI cannot correctly render JSON response after clicking the search button.
The JavaScript error shown is

Uncaught (in promise) TypeError: Cannot read property 'some' of undefined
at http://localhost:16686/static/js/main.aa943a40.js:30:7371
at Array.reduce (native)
at o (http://localhost:16686/static/js/main.aa943a40.js:30:7320)
at http://localhost:16686/static/js/main.aa943a40.js:9:1558
at http://localhost:16686/static/js/main.aa943a40.js:9:994
at f (http://localhost:16686/static/js/main.aa943a40.js:9:1763)
at http://localhost:16686/static/js/main.aa943a40.js:30:7620
at Array.map (native)
at a (http://localhost:16686/static/js/main.aa943a40.js:30:7598)
at http://localhost:16686/static/js/main.aa943a40.js:30:8485

and the JSON response is
{
  "data": [
    {
      "traceID": "2baaf5bc8940d5f2",
      "spans": [
        {
          "traceID": "2baaf5bc8940d5f2",
          "spanID": "2baaf5bc8940d5f2",
          "flags": 1,
          "operationName": "oldSpan",
          "startTime":<PHONE_NUMBER>371000,
          "duration": 12562,
          "tags": [
            {
              "key": "sampler.type",
              "type": "string",
              "value": "const"
            },
            {
              "key": "sampler.param",
              "type": "bool",
              "value": true
            }
          ],
          "processID": "p1"
        },
        {
          "traceID": "2baaf5bc8940d5f2",
          "spanID": "c718ee0eed62b453",
          "flags": 1,
          "operationName": "newSpan",
          "references": [
            {
              "refType": "CHILD_OF",
              "traceID": "2baaf5bc8940d5f2",
              "spanID": "2baaf5bc8940d5f2"
            }
          ],
          "startTime":<PHONE_NUMBER>373000,
          "duration": 7048,
          "processID": "p2"
        }
      ],
      "processes": {
        "p1": {
          "serviceName": "App2",
          "tags": [
            {
              "key": "jaeger.hostname",
              "type": "string",
              "value": "HOST"
            },
            {
              "key": "jaeger.version",
              "type": "string",
              "value": "Java-0.19.0"
            }
          ]
        },
        "p2": {
          "serviceName": "App1",
          "tags": [
            {
              "key": "jaeger.hostname",
              "type": "string",
              "value": "HOST"
            },
            {
              "key": "jaeger.version",
              "type": "string",
              "value": "Java-0.19.0"
            }
          ]
        }
      }
    }
  ],
  "total": 0,
  "limit": 0,
  "offset": 0,
  "errors": null
}

When there's only a span under a tracer, no error prompts out. I look through the code, it seems that tags was undefined at the time.
const numberOfErredSpans = trace.spans.reduce(
    (total, { tags }) => total + Number(tags.some(isErredTag)),
    0
  );

Is that because of the problem of the JSON format or it may be a potential bug for the UI?
PS. Configuration setting:
Configuration(
        tracerName,
        new Configuration.SamplerConfiguration("const", 1),
        new Configuration.ReporterConfiguration(
          true, "localhost", null, 1000, 10000)
      )

Thanks!

Problem solved by attaching a tag on the span. It seems like the JS code expects all span to have at least a tag.

Are you using the recent version of Jaeger backend? This issue came up before (https://github.com/uber/jaeger-ui/issues/33) and there was a backend fix (https://github.com/uber/jaeger/pull/195) to ensure that tags are always returned as empty arrays

I'm using version 0.19.0 as the Java binding client and the latest all-in-one docker image.

Can you check the tags on the current image you're using?  Sometimes Docker might keep the old version.


Add support for PowerShell-preview package to shellenv

With reference to PR  #12494, it turns out that for the preview version of PowerShell, the executable file name is different (due to parallel symlink in /usr/local/bin/pwsh-preview right next to /usr/local/bin/pwsh of the current version).
This patch is going to fix this.

Thanks again @jpawlowski!

Will this merge automatically sometime?

Merged now, thanks!


Gracefully handle encoding errors in logfile when in quiet mode

The error handlers for invalid encoding were missing here which can lead to a crash when in quiet mode and log contains invalid characters.

Is there a more "universal" fix to this? it seems like all the open() are at risk including in all the tool drivers

I didn't find a way to set the default handler. I think the only other way would be trying to override the strict handler although that also seems unclean.

#2267 see if something like this works, it might be useful to have a testcase of the issue in the CI if you can provide one

Replaced with #2267 2267


A11y_ML .NET Model Builder_Object Detection-Evaluate_ScreenReader: NVDA/Narrator is not announcing 'Show undetected objects' button name when focus lands on the button.

“Check out Accessibility Insights! - Identify accessibility bugs before check-in and make bug fixing faster and easier.”
GitHubTags:
#A11yMAS; #A11yTCS; #Win32; #DesktopApp; #BM-VisualStudioClient-Win32-Jul21; #A11ySev2; #Visual Studio Client; #WCAG1.3.1; #Narrator; #NVDA; #A11yPreview; #Screen Reader;
Environment Details:
Microsoft Visual Studio
Re-pro Steps:

Turn on Narrator/NVDA. Open Visual Studio Enterprise 2022 Preview
Create a new .Net Core Console App (C#) ex: WpfApp
Tab to "Solution Explorer" and right click on the project (Shift + F10) and then from the expanded list Select "Add" and then from the list items select "Machine learning"
Tab till "Object Detection" and press enter
Select "Azure" environment. Tab till "Setup Work Space" button and press enter and create a new experiment and tab till "next" button and press enter
Select input data folder and tab till "Next" button and press enter
Tab till "Train" button and press enter. After training is completed, navigate to evaluate tab.
In Evaluate tab, upload a picture in try your model section and navigate to score threshold value and increase the value unti 'Show undetected objects' gets enabled.
Navigate to 'Show undetected objects' button and verify whether screen announces button name or not

Actual Result:
NVDA/Narrator is not announcing 'Show undetected objects' button when focus lands on the button.
Expected Result:
NVDA/Narrator should announce 'Show undetected objects' button when focus lands on the button. Button name should be defined in programmatic way.
User Impact:
Screen reader users will not know the control and might get confused if name is not announced by NVDA/Narrator.

Validate on  rel/candidate build <IP_ADDRESS>1903. See issue 1627 for instructions for install.

Here is a link the most recent Model Builder build. I’ve tested it on VS 17.0.0 Preview 5
Model Builder: https://devdiv.visualstudio.com/_apis/resources/Containers/8681620/VSSetup_Release17?itemPath=VSSetup_Release17%2FMicrosoft.ML.ModelBuilder.Gallery.Dev17.vsix
VS: https://aka.ms/vs/17/pre/vs_Enterprise.exe

Issue is fixed. Narrator/NVDA is reading 'Show undetected objects' button name when focus lands on the button. Hence closing the bug.

#Closed;


[erc20-balance-of-top-holders] Adding erc20-balance-of-top-holders

Fixes # .
Changes proposed in this pull request:

Added a strategy, where only first top N token holders can vote

@ChaituVR Please review if you have availability. Thanks


CAGRA C-api compile fixes

The cagra_c.h file was using in-class member initializers, which are only available in c++11 - and not in C. This resulted in compile failures when trying to build C libraries using CAGRA.
Fix and add a basic C smoke test that would have caught this.

/merge


kong can not set target to healthy

Summary
kong 1.3 version can not set target to healthy（it looks like health check not work）,but health check conf ok，it only occasionally.
Steps To Reproduce
1.set upstream active health check and passive health check
curl http://<IP_ADDRESS>:8001/upstreams/readio-mesage
{
"created_at":<PHONE_NUMBER>,
"hash_on": "none",
"id": "f226ab19-fea1-4aaa-90bd-e205847212cb",
"algorithm": "round-robin",
"name": "readio-mesage",
"hash_fallback_header": null,
"tags": null,
"hash_on_cookie": null,
"hash_fallback": "none",
"hash_on_cookie_path": "/",
"healthchecks": {
"active": {
"unhealthy": {
"http_statuses": [429, 404, 501, 502, 503, 504, 505, 500],
"tcp_failures": 3,
"timeouts": 60,
"http_failures": 5,
"interval": 3
},
"type": "http",
"http_path": "/api/health_check",
"timeout": 60,
"healthy": {
"successes": 2,
"interval": 3,
"http_statuses": [200, 302]
},
"https_sni": null,
"https_verify_certificate": true,
"concurrency": 10
},
"passive": {
"unhealthy": {
"http_failures": 0,
"http_statuses": [429, 500, 503],
"tcp_failures": 3,
"timeouts": 60
},
"healthy": {
"http_statuses": [200, 201, 202, 203, 204, 205, 206, 207, 208, 226, 300, 301, 302, 303, 304, 305, 306, 307, 308],
"successes": 0
},
"type": "tcp"
}
},
"hash_on_header": null,
"slots": 1000
}
2.set target to health
curl http://<IP_ADDRESS>:8001/upstreams/readio-mesage/targets/<IP_ADDRESS>:80/healthy -X POST
{"message":"no healthchecker found for readio-server-mesage"}
Additional Details & Logs

Kong version 1.3
Kong error logs
error log can not get anything

when i get upstream health status,get this error

Close due to 1.x is EOL.

这是来自QQ邮箱的假期自动回复邮件。

您好，我最近正在休假中，无法亲自回复您的邮件。我将在假期结束后，尽快给您回复。


Missing example  for attach DB

Hey Folks,
in the DockerHub Documentation you are missing the example command for attaching dbs.
Thanks for fixing this.
:-)
Tobias

Hi Tobias,
You mean something like this?
CREATE DATABASE MyAdventureWorks
    ON (FILENAME = N'/var/opt/mssql/data/AdventureWorks_Data.mdf'),
    (FILENAME = N'/var/opt/mssql/data/AdventureWorks_Log.ldf')
    FOR ATTACH;

All of our documentation for SQL Server on Containers is maintained now at https://docs.microsoft.com/en-us/sql/linux/


Is there any way to pass state to render props

I am try to enfore user login before using my app. But i can't pass state or actions in to render props. I want something like this
const PrivateRoute = props => {
  return (
    <Route
      render={(props) =>
        props.isAuthenticated ? <Login {...props} /> : <Redirect to="/login" />
      }
    />
  );
};

<Switch>
      <Route path="/login" render={Login} />
      <PrivateRoute
        isAuthenticated={state.authenticated}
        authenticate={actions.authenticate}
      />
      <Route path="/" render={Dashboard} />
      <Redirect to="/" />
    </Switch>

const Login = (props) => (

      <button onclick={() => props.authenticate(true)}>
        Sign in with Google
      </button>

);

i can't get two props i want but match and location. Can i do that? If not, is there another way to do it?

You can call a function like this:
<Route path="/login" render={Login(someData)} />

...and declare your Login function to accept some data and return a component.

I tried but it lost match props

@phongduong Declare your Login function as follows:
const Login = myData => props => newVNode

That should do it! Please let me know if that solved your issue and feel free to reopen if it didn't.
Cheers! 👋

It works now. Thank you


Support of JDK 21 wanted

Hi @plokhotnyuk
I can reproduce the bug using Scala 3.3.0, but it seems to work fine with 3.3.1. Can you try using the newer version of Scala?

It works fine with scala-cli -S 3.3.1, so it could be a feature request to pick the latest Scala version by default (at least after the installation).

that's https://github.com/VirtusLab/scala-cli/issues/2394 — the default Scala will remain what it was when scala-cli released, but after https://github.com/VirtusLab/scala-cli/pull/2411 you'll be able to say e.g. -S 3 to ask for latest.


ParallelQueryExecutionContextBase breaks use of abortSignal in FeedOptions object (userSignal.addEventListener is not a function)

@azure/cosmos:
3.14.1:

Describe the bug
If an abortSignal object is passed within the FeedOptions object of a query AND
a query rewrite response is initially received by the SDK, an exception is thrown:
userSignal.addEventListener is not a function

The issue is within the function ParallelQueryExecutionContextBase._createTargetPartitionQueryExecutionContext which is attempting to make a deep copy of the query options using JSON.parse(JSON.stringify(...)). This will copy object data but will not copy the abortSignal object member functions which are required to add event listeners for abort triggers.
I recommend the following change for line 474 of azure-sdk-for-js/sdk/cosmosdb/cosmos/src/queryExecutionContext/parallelQueryExecutionContextBase.ts
-        const options = JSON.parse(JSON.stringify(this.options));
+        const options = Object.assign(Object.create(Object.getPrototypeOf(this.options)), this.options);

To Reproduce
Steps to reproduce the behavior:

Query a container for items options.abortSignal defined and a SqlQuerySpec that will trigger a query rewrite.

const abortController = new AbortController();
const querySpec: SqlQuerySpec = {
  query: "SELECT MAX(c._ts) as _ts, c.someAttrib FROM c WHERE IS_DEFINED(c.someAttrib) GROUP BY c.someAttrib",
  parameters: [
  ]
};
const options: FeedOptions = {
  abortSignal: abortController.signal
};
const iterator = container.items.query<T>(querySpec, options);

Expected behavior
No exception thrown.

@jvl001  Thanks for reporting this issue . We are investigating it now.


updated fa_eval readme

fixes partially #35
updated for more information on env, changed all requests for .srt to .tsv because this is outdated.
updated the invocation to be evaluate.py instead of fa_eval.py (outdated).
(Just caught a typo in line6 "predition", will update next time.)

closing without merge due to difficulties in working with external fork.


Log a hint that constraints are not met for a task

I spent hours trying to debug a chronos job not working, but I was misled by this line because it said things like this:
WARN Insufficient resources remaining for task 'ct:1453417002396:0:paasta_canary sensu_canary git6c3833b5 config7708a392:', will append to queue. (Needed: [cpus: 0.1 mem: 256.0 disk: 256.0], Found: [cpus: 3.4499999990000014 mem: 22635.0 disk: 10000.0,cpus: 7.369999999999992 mem: 30363.0 disk: 10000.0,cpus: 2.5700000000000003 mem: 18051.0 disk: 10000.0,cpus: 7.349999999000012 mem: 3753.0...

And I was like, chronos man, looks like there are plenty of resources to me?
But it was a constraint issue.
This makes the error message hint at this, to benefit my future self?

Thanks!


Fix for crash during error in volume exapansion

Coverage remained the same at 85.714% when pulling<PHONE_NUMBER>e76e8857d2cf788010fc9674736e48 on GunaKKIBM:Volume-expansion-fix into 6a799d67a2add1eeb358e2acea2468ad618bb185 on kubernetes-sigs:master.

/lgtm


fix order of hidden states in text encoder

What does this PR do?
using sorting breaks topological order of outputs, it keeps output names in alphabetical order, that is different from topological if model has > 10 layers (e.g. hiden_states.0, hidden_states.1, ..., hidden_states.9, hidden_states.10 we got hidden_states.0, hidden_tates.1, hidden_states.10, hidden_states.2, ...., hidden_states.9) that significantly impact model accuracy for sdxl.
Before submitting

[ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[ ] Did you make sure to update the documentation with your changes?
[ ] Did you write any new necessary tests?

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.


Error: yaml: unsupported node <[l2// field "schemata" not found] |> (*ast.BottomLit)

Schema
I've created the following custom schema:
{
    _schema: {
        name:      "Book"
        namespace: "schemas.cueblox.com"
    }
    #Book: {
        _dataset: {
            plural: "books"
            supportedExtensions: ["yaml", "yml"]
        }
        name: string
        url?: string

        hungry: bool | *false
    }
}

Steps to reproduce

put the above schema into schemata/book.cue
run blox new --dataset book bookone

This results in Error: yaml: unsupported node <[l2// field "schemata" not found] _|_> (*ast.BottomLit).
Please let me know if I'm making a mistake somewhere.
Thanks
Version info
blox version blox version 0.7.0
commit: 9eb0acd273f0fe346d0bb5922087bd910e2e00dc
built at: 2021-09-07T10:20:02Z
built by: goreleaser

Debug output
blox new --dataset book bookone --debug
  DEBUG                 Schemata Directory: schemata
  DEBUG                 Loading Schema: schemata/book.cue
  DEBUG                         Next field
  DEBUG                         {
                name:   string
                hungry: false
          }
 INFO  Creating new #book at data/books/bookone.yaml
Error: yaml: unsupported node <[l2// field "schemata" not found] _|_> (*ast.BottomLit)

@magick93 do you have a blox.cue config? Can you share that too, please?
You can also generate one with blox init

Yes, certainly.
blox.cue
{
  build_dir:    "_build"
  data_dir:     "data"
  schemata_dir: "schemata"
  static_dir: "static"
}

And yes I did use blox init.

Thanks. I'll reproduce and get back to you.

This error is caused if there are no @template tags in the cue definition.  Adding one causes the command to succeed. @rawkode I think this worked previously without template tags, so it's likely a bug.

I see. Thanks @bketelsen
When looking at https://github.com/cueblox/blox/blob/main/dogfood/schemata/page_v1.cue#L13-L16 the uses of @template looks more like a default value.
What is difference between a default val and the use of @template?

the @template tag is used only for the blox new command to generate placeholder text. Default values will be evaluated if a field is empty or not present during the rendering process.

Got it, thanks.
Ok, I'll close this issue now. But I'll throw in a quick idea / feature request.
A blox new -i book for interactive would be cool. Then the @template annotations could be used to interactively ask for input from the cli.

We actually have a branch with -i working. I'll clean it I!


Add support for custom request headers

Need the ability to provide custom headers for requests -- headers may change so added support for a callback as well as the option to just provide an object

Looks like CI build is missing because of missing credentials for saucelabs

Actually, don't merge this yet -- it's missing one thing still

@ankane should I automatically prevent the use of sendBeacon if this is provided?

I'm going to submit a PR to provide an escape hatch for overriding the sendRequest method. Seems like the solution with the smallest footprint that will allow the flexibility we need


DNM: testing apple/swift-installer-scripts#145

Please test with following PRs:
apple/swift-installer-script#145
@swift-ci please build toolchain windows platform

CC: @natecook1000 @CodaFi
https://ci-external.swift.org/job/swift-PR-build-toolchain-windows/216/console - seems that argument-parser is triggering a failure?

Please test with following PRs:
apple/swift-installer-script#145
@swift-ci please build toolchain windows platform

Please test with following PRs:
apple/swift-installer-script#145
@swift-ci please build toolchain windows platform

Please test with following PRs:
apple/swift-installer-script#145
@swift-ci please build toolchain windows platform

Please test with following PRs:
apple/swift-installer-script#145
apple/swift-syntax#1027
@swift-ci please build toolchain windows platform

Please test with following PRs:
apple/swift-installer-scripts#145
https://github.com/apple/swift-syntax/pull/1027
@swift-ci please build toolchain windows platform

Please test with following PRs:
https://github.com/apple/swift-installer-scripts/pull/145
@swift-ci please build toolchain windows platform


Trouble accessing plugins via 'context.app' while in async data

Hey there,
Next documentation says you can gain access to your plugins via the ‘app’ key from the context object that is passed in async data.

The root Vue instance that includes all your plugins. For example, when using axios, you can get access to $axios through context.app.$axios.

I’ve created a custom plugin with global vue methods, as well as some $prototypes, and I don’t have access to them via app.
I also tried using axios like they suggested, but that doesn’t work either.
Goals I’m trying to accomplish:
I have a function I invoke when pulling from a prismic.io api as async data.
There is no access to ‘this’ since async data is rendered on the server.
I really would like to have easy access to that function on all my page components. Keep my code as dry as possible.
Any thoughts?

Hi @devanflaherty,
Can you post your plugin code to see more about how you are doing it and help you?

Hey @alexchopin,
Here is the plugin js code.
import Vue from 'vue'
import PrismicConfig from '~/plugins/prismic-configuration'
import PrismicDOM from 'prismic-dom'
var Prismic = require('prismic-javascript')

const prismic = {
  install (Vue, options) {
    Vue.prototype.$initApi = function (req) {
      return Prismic.getApi(PrismicConfig.apiEndpoint, {
        accessToken: PrismicConfig.accessToken,
        req: req
      })
    }

    Vue.mixin({
      computed: {
        prismicDOM () {
          return PrismicDOM
        }
      },
      methods: {
        initApi (req) {
          return Prismic.getApi(PrismicConfig.apiEndpoint, {
            accessToken: PrismicConfig.accessToken,
            req: req
          })
        },
        asHtml (richText) {
          return this.prismicDOM.RichText.asHtml(richText, PrismicConfig.linkResolver)
        },
        asText (richText) {
          return this.prismicDOM.RichText.asText(richText)
        },
        asLink (link) {
          return this.prismicDOM.Link.url(link, PrismicConfig.linkResolver)
        },
        asDate (date, format) {
          return this.prismicDOM.Date(date)
        }
      }
    })
  }
}

Vue.use(prismic)

It is registered in the Nuxt config and all the methods work outside of the asyncData function.
And here is where I'm attempting to call the instance method.
asyncData ({ params, app }) {
  return app.$initApi().then(api => {
    return api.query(
      Prismic.Predicates.at('document.type', 'work')
    ).then((res) => {
      return { document: res }
    })
  })
}

I'm probably doing something wrong or don't understand exactly how the app key works, or prototype instance methods.
I also attempted to just modify the Vue instance by adding a global method in the plugin, but that didn't return any results either..

app is not Vue instance, so it doesn't have $initApi property. You may take a look at https://github.com/nuxt/nuxt.js/issues/1697.

Thank you, you may close this.
On Nov 2, 2017, 2:20 AM -0600, Clark Du<EMAIL_ADDRESS>wrote:

app is not Vue instance, so it doesn't have $initApi property. You may take a look at #1697.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.


support branches in git urls/strain configs

related to #64
petridish, i.e. specifically GitUrl and HelixProject don't support specifying a ref (branch) in a git url/strain config.
what's the canonical way of specifying a branch in a git url (strain config)?

this is now supported with #88


Mutables in Rust are blacked out

Mutables in Rust are blacked out while Vitesse version displays correctly.
Consider giving operator & a colour for Rust?
Vote for a black Vitnesse version!

Cheers

Seems to be fixed in v0.4.4. Thanks for your code and comparison, they helped me a lot!


exit in Child process

Why in child process, it exits with EXIT_FAILURE ?
if (execvp(args[0], args) == -1) {       perror("lsh");     }     exit(EXIT_FAILURE);
I think it should be:
_exit(EXIT_SUCCESS);

The whole point of exec() is to replace the currently running process with another program. Thus, returning is by definition an error. Admittedly, the if statement confuses things a bit. But I didn't want there to visually be a code path where execution should fall through, even though putting exit within the if statement would be semantically the same, assuming your library + OS are sane.


Use states on events directly

This PR adds support for using States directly as properties on Events instead of having an ID property with the StateId attribute.
So an event might look like this:
class UserRequestAcknowledged extends Event
{
    public function __construct(
        // Instead of this
        // #[StateId(UserRequestState::class)
        // public int $user_request_id;

        // We can just do this
        public UserRequestState $user_request
    ) {}

    public function apply()
    {
        $this->user_request->acknowledged = true;
    }
}

And can be called like this:
$user_request = UserRequestState::load(snowflake()->make());

UserRequestAcknowledged::commit(
    user_request: $user_request
);

It also supports passing the ID in directly and it will still load and serialise correctly:
$user_id = snowflake()->make();

UserRequestAcknowledged::commit(
    user_request: $user_id
);

Finally I have also added a State::new() helper, to load a new state with a fresh snowflake:
// Instead of this
// $user_request = UserRequestState::load(snowflake()->make());

// We can just do this
$user_request = UserRequestState::new();

UserRequestAcknowledged::commit(
    user_request: $user_request
);

I've also added tests for singleton states, accessing nested states, and even using StateCollections in events.
Using the #[StateId] attribute will still work perfectly fine too.

Nice work @joshhanley! love this


lev2gfx: openimageio texture loader (png/jpg/exr,etc..)

with cached mipmap generation of course

done.
https://github.com/tweakoz/orkid/commit/7f63e6b4b5936f81509274a9fbcc2a00110b1c69
https://github.com/tweakoz/orkid/commit/af44446121bd90d631e179cd5adbc2d6ecf08b25