idrisPackages.optparse: init at 2016-06-18 [wip]

Motivation for this change
This isn't working quite yet, I was hoping to get some help from @shlevy. This package requires idrisPackages.wl-pprint, but I don't know how to add it to the build. Do I need to use with-packages.nix? If so, would you mind posting some example code?
Things done

[ ] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[ ] NixOS
[ ] OS X
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Taking a look, than

OK so I can test this myself in a few hours, but you should just be able to add wl-pprint to the function arguments and add it to the buildInputs list.

@shlevy Looks like it, thanks! Now I'm just running into #19014

Weird that the Travis build is passing. Can anyone build this locally?

Travis just checks general nixpkgs evaluation, not the actual package build.

This package also requires lens, which also doesn't compile with new versions of Idris. Nor does it have a README (https://github.com/idris-hackers/idris-lens/issues/4), nor does it have a license (https://github.com/idris-hackers/idris-lens/issues/5). I'm going to try to fix up that project with a few PRs, but it might take a minute. I'll update here when done.

After some more digging and more PRs, I've got it narrowed down to (hopefully) the last issue: https://github.com/HuwCampbell/idris-lens/pull/7. I'll have to update that lens package again, but won't take long. Nothing like a chain of broken dependencies :smiling_imp:

Okay, my PR was accepted so I've rebased and squashed!
Now I'm getting a new error that I don't understand (I've included Bifunctors in the build inputs, after all).
these derivations will be built:
  /nix/store/7pk6h9n46sg9zscm0c2d515klrs7cyck-optparse-2016-06-18.drv
building path(s) ‘/nix/store/0ky18pmsw504rap2zfypxydi5hv6ckl8-optparse-2016-06-18’
'/tmp/nix-build-optparse-2016-06-18.drv-0/idris-libs/prelude' -> '/nix/store/wj89pdqx99xl5fpy9y48m88ir5qhjlcr-prelude/lib/idris-0.12.3/prelude'
'/tmp/nix-build-optparse-2016-06-18.drv-0/idris-libs/base' -> '/nix/store/8dalawpd8brv47pap8pjcizlccmfzv1b-base/lib/idris-0.12.3/base'
'/tmp/nix-build-optparse-2016-06-18.drv-0/idris-libs/effects' -> '/nix/store/gy70g6rfyskvp1d2nahy7qcscjldpzh8-effects/lib/idris-0.12.3/effects'
'/tmp/nix-build-optparse-2016-06-18.drv-0/idris-libs/lens' -> '/nix/store/y6pnqk2dqdpa7zkddxsfi9smrsm3gqsd-lens-2016-10-05/lib/idris-0.12.3/lens'
'/tmp/nix-build-optparse-2016-06-18.drv-0/idris-libs/bifunctors' -> '/nix/store/bq0rxsq81clrz81v3ycgzx15vxrhj0s7-bifunctors-2016-08-10/lib/idris-0.12.3/bifunctors'
'/tmp/nix-build-optparse-2016-06-18.drv-0/idris-libs/wlpprint' -> '/nix/store/0dcwg3dm911zmncd86mxj0ksqbn3pch0-wl-pprint-2016-09-28/lib/idris-0.12.3/wlpprint'
unpacking sources
unpacking source archive /nix/store/v1s6sy191sz2kwrc4bl05hf2f09zwywf-optparse-idris-ad0490ff0fa0e623d03cde1f49a4adffc6f9362f-src
source root is optparse-idris-ad0490ff0fa0e623d03cde1f49a4adffc6f9362f-src
patching sources
configuring
building
Type checking ./Options/Applicative/Maybe.idr
Can't find import Data/Bifunctor
builder for ‘/nix/store/7pk6h9n46sg9zscm0c2d515klrs7cyck-optparse-2016-06-18.drv’ failed with exit code 1
error: build of ‘/nix/store/7pk6h9n46sg9zscm0c2d515klrs7cyck-optparse-2016-06-18.drv’ failed

Strange, this seems to be happening for any library that doesn't ship with idris itself. idris --libdir is showing the right directory though... I wonder if library lookup has changed some other way

Ah! Happens for idris-packaged libs too, unless you happen to request a library in the top-level namespace. strace output showing the issue (for :load Data.So):
5098  stat("/nix/store/w5k4wr6lznjy37n6qmimcw994ip5y8ml-idris-0.12.3/lib/idris-0.12.3/base/Data.ibc", 0x2046528b0) = -1 ENOENT (No such file or directory)
5098  stat("/nix/store/w5k4wr6lznjy37n6qmimcw994ip5y8ml-idris-0.12.3/lib/idris-0.12.3/base/Data.ibc", 0x204652b40) = -1 ENOENT (No such file or directory)
5098  stat("/nix/store/w5k4wr6lznjy37n6qmimcw994ip5y8ml-idris-0.12.3/lib/idris-0.12.3/base/Data.So.idr", 0x204652de0) = -1 ENOENT (No such file or directory)
5098  stat("/nix/store/w5k4wr6lznjy37n6qmimcw994ip5y8ml-idris-0.12.3/lib/idris-0.12.3/base/Data.So.lidr", 0x20142e090) = -1 ENOENT (No such file or directory)
``

It should be looking for/eventually finding base/Data/So.ibc

And indeed, :load Data/So worked.

Oops, my mistake, I wanted :module not :load. Back to the drawing board...

Ah, optparse.ipkg just has opts = "-p lens -p wlpprint" instead of listing dependencies, bifunctors is a transitive dep via lens. I'm not sure if listing dependencies would work either, you may need to manually specify bifunctors even though it's transitive.

@shlevy Wow, thank you so much for all your investigation!

@shlevy What do you mean "instead of listing dependencies"? Could it be fixed by a PR?

Ugh, after changing the buildPhase to
  buildPhase = ''
    ${idris}/bin/idris --build *.ipkg -p bifunctors
  '';

I get
Not all command line options can be used to override package options.

The only changeable options are:
	--log <lvl>, --total, --warnpartial, --warnreach
	--ibcsubdir <path>, -i --idrispath <path>
	--logging-categories <cats>

The options need removing are:
	 Pkg "bifunctors"

@siddhanathan The ipkg format has a field for dependencies listed declaratively, rather than specifying the idris command line flag: http://docs.idris-lang.org/en/latest/reference/packages.html

pkgs =  (',' )+, a comma separated list of package names that the Idris package requires.

@siddhanathan I'm unclear what the status of this pull request is. Did you finally get everything building, or is there still more work to be done?

@ocharles No, I've not got this working.

I have created https://github.com/HuwCampbell/optparse-idris/pull/7 which when merged will mean this can be re-opened


Support binary UUID columns in MySQL

What would be the best way to add support for pop to use BINARY(16) rather than CHAR(36) for UUID primary key columns using MySQL? It seems fizz maps the uuid type to char(36) and the pop whereID() helper method assumes non-integer IDs can be formatted with %s and surrounded with single quotes in a SQL query.
Curious your opinion on the best approach with minimal impact to pop — I am using SQL migrations (so didn't run into the fizz issue) and tried providing an alternate uuid.UUID / driver.Valuer implementation to return []byte rather than a string, but ran into the whereID issue. Would you take a PR adding a PrimaryKeyer interface or something?

It should work with the next version. :)

Fixed with #249.

Thanks!


Add logging library

Logging enables a better debugging and development of the application. https://github.com/VBA-tools/VBA-Log seems to be a useful logging library.

Just as an alternative I am aware of without ever having tested it.
https://chejunkie.com/knowledge-base/log-file-class-vba/


long text management ?

Hello,
By trying a post with a long message, I have the error :
failed to create post: XRPC ERROR 400: InvalidRequest: Invalid app.bsky.feed.post record: Record/text must not be longer than 300 grapheme
Could you manage the thread creation ?
Regards

I'm guessing this is limitation of Bluesky APIs.

Do you mean that adding separation of long text with few threads?

Do you mean that adding separation of long text with few threads?

Exact

Or is there a way to reply to a post? to my own post ?


I have added all Cities under Madhya Pradesh State

🛠 Fixes Issue

👨💻 Changes proposed

✔ Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

📄 Note to reviewers

📷 Screenshots
Thanks for reading my pull request!

hey, @SauravMukherjee44 Please assign this issue under hacktoberfest.


Move solution struct to structs.jl

Codecov Report
Patch and project coverage have no change.

Comparison is base (da156e1) 100.00% compared to head (87aff5e) 100.00%.

:exclamation: Current head 87aff5e differs from pull request most recent head 160aa9a. Consider uploading reports for the commit 160aa9a to get more accurate results

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@            Coverage Diff            @@
##              main       #33   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            4         4
  Lines          135       134    -1
=========================================
- Hits           135       134    -1

Impacted Files
Coverage Δ

src/optimize.jl
100.00% <ø> (ø)

src/structs.jl
100.00% <ø> (ø)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Explicitly ask for OPENAI_API_KEY

If the OPENAI_API_KEY environment variable is not set, the app will silently fail to load the corresponding YAML config. The app only logs the following to the console:
openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable

The OpenAI model is then missing in the web interface, which may not be noticeable.
We should somehow inform the user about setting the environment variable in the web interface.

On second thought, the error in the console is probably enough.
We also describe that the variable should be set in the README.


Feature Request: Binary Sensor for night mode

Is your feature request related to a problem? Please describe.
I am wanting to measure the power used by my tapo camera, so it can be auto discovered by the power_calc home assistant custom component. I have measured the power, there is a very clear change in power when the night mode is active as can be seen below

Describe the solution you'd like
Is it possible to expose the night mode/infrared light on as a binary sensor? This way the power calculation could be reliable determined.
Describe alternatives you've considered
N/A
Additional context
Linked Issue: https://github.com/bramstroker/homeassistant-powercalc/issues/1763#issuecomment-1675794391

Plus one but the reason is completely different :) Im using frigate with tapo cameras. At night firgate hardly recognizes some things, but frigate has the option to improve the contrast of images. The thing here

I come to ask but for different reasons.
When in night vision mode, it activates notifications when my kids are asleep.
The only way I managed to solve this was by using Node-RED + Snapshot to check whether the image is in color or not.

I looked into this, currently we have nothing in the data that would signify whether night vision (IR) is on or off from the camera itself.
Is this reported anywhere inside the app?

No, there is no clear indicators in the app as well, I thought it might be reported somewhere in the api

Closing as this is impossible to implement because app does not support this.


Update python_helpers for rhel-8

Description
RHEL 8 uses '/usr/libexec/platform-python' for system tooling, this version should be used for dnf/yum
Obvious fix.
Issues Resolved
This makes the dnf_package and yum_package providers work on rhel-8
For more details see:
https://developers.redhat.com/blog/2018/11/14/python-in-rhel-8/

Careful readers might have noticed a discrepancy here: Python is not installed by default, but yum is, and yum is written in Python. What magic makes that possible?
It turns out there is an internal Python interpreter called “Platform-Python”. This is what system tools use. It only includes the parts of Python needed for the system to function, and there are no guarantees that any particular feature won’t be removed from it in the future.

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8-beta/html-single/configuring_basic_system_settings/#the_internal_platform_python_package
Check List

[ ] New functionality includes tests
[ ] All tests pass
[ ] RELEASE_NOTES.md has been updated if required (not required for bugfixes, required for API changes)
[x] All commits have been signed-off for the Developer Certificate of Origin. See https://github.com/chef/chef/blob/master/CONTRIBUTING.md#developer-certification-of-origin-dco

@sspans Nice fix. Can you sign off the DCO for this commit so we can merge it?

Any update on getting this merged? @lamont-granquist

I can confirm this is working well for us, and is a straight backport to both 13 and 14. cc @NaomiReeves @jaymzh

A similar fix was merged here:
https://github.com/chef/chef/commit/ddebf8540d4b3870ef649c0797262ff6777a0118
In this PR, the changes to the yum provider will like fail on RHEL 8 (ie. defining yum_package in a recipe on RHEL 8) because it can't import yum as yum capabilities are provided by a DNF shim in RHEL 8.
Has anyone tested yum_package for RHEL 8 with this PR?

I recall yum_package working with platform-python, but I'll double check on monday.

@sspans, I commented here with explanation:
https://github.com/chef/chef/commit/ddebf8540d4b3870ef649c0797262ff6777a0118#commitcomment-31519593
I would expect the import yum to fail (and it does on my RHEL8b1 environment with this PR)

I did another check on rhel 8 beta and handling yum_package via python indeed fails.
So given that #8003 has been merged this can be closed.
However I would suggest adding a few lines to yum_package / python_helper to make it
clear that 'yum_package' isn't supported on RHEL 8. Returning 'undefined method `+' for false:FalseClass' isn't very helpful.

@sspans thanks for confirming.
I have suggested similar (deprecation warning) here.
https://github.com/chef/chef/commit/ddebf8540d4b3870ef649c0797262ff6777a0118#commitcomment-31519593
I really think the ddebf8540d4b3870ef649c0797262ff6777a0118 commit should be be backed out.


caching problem?

I'm trying to use basket.js to load the script for our application.
The first try, when nothing is cached yet, looks fine.
On reload I get an error when trying to access $.mobile.activePage (from jquery.mobile).
Funnily enough, that seems to happen in all Windows Desktop browsers, but not in Safari (MacOS and iOS) so far.
Any idea what's could have gone wrong here?

Update: it seems I found a workaround for the problem.
Originally I had a line $(document).ready(app.init); in my application, which I changed to initializing at the end of the loader:
basket.require(jsfiles)
.then(function() {
	app.init();
});

After changing the call app.init(); to asynchronous, things seem to be working again...

Yeah, document.ready will fire already when all "traditionally" loaded scripts are loaded. So this one should probably be closed?

Not really, in the then-clause of a Promise I shouldn't need to make my call asynchronous to make it work.
Maybe just a problem of an old RSVP version?


Add Jetson AGX Orin 64GB support

Merging for staging deploys and testing, until placing the unit in the Autokit


pending snark work (fixes #3504)

A new cli command pending-snark-work that gives the list of snark works that are not in the pool of completed snark work. They could either be assigned to snark workers but not completed yet or unassigned.
Cli result in JSON format:
[[{"work_id":108397427,"fee_excess":{"magnitude":0,"sgn":["Pos"]},"supply_increase":20,"source_ledger_hash":"104588248406866355379899701121460519035104950827904204682437357357479538585964138110044690","target_ledger_hash":"271507005541817542229695439407316209857543932566358928531082297339892462706301621209078137"},{"work_id":526292545,"fee_excess":{"magnitude":0,"sgn":["Pos"]},"supply_increase":20,"source_ledger_hash":"271507005541817542229695439407316209857543932566358928531082297339892462706301621209078137","target_ledger_hash":"303988361779400194135602336453063309881064454318447335313065374016609978452100933950971442"}],[{"work_id":244361734,"fee_excess":{"magnitude":0,"sgn":["Pos"]},"supply_increase":20,"source_ledger_hash":"303988361779400194135602336453063309881064454318447335313065374016609978452100933950971442","target_ledger_hash":"384587298135487990236364526898469540464613315855956229145236023737466261545087243362938022"},{"work_id":774261604,"fee_excess":{"magnitude":0,"sgn":["Pos"]},"supply_increase":20,"source_ledger_hash":"384587298135487990236364526898469540464613315855956229145236023737466261545087243362938022","target_ledger_hash":"104752152384135896651094344980928367647638618881341277189945463083719938340305603289073696"}]]

graphql query:
pendingSnarkWork {
    workBundle {
      feeExcess {
        magnitude
        sign
      }
      sourceLedgerHash
      supplyIncrease
      targetLedgerHash
      workId
    }
  }

Checklist:

[ ] Tests were added for the new behavior
[ ] All tests pass (CI will check this if you didn't)
[ ] Serialized types are in stable-versioned modules
[ ] Does this close issues? List them:

Closes #3504

Looks good overall. Just have some nits.


[Feature] CarStreaming benchmark that inspects values.

Summary of changes

Changes introduced in this pull request:

Introduces a benchmark that inspects every Ipld data of every block, to set reasonable upper throughput limit expectations.

Reference issue to close (if applicable)

Work on #3314
Other information and links

Change checklist

[x] I have performed a self-review of my own code,
[x] I have made corresponding changes to the documentation,
[x] I have added tests that prove my fix is effective or that my feature works (if possible),
[x] I have made sure the CHANGELOG is up-to-date. All user-facing changes should be reflected in this document.

Streaming forest_snapshot_calibnet_2023-08-02_height_788380.forest.car

Command
Mean [s]
Min [s]
Max [s]
Relative

stream inspect
7.955 ± 0.297
7.686
8.414
10.00 ± 0.58

stream
0.796 ± 0.035
0.749
0.845
1.00

Streaming forest_snapshot_calibnet_2023-08-02_height_788380.forest.car.zst

Command
Mean [s]
Min [s]
Max [s]
Relative

stream inspect
11.616 ± 0.642
11.259
12.761
3.02 ± 0.17

stream
3.845 ± 0.023
3.816
3.872
1.00

Inspect Streaming vs DFS forest_snapshot_calibnet_2023-08-02_height_788380.forest.car.zst

Command
Mean [s]
Min [s]
Max [s]
Relative

inspect stream
11.381 ± 0.142
11.250
11.608
1.00

dfs
26.395 ± 0.640
26.057
27.536
2.32 ± 0.06

Inspect Streaming vs DFS forest_snapshot_calibnet_2023-08-02_height_788380.forest.car

Command
Mean [s]
Min [s]
Max [s]
Relative

stream inspect
7.828 ± 0.062
7.762
7.904
1.00

dfs
11.206 ± 0.255
11.059
11.660
1.43 ± 0.03


A11y Fail: Table + Data grid - Need to use Caption as title of table

CENG_1953
https://react-magma.cengage.com/version/4.5.0/api/datagrid/
https://react-magma.cengage.com/version/4.5.0/api/table/
Issue:
It is a best practice to ensure that all
 elements have a  element. A caption functions like a heading for a table. Most screen readers announce the content of captions. Captions help users to find a table and understand what it’s about and decide if they want to read it. If the user uses “Tables Mode”, captions are the primary mechanism to identify tables.
Suggestion:
We need to document and make it easy for devs to use "caption" attribute to title tables and data grids. Additionally, we need to let them know if they want the caption to also be a heading within the structure of the page, they can do both at the same time.

This is the title of the table

...

We should add a new prop to Table and DataGrid to accept a heading node. We should provide default styling, but we should support any heading type.


Travis fixes

This makes the build pass again.
Handles #647 by ignoring W504 until a decision is made.

Thanks a lot. I will merge. Please consider adding a comment to the release notes thread #629.


how to set cache-control per extension type

[### Question
A clear and concise description of your question.
]
(https://stackoverflow.com/questions/32987486/iis-setting-cache-control-header-per-file-type)
Is it possible to achieve this as well?
Thanks
Eric Xin

Hi @ericxin1982,
One way to achieve this would be to use Pode's Endware, assuming this is static content, you could create an Endware which pattern matches against the supplied Path:
Add-PodeEndware -ScriptBlock {
    if ($WebEvent.Path -ilike '*.html') {
        Set-PodeHeader -Name 'Cache-Control' -Value '<value>'
    }
}

Hope that helps :)

That is so great, thanks.

Sorry to ask further.

If the Cache-Control has two rows, how to do?
Thanks
Eric Xin

Hi @ericxin1982,
Are you able to show a code example of what you have? Called Set-PodeHeader should override any previously set and force on one header - unless there's a process higher up than Pode setting the header also?

Let me modify the sample to include the issue

@Badgerati
I set one cache-control in middleware, and set one in endware, and the endware would overwrite the previous setting. I do not have to have two cache-control, but I just showed you IIS would have two or multiple but pode just can have one only.
Thanks
Eric Xin

Hi @ericxin1982,
Ah right I see, so you want two. In which case using Add-PodeHeader would do this, as it would "add" multiple versions of that header; calling "set" at any point will override any multiple added values and force it back to just one.

Got it.


Added jQuery script to fade out Alerts when X is clicked.

What is the purpose of this pull request?
Add fade out feature to the Alerts when they are closed.
How is this achieved?
Achieved using a jQuery script within index.html instead of CSS/Javascript
Which issue number does this fix?
#30
Attempted the vertical alignment with several different methods, couldn't figure it out. Also, slight bug with the transition, all Alerts close with one click, couldn't solve that issue either. Any advice is more than welcome for the new guy!

The issue with all alerts closing is weird. Sadly, I do not have much (if any) experience in jQuery, but maybe one of our other contributors will be able to help you out with this issue. This is also the same with the vertical alignment in CSS, it's a bit tricky and will probably mess many people up as it has done to me in the past.

I tried to separate each alert from each other based on the type of alert (info, success, etc), but that ended up removing the other buttons not associated with the alerts other than similar class. Then changing one class meant editing all files where that class was referenced, and that ended up really messy so I quit meddling.

Well, I could already see a thing you pointed out. You're saying to get all alerts and close them on click of the "close" class which could afterward probably be available in modal dialogs or so and would have an even worse effect.
$(document).ready(function(){
    $(".close").click(function(){
      $(".alert").fadeOut(1000, function (){
      $(this).remove();
    });
  });
});

Hmmm, I think alert component requires some refactoring, both html and css wise in order to write more proper js.
I'd like to be assigned for this if possible?

You can definitely be assigned to this task @dvlden . Should we keep this PR open in the meantime to wait for more adjustments to come?

#54 fixes this and more


Drop doesn't work in chromium webview elements

Due to chromium bug 412373 this backend isn't workin in chromium webview elements.
I've read that setting dataTransfer.setData('text', /* .. */); helps, similar to the firefox workaround dataTransfer.setData('application/json', {});.
I went ahead an added dataTransfer.setData('text', 'asdf'); a line before the firefox hack. Now, dropping is at least trinngering the callback, but I'm stuck with this error: Uncaught Invariant Violation: Cannot call hover while not dragging. caused by this line.
The code is working fine in a regular browser. Ideas and help greatly appreciated. Chromium bug is fixed but it will take a while before it's released and linked in dependencies like electron.

This was resolved upstream

@arekkas upstream: in Chromium? 56 or 57? For instance, in electron v1.6.1 beta (Chrome 56) works for you?

I didn't upgrade anything actually, but it was a deep dependency which got updated and that is referenced in another dependency with *. Removing your npm modules and installing them again might already do the trick.
package.json:
"electron": "^1.4.15",


License

Could you define the license for it? By default is not usable.
Thank you!

Sure @tomasAlabes. I’ll make it MIT shortly

Merged in #6


Is there any  API to monitor the RUs and set the throughout of cosmos db

We are trying  to implement a way to monitor the RUs of cosmos DB and change the value of throughput dynamically.
Is there any api can get the current RUs of cosmos and reset the throughput value by programming?

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

ID: 789936dc-e275-a87f-4f34-8f757db9b3b4
Version Independent ID: ce1c88a2-5e85-1f2b-d5aa-a2f9b117635e
Content: Provision database throughput in Azure Cosmos DB
Content Source: articles/cosmos-db/how-to-provision-database-throughput.md
Service: cosmos-db
GitHub Login: @markjbrown
Microsoft Alias: mjbrown

Hello @summerkiss Thank you for your feedback! This channel is for driving improvements towards MS Docs. In order to best address your question with the right team, could you provide us with the URL of the MS Doc that you were following, if any?

Hi ，@mike-urnun-msft the only docs related my question I can find is : https://docs.microsoft.com/en-us/azure/cosmos-db/how-to-provision-database-throughput ,
https://docs.microsoft.com/en-us/azure/cosmos-db/request-units

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

ID: 789936dc-e275-a87f-4f34-8f757db9b3b4
Version Independent ID: ce1c88a2-5e85-1f2b-d5aa-a2f9b117635e
Content: Provision database throughput in Azure Cosmos DB
Content Source: articles/cosmos-db/how-to-provision-database-throughput.md
Service: cosmos-db
GitHub Login: @markjbrown
Microsoft Alias: mjbrown

@summerkiss Please take a look at the following and let us know if this is what you are looking for: Monitor Azure Cosmos DB programmatically.

@summerkiss the doc that Mike pointed out is pretty outdated, we are in the process of publishing the latest version. To answer your question, you can monitor the RU consumption from Azure portal, navigate to your Cosmos DB account, open the alerts blade and you can setup metric or activity log alerts to send you notifications if the consumption has reached a certain limit. The following screenshot shows a lit of available metrics;

You can also use the Java SDK to https://docs.microsoft.com/en-us/java/api/com.microsoft.azure.documentdb._offer_v2.getofferthroughput?view=azure-java-stable get the current throughput and add logic to set alerts or update it. If you have further questions, can you please send an email to<EMAIL_ADDRESS>alias. A broader audience can help provide if there are other ways to solve this problem.

We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

@SnehaGunda ,your information is really helpful, we can update the throughput now with the java API,
but we still have the problem to get the real time RU of the entire system by program. Does Application insight still apply the rest API to expose the metrics of the RUs?
@sergaz-msft

+1 I'm also looking for similar stuff, monitor the RUs of cosmos DB and change the value of throughput dynamically so that subsequent call don't impact.
dynamically means scale up when needed and scale down when not used


Links are no longer underlined

Summary
Links are no longer underlined, is this on purpose?

Relevant information

https://design-system-next.vercel.app/?path=/story/components-button--native-link

Link

@BerSteve please add the class is-link to it


Could future.utils.raise_from set the traceback attribute ?

Hi.
The current implementation of future.utils.raise_from refers to PEP 3134: https://github.com/PythonCharmers/python-future/blob/39a066ed/src/future/utils/init.py#L388
However, it does not set the __traceback__ attribute as the PEP recommends.
This would be very  handy to display chained exceptions tracebacks.
Would you be open to a PR adding this ?

For more context : https://chezsoi.org/lucas/blog/displaying-chained-exceptions-stacktraces-in-python-2.html


Screen readers narrate all the messages from the beginning for every new message

Screen readers narrate all the messages from the beginning for every new message

I'm only reproing this on Edge with Narrator. NVDA reads only the most recent changes. If I recall correctly, this is an improvement that can be made on the Narrator app, not Web Chat. Do other team members have input?

I have been investigating this and have some results to share. First, please see my repro steps:

Navigate to full bundle in Firefox, Edge, Chrome, IE, or Safari (For IE: use es5 bundle)
Turn on Narrator, VoiceOver, or NVDA
Type “Hi” in the send box and send
Observe screen reader behavior
Type “timestamp” in the send box and send
Observe screen reader behavior

Notes on the results for each pairing are below: (blank means not tested)

Chrome
Edge
Firefox
IE
Safari

Narrator
No updates from transcript
Reads each activity twice, possibly because of send status change from just now to 1 minute ago?
No updates from transcript
No updates from transcript

NVDA
Voice speaks transcript updates
No updates from transcript
Voice speaks transcript updates
Voice speaks transcript updates

VoiceOver
Voice speaks transcript from beginning whenever there is a new activity

Voice only speaks VoiceOver recommendations; does not recite transcript

Voice speaks transcript, but interferes with VoiceOver suggestions. Implies that aria-live is set to assertive

Some notes:

Previously, Web Chat was implemented with aria-label to read each activity with the following information: who said the activity (Bot or User), the activity text, and the timestamp (which would usually be 'Just now'). This drove me crazy, and I have removed the timestamp readout from our logic so that the screen reader, if working ideally, will say "User said, hi" instead of "User said, hi, just now". This will be included in my eventual PR.
In an attempt to get these scenarios to function more uniformly, I am going to  be explicit with the aria-live attributes instead of depending on the default values. In particular, aria-atomic's default value is supposed to be false, and aria-relevant should be be all, but instead I will be explicit in the hopes that this improves browser compatibility. I will post these new results on this issue, probably tomorrow.
ARIA support across browsers is really spotty.  I personally want to provide an app that's accessible to people of all abilities, but with WAI-ARIA is not fully supported by any browser, and I am unsure the depth at which we are able to tackle this without first getting browser compatibility. My next step will be to consult with our team's Accessibility team and see if they have advice for improvements on our app. Included in this will be a simplified version of our DOM to show where are aria-live attributes are being inserted.
I haven't been able to find anything online about aria-live regions interfering with each other. As a last result I will test if the screen reader functions more ideally if there's only one aria-live region being tracked. Right now I believe we have two: the transcript and the send status.

More information to come!

I made a basic app to test aria-live features: ARIA-screenreader-testing
This app previously had two (nested) aria-live features to mimic Web Chat. Unfortunately this caused problems in Firefox where the nested live region was always read twice. Because of this, I will be removing the nested live region in Web Chat to improve compatibility across browsers.
Description of App
This app has an unordered list that makes up the live region, with two separately updating features:

The list starts with two items but will regularly add another <li> to the list with a random number as text.
The last bullet will regularly update the time in milliseconds since the page was refreshed.

Expected Behavior

All screen readers should read the entire list on first run-through
Subsequent changes to the list (additions and change of text) should be read, but the entire list should NOT be repeated.

Results

Chrome
Edge
Chromium Edge
Firefox
Safari

Narrator
:heavy_check_mark:
Doesn't respect aria-live="polite", but reads both updates
:heavy_check_mark:
Doesn't read live regions, with or without 2 live regions

NVDA
:heavy_check_mark:
Only reads text updates of the time interval; it ignores random number pushes, even with only one live region
:heavy_check_mark:
Reads the time live region twice unless I remove the 'redundant' aria-live attributes in the list item. :heavy_check_mark:

VoiceOver
aria-atomic="false" doesn't work; aria-live="polite" doesn't work

:heavy_check_mark:
:heavy_check_mark:

Notes

I had to update Safari to version 12.1.1 to get VoiceOver to work on Mac
Because of FireFox with NVDA, Web Chat will have the second live region attributes removed
It seems that a11y compatibility on Edge is broken, but Chromium Edge works
We will only ensure that Safari and VoiceOver work together; VoiceOver isn't guaranteed to work on other browsers
I think a good baseline expectation for screen reader compatibility with Web Chat should be thus:
On Mac: Safari and VoiceOver
On Windows: Chrome and Chromium Edge should work with Narrator and NVDA

Changes to be made on Web Chat

Explicitly designate the aria-atomic and aria-relevant attributes
Remove nested live region attributes
Remove "xMinutesAgo" from the "User sent __" and "Bot sent __" aria-label strings
Change aria-label of the <SendStatus> component to be an absolute timestamp for the "xMinutesAgo" feature, but remain as "Sending" before send has completed. This will presumably prevent the screen reader from repeatedly updating all <SendStatus>es in the transcript.
A chart confirming which browsers and what screen reader we expect Web Chat to work on.

PR with the above changes to come, hopefully today!


Why does every update necessitate running VSCode as administrator?

I have to say it's annoying as hell to get continuous updates and not being able to enable them without having to quit everything I'm doing, shut down the VSCode (including the usual 3 integrated terminals I'm running) and restarting, only for it to tell me that I need to start it again in admin mode, which I then do, and then I again need to restart it.
Why does this extension require me to run it in administrator mode, when no other extension requires me to do so?

We need the administrative right, to inject code in vscode to be able to display the icons, due the api it is currently used is not supported in the extension, yet.

I take for granted that you haven't even bothered to read the the readme but it will be enough to say that this extension, as Microsoft hasn't offered a proper extension API for icons, modifies some of the core files of VSCode and that's why it needs your permission to make it.
If you're so annoyed by this I'd suggest you to start always in admin mode. It's a simple checkbox that you have to check by right clicking over your vscode icon and selecting Properties > Advanced > Run as Administrator.


Validator transfer p3

This PR is Part 3 out of 5 of the validator transfer.  The goal is to transfer all the validators into their own files in the validators directory outside of the fixtures.py file.

Codecov Report

Merging #745 (294ddd7) into main (a75c076) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #745   +/-   ##
=======================================
  Coverage   65.25%   65.25%
=======================================
  Files          58       58
  Lines        6401     6401
  Branches     1136     1136
=======================================
  Hits         4177     4177
  Misses       1896     1896
  Partials      328      328

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


[MGDOBR-307] Integration-test for SendToBridgeAction

MGDOBR-307
PR owner checklist
Please make sure that your PR meets the following requirements:

[x] Your code is properly formatted according to this configuration.
Run mvn clean verify -DskipTests so that imports are correctly set.
[x] Your commit messages are clear and reference the JIRA issue e.g: "[MGDOBR-1] - $clear_explanation_of_what_you_did"
[x] All new functionality is tested
[x] Pull Request title is properly formatted: MGDOBR-XYZ Subject
[x] Pull Request contains link to the JIRA issue
[x] Pull Request contains link to any dependent or related Pull Request
[x] Pull Request contains description of the issue
[x] Pull Request does not include fixes for issues other than the main ticket

PR reviewer(s) checklist

[ ] Check if code and Github action workflows have been modified and if the modification is safe
[ ] If the modification is safe, add the safe to test label

How to trigger pipelines and use the bots:

Run the end to end pipeline
Annotate the pull request with the label: safe to test. If you want to run the pipeline again, remove and add it again.

Rebase the pull request
Comment with: /rebase.

@radtriste how's this different from https://github.com/5733d9e2be6485d52ffa08870cabdee0/sandbox/pull/405#pullrequestreview-914449435 ?

we test 2 different actions: SendToBridge and SlackAction
Problem we have for now, we have no other way than using the SlackAction to verify the other actions as this is the only external system we have.
Later it could be changed.

Spot the difference (failing test)?
2022-03-18T14:58:45.6347431Z No requests exactly matched. Most similar request was:  expected:<
2022-03-18T14:58:45.6349314Z PUT
2022-03-18T14:58:45.6352867Z /api/v1/shard/bridges/processors
2022-03-18T14:58:45.6354340Z
2022-03-18T14:58:45.6357725Z Content-Type: application/json
2022-03-18T14:58:45.6359485Z
2022-03-18T14:58:45.6361040Z {
2022-03-18T14:58:45.6364384Z   "id" : "my-processor-id",
2022-03-18T14:58:45.6368057Z   "name" : "my-processor-name",
2022-03-18T14:58:45.6371092Z   "definition" : {
2022-03-18T14:58:45.6375799Z     "filters" : [ {
2022-03-18T14:58:45.6379786Z       "type" : "StringEquals",
2022-03-18T14:58:45.6382742Z       "key" : "key",
2022-03-18T14:58:45.6385716Z       "value" : "value"
2022-03-18T14:58:45.6387778Z     } ],
2022-03-18T14:58:45.6392484Z     "transformationTemplate" : "{\"test\": {key}}",
2022-03-18T14:58:45.6395643Z     "requestedAction" : {
2022-03-18T14:58:45.6398959Z       "type" : "KafkaTopic",
2022-03-18T14:58:45.6401899Z       "parameters" : {
2022-03-18T14:58:45.6405130Z         "topic" : "myTopic"
2022-03-18T14:58:45.6407131Z       }
2022-03-18T14:58:45.6409786Z     },
2022-03-18T14:58:45.6413220Z     "resolvedAction" : {
2022-03-18T14:58:45.6416671Z       "type" : "KafkaTopic",
2022-03-18T14:58:45.6419611Z       "parameters" : {
2022-03-18T14:58:45.6423016Z         "topic" : "myTopic"
2022-03-18T14:58:45.6425060Z       }
2022-03-18T14:58:45.6426907Z     }
2022-03-18T14:58:45.6428667Z   },
2022-03-18T14:58:45.6431960Z   "bridgeId" : "my-id",
2022-03-18T14:58:45.6435602Z   "customerId" : "myCustomer",
2022-03-18T14:58:45.6438478Z   "status" : "ready",
2022-03-18T14:58:45.6441654Z   "kafkaConnection" : null
2022-03-18T14:58:45.6443966Z }> but was:<
2022-03-18T14:58:45.6445704Z PUT
2022-03-18T14:58:45.6449441Z /api/v1/shard/bridges/processors
2022-03-18T14:58:45.6450989Z
2022-03-18T14:58:45.6454402Z Content-Type: application/json
2022-03-18T14:58:45.6455934Z
2022-03-18T14:58:45.6457366Z {
2022-03-18T14:58:45.6460686Z   "id" : "my-processor-id",
2022-03-18T14:58:45.6464332Z   "name" : "my-processor-name",
2022-03-18T14:58:45.6467069Z   "definition" : {
2022-03-18T14:58:45.6469789Z     "filters" : [ {
2022-03-18T14:58:45.6473212Z       "type" : "StringEquals",
2022-03-18T14:58:45.6477246Z       "key" : "key",
2022-03-18T14:58:45.6480451Z       "value" : "value"
2022-03-18T14:58:45.6482678Z     } ],
2022-03-18T14:58:45.6488191Z     "transformationTemplate" : "{\"test\": {key}}",
2022-03-18T14:58:45.6494029Z     "requestedAction" : {
2022-03-18T14:58:45.6501742Z       "type" : "KafkaTopic",
2022-03-18T14:58:45.6504805Z       "parameters" : {
2022-03-18T14:58:45.6508083Z         "topic" : "myTopic"
2022-03-18T14:58:45.6510083Z       }
2022-03-18T14:58:45.6511995Z     },
2022-03-18T14:58:45.6521619Z     "resolvedAction" : {
2022-03-18T14:58:45.6525343Z       "type" : "KafkaTopic",
2022-03-18T14:58:45.6528327Z       "parameters" : {
2022-03-18T14:58:45.6531893Z         "topic" : "myTopic"
2022-03-18T14:58:45.6533902Z       }
2022-03-18T14:58:45.6535750Z     }
2022-03-18T14:58:45.6537512Z   },
2022-03-18T14:58:45.6540637Z   "bridgeId" : "my-id",
2022-03-18T14:58:45.6545488Z   "customerId" : "myCustomer",
2022-03-18T14:58:45.6556071Z   "status" : "ready",
2022-03-18T14:58:45.6559430Z   "kafkaConnection" : null
2022-03-18T14:58:45.6561253Z }>
2022-03-18T14:58:45.6571271Z 	at com.redhat.service.bridge.shard.operator.ManagerSyncServiceTest.testProcessorsAreDeployed(ManagerSyncServiceTest.java:160)

@manstis where do you see it?

@manstis Is it in this PR? In the logs here I see:
2022-03-21T11:52:27.7262975Z 575145 [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 60.749 s - in com.redhat.service.bridge.shard.operator.ManagerSyncServiceTest

@sutaakar The previous build had it failing. That's why I kicked it off again and made the comment re: no apparent difference.

@manstis I suspect it is a race condition. Wiremock detects that the request is not available yet. For constructing error message it queries the mock server again - at that time the request already arrives.
Unfortunately it seems that Wiremock doesn't have some waiting methods.

@jiripetrlik @sutaakar could you have another look ?

CI is failing, not doing review as probably the code will change
Error: [ERROR] Tests run: 9, Failures: 0, Errors: 9, Skipped: 0, Time elapsed: 869.281 s <<< FAILURE! - in RunCucumberTest
Error: [ERROR] Processor tests - Processor is created, deployed and correctly deleted  Time elapsed: 142.871 s  <<< ERROR!
java.net.URISyntaxException: Illegal character in authority at index 7: http://<REPLACE_WITH_DEFAULT_HOSTNAME>/ob-34c65186-81ba-4ab5-9f04-78fcb09b6eca/events

Error: [ERROR] SendToBridge Action tests - Send Cloud Event to SendToBridge with bridgeId defined  Time elapsed: 60.849 s  <<< ERROR!
java.net.URISyntaxException: Illegal character in authority at index 7: http://<REPLACE_WITH_DEFAULT_HOSTNAME>/ob-41267ed9-fca1-4645-ae52-755afa0ac15e/events

Error: [ERROR] Tests of Processor Transformation template - Transformation template is properly updated  Time elapsed: 120.631 s  <<< ERROR!
java.net.URISyntaxException: Illegal character in authority at index 7: http://<REPLACE_WITH_DEFAULT_HOSTNAME>/ob-eb0626b5-2772-4380-bf7e-5fb18e383c2e/events

Error: [ERROR] Slack Action tests - Slack Action Processor is created and slack message should be received in the slack channel  Time elapsed: 60.724 s  <<< ERROR!
java.net.URISyntaxException: Illegal character in authority at index 7: http://<REPLACE_WITH_DEFAULT_HOSTNAME>/ob-b0b2fbe6-2ddd-4783-ab36-84ac748[917](https://github.com/5733d9e2be6485d52ffa08870cabdee0/sandbox/runs/6009419227?check_suite_focus=true#step:23:917)19/events

Error: [ERROR] Tests of Processor Transformation template - Transform cloud event to Slack message and send it using WebHook  Time elapsed: 120.468 s  <<< ERROR!
java.net.URISyntaxException: Illegal character in authority at index 7: http://<REPLACE_WITH_DEFAULT_HOSTNAME>/ob-46c53445-d6be-48f9-9587-e49c990eff8e/events

Error: [ERROR] Webhook Action tests - Webhook is correctly called  Time elapsed: 60.856 s  <<< ERROR!
java.net.URISyntaxException: Illegal character in authority at index 7: http://<REPLACE_WITH_DEFAULT_HOSTNAME>/ob-32fdb71a-db39-47b8-99dc-df82b19bf442/events

Error: [ERROR] Ingress tests - Send plain Cloud Event  Time elapsed: 120.308 s  <<< ERROR!
java.net.URISyntaxException: Illegal character in authority at index 7: http://<REPLACE_WITH_DEFAULT_HOSTNAME>/ob-27cd4f2d-bdc2-4d13-a7c0-51e8aaf17048/events

Error: [ERROR] Bridge tests - Bridge is created and correctly deleted  Time elapsed: 55.991 s  <<< ERROR!
java.net.URISyntaxException: Illegal character in authority at index 7: http://<REPLACE_WITH_DEFAULT_HOSTNAME>/ob-7c1d9694-8d6c-4da5-bfcd-da97b8191dd0/events

Error: [ERROR] Ingress tests - Send Cloud Event  Time elapsed: 176.079 s  <<< ERROR!
java.net.URISyntaxException: Illegal character in authority at index 7: http://<REPLACE_WITH_DEFAULT_HOSTNAME>/ob-47e0f04c-b892-4e87-a382-c13f86432132/events

IMHO that is caused by changes in GHA, which aren't applied in the PR. Ideally those changes should be merged separately first and the tests should then pass properly then.

yeah I need to test first with SendToBridge

IMHO that is caused by changes in GHA, which aren't applied in the PR. Ideally those changes should be merged separately first and the tests should then pass properly then.

I am testing the changes first here to make sure the SendToBridge action is working on Kind with that change in GHAction.
If succeed, I will create another PR for the GHAction change

oh now I get it. My workflow file is not taken into account ...

waiting for https://github.com/5733d9e2be6485d52ffa08870cabdee0/sandbox/pull/631

@sutaakar feel free to merge once it is ok for you ;)

ok for me :)


keep default as last one

When we add a new host, it goes as last one. this should not happen, the default should be always the last one, as stated in the manpage ssh_config(5):

Since the first obtained value for each parameter is used, more host-specific declarations should be given near the beginning of the file, and general defaults at the end.

+1 for this. I have gotten around it by putting configuration in the global /etc/ssh/ssh_config


Keep going when there is conversion error.

Right now the script may quit during conversion errors. For example:
INFO: MainThread Exiting freemindlatex ...
Traceback (most recent call last):
  File "/usr/local/google/home/xuehuichao/.local/bin/freemindlatex", line 11, in <module>
    sys.exit(main())
  File "/usr/local/google/home/xuehuichao/.local/lib/python2.7/site-packages/freemindlatex/__main__.py", line 377, in main
    RunEditingEnvironment(cwd)
  File "/usr/local/google/home/xuehuichao/.local/lib/python2.7/site-packages/freemindlatex/__main__.py", line 345, in RunEditingEnvironment
    CompileDir(directory)
  File "/usr/local/google/home/xuehuichao/.local/lib/python2.7/site-packages/freemindlatex/__main__.py", line 259, in CompileDir
    result = _CompileInWorkingDirectory(work_dir)
  File "/usr/local/google/home/xuehuichao/.local/lib/python2.7/site-packages/freemindlatex/__main__.py", line 208, in _CompileInWorkingDirectory
    'utf8').read())
  File "/usr/local/google/home/xuehuichao/.local/lib/python2.7/site-packages/freemindlatex/convert.py", line 345, in __init__
    dom = minidom.parseString(mm_file_content)
  File "/usr/lib/python2.7/xml/dom/minidom.py", line 1928, in parseString
    return expatbuilder.parseString(string)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 940, in parseString
    return builder.parseString(string)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 223, in parseString
    parser.Parse(string, True)
xml.parsers.expat.ExpatError: no element found: line 1, column 0

In this case, evince will quit. We should keep going in this case, and possibly produce errors to the compiled pages.

The conversion error may come from a race condition: freemind writes to the file while we haven't finished the last conversion.

It is actually because I tried reading files when they are not ready. It is too often that when I hit save, and the program tries to read the file at the same time.
I currently check mtime. mtime changes when the file is open for write, before it's closed. When the writes (e.g. to .mm) takes more than a couple of ms, there is a high chance that my read happens before the write is finished. I currently added a "sleep" statement to avoid this.


Merge TinySecp interface into Zkp

SInce secp256k1-zkp is like an extended version of secp256k1, we can merge the tiny secp interface defined in ecpair into Ec of our Zkp interface so that this interface can be used for both blinding and signing transactions.

Just to mention that we can move to @noble/secp256k1-zkp for normal ECC operations, its 0-dependency and audited.
Alotugh for rangeproofs we need an impl
To be compatible with TinySecp we can have this wrapper https://github.com/synonymdev/bitkit/pull/549

My proposal is to move the current interfaces living in confidential.ts to a brand new file secp256k1-zkp.ts with the following changes:
// TinySecp256k1Interface imported from 'ecpair'
export interface Ecc extends TinySecp256k1Interface {
  privateMul(key: Uint8Array tweak: Uint8Array) => Uint8Array
};

interface Generator {
  generate: (asset: Uint8Array) => Uint8Array;
  generateBlinded(asset: Uint8Array, blinder: Uint8Array): Uint8Array;
}

interface Pedersen {
  commitment(value: string, asset: Uint8Array, blinder: Uint8Array): Uint8Array;
  blindGeneratorBlindSum(
    values: Array<string>,
    valueBlinders: Array<Uint8Array>,
    assetBlinders: Array<Uint8Array>,
  ): Buffer;
}

interface RangeProof {
  info(proof: Uint8Array): {
    exp: string;
    mantissa: string;
    minValue: string;
    maxValue: string;
  };
  verify(
    proof: Uint8Array,
    valueCommitment: Uint8Array,
    assetCommitment: Uint8Array,
    extraCommitment?: Uint8Array,
  ): boolean;
  sign(
    value: string,
    valueCommitment: Uint8Array,
    assetCommitment: Uint8Array,
    valueBlinder: Uint8Array,
    nonce: Uint8Array,
    minValue?: string,
    base10Exp?: string,
    minBits?: string,
    message?: Uint8Array,
    extraCommitment?: Uint8Array,
  ): Uint8Array;
  rewind(
    proof: Uint8Array,
    valueCommitment: Uint8Array,
    assetCommitment: Uint8Array,
    nonce: Uint8Array,
    extraCommitment?: Uint8Array,
  ): {
    value: string;
    blinder Uint8Array
    message: Uint8Array;
  };
}

interface SurjectionProof {
  initialize: (
    inputTags: Array<Uint8Array>,
    outputTag: Buffer,
    maxIterations: number,
    seed: Buffer,
  ) => {
    proof: Uint8Array,
    inputIndex: string,
  };
  generate: (
    proof: Uint8Array,
    inputTags: Array<Uint8Array>,
    outputTag: Uint8Array,
    inputIndex: number,
    inputBlindingKey: Uint8Array,
    outputBlindingKey: Uint8Array,
  ) => Uint8Array;
  verify: (
    proof: Uint8Array,
    inputTags: Array<Uint8Array>,
    outputTag: Uint8Array,
  ) => boolean;
}

export interface Secp256k1ZKPInterface {
  ecc: Ecc;
  ecdh: Ecdh;
  surjectionProof: SurjectionProof;
  rangeProof: RangeProof;
  pedersen: Pedersen;
  generator: Generator;
}

The main changes involve:

renaming Ec as Ecc and declaring it as extension of tiny-secp interface
replacing Buffer with Uint8Array for browser support
replacing number with string to prevent any conversion issue from js to c
removing serialize/parse methods (implementation details that should be hided in out abstraction)
representing surjection proof as Uint8Array instead of object with low-level details
renaming and re-ordering some methods' args for readability


new direct solution algorithm for curve.project()

This pull request improves the performance and accuracy of curve.project() by replacing the current algorithm, which does a recursive search, with a direct solver that minimizes the polynomial equation representing the distance between the point and curve squared.
For quadratic curves minimizing this equation results in finding the roots of a 3rd degree polynomial, which can be easily solved directly.
For cubic curves minimizing this equation requires finding the roots of a 5th degree polynomial, which necessitates a numerical approach. We solve the equation by finding intervals that contains roots over which the equation is monotonic and use newton's method to converge on the root.

Codecov Report

Merging #59 into 0.6.3-release will decrease coverage by 0.78%.
The diff coverage is 99.53%.

@@                Coverage Diff                @@
##           0.6.3-release      #59      +/-   ##
=================================================
- Coverage          96.44%   95.65%   -0.79%
=================================================
  Files                 35       37       +2
  Lines               5590     5800     +210
=================================================
+ Hits                5391     5548     +157
- Misses               199      252      +53

Impacted Files
Coverage Δ

BezierKit/Library/BezierCurve+Intersection.swift
94.68% <ø> (ø)

BezierKit/Library/Types.swift
98.33% <ø> (ø)

BezierKit/Library/Polynomial.swift
98.70% <98.70%> (ø)

BezierKit/BezierKitTests/PolynomialTests.swift
100.00% <100.00%> (ø)

BezierKit/Library/CubicCurve.swift
100.00% <100.00%> (ø)

BezierKit/Library/QuadraticCurve.swift
100.00% <100.00%> (ø)

BezierKit/Library/Utils.swift
98.66% <100.00%> (-0.44%)
:arrow_down:

BezierKit/Library/BezierCurve.swift
77.43% <0.00%> (-22.57%)
:arrow_down:

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 c67627f...6b02199. Read the comment docs.


Peek - Open with Word Unresponsive

Microsoft PowerToys version
0.70.0
Installation method
GitHub
Running as admin
None
Area(s) with issue?
Peek
Steps to reproduce
When trying to preview a Word Document, the preview window presents an "Open with Word" button. This button is not "active" until I click out of the preview window and then click back in.
If this fails to reproduce, I found repeatedly closing and opening the window using the (CTRL Space) sequence will get the button to become inactive.
✔ Expected Behavior
When activating the Peek window (CTRL Space), the Open with Word button should be able to be clicked immediately.
❌ Actual Behavior
The open with word button is inactive.
Other Software
No response

I'm unable to reproduce this on 70.1.  We did a host of fixes with 0.70.1 around Peek, does it still occur?  /needinfo


include: update stolen.h with new bpf_object

This will allow compiling btfgen2 with libbpf HEAD + the commit:
[master d31f8ad] libbpf: Implement btf__save_to_file()
Author: Mauricio Vásquez<EMAIL_ADDRESS>Date: Mon Oct 25 18:10:21 2021 -0500
2 files changed, 23 insertions(+)
as we need save_to_file function in btfgen2.

I think we can close it because we're not working on this idea anymore.


multi camera HW sync demo

Is the demo application used in this white paper (https://realsense.intel.com/wp-content/uploads/sites/63/Multiple_Camera_WhitePaper_rev1.1.pdf)
available as part of the sdk? maybe its somewhere else?
Thanks
Luke

The multi cam paper was originally only available to Intel's customers who have a Non Disclosure Agreement (NDA).  So the app is probably only available to NDA customers.
https://github.com/IntelRealSense/librealsense/issues/1789

I see.
They just emailed out a blog entry (https://realsense.intel.com/multiple-depth-cameras-setup-guide/?cid=em-elq-38512&utm_source=elq&utm_medium=email&utm_campaign=38512&elq_cid=3078062) that links to the white paper and here, so I image this question is going to come up a fair amount soon :)

You may be interested in a 4-camera demo of hardware sync that took place in February, using the linked cameras for volumetric capture.
https://realsense.intel.com/volumetric-capture-using-intel-realsense-d435-cameras/

[Realsense Customer Engineering Team Comment]
hi @bloyl,
i don't think we have this app release, but let me check on this.

After reading the white paper again, it seems like HW sync is only supported when all the devices are connected to the same PC? Is that indeed the case?
We have created a distributed system where each device is connected to an Intel NUC and are trying to HW sync them but without any success up to now (see #2148). The reason seems to be that when setting one device as slave, it keeps acquiring frames even when no HW signal is triggered. Could it be as mentioned above that this happens because the master and slave are not connected on the same PC? If yes, can this somehow be circumvented? Because connecting a larger number of devices will not be possible without networking involved.

The setup examples given in the multiple camera paper (all cams connected to a hub, or all cams connected directly to USB ports) do seem to indicate a preference for all cameras being connected to the same PC.
As the paper suggests, the ideal setup is to use multiple individual USB ports instead of a hub in order to avoid more than one device being shared on the same USB controller.  The paper correctly points out though that some PC devices take the shortcut of pairing individual ports on a shared internal hub instead of each having their own USB controller.
I would suppose that if a slave camera is connected to a different PC to the master then the PC that the master was connected to would not know of the slave camera's existence.
USB supports the chaining of up to 127 devices on the same PC, in theory.  In practice, you could not actually connect 127 cameras because you would need to connect together a pile of USB hubs, and each of those hubs claims some of the 127 addresses even before a device is attached to the hub.  So you could probably chain 50+ cameras together on the same PC, but in practice the performance would probably be so slow as to be unusable.
The ideal in mass-camera setups would be to only have several cameras at a time active, and cycle through the cameras sequentially, turning them on and off in batches as capture snapshots are taken until the cycle gets back to the first cameras again and begins the cycle anew.  This likely would not be feasible for syncing though, where you want all the cameras active at the same time.
It might become more feasible on modern, faster USB standards like USB 3.1, but there would still be the issue of the poorer performance on a  hub's shared USB controllers compared to connecting each to its own individual USB controller.

I an not an Intel employee and so have no knowledge of Intel's RealSense development plans - Dorodnic or RealSense-Customer-Engineering will be better able to comment on that.
The cable supplier Newnex offers the ability to use 400 Series cameras with fiber optic extension up to a range of 100 meters.
https://itm-components.co.uk/blogs/news/newnex-usb-extension-for-the-intel-realsense-d400-series-camera
There is such a thing as USB Over Network / USB Over Ethernet.  Though if all cameras have to be physically connected to each other in the same location with sync cabling, this would suggest that even if you could mass-connect to RealSense cameras on numerous different machines, you could gather data from them but they would not hardware-sync.
However, the sync cable can be up to 10 m long, so in theory, you could put multiple PCs together in the same room, with all the cameras within a 10 m distance of that batch of machines.  An efficient, tidy way to do this might be a server-rack of PCs.

Sorry that RealSense in your username confused me ;)
We already have a tidy setup with 4 Intel NUCs mounted on tripods and each one with a D415. However, as mentioned we connect them to the central workstation via Ethernet networking and transmit the steams the central PC for processing. And, our hypothesis (partly confirmed by you), is that we cannot achieve HW sync (we have them connected to a master device via daisy chain) as they are not co-located (in the USB sense) on the same central PC. Nonetheless, we have measured the syncing cable signal and it is correctly reaching to all destinations (slaves).
It would be great if we could a confirmation from the RealSense development or technical support team.

'MartyG' was already taken.  Since my name is already established over on the Intel RealSense support forum where I also do support (there's two forums, this GitHub development team one and the Intel Support one), it made sense to use the 'RealSense' addition in the name.  Apologies for any confusion caused!
I'm sure the Intel guys will be able to give you excellent further information.  Good luck!

[Realsense Customer Engineering Team Comment]
hi @bloyl,
no plan to release multi cam HW sync app or example, but plan to integrate into realsense viewer.
hi @Zuru,
would like to know if you are NDA customer to intel? if so, you can file this question to Zendesk for direct support.

The sync cable and the commands for whether a camera is space or master is all that is needed to enable HW sync. You can do this from different PCs. But of course sync cable DOES need to connect cameras. You can make a wireless version yourself if you have a longer range as it is simply a sync pulse that needs to be shared.
However you will need to properly collect frames together using the frame counters (which will be offset for each camera but in sync).
When you set a camera to slave it will still acquire frames at the right frame rate even if there is no sync input signal. It tries to sync but if there is no signal that comes in at the right time it gives up and triggers itself.

As mentioned in #2121 and #2148 we do have sync cables connecting the cameras, we are monitoring the pulses and they are indeed arriving. However, acquiring color and depth frames robustly is an issue, and in the 4 camera case, it will rarely be accomplished. In addition, after testing with two cameras facing a screen with a millisecond clock, we did not observe HW synchronization level timings and the frame numbers were unrelated. We can provide more detailed proof (e.g. videos, code, etc.) if required.
Regarding the last point, there is a contradiction. If the slave (which starts acquiring frames at a different time than the master in the distributed case) starts grabbing frames even when not signaled, then there will be no frame number correspondences. Perhaps this can be guaranteed in the centralized case (having the master and slave connected on the same computer), starting the master and then the slave and acquiring frames using the blocking or polling calls, and not asynchronously (which is the best performing way to go about it).

[Realsense Customer Engineering Team Comment]
hi Zuru,
yes i think if you can have a short video can help me to understand your issue more.
i just did a simple test to have 2xD415 HW synced and connect to two PC (1 D415 to 1 PC), looking at a millisecond clock and stop both D415 at the same time, i do capture same millisecond shown on the clock, seems you have good result with this too. but you mentioned to acquiring color and depth frame robustly, this may be relative to the resolution, so need you  to provide the resolution you are testing.
and you say you test 2 cameras facing to clock and frame numbers were unrelated, are they connect to same PC, if yes, this is not the case i see here, i can have exactly frame number from both camera.

@RealSense-Customer-Engineering
It would be really helpful if you could share some sample code, so that people could figure out by themselves if they're doing something wrong.

Hi vladsterz, if you are seeking some sample scripts for accessing and controlling devices in a multi-camera setup, there are a number of sample scripts posted on the discussion linked to below (read downward from the point that is linked to).
https://github.com/IntelRealSense/librealsense/issues/2219#issuecomment-412348293

@MartyG-RealSense thank you for your response, but I am interested in the case of a distributed system (i.e. 2 cameras and 2 machines) rather than a centralized one (i.e. 2 cameras on the same machine).

[Realsense Customer Engineering Team Comment]
hi @vladsterz,
we plan to have some sample code for multi-cam, but so far still suggest to start validation with Realsense viewer first, so we can make sure all HW setting is good then continue to debug.
for distributed system, per my test with realsense viewer, it's working good, so i think you just need to implement communication between systems then the script MartyG mentioned should work.

Hi,

Can D415 and D435 be connected in multi-cam configuration?
Is there any documentation of multi-camera calibration? I am trying to use inward two-cameras connected to one PC. (I read the section on multi-camera support in the white paper on dynamic calibration, but there is only mention of calibration of one camera at a time, and not the system)

Thanks

Intel Support member Sahira says that D435 multi camera sync support has been added in the latest 5.10.3 firmware.  If that's so, I guess either the D415 or the D435 could act as the master in the master-slave pairing of the two cameras.

https://communities.intel.com/message/562088#562088

Intel offers a camera calibration system for $1500 USD in their online Click store that supports multiple devices.

https://click.intel.com/realsense-d400-camera-oem-calibration.html


[Bug Report] OPDS Android app Librera Reader 404 book not found and web .../opds error

On the android app you can navigate the library (you only see the names of the series and the volumes, no covers) you can select volumes and chapters but as soon as you open one of them comes out 404 book not found. If you write on your browser / opds this error comes out:

EDIT1 Android Screen Librera:

Android Screen PocketBook:

Visualization as soon as you click on the server name (mango) in theory you should see the series library.
Environment (please complete the following information):

OS: Windows and Android 9.0 Lineage OS Galaxy S5
Browser chrome
Mango Version 0.7.1

**Docker

The docker-compose.yml file you are using, or your .env file. Same of issue #79

While we're here ... To update the docker with new releases, without losing the configuration and all the settings. Which method do you recommend?

I am having the same issue with KyBook3 and iOS. Thought in the beginning it might be a reverse proxy problem, but OPDS doesn't work on LAN either. No errors in logs either until now.

I have tried 3 different apps with OPDS support via network (SAMBA and http) but only Librera makes you scroll through the series. The other apps load endlessly after entering the password (e.g. PocketBook). The http version of the base site instead works wonderfully (the one without OPDS).

You got the XML error on the /opds page because one of the manga names contains the ampersand character (&) and Mango didn't escape it properly. This will be fixed in the next version. Thanks for reporting!
The 404 error is a separate issue and I couldn't reproduce it. Can you access the page /opds/book/[id] in your browser?
To update the image, simply use docker-compose pull mango to download the new image and start it with docker-compose up. The user configuration and library are stored on the host system as mapped volumes so they won't be affected.

Volume1.

Series list:

@zFerry98

When loading the page, there should be an error message printed in your console. Could you copy and paste it here?
Can you open the "Volume 01" folder in the non-opds site (i.e., /book/[the_same_id] without the /opds/ prefix)?

@zFerry98

When loading the page, there should be an error message printed in your console. Could you copy and paste it here?
- I have enabled debug output:

- This instead putting info on output:

LOL You just don't recognize .zips? Strange because I also have CBZs.

Can you open the "Volume 01" folder in the non-opds site (i.e., /book/[the_same_id] without the /opds/ prefix)?
- Only OPDS doesn't work. The normal library works all:

Ah, I see the problem. It looks like Alpine (the base OS of the docker image) doesn't provide a MIME types registry, and so Mango failed to get the MIME types of the archive files. I will push a new release that fixes this soon.

Both issues are now fixed in v0.7.2. Thanks for reporting!

As I imagined, the best option is to use a machine with linux 64 (like ubuntu server or distro lite) than the docker. Which is a mess having a windows server. The problem is that I have no x64 pc but only x32 to use as mules. You say it works if you use linux bash support mode in windows? That function that adds a minimum of functions to run the terminal and the basic functions of a linux subsystem.

@zFerry98 No it's not a Windows issue. The new release should work in your current setup (Docker on Windows) and the two issues you reported should be fixed now.

No it's not a Windows issue. The new release should work in your current setup (Docker on Windows) and the two issues you reported should be fixed now.
No, I explained myself wrong. I meant that being a software for linux rather than for windows, it is better to run it directly on a real OS than on virtual machines. Having no more than 16gb of ram, since I put dockers I am always at 80 90% used. Running the server directly or having to dedicate Core and ram to virtualize an x64 pc with OS is certainly a part of the slowness problems. For now I have closed some services that I no longer use to recover resources. Anyway, thanks for the quick support and perfetto👍

@zFerry98 Just to let you know, I run Mango via WSL (Windows Subsystem for Linux) and haven't had any issues. I haven't actually measured it but it certainly seems to be less resource hungry than via Docker.


RESET function not working with new version 1.37.0

with new version 1.37.0 when I try to reset everything from the admin section, I got error "Internal Server Error"

Server error:
PrismaClientKnownRequestError: Raw query failed. Code: 23503. Message: update or delete on table "event" violates foreign key constraint "event_data_event_id_fkey" on table "event_data"    ....   code: 'P2010',   clientVersion: '4.1.1',   meta: {     code: '23503',     message: 'update or delete on table "event" violates foreign key constraint "event_data_event_id_fkey" on table "event_data"'   } }
This happened due to the relation between event data and event  foreign key

I have the same issue
db_1     | 2022-08-13 09:42:11.975 UTC [1150] ERROR:  update or delete on table "event" violates foreign key constraint "event_data_event_id_fkey" on table "event_data"
db_1     | 2022-08-13 09:42:11.975 UTC [1150] DETAIL:  Key (event_id)=(2) is still referenced from table "event_data".
db_1     | 2022-08-13 09:42:11.975 UTC [1150] STATEMENT:  delete from session where website_id=$1
umami_1  | PrismaClientKnownRequestError: Raw query failed. Code: `23503`. Message: `update or delete on table "event" violates foreign key constraint "event_data_event_id_fkey" on table "event_data"`
umami_1  |     at RequestHandler.handleRequestError (/app/node_modules/@prisma/client/runtime/index.js:28658:13)
umami_1  |     at RequestHandler.request (/app/node_modules/@prisma/client/runtime/index.js:28640:12)
umami_1  |     at async consumer (/app/node_modules/@prisma/client/runtime/index.js:29618:18)
umami_1  |     at async Proxy._request (/app/node_modules/@prisma/client/runtime/index.js:29639:16)
umami_1  |     at async __WEBPACK_DEFAULT_EXPORT__ (/app/.next/server/pages/api/website/[id]/reset.js:94:9)
umami_1  |     at async Object.apiResolver (/app/node_modules/next/dist/server/api-utils/node.js:184:9)
umami_1  |     at async NextNodeServer.runApi (/app/node_modules/next/dist/server/next-server.js:381:9)
umami_1  |     at async Object.fn (/app/node_modules/next/dist/server/base-server.js:491:37)
umami_1  |     at async Router.execute (/app/node_modules/next/dist/server/router.js:213:36)
umami_1  |     at async NextNodeServer.run (/app/node_modules/next/dist/server/base-server.js:610:29) {
umami_1  |   code: 'P2010',
umami_1  |   clientVersion: '4.1.1',
umami_1  |   meta: {
umami_1  |     code: '23503',
umami_1  |     message: 'update or delete on table "event" violates foreign key constraint "event_data_event_id_fkey" on table "event_data"'
umami_1  |   }
umami_1  | }

Similar problem with DELETE
db_1     | 2022-08-13 09:49:10.264 UTC [1165] ERROR:  update or delete on table "event" violates foreign key constraint "event_data_event_id_fkey" on table "event_data"
db_1     | 2022-08-13 09:49:10.264 UTC [1165] DETAIL:  Key (event_id)=(2) is still referenced from table "event_data".
db_1     | 2022-08-13 09:49:10.264 UTC [1165] STATEMENT:  DELETE FROM "public"."website" WHERE "public"."website"."website_id" IN ($1)
umami_1  | PrismaClientKnownRequestError: Foreign key constraint failed on the field: `event_data_event_id_fkey (index)`
umami_1  |     at RequestHandler.handleRequestError (/app/node_modules/@prisma/client/runtime/index.js:28658:13)
umami_1  |     at RequestHandler.request (/app/node_modules/@prisma/client/runtime/index.js:28640:12)
umami_1  |     at async consumer (/app/node_modules/@prisma/client/runtime/index.js:29618:18)
umami_1  |     at async PrismaClient._request (/app/node_modules/@prisma/client/runtime/index.js:29639:16)
umami_1  |     at async __WEBPACK_DEFAULT_EXPORT__ (/app/.next/server/pages/api/website/[id].js:146:9)
umami_1  |     at async Object.apiResolver (/app/node_modules/next/dist/server/api-utils/node.js:184:9)
umami_1  |     at async NextNodeServer.runApi (/app/node_modules/next/dist/server/next-server.js:381:9)
umami_1  |     at async Object.fn (/app/node_modules/next/dist/server/base-server.js:491:37)
umami_1  |     at async Router.execute (/app/node_modules/next/dist/server/router.js:213:36)
umami_1  |     at async NextNodeServer.run (/app/node_modules/next/dist/server/base-server.js:610:29) {
umami_1  |   code: 'P2003',
umami_1  |   clientVersion: '4.1.1',
umami_1  |   meta: { field_name: 'event_data_event_id_fkey (index)' }
umami_1  | }

Solved in https://github.com/umami-software/umami/pull/1449 and will be apart of the next release.

Fixed in v1.38.0.


setup: improve description

Codecov Report

Merging #5226 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #5226   +/-   ##
=======================================
  Coverage   63.45%   63.45%
=======================================
  Files         261      261
  Lines       19842    19842
  Branches     1998     1998
=======================================
  Hits        12591    12591
  Misses       7242     7242
  Partials        9        9

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 7b49b6c...834b7e5. Read the comment docs.

LGTM


static func overriding works not expected

Godot version
4.1.1.stable
System information
Windows 10, GLES2, Intel(R) UHD Graphics 630
Issue description
I have classes
extends Object

class_name A

static func print():
    print(get_message())

static func get_message():
    return "A"

and
extends A

class_name B

static func get_message():
    return "B"

So, when I evaluate code var m = B.GetMessage() I have "B" in variable m
But if I evaluate B.print() I see "A" in console.
Steps to reproduce
Nothing
Minimal reproduction project
Nothing

Duplicate of:

#72973
#77895

Thanks for the contribution nonetheless!


Lula helper commands

Create a tools command to provide a foundation for helper commands to be bundled with Lula for portability.
This could enable improving developer and pipeline experience for OSCAL and validation development.

Completed in #128


Why does torii require the OAuth callback to hit the client?

This might be a silly question, but why does torii require the auth provider to redirect back to the client? Wouldn't it be one less request if the auth provider redirected to the backend with the temporary code so that the backend could immediately fetch the access token/user data and then redirect the popup to the ember app with the user's information?

The goal is that you can implement all your auth as an API. You only need a redirect on your API or web domain if working with OAuth 1 (Twitter). OAuth2 providers can be implemented purely as APIs. In practice, I find this much simpler than requiring a bunch of redirect logic and some mechanism for passing state to the client outside of the normal API paradigm.
But Torii is very flexible. You could wrap pretty much any behavior.
This is not really an issue, so I'm going to close. Let me know if I've missed anything!


transmission renders black on macOS

Bevy version
main since https://github.com/bevyengine/bevy/pull/13031
[Optional] Relevant system information
{ os: "MacOS 14.4.1 ", kernel: "23.4.0", cpu: "Apple M1 Max", core_count: "10", memory: "64.0 GiB" }
{ name: "Apple M1 Max", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }

Can also reproduce on Windows in CI, but people were not able to reproduce on Windows locally
What you did
Run example transmission
What went wrong
There seems to be no light transmission at all

I was able to reproduce this as well. An interesting side-effect is that the candle and large sphere now have a "trail" following them. (Look at the borders of both, compared to the floor.)
https://github.com/bevyengine/bevy/assets/59022059/d2a2b73f-88e5-4f75-af27-2a8fb80833d5
@pcwalton, do you have any ideas what may be happening here?

Also happens here on Linux.
AdapterInfo { name: "AMD Radeon RX 7900 GRE (RADV NAVI31)", vendor: 4098, device: 29772, device_type: DiscreteGpu, driver: "radv", driver_info: "Mesa 24.0.6-arch1.2", backend: Vulkan }


Should Match and other related keywords consider foo\n to match foo

At the moment
Should Match    foo\n    foo

succeeds. This is fixed as a side-effect of PR #2560 that enhanced our pattern matching syntax (issue #2471) . The bug was found because the PR broke some of our acceptance tests accidentally using this "feature". In addition to fixing those tests, need to add separate tests for this as well.
Our tests getting broken illustrate that the the fix is backwards incompatible.

Keywords that are affected by this change:

Should Match
Should Not Match
Run Keyword And Expect Error
Various Match keywords in the XML library


[Question] how to use hugegraph-tools to create new graph instance

Problem Type (问题类型)
None
Before submit

[X] 我已经确认现有的 Issues 与 FAQ 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)

Environment (环境信息)

Server Version: 1.0.0 (Apache Release Version)
Backend: RocksDB x nodes, HDD or SSD
OS: xx CPUs, xx G RAM, Ubuntu 2x.x / CentOS 7.x
Data Size:  xx vertices, xx edges

Your Question (问题描述)
./bin/hugegraph graph-create --name=gremlin --file=conf/hugegraph.truststore
Failed to execute Was passed main parameter '--name=gremlin' but no main parameter was defined in your arg class
Type y(yes) to print exception stack[default n]?
y
com.beust.jcommander.ParameterException: Was passed main parameter '--name=gremlin' but no main parameter was defined in your arg class
at com.beust.jcommander.JCommander.initMainParameterValue(JCommander.java:936)
at com.beust.jcommander.JCommander.parseValues(JCommander.java:752)
at com.beust.jcommander.JCommander.parse(JCommander.java:340)
at com.beust.jcommander.JCommander.parseValues(JCommander.java:787)
at com.beust.jcommander.JCommander.parse(JCommander.java:340)
at com.beust.jcommander.JCommander.parse(JCommander.java:319)
at org.apache.hugegraph.cmd.HugeGraphCommand.parseCommand(HugeGraphCommand.java:486)
at org.apache.hugegraph.cmd.HugeGraphCommand.execute(HugeGraphCommand.java:405)
at org.apache.hugegraph.cmd.HugeGraphCommand.main(HugeGraphCommand.java:544)
Or run command with:
./bin/hugegraph graph-create --name gremlin --file conf/hugegraph.truststore
Failed to execute The value 'hugegraph' of option 'store' conflicts with existed graph
Type y(yes) to print exception stack[default n]?
y
class java.lang.IllegalArgumentException: The value 'hugegraph' of option 'store' conflicts with existed graph
at org.apache.hugegraph.exception.ServerException.fromResponse(ServerException.java:45)
at org.apache.hugegraph.client.RestClient.checkStatus(RestClient.java:91)
at org.apache.hugegraph.rest.AbstractRestClient.post(AbstractRestClient.java:232)
at org.apache.hugegraph.api.graphs.GraphsAPI.create(GraphsAPI.java:68)
at org.apache.hugegraph.driver.GraphsManager.createGraph(GraphsManager.java:37)
at org.apache.hugegraph.manager.GraphsManager.create(GraphsManager.java:34)
at org.apache.hugegraph.cmd.HugeGraphCommand.execute(HugeGraphCommand.java:272)
at org.apache.hugegraph.cmd.HugeGraphCommand.execute(HugeGraphCommand.java:406)
at org.apache.hugegraph.cmd.HugeGraphCommand.main(HugeGraphCommand.java:544)
Vertex/Edge example (问题点 / 边数据举例)
No response
Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
No response

Currently the tools doesn't support the dynamic graph creation well, consider enhance it in next release (would u like to improve it?)

Does the java api support graph creation in current release,  I intent to practice gremlin syntax for company business explore with demo dataset.
the default hugegraph instance statisfies my requirement now,  Thanks for your invitation (there are many to do list on workdays [笑哭]).
Thanks for your reply on weekend, have a good night!

yep, could refer this issue https://github.com/apache/incubator-hugegraph/issues/1995  &  PR https://github.com/apache/incubator-hugegraph/pull/1065

close my question


IE10 and IE9 Unable to get property 'store' of undefined or null reference

Do you want to request a feature or report a bug?
bug
What is the current behavior?
Crashes and Im getting an error in IE10 and IE9
SCRIPT5007: Unable to get property 'store' of undefined or null reference
bundle.js (91863,1)

The above error occurred in the <LocalizeProvider> component:
    in LocalizeProvider
    in PersistGate
    in Provider

 function LocalizeProvider(props) {
    _classCallCheck(this, LocalizeProvider);

    var _this = _possibleConstructorReturn(this, (LocalizeProvider.__proto__ || Object.getPrototypeOf(LocalizeProvider)).call(this, props));

/* This line below "bundle.js (91863,1)" */
==> var dispatch = _this.props.store ? _this.props.store.dispatch : _this.dispatch.bind(_this);

    _this.getContextPropsSelector = Object(__WEBPACK_IMPORTED_MODULE_2__LocalizeContext__["b" /* getContextPropsFromState */])(dispatch);

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code. Paste the link to your JSFiddle (https://jsfiddle.net/Luktwrdm/) or CodeSandbox (https://codesandbox.io/s/new) example below:
I have tyed with both LocalizeProviders store prop and with out
ReactDOM.render(
  <Provider store={store}>
    <PersistGate loading={<LoadingScreenComponent show={true} />} persistor={persistor}>
      <LocalizeProvider>
        <ConnectedRouter history={history}>
          <App />
        </ConnectedRouter>
      </LocalizeProvider>
    </PersistGate>
  </Provider>,
  document.getElementById('root')
);

Which versions of react and react-localize-redux are you using?
"react": "^16.6.3",
"react-localize-redux": "^3.5.1",

@yoieh It looks like you need a couple of polyfills since you are supporting older browsers. I don't want to include these in the source, as this would increase the library size for all users. I will create a new issue to update the docs with how to support IE.
I was able to get the demo app running in IE by adding a polyfill for Symbol and Map. If you aren't already I recommend using Babel, which will make adding polyfills easier.

Yes i do use babel
{
    "presets": [
        "@babel/preset-env",
        "@babel/preset-react"
    ],
    "plugins": [
        "@babel/plugin-syntax-dynamic-import",
        "@babel/plugin-proposal-class-properties",
        "@babel/plugin-transform-proto-to-assign"
    ]
}

I have imported @babel/polyfill in index/entry file to deal orther problems of older browsers and should cover ES2015+ Symbol and Map if Im reading right. But yes a polyfill would probobly get this to work...
Any specific plugins your recomend to get react-localize-redux to work or do i need to wait for the docs to update?

Issue will be addressed in #142


gemini windower

gemini windower doesn't work. I used "gemini update" to get the latest version but on my test data I get the error:

Command was:
bedtools map -o mean -c 4 -b .temp.12012 -a /tmp/tmp7NzDcG/tmp/pybedtools.X3t3_E.tmp
Error message was:

***** ERROR: Requested column 4, but database file /tmp/tmp7NzDcG
/tmp/pybedtools.X3t3_E.tmp only has fields 1 - 3.

can you give the command that you ran?

I think this arises from a specific version(s) of bedtools

I can run 'test-windower.sh' in the test folder to get this message on every test.
I thought everything was contained in the conda install. I'm using bedtools version v2.21.0, so I guess that is the problem then.

it works with v2.25.0


REPL does not respond.

I have installed elm 0.18 recently trough npm, but I have got few warnings:

npm WARN deprecated<EMAIL_ADDRESS>use uuid module instead
npm WARN Anthony No description
npm WARN Anthony No repository field.

Now if I launch elm-repl, it does not respond to anything I write (except :help, :reset, :anycommand). If I use C^C, I get:

^C Computation interrupted, any definitions were not completed.
elm-repl: : hGetChar: hardware fault (Input/output error)

My OS is Fedora release 25 (Twenty Five)

Solved. I did not know about #128 and because the init took half a minute, I killed it every time before it finished.


Migration to vim-plug #864

This PR changes vim plugin manager from Vundle to vim-plug.
Close #864

Last time I tried a similar migration (to NeoBundle, back in 2013), @skwp brought up some reasons / conditions not to do this. So I'll defer to him to address this new attempt 😇 .
I like vim-plug a lot and it's what I've been using in my own fork for some years now as well

I've tested and passed:

[x] Fresh install
[x] Fresh install and yadr-plugin-add
[x] Migrated without previous .vundles.local
[ ] Migrated with .vundles.local *

I've managed to copy .vundles.local to .local.bundles, but need some help to change from Bundle commands to Plug commands, or some message on this type of migration, maybe.

I've uploaded a video testing plugin helper and some colors:
https://imgur.com/gallery/c0tSjsM

Hi folks, have been a happy user of this repo for many years.
This is a nice change. Just wondering - do the utilites and docs mentioned in https://github.com/skwp/dotfiles/blob/master/doc/vim/manage_plugins.md need to be changed too?

No need to change the docs. I've managed the utilities to use the same aliases, but changing internal implementation.


Fix warnings such as "../../src/d3dx12_property_format_table.cpp:2007…

Fix warnings such as "../../src/d3dx12_property_format_table.cpp:2007……:11: warning: enumeration value 'DXGI_FORMAT_FORCE_UINT' not handled in switch [-Wswitch]" by using the default case and fix warnings about comparison signness (comparing a uint with an int).  gcc 13.1.0 warns about unhandled cases in switch statements with unhandled cases.  That was causing my build log to become extremely lengthy.
Just for your information, gcc's documentation (https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wswitch) states:

-Wswitch
Warn whenever a switch statement has an index of enumerated type and lacks a case for one or more of the named codes of that enumeration. (The presence of a default label prevents this warning.) case labels outside the enumeration range also provoke warnings when this option is used (even if there is a default label). This warning is enabled by -Wall.

I have one misgiving about this patch and that is that there could be switch enumerations that should have been given their own "case" statements.  That would be concealed by using a "default: ;" or by using "-Wno-switch" as a gcc parameter.

There still are unused constants as reported in bug 90 (https://github.com/microsoft/DirectX-Headers/issues/90) but I'm not sure how that can be fixed, and I don't know what you had intended.

Sorry for the delay, and thanks for the contribution. As opposed to your build system contributions or changes to Linux/WSL build support infrastructure, changes to core/D3DX files need to be manually reflected into our internal build infrastructure. While doing that, I ended up actually choosing a different fix for almost every change here. Once we've reviewed/merged those changes internally, I'll push my changes here.

I figured I should close this since another fix was checked in.


Crash when opening video settings

Crash when opening video settings every time.
Just updated sodium and reese's sodium options on my 1.21.1 client via MultiMC and, while it works. It crashes every time I go to open video settings.

I removed Reese's sodium extras mod and it fixed the problem.
reeses-sodium-options-fabric-1.8.0-beta.3+mc1.21.1.jar

I need the rest of the log

I need the rest of the log

Please visit this post I made on sodium GitHub first before I realized it was Reese's sodium options causing the crash.
https://github.com/CaffeineMC/sodium-fabric/issues/2765

Controlify is at fault here. They are modifying our mod but those files aren't there anymore.


Release diesel-cli 1.4.6

The latest version of diesel-cli crate is 1.4.1.  It's missing camel-case conversion.

There will be no 1.4.6 release for diesel-cli. The patch-version of that crate is independent from the diesel crate itself. In general we only backport bug fixes to the last released version. We do not include any new feature like the linked PR into older releases. Any such feature needs to wait till the next feature release.
Closed as this does not use our issue template.

Thanks for the quick response.  Do you plan to release an updated diesel-cli any time soon?
I'm having trouble building from git.
Building diesel_cli from the v1.4.6 tag fails:
$ cargo install --git https://github.com/diesel-rs/diesel.git --tag v1.4.6 diesel_cli
...
error: this `#[deprecated]` annotation has no effect
   --> diesel/src/query_builder/insert_statement/mod.rs:205:1
    |
205 | / #[deprecated(
206 | |     since = "1.2.0",
207 | |     note = "Use `<&'a [U] as Insertable<T>>::Values` instead"
208 | | )]
    | |__^ help: remove the unnecessary deprecation attribute
    |
    = note: `#[deny(useless_deprecated)]` on by default

Building from today's HEAD seems to ignore the --features flag:
$ cargo install --git https://github.com/diesel-rs/diesel.git --rev bada4ad305d279049d0f9716ecde4735144c795c diesel_cli --features postgres
    Updating git repository `https://github.com/diesel-rs/diesel.git`
  Installing diesel_cli v1.4.0 (https://github.com/diesel-rs/diesel.git?rev=bada4ad305d279049d0f9716ecde4735144c795c#bada4ad3)
    Updating crates.io index
   Compiling proc-macro2 v1.0.26
...
   Compiling libsqlite3-sys v0.20.1
   Compiling mysqlclient-sys v0.2.4
...
   Compiling diesel_derives v2.0.0 (/Users/user/.cargo/git/checkouts/diesel-6e3331fb3b9331ec/bada4ad/diesel_derives)
   Compiling diesel v2.0.0 (/Users/user/.cargo/git/checkouts/diesel-6e3331fb3b9331ec/bada4ad/diesel)
...
   Compiling diesel_cli v1.4.0 (/Users/user/.cargo/git/checkouts/diesel-6e3331fb3b9331ec/bada4ad/diesel_cli)
error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-m64" "-arch" "x86_64" "-L" "/Users/user/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/var/folders/xw/qxj49xnj5jq_9l7wtth66n2r0000gn/T/cargo-installB8KjZP/release/deps/diesel.diesel.366rvn04-cgu.0.rcgu.o" ... "/Users/user/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-10db70d883838cbc.rlib" "-lsqlite3" "-lpq" "-lmysqlclient" "-liconv" "-lSystem" "-lresolv" "-lc" "-lm"
  = note: ld: library not found for -lmysqlclient
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

Building from the v1.4.x branch also fails:
$ cargo install --git https://github.com/diesel-rs/diesel.git --branch 1.4.x --rev b0c8e99b3e16a81a99c23af1ea90963d2ec7477d diesel_cli --features postgres
    Updating git repository `https://github.com/diesel-rs/diesel.git`
  Installing diesel_cli v1.4.1 (https://github.com/diesel-rs/diesel.git?branch=1.4.x#b0c8e99b)
...
   Compiling mysqlclient-sys v0.2.4
...
   Compiling diesel v1.4.6 (/Users/user/.cargo/git/checkouts/diesel-6e3331fb3b9331ec/b0c8e99/diesel)
error: this `#[deprecated]` annotation has no effect
   --> diesel/src/query_builder/insert_statement/mod.rs:205:1
    |
205 | / #[deprecated(
206 | |     since = "1.2.0",
207 | |     note = "Use `<&'a [U] as Insertable<T>>::Values` instead"
208 | | )]
    | |__^ help: remove the unnecessary deprecation attribute
    |
    = note: `#[deny(useless_deprecated)]` on by default

It builds from the 1.4.x branch with the --no-default-features flag :
$ cargo install --git https://github.com/diesel-rs/diesel.git --branch 1.4.x --rev b0c8e99b3e16a81a99c23af1ea90963d2ec7477d diesel_cli --no-default-features --features postgres
...
    Finished release [optimized] target(s) in 1m 14s
   Replacing /Users/user/.cargo/bin/diesel
    Replaced package `diesel_cli v1.4.1` with `diesel_cli v1.4.1 (https://github.com/diesel-rs/diesel.git?branch=1.4.x#b0c8e99b)` (executable `diesel`)

The camel case change does not exist in the 1.4.x branch.  I figured out how to build from today's HEAD.  It includes the camel case change.  Yay!
$ cargo install --git https://github.com/diesel-rs/diesel.git --rev bada4ad305d279049d0f9716ecde4735144c795c diesel_cli --no-default-features --features postgres
    Updating git repository `https://github.com/diesel-rs/diesel.git`
  Installing diesel_cli v1.4.0 (https://github.com/diesel-rs/diesel.git?rev=bada4ad305d279049d0f9716ecde4735144c795c#bada4ad3)
...
$ diesel migration redo
Rolling back migration 2021-04-18-000000_initial_schema
Running migration 2021-04-18-000000_initial_schema
$ cat src/schema.rs |grep -i account |grep -i status
        status -> AccountStatus,

Do you plan to release an updated diesel-cli any time soon?

We generally do not give any ETA for any release.

I figured out how to build from today's HEAD. It includes the camel case change. Yay!

Just to make that clear: The master branch is incompatible with any current release of diesel. Also it may and will change over time in likely incompatible ways. This does not mean you cannot use the master branch. We just do not guarantee anything there.


How and where can I use this

Kudos for the great work btw

All of the code is available, and stefanheule.com/strata/ has a section on how to use Strata.  If you just want to use the formulas, it might be best to use STOKE.  What did you have in mind?

This seems to be a new thing and has not been done before AFAIK. So I'm still thinking where it can be used. Some ideas that come to mind though:
Formal verification of disassemblers
Processor fuzzing
Optimizing compiled using semantically equivalent code blocks
Code Mutation and (de) obfuscation

Those all sounds like good ideas that can benefit from formal specifications of ISAs.


fix: Infinity scroll bit broken

Thank you for your contribution to the KodaDot NFT gallery.
👇 _ Let's make a quick check before the contribution.
PR Type

[x] Bugfix
[ ] Feature
[ ] Refactoring

Context

[x] Closes #4982
[ ] Requires deployment <>

Before submitting pull request, please make sure:

[x] My contribution builds clean without any errors or warnings
[x] I've merged recent default branch -- main and I've no conflicts
[x] I've tried to respect high code quality standards
[x] I've didn't break any original functionality
[x] I've posted a screenshot of demonstrated change in this PR

Optional

[ ] I've tested it at </bsx/collection>
[ ] I've tested PR on mobile
[ ] I've written unit tests 🧪
[ ] I've found edge cases

Had issue bounty label?

[x] Fill up your KSM address: Payout

Community participation

[x] Are you at KodaDot Discord?

Screenshot 📸

[ ] My fix has changed something on UI; a screenshot is best to understand changes for others.

it's significantly better!
thank you very much!
pay 30 usd


Add test/mri/date/test_date_strptime.rb for #611

This PR ports test/mri/date/test_date_strptime.rb from JRuby. Because we need to confirm #611 's  RubyDateParser behavior is correct or not after #611. It's better to add this test in advance.
I skipped test_sz in the test_date_strptime.rb because the spec is unstable and doesn't pass with our JRuby <IP_ADDRESS>.

@dmikurube Please take a look when you have time.

Thank you-!


Toggle Session/All Time

Hi, thanks for taking over this plugin it has a lot of potential.
A default setting that allows you to choose current session supplies used or all time, that way you don't have to manually check it to current session every time you play.

This would be a great addition to the plugin, hope this would get added

Should be fixed in the next update

Just found out today that this was added in. Crazy good update, super helpful. Thanks bro.

Just found out today that this was added in. Crazy good update, super helpful. Thanks bro.

Pretty sure this update broke the all time tracking, lot of people including me can't get back to all time now :(
Will try fix when I have time, might need to revert this feature to be honest. The code is spaghetti for how it initializes which makes this feature quite annoying to do.

Oh dang. That's not good, works perfectly for me but damn. If its breaking the plugin for you and others, definitely revert it. No worries, still a great plugin nonetheless.

Just found out today that this was added in. Crazy good update, super helpful. Thanks bro.

Pretty sure this update broke the all time tracking, lot of people including me can't get back to all time now :( Will try fix when I have time, might need to revert this feature to be honest. The code is spaghetti for how it initializes which makes this feature quite annoying to do.

Same here


Restart Apache Services Question

When using the --force-fix option would we need to stop services before running the tool ?
Or would it still replace the .JAR files and then we could restart the services afterwards ?
Thx

@B0R0R0B You should stop services first, run the fix, then start services.


System test for OpenAPI validation

Caused by failures happening to the Docker hosted validator in #2201
Resources

https://github.com/badges/shields/blob/master/services/swagger/swagger.service.js
https://validator.swagger.io/#/

it should not run for every Node.js in matrix