Shared user guide

@mweststrate With 6.0 out now (👏), would you consider trimming down README and consolidate that at the docs site I've made? I still haven't got any feedback about that site from you.
https://mobx-react.js.org

Sorry, still have to look into it, but that will at earliest be next week.
Op wo 29 mei 2019 23:29 schreef Daniel K<EMAIL_ADDRESS>
@mweststrate https://github.com/mweststrate With 6.0 out now (👏),
would you consider trimming down README and leaving an example in the docs
site I've made? I still haven't got any feedback about that site from you,
so I am not sure what you think about consolidating it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mobxjs/mobx-react/issues/677?email_source=notifications&email_token=AAN4NBCK3ELPYRPT6K7QQMTPX3YUDA5CNFSM4HQO6S4KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GWRMSZA,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAN4NBALGETBPEADCUIR5WLPX3YUDANCNFSM4HQO6S4A
.

Only glanced over it, but some feedback points:

I think having a third place for documentation for mobx-react is a bad idea. Two (mobx.js.org and the readme of this repository itself) is basically already bad enough. I think the documentation proposed here should be a mobx+react recipes page on the official docs (between section 8.0 and 8.1?). And then forward to it from the observer page. Some of the sections have quite some overlap with the general documentation and could be skipped I think
Beware of being dismissive about class based components. We are not a React style police, and people will be stuck with them for the coming years in large existing code bases. There is no need to alienate those people just because they aren't running a greenfield project. The page / docs in general are written primarily from a mobx-react-lite perspective. That is ok, but the domain on which it is hosted suggests otherwise :)
I think the primary point should be to explain how to achieve certain goals that might developers have in certain situtations: such as external state, component local state, and side effects both with hooks and classes. And furthermore elaborate as done on the subtile differences between the HoC, hook and wrapper.

Some of the example are a bit convoluted, for example on the introduction page:
Creating an inline component is quite a bad idea, as it kills the reconciler, and at least a bad example to set: const renderTodo = (done: boolean) => todo => (. I suggest to extract it to  a separate component and make it an observer. Which is consistent with the rest of the MobX docs: renderers for list items should be separate components
The localStore's addTodo is expressed in terms of the ref. If instead the text to be added would be passed in, there would be a clear separation between the logic and the internal stuff of the component, and the entire initializer could actually be extracted out of the component.
The example uses createTodos, but it seemst to be defined nowhere?
So I think there could be a bit simpler example to introduce the whole concept :). Random idea: https://codesandbox.io/s/evwj5. Yes, it is more contrived, but it will have less noise so it is easier to see what it is all about

All IMHO of course, awesome that you are taking the effort!
The beta notice on the libraries page can be removed.
Sections I really liked:

https://mobx-react.js.org/libraries
https://mobx-react.js.org/state-outsourcing
https://mobx-react.js.org/recipes-migration
https://mobx-react.js.org/recipes-effects

Thanks for the feedback!

I think having a third place for documentation for mobx-react is a bad idea.

The main motivation was to minimize duplicate information in mobx-react a mobx-react-lite readme. I wanted to consolidate that so people can really come to one place no matter what lib they are using. I am sure it still needs improvements, but without actual feedback, it's harder for me to see what needs to be changed. Also, the mobx.js.org could remove mention of React (doesn't really fit there).

2. Beware of being dismissive about class based components. We are not a React style police, and people will be stuck with them for the coming years in large existing code bases.

I wonder where I am actually dismissing class components as something less? It definitely wasn't the intention. Personally, I haven't been using classes even before hooks unless I really had to. I would of course love if people would just abandon classes, so I am sometimes biased there, but I am trying not to be.
I think I want to figure out some nice way how can someone switch the mode to either hooks or classes and see that page for that respective approach. I don't want to mingle both in a single document, that would be way too confusing. Besides, when classes will be really gone, I want to just turn off the switch without updating those docs and removing all mentions manually.

Creating an inline component is quite a bad idea, as it kills the reconciler, and at least a bad example to set

Defining inline function renderSomething is not an inline component. It is called as a function, not wrapped into React.createElement. I don't find anything wrong about that practice, it's just way to structure the code better. Nesting with inlined array.map is awful imo.

The localStore's addTodo is expressed in terms of the ref. If instead the text to be added would be passed in, there would be a clear separation between the logic and the internal stuff of the component, and the entire initializer could actually be extracted out of the component.

Well, the intention was to show that actions on the store are auto bound so they can be used directly as a callback prop without extra function wrapping or binding. Semantically, it definitely makes sense what you are suggesting.

The example uses createTodos, but it seemst to be defined nowhere?

That's the slight problem of Docz. All those live examples are not linked to that code shown below them. It's necessary to synchronize it manually. I need to figure some other way to tackle that more gracefully.

So I think there could be a bit simpler example to introduce the whole concept :).

Right, the timer example is nice, I will use that :)

The beta notice on the libraries page can be removed.

Will do, although it clearly states it applied in May 2019.

[offtopic]
@FredyC could you PM or mail<EMAIL_ADDRESS>me for a personal question? Noticed that PMs are disabled on your twitter account :)
[/offtopic]

Also, the mobx.js.org could remove mention of React (doesn't really fit there).

Don't agree on that one; first of all, mobx-react is the primary use case of mobx. Secondly, without concrete application in the forms of mobx-react, the mobx documentation would be very abstract in general, and describing artificial usecases and problems most people don't have.
I do agree on the consolidation though. I would be perfectly fine by making an separate top level section on mobx.js.org, and emptying and forwarding the readme of mobx-react and mobx-react-lite there.

I don't want to mingle both in a single document

I see. I think having separate pages, describing the same use cases would be very clear as well. Than we can just cross link and people can compare if they want, and also we can recommend the hooks version on the class page.

It is called as a function

Yeah, the problem is in either case, that it will re-render the full list on every change. Smaller components perform much better (as it explained later in the docs). But yeah, an simpler example avoids this problem altogether and we need to to introduce less concepts at once (I mean, people shouldn't need to think about performance in the first example, but not unconsciously be learning a bad practice either)

Well, the intention was to show that actions on the store are auto bound so

Good point! Missed that. I think the timer has this case as well.

Closing as combined docs are WIP on the mobx 6 branch:  https://deploy-preview-2327--mobx-docs.netlify.app/react/react-integration.html


per job scrape_intervals/align/offset

You can set a global scrape interval for a VMagent, but you can't set a scrape interval for pods, services, and other types in the operator.  VMagent does support a per-job scrape_interval, scrape_align_interval, and scrape_offset.
I have several pods/services that need to be scraped at different intervals due to API limits, and this can not be currently configured in the VMServiceScrape/VMPodscrape/VMNodescrape/VMProbescrapes CRD's.
This is desired to keep from running multiple VMAgents.

Hello, scrape internal can be configured with interval param at https://github.com/VictoriaMetrics/operator/blob/master/docs/api.MD#endpoint, for instance:
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMServiceScrape
metadata:
  name: example-scrape
spec:
  endpoints:
    - port: http
      targetPort: http
      path: /metrics
      scheme: http
      interval: 10s
      scrapeTimeout: 2s
  namespaceSelector:
    any: false
    matchNames: ["kube-system"]
  selector:
    matchLabels:
      app.kubernetes.io/name: example-application

Scrape offset and scrape aling interval will be added, thanks for pointing! Also, i would like to add scrape_interval to make it more consistent with scrape configuration.
To be honest, i dislike prometheus-operator decision to use camel case for its apis, while prometheus uses snake case.  Its really confusing.

Didn't think about looking in the endpoint.
And yes, the case case stuff just sucks..

Now, all scrape components VMServiceScrape, VMPodScrape, VMNodeScrape, VMProbes and VMStaticScrape supports additional params: vm_scrape_params https://github.com/VictoriaMetrics/operator/blob/master/docs/api.MD#vmscrapeparams.
Example of usage:
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMServiceScrape
metadata:
  labels:
    app.kubernetes.io/component: monitoring
    app.kubernetes.io/instance: vmauth-sample
    app.kubernetes.io/name: vmauth
  name: vmauth-vmauth-sample
  namespace: default
spec:
  endpoints:
  - path: /metrics
    port: http
    vm_scrape_params:
      scrape_offset: 1s
      stream_parse: true
  namespaceSelector: {}
  selector:
    matchLabels:
      app.kubernetes.io/component: monitoring
      app.kubernetes.io/instance: vmauth-sample
      app.kubernetes.io/name: vmauth

Need to update documentation for it and add more examples.

added to the v0.18.0 release.


Announcement on discourse?

Could you please make an announcement on discourse.purescript.org about this cool framework. If you don't want to spend time on this I can help.
P.S.
purescript-pseudo-random is also worth a post on its own I think.

Thank you for care about this library.
I did not know discourse.purescript.org.

If you do not want to to spend time on this I can help.

Yes. If you introduce this library, I am very grateful in any way. pseudo-random too.
※ It is BETA as written in Readme.
(There are still some things that I need to brush up by myself.)

@opyapeus Cool! I think I will find a moment today or tomorrow to post an announcement on discourse.
Thanks!


Disable Retry on Timeout

The OpenAI API has been quite unreliable this week and I am getting a bunch of timeouts. I don't want langchain to retry as I'm pretty sure OpenAI is still counting these requests toward billing, so I'd like to set max_retries=None or 0 but that doesn't seem to work.

setting max_retries=0 seems to work for me - what issue are you seeing?

That didn't work for me. I'll have to test again though.
On Sat, Feb 18, 2023, 4:51 PM Harrison Chase @.***>
wrote:

setting max_retries=0 seems to work for me - what issue are you seeing?
—
Reply to this email directly, view it on GitHub
https://github.com/hwchase17/langchain/issues/1094#issuecomment-1435776906,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKNI2REST66AWTIXVODQYT3WYE773ANCNFSM6AAAAAAU6QF4OQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

This doesn't seem to work for me either. I passed max_retries=0. This is my code :
LLMChain(llm=OpenAI(temperature=0, model_name="text-davinci-003", max_tokens=-1, max_retries=0),
prompt=prompt)


Explicitly exclude PIL 8.3.0 from compatible dependencies

Closes https://github.com/pytorch/vision/issues/4146
CC @pmeier

Should be good now, unittests jobs are passing. The same binary jobs failures are present in https://github.com/pytorch/vision/pull/3808, so they're unrelated.


Error

Caught | 2018-06-06 22:50:01.241 | error | by controller[0]: See https://github.com/yagop/node-telegram-bot-api/issues/319. at module.js:570:32
Caught | 2018-06-06 22:50:01.240 | error | by controller[0]: In the future, you will have to enable it yourself.
Caught | 2018-06-06 22:50:01.238 | error | by controller[0]: Wed, 06 Jun 2018 15:49:35 GMT node-telegram-bot-api deprecated Automatic enabling of cancellation of promises is deprecated.

Duplicate of #57


Battery life

Currently at the 75 to 80% mark, the battery dies. This usually manifest as a sudden jump in the read value of charge to an absurd number ( 65535 or something). Its  -1, but since the expected value is unsigned it gives this maximal value of a 16-bit representation. Since we expect the robot to take into account his current charge in his learning, we should probably investigate this battery or find an alternative.
Perhaps a cleaning cycle could help the battery or maybe replacing the battery by another or by normal rechargeable alkaline battery is the only way to go.

There is a nice forum here about hacking the APS battery:
http://www.robotreviews.com/chat/viewtopic.php?p=77882

New battery bought for the experiments. It should allow for longer lifetime.


Mod 1.20.1 Update?

Hello @lostopkk,
Just to be clear, the more you ask me "1.20 update" (and btw without any correct asking; maybe a simple hello, or a complete sentence with a "please") the less It makes me want to take, the very little of my free time I have, to develop it...
So please, wait and be patient, the 1.20 is out since less than two week... Issue tracker isn't for asking upgrades for new Minecraft update, I will do it when I will have the time.

Hello @lostopkk,
Just to be clear, the more you ask me "1.20 update" (and btw without any correct asking; maybe a simple hello, or a complete sentence with a "please") the less It makes me want to take, the very little of my free time I have, to develop it...
So please, wait and be patient, the 1.20 is out since less than two week... Issue tracker isn't for asking upgrades for new Minecraft update, I will do it when I will have the time.

sorry about that, didn't mean to be rude it's just hard talking to developers and the issue tracker is always a good place to see if the project is still in development... take your time! i love this mod just wanted to know if it has been stopped or discontinued.


mapDispatch docs

What does this PR do?
New doc piece regarding #1001:
_Connect: Dispatch Actions with mapDispatchToProps
Summary of the Changes

Add the mapDispatchToProps docs
Doc site: add mapDispatchToProps to sidebar
Align mapStateToProps names for consistency, add a small section

Arguments

1. state
2. ownProps

section to the mapState doc also for consistency

Other side note, maybe for another PR: I'd really like to have the generated URLs be shorter, like /docs/using-react-redux/mapdispatch or something.  (Or even drop the /docs/ part.)

Also, I am so excited to get this page published soon :)

Awesome.  Do it!


The build-box ubuntu2004 vmware fails to build a virtual machine; just hangs

bin/build-box ubuntu2004 vmware

Warning: Warning when preparing build: "vmware-iso"

Your vmx data contains the following variable(s), which Packer normally sets
when it generates its own default vmx template. This may cause your build to
fail or behave unpredictably: numvcpus, memsize

vmware-iso: output will be in this color.

==> vmware-iso: Retrieving ISO
==> vmware-iso: Trying /Volumes/Storage/software/ubuntu/ubuntu-20.04.2-live-server-amd64.iso
==> vmware-iso: Trying /Volumes/Storage/software/ubuntu/ubuntu-20.04.2-live-server-amd64.iso?checksum=sha256%3Ad1f2bf834bbe9bb43faf16f9be992a6f3935e65be0edece1dee2aa6eb1767423
==> vmware-iso: /Volumes/Storage/software/ubuntu/ubuntu-20.04.2-live-server-amd64.iso?checksum=sha256%3Ad1f2bf834bbe9bb43faf16f9be992a6f3935e65be0edece1dee2aa6eb1767423 => /Users/tanner/projects/packer/packer-boxcutter/packer_cache/b517145adf12daef464c16d34da03464aa585881.iso
==> vmware-iso: Configuring output and export directories...
==> vmware-iso: Creating required virtual machine disks
==> vmware-iso: Building and writing VMX file
==> vmware-iso: Starting HTTP server on port 8455
==> vmware-iso: Starting virtual machine...
==> vmware-iso: Connecting to VNC...
==> vmware-iso: Waiting 5s for boot...
==> vmware-iso: Typing the boot command over VNC...
==> vmware-iso: Waiting for SSH to become available...

Inside the Fusion console

$ packer --version
1.7.2

$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.14.6
BuildVersion:	18G9028

VMware Fusion Profession 11.5.7

Same issue here, stuck on waiting ssh.

Trying updating the ISO to reference the 20.04-4 image and see if that helps.


Lens hangs when click on the folder button when creating a new cluster

Hi.All:
When i try to create a new cluster by finding kubeconfig in the filesystem by clicking on the folder button, lens hangs badly, I need to restart the system to be able to use lens again, killing the seems to be not sufficient,and my Desktop suddenly changes to an empty one..
My system is ubuntu 16 with latest updates applied, I use standard ubuntu 16 desktop install

is this happening on snap or appimage version?

snap
Saludos,
Ignacio J.Ortega
skype:ignacioj.ortega
El lun., 26 oct. 2020 a las 10:05, Lauri Nevala<EMAIL_ADDRESS>escribió:

is this happening on snap or appimage version?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/lensapp/lens/issues/1135#issuecomment-716412474, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAXHYV6MT5KRXOHW4KOWLT3SMU3WBANCNFSM4S7CBNJA
.

Are you able to provide a gif of this happening?


RTN is causing season pack title issues.

Describe the bug
After the latest RTN updates the stream title on the addon is now the parsed title followed by the record.title.
For season packs this results in for example the title being Gen V\nGen.V.2023.S01E01.God.U.2160p.AMZN.WEB-DL.MULTi.DD+5.1.HDR.H.265-TheBiscuitMan.mkv\n💾 9 GB\nMulti Audio
would it be possible to show the raw title as well? there is now no way to distinguish between season packs.
Hardware:

OS and distro: ubuntu 22.04 and docker

Additional context
Add any other context about the problem here.

This seems to only be an issue with DMM crawler


Monster and Trigun anime added

Please merge my PR for hacktober fest

Hi. There is a merge conflict in your Pull request. Kindly sync your forked repo and then re-open the pull request to successfully merge.

Hey please check, I have resolved the conflicts


Integration Test - Release - 2019/05/30 02:44:21

Auto create for integration test. IssueCommandFlow

#pri1

Just type '#backlog'

#pri2

#backlog

#assign PRMergerTest1

#assign NonAllowedUser

NonAllowedUser is not a valid GitHub ID, or is not a collaborator on this repo.

NonAllowedUser is not a valid GitHub ID, or is not a collaborator on this repo.

#reassign PRMergerTest2

GitHub user PRMergerTest1 has been removed from the MicrosoftDocs organization, so they were automatically removed as an assignee.

GitHub user PRMergerTest1 has been removed from the MicrosoftDocs organization, so they were automatically removed as an assignee.

#reassign NonAllowedUser

NonAllowedUser is not a valid GitHub ID, or is not a collaborator on this repo.

NonAllowedUser is not a valid GitHub ID, or is not a collaborator on this repo.

#please-close


More end to end test

Codecov Report

Merging #269 (4ce82b8) into master (46961a7) will decrease coverage by 0.01%.
The diff coverage is 40.00%.

@@            Coverage Diff             @@
##           master     #269      +/-   ##
==========================================
- Coverage   43.55%   43.54%   -0.02%
==========================================
  Files          11       11
  Lines        2383     2386       +3
==========================================
+ Hits         1038     1039       +1
- Misses       1345     1347       +2

Impacted Files
Coverage Δ

mplc/experiment.py
45.21% <0.00%> (ø)

mplc/scenario.py
68.02% <ø> (ø)

mplc/dataset.py
76.22% <33.33%> (-0.36%)
:arrow_down:

mplc/constants.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


Public access for pretrained models are blocked

Hi,
Following DOWNLOAD.md, pretrained model download command wget https://biglmdiag.blob.core.windows.net/oscar/pretrained_models/$MODEL_NAME.zip throws the following error.
--2023-06-11 04:32:29--  https://biglmdiag.blob.core.windows.net/oscar/pretrained_models/large-vg-labels.zip
Resolving biglmdiag.blob.core.windows.net (biglmdiag.blob.core.windows.net)... <IP_ADDRESS>
Connecting to biglmdiag.blob.core.windows.net (biglmdiag.blob.core.windows.net)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 409 Public access is not permitted on this storage account.
2023-06-11 04:32:30 ERROR 409: Public access is not permitted on this storage account..

The message above is for large-vg-labels but it's same for the all models.
Could you check your settings?
### Tasks
- [ ] Access to the pretrained models should be permitted

@HireTheHero Hi there! I came across the same issue that you mentioned here. Were you able to find an alternative link or a solution to access the file? Your help would be much appreciated. Thanks in advance!

Note:  The data is on Azure Storage Blob, a SAS with Read permission is provided. Please append the following SAS at the end of each link to download:
?sp=r&st=2023-08-28T01:12:41Z&se=3023-08-28T09:12:41Z&sv=2022-11-02&sr=c&sig=6R1YmWluiXmPLsdVn1rDUpeBp2SYBMxDjc6KoKNlY8Q%3D

Note:  The data is on Azure Storage Blob, a SAS with Read permission is provided. Please append the following SAS at the end of each link to download:
?sp=r&st=2023-08-28T01:12:41Z&se=3023-08-28T09:12:41Z&sv=2022-11-02&sr=c&sig=6R1YmWluiXmPLsdVn1rDUpeBp2SYBMxDjc6KoKNlY8Q%3D

Note: The data is on Azure Storage Blob, a SAS with Read permission is provided. Please append the following SAS at the end of each link to download:
?sp=r&st=2023-08-28T01:12:41Z&se=3023-08-28T09:12:41Z&sv=2022-11-02&sr=c&sig=6R1YmWluiXmPLsdVn1rDUpeBp2SYBMxDjc6KoKNlY8Q%3D

Could you please update the VinVL_DOWNLOAD.md file, too?
Thank you very much.

Note: The data is on Azure Storage Blob, a SAS with Read permission is provided. Please append the following SAS at the end of each link to download:
?sp=r&st=2023-08-28T01:12:41Z&se=3023-08-28T09:12:41Z&sv=2022-11-02&sr=c&sig=6R1YmWluiXmPLsdVn1rDUpeBp2SYBMxDjc6KoKNlY8Q%3D

Thanks for the SAS token! However, when I appended the SAS token to download the pre-extracted features in the VinVL_DOWNLOAD.md file, I met the following issues:
 ./azcopy cp "https://biglmdiag.blob.core.windows.net/vinvl/image_features/oi_X152C4_frcnnbig2_exp168model_0060000model.roi_heads.nm_filter_2_model.roi_heads.score_thresh_0.2/model_0060000**?sp=r&st=2023-08-28T01:12:41Z&se=3023-08-28T09:12:41Z&sv=2022-11-02&sr=c&sig=6R1YmWluiXmPLsdVn1rDUpeBp2SYBMxDjc6KoKNlY8Q%3D**" [local_path] --recursive
INFO: Scanning...
INFO: Any empty folders will not be processed, because source and/or destination doesn't have full folder support
failed to perform copy command due to error: cannot start job due to error: cannot list files due to reason -> github.com/Azure/azure-storage-blob-go/azblob.newStorageError, /home/vsts/go/pkg/mod/github.com/!azure/azure-storage-blob-go@v0.15.0/azblob/zc_storage_error.go:42
===== RESPONSE ERROR (ServiceCode=AuthenticationFailed) =====
Description=403 Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature., Details: (none)
HEAD https://biglmdiag.blob.core.windows.net/vinvl/image_features/oi_X152C4_frcnnbig2_exp168model_0060000model.roi_heads.nm_filter_2_model.roi_heads.score_thresh_0.2/model_0060000?se=3023-08-28t09%3A12%3A41z&sig=-REDACTED-&sp=r&sr=c&st=2023-08-28t01%3A12%3A41z&sv=2022-11-02&timeout=901
User-Agent: [AzCopy/10.20.1 Azure-Storage/0.15 (go1.19.12; linux)]
X-Ms-Client-Request-Id: [aa911033-29be-4949-4899-d28b11af8e85]
X-Ms-Version: [2020-10-02]
RESPONSE Status: 403 Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
Date: [Sat, 02 Sep 2023 08:18:05 GMT]
Server: [Microsoft-HTTPAPI/2.0]
X-Ms-Error-Code: [AuthenticationFailed]
X-Ms-Request-Id: [6f4fb951-c01e-00f1-0475-dd6d29000000]
Any ideas? Thank you very much!

@ChunyuanLI Works for me, thanks.
@Rosiekk I'm closing this issue since manual file transfer should be fine in my case. Feel free to reopen it if you wish to continue the discussion about azcopy.


Python 2.7, 3.3, and 3.4 compatibility broken on Linux

On Linux, there is a downstream dependency on a package called SecretStorage coming from the dependency on the msrestazure package. SecretStorage is only compatible with Python >=3.5.
I installed using pip install azure as mentioned in the documentation.
Collecting secretstorage; sys_platform == "linux2" or sys_platform == "linux" (from keyring>=5.6->msrestazure<2.0.0,>=0.4.20->azure-batch~=4.0->azure)
  Using cached https://files.pythonhosted.org/packages/02/de/e4590cf025c714635637d4b2d19acfb1015f2d0c6cfe843b2b8f776ec819/SecretStorage-3.0.0-py2.py3-none-any.whl
SecretStorage requires Python '>=3.5' but the running Python is 2.7.12

Now fixed as of msrestazure v0.4.28


⚠ Spryr has degraded performance

In f68aedb, Spryr (https://spryr.com) experienced degraded performance:

HTTP code: 200
Response time: 25870 ms

Resolved: Spryr performance has improved in 1267a63 after 7 minutes.


429 Too Many Requests response status code?

The error is the [Failed to ingest your data]
      url: 'https://api.openai.com/v1/embeddings'
    },
    request: Request {
      [Symbol(realm)]: [Object],
      [Symbol(state)]: [Object],
      [Symbol(signal)]: [AbortSignal],
      [Symbol(headers)]: [HeadersList]
    },
    data: { error: [Object] }
  },
  isAxiosError: true,
  toJSON: [Function: toJSON]
}
c:\Users\Jack Ma\Desktop\gpt4-pdf-chatbot-langchain\scripts\ingest-data.ts:51
    throw new Error('Failed to ingest your data');
          ^

[Error: Failed to ingest your data]

with a piece of error somewhere above states:
response: {
    ok: false,
    status: 429,
    statusText: 'Too Many Requests',
    headers: HeadersList {
      [Symbol(headers map)]: [Map],
      [Symbol(headers map sorted)]: null
    },

My troubleshoot is listed below:
Make sure you're running the latest Node version. Run node -v

Node.js v18.12.1

Make sure you're using the same versions of LangChain and Pinecone as this repo.

I never install these packages before, and I only did npm install after I forked this repo, so should be the same (?)

Check that you've created an .env file that contains your valid (and working) API keys.

Yes

If you change modelName in OpenAIChat note that the correct name of the alternative model is gpt-3.5-turbo

Yes

Pinecone indexes of users on the Starter(free) plan are deleted after 7 days of inactivity. To prevent this, send an API request to Pinecone to reset the counter.

I have just created an index. Shouldn't be deleted.

Make sure your pinecone dashboard environment and index matches the one in your config folder.

yes

Check that you've set the vector dimensions to 1536.

yes

Switch your Environment in pinecone to us-east1-gcp if the other environment is causing issues.

Currently we cannot change enviroment.

If you're stuck after trying all these steps, delete node_modules, restart your computer, then pnpm install again.

yes

I have similar problem like this:
`error [Error: Network Error] {
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [AsyncFunction: fetchAdapter],
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus],
headers: {
Accept: 'application/json, text/plain, /',
'Content-Type': 'application/json',
'User-Agent': 'OpenAI/NodeJS/3.2.1',
Authorization: 'Bearer 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'
},
method: 'post',
data:'{……}',
url: 'https://api.openai.com/v1/embeddings'
},
code: 'ERR_NETWORK',
request: Request {
[Symbol(realm)]: { settingsObject: [Object] },
[Symbol(state)]: {
method: 'POST',
localURLsOnly: false,
unsafeRequest: false,
body: [Object],
client: [Object],
reservedClient: null,
replacesClientId: '',
window: 'client',
keepalive: false,
serviceWorkers: 'all',
initiator: '',
destination: '',
priority: null,
origin: 'client',
policyContainer: 'client',
referrer: 'client',
referrerPolicy: '',
mode: 'cors',
useCORSPreflightFlag: false,
credentials: 'same-origin',
useCredentials: false,
cache: 'default',
redirect: 'follow',
integrity: '',
cryptoGraphicsNonceMetadata: '',
parserMetadata: '',
reloadNavigation: false,
historyNavigation: false,
userActivation: false,
taintedOrigin: false,
redirectCount: 0,
responseTainting: 'basic',
preventNoCacheCacheControlHeaderModification: false,
done: false,
timingAllowFailed: false,
headersList: [HeadersList],
urlList: [Array],
url: [URL]
},
[Symbol(signal)]: AbortSignal { aborted: false },
[Symbol(headers)]: HeadersList {
cookies: null,
[Symbol(headers map)]: [Map],
[Symbol(headers map sorted)]: null
}
},
response: undefined,
isAxiosError: true,
toJSON: [Function: toJSON]
}
d:\code\gpt4-pdf-chatbot-langchain-main\scripts\ingest-data.ts:51
throw new Error('Failed to ingest your data');
^
[Error: Failed to ingest your data]
Node.js v19.8.1
 ELIFECYCLE  Command failed with exit code 1.
`

I have similar problem like this:
`error [Error: Network Error] {
config: {
transitional: {

  silentJSONParsing: true,

  forcedJSONParsing: true,

  clarifyTimeoutError: false

},

adapter: [AsyncFunction: fetchAdapter],

transformRequest: [ [Function: transformRequest] ],

transformResponse: [ [Function: transformResponse] ],

timeout: 0,

xsrfCookieName: 'XSRF-TOKEN',

xsrfHeaderName: 'X-XSRF-TOKEN',

maxContentLength: -1,

maxBodyLength: -1,

validateStatus: [Function: validateStatus],

headers: {

  Accept: 'application/json, text/plain, */*',

  'Content-Type': 'application/json',

  'User-Agent': 'OpenAI/NodeJS/3.2.1',

  Authorization: 'Bearer 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'

},

method: 'post',

data:'{……}',

    url: 'https://api.openai.com/v1/embeddings'

},
code: 'ERR_NETWORK',
request: Request {
[Symbol(realm)]: { settingsObject: [Object] },

[Symbol(state)]: {

  method: 'POST',

  localURLsOnly: false,

  unsafeRequest: false,

  body: [Object],

  client: [Object],

  reservedClient: null,

  replacesClientId: '',

  window: 'client',

  keepalive: false,

  serviceWorkers: 'all',

  initiator: '',

  destination: '',

  priority: null,

  origin: 'client',

  policyContainer: 'client',

  referrer: 'client',

  referrerPolicy: '',

  mode: 'cors',

  useCORSPreflightFlag: false,

  credentials: 'same-origin',

  useCredentials: false,

  cache: 'default',

  redirect: 'follow',

  integrity: '',

  cryptoGraphicsNonceMetadata: '',

  parserMetadata: '',

  reloadNavigation: false,

  historyNavigation: false,

  userActivation: false,

  taintedOrigin: false,

  redirectCount: 0,

  responseTainting: 'basic',

  preventNoCacheCacheControlHeaderModification: false,

  done: false,

  timingAllowFailed: false,

  headersList: [HeadersList],

  urlList: [Array],

  url: [URL]

},

[Symbol(signal)]: AbortSignal { aborted: false },

[Symbol(headers)]: HeadersList {

  cookies: null,

  [Symbol(headers map)]: [Map],

  [Symbol(headers map sorted)]: null

}

},
response: undefined,
isAxiosError: true,
toJSON: [Function: toJSON]
}
d:\code\gpt4-pdf-chatbot-langchain-main\scripts\ingest-data.ts:51
throw new Error('Failed to ingest your data');

      ^

[Error: Failed to ingest your data]
Node.js v19.8.1
ELIFECYCLE  Command failed with exit code 1.
`

I wonder if it's just a generic error that can be caused by many factors.
You exposed your chatgpt api key btw.

ok,thank you.Please edit your comments and delete chatgpt api key

Same output here. I didn't find a solution yet.

I think the error indicates that I'vehit the rate limit for some API I'm using. Not sure which one - chatgpt or the pinecone

I've configured a credit card on OpenAI and now it works, so the problem comes from there.

I've configured a credit card on OpenAI and now it works, so the problem comes from there.

Yes the problem comes from the Chatgpt key, change an account or solve anything that relates to the account helps

I had to couple a credit card AND create a new api key after that

Changing the max concurrency in ingest-data.ts helped in my case. You can adjust the concurrency in this line;
const embeddings = new OpenAIEmbeddings({maxConcurrency: 5});

I just bumped into this issue, I followed all of your advice plus the PR above:

Checked billing, I added $10 credit
Created a fresh API key
ran yarn add @pinecone-database/pinecone  to update this dependency.

It's working now


Remove id from Widget.

IMO, you could also remove the ID selector in KV lang as well

Is the above change what you had in mind? I didn't even know that existed...

Yep


Pfm 2978

This PR has changes for -

Project Enhancements for Request Payloads updates done by Health Team.

There are few conflicts in this branch. I will confirm with Nipun and Ram and then will re - raise the PR.


Update file on disk too, not just in the git index

I really like this solution you've come up with as I've been looking for a better way to manage merge issues with csproj files.  But one thing I'm not sure how to solve is that setting it up the way you suggest only updates the file in the git index.  It doesn't update the csproj on the filesystem.  Meaning if I edit the csproj it still shows the un-sorted version of the file.
Any suggestions on how to fix this?

Can you see if also specifying a smudge filter helps?
[filter "csprojarrange"]
  clean = CsProjArrange
  smudge = CsProjArrange

Closing this as I believe the smudge filter will fix the issue.


CloudFormation rate limit

The CloudFormation stack might fail due to API rate limits. @BrettFieber reported an issue and provided example configuration in the Serverless Forums.
A solution could be to make more use of the DependsOn feature and apply every Auto Scaling only after the previous is done.
Serverless Configuration
https://gist.github.com/BrettFieber/019708518fd2ce4307ba03a360f20551

https://github.com/sbstjn/serverless-dynamodb-autoscaling/issues/4 covers the same issue

I just released v0.2.0 which should prevent this. But there is a breaking change in the configuration.

@BrettFieber did you investigate which exactly limits where exceeded in your case, the Rate exceeded message from AWS is pretty vague and doesn't expose details.
Was it PutMetricAlarm transactions per second limit? Or something else?
I wonder for which exactly limit do #7 update applies as workaround (?)

isnt possible to solve this limit problem without ask AWS to upgrade?


Update wikiextractor version

Description
The latest wikiextractor version 3.0.4 is compatible with our code, do change the version number directly.
cc @dmlc/gluon-nlp-team

@DOUDOU0314 I think you may rebase to the current master and we can merge.


Fixed push of unqualified registry

Local image with unqualified name had to be fully qualified before a
push to default registry.
Moved check for official repository to daemon side because client
doesn't know which registry is the default.
Signed-off-by: Michal Minar<EMAIL_ADDRESS>

Merged


Support for OCI-based registries

Please add support for pushing Helm charts to OCI-based registries

Sorry for silence in this matter.
I've started the work here: https://github.com/kiemlicz/shelm/tree/oci-support


Layout UI

In this PR, I:

[x] created a component folder
[x] created calculator.js component
[x] rendered the created calculator.js in the App.js
[x] added .history to .gitigore
[x] created calculator.css

Thank you, I just figured that out, now I have removed them


User Story: Support for both official languages

As a Canadian citizen I would like to have the application available in both official languages so that I can browse using the language of my choice.
Application must support both French and English. Note that the Standard on Web Usability is specific on how web applications are to implement a bilingual UX.

This is done!


Enhancement: Change the FamilyByGeometry's origin to the origin

Right now the form is created at the same coordinates as the host geometry in Dynamo(or the host project). Create the form at the family origin and translate as necessary. This might raise some issues with the host/family units and scale.

I'm in the camp and sometimes enjoy host project origin for one point instantiation, however I feel  if units and scale can be controlled for it would be worth standard family generation also. Could always instantiate using bounding box centroid of referencing geometry.
But that's just my two cents. : )
Jamie
Sent from my iPhone
On Dec 5, 2015, at 12:41 AM, Dimitar Venkov <notifications<EMAIL_ADDRESS>wrote:
Right now the form is created at the same coordinates as the host geometry in Dynamo(or the host project). Create the form at the family origin and translate as necessary. This might raise some issues with the host/family units and scale.
—
Reply to this email directly or view it on GitHubhttps://github.com/dimven/SpringNodes/issues/5.

Will be implemented in the next version


ext-firestore-typesense-search-indexToTypesenseOnFirestoreWrite: Request failed with HTTP code 404 | Server said: Not Found

Hey, I have installed the extension and using the official Typesense cloud to host but I am getting this error from the firebase cloud function when creating new documents:
Flutter Web/ Dart code:
@override
void initState() {
  const host1 = "wt62ejrukzvh378pp-1.a1.typesense.net";
  const host2 = "wt62ejrukzvh378pp-2.a1.typesense.net";
  const host3 = "wt62ejrukzvh378pp-3.a1.typesense.net";
  const protocol = Protocol.http;
  final config = Configuration(
    // Replace with your configuration
    '[admin key (removed on github for security reasons)]',
    nodes: {
      Node(
        protocol,
        host1,
        port: 443,
      ),
      Node(
         protocol,
        host2,
        port: 443,
      ),
      Node(
        protocol,
        host3,
        port: 443,
      ),
    },
    numRetries: 3, // A total of 4 tries (1 original try + 3 retries)
    connectionTimeout: const Duration(seconds: 10),
  );
  client = Client(config);

  super.initState();
}

Below are the screenshots for the extension configuration and firebase functions log:

Seems like an issue with the firebase extension.
cc: @jasonbosco @kishorenc

@rdcoder33 Could you share the exact reproduction steps?

Could you make sure you've created a collection called "3d_icons" in Typesense? The Firebase extension doesn't create the collection for you - it only syncs documents within a collection.

Could you make sure you've created a collection called "3d_icons" in Typesense? The Firebase extension doesn't create the collection for you - it only syncs documents within a collection.

oh didn't know that. Indexing functions work now but got a
Error: XMLHttpRequest error
when searching.
searching code in Flutter/Dart:
  searchTypeSense() async {
    Map<String, String> search = {
      'q': 'kid',
      'query_by': 'tags',
    };
    client.collection("3d_icons").documents.search(search);
  }

@rdcoder33 Could you try doing the same API call using curl and see if you're able to replicate the issue?

@rdcoder33 Could you try doing the same API call using curl and see if you're able to replicate the issue?

It works on curl:

But for the same request and parameters on dart client (pub.dev plugin) is shows following error:
dart-sdk/lib/async/stream.dart 1288:7
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 334:14  _checkAndCall
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 339:39  dcall
dart-sdk/lib/html/dart2js/html_dart2js.dart 37301:58
at Object.createErrorWithStack (http://localhost:49794/dart_sdk.js:5080:12)
at Function._throw (http://localhost:49794/dart_sdk.js:20337:18)
at Function.throwWithStackTrace (http://localhost:49794/dart_sdk.js:20334:18)
at async._AsyncCallbackEntry.new.callback (http://localhost:49794/dart_sdk.js:40851:18)
at Object._microtaskLoop (http://localhost:49794/dart_sdk.js:40708:13)
at _startMicrotaskLoop (http://localhost:49794/dart_sdk.js:40714:13)
at http://localhost:49794/dart_sdk.js:36191:9
I am testing this on flutter web.

@happy-san Any thoughts on this ^

this might help:
https://stackoverflow.com/questions/69115713/how-can-i-solve-xmlhttprequest-error-with-flutter

Hi, @rdcoder33 this seems to be a web-specific issue. Looking around I found these links:
Hope you'll give them a try.

1- Go to flutter\bin\cache and remove a file named: flutter_tools.stamp
2- Go to flutter\packages\flutter_tools\lib\src\web and open the file chrome.dart.
3- Find '--disable-extensions'
4- Add '--disable-web-security'

https://stackoverflow.com/a/66879350/11218270
https://pub.dev/packages/flutter_cors

Since this is a separate issue from what you opened, I'd recommend opening a new issue for future reference.

https://pub.dev/packages/flutter_cors

This doesn't solve the problem for me. Same error

@rdcoder33 Can you share the exact response you're receiving from the server?

Ohh sorry for the late reply. Nope, it didn't get solved so we opted for the HTTP request to type sense API rather than using the flutter plugin.

@rdcoder33 Would you care to correspond with me in figuring out a fix?

@rdcoder33 Would you care to correspond with me in figuring out a fix?

I would love to but kinda a busy currently. I will send you the details by tomorrow (it's nighttime in India) and will try to correspond probably after 2-3 days.
I hope this works for you?

Sure that'll be great. I'm in the same timezone.


Minimum Debian/Ubuntu support

I came across your library and have successfully run it in Debian 12.  I have a device that I can't upgrade and is on Debian 7 but as this uses the low level HCI commands, I thought that I could get it to run there.
I managed to compile it and start it, but it crashes my bluetooth and displays the message:
Initialising...
No root permission or Bluetooth (hci0) is off or crashed
Must run with root permission via sudo as follows:
  sudo ./btferret (for C) or  sudo python3 btferret.py

What would be the minimum version/OS that this can run on? Or maybe I need to update something?
Any help would be greatly appreciated.

syslog output:
Mar 26 03:08:06 debian7 bluetoothd[3531]: HCI dev 0 unregistered
Mar 26 03:08:06 debian7 bluetoothd[3531]: Stopping hci0 event socket
Mar 26 03:08:06 debian7 bluetoothd[3531]: Unregister path: /org/bluez/3531/hci0
Mar 26 03:08:12 debian7 bluetoothd[3531]: HCI dev 0 registered
Mar 26 03:08:12 debian7 bluetoothd[3531]: Listening for HCI events on hci0
Mar 26 03:08:12 debian7 bluetoothd[3531]: HCI dev 0 up
Mar 26 03:08:12 debian7 bluetoothd[3531]: Proximity GATT Reporter Driver: Operation not permitted (1)
Mar 26 03:08:12 debian7 bluetoothd[3531]: sap-dummy interface org.bluez.SimAccessTest init failed on path /org/bluez/test
Mar 26 03:08:12 debian7 bluetoothd[3531]: Sap driver initialization failed.
Mar 26 03:08:12 debian7 bluetoothd[3531]: sap-server: Operation not permitted (1)
Mar 26 03:08:12 debian7 bluetoothd[3531]: Unable to load keys to adapter_ops: Function not implemented (38)
Mar 26 03:08:12 debian7 bluetoothd[3531]: Adapter /org/bluez/3531/hci0 has been enabled
Mar 26 03:16:40 debian7 bluetoothd[3531]: HCI dev 0 down
Mar 26 03:16:40 debian7 bluetoothd[3531]: Adapter /org/bluez/3531/hci0 has been disabled

Looks like this is the problem, Unable to load keys to adapter_ops: Function not implemented (38)

I do not have Debian 7, so I can't check it myself. From the syslog it looks like hci0 is OK. Check by running:
hciconfig

See if you get a listing for hci0.
Try enabling or disabling hci0 first:
sudo hciconfig hci0 down
OR
sudo hciconfig hci0 up

Or try shutting down bluetooth before running btferret:
sudo service bluetooth stop

Or - this is a bit more complicated because the library must be edited. Get more information about the failure by enabling verbose mode and save the results to a text file as follows. I'm not sure if you're running C or Python. If Python - run btfpy.py build again.
In btlib.c file Line 1342

  set_print_flag(PRINT_NORMAL);
  // set_print_flag(PRINT_VERBOSE);

CHANGE TO

  // set_print_flag(PRINT_NORMAL);
   set_print_flag(PRINT_VERBOSE);

Then run this code.
C

int main()
  {
  init_blue("devices.txt");
  output_file("bug.txt");
  return(0);
  }

PYTHON

btfpy.Init_blue("devices.txt")
btfpy.Output_file("bug.txt")


UTF-8 support for Richt Text feature

The code from example which is using DrawString seems to be able print out a string like this.
"The quick いろは brown\nfox にほへ jumps over\nt🙌h📦e l👏a👏zy dog..."
If i am using the richt text feature with the same text, the icons are not shown.

Works for me:

Make sure your ttfs contain the required glyphs.
The code from example uses 3 different ttfs:
        _fontSystem = new FontSystem();
        _fontSystem.AddFont(File.ReadAllBytes(@"Fonts/DroidSans.ttf"));
        _fontSystem.AddFont(File.ReadAllBytes(@"Fonts/DroidSansJapanese.ttf"));
        _fontSystem.AddFont(File.ReadAllBytes(@"Fonts/Symbola-Emoji.ttf"));

The icons are stored in the "Symbola-Emoji".

Hi,
thanks for your answer. My problem is that the RichTextLayout i am using takes only a single Font and not a FontSystem with multiple Fonts. See https://github.com/FontStashSharp/FontStashSharp/wiki/Rich-Text
RichTextLayout rtl = new RichTextLayout
{
Font = fontSystem.GetFont(32),
Text = "First line./nSecond line.",
};

Sorry, I can't understand the problem. As you can see from that code, that single Font is created from the FontSystem. So simply supply FontSystem that has missing glyphs.

I tried again with the font from your example, that seems to work. I used
https://github.com/googlefonts/noto-emoji/blob/main/fonts/NotoColorEmoji_WindowsCompatible.ttf
It seems to be not compatible.
Any idea why ?

if FontSystem is composed from multiple ttfs, then - when rendering a glyph - it goes through them in the same order they were added, until it finds the required glyph.
Unsure why that ttf doesnt work. Will take a look later.

I can confirm that NotoColorEmoji_WindowsCompatible.ttf isn't compatible. Unsure why. Probably StbTrueTypeSharp can't parse it.
Maybe another font rasterizer would take it?
https://github.com/FontStashSharp/FontStashSharp/wiki/Custom-Font-Rasterizer

Possible the colors are a problem ? The uncolored emoji font works
https://fonts.google.com/noto/specimen/Noto+Emoji


KeyError: 'pos_embed' when fine-tuning

When I use the uniformer_base_ls model to fine tune on my own dataset, the code reports an error:
Traceback (most recent call last):   File "main.py", line 502, in <module>     main(args)   File "main.py", line 278, in main     pos_embed_checkpoint = checkpoint_model['pos_embed'] KeyError: 'pos_embed'
Then I checked the pre-training weights and found that the key pos_embed is not listed separately:
'blocks1.0.pos_embed.weight', 'blocks1.0.pos_embed.bias'
Finally I commented out these lines of code and the program worked. What is this problem? Can you help me please?
# interpolate position embedding
print(checkpoint_model.keys())
pos_embed_checkpoint = checkpoint_model['pos_embed']
embedding_size = pos_embed_checkpoint.shape[-1]
num_patches = model.patch_embed.num_patches
num_extra_tokens = model.pos_embed.shape[-2] - num_patches
# height (== width) for the checkpoint position embedding
orig_size = int((pos_embed_checkpoint.shape[-2] - num_extra_tokens) ** 0.5)
# height (== width) for the new position embedding
new_size = int(num_patches ** 0.5)
# class_token and dist_token are kept unchanged
extra_tokens = pos_embed_checkpoint[:, :num_extra_tokens]
# only the position tokens are interpolated
pos_tokens = pos_embed_checkpoint[:, num_extra_tokens:]
pos_tokens = pos_tokens.reshape(-1, orig_size, orig_size, embedding_size).permute(0, 3, 1, 2)
pos_tokens = torch.nn.functional.interpolate(
pos_tokens, size=(new_size, new_size), mode='bicubic', align_corners=False)
pos_tokens = pos_tokens.permute(0, 2, 3, 1).flatten(1, 2)
new_pos_embed = torch.cat((extra_tokens, pos_tokens), dim=1)
checkpoint_model['pos_embed'] = new_pos_embed

Sorry for the late reply.
Your practice is right! The above code for fine-tuning is copied from DeiT, which is used for interpolating the absolute position embedding in ViT.
Since our UniFormer uses dynamic position embedding, you can simply comment out the code!

Sorry I haven't read the DeiT source code, thank you very much for answering this question for me！

As there is no more activity, I am closing the issue, don't hesitate to reopen it if necessary.


allow setting container capabilities in challenge.yaml

We were always overwriting the capabilities of the challenge container so it was not possible to add custom caps.
Change this by checking for existence before overwriting.
Note that I'm not merging the Capabilities.Add list, instead the challenge author will have to add SYS_ADMIN manually if they want to change it.

This probably needs documentation (that cap_sys_admin is required by the template nsjail and not enforced by the operator) and some testing for troubleshooting. Specially the security consequences of it.
Also, this is more of a feature, so maybe better to push on v1.1? Unless we consider the old behavior a bug.

It's really just a bug fix, we just ignored the value in the template before.
Also writing documentation for this seems overkill since I don't expect this feature to be used much and the error when you don't have sys_admin should be pretty straightforward to figure out. (mount will fail with EPERM)

It does look easy to troubleshoot https://www.google.com/search?q=mount+eperm - but it is surprising that adding a capability actually removes a capability.
Given that the podTemplate behavior has other cases like these (setting cpu limits is enforced to the config and volume mounts appends). Before we could say that in order to ensure compatibility we always enforce configurations that work for limits, mounts and capabilities, but now we can't say that (some times we overwrite them, sometimes we let them overwrite the configuration).
It would be nice to add a comment here:
https://github.com/google/kctf/blob/2011ea47b8732bfd7b5a42b1baff4d303aab8d27/kctf-operator/pkg/apis/kctf/v1/challenge_types.go#L99-L103
So at least it makes sense why we are inconsistent

setting cpu limits is enforced to the config
but that's just another bug. Why would we force CPU limits, we have no idea about the requirements of the challenge

Hmm yea, I don't remember why we set them to 0.9/0.45 - looks like it was meant to be for the template task, but we ended up putting it on the base, which then made it all the way to the operator.
https://github.com/google/kctf/commit/3ede18e0f192429cf4352cf79571f9ddef16498c
https://github.com/google/kctf/blob/alpha/base/k8s/deployment/containers.yaml#L35
Appending looks good though, maybe we should just delete the lines that set the limits, but that can be done separately.

at first I didn't append since I thought it would break if you append the same capability twice. But just tried it out and seems to work fine. So this should be what users would expect it to do.


Fixing Article name in TOC

Fixing wrong article name Create custom Speech Recognition endpoint to Create custom Speech-To-Text endpoint as this article is about Custom STT, not recognition, and real article name is "Create a custom speech-to-text endpoint"

@nrobert : Thanks for your contribution! The author, @, has been notified to review your proposed change.

Notifying @GitHubber17 : it looks like there is no author who will be notified for this change, can you have a look and see who should validate please? Thanks

@erhopf - Would you review the proposed change? Thanks

Suggested change matches the target article's title, this is approved.


How to use 2 binded variable in one template

In my code, i need to generate auth token & need to pass to next test case.
Following is example :
Currently Authorization token in hardcodded & it is working
- test:     - group: "Quickstart"     - name: "Create a Purchase Order"     - url: "/api/pos"     - method: "POST"     - headers: {'Authorization': 'Bearer 4e8f28c5-21bf-4415-980c-e43d714d7cc2', 'Content-Type': 'application/hal+json;charset=UTF-8', 'Accept': 'application/json'}     - expected_status: [201]     - body: {file: 'JSON/cpo.json'}
I want to use variable_binds, like this :
`- config:
- testset: "Quickstart app tests"
- variable_binds: {'token_type': 'Bearer', 'access_token': '4e8f28c5-21bf-4415-980c-e43d714d7cc2'}

test:

group: "Quickstart"
name: "Create a Purchase Order"
url: "/api/pos"
method: "POST"
headers: {'Authorization':  {'template': "$token_type $access_token"}, 'Content-Type': 'application/hal+json;charset=UTF-8', 'Accept': 'application/json'}
expected_status: [201]
timeout : 99999
body: {file: 'JSON/cpo.json'}`

This not working. I want to know, how to use 2 binded variable in one template.
Could somebody help me out.
Thanks,

I have found out :
it should be like this :

headers: {template: {"Authorization": $token_type $access_token,'Content-Type': 'application/hal+json;charset=UTF-8', 'Accept': 'application/json'}}


Removed duplicate timestamps

This PR fixes
Removes duplicate timestamp logging, AzOpsLog includes timestamp at the start of the output.
VERBOSE: [2020-07-17 10:45:08.1945] (Initialize-AzOpsGlobalVariables) Global Variable AzOpsState or AzOpsAzManagementGroup is not Initialized. Initializing it now 07/17/2020 11:45:08
VERBOSE: [2020-07-17 10:45:08.1945] (Initialize-AzOpsGlobalVariables) Global Variable AzOpsState or AzOpsAzManagementGroup is not Initialized. Initializing it now

/azp run


[System test] Liquidation of undercollateralized deposit

This PR adds a system test in which an undercollateralized deposit is liquidated:
The liquidation of deposit 0xfc9c50fd44879bd7085edd311bc8e2b7d3e41595 began due to courtesy call expiration.
In block 11534258 the deposit had status COURTESY_CALL.
In block 11534259 the deposit changed status to LIQUIDATION_IN_PROGRESS.
The blockchain is reset to block 11534259 and notifyLiquidation is called.
After 30% of auction length the bidder takes offer on the created auction and the deposit is liquidated.
The purpose of this test was to check if undercollateralized deposits can be liquidated via cov pools.
However, the flow does not differ too much from the existing "happy path liquidation" test (liquidation.test.js).

We actually do have undercollateralized deposit in our tests already, which happens to be the same one as in this PR. Pls see surplus-for-auction.test.js and constants. Even though this deposit is liquidated through the "surplus" flow, I think we can maybe just add an assertion that it is in "liquidated" state after the cov pool purchases it and not add a separate system test for that. WDYT?

We actually do have undercollateralized deposit in our tests already, which happens to be the same one as in this PR. Pls see surplus-for-auction.test.js and constants. Even though this deposit is liquidated through the "surplus" flow, I think we can maybe just add an assertion that it is in "liquidated" state after the cov pool purchases it and not add a separate system test for that. WDYT?

I agree.
@pdyrag, WDYT?

We actually do have undercollateralized deposit in our tests already, which happens to be the same one as in this PR. Pls see surplus-for-auction.test.js and constants. Even though this deposit is liquidated through the "surplus" flow, I think we can maybe just add an assertion that it is in "liquidated" state after the cov pool purchases it and not add a separate system test for that. WDYT?

@dimpar
I agree, done in 603a1c57159959bc29cc030c551fd0034adac096.


Brazil Not Show Records Recovered

Brazil not show recovered after 2020-03-29

Thank you @rafaelsabino .  I opened a PR to fix Brazil today: https://github.com/covidatlas/coronadatascraper/pull/910/files
I'm not sure where to get "Recovered" from though, I only see Cases and Deaths in the data.  I'm pulling the data from https://covid.saude.gov.br/.

Good Morning @jzohrab . All right? Directly from the health department of brazil, data on recoveries are not reported by state anymore, but globally. You can obtain data on recovered data directly from Johns Hopkins University in the following repository:
https://github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data/csse_covid_19_time_series
Or the Novel Covid repository. In the link:
https://github.com/NovelCOVID/API
https://corona.lmao.ninja/docs/
>>> https://corona.lmao.ninja/v2/historical/brazil
Get time series info from the JHU CSSE Data Repository. Every date since 1/22/20 has an entry tracking deaths, cases, and recoveries for each country. Updated each day at 23:59 UTC. Data is updated every 10 minutes:
Historical (API JSON): https://disease.sh/v2/historical/brazil
Just choose any of these and you will have the data updated daily and some cases every 10 min. Best regards,
Rafael.


Compatibility with Symfony 5

Symfony 5 is about to be released, this PR allows to use PHP WebDriver (and so Panther) with it. There is no code changes, the new version only has to be allowed in composer.json.
@OndraM could you tag a new release after merging please 🙏?

Thanks @dunglas, I will tag this together with #560 👌

Awesome! Thanks


Consider COBS framing

https://en.wikipedia.org/wiki/Consistent_Overhead_Byte_Stuffing
A good implementation seems to be https://docs.rs/corncobs/latest/corncobs/ (I've tried https://docs.rs/cobs/latest/cobs/ but it seems to have some known bugs...)

My feeling is that this doesn't make sense as a built in feature of this library. The sync protocol already requires a reliable in-order channel (which in practice is TCP) so the self-synchronizing nature of COBS seems less useful whilst on the flip side length-prefixed CBOR is much easier to implement (for platforms without a library such as this one). Are there any major advantages to COBS that I'm not thinking of?
I am also working on exposing a generic method like this:
RepoHandle::connect_stream<S, E>(&self, stream: S, direction: ConnDirection)
where
    S: Stream<Result<Message, E>> + Sink<Result<Message, E>>
    E: std::error::Error

Which would allow users to implement whatever framing they like so we're not constraining people to the length prefixed CBOR, we're just defaulting to that.


isChecked()): should be isChecked():

typo here, build is broken

Originally posted by @lawrenz1 in 198c781

Thanks


[Tabular] Error with NeuralNetMXNet model saving to S3 path

Am trying to run the getting started example with AutoGluon Tabular and running into a problem with the NeuralNetMXNet model training. The problem is with TabularPredictor __init__ method that can take an S3 prefix rather than a local dir. I tried again removing the S3 path and it worked fine. The error is below.
The error message is the following:
(pid=6543, ip=<IP_ADDRESS>) Fitting model: NeuralNetMXNet ...
(pid=6543, ip=<IP_ADDRESS>) 	Warning: Exception caused NeuralNetMXNet to fail during training... Skipping this model.
(pid=6543, ip=<IP_ADDRESS>) 		Traceback (most recent call last):
(pid=6543, ip=<IP_ADDRESS>)   File "../3rdparty/dmlc-core/src/io.cc", line 57
(pid=6543, ip=<IP_ADDRESS>) MXNetError: Please compile with DMLC_USE_S3=1 to use S3
(pid=6543, ip=<IP_ADDRESS>) Detailed Traceback:
(pid=6543, ip=<IP_ADDRESS>) Traceback (most recent call last):
(pid=6543, ip=<IP_ADDRESS>)   File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/autogluon/tabular/trainer/abstract_trainer.py", line 924, in _train_and_save
(pid=6543, ip=<IP_ADDRESS>)     model = self._train_single(X, y, model, X_val, y_val, **model_fit_kwargs)
(pid=6543, ip=<IP_ADDRESS>)   File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/autogluon/tabular/trainer/abstract_trainer.py", line 896, in _train_single
(pid=6543, ip=<IP_ADDRESS>)     model.fit(X=X, y=y, X_val=X_val, y_val=y_val, **model_fit_kwargs)
(pid=6543, ip=<IP_ADDRESS>)   File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/autogluon/core/models/abstract/abstract_model.py", line 411, in fit
(pid=6543, ip=<IP_ADDRESS>)     self._fit(**kwargs)
(pid=6543, ip=<IP_ADDRESS>)   File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/autogluon/tabular/models/tabular_nn/tabular_nn_model.py", line 214, in _fit
(pid=6543, ip=<IP_ADDRESS>)     self.train_net(train_dataset=train_dataset, params=params, val_dataset=val_dataset, initialize=True, setup_trainer=True, time_limit=time_limit, reporter=reporter)
(pid=6543, ip=<IP_ADDRESS>)   File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/autogluon/tabular/models/tabular_nn/tabular_nn_model.py", line 367, in train_net
(pid=6543, ip=<IP_ADDRESS>)     self.model.save_parameters(net_filename)
(pid=6543, ip=<IP_ADDRESS>)   File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/mxnet/gluon/block.py", line 451, in save_parameters
(pid=6543, ip=<IP_ADDRESS>)     save_fn(filename, arg_dict)
(pid=6543, ip=<IP_ADDRESS>)   File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/mxnet/ndarray/utils.py", line 280, in save
(pid=6543, ip=<IP_ADDRESS>)     keys))
(pid=6543, ip=<IP_ADDRESS>)   File "/home/ubuntu/anaconda3/lib/python3.7/site-packages/mxnet/base.py", line 246, in check_call
(pid=6543, ip=<IP_ADDRESS>)     raise get_last_ffi_error()
(pid=6543, ip=<IP_ADDRESS>) mxnet.base.MXNetError: Traceback (most recent call last):
(pid=6543, ip=<IP_ADDRESS>)   File "../3rdparty/dmlc-core/src/io.cc", line 57
(pid=6543, ip=<IP_ADDRESS>) MXNetError: Please compile with DMLC_USE_S3=1 to use S3

Looks like will need to follow the instructions here to build with S3 support - https://mxnet.apache.org/versions/1.8.0/api/faq/s3_integration#step-1-build-mxnet-with-s3-integration-enabled. Do you know if there is a pre-built version of this library with S3 support to avoid building from source ?

I'm not aware of a pre-built MXNet with the S3 support, so you may have to build from source.
Alternatively why not just first train with a local path, and then copy the resulting directory over to s3 after training is complete?
If there's some reason you need to use s3 path and cannot install s3-supported mxnet, then you could also just pass: `excluded_model_types=['NN'] to skip training of this particular model (and any others that give you s3 issues).

Yes, I got around it by using EFS instead to save the models instead of S3

This is a bug at present, we don't have good testing in place for the train in s3 functionality so it can sometimes have issues with certain models that are not traditionally serializable in pickle.

Alternatively why not just first train with a local path, and then copy the resulting directory over to s3 after training is complete?

Is it possible to make this a built-in behavior in autogluon?
in predictor constructor (init):
if path is a local path:
    use the path as-is
elif path is a s3 path:
    create a temporary local path, and use the temp local path for training and inference

in predictor destructor (del):
if path is a local path:
    pass
elif path is a s3 path:
    copy the artifacts from the temp local path to the original s3 path
    clean up temporary local path

This is definitely a hacky way, but seems a nice usability enhancements. As AutoGluon sometimes use quite a lot of local disk, we do have the need to persist the artifacts to s3 when training a lots of models.

Fixed due to replacing the MXNet NN with the Torch NN in Tabular.


Use GitHub to get the combined status of a pull request

TIL "there's an endpoint for that"
https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref

What’s this offer vs what we fetch now via GQL?
Sent with GitHawk

We do this manually now 😬
Should do via GraphQL if available.
Sent with GitHawk

@BasThomas are we talking about different things? We get PR commit context info via GQL:
https://github.com/GitHawkApp/GitHawk/blob/master/gql/IssueOrPullRequest.graphql
Sent with GitHawk

Are we doing this manually then though we have the info? https://github.com/GitHawkApp/GitHawk/blob/ddddb6363f008c2ec50bb010031cbd851676dc8a/Classes/Issues/Merge/MergeHelper.swift

The contexts come in as a list for each (push, pull, different CIs, etc). To make a call on mergeability, we have to reduce them all down.
Sent with GitHawk

Yeah but the reducing is exactly what is done by the endpoint, right? I don't understand 😔


README file only - Adding new Limitation and new example

Adding the minimum throughput limitation (based on an user support request)
Adding a new example: Get database and container throughputs

#sign-off

#sign-off


Relating Type Params and Arg Usage

The current shape and detail of FRAME metadata doesn't give us the full picture necessary to understand the relationships between type params and the fields that reference them.
The Option type is a good example.
Its params field looks as follows:
[
  {
    "name": "T",
    "type": 10
  }
]

And it's def looks as follows:
{
  // ...
  "members": [
    {
      "name": "None",
      "fields": [],
      "index": 0,
      "docs": []
    },
    {
      "name": "Some",
      "fields": [
        {
          "type": 10,
          "docs": []
        }
      ],
      "index": 1,
      "docs": []
    }
  ]
}

There is no way to determine that the first field of Some corresponds to the type param T. We can flatten the type according to whatever is at index 10... but we can't reconstruct an accurate generic representation. This poses great difficulty for generating idiomatic type definitions in other languages (as I'm currently trying to do in TypeScript). I'd greatly appreciate more information about the current approach.

Here is a an example of the "overloaded" option type––with the type param constraints set to those output during monomorpization.

... there are more members of the constraint union, but they would not fit on the screen.
To take this approach to modeling Option in TypeScript, we need to parameterize each variant according to which args they make use of. So the task at hand: figure out if/how to parameterize the Some and None types:

None needs no type params. Some needs the same constraint as Option. We also need to swap out field 0 with the T type reference. We cannot reasonably determine the correct type params of Some.
What if a given Variant needs only have a subset of the enum's type params? What if a type arg is referenced multiple times within a given variant's fields. The current definition doesn't give us the full picture necessary to understand the relationships between type params/args and their usage.

Regarding alternative routes...
We could forgo undoing the monomorphization and generate constraint-specific versions of each type.
export namespace Option {
  export type _numberLs<T extends number[]> = Some._numberLs<T> | None;

  export type _ElectionCompute_1<T extends ElectionCompute_1> = Some._ElectionCompute_1<T> | None

  export type _ScheduleV3_1<T extends ScheduleV3_1> = Some._ScheduleV3_1<T> | None

  // misc ...
}

... but this is quite bloated.
Alternatively... we could forgo the type param constraint entirely. Given that this will be generated, we don't have to worry about users supplying invalid types (the user never directly instantiates these types).
However, this feels wrong from a discoverability perspective; users should be able to understand what types are valid in a given slot.

Any thoughts would be greatly appreciated!

Capturing generics is a hard problem, I did some work on it which I abandoned https://github.com/paritytech/scale-info/pull/12, in order to prioritize integrating the new metadata into Substrate.
The workaround for arbitrary generic types is to use the optional typeName on the field to match up with name field from the params. That way you can substitute the concrete type for the generic type where it belongs.
[
  {
    "name": "T",
    "type": 10
  }
]

{
  // ...
  "members": [
    {
      "name": "Foo",
      "fields": [
        {
          "type": 10,
          "typeName": "T",
          "docs": []
        }
      ],
      "index": 1,
      "docs": []
    }
  ]
}

For all types where TypeInfo is derived the typeName field should have a value. However where it is not the case you can use the concrete type to match the field type with the type parameter to substitute it as T.
Option is a built-in type so has a manual  TypeInfo implementation which doesn't have the typeName set: https://github.com/paritytech/scale-info/blob/master/src/impls.rs#L199. Arguably it should do, however because it is a "built-in" type that will never change we can make the assumption that the first field of the Some variant always corresponds to the only type parameter. In the subxt Rust codegen we just use the library Option type instead of generating our own version: https://github.com/paritytech/subxt/blob/08369f3e4399fee54bb5e89bececf8285968d554/codegen/src/types/type_path.rs#L119.
So for the specific case of Option and other built-in types e.g. Result it might be good to define your own local hardcoded copies. Might be worth having a look at polkadot.js codegen to see what they do there.
It may be possible in the future to come up with a nice way to represent generic types in the metadata itself, but that is not likely in the near future, and at the moment the above described heuristic should be good enough.

Thank you for clarifying that typeName isn't present on those built-in types (Option, Result). In other cases, typeName should give us what we need!


Fix formatting on mobile

Chrome 80 Android
The "how to donate" list numerals are elided
Some of the line breaks aren't rendering

This was fixed with Tavis's first commit. Thanks Tavis for the real stylesheet!


Get screen space bounding box of OSPGeometry

Hi,
Is there a way to get the screen-space bounding box of an OSPGeometry once it has been rendered? I'm trying to automatically extract cropped images of certain objects in the scene from the rendered image of the entire scene.
For example, I'd like to be able to get a bounding box ((x, y) top-left position and (x, y) width, height)) if the given OSPGeometry is on-screen.
Thanks

Currently this is not (easily) possible. However, we discussed your feature request and plan to expose a "camera-project" function, transforming a 3D world-space point to the 2D screen-space point.

Such a function would be very useful. Given the geometry's 3D bounding box it would be simple to calculate the screen-space bounding box after projecting the vertices into 2D as you say.
Until then, a colleague suggested a clever workaround - render the scene twice (once with and once without the object) and do an image subtraction to find the object's pixel mask. From there it's easy to get the bounding box in 2D. Unfortunately it involves two render passes but it's still better than manually cropping. In fact, instead of the second full render pass perhaps I could just render the object on its own in an otherwise empty scene to get the pixel mask.
I'll probably use that solution until there's an OSPRay function for doing this more easily. Thanks for your reply, I'll close this issue.

If you don't mind to look at all pixels than you can also just check the alpha channel to detect where the object is (and where is just background) -- no need to render the scene twice then.


Provide Docker support for Wax

This issue is to provide a means to both:

Run the demo and/or modified Wax project with Docker, and
Execute the derivative, pages, and search tasks within a Docker environment

Potential resolution pull-requests:

https://github.com/minicomp/wax/pull/85
https://github.com/minicomp/wiki/pull/21

In order to keep the documentation cleaner, it may be worth considering putting all of the Docker information in its own page.

Hi @awoods, I had an idea to make the dual documentation easier. Let me know what you think.
I kept your commits + Dockerfile and added them to the docker branch. Instead of running each command with docker run (e.g., docker run --rm -v $PWD:/app --name wax-demo wax:1.1.0-snapshot "bundle exec rake wax:derivatives:simple YOUR_COLLECTION_NAME"), how do you feel about:

building the image in advance, and
having folks run all the commands (e.g., the tasks, jekyll serve, etc.) within an interactive bash shell from the image?

That way, each task doesn't need to have 2 docs (native vs. docker) because, once you're in the shell, almost everything* should be the same.
Steps to reproduce/test:

Build the base image: docker build -t ubuntu/wax .
Start a container + open the shell: docker run -it -p 4000:4000 ubuntu/wax bash
Run any task to test, e.g., bundle exec rake wax:pages qatar from within the container
Run the jekyll server within the container + view demo in host browser: bundle exec jekyll serve --host <IP_ADDRESS>

(* By almost everything, I mean everything except jekyll serve, which unfortunately needs --host <IP_ADDRESS> within Docker.)

@mnyrop : sounds like a great idea... and the updated Docker and instructions above work as advertised.

@awoods good point. would you be okay with me:

using the method above in the main docs, and
asking you to contribute a Wax "recipe" for using Docker with a mounted volume? I'd love to add your workaround to the (currently non-existent) recipes section of the wiki! (So far I only tested this option with docker-compose, which may or may not make sense.)

Also before I merge into master: are you okay with being the maintainer of the Dockerfile, per line 3?
Thanks again for your contributions on this!

@mnyrop : it all sounds good.
Regarding maintenance of Dockerfile, I am not expert, but am happy to help as I can.

Merged into master via #87


Add an encoder/prediction block approach that mimics ViT within I-JEPA

I'm proposing we try to use flattened 1 D vectors projected back to embedding_size within the encoders, using padding tokens updated via gradient.
So, at level one we'd flatten across the number of codes.
At level two we'd flatten across the codes and components (cpt, icd, ttnc).

Tried this.  Doesn't work very well because of all of our necessary padding.


Search and fetch local lyrics (.lrc or .txt files) located in same directory as the audio file

My lyrics have the same file name as the audio tracks, obviously with a different extension. But I can’t switch from Lyric Show 3 to OpenLyrics because the latter is unreliable.
When I set it with %filename%, some of the existent lyrics show this instead of the file content. I don’t see any difference to the other files that are shown fine.

All these files are shown fine by the Lyric Show 3.
I even removed all the possible Internet sources so that there is no Chinese interference, but it’s not that either.
What is the problem ?
Steps to reproduce
Put %filename% instead of the default $replace(…) in the settings (Search sources / Local files / File name format)
Expected behavior
Considering the original setting working on both kinds of formats (.lrc and .txt), I suppose you don’t have to set an extension (actually if you do, it will only work on that one type of format).
Versions

foobar2000 version: latest 2.1.6
OpenLyrics version: latest 1.11

Debug logs
The console doesn’t show anything else but “Opening track for playback: "…"”
For example in this album, all tracks have .lrc files, but tracks 1, 3, 4 ,6, 7, 10, 11 show some Chinese characters, whereas all the others show the .lrc file.
In the screen capture, Lyric Show 3 (set with %_filename%) shows the lyrics, whereas OpenLyrics shows gibberish.

I might found a culprit. The .lrc files that show fine are encoded as UTF-8 with no BOM. I converted them to Windows 1252 encoding and lo ! OpenLyrics switches to Chinese gibberish.
I converted the tracks that didn’t show fine to UTF-8 (BOM of no BOM) and now they are shown all right in OpenLyrics.
So now the problem seems clarified, waiting for a correction please.
Thanks in advance.

Ah ok great, thanks. That's....very strange. Just to clarify, you've set "Storage Directory" to "Same directory as the track" and then:

With the contents of the lyrics file encoded in UTF-8 it always works correctly
With the contents of the lyrics file encoded in Windows 1252, it works correctly when the "Local files" filename format is %filename%, but decodes incorrectly when the filename format is $replace([%artist% - ][%title%],/,-,\,-,<,-,>,-,:,-,",-,|,-,?,-,*,-)

Is that accurate? That's very weird, the name of the file really shouldn't impact the decoding at all (I was going to say it looked like another instance of #364). Could you possibly upload the exact Windows 1252-encoded file, along with the exact name you have the file saved under?

Ah ok, yeah that makes more sense. Thanks for the extra testing and clarification! In that case I'm going to say this is another instance/duplicate of #364.
If you could upload the exact file causing your issue there, then that would help with additional examples to test against :)


DeduplicateRecords based on recordKey if global index is used

Fixes issue #344

@vinothchandar

Fixed the null check on index variable. Had to be moved outside of the code block.
Removed getIndex(), instead added a package private constructor for testing, to inject a mocked index.

Thanks, Squashed commits @vinothchandar


Build with coralibre sdk

Checklist

[ ] Test your changes as thoroughly as possible before you commit them. Preferably, automate your test by unit/integration tests.
[ ] If this PR comes from a fork, please Allow edits from maintainers
[ ] Set a speaking title. Format: {task_name} (closes #{issue_number}). For example: Use logger (closes # 41)
[ ] Link your Pull Request to an issue - Pull Requests that are not linked to an issue with you as an assignee will be closed, except for minor fixes for typos or grammar mistakes in documentation or code comments.
[ ] Create Work In Progress [WIP] pull requests only if you need clarification or an explicit review before you can continue your work item.
[ ] Make sure that your PR is not introducing unnecessary reformatting (e.g., introduced by on-save hooks in your IDE)
[ ] Make sure that your PR does not contain changes in text files, therefore the PR must not contain changes in values/strings/* and / or assets/* (see issue #332 for further information)
[ ] Make sure that your PR does not contain compiled sources (already set by the default .gitignore) and / or binary files

Description

This PR assumes the SDK code is in a sibling-directory called "CoraLibre-android-sdk". Does anybody have strong feelings against adding the sdk as a git submodule? If nobody objects I'm going to take this code and adjust it accordingly.

I have adjusted the code, rebased it and pushed it to the new master branch. Thanks for the contribution!

(I haven't adjusted the code to use submodules yet)


WORKER PERFORMANCE TO THE MOON 🚀🚀🚀

Modifies the Dockerfile for the worker to use static linking.
This is a separate speedup from PGO, but the two can be used together.

closing in favor of https://github.com/BCWResearch/bcw_zk_evm/pull/20


Don't compute sin, cos twice for the same angle

There are few cases in code where exprensive functions are called twice for the same angle. Newer runtimes are able to optimize such cases and speed of my version and current one will be the same. But older runtimes cannot do that.
Benchmarks:
In drawTicks (Benchmark):

Fly FS504 (API 21):
current - 1 655 ns
new - 677 ns
ZTE Blade V9 (API 27)
current - 426 ns
new - 198 ns

In differenceBetweenAngles (Benchmark):

Fly FS504 (API 21):
current - 2 982 ns
new - 1 830 ns
ZTE Blade V9 (API 27):
current - 436 ns
new - 425 ns

As you can see, newer runtime optimized differenceBetweenAngles and speed is almost the same

Thank you for your contributions!


Discover via Bluetooth?

I received a real Matter device today (Tapo P125M mini), and I'm trying to pair it. Running on a Raspberry Pi 4, Bullseye with Python 3.9.
When I run the discover command I see a lot of mdns messages.. but nothing about doing a bluetooth scan. Each time the result is an empty array.
Then I found this in the documentation TODO:
Mention commissioning with the server directly is disabled due to coexitence issues with bleutooth

Does that mean it's not possible to pair my device? Should I use the manufacturer's app to pair it so it becomes available on the network, and then pair it again?
More importantly, is this a temporary situation? I really want to avoid having to install apps on phones.
Some other questions I have:

Is there support for commissioning with the manual pairing code?
If not, is it possible to translate a manual pairing code into an MT: code somehow?
When providing the wifi credentials, do I have to give the plaintext password or can I use the 'encrypted password'? I'd rather not store the plaintext wifi password on the Raspberry Pi.
I notice it's trying to discover on eth0, but this predictably fails since the Raspberry Pi is connected via WiFi, not Ethernet. I don't seen any debug messages about it scanning on WLAN0. Should I be seeing those?

DEBUG:chip.DIS:Warning: Attempt to mDNS broadcast failed on eth0`)

To pair a Matter device, open Home Assistant on your mobile phone, go to config -> devices & services -> find Matter card and click ‘Configure’ and click on “Commission with mobile app”.
Alternatively, if you’re on Android, it should automatically pop up a pairing screen for Matter devices and you can pick Home Assistant as an option.

I don't use Home Assistant. I'm using this library in another project.
The goal of this project is primary to have Matter support in Home Assistant but its universal approach makes it suitable to be used in other projects too.

I noticed this when doing a pairing attempt, perhaps it sheds some light.
ERROR:chip.CTL:Commissioning discovery over BLE failed: ../src/platform/Linux/BLEManagerImpl.cpp:814: CHIP Error 0x00000032: Timeout
ERROR:chip.-:../src/platform/Linux/BLEManagerImpl.cpp:814: CHIP Error 0x00000032: Timeout at ../src/controller/SetUpCodePairer.cpp:299

This feature works in the server, as we use it for development in Home Assistant.

Ok, thanks. Then I will need to figure out why it doesn't seem to be working. Perhaps it's a permisisons issue.

I managed to get the Bluetooth scan to work! I now see lots of Bluetooth devices scrolling by.
I'm still working out what is different now. One thing I noticed is it seems to only work when the Tapo Mini plug has just been booted. Or perhaps the Tapo blocks further attempts if one fails.
The process still halts as described in this issue, so I'm not able to fully pair yet. But I'm one step closer.


Fix CUDA target linkage errors

Changes
1. Cache the installed CUDA
Cache NVIDIA CUDA folders for the build job. It will reduce the time for download and installation.
    env:
      CUDA_CACHE_ROOT: "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA"
    steps:
    # ...
    - name: "Cache: CUDA"
      uses: actions/cache@v2
      with:
        path: ${{ env.CUDA_CACHE_ROOT }}
        key: ${{ matrix.os }}_cuda-${{ matrix.cuda }} # ex) windows-2019_cuda-11.3.1

    - name: "Install/Check: CUDA"
      shell: powershell
      env:
        cuda: ${{ matrix.cuda }}
        visual_studio: ${{ matrix.visual_studio }}
        CUDA_PATH: "${{ env.CUDA_CACHE_ROOT }}\\v11.3" # convenient use in YAML
        CUDA_PATH_V11_3: "${{ env.CUDA_CACHE_ROOT }}\\v11.3" # optional
      run: |
        # ...

CAUTION:
It seems like cache restoration in CI is incorrect. Made the steps to install CUDA always in 1cfc020
2. Update setup of CUDA in CMake
Moved the location of input variables for find_package(CUDA).
if (USE_CUDA)
    set(CUDA_LINK_LIBRARIES_KEYWORD PUBLIC)
    set(CUDA_SEPARABLE_COMPILATION OFF)
    set(CUDA_STANDARD 17)
    find_package(CUDA)
    if (CUDA_FOUND) # Modify project options for CUDA build
    # ...

Known Issues
1. CMake fails to detect CUDA Toolkit sometimes
Reports failure with the following message. I can't get the correct reason for this. One of the suspicious point is the cache restoration in the CI
...
-- CMake build type: Release
-- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.3 (found version "11.3")
CMake Error at C:/Program Files/CMake/share/cmake-3.20/Modules/CMakeDetermineCompilerId.cmake:442 (message):
  No CUDA toolset found.
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.20/Modules/CMakeDetermineCompilerId.cmake:6 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
-- Configuring incomplete, errors occurred!
See also "D:/a/CubbyFlow/CubbyFlow/build/CMakeFiles/CMakeOutput.log".
  C:/Program Files/CMake/share/cmake-3.20/Modules/CMakeDetermineCompilerId.cmake:59 (__determine_compiler_id_test)
  C:/Program Files/CMake/share/cmake-3.20/Modules/CMakeDetermineCUDACompiler.cmake:278 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:51 (enable_language)

This is what we expect.
...
-- CMake build type: Release
-- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.3 (found version "11.3")
-- The CUDA compiler identification is NVIDIA 11.3.109
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Check for working CUDA compiler: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.3/bin/nvcc.exe - skipped
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- Using CUDA: 11.3
--   CRT: dynamic
--   options: --std=c++17;-Wno-deprecated-gpu-targets;-Xcompiler;/FS;-Xcompiler;/MD;-O2
--   nvcc flags: -gencode;arch=compute_75,code=sm_75
-- Threading Building Blocks (TBB) with minimum version 2.0 not found.
...

Normally this requires very detailed configuration in CMakeSettings.json. Think of this as CMAKE_GENERATOR specific issue.
For instance,
{
  "configurations": [
    {
      "name": "x64-Debug",
      "generator": "Visual Studio 16 2019 Win64",
      "configurationType": "Debug",
      "buildRoot": "${workspaceRoot}\\build\\${name}",
      "installRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\install\\${name}",
      "cmakeCommandArgs": "",
      "buildCommandArgs": "",
      "ctestCommandArgs": "",
      "inheritEnvironments": [
        "msvc_x64_x64"
      ],
      "variables": [
        {
          "name": "CMAKE_VS_PLATFORM_TOOLSET_CUDA",
          "value": "11.3",
          "type": "STRING"
        },
        {
          "name": "CUDA_ARCHITECTURES",
          "value": "75",
          "type": "STRING"
        },
        {
          "name": "CMAKE_CUDA_COMPILER",
          "value": "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.3\\bin\\nvcc.exe",
          "type": "PATH"
        },
        {
          "name": "USE_CUDA",
          "value": "true",
          "type": "BOOL"
        },
        {
          "name": "CUDA_CRT_LINKAGE",
          "value": "dynamic",
          "type": "STRING"
        }
      ],
      "cmakeToolchain": "C:\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake"
    }
  ]
}

References

https://docs.nvidia.com/cuda/nvrtc/index.html#separate-compilation
https://cmake.org/cmake/help/latest/module/FindCUDA.html#input-variables
https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
https://docs.github.com/en/actions/reference/environment-variables
https://github.com/actions/cache

Related Issues

#103 (Previous work)

So I concluded it's a CI cache issue.
With the build log of https://github.com/luncliff/CubbyFlow/runs/2814434378, the CUDA install location looks valid but CMake doesn't work as expected.
If we need to apply CI cache to boost CUDA installation, we had better reuse the installer executable, not the folder itself.
What a bad case 😠


FB Link Update

File: docs/
FB URL needs to be updated to  https://www.facebook.com/svetekITexperts

URL Changed


Visualisation of Summary of Responses on a Map - Map is not working

Hi All,
I used this link
http://geotagx.org/geotagx/map-summary/yemeniculturalheritageatrisk
to see the summary of responses for the Yemeni cultural heritage at risk project on a map, but I don't get any results.The map is not uploading the results, which is weird, as I am pretty sure it was working one week ago.
Also, I would like to know if it possible to see the results of the REACH Geotag the Photos project on a map.

reach map would be here but its not working either
http://geotagx.org/geotagx/map-summary/emergencyshelterassessmentinthemiddleeast
its a problem with the geojson, it gives an internal server error, eg see
here
http://geotagx.org/geotagx/export/category/emergencyshelterassessmentinthemiddleeast/GeoJSON
On Thu, Feb 4, 2016 at 11:42 AM, ValeErre87<EMAIL_ADDRESS>wrote:

Hi All,
I used this link
http://geotagx.org/geotagx/map-summary/yemeniculturalheritageatrisk
to see the summary of responses for the Yemeni cultural heritage at risk
project on a map, but I don't get any results.The map is not uploading the
results, which is weird, as I am pretty sure it was working one week ago.
Also, I would like to know if it possible to see the results of the REACH
Geotag the Photos project on a map.
—
Reply to this email directly or view it on GitHub
https://github.com/geotagx/geotagx-theme/issues/139.


Deprecate scope in favor of before_scope and after_scope

This adds before_scope and after_scope and deprecates scope.
before_scope is run before resolve and receives the parent object as first argument, while after_scope is run after resolve and receives the output of resolve as first argument.

I couldn't find a .stickler.yml file in this repository. I can make one for you, or you can create one by following the documentation.

Codecov Report

Merging #39 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff           @@
##           master    #39    +/-   ##
======================================
  Coverage     100%   100%
======================================
  Files           6      9     +3
  Lines         344    518   +174
======================================
+ Hits          344    518   +174

Impacted Files
Coverage Δ

lib/graphql-pundit/instrumenter.rb
100% <100%> (ø)
:arrow_up:

lib/graphql-pundit.rb
100% <100%> (ø)
:arrow_up:

lib/graphql-pundit/instrumenters/scope.rb
100% <100%> (ø)
:arrow_up:

.../graphql-pundit/instrumenters/before_scope_spec.rb
100% <100%> (ø)

...c/graphql-pundit/instrumenters/after_scope_spec.rb
100% <100%> (ø)

lib/graphql-pundit/instrumenters/before_scope.rb
100% <100%> (ø)

lib/graphql-pundit/instrumenters/after_scope.rb
100% <100%> (ø)

Continue to review full report at Codecov.

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


Create a directory

I'm keen to have a look at this. I was thinking of just adding a 'New directory' button next to 'New file'.

Closed as part of merging @kaleworsley pull request. Thanks!


Divide by 0 err in _includes/archive-single.html

After I copied the contents of jekyll-theme-unit-test into a clone of minimal-mistakes and bundle'd,
running bundle exec jekyll serve yielded this error message:
Configuration file: /Users/mac/gits/jekyll/minimal-mistakes/_config.yml
            Source: /Users/mac/gits/jekyll/minimal-mistakes
       Destination: /Users/mac/gits/jekyll/minimal-mistakes/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
  Liquid Exception: divided by 0 in _includes/archive-single.html, included in page6/index.html
jekyll 3.0.3 | Error:  divided by 0

Try bundle exec jekyll build --trace --verbose to see what file its choking on. My guess is you have pagination on as the message above references page6/index.html which is something the jekyll-paginate plugin outputs.

Attached is the output from bundle exec jekyll build --trace --verbose.
I don't see a page6 folder in either minimal-mistakes nor jekyll-theme-unit-test.
And I don't see a reference to "page" within _includes/archive-single.html before Liquid has its way.
But there is a page6 folder within minimal-mistakes-demo's _site folder.

You found a bug with the theme. I mistakenly commented out words_per_minute: 200 in _config.yml which was causing the a "reading time" test post to fail since the condition to enable it was looking for a variable that didn't exist.
The page6 folder is part of jekyll-paginate. It's creating pages for the homepage that paginates every 5 posts.

Fixed upstream.


Contact bugs

Fix bug displaying student contact history
Remove seconds from default contact datetime

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 48.684%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
444

Relevant Lines:
912

💛  - Coveralls


Visual Stories research

What
Teams across Wellcome Collection are actively working to make the experience of visiting the venue more accessible and inclusive. There is a desire to expand the variety of accessible content formats available so we can meet the access needs of a range of visitors - particularly autistic and neurodivergent teens and adults.
These formats will include visual stories, easy read formats, sensory maps and other audio or video content, and form part of a baseline accessibility offer for Wellcome Collection.
More context can be found in this Google Doc.
To help prepare for the design work, a short discovery phase needs to happen in order to investigate/gather information about the various accessible content formats.
Done when

[x] Revisit our accessibility and inclusive design principles
[ ] Gather examples of visual stories, easy read, sensory maps - DM, GE, RC

[ ] Understand mobile use on competitor sites
[ ] How different can they be from each other?

[ ] Get in touch with SciMus team (field trip?) - JPB, DM

Accessibility and inclusive design principles workshop held Monday 24 April. Miro board link is here - I'll be putting the umbrella principles in a slide deck for us to revisit as there are a couple of principles that need a bit more thinking in terms of what they mean to us


Implement staging environment

We need staging environment for dashboard, and subgraph.
This requirement is still WIP. There will be much more added to staging environment.

Using vercel it deploys a version of each PR


Tests?

We're seeing a lot of bugs (#119, #109, #108, #95) that would be relatively easy to automatically test. If we could set up a test suite & use GitHub Actions's free tier to run it on every PR, I think that would be helpful to catch regressions

You are completely right and tests are great! But testing the user interface will be a challenge to implement.

True, it'll be a challenge! I read some articles on testing Electron apps, but most of them assume that you're the owner of the app, which doesn't apply for us.

This might be a plausible approach: https://forum.obsidian.md/t/standard-approach-for-writing-automated-end-to-end-tests-for-plugins/31535/2


Failed to build android

Hello~ I've just imported UnityDeeplinks into my projects, and created empty gameObject with attached UnityDeeplinks component into the scene. Also changed the android:name="com.trophit.MyUnityPlayerActivity".
However, it made me failed to make a build and shown error as follow:
CommandInvokationFailure: Gradle build failed.
/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/OpenJDK/MacOS/bin/java -classpath "/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/gradle/lib/gradle-launcher-4.6.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
stderr[
D8: Program type already present: com.trophit.MyUnityPlayerActivity
java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives
what happen to my projects and any idea to fix this ?

I have a solution but i am not sure. You have to delete Unity Deep links.jar. Then You can get build.

I'm getting the same error, Unity 2019.1.11f1. I've tried rebuilding the .jar file but to no avail, I've not made any changes to the code just added a .cs deep link handler.

same problem here :/ any solutions?

deleting the .jar fixed it. thanks


Update default features for showdown.js

https://github.com/showdownjs/showdown
Notable desiridata:

Table support (simple)
Autolink support (simplifiedAutoLink)
smoothLivePreview
tasklists

Ok. These are added. Please test a few out. Like autolink.

/move to satyrnjs/satyrn