Installing pagePark generates warnings. Run the fix?

Hi, should I run npm audit fix as suggested and is that enough?
Thank you!
[BTW, the npm install requires a directory change to where package.json is located. I didn’t know that. Might be worth adding that to the "How to" instructions at 1.A.]
[sbwMacbookPro:~] sbw% cd /Applications/Utilities/pagePark-master
[sbwMacbookPro:/Applications/Utilities/pagePark-master] sbw% npm install
npm WARN deprecated<EMAIL_ADDRESS>Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated<EMAIL_ADDRESS>this library is no longer supported
npm WARN deprecated<EMAIL_ADDRESS>https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated<EMAIL_ADDRESS>fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated<EMAIL_ADDRESS>Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated<EMAIL_ADDRESS>The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated<EMAIL_ADDRESS>Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated<EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
added 305 packages, and audited 306 packages in 18s
3 packages are looking for funding
run npm fund for details
9 vulnerabilities (5 moderate, 4 high)
To address all issues, run:
npm audit fix
Run npm audit for details.
[sbwMacbookPro:/Applications/Utilities/pagePark-master] sbw% npm audit
npm audit report
glob-parent  <5.1.2
Severity: high
Regular expression denial of service - https://github.com/advisories/GHSA-ww39-953v-wcq6
fix available via npm audit fix
node_modules/glob-parent
chokidar  1.0.0-rc1 - 2.1.8
Depends on vulnerable versions of glob-parent
node_modules/chokidar
forever-monitor  >=1.6.0
Depends on vulnerable versions of chokidar
node_modules/forever-monitor
forever  >=0.10.11
Depends on vulnerable versions of flatiron
Depends on vulnerable versions of forever-monitor
node_modules/forever
minimist  <0.2.1
Severity: moderate
Prototype Pollution in minimist - https://github.com/advisories/GHSA-vh95-rmgr-6w4m
fix available via npm audit fix
node_modules/optimist/node_modules/minimist
optimist  >=0.6.0
Depends on vulnerable versions of minimist
node_modules/optimist
flatiron  >=0.3.9
Depends on vulnerable versions of optimist
node_modules/flatiron
forever  >=0.10.11
Depends on vulnerable versions of flatiron
Depends on vulnerable versions of forever-monitor
node_modules/forever
nconf  0.6.9 - 0.7.1
Depends on vulnerable versions of optimist
node_modules/nconf
broadway  0.2.9 - 0.3.6
Depends on vulnerable versions of nconf
node_modules/broadway
9 vulnerabilities (5 moderate, 4 high)
To address all issues, run:
npm audit fix
[sbwMacbookPro:/Applications/Utilities/pagePark-master] sbw%

I can't afford the time it would take to figure out what each of them represents if anything.

Hmm. Maybe I had a point back then. Seen elsewhere recently:
"I learned a few things...
I made a mistake in the instructions, I didn't tell the user how to install Node. I just told them to run npm install as if everyone has it installed. One of our best users got stuck there."

They're completely separate things. If you're trying to win an argument you're misusing this support forum.

Yes they are separate but similar. No argument intended. — I apologize if there is a better forum you can point to to help bootstrap Drummer users.
You are much more knowledgeable than many and your instructions assume more expertise than many have or can easily acquire. The instructions are not wrong, but they assume others are equally experienced or have similar configurations and software versions.
You are occupied elsewhere, and should be … that being the best use of time.
It would be useful if others with your level of expertise could expand on the instructions to avoid some pitfalls. You are on your way to a very useful product if other power users can help bridge the knowledge gap.


Webclient hang up, when using a source expression twice in Page Extension

The PageExtension uses a Source Expression Variable 2 times:
pageextension 50100 CustomerListExt extends "Customer List"
{
    layout
    {
        addfirst(Control1)
        {
            field("mT1-1"; mT1)
            {
                Caption = 'Add First';
                ApplicationArea = All;
            }
        }

        addbefore(Name)
        {
            field("mT1-2"; mT1)
            {
                Caption = 'Add Before';
                ApplicationArea = All;

            }
        }
    }
    var mT1:Text;
}

The result - WebClient hang up, when you try to open the page:

Version:
Creating Container navserver
Version: 14.1.32615.0-W1
Platform: 14.0.32600.0
Generic Tag: <IP_ADDRESS>
Container OS Version: 10.0.17763.503 (ltsc2019)
Host OS Version: 10.0.17763.504 (ltsc2019)

If a reused source expression is forbidden, than the compiler should throw an error or a warning. But however - I guess in older version (including C/Side) this worked.

The fix for this issue has been checked in to the master branch. It will be available in the bcinsider.azurecr.io/bcsandbox-master Docker image starting from platform build number 37287 and VS Code Extension Version 5.0.189952.
If you don’t have access to these images you need to become part of the Ready2Go program: aka.ms/readytogo
For more details on code branches and docker images please read:
https://blogs.msdn.microsoft.com/nav/2018/05/03/al-developer-previews-multiple-releases-and-github/
https://blogs.msdn.microsoft.com/freddyk/2018/04/16/which-docker-image-is-the-right-for-you/


The overlay does not go away

First it worked well, only showing when holding the propick. Then (I think) I took the pick out of my hotbar while it was in the active slot and since then the overlay stays on, no matter what I do. Using the latest version.

Ok it should go away after switching from a slot with a prospecting pick to a normal slot. Also make sure you didn't accidentally activate the "pi showoverlay" aka. RenderTexturesOnMap configoption (this will always render it).
Still this a bug. Will fix it soon.

fixed with release 3.1


Upgrade shaded Jackson versions

We are currently using 2.5.1 for our shaded Jackson version, which was released on 25-Apr-2015. We may want to upgrade to a more recent version.
These is no pressing need to do so, but we can if we want, for new features and bug fixes.
Also note that it probably won't be a drop-in replacement: it appears that there are at least some API changes between 2.5.1 and more recent versions - https://github.com/deeplearning4j/DataVec/issues/309#issuecomment-307991474

I vote for jackson 2.6.5, which is also the version used by Spark 2.1.1


Point In Time Node Stats API Service Layer Changes

Signed-off-by: Ajay Kumar Movva<EMAIL_ADDRESS>Description
This PR has service layer changes for the point in time stats in node stats api.
pit_current : No of open pit contexts.
pit_time:  Time pit contexts held open.
pit_total:  Completed pit contexts
Issues Resolved
#1147
Check List

[ ] New functionality includes testing.

[ ] All tests pass

[ ] New functionality has been documented.

[ ] New functionality has javadoc added

[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Please add a sample output of node stats API in the PR description. I am not sure if I understand what each metric provides just by looking at the name. For example, from PR description, pit_total: Completed pit contexts, does it mean active PIT contexts are not counted under total? If so, why don't we name it as pit_completed?

Please add a sample output of node stats API in the PR description. I am not sure if I understand what each metric provides just by looking at the name. For example, from PR description, pit_total: Completed pit contexts, does it mean active PIT contexts are not counted under total? If so, why don't we name it as pit_completed?

Added the Sample Output in the PR Description.
I agree that some of the stats can be modified into better naming. The reason why we used this format is to make sure we are inline with the other search related stats. All the other search stats are using the same format to emit the node stats response.
Reference:

"search": {
    "open_contexts": 2,
    "query_total": 0,
    "query_time_in_millis": 0,
    "query_current": 0,
    "fetch_total": 0,
    "fetch_time_in_millis": 0,
    "fetch_current": 0,
    "scroll_total": 0,
    "scroll_time_in_millis": 0,
    "scroll_current": 0,
    "pit_total": 1,
    "pit_time_in_millis": 99516,
    "pit_current": 2,
    "suggest_total": 0,
    "suggest_time_in_millis": 0,
    "suggest_current": 0
},

@ajaymovva could you please:

update api specs [1]
create a followup documentation issue [2] to document the payload changes

[1] https://github.com/opensearch-project/OpenSearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/test/cat.shards/10_basic.yml#L11
[2] https://github.com/opensearch-project/documentation-website/

@ajaymovva could you please:

update api specs [1]
create a followup documentation issue [2] to document the payload changes

[1] https://github.com/opensearch-project/OpenSearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/test/cat.shards/10_basic.yml#L11 [2] https://github.com/opensearch-project/documentation-website/

This PR is only for the service layer changes related to node stats.

we will have the follow up rest layer PR which will incorporate the change of update api specs.
we already have the documentation issue created for the pit changes. #674

We use squash and merge policy while merging PRs. That means PR title becomes commit message for the merged PR. Please use imperative mood while writing PR title.

Codecov Report

Merging #4030 (7879a6b) into main (c665e7c) will decrease coverage by 0.20%.
The diff coverage is 91.42%.

@@             Coverage Diff              @@
##               main    #4030      +/-   ##
============================================
- Coverage     70.62%   70.41%   -0.21%
+ Complexity    57073    56967     -106
============================================
  Files          4603     4603
  Lines        274500   274535      +35
  Branches      40206    40209       +3
============================================
- Hits         193856   193319     -537
- Misses        64393    64949     +556
- Partials      16251    16267      +16

Impacted Files
Coverage Δ

...pensearch/index/search/stats/ShardSearchStats.java
60.55% <90.90%> (+3.40%)
:arrow_up:

...org/opensearch/index/search/stats/SearchStats.java
84.74% <91.66%> (+1.73%)
:arrow_up:

...java/org/opensearch/client/indices/DataStream.java
0.00% <0.00%> (-76.09%)
:arrow_down:

.../opensearch/client/indices/CloseIndexResponse.java
17.50% <0.00%> (-60.00%)
:arrow_down:

.../action/admin/indices/flush/ShardFlushRequest.java
50.00% <0.00%> (-50.00%)
:arrow_down:

...cluster/coordination/PendingClusterStateStats.java
20.00% <0.00%> (-48.00%)
:arrow_down:

...search/aggregations/pipeline/HoltWintersModel.java
21.47% <0.00%> (-44.97%)
:arrow_down:

...regations/metrics/AbstractHyperLogLogPlusPlus.java
51.72% <0.00%> (-44.83%)
:arrow_down:

.../java/org/opensearch/search/dfs/AggregatedDfs.java
54.83% <0.00%> (-41.94%)
:arrow_down:

...pensearch/action/ingest/DeletePipelineRequest.java
31.25% <0.00%> (-37.50%)
:arrow_down:

... and 475 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Image is not upload in folder

We have use SSL in our website.When we crop the image from front side ,it will not uploaded in image folder. It is working when we use server without SSL

Sorry - but this doesn't sound related to croppie.  And without seeing any kind of code or errors, I'm not going to be of any help.


SDKS-3340 Added PingAM, PingAIC, PingOne and PingFederate examples

Added (fake) example settings for all the server types we currently support, using the same/similar values as the docs.
Altered the select function to handle "raw" .well-known URIs. I put this first in case they use a PingOne .well-known value, as currently the code would append another /.well-known/openid-configuration string if it sees "pingone" in the URL.

Had an issue where the app would crash when attempting to select an env that didn't return an HTTP status code (i.e DNS didn't resolve).
To try and fix that I've surrounded the "discover" calls with a try...catch, but I don't really know what I'm doing so I think that could use some focus please.

This was done in #451


Updating Text Classification docs (reference and tutorials)

New images and videos for text classification content in ref. docs
New images and videos for text classification tutorials

I have changed the screenshots and uploaded the new video and images for the cleanlab tutorial


Mocking from schema (Gateway)

The subject started here #298
Current implementation only supports mocking for defined under content-type but not from schema.
Kusk should support mocking from schema.
See example below: https://pastebin.com/raw/avYFtZpX

@jasmingacic to take a look at this

We currently have this example that works:
paths:
  /hello:
    get:
      responses:
        "200":
          content:
            application/json:
              example:
                message: Hello from a mocked response!
              schema:
                properties:
                  message:
                    type: string
                type: object
          description: A simple hello world!

but the below example that should have worked but did not:
paths:
  /todos:
    x-kusk:
      mocking:
        enabled: true
    get:
      responses:
        "200":
          description: "ToDos"
          content:
            application/json:
              schema:
                type: object
                properties:
                  completed:
                    type: boolean
                  order:
                    type: integer
                    format: int32
                required:
                  - completed
                  - order
                example:
                  completed: true
                  order: 13

The thing to note is that in the previously working version, example is on the same level as schema and hence why I think it worked.
Please try the result of this, https://github.com/kubeshop/kusk-gateway/pull/1003, pull request that has been merged into main and confirm the issue has been resolved and close this issue.
Thanks.


Is there any mechanism to restrict selecting Microsoft-hosted agents

One of our organization's security policies is to use self-hosted agents only. Is there a mechanism to stop users from choosing the microsfot-hosted agents when configuring/running pipelines?

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

ID: 47625b86-abd5-ee15-6d61-8bcf81861b96
Version Independent ID: be9a6174-a69b-7aed-d584-5f602fcc5eb4
Content: Azure Pipelines Agents - Azure Pipelines
Content Source: docs/pipelines/agents/agents.md
Product: devops
Technology: devops-cicd
GitHub Login: @steved0x
Microsoft Alias: sdanie

Thank you Steve, any update on this topic?

@clix455 Not yet, I just sent another ping to that team to see.

Thank you Steve.

@clix455 I have some information for you, there are a few ways that you could do it:

On a per project basis, you can delete the Azure Pipelines pool by going to the project, project settings, Pipelines agent pool, and then delete it. Then if you decide to restore it you can do so by choosing Add pool, existing. These operations require administrator permissions.

Or you could restrict the readers on the Azure pipelines pool at the org level. Some high level details of this here and there is a Q/A about why a user can't see the pool. I think I will add to it, and include info on if they want to hide it, based on a scenario like yours.

Thank you Steve.


ui-ux : fixed api-key-manager component

Modified the API Key Manager to show users whether the API key is set via environment variables or the UI.
Implemented an API route to check and report the API key status dynamically based on the model provider.
The API key set via the UI is reset when the user switches to a different model provider

bro can you tell me step by step how to run this project on vs code

hi @Adithyan777, I want to merge this for the next release, will you be addressing the changes I have mentioned in the review, so that i can queue up this for next release?

sure, thanks for the update


Dynamic Legend

I am creating charts that get data from a service before they are built. That is also true of the data that builds the legend. I can't seem to create a legend unless I use static data at the top of my controller, before the service is called that gets the data. I also tried creating an empty legend and then populating it with the received data, but the legend remains blank. Am I going about this wrong?

The legend functionality can be greatly improved, I agree. Don't have time now for this, but we accept PR.


guide: GH resuming workflow

Add a self-hosted long-running example to https://cml.dev/doc/cml-with-dvc (or somewhere else)

GH action launches "self-hosted" GCP/AWS using cml runner --reuse --labels=cml and probably --cloud-spot
GH action runs the rest of the workflow on the "self-hosted" runner using runs-on: [self-hosted, cml] and timeout-minutes: 50400
If GH action is about to timeout, CML will restart the workflow

i.e. https://cml.dev/doc/self-hosted-runners?tab=GitHub#allocating-cloud-compute-resources-with-cml
The key is requesting GH's maximum timeout-minutes: 50400 - this signals to CML to restart the workflow just before timeout.
write code to cache results so that the restarted workflow will use previous results (e.g. use https://dvc.org/doc/user-guide/experiment-management/checkpoints#caching-checkpoints and https://github.com/iterative/dvc/issues/6823)

more musings (for cml runner --cloud-spot):
live = dvclive.Live(resume=True)
model = Model(load="model.pkl" if Path("model.pkl").exists() else None)
while (epoch := live.get_step()) < 100:
    history = model.fit(X, Y, epochs=1)
    if epoch % 10 == 0:  # at most 10 epochs are lost upon CML respawing a spot instance
        model.save("model.pkl")
    live.log("loss", history['loss'])
    live.next_step()

Out of curiosity, what makes this p1? Perhaps there are there lots of support cases that could be avoided by or redirected to this? Thanks

lots of support requests over YEARS; super overdue.

deprioritized and frozen. Removing from CML project board for now


Carrier badge component

Description
Carrier logo in a for of a Notification badge.
Visual style

Zeplin:
https://app.zeplin.io/project/5d232cd391be672e1f348f14/screen/5d24789379cc489985cc269b
Interactions
Same as current CarrierLogo.
Additional information
There'll always be just one carrier. If there are more carriers for a particular trip, there will be Kiwi.com supercarrier logo shown (we can send some specific value in that case).
Functional specs
Same as current NotificationBadge (except children probably).

Hi Boris, please use CarrierLogo component for it, it shouldn't be placed into a NotificationBadge (it's not notification after all, also padding would collide with it).
Keep it with rounded corners, for now, we are preparing logos to be able to put them into circles (it crops them weirdly now). When it's done, it will change globally to circles.


Update README.md

Update readme to specify that a PR needs to be opened in our main grants program repo for applications as well as RFPs.

lgtm


Improve display names of interpreters

The prefix 'packaged by conda-forge` should not be added to some of the interpreters.
As this belongs to the root interpreters
@brettcannon @qubitron
We'll need to go come up with a set of rules for the display names of:

Conda, virtual, venv, and other environments.

The following is a WIP:
Format = Version (EnvironmentName EnvironmentType)
Where:

EnvironmentType: is one of the following

pipenv
pyenv
conda
virtualenv

Added needs decision, as @qubitron is working on the display format.
I'm currently working on laying the foundation work to make the above possible (i.e. ensure we have all necessary bits of information to build the display value).

What are the parts of (v03 venv)? Is that directory name and type? Should we separate those out more clearly?
And do we want x86/x64 instead of 32-bit/64-bit for any reason other than it's shorter? 😉

(v03 venv)

v03 - environment name
venv - tool used to create environment (or environment type).

confusing when the directory has a space, e.g. (some bunk venv)?

Agreed. How about using double quotes when necessary?

And do we want x86/x64

Good idea. I went with the later as that's what is returned by python (when using --version).

Maybe ("some bunk" / venv)? ("some bunk": venv)?

@qubitron thoughts.

What about (some bunk: venv)? Double quotes look noisy, and the colon to me says "some bunk is a venv".

Could also be single quotes: ('some bunk': venv). But since macOS 9 is no longer a thing we can probably get away with it not confusing people as to where the directory name ends. 😉

Note:
Registry information is not to be used for display names. See issue #2219

Updated label to Bug as this resolves issue #2219

Here's the agreed format:
Anaconda Python 2.7.14 32-bit (base)
Anaconda Python 2.7.14 32-bit (env-01)
Anaconda Python 3.5.1 64-bit (env-02)
Python 2.7.14 32-bit (v01 pipenv)
Python 3.5.1 32-bit (v02 pipenv)
Python 3.5.1 32-bit (v03 pipenv)
Python 3.5.1 32-bit (v03 pyenv)
Python 3.6.1 32-bit (v03 venv)
Python 3.5.1 32-bit (myenv2 virtualenv)

One mistake I made is getting the name Anaconda. We cannot get this easily on Mac and Linux. My suggestion is to keep things consistent, we change it to include the suffix conda.
E.g.:
Python 2.7.14 32-bit (base conda)
Python 2.7.14 32-bit (env-01 conda)
Python 3.5.1 64-bit (env-02 conda)
Python 2.7.14 32-bit (v01 pipenv)
Python 3.5.1 32-bit (v02 pipenv)
Python 3.5.1 32-bit (v03 pipenv)
Python 3.5.1 32-bit (v03 pyenv)
Python 3.6.1 32-bit (v03 venv)
Python 3.5.1 32-bit (myenv2 virtualenv)

As you can see the first three are conda environments.

If we can't tell the difference between miniconda and Anaconda installs then I say go with the latter for consistency.

@qubitron Ref https://github.com/Microsoft/vscode-python/issues/1362
You've suggested we display the name of the virtual environment instead of venv.
The format we agreed on is:
Python 2.7.14 32-bit (base: conda)
Python 2.7.14 32-bit (env-01: conda)
Python 3.5.1 64-bit (env-02: conda)
Python 2.7.14 32-bit (v01: pipenv)
Python 3.5.1 32-bit (v02: pipenv)
Python 3.5.1 32-bit (v03: pipenv)
Python 3.5.1 32-bit (v03: pyenv)
Python 3.6.1 32-bit (v03: venv)
Python 3.5.1 32-bit (myenv2: virtualenv)

Looking at Python 3.6.1 32-bit (v03: venv), v03 is the folder name. So I believe this addresses issue #1362

I've verified that the interpreter/env list is formatted in the new way.  However, there might be something wrong.  Some of the entries don't have the right info:
Python 2.7.15 64-bit (usr: virtualEnv)
  /usr/bin/python
Python 3.5.2 64-bit
  /usr/bin/python3.5
Python 3.6.5 64-bit (.miniconda3: conda)
  ~/.miniconda3/bin/python
Python 3.6.5 64-bit (usr: virtualEnv)
  /usr/bin/python3
Python 3.7.0 64-bit (test env: conda)
  ~/.miniconda3/envs/test env/bin/python
Python 3.7.0 64-bit
  /usr/bin/python3.7
Python 3.7.0 64-bit (test_env: venv)
  ~/.envs/test_env/bin/python

Note the (usr: virtualEnv) entries.  IIRC, those were previously standalone entries (like 3.5 and 3.7 are).  Furthermore, I don't have any virtualenv environments.
Perhaps this is related to a different issue, but I noticed it here at least. :)

Things look good now.  "System" interpreters are shown correctly and pyenv showed up right.

(Tested as well, looks great)

Looks good with the following changes:

virtualEnv -> virtualenv
venv space -> 'venv space'


when creating CI you have to put a space in xml description

Hi,
When trying to create a CI, you have to put a space in xml description and then save it. Otherwise, it will not work.
When CI ID and Ci Type is chosen, I do not want to touch the XML Descriptor.
See the attachment for the page.

We are using version XLR 5.0.0 and XLD 5.5.1.

I just checked this on the master branch and this works as expected. Also the Xml Descriptor isn't required anymore.


flash address

The demo hard codes let flash_addr = 0x9000;.
I'm wondering if this address always works or how I can find a valid address.
While writing this issue I found https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/partition-tables.html which states that the default partition table is at 0x8000 and is 0x1000 long. That would fit the aforementioned flash address nicely.
So maybe just a comment in the example is missing. What do you think?

In the default partition table 0x9000 is NVS (nvs,      data, nvs,     0x9000,  0x6000,) so it's fine to use it
Probably worth to mention that in a comment about it in the example

This crate moves to the esp-hal repo. Will be done there


Update to zig 0.11 and ESP-IDF v5.1.2

Tested on Lolin C3 Mini board with plain LED
Printing to USB UART also works but printing "tag" inside esp_log_write() doesn't.
LED strip code removed as it can't be used currently from Zig - not possible to use bitfields inside of C structs (see #1499)

Thanks for updating the ESP IDF stuff, but the GPIO changes don't work on my ESP32C3.
I'll take the IDF changes and (some) of the build.zig changes, but ultimately an ESP32C3 is the device I have and what I can test on. This project isn't meant to support multiple targets, it's just a starting point for integrating Zig code into the ESP IDF build system.


Refactoring: Improving the account storage system (PersistentSettings) and saving the account type (temporary or permanent)

Fixed by 633dd2a commit

Fixed by 633dd2a commit


[BUG]  static pv, global config Not effective

What happened:
mount pod resource no change
What you expected to happen:
user global config resource
How to reproduce it (as minimally and precisely as possible):

global config

mountPodPatch:
    - resources:
        limits:
          cpu: "2"
          memory: 4Gi
        requests:
          cpu: 100m
          memory: 256Mi
     - pvcSelector:
          matchLabels:
            custom-resources: "true"
          resources:
            requests:
              cpu: 100m
              memory: 512Mi

pvc 增加label

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: fs-538424121676009018
  namespace: ns-2263
  lables:
    custom-resources: "true"

after delete mount pod，the resource Still cpu 100m mem 256m.

Anything else we need to know?
Environment:

JuiceFS CSI Driver version (which image tag did your CSI Driver use):0.25.2
Kubernetes version (e.g. kubectl version):1.20.1
Object storage (cloud provider and region): ceph =
Metadata engine info (version, cloud provider managed or self maintained):
Network connectivity (JuiceFS to metadata engine, JuiceFS to object storage):
Others:

What is the volumeHandle of PV ?

What is the volumeHandle of PV ?

pv:
apiVersion: v1
kind: PersistentVolume
metadata:
  name: fs-538424121676009018-2263-pv
spec:
  accessModes:
  - ReadWriteMany
  capacity:
    storage: 100Gi
  csi:
    driver: csi.juicefs.com
    fsType: juicefs
    nodePublishSecretRef:
      name: juicefs-secret
      namespace: juicefs
    volumeAttributes:
      juicefs/clean-cache: "true"
    volumeHandle: fs-538424121676009018-2263-pv
  mountOptions:
  - subdir=/fs-538424121676009018
  - cache-dir=/data/juicefs_cache
  - cache-size=10240
  persistentVolumeReclaimPolicy: Retain
  volumeMode: Filesystem

pvc
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: fs-538424121676009018
  namespace: ns-2263
  labels:
    custom-resources: "true"
spec:
  accessModes:
  - ReadWriteMany
  resources:
    requests:
      storage: 100Gi
  storageClassName: ""
  volumeMode: Filesystem
  volumeName: fs-538424121676009018-2263-pv


Class not found.

Traceback (most recent call last):
File "d:\DATA_SCIENCE\Video-Captioning\Inefficient-works\salesforceVC\tiktok_video.py", line 1, in
from tiktok_scraper import TikTokScraper
ImportError: cannot import name 'TikTokScraper' from 'tiktok_scraper' (C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\tiktok_scraper_init_.py)

Same error

Hello! I'm sorry for the delay in answering. You can use this code, it works currently.
https://github.com/vgvr0/TikTok-Video-Downloader-using-Python-and-yt-dlp


Inspired by zach's push yesterday

update Conda yaml to use python 3.9 and no pip.. this was causing issues on Mac
update readme to be more intuitive for first time users
added functionality to allow for user_dem (Quantum 21' DEM)
added automatic creation of snow depth difference raster
fixed white box logic that was skipping entirely
Not fixed --> logic at the very very end of align script returned RETURN CODE 0 after successfully completing the run. Not sure what was happening there
Not fixed --> I have installed the binaries for WBT and think I could pretty easily write code to use that instead if IOT gets back that they don't want to update Kelvin

Love it! Super strong work man!

Resolved most of the conflicts. Feel free to merge whenever feels good to you


ListenPerformancePrometheusTracerMiddleware doesn't work

subject = 'data_connector.public.BINANCE.BTC/USDT.l2_book'
I guess it's because of "/"
it raise this error but saliently

I confirm the problem is "/"


print_summary missed important error

To run reciprocal space scans, I have to calculated the angles in spec and then dump them in a textfile that I load into python.  Sometimes, I forget to "Cntrl S" on jupyterhub so the file in my directory that has the diffractometer positions and energy is empty when i copy to the beamline workstation directory.
This was the case when I ran print _summary(), but nothing stopped the text generation to the terminal.  It is too much to go through every line.  check_limits() works, it found the empty file in the file ending in '...neighbor.txt'.
This was applied to plan_100K_dinner_20182504()
def Escan_fixed_q(file ='Escan_112_100K_L3.txt' ):
    Qs = np.loadtxt(file)
    where = [delta.user_readback.value, theta.user_readback.value, gamma.user_readback.value, pgm.energy.setpoint.value ]
    for q in Qs:
        yield from mv(delta, q[3], theta, q[4], gamma, q[5], pgm.energy, q[6])
        yield from count([fccd, pgm.energy], md={'reason':'fixed Q {} {} {}'.format(q[0],q[1],q[2])})
    yield from mv(delta, where[0], theta, where[1], gamma, where[2], pgm.energy, where[3])

def plan_100K_dinner_20182504():
    #yield from mv(fccd.exposure, (0.1,0.1,10))
    #yield from ct_dark(50)
    #yield from Escan_fixed_q('Escan_112_100K_L3.txt')
    yield from Escan_fixed_q('Escan_112_100K_L3_exact.txt')
    yield from Escan_fixed_q('Escan_112_100K_L3_exact_neighbor.txt')

Hi Andi, Can I ask for some clarification. I suspect that the issue here is the loop, for q in Qs in Escan_fixed_q. Is it correct that the output only printed the move statements from the final yield and not from any of the yields inside the loop?
From my point of view this is a very specific case where print_summary won't catch an error related to a very specific custom plan. I do not see anyway to catch such a specific error in print_summary itself as it is agnostic about details of the plan and can only ensure that the 'messages' returned by the plan are actionable. In Escan_fixed_q an empty file results in an empty Qs dictionary and hence the part in the loop never generates the messages to be checked by print_summary. Does anyone else from DAMA have any ideas?
The best solution for me here is to add to Escan_fixed_q an if Qs loop of the type:
if Qs:
     for q in Qs:
         yield from mv(delta, q[3], theta, q[4], gamma, q[5], pgm.energy, q[6])
         yield from count([fccd, pgm.energy], md={'reason':'fixed Q {} {} {}'.format(q[0],q[1],q[2])})
         yield from mv(delta, where[0], theta, where[1], gamma, where[2], pgm.energy, where[3])
else:
   raise ValueError('the specified file is empty')

Or alternatively, write a function that loads the file that checks if the file is empty, along the lines of.
def load_and_check_file(filepath):
    Qs = np.loadtxt(file)
    if not QS:
        raise (ValueError('the specified file is empty')
    return Qs

This would then replace the first line in the Escan_fixed_q plan and ensure that an error is generated any time the plan is run (including when print_summary is used).
Hopefully this helps.

I agree with @awalter-bnl , I don't see how we could reasonably catch that your plan did not do something you expected it to (we can only act on what it did do).
Of the two suggestions, I think the second one is better (as it localizes the error to the code that is at fault so when you get the trace back you see the if not len(Qs): immediately above the line that raised and then immdiantly above that you see the loadtxt).
I'm going to close this as I think the underlying issue is that print_summary is too verbose / we need better previewers.
@ambarb can you please comment on https://github.com/bluesky/bluesky-enhancement-proposals/issues/13 ?

I understand that you want me to write better code, but I should not have to write this code to do this work. There is currently not a pyhkl engine that will do these calculations for our diffractometer and this is the solution that I was able to implement.
That said, in the past if I have something like :
scans = [356]
t = db[scans[0]].table()

I get an exception about scans not be iterate-able unless I use scans = [356,].  With this knowledge, I would have expected an exception when the text file is empty because Qs is not a list any longer (an empty text file).  Is this incorrect thinking on my part?  How is this flawed logic?  It seems that python should inherently catch this error that I created and it should not depend on the user to understand how print_summary works at the lower levels.
Even I did not have to do the experiment in this way,  if we (as in a facility) are going to start to use analysis code of some sort to then decide what to do next in an experiment, will people use output files to do this in prototyping before ophyd devices are built to handling these things?  If the answer is maybe, then perhaps this is something to think about in advance of having a problem that isn't as innocuous as the example with Qs.


ability to compose other stitches components or react components

The same as Styled Components or Emotion, I'd like to:
const BaseButton  = styled.button({})
const MyButton = styled(BaseButon, {})

and
function BaseButton(props) {
  return <button {...props} />
}

const MyButton = styled(BaseButton, {})

Not sure about the API, whether it would be an arg or the styled function returns another function (like SC and Emotion)

Done https://github.com/christianalfoni/stitches/commit/241a2bbec556fb2c80a547856a0f9efc8cdb097c


Feature: Expose worker stats

Is your feature request related to a problem? Please describe.
No
Describe the feature you are requesting, as well as the possible use case(s) for it.
Expose worker stats such as CPU, memory and disk usage. Also, add the number of running tasks and the total number of tasks running
The worker should expose a liveness or health endpoint where the manager can continuously check that it is alive before assigning it a job
Indicate the importance of this feature to you.
Must-have
Anything else?
No response

Duplicate of https://github.com/absmach/propeller/issues/10


License

I would like to use your grammar for Grace but I don't know what licensing terms you're distributing it under. Any chance you could pick one from here: http://choosealicense.com?

Thanks for pointing this out. The project is now licensed under GPLv3+.

Thanks!

@zmthy Your grammar is now used to highlight Grace code on GitHub (files and code snippets in Markdown documents)! (See github/linguist#2071 for more information.)

Great, this has helped me find some mistakes (I don't actually use this highlighting personally), and I've tidied up the syntax groups to get better colouring on Github. Looking forward to the next update.

Great!

Looking forward to the next update.

It usually happens every couple weeks with the next release.


MR talks post

This is great @rita-o ! Just a tiny thing before we merge. Can you set the feature option to false on one of the posts that is currently featured? Thanks!

Yes! I think its good now
De: Eneko @.>
Enviado: Friday, February 4, 2022 4:06 PM
Para: @.>
Cc: @.>; @.>
Assunto: Re: [ismrm-iberian/ismrm-iberian.github.io] MR talks post (PR #104)
This is great @rita-ohttps://github.com/rita-o ! Just a tiny thing before we merge. Can you set the feature option to false on one of the posts that is currently featured? Thanks!
—
Reply to this email directly, view it on GitHubhttps://github.com/ismrm-iberian/ismrm-iberian.github.io/pull/104#issuecomment-1030071137, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEHIPOPL54KMB7L6PMUDGPDUZPTNLANCNFSM5NSAOQLQ.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>


Multi line title.

The title is now a contenteditable div which stretches and wraps to behave like the editor.
It also tries to seamlessly move the cursor between the editor and title to make one coherent editing experience.
Refs: https://github.com/TryGhost/Ghost/issues/7754

Coverage remained the same at 75.082% when pulling 2c777ceac5dbfa1f9ec4c21c12ecbdad108e8a18 on disordinary:newer-title into e87762c7236078778aceb48ed27a7be98df3c700 on TryGhost:master.

Changes Unknown when pulling d2af0763eaeae6aadce17a4f35b4708e75cbe742 on disordinary:newer-title into ** on TryGhost:master**.

Changes Unknown when pulling d2af0763eaeae6aadce17a4f35b4708e75cbe742 on disordinary:newer-title into ** on TryGhost:master**.

Changes Unknown when pulling d2af0763eaeae6aadce17a4f35b4708e75cbe742 on disordinary:newer-title into ** on TryGhost:master**.

I can merge as it'll be good to get more people using it but I think there might still be some tweaks needed?

At least in Chrome the up/down cursor positioning jumps doesn't seem to work but it is possible to use up/down to move between the two elements
{{gh-title}} should probably be an addon {{kg-title}} component
I'm not sure we need to be using {{gh-view-title}} for the editor title - it means we now have nested <h2> elements and I believe the old mobile menu button that it includes should be going away now that we have the buttons at the bottom of the screen on mobile

There is an issue around the up and down positioning, Up doesn't work because for some reason the content editable no longer responds to text input in Firefox after the range is manually created in it. We decided simply to merge it and spend some time on it when more important tasks were finished. There is an issue relating to it here: https://github.com/TryGhost/Ghost/issues/8191
The tagname on {{gh-title}} should definitely be a div, I'll fix that, re-name the component, and re-commit.

Changes Unknown when pulling d237c471c831b25dd5321bfec91e5bcce5b53ed4 on disordinary:newer-title into ** on TryGhost:master**.

@disordinary I'm hitting infinite loops when editing the title 😕 Chrome becomes unresponsive pretty quickly but what I could see was pointing to the MutationObserver

I'm not seeing them at all, what are you doing trigger it?

Hmmm, maybe extensions like the gramarly extension could do it?  It creates HTML mutations that the editor will try and remove because it only wants a plain text title.
Do you have any extensions that might cause mutations?
I'll fix that possibility.

No extensions that I know of but I've just tried again without your latest commit and I'm not able to reproduce, no idea what Chrome was doing earlier but even through multiple restarts it was freezing up 😕
Is there a chance that the latest commit has broken the title event handling in Chrome or is the Travis failure a bit of a random error?

Visually it's working, I ran the tests again and it failed somewhere else. I'm running them a third time so we'll see.

Changes Unknown when pulling 2122fdf7622dc70365d7781a2a21dac6c08e3b2f on disordinary:newer-title into ** on TryGhost:master**.


[ To Main ] - DESENG-508 - Updated Keycloak unit test for new CSS API

Issue #: https://apps.itsm.gov.bc.ca/jira/browse/DESENG-508
Description of changes:
Updated Keycloak Unit Tests for New CSS API Integration.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the met-public license (Apache 2.0).

@ratheesh-aot So given the recent development that we won't be using the CSS API anymore, do you think any of this work can be preserved for later? 😓

@Baelx Some API tests can be useful again. Also to make sure all tests are working until we start on the new Role ticket and to make sure some redundant "add to group " functionalities are removed, we may merge this PR for now. And update it later


Account Screen - chainnet type tag

https://xd.adobe.com/view/1b7355c9-e125-47f4-895c-1a6d1d5dc438-4e20/screen/fbe50bdd-0318-4042-9d73-4e6d5d7c46a6/

Verified this issue on dev app v2.0.70(438)


"node-ipc" vulnerability fixes.

Please check if the PR fulfills these requirements:

[x] After these changes, the app was run and still works as expected
[ ] Tests for these changes were added (if applicable)
[x] All existing unit tests were run and still pass

Please specify the type of change this PR introduces (Bug fix, feature addition, content update, chore, etc.):
Additional Notes:
Note: when I ran npm run lint it changed a bunch of stuff in unit test files. There's still a bunch of linting warnings, but we don't need to fix those right away.

Deployed the OpenShift change and the artifacts build succeeded. To adopt these changes in your local environment, please run npm i to install the new packages.


Added 3 slack params to global configuration :

bot username
bot icon  url
bot icon emoji
These params are used for slack webhook enhancement.

Hi @mrik974
I've just seen this pull request. I did some refactorings to the settings-system in another pull-request (#32, not yet merged). I think it is easier to add your configs after this is merged, because it needs less code then.
Also please don't format the whole files, only touch the lines you have changed. You have replaced all spaces with tabs. This creates big diffs, "breaks" git annotate and creates more conflicts.

Hi,
Thank you for your answer. I will be more careful with my IDE settings, for the tabs/space difference.
Will your settings refactoring affect the branch 1.7 ? As I’m working with an older version of Stash I can’t test my code on the newest branches you made.

On 08 Dec 2015, at 16:16, Benjamin Neff<EMAIL_ADDRESS>wrote:
Hi @mrik974 https://github.com/mrik974
I've just seen this pull request. I did some refactorings to the settings-system in another pull-request (#32 https://github.com/pragbits/stash2slack/pull/32, not yet merged). I think it is easier to add your configs after this is merged, because it needs less code then.
Also please don't format the whole files, only touch the lines you have changed. You have replaced all spaces with tabs. This creates big diffs, "breaks" git annotate and creates more conflicts.
—
Reply to this email directly or view it on GitHub https://github.com/pragbits/stash2slack/pull/30#issuecomment-162911736.

Oh, didn't see this PR is for an older branch. My refactoring is for the latest version.

Sorry, not accepting new feature in the old branch, only bug fix. Please add your PR to the latest master branch.

NOTE: I've manually added your changes to the master branch (see this: https://github.com/pragbits/stash2slack/commit/c617bfef6ca50205eadffb0f13ee3505f23c1fd0)

(However, it seems not working yet, still working on it)

Thank you. I couldn't work on your latest branch since I don't work on the latest bit bucket server. I can still be here for help if you need.
Emeric LEBON
06 84 85 15 72
Envoyé de mon iPhone

Le 21 déc. 2015 à 19:52, Pragmatic Bits<EMAIL_ADDRESS>a écrit :
(However, it seems not working yet, still working on it)
—
Reply to this email directly or view it on GitHub.

If you have a runtime exception consider adding default parameters on deserialization. I had a hard time understanding that part.
Emeric LEBON
06 84 85 15 72
Envoyé de mon iPhone

Le 21 déc. 2015 à 19:52, Pragmatic Bits<EMAIL_ADDRESS>a écrit :
(However, it seems not working yet, still working on it)
—
Reply to this email directly or view it on GitHub.

It is not that. It simply not showing the emoji and image if I add them to the payload.
Example:
{
"text": "Test post",
"channel": "#test01",
"username": "test-bot",
"icon_url": "https://slack.com/img/icons/app-57.png",
"icon_emoji": ":monkey_face:"
}

The Emoji icon must be a Slack compatible code, not the emoji itself. Like :slack:
Sorry for not having documented this part enough.

On 22 Dec 2015, at 11:17, Pragmatic Bits<EMAIL_ADDRESS>wrote:
It is not that. It simply not showing the emoji and image if I add them to the payload.
Example:
{
"text": "Test post",
"channel": "#test01",
"username": "test-bot",
"icon_url": "https://slack.com/img/icons/app-57.png https://slack.com/img/icons/app-57.png",
"icon_emoji": ""
}
—
Reply to this email directly or view it on GitHub https://github.com/pragbits/stash2slack/pull/30#issuecomment-166574420.

Does not matter, still not working:
{
	"text": "Test post",
	"channel": "#test01",
	"username": "test-bot",
	"icon_url": "https://slack.com/img/icons/app-57.png",
	"icon_emoji": ":slack:"
}

If they are correctly sent in json, Slack should accept these parameters. I use a custom icon url  (https://cdn1.iconfinder.com/data/icons/simple-icons/4096/bitbucket-4096-black.png) and a custom emoji I’ve created from it, and it’s working for me.
I haven’t changed the code since my pull request, so I don’t know what the problem can be. Does the username work at least ?

On 22 Dec 2015, at 11:21, Pragmatic Bits<EMAIL_ADDRESS>wrote:
Does not matter, still not working:
{
"text": "Test post",
"channel": "#test01",
"username": "test-bot",
"icon_url": "https://slack.com/img/icons/app-57.png",
"icon_emoji": ":slack:"
}
—
Reply to this email directly or view it on GitHub https://github.com/pragbits/stash2slack/pull/30#issuecomment-166575424.

I think this is the Icon that is used as avatar for the bot, you can configure this also in slack. And in slack you can set an Image OR an Emoji, so I don't know what happens when you set both.
Also since this is the avatar for the bot for Bitbucket you should not use the slack-icon (https://slack.com/img/icons/app-57.png) as default, because I think it would override the settings configured in slack (not tested this) and then its weird when the bitbucket bot has a slack icon by default.

The user name works. I don't get back the emoji nor the custom image displayed in the slack client (I am using Mac OS X slack client)

Anyway, slack seems to accept the parameters, I just don't see it in the client at all when I tried to verify. Maybe it is an issue on my end but I don't understand what is the problem

If Slack correctly receives them, then it's effectively a problem with your client. Which is weird, because I also use the Mac OS client, and it's only an integrated webview of their website...
Emeric LEBON
06 84 85 15 72
Envoyé de mon iPhone

Le 22 déc. 2015 à 11:47, dszabo<EMAIL_ADDRESS>a écrit :
Anyway, slack seems to accept the parameters, I just don't see it in the client at all when I tried to verify. Maybe it is an issue on my end but I don't understand what is the problem
—
Reply to this email directly or view it on GitHub.

OK, I didn’t get that part. You are right, the emoji may not be useful. I set up the default slack icon because I didn’t know if I had the right to put the official bitbucket one :).

On 22 Dec 2015, at 11:43, Benjamin Neff<EMAIL_ADDRESS>wrote:
I think this is the Icon that is used as avatar for the bot, you can configure this also in slack. And in slack you can set an Image OR an Emoji, so I don't know what happens when you set both.
Also since this is the avatar for the bot for Bitbucket you should not use the slack-icon (https://slack.com/img/icons/app-57.png https://slack.com/img/icons/app-57.png) as default, because I think it would override the settings configured in slack (not tested this) and then its weird when the bitbucket bot has a slack icon by default.
—
Reply to this email directly or view it on GitHub https://github.com/pragbits/stash2slack/pull/30#issuecomment-166578652.

What happens when you use an empty string as default (for url and emoji)? Does it use the the icon configured in slack? Or maybe only send the icon to slack if its configured? I think the default should be that it uses the icon that is configured in slack.

You can try this release out: https://github.com/pragbits/stash2slack/releases/tag/2.0.2
Note that I could not verify the emoji nor the icon url, it is simply not working for me.

I’m sorry, I can’t try it out. We don’t run the latest version of Stash, we can only work on the version for which I made the pull request :(.

On 22 Dec 2015, at 14:13, Pragmatic Bits<EMAIL_ADDRESS>wrote:
You can try this release out: https://github.com/pragbits/stash2slack/releases/tag/2.0.2 https://github.com/pragbits/stash2slack/releases/tag/2.0.2
Note that I could not verify the emoji nor the icon url, it is simply not working for me.
—
Reply to this email directly or view it on GitHub https://github.com/pragbits/stash2slack/pull/30#issuecomment-166613015.

@mrik974 you can use the Atlassian Plugin SDK to test the plugin with the latest version :)


Look into random seed usage

When I run https://github.com/asreview-tuning/asreview-simulation/tree/f9771e45f4c57c15d9894aaf655eea74a9550c0f, all the tests pass, but if I look into results.sql order, the prior sample is different, and hence the rest is different. I suspect the difference is due to how the random seed is being used and where is it applied.

[x] for priors init_seed
[x] for queried part, seed

done for now, closing


8.1.0 Crash on write_dns

We faced crashes on v8.1.0 when the DNS server gets slow.
[ 0  ] libpthread-2.17.so waitpid                                                ( :undefined           )
[ 1  ] traffic_server     crash_logger_invoke(int, siginfo_t*, void*)            ( Crash.cc:165         )
[ 2  ] libpthread-2.17.so 0x7fbfcaebd630                                         ( :undefined           )
[ 3  ] libtscore.so.8.1.0 ink_atomiclist_push                                    ( ink_queue.cc:533     )
[ 4  ] traffic_server     ProtectedQueue::enqueue(Event*, bool)                  ( ProtectedQueue.cc:52 )
[ 5  ] traffic_server     write_dns(DNSHandler*, bool)                           ( DNS.cc:undefined     )
[ 6  ] traffic_server     DNSHandler::mainEvent(int, Event*)                     ( DNS.cc:956           )
[ 7  ] traffic_server     NetHandler::waitForActivity(long)                      ( UnixNet.cc:519       )
[ 8  ] traffic_server     non-virtual thunk to NetHandler::waitForActivity(long) ( UnixNet.cc:undefined )
[ 9  ] traffic_server     EThread::execute_regular()                             ( UnixEThread.cc:278   )
[ 10 ] traffic_server     spawn_thread_internal(void*)                           ( Thread.cc:85         )
[ 11 ] libpthread-2.17.so start_thread                                           ( :undefined           )

(gdb) bt
#0  0x00007fe90c4e61d9 in waitpid () from /lib64/libpthread.so.0
#1  0x000055c6a88f8024 in crash_logger_invoke(int, siginfo_t*, void*) (signo=11, info=0x7fe8ff5090b0,
    ctx=0x7fe8ff508f80) at traffic_server/Crash.cc:165
#2  <signal handler called>
#3  ink_atomiclist_push (l=0x100b10, item=0x7fe90a9e4d80) at ink_queue.cc:533
#4  0x000055c6a8b03f83 in ProtectedQueue::enqueue(Event*, bool) (this=0x100b10, e=0x7fe90a9e4d80,
    fast_signal=false) at ProtectedQueue.cc:52
#5  0x000055c6a8a46224 in write_dns_event (h=0x7fe90674ec00, e=0x7fe8ff302b00, over_tcp=<optimized out>)
    at /usr/src/debug/bazinga-trafficserver-8.1.0/iocore/eventsystem/P_UnixEvent.h:30
#6  write_dns(DNSHandler*, bool) (h=0x7fe90674ec00, tcp_retry=<optimized out>) at DNS.cc:1038
#7  0x000055c6a8a42717 in DNSHandler::mainEvent(int, Event*) (this=0x7fe90674ec00,
    event=<optimized out>, e=<optimized out>) at DNS.cc:956
#8  0x000055c6a8ad86fe in NetHandler::waitForActivity(long) (this=<optimized out>,
    timeout=<optimized out>) at UnixNet.cc:519
#9  0x000055c6a8ad8bfd in non-virtual thunk to NetHandler::waitForActivity(long) ()
#10 0x000055c6a8b05d81 in EThread::execute_regular() (this=0x7fe8ff60dc40) at UnixEThread.cc:278
#11 0x000055c6a8b04b0c in spawn_thread_internal(void*) (a=0x7fe90a995320) at Thread.cc:85
#12 0x00007fe90c4deea5 in start_thread () from /lib64/libpthread.so.0
#13 0x00007fe90b8fc8dd in clone () from /lib64/libc.so.6

It looks like ProtectedQueue on frame 4 is pointing to an invalid address.
(gdb) frame 4
#4  0x000055c6a8b03f83 in ProtectedQueue::enqueue(Event*, bool) (this=0x100b10, e=0x7fe90a9e4d80,
    fast_signal=false) at ProtectedQueue.cc:52
52	  bool was_empty       = (ink_atomiclist_push(&al, e) == nullptr);
(gdb) p this
$12 = (struct ProtectedQueue *) 0x100b10

This might be made by referring thread_holding of unlocked mutex on write_dns_event.
(gdb) frame 6
#6  write_dns(DNSHandler*, bool) (h=0x7fe90674ec00, tcp_retry=<optimized out>) at DNS.cc:1038
1038	        if (h->ns_down[h->name_server] || !write_dns_event(h, e, over_tcp)) {
(gdb) p *h->mutex.m_ptr
$13 = {<RefCountObj> = {<> = {_vptr$ForceVFPTToTop = 0x55c6a8dc1e78 <vtable for ProxyMutex+16>},
    m_refcount = 8}, the_mutex = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0,
      __kind = 0, __spins = 0, __elision = 0, __list = {__prev = 0x0, __next = 0x0}},
    __size = '\000' <repeats 39 times>, __align = 0}, thread_holding = 0x0, nthread_holding = 0}

https://github.com/apache/trafficserver/blob/c080cc1ec39e21b04ba28e76a6ad80927b71f798/iocore/dns/DNS.cc#L1144

I'm pretty sure this happens with SplitDNS. The DNSHandler mutex of SplitDNS is not locked.


Issues Deploying Application Built with GribApi.NET

Hello,
I have been successful at building and running an application that uses GribApi.NET from my workstation with Visual Studio 2015 and using nugget for the GribApi.NET package, however, I am having issues deploying that application to a server machine.
I have set the GRIB_API_ENVIRONMENT variable to C:\Apps and the file "C:\Apps\Grib.Api\lib\win\x64\Grib.Api.Native.dll" does exist at that location.  I installed the vc_redist.x64 and vc_redist.x86 (VS 2015 Redist, I believe) on the target server (Windows Server 2016), but I still get the error below.  I suspect there is some dependent DLL that is not found when the application runs.  Is there a document that describes install pre-reqs and how to deploy/install an application to a non-development machine?
System.TypeInitializationException: The type initializer for 'Grib.Api.GribFile' threw an exception. ---> System.Exception: Can't load DLL C:\Apps\Grib.Api\lib\win\x64\Grib.Api.Native.dll ---> System.ComponentModel.Win32Exception: The specified module could not be found
--- End of inner exception stack trace ---
at Grib.Api.Interop.Util.Win32.LoadWin32Library(String libPath) in c:\Users\eric\GribApi.NET\src\GribApi.NET\Grib.Api\Interop\Util\Win32.cs:line 36
at Grib.Api.GribEnvironmentLoadHelper.BootStrapLibrary() in c:\Users\eric\GribApi.NET\src\GribApi.NET\Grib.Api\GribEnvironmentLoadHelper.cs:line 17
at Grib.Api.GribEnvironment.Init() in c:\Users\eric\GribApi.NET\src\GribApi.NET\Grib.Api\GribEnvironment.cs:line 66
at Grib.Api.GribFile..cctor() in c:\Users\eric\GribApi.NET\src\GribApi.NET\Grib.Api\GribFile.cs:line 46
--- End of inner exception stack trace ---
at Grib.Api.GribFile..ctor(String fileName)

Ideally the Grib.Api.dll and the Grib.Api directory are in the same folder as your assemblies.
Is the Grib.Api directory in C:/Apps? That's where it's looking.

0.7 is built against VC13 Redistrib. Can you make sure that's installed? Or try v1.0.0-beta, which is built against VC15. You use the modules view in VS to see what binaries are getting loaded locally and then compare that to your sever. Does the C:/Apps setup work on your dev machine?

You can also use ProcMon to see what modules it's trying and to load and which ones fail.

Thanks Eric, I was having some trouble initially getting the GribAPI.dll to load in my development environment, so I set the location VIA code (Environment.SetEnvironmentVariable("GRIB_API_DIR_ROOT", @"C:\Apps");) and that worked, but the same setup was not working on the server.  The ProcMon suggestion was helpful - It showed that the system could not find the "C:\Windows\System32\msvcr120.dll" file (among other places it checked), which a Google search revealed that this is indeed the 2013 VC Redist (https://www.microsoft.com/en-gb/download/details.aspx?id=40784) where I had the 2015 version installed.  Once I uninstalled VC2015 installed VC2013 on the server, it was able to find the supporting DLLs.
I'm not sure if I had inadvertently installed VC2013 in my dev environment or is was there from a previous version of Visual Studio, but it does show up in Installed Programs, so that is why it worked in the dev environment.

Glad ProcMon helped. It's a powerful debugging tool.
Is everything working for you now?

Yes, I am able to read the GRIB files now, the key was getting the right VC distribution.
Thanks!


feat: add sample code for expense parser (folder expense-parser-python)

Hi @jiya-zhang - good news, we've automatically resolved several of the linting issues with the OwlBot post-processor.
Please also ensure that your files include a copyright header at the top.. You can look at other examples in the repo.
Thanks!


Work It in OPENSHIFT Cluster?

I think that the openshift api is not the same
GIN] 2024/01/25 - 10:50:21 | 404 |      13.464µs |       <IP_ADDRESS> | GET      "/api/kube/v1/contexts/####/#########/#####/resources/"

I haven't tried it with OpenShift. In general, it should work but some extra tweaks may indeed be needed. Adding the OpenShift support is definitely a good idea - hopefully, I'll have time for it at some point.


chore(deps): bump https://github.com/zeebe-io/zeebe-cluster-helm from 0.0.142 to 0.0.143

Update zeebe-io/zeebe-cluster-helm from 0.0.142 to 0.0.143
Command run was jx step create pr chart --name zeebe-cluster --version 0.0.143 --repo https://github.com/zeebe-io/zeebe-full-helm.git

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign salaboy
You can assign the PR to them by writing /assign @salaboy in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


array.map lose literal types

TypeScript Version:  3.1.0-dev.20180906

Search Terms:
Code
interface Item {
    x: number;
    y: 'a' | 'b'
}
var list:Item[] = [].map(it => ({x: 1, y: 'a'}))

Expected behavior:
No error
Actual behavior:
Type 'string' is not assignable to type '"a" | "b"'.

Root cause is #241

This will be fixed by #40311, see the comment I just left on #33158.

It won't be fixed by #40311 unfortunately (see the "Future Work" section in the PR writeup)

Well crud.  This is all my fault, I had a bunch of related tabs open and posted this comment in a few of them where I thought the issue being reported was the same -- this wasn't one of them.  Sorry!

Don't sweat it, I had the same enthusiasm at first. 😅


Update Data Exploration

Restructures and reformats the Data Exploration page. Adds consistent headers (like: Syntax, Description of Syntax, Examples, Common Issues) for each section to make the doc easier to parse and understand.
It updates and edits all of the content on the page. I tried to include a lot more syntax-specific information.
Fixed issues:
#796: Creates a section dedicated to how to specify a measurement(s) in the FROM clause, including how to fully qualify the measurement.
#536: Changes the offset_interval examples to clarify its function. I spent a lot of time on this and am very worried I've made it worse.

 While not always necessary, we recommend that you double quote identifiers.

Technically identifiers that start with a digit must also be quoted. I think that's worth mentioning here, since starting an identifier with a digit is common enough.
Identifiers must be double quoted if they contain characters other than [A-z,0-9,_], if they begin with a digit, or if they are an InfluxQL keyword. While not always necessary, we recommend that you double quote identifiers.
line 387:
WHERE [<cond_expr> [(AND|OR) <cond_expr>]…]
<cond_expr> = [ field_key | tag_key | time_condition ] binary_operator [ 'string' | integer | float | boolean | "RFC3339_timestamp" ]
line 415:
Is regex valid for field comparisons in 1.1?

line 636:
GROUP BY <tag> queries group query results by a user-specified set of tags.
line 653:
maybe mention that the order of the GROUP BY tags or times is irrelevant?
line 785:
Mention that because there are only two tags the output is identical to the above, where we explicitly specified each of the two tags
line 830:
that query wouldn't produce the output shown, as "location" is not part of it.
Line 935:
reword to something like The following query covers a 12-minute time range and groups results into 12 minute intervals, but it returns _two_ results.
line 943:
field output would be called "count", as that is the function, not mean
line 950:
InfluxDB uses preset round-number time boundaries for GROUP BY intervals, independent of any time conditions in the WHERE clause. When it calculates the results, all returned data must occur within the query's explicit time range but the GROUP BY intervals will be based on the preset time boundaries.

line 1079:
I still wasn't sure at first if the table that follows was with or without the offset. Since we give the offset query first, it's strange to see the results in the opposite order.
I think it would be helpful to explicitly state that we're looking at the last query results first.
The time boundaries and returned timestamps for the query without the offset_interval adhere to InfluxDB's preset time boundaries. Let's first examine the reults without an offset:
line 1187:
It's a little confusing that shifting the buckets forward by +6m is the same as shifting them backward by -12m. It begs the question, which should I use? I think it actually doesn't really matter, but we should be explicit, I think. "Shift by whatever is most intuitive" or something like that. Maybe even talk about how each method creates an "empty" bucket with no results, since it lies entirely outside the WHERE time range. E.g. shifting foward 6 min means the entire 4th bucket falls outside the query range. Shifting back 12 min means the first bucket happens entirely before the start of the WHERE time range. If we show the empty buckets it might clarify things a bit, since there are still four buckets, more or less.
line 1248:
Again, maybe show the empty second bucket past the end of the time range.
line 1280:
Any numerical value               Reports the given numerical value for time intervals with no data.
line 1292:
null                              Reports null for time intervals with no data but returns a timestamp. This is the same as the default behavior
line 1539:
This is backreferencing.
to
:MEASUREMENT is a backreference to each measurement matched in the FROM clause.
line 1706:
The prior examples don't use GROUP BY * to preserve tags, so shouldn't we see some tags turned into fields in the output?
line 1742:
Something to the effect that "ORDER BY time DESC must come after the WHERE clause if there's no GROUP BY clause."
line 1812:
Queries with a LIMIT clause require GROUP BY * for deterministic results. LIMIT queries without a GROUP BY * clause may return different results when the query is re-run.
line 1884:
@jwilder @jsternberg @benbjohnson Are the series returned by SLIMIT idempotent? Are they deterministic? Said another way, will I always get the same series for the same query? And is it possible to know in advance which series I will get? We need to be explicit one way or the other. If it's random, that's fine, but we need to tell people. If it's not random but can't be predicted, that's also good to note. If it's not random and is predictable, we need to give users the algorithm to determine the series returned. (If it is deterministic, I imagine it's related to sorting by the series key.)
line 1932:
Note that without SLIMIT 1, the query would return results for the two series associated with the h2o_feet measurement, location=coyote_creek and location=santa_monica.
line 1993:
Note that without LIMIT 2 SLIMIT 1, the query would return four points for each of the two series associated with the h2o_feet measurement.
line 2047:
The query returns the fourth, fifth, and sixth points from the two series
line 2071:
The LIMIT 2 clause limits the number of points returned per series to two.
line 2072:
The OFFSET 2 clause excludes the first two points per series.
line 2095:
The SOFFSET clause requires both GROUP BY * and an SLIMIT clause.
@jwilder @jsternberg why does SOFFSET require an SLIMIT clause? I don't see an obvious reason why that would be necessary.
line 2143:
I think this needs something at the end of the line so that it will start a newline for the next sentence. Right now they are appearing on the same line. (Missing space or something?)
line 2160:
can we link to a description elsewhere of the min time? Would be nice to explain to new users why that very random looking date is the lowest valid timestamp.
line 2175:
...date-time strings or epoch time. (note the E, not datA)
line 2182:
Let's be explicit that OR is not allowed for time ranges, and link to the FAQ and/or GitHub Issue
line 2216:
maybe
Epoch time is the number of duration literals that have elapsed since 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970.
line 2344:
SELECT_clause FROM_clause WHERE time  now() [[ - | + ] <duration_literal>]
added whitespace to the operators
line 2415:
Note that InfluxDB only returns points where the water_level field has data.
line 2468:
Regular expression comparisons are more computationally intensive than exact string comparisons and thus queries with regular expressions are not as performant as those without.
line 2539:
it's a little weird that there's no output. It's missing the CLI return for the query.
line 2573:
Might be worth putting a &pretty flag on the query string so that the JSON output is more readable

Are the series returned by SLIMIT idempotent? Are they deterministic? Said another way, will I always get the same series for the same query? And is it possible to know in advance which series I will get? We need to be explicit one way or the other. If it's random, that's fine, but we need to tell people. If it's not random but can't be predicted, that's also good to note. If it's not random and is predictable, we need to give users the algorithm to determine the series returned. (If it is deterministic, I imagine it's related to sorting by the series key.)

SLIMIT <n> is idempotent, but it won't necessary return <n> series because the series it chooses are based on the global list of series rather than what is in the shards that are being queried. So if you have cpu,host=server01, cpu,host=server02, and cpu,host=server03 and you use SLIMIT 1, you'll always get cpu,host=server01. But if the shard you query doesn't contain any points for cpu,host=server01 then you will get no results.

The SOFFSET clause requires both GROUP BY * and an SLIMIT clause. why does SOFFSET require an SLIMIT clause? I don't see an obvious reason why that would be necessary.

It shouldn't. This sounds like an error to me if it's happening. If you file a bug report, I'll try to see if I can get it fixed for 1.1.

@jsternberg thanks for that detail. So is it fair to say that on a single node OSS instance, SLIMIT is both idempotent and deterministic?

Yes. It should be to my knowledge. It just won't always give n series...

Right, n is the upper bound, but the lower bound is 0 if the query matches no series. It will always return 0 to n series, and always the same series given the same absolute WHERE conditions.

I opened an issue about using SLIMIT without GROUP BY *: https://github.com/influxdata/influxdb/issues/7571.
I'm also having trouble with OFFSET without LIMIT and SOFFSET without SLIMIT (and GROUP BY *. Writing it up here because I'm not sure if I'm missing something obvious.
Issue 1:  OFFSET without LIMIT
1. Write some data
> create database mydb
> use mydb
Using database mydb
> insert mymeas,color=yellow value=2
> insert mymeas,color=yellow value=3
> insert mymeas,color=yellow value=4
> insert mymeas,color=yellow value=5
> SELECT * FROM mymeas
name: mymeas
time				color	value
----				-----	-----
2016-11-02T23:27:55.659009728Z	yellow	2
2016-11-02T23:27:57.532365177Z	yellow	3
2016-11-02T23:27:59.352763724Z	yellow	4
2016-11-02T23:28:01.064617644Z	yellow	5

2.  Run an OFFSET query without LIMIT
> SELECT * FROM mymeas OFFSET 1
name: mymeas
time				color	value
----				-----	-----
2016-11-02T23:27:57.532365177Z	yellow	3

I can't really explain that result. Why does it only return one point? I would (maybe erroneously) have expected it to return the following:
name: mymeas
time				color	value
----				-----	-----
2016-11-02T23:27:57.532365177Z	yellow	3
2016-11-02T23:27:59.352763724Z	yellow	4
2016-11-02T23:28:01.064617644Z	yellow	5

3. Run an OFFSET query with LIMIT
> SELECT * FROM mymeas LIMIT 2 OFFSET 1
name: mymeas
time				color	value
----				-----	-----
2016-11-02T23:27:57.532365177Z	yellow	3
2016-11-02T23:27:59.352763724Z	yellow	4

This one makes total sense to me. It returns two points and skips the first point.
Issue 2: SOFFSET without SLIMIT
1. Add another series to the data I wrote above
> insert mymeas,color=blue value=800
> insert mymeas,color=blue value=900
> SELECT * FROM mymeas
name: mymeas
time				color	value
----				-----	-----
2016-11-02T23:27:55.659009728Z	yellow	2
2016-11-02T23:27:57.532365177Z	yellow	3
2016-11-02T23:27:59.352763724Z	yellow	4
2016-11-02T23:28:01.064617644Z	yellow	5
2016-11-02T23:29:08.953855972Z	blue	800
2016-11-02T23:29:11.427777943Z	blue	900

2. Run an SOFFSET query without SLIMIT
> SELECT * FROM mymeas SOFFSET 1
>

I get no results. To be honest, I'm not sure what I'd expect this query to do. In just a normal SELECT * FROM measurement query InfluxDB returns all series - so how would it paginate through series if it returns all of them by default?
3. Run an SOFFSET query with SLIMIT
> SELECT * FROM mymeas SLIMIT 1 SOFFSET 1
>

I also get no results. I'm assuming this has some relation to https://github.com/influxdata/influxdb/issues/7571.
4. Run an SOFFSET query with SLIMIT and GROUP BY *
> SELECT * FROM mymeas GROUP BY * SLIMIT 1 SOFFSET 1
name: mymeas
tags: color=yellow
time				value
----				-----
2016-11-02T23:27:55.659009728Z	2
2016-11-02T23:27:57.532365177Z	3
2016-11-02T23:27:59.352763724Z	4
2016-11-02T23:28:01.064617644Z	5

This one makes total sense to me. If I don't include SOFFSET 1 then I returns everything for the mymeas color=blue series.

@beckettsean, @jsternberg ^

@rkuchan I agree with your assumptions on the behavior. I would expect the same results you expect.

@jwilder @benbjohnson any thoughts on @rkuchan's questions about unexpected results from OFFSET queries without LIMIT and SOFFSET queries without SLIMIT and GROUP BY *?

@beckettsean @rkuchan Both of those seem like bugs. I would expect a missing LIMIT or SLIMIT to effectively default to ∞ and return all rows.

OK - opened two issues about OFFSET and SOFFSET and linked to them from the Data Exploration page.
https://github.com/influxdata/influxdb/issues/7577
https://github.com/influxdata/influxdb/issues/7578


Documentation - search feature

is it me or Semantic UI doesn't have a search feature in it's documentation ?

maybe we can use this to integrate a great search feature ?


docs(README): add VB.NET usage example

The reason why I added a more detailed example for VB was, that it took me some time to figure out how to set the the PageNumberOptions in VB.


deprecate the Facet, Filter, FilterQuery and related (esp. that they're inheriting JsonObject)

side note from the stuff we just talked about:   a Future Interface should be oriented at

consistence with the JVM SDK naming
the typical workflow of a faceted search (metadescription of the facets -> all facets queried in every search request -> merge facet description with result facet counts -> render input forms -> get user click inluding prior facets -> change facets -> )....

please add documentation to the deprecated objects on how to use the API in a compatible manner (direct method at the Request Object -> addFilter(String filterExpression OR some object later on) ??


Fix a wee "gendered" typo in README

Swapped "his" for "their" in README, anyone can be a user of tech :)
I checked code of conduct first.
https://github.com/henrikwirth/awesome-wordpress-gatsby/blob/master/code-of-conduct.md
I also ran the README through a gender-decoder, and it came out as "feminine coded" which is cool!
Result:
http://gender-decoder.katmatfield.com/results/233a97f9-b995-4598-aca5-1f4ed983b3d4

Hey @miclgael thanks for bringing this up.  So for me it's kinda hard to notice gendered words. Interesting to see that there is tools to test it on that. Thanks for the  PR ❤

Thanks for the resource!


c++ std compiler flags and gnu-extensions

Hi,
I'm trying to link against spirv-cross but get various errors:
undefined reference to `std::__cxx11::basic_string
I believe it's because SPIRV-Cross is compiled using:
set(CMAKE_CXX_STANDARD 11)
Internally, cmake uses the flag "-std=gnu++11" and enables gnu extensions.
It might be better to also set:
set(CMAKE_CXX_EXTENSIONS OFF)
unless SPIRV-Cross uses gnu-specific extensions.
This might simplify the build for other programs that link against SPIRV-Cross?

I was able to get past this compile issue:
I'm currently using meson build system, and it sets the linker flag "--no-undefined" on by default.
CMake doesn't set this flag.
I fixed it by setting "b_lundef" to false in meson.build.
This could be an issue in meson.


Update getting-started.md

Update the initial project structure generated by create-react-app.

Thanks!


timeseries_dataset_from_array() - Slide over both data and targets in Tandem for Sequence-to-Sequence Predictions

I am looking to perform sequence-to-sequence predictions, so need to slide over x and y simultaneously, producing vectors of equal length at the same time. It seems that timeseries_dataset_from_array() by default outputs just one sample, more akin to sequence-to-value problems. I think it owuld be good to add this capability as a parameter to the function.
I have a basic implementation, and haven't opened a PR, as I don't have the time or knowledge to test thoroughly, but I have my changes in this branch here, which you are of course free to take if you want to use at all. So far it "works for me", and if I hit any bugs down the line I'll push updates there.
Personally, having previously had hard-to-diagnose headaches with sliding windows, I would also suggest adding an option for whether to take the first or last element inthe window for targets (I was under the impression it owuld be the last, but upon inspection it seems the first is taken implicitly), and also mirror the drop_remainder parameter, to discard any batches that are not full, since this will cause an error if inputting to a networkand I have had to do this manually form outside the function.
Thanks!

What are some example input and outputs with your change?
I would think if we wanted targets to be a sequence to we would want to add a parameter along the lines of target_sequence_length, but I don't see that in your version.

I guess you could have different window lengths for the input and output, although that would increase the complexity. In my modifications it's just a binary one value or many values. At that point it could perhaps be simpler as a minimal class, rather than all in one function.
I'm working with a simple signal taken at regular intervals, and trying to filter it. So, I'm training the model on a window of the last second or so of data, and its job is to predict the last second or so of the filtered signal. Hence I just need a dataset that moves the window one by one over both.


[Enhancement] Add support for elements containers lists, like: ElementsCollection = $$("selector", PageObject.class)

It would be very helpfull to build "liststs of element containers" without building custom wrappers.
Example:
Building element container list
class ProductCard extends <ElementsContainerCollection> {
    SelenideElement title = $("#title")
    SelenideElement price = $("#price")
}

then
class CatalogPage{
   List<ProductCard> products = $$("ul#catalog li")
}

Question! Does java even allow such thing? I know JS and C# (to some extend) allow such syntax, but i am not sure if java does (please correct me if wrong)

Question! Does java even allow such thing? I know JS and C# (to some extend) allow such syntax, but i am not sure if java does (please correct me if wrong)

Yes, such thing can be ealized by creating your own Element Containers list, like in such example, which can be used in Elements pattern:

Element Container

class ProductCard {

    SelenideElement el;

    public ProductCard(ElementsCollection el){
        this.el = el;
    }

    SelenideElement title = $("#title")
    SelenideElement price = $("#price")
}

Container List

class ProductList {

    ElementsCollection el;

    public ProductList(ElementsCollection el){
        this.el = el;
    }

    public ProductCard get(int index){
        return new ProductCard(el.get(index))
    }

    public ProductList shouldHaveSize(int size){
       el.shouldHaveSize(size)
       return this
    }

}

Create list in the page objects:

class CatalogPage{
ProductList products = new ProductList($$("ul#catalog li"))
@Test
public void shouldTestList(){
catalogPage.products.get(0).title.shouldHave(text("First Ttitle"))
}
}

Yes, i see... i was wondering about that part:
List<ProductCard> products = $$("ul#catalog li")
because thats not a java syntax (kinda). but if you say it like:
List<ProductCard> products = new ProductCards($$("ul#catalog li")).get()
than yea that is somewhat nice.
Also i do see you got ElementsContainer, aint that good enough?

Yes, i see... i was wondering about that part:
List<ProductCard> products = $$("ul#catalog li")
because thats not a java syntax (kinda). but if you say it like:
List<ProductCard> products = new ProductCards($$("ul#catalog li")).get()
than yea that is somewhat nice.
Also i do see you got ElementsContainer, aint that good enough?
P.S. now i did realize that you made those ElementContainer class by yourself. So the feature might be good (but i did see such things in selenide code aswell...)

Yea) In Selenide we have "ElementContainer" that works with PageFactory.
Now it will nice to have the same ElementContainer feature, that works without PageFactory, because while started working with Selenide, I am not using PageFactory anymore :)

Hi @savvagen !
Do I correctly understand that in your example, elements #title and #price should be searched inside of ul#catalog li (each of them)?
I am afraid that it's impossible to implement your request before https://github.com/selenide/selenide/issues/1048 is done - but it seems hard or even impossible. :(

Hi @savvagen !
Do I correctly understand that in your example, elements #title and #price should be searched inside of ul#catalog li (each of them)?
I am afraid that it's impossible to implement your request before #1048 is done - but it seems hard or even impossible. :(

Hello! Due to you question and example before, - the answer is "yes". It requires ability to find elements collection ul#catalog li and then search #title and #price in each item of the collection
If it is possible, I think the solution with generics also may be nice, but hard for implementation:
        ...
        ElementsCollection<ProductCard> products = Selenide.$$("ul#catalog li");
        ...

        class ProductCard extends <SelenideElementContainer> {}

Hi @savvagen !
Do I correctly understand that in your example, elements #title and #price should be searched inside of ul#catalog li (each of them)?
I am afraid that it's impossible to implement your request before #1048 is done - but it seems hard or even impossible. :(

Hello! Due to you question and example before, - the answer is "yes". It requires ability to find elements collection ul#catalog li and then search #title and #price in each item of the collection
If it is possible, I think the solution with generics also may be nice, but hard for implementation:
        ...
        ElementsCollection<ProductCard> products = Selenide.$$("ul#catalog li");
        ...

        class ProductCard extends <SelenideElementContainer> {}

Hi,
Is this issue going to be closed soon or is there an alternative solution?

@Omer3160 If somebody wishes to implement this feature - they are welcome.
But I personally rather think this feature is not really needed. It's easy to create page objects, element containers etc. with just plain Java, without any special Selenide features.

@Omer3160 @savvagen Might be late to the party but the following code seems to do the basics:
VideoCard.java
import com.codeborne.selenide.ElementsContainer;
import com.codeborne.selenide.SelenideElement;

public class VideoCard extends ElementsContainer {
    private SelenideElement context;

    public VideoCard(SelenideElement element) {
        this.context = element;
    }

    public String getLink() {
        return context.find("#thumbnail").getAttribute("href");
    }
}

Application.java
import com.codeborne.selenide.ElementsCollection;
import com.codeborne.selenide.ElementsContainer;
import com.codeborne.selenide.Selenide;
import com.codeborne.selenide.SelenideElement;
import lombok.SneakyThrows;
import org.openqa.selenium.By;

import java.util.List;
import java.util.stream.Collectors;

public class Application {

    public static void main(String[] args) {
        Selenide.open("https://www.youtube.com/");

        List<VideoCard> cards = $$(By.cssSelector("ytd-rich-item-renderer"), VideoCard.class);

        for (VideoCard card : cards) {
            System.out.println(card.getLink());
        }
    }

    public static <T extends ElementsContainer> List<T> $$(By selector, Class<T> type) {
        ElementsCollection elements = Selenide.$$(selector);

        return elements.stream()
                       .map(element -> mapElement(element, type))
                       .collect(Collectors.toList());
    }

    @SneakyThrows
    private static <T extends ElementsContainer> T mapElement(SelenideElement element, Class<T> customType) {
        return customType.getConstructor(SelenideElement.class).newInstance(element);
    }
}

This will provide a more 'generic' solution to @savvagen, more logic can be added to even create custom lists such as 'ProductList' but I wanted to keep it simple.
Does that achieve what you wanted?

Thank you @kfirdo!
That's what I am talking about.
Actually, VideoCard doesn't need to extend ElementsContainer. Just remove "
extends ElementsContainer. :)
As you see, it works without any special support from selenide side. Just
plain old good programming. :)
пн, 16 авг. 2021 г., 17:15 kfirdo @.***>:

@Omer3160 https://github.com/Omer3160 @savvagen
https://github.com/savvagen Might be late to the party but the
following code seems to do the basics:
VideoCard.java
import com.codeborne.selenide.ElementsContainer;import com.codeborne.selenide.SelenideElement;
public class VideoCard extends ElementsContainer {
private SelenideElement context;
public VideoCard(SelenideElement element) {
    this.context = element;
}

public String getLink() {
    return context.find("#thumbnail").getAttribute("href");
}

}
Application.java
import com.codeborne.selenide.ElementsCollection;import com.codeborne.selenide.ElementsContainer;import com.codeborne.selenide.Selenide;import com.codeborne.selenide.SelenideElement;import lombok.SneakyThrows;import org.openqa.selenium.By;
import java.util.List;import java.util.stream.Collectors;
public class Application {
public static void main(String[] args) {
    Selenide.open("https://www.youtube.com/");

    List<VideoCard> cards = $$(By.cssSelector("ytd-rich-item-renderer"), VideoCard.class);

    for (VideoCard card : cards) {
        System.out.println(card.getLink());
    }
}

public static <T extends ElementsContainer> List<T> $$(By selector, Class<T> type) {
    ElementsCollection elements = Selenide.$$(selector);

    return elements.stream()
                   .map(element -> mapElement(element, type))
                   .collect(Collectors.toList());
}

@SneakyThrows
private static <T extends ElementsContainer> T mapElement(SelenideElement element, Class<T> customType) {
    return customType.getConstructor(SelenideElement.class).newInstance(element);
}

}
This will provide a more 'generic' solution to @savvagen
https://github.com/savvagen, more logic can be added to even create
custom lists such as 'ProductList' but I wanted to keep it simple.
Does that achieve what you wanted?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/selenide/selenide/issues/1225#issuecomment-899547129,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACEJXNZ2CFQYNJLXRT76HLT5EMQ3ANCNFSM4O2PZWWQ
.


Update Composer dependencies (2022-05-26-00-06)

Visual regression test passed!
View the visual regression test report


Basic Covenant support

ack. This looks great! I did not check the exact values for the limits etc.

There is a test that checks the hard-coded values of limits.


Update create-custom-table.md

Specify DCR's kind must be All (not Linux/Windows) when creating a new DCR-based custom table in Azure Portal. DCR with other platform types are removed from the dropdown menu. However, this behavior is not documented.
Reproduction: If I create 3 DCRs with identical setup but different Platform types, then only the one with Platform type All is shown when creating a custom table.

Link to Article: Add or delete tables and columns in Azure Monitor Logs - Azure Monitor | Microsoft Learn
Link to File: articles/azure-monitor/logs/create-custom-table.md#create-a-custom-table

@guywi-ms
Can you review the proposed changes?
IMPORTANT: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team


CI build fails from time to time during log4cplus build

Setting top to                           : /root/project
Setting out to                           : /root/project/build
Checking for 'clang++' (C++ compiler)    : /usr/bin/clang++
+ touch aclocal.m4
+ find . -name Makefile.in -print -exec touch {} ;
./Makefile.in
./simpleserver/Makefile.in
./include/Makefile.in
+ touch configure
+ touch tests/testsuite
/bin/sh: 1: ./configure: Text file busy
Command failed with exit code 2
(complete log in /root/project/build/config.log)
./scripts/fix-timestamps.sh
./configure CXX="/usr/bin/clang++" --disable-shared --enable-static --prefix=$PWD/build
The command '/bin/sh -c ./waf configure' returned a non-zero code: 1

Related discussion: https://github.com/docker/docker/issues/9547

Resolved


Update sprayproxy version prod

Update was approved by PM.

/test appstudio-e2e-tests

/lgtm

/test appstudio-e2e-tests

/test appstudio-e2e-tests


makeRequest should throw TypesenseError and not silently catch it

Description
ApiCall.makeRequest() should throw TypesenseError instead of silently catching it and printing the stacktrace. At the moment, due to this mechanism, there is no way of distinguishing between a collection which doesn't exist and when a collection exists but the api key is wrong as both return null.
Metadata
Typsense Version: 0.21
OS: Ubuntu 20.04

@superkelvint
Thanks for pointing this out ! Will fix this

Latest version propagates exceptions meaningfully to the caller.


PubSub: SubscriberClient immediately retries not handled message

Hello,
I am using SubscriberClient.StartAsync to listen for (and handle) messages. It works well when I return SubscriberClient.Reply.Ack.
If I return SubscriberClient.Reply.Nack, the message is automatically immediately retried endlessly. I would expect it to wait ackDeadlineSeconds which is 30 seconds in my case before the handler is called again.
My handler code:
var clientSettings = config.LocalChannel == null ?
    null :
    new SubscriberClient.ClientCreationSettings(
    serviceEndpoint: config.LocalChannel,
    credentials: ChannelCredentials.Insecure);

var subscriber = await SubscriberClient.CreateAsync(subscriptionName, clientSettings);
await subscriber.StartAsync(async (msg, cancellationToken) =>
{
    var message = Parse(msg);
    if (message == null)
        return SubscriberClient.Reply.Ack;

    return await
        messageProcessor.HandleMessage(message, subscription, cancellationToken) ?
        SubscriberClient.Reply.Ack :
        SubscriberClient.Reply.Nack;
});

Am I missing some settings, or is this expected?
I'm using Google.Cloud.PubSub.V1 v 2.0.0 with pubsub emulator.

This is expected behaviour.
When user code returns a NACK, this nack is immediately passed on to the server; it does not wait for ackDeadlingSeconds to timeout.
Returning NACK is not designed to be used as a flow-control or delay mechanism in any way.
Closing, as I hope this answers your question.


FileNotFoundError: [Errno 2] No such file or directory: 'data/prepared_for_esm.fasta'

Hi, when I follow this command:
HOME=esm/model_weights python esm/scripts/extract.py esm2_t33_650M_UR50D data/prepared_for_esm.fasta data/esm2_output --repr_layers 33 --include per_tok
it get an error.
Traceback (most recent call last):   File "/home/icer/my_prj/diffdock/DiffDock/esm/scripts/extract.py", line 137, in <module>     main(args)   File "/home/icer/my_prj/diffdock/DiffDock/esm/scripts/extract.py", line 74, in main     dataset = FastaBatchedDataset.from_file(args.fasta_file)   File "/home/icer/my_prj/diffdock/DiffDock/esm/esm/data.py", line 39, in from_file     with open(fasta_file, "r") as infile: FileNotFoundError: [Errno 2] No such file or directory: 'data/prepared_for_esm.fasta'

You would need to follow the previous commands in the readme which generates the file data/prepared_for_esm.fasta


Missing endpoint support for cluster operations

The Python client has no support for cluster operations like metrics, health and stats although they are documented :)

This can be achieved by calling API, e.g.:

client.api_call.get('/collections')
client.api_call.get('/metrics.json')


feature/map : add map services

What was added

added map service for requests related to locations data
added GET operations

GET : by area (latmin, lngmin, latMax, lngMax)
GET : by facility_id
GET : by query (name, openNow, preferences)

added GET requests for hashtags, with router for "/api/hashtags"

GET : all hashtags
GET : by hashtag id

Related Issues

link related issues here
REPO_NAME #issueNum

Future Works

enhance search engine (currently, it just uses ILIKE with search query)
testing with multiple facility data

Checklist

[x] I have performed unit tests
[x] I have added necessary docs
[x] I have checked for potential bugs & issues

Good work on map handling js files! They all seem to be syntatically and logically correct.
As i understand if there are more than 1 facilities with the same coordinates (i.e. one is on 1st floor and second is on 2nd of the building), database returns all the matches.
I wonder how they should be handled on map on the client-side. I guess there are 2 ways:

have single pin per building and on touch let them cycle through the menu.
don't have the same coordinates for any 2 facilities, i.e. show multiple pins on map
I think we have to give front-end members our decision
i have other ideas, but they are subtle and not priority 1:)


Fixed custom imageBytes

The mocked response.listen never gets called because the named parameters aren't matched.
The mocked contentLength always returned the transparent image length.
#4

man...
this repo is not maintained at all, is it?
I saw that _transparentImage bug immediately when looking into this package, and wanted to open a bug - now I see it's reported with an open PR almost-ready to fix...


Firefox 66: Progress on Intrinsic & Extrinsic Sizing

https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/66

The min-content and max-content keywords are now available unprefixed (bug 1322780). These can be set on width, height, flex-basis, min-width, max-width, min-height, and max-height.

https://bugzilla.mozilla.org/show_bug.cgi?id=1322780#c59

https://www.fxsitecompat.com/en-CA/docs/2018/min-max-content-keywords-for-css-sizing-properties-have-been-unprefixed/

http://tests.caniuse.com/?feat=intrinsic-width improved as well

I went optimistically for supported ("y") like Chrome, as the remaining note 2 seems alike note 4, but feel free to adjust.

Looks good, thanks!


Model overlap

This happen when I am using real-simulation branch expert_mannual.py

This will be fixed soon. All traffic vehicles' visualization models and physics models are in different sizes.

This will be fixed soon. All traffic vehicles' visualization models and physics models are in different sizes.

Model size has been adjusted, and a small roundabout bug is fixed in this pr.
It seems that the expert behaves better after fixing this bug.

Model size has been adjusted, and a small roundabout bug is fixed in this pr.
It seems that the expert behaves better after fixing this bug.

success rate: 28/30 = 0.93, merge

success rate: 28/30 = 0.93, merge


Replace integration tests

It's kinda a pain to make a seperate test suite just for every configuration option. Along with https://github.com/lwm/tasty-discover/issues/70, it would be nice to get rid of the integration tests altogether and stuff everything into the regular unit tests.

Done, Done, Done.


Add Banner to README file

Added banner to make a more appealing README, I think some emojis of food can work also.

Thank you for your contribution. The image does seem nice, but was wondering would it be possible to convert it into an svg and reduce the size a bit ?

Yes of course, let me change it

Hey, just wanted to check in and see if you have any progress on this ?  @cesaralvrz


Add Rule Group Evaluations to Ruler dashboard in mixin

In #2398 we added a ThanosNoRuleEvaluations alert which is really helpful and signaling a symptom of unavailability of the Thanos Ruler. Sadly we don't surface these underlying metrics on the Thanos Ruler dashboard.

[ ] I added CHANGELOG entry for this change.
[x] Change is not relevant to the end user.

Changes
Add some panel to the Thanos Ruler dashboard.
Verification
Deployed the new Thanos Ruler dashboard on Grafana and check against our datasource :)

@metalmatze CI shows some uncommitted generated files.

@metalmatze Friendly ping :)

Nice. Let me import this PR into my Grafana to take a look at it. 😊

@metalmatze friendly ping :) This PR needs some love.

Oh, I completely forgot about this one. :joy:
Let me give it another look!