Target folder

Hi i want to know how, i can set default load page draux.io/index and not daux.io (for example), i want load first the principal page and not documentation. thanks

This is now fixed in the development branch and will be merged to default very soon, can you try it ?


Brand expression – spacing

Follow up from previous sprint, looking at the different spacing options between current Carbon for IBM.com components and the proposed spacing from Brand expression.

[ ] Review with stakeholders

Meeting scheduled for 5/11


Empty update response

Geode Issue

[X] I confirm that this crash is NOT related to a mod but directly to Geode Loader itself.

Platform
Android64
Geode Version
APK says V.1.3.2
Mods Installed
It is not related to mods.
Steps to Reproduce
You can't reproduce.
Crash Report
Crash 2024-03-07 17.50.59.dmp
Additional Information
Anytime i open Geode, it starts up normally and works up until it checks the index for the mods, then it just crashes. The application logs always say "Failed to fetch updates Empty response". If there's anything in the crashlogs that explain it, please tell me since i don't have an app to view the dmp files. :(

stale, reopen if needed


268 UI theming

closes #268
Added a set of buttons that switches between dark and light themes for the EventManager. Implemented a theming system for the entire application that updates Tailwind colors, meaning Tailwind colors can be dynamically defined through calls to createTheme and applyTheme. These colors can then be used globally throughout the app anywhere where a normal color would be used in a tailwind class. For example, we can define a color such as primaryColor, and then use it to modify the background color with the class name bg-primaryColor.

That's great! I'm excited to see how we can change it into different themes!
I'm curious about the dark/light mode - this may seem too advanced for this version, but we should talk about it!


Delete plate run

This pull request does 2 things:

moves add_plate_run() to plate_run.R
creates deactivate_plate_run() function

closes #81

Added a complimentary activate_plate_run() function


widget in vscode fails to render: JS error

Checks

[X] I have checked that this issue has not already been reported.

[X] I have confirmed this bug exists on the latest version of Buckaroo.

What type of jupyter notebook were you using (VSCode notebook, google colab, Jupyter Lab, Jupyter notebook).  Select multiple if you can reproduce this in multiple environments.  If other, please add to description.
VS Code, Jupyter Lab
Reproducible example
show any dataframe:
import numpy as np
import pandas as pd
import buckaroo

num_df = pd.DataFrame(
    {'a':[111_111,  77_777, 777_777, 1_000_000, 2_111_111, 1_235_999],
     'b':[111_111, 555_555,       0,    28_123,   482_388,     5_666]})
num_df

I did this in a fresh https://lightning.ai studio with Python 3.11.10. After selecting that version and pip installing numpy, pandas, and buckaroo, you should be able to reproduce this as well.

Issue description
cells don't render - neither in lab nor vscode.
I believe this is because of the sources for widgets.
Could you please clarify where the JS packages should come from?

environment: lightning.ai (remote EC2 instance)

settings.json:

Expected behavior
missing js packages are downloaded automatically or a helpful message telling me what to do is shown.
Installed versions

```
Selected Jupyter core packages...
executing in unknown
buckaroo         : 0.7.11
jupyterlab       : not installed
notebook         : not installed
ipywidgets       : 8.1.5
traitlets        : 5.14.3
jupyter_core     : 5.7.2
pandas           : 2.2.3
numpy            : 2.1.3
IPython          : 8.29.0
ipykernel        : 6.29.5
jupyter_client   : 8.6.3
jupyter_server   : not installed
nbclient         : not installed
nbconvert        : not installed
nbformat         : not installed
qtconsole        : not installed
buckaroo         : [/home/zeus/miniconda3/envs/cloudspace/lib/python3.11/site-packages/buckaroo/__init__.py](https://vscode-remote+vscode-002d01j9d6myvzcvjh2eyeaf6vb4j2-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.11/site-packages/buckaroo/__init__.py)
jupyterlab       : not installed
notebook         : not installed
ipywidgets       : [/home/zeus/miniconda3/envs/cloudspace/lib/python3.11/site-packages/ipywidgets/__init__.py](https://vscode-remote+vscode-002d01j9d6myvzcvjh2eyeaf6vb4j2-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.11/site-packages/ipywidgets/__init__.py)
traitlets        : [/home/zeus/miniconda3/envs/cloudspace/lib/python3.11/site-packages/traitlets/__init__.py](https://vscode-remote+vscode-002d01j9d6myvzcvjh2eyeaf6vb4j2-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.11/site-packages/traitlets/__init__.py)
jupyter_core     : [/home/zeus/miniconda3/envs/cloudspace/lib/python3.11/site-packages/jupyter_core/__init__.py](https://vscode-remote+vscode-002d01j9d6myvzcvjh2eyeaf6vb4j2-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.11/site-packages/jupyter_core/__init__.py)
pandas           : [/home/zeus/miniconda3/envs/cloudspace/lib/python3.11/site-packages/pandas/__init__.py](https://vscode-remote+vscode-002d01j9d6myvzcvjh2eyeaf6vb4j2-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.11/site-packages/pandas/__init__.py)
numpy            : [/home/zeus/miniconda3/envs/cloudspace/lib/python3.11/site-packages/numpy/__init__.py](https://vscode-remote+vscode-002d01j9d6myvzcvjh2eyeaf6vb4j2-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.11/site-packages/numpy/__init__.py)
IPython          : [/home/zeus/miniconda3/envs/cloudspace/lib/python3.11/site-packages/IPython/__init__.py](https://vscode-remote+vscode-002d01j9d6myvzcvjh2eyeaf6vb4j2-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.11/site-packages/IPython/__init__.py)
ipykernel        : [/home/zeus/miniconda3/envs/cloudspace/lib/python3.11/site-packages/ipykernel/__init__.py](https://vscode-remote+vscode-002d01j9d6myvzcvjh2eyeaf6vb4j2-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.11/site-packages/ipykernel/__init__.py)
jupyter_client   : [/home/zeus/miniconda3/envs/cloudspace/lib/python3.11/site-packages/jupyter_client/__init__.py](https://vscode-remote+vscode-002d01j9d6myvzcvjh2eyeaf6vb4j2-002estudio-002elightning-002eai.vscode-resource.vscode-cdn.net/home/zeus/miniconda3/envs/cloudspace/lib/python3.11/site-packages/jupyter_client/__init__.py)
jupyter_server   : not installed
nbclient         : not installed
nbconvert        : not installed
nbformat         : not installed
qtconsole        : not installed```

Jupyter Log output
No response

Thank you for the bug report.  I'm digging in.
Incidentally I recently asked a Microsoft rep for help with setting up CI against buckaroo and VSCode.

Heads up. I will try to get a fix together this week.  I hope that works with your timeline

AnyWidget solves this problem.
I'm making progress on this.  I have a version based on anywidget that works, I'd like to use ipyreact, and I have one stumbling block there.
Anywidget injects your entire js module into the dom for each invocation of the widget.  IPYReact (built on top of anywidget) has a fix for this.
How are you at JS Build chains (vite, webpack, css)?  Want to pair on a couple bits of this problem.

unfortunately I am pretty clumsy with JS tooling in general. I know enough to get by with an LLM but have not invested time to learn properly. I have built my fair share of docker images to get web projects working but can't say I'm confident in those particular skills.

there's no rush on my end. i just thought your tool looked particularly cool and thought I'd assess whether to add it to my toolbox yet. ill keep an eye on my github notifs. thanks for being so responsive!

@mathematicalmichael would you mind trying the latest version of buckaroo.
Can you give this a try and see if it fixes your problem
pip install --force-reinstall buckaroo==0.8.0
#restart vs code , I'm not exactly sure how.  But VS Code needs to try the latest version of buckaroo

This fix (based on moving the js build system to anywidget in #339) took a lot longer than expected.
(anywidget)[https://anywidget.dev/] supports a lot more notebook like environments.

hi! thank you!
better, but still no dice:

(this was in a fresh environment - python 3.10.10)
you can use lightning.ai's compute for free to test it out. Alternatively, github codespaces. This type of "fresh environment" is a perfect testing sandbox.

jupyter screen may show a helpful error:

[Open Browser Console for more detailed log - Double click to close this message]
Failed to load model class 'AnyModel' from module 'anywidget'
Error: No version of module anywidget is registered
    at f.loadClass (https://jupyterlab-01jg4pea3bz9maeze90s9yjsbe.studio.lightning.ai/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/446.bf169bd3821a9ba1aa62.js?v=bf169bd3821a9ba1aa62:1:75363)
    at f.loadModelClass (https://jupyterlab-01jg4pea3bz9maeze90s9yjsbe.studio.lightning.ai/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/327.8166aeb81cf1531ca240.js?v=8166aeb81cf1531ca240:1:10579)
    at f._make_model (https://jupyterlab-01jg4pea3bz9maeze90s9yjsbe.studio.lightning.ai/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/327.8166aeb81cf1531ca240.js?v=8166aeb81cf1531ca240:1:7367)
    at f.new_model (https://jupyterlab-01jg4pea3bz9maeze90s9yjsbe.studio.lightning.ai/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/327.8166aeb81cf1531ca240.js?v=8166aeb81cf1531ca240:1:5136)
    at f.handle_comm_open (https://jupyterlab-01jg4pea3bz9maeze90s9yjsbe.studio.lightning.ai/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/327.8166aeb81cf1531ca240.js?v=8166aeb81cf1531ca240:1:3893)
    at _handleCommOpen (https://jupyterlab-01jg4pea3bz9maeze90s9yjsbe.studio.lightning.ai/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/446.bf169bd3821a9ba1aa62.js?v=bf169bd3821a9ba1aa62:1:73900)
    at b._handleCommOpen (https://jupyterlab-01jg4pea3bz9maeze90s9yjsbe.studio.lightning.ai/static/lab/jlab_core.b207cc5f30e679038452.js?v=b207cc5f30e679038452:1:1369272)
    at async b._handleMessage (https://jupyterlab-01jg4pea3bz9maeze90s9yjsbe.studio.lightning.ai/static/lab/jlab_core.b207cc5f30e679038452.js?v=b207cc5f30e679038452:1:1371262)


Overriding parsers/serializers of existing scalars

Is there a way to override parsers/serializers of existing scalars like Date, DateTime or ID?
For example, if I want to use the following function
def my_cool_parser(value: Any) -> datetime.datetime:
    if ...:
       return dateutil.parser.isoparse(value)
    else:
       ...

Instead of dateutil.parser.isoparse for parsing datetimes, it would be awesome to have something along:
from strawberry.??? import scalar_mapping
scalar_mapping[datetime.datetime].parse_value = my_cool_parser

I didn't find a clean way of doing this so I ended up overriding strawberry.schema.types.scalar.DEFAULT_SCALAR_REGISTRY before the schema is being generated, which seems to work.

I think this is related to #1028 - ideally scalars would be scoped to a schema and they could be overridden.

@Apakottur you should now be able to override the built in scalar implementations in v0.75.0
Let me know if you have any issues with it.


Add CSR RBAC to the example manifest

What this PR does / why we need it:
This PR adds the RBAC rules needed for the NodeCSRApprover controller to work properly.
Optional Release Note:
NONE

/retest

/retest

/retest


linux: enable DEBUG_LIST

Motivation for this change
CONFIG_DEBUG_LIST enables sanity checking of list node pointers during add and remove operations. This prevents an arbitrary memory write primitive that has been used in multiple kernel exploits. This option is required for all  Android kernels, and is enabled by every major distribution kernel (Arch, Debian, Fedora).
https://googleprojectzero.blogspot.com/2019/11/bad-binder-android-in-wild-exploit.html
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

/cc @NeQuissimus

$ nix-build -E '(with import ./. {}; linkFarm "linux-configs" (lib.mapAttrsToList (n: v: { name = n; path = v.configfile; }) (lib.filterAttrs (n: v: (v.configfile or null) != null && !v.meta.unsupported) linuxKernel.kernels)))'
/nix/store/nk8xv2144virj0lpn7jbcdwhzydvvn9q-linux-configs

well, it builds everywhere™


feat: shareable new content - LESQ-915

Description
Music year: 1959

Activate share button on lesson overview page for new lessons,

Issue(s)
How to test

Go to https://deploy-preview-2544--oak-web-application.netlify.thenational.academy
All post legacy lessons (new lessons) should have share all button on lesson overview page.

Screenshots
How it used to look (delete if n/a):

How it should now look:

Checklist

[ ] Added or updated tests where appropriate
[ ] Manually tested across browsers / devices
[ ] Considered impact on accessibility
[ ] Design sign-off
[ ] Approved by product owner
[ ] Does this PR update a package with a breaking change

:tada: This PR is included in version 1.472.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


[Kafka] Migrate native functions to java interoperability

Purpose

$title

Fixes https://github.com/ballerina-platform/ballerina-lang/issues/19699
Check List

[x] Read the Contributing Guide
[ ] Required Balo version update
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[ ] Added necessary tests

[ ] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

Codecov Report

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

@@           Coverage Diff           @@
##           master   #20075   +/-   ##
=======================================
  Coverage    19.9%    19.9%
=======================================
  Files          55       55
  Lines        1437     1437
  Branches      218      218
=======================================
  Hits          286      286
  Misses       1138     1138
  Partials       13       13

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 ba629a2...05cd206. Read the comment docs.


implement a mempool for the sequencer

This PR implements a mempool required for the sequencer.

From my understanding, the current implementation seems to work as such:

Receives new tx
Validates the tx
Puts new tx into DB directly
The order is FCFS

This architecture is simple and straightforward, but I'm not sure how effective it would work it would be in real life. Here are a few things we need to consider:

In-memory mempool
It's way too expensive to store and retrieve txs only through the DB. There should be an in-memory implementation of it for fast access.

Order of sequencing
The current method is FCFS, but how about other factors like fees?

Transaction validation
I'm not fully aware what the ValidatorFunc actually contains, but few things we need to check for:

Account balance checks
Nonce validation
Gas limit validation

There should also be a separation between pending txs and ready txs. Ready tx means tx that has higher nonce than the next immediate nonce of an account. Ready tx means the next immediate one and it's ready to be executed.
Mempool design and architecture could get complex, as it can be exploited for MEV. I'm not sure how far we want to take it at the current stage, but I'll suggest to look into existing architecture like Erigon's mempool design and go-ethereum one and see how they do certain things.


only one instance of babel-polyfill is allowed

Apparently one can only require babel once: https://phabricator.babeljs.io/T1019
/home/jakob/devel/cloudio/node_modules/feathers-sequelize/node_modules/babel-polyfill/lib/index.js:8

  throw new Error("only one instance of babel-polyfill is allowed");
  ^

Error: only one instance of babel-polyfill is allowed
    at Object.<anonymous> (/home/jakob/devel/cloudio/node_modules/feathers-sequelize/node_modules/babel-polyfill/lib/index.js:8:9)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/home/jakob/devel/cloudio/node_modules/feathers-sequelize/lib/index.js:26:1)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)

Dang, I didn't know that. We should probably conditionally include it for what we need in this case something like:
if(typeof Object.assign !== 'function') {
  require('babel-polyfill');
}

According to the comments, babel sets global._babelPolyfill
if (!global._babelPolyfill) {
  require('babel-polyfill')
}

Oh sweet. I should update it for the other adapters, too, later. If you have time would you mind submitting that change as pull request?

Btw what is the status of feathers-waterline? :)

Thanks for the PR. It's released in v0.2.1. @ekryski started working on feathers-waterline maybe he can give a better status update than me.

Ah :hankey:. I didn't know that either. I guess there are a couple places we probably need to change that.
@jgillich hoping to have waterline done in the next couple days. Just integrating our new feathers-errors updates. Will be a huge win.


(969) Add programme history to check your answers

Changes in this PR

Add programme history to check your answers
A few small fixes and tidy ups

Screenshots of UI changes
Before

After

Release checklist
Release process documentation
As part of our continuous deployment strategy we must ensure that this work is
ready to be released once merged.
Pre-merge

[ ] There are changes required to the Accredited Programmes API for this change to work...

[ ] ... and they have been released to production already

Post-merge

[ ] This adds, extends or meaningfully modifies a feature...

[ ] ... and I have written or updated an end-to-end test for the happy path in the Accredited Programmes E2E repo

[ ] This makes new expectations of the API...

[ ] ... and I have notified the API developer(s) of changes to the contract tests (Pact), or the API is already compliant

[ ] Manually approve release to preprod
[ ] Manually approve release to prod

 Add programme history to check your answers


Unexpected behavior when increasing width of focus slider

If I drag the focus slider (is that what it's called?) to make it a lot wider, half the points in the focus window are behind the line and half are in front of the line:

This was fixed at some point.


Issue understanding CycleGAN

Hello.
I am facing some issues understanding the cycleGAN code. My doubts are:

What are the identity losses? As far as I understand the paper, there should be 4 loss terms, 2 corresponding to the validity of translation, and 2 corresponding to the cyclic losses in both directions. Hence I am a bit confused about the identity loss
Also, I would like to understand how the various losses must behave? I understand that the losses should decrease overtime (with wild oscillations which are general in GANs), but should that happen to all the losses (recons and adv as well?)
I have been applying cycleGAN to a new task as a project, and the discriminator loss reduces to zero very early. Any suggestion to tackle this?

For 1. see the original paper, under the section entitled 'Photo generation from paintings'
"For painting→photo, we find that it is helpful to introduce an additional loss to encourage the mapping to preserve color composition between the input and output."

Hello.
I am facing some issues understanding the cycleGAN code. My doubts are:
1. What are the identity losses? As far as I understand the paper, there should be 4 loss terms, 2 corresponding to the validity of translation, and 2 corresponding to the cyclic losses in both directions. Hence I am a bit confused about the identity loss

2. Also, I would like to understand how the various losses must behave? I understand that the losses should decrease overtime (with wild oscillations which are general in GANs), but should that happen to all the losses (recons and adv as well?)

3. I have been applying cycleGAN to a new task as a project, and the discriminator loss reduces to zero very early. Any suggestion to tackle this?

have you solve the issue 3？I have the same question now...

Hello.
I am facing some issues understanding the cycleGAN code. My doubts are:
1. What are the identity losses? As far as I understand the paper, there should be 4 loss terms, 2 corresponding to the validity of translation, and 2 corresponding to the cyclic losses in both directions. Hence I am a bit confused about the identity loss

2. Also, I would like to understand how the various losses must behave? I understand that the losses should decrease overtime (with wild oscillations which are general in GANs), but should that happen to all the losses (recons and adv as well?)

3. I have been applying cycleGAN to a new task as a project, and the discriminator loss reduces to zero very early. Any suggestion to tackle this?

have you solve the issue 3？I have the same question now...


Will this uploader work with Vue CLI3 ?

Hi.
First of all @svale - this looks like an awesome fileuploader component, and is exactly what I was looking for.
I am trying to use this in my Vue CLI3 project, and I can't get it to work...
I have tried different types of configuration, but it will not emit any of the 3 events documented.
So it seems like nothing happens when I select an image, and the standard upload control (in Chrome) shows :" No file chosen "
The markup in DevTools look like this:

<input id="fileInput" type="file" accept="image/*" capture="environment" class="fileinput">

...and the component looks ok in the Vue-devTools inspector.
My latest atempt looks like this in my view file:
<image-uploader :debug="1" :autoRotate="false" outputFormat="string" :preview="true"
             :className="['fileinput', { 'fileinput--loaded' : hasImage }]" capture="environment"
            @input="setImage">
</image-uploader>

An idea of what makes it unresponsive ?
Any other dependencies I need with CLI3 ?
Best regards
iToreTS

Well, my fault...
It works perfectly ok now.
The issue was that I had another INPUT of type="file" earlier in the view.
When I put the  on top of page or removed the old input control, it worked as expected.

By the way - the Roadmap and ToDo-list of this component looks great :)

Hei @iToreTS - Takk for hyggelig tilbakemelding. Beklager at du aldri fikk svar her - jeg så ikke issuet ditt før i dag. Bra det løste seg  :-)


vulkaninfo and vkcube-wayland warnings on exit with libwayland >= 1.22

Regressed by wayland!282. See also wayland-utils#8. CC @afrantzis
$ sway

$ vulkaninfo >/dev/null
warning: queue 0x82ce250f0 destroyed while proxies still attached:
  wl_surface@6 still attached
  wl_compositor@5 still attached
  wl_registry@3 still attached

$ vkcube-wayland --c 100
Selected GPU 0: Intel(R) HD Graphics 530 (SKL GT2), type: IntegratedGpu
warning: queue 0x82aa5f390 destroyed while proxies still attached:
  zwp_linux_dmabuf_feedback_v1@15 still attached

$ uname -sr
FreeBSD 14.0-CURRENT

$ pkg info -x vulkan wayland sway wlroots mesa
vulkan-headers-1.3.242
vulkan-loader-1.3.242
vulkan-tools-1.3.242
wayland-1.21.91
wayland-protocols-1.31
sway-1.8.1
wlroots-0.16.2_1
mesa-23.0.b.2174 (e7c5a8b3f8f snapshot)

vkcube is also affected but only when killed by compositor instead of SIGINT e.g.,
$ vkcube-wayland
Selected GPU 0: Intel(R) HD Graphics 530 (SKL GT2), type: IntegratedGpu
<press Win+Shift+q or similar to "kill" the window via compositor>
warning: queue 0x8288443f0 destroyed while proxies still attached:
  zwp_linux_dmabuf_feedback_v1@15 still attached

wayland!297 fixes vulkaninfo but not vkcube-wayland


Microsoft Word Incomplete Table of Contents

Description
When a Word document has a generated Table of Contents, the ITextRange returns an incomplete text result.
At this point in my code I have retrieved the window AutomationElement and have retrieved the Body descendant.  The Body AutomationElement has a child that has a class "Table of contents".  It is this child that returns an incomplete text.
Code snippets
AutomationElement? tableOfContents = FindFirstDescendant(ConditionFactory.ByClassName("Table of contents"));

string text = tableOfContents.Patterns.Text.Pattern.DocumentRange.GetText(-1);

Screenshots
This is my generated Table of Contents

This is the element breakdown generated by FlaUInspect

This is the incomplete text returned by my code above.

Interesting. In a wordfile I created, I see 85 characters of the text, then two newlines and then all chapter titles correctly. I think there is not too much FlaUI can do if Word provides the wrong data. Maybe you could fallback in using the Hyperlink controls?


Hooks for toggling

Hi!  I love this plugin.  I was wondering if it might be possible to put hooks in for toggling.  This might be something that could be made generic, but the one hook that I think I would really benefit from would be to auto-toggle to make sure I'm not in vim mode when I add a card to a Canvas.
It might be sufficient to be able to do this just when file-open is triggered and the new file is a canvas -- have it drop back from vim mode then.  This could be stuck behind a toggle setting.
This may be out of scope for this plugin, but it also seems like the best place for it.  Would you be open to a PR implementing it?

Honestly, I think i like it! I would prefer it as a setting that one would have opt-in into however I will take a crack at this tomorrow.

Honestly, I think i like it! I would prefer it as a setting that one would have opt-in into however I will take a crack at this tomorrow.  Thinking about a name like "Automatic Canvas Insert [opt-in]". I also agree that it should easy to do with on open  invoked function.

Actually, I would happily accept a pr for this feature as I have a small amount of time to work on this feature right now.

Thank you!  I will give it a go and see what I can come up with.  I appreciate the nudge!


add script to make base image for PLD Linux

I've used this script for a long time, thought to add it to contrib/ dir
https://www.pld-linux.org/packages/docker
The image is relatively small: https://hub.docker.com/r/glen/pld/tags/
- How to verify it
If you really want to verify it, the simplest way to get pld is my pre-published image:
https://hub.docker.com/r/glen/pld/
- Description for the changelog
Add support for PLD Linux base image generation

SGTM, but ping @tianon @jfrazelle PTAL

are these still used?

@jfrazelle I'm not sure if "we" are using them, but if it is useful to others, I'm not against adding it.
Also, it wouldn't require real maintenance, given the disclaimer in the "contrib" readme;

The contrib directory contains scripts, images, and other helpful things which are not part of the core docker distribution. Please note that they could be out of date, since they do not receive the same attention as the rest of the repository.

Please merge. It would be canonical place to find the script to create base image.

Seems OK to me!  (just one minor comment)

LGTM


{Packaging} Unpin yarl version

Description

Yum package test failed because of CLI pinned a lower version of yarl. yarl is not directly used in Azure CLI (yarl used in azure-multiapi-storage), its version requiremnets should be determined by the dependecies of CLI which depend on it. We should remove the version constraint in requirements.txt as long as its new version is not broken.
Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR title and description has followed the guideline in Submitting Pull Requests.

[ ] I adhere to the Command Guidelines.

Packaging


myreadingmanga.info downloader & update issues

Ripme version: 1.7.88
Java version: 1.8.0_221
Operating system: 1903 (Build 18362.295)
Exact URL you were trying to rip when the problem occurred: [Many]
Please include any additional information about how to reproduce the problem:

Expected Behavior
The images get downloaded.
The update downloads the file and runs a new version.
Actual Behavior

Updater errors out with a message "Access denied".

Please provide examples of URLs which don't work instead of "many".


Save/Delete the datasets

Fixes issues #169 & #170
Added a submenu to the datasets with "open" and "delete"
Added a getName() method to the datasetManager to properly set the name
Added a delete() method
Added a confirmation and warning dialog for the delete

If you're unsure about any of the interfaces behaviors, please document the options and start a discussion here.

This PR is obsolete due to #184. @clementparizot, thanks for your efforts!


Implement dojoup

dojoup is a bash script for installing and updating dojo
The implementation can borrow heavily from here: https://github.com/foundry-rs/foundry/tree/master/foundryup

@Matth26 any updates here?


I've found a Gitter badge which matches the style of the other badges…

… better
[![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg?style=flat-square)](https://gitter.im/Ripple-Foundation/PulseTile)

Codecov Report

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

@@          Coverage Diff          @@
##           master   #203   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files         206    206
  Lines        3656   3656
  Branches      545    545
=====================================
  Hits         3656   3656

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 ca1492b...3d37c3f. Read the comment docs.


Missing features in Area

[ ] scrolling area
[ ] Gradients
[ ] Clipping
[ ] getting the Area's size in pixel
[ ] make a handle to move and resize the window (UiArea.beginWindowMove & UiArea.beginWindowResize)

getting the Area's size in pixel

@kusti8 How can this be done from a API design perspective? There is no draw callback in declarative React code. The only way I can think of is "function as children" ("render callback"):
<Area>
  {(width, height) => <Area.Rectangle ... > .... </Area.Rectangle>}
</Area>

Is that information even needed or is it enough to have width="100%"?

And regarding gradients: how should they be declared?
1.
const g1 = new Area.Gradient("linear", x1, y1, x2, y2); // start & end coordinates
g1.addStop(0.0, "red");
g1.addStop(1.0, "blue");

// ...

  <Area.Rectangle ... fill={g1}/>

const g1 = (
<Area.Gradient x1="0" x2="0" x2="100" y2="100">
  <Area.Gradient.Stop color="red" offset="0%"/>
  <Area.Gradient.Stop color="blue" offset="100%"/>
</Area.Gradient>);

// ...

  <Area.Rectangle ... fill={g1}/>

Yeah sorry about the delay. The second option is more like the React syntax. And as for the area size, I agree that a function child is the only real way.

And as for the area size, I agree that a function child is the only real way.

I'm struggling getting that to work.
First, there is always this warning:
Warning: Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.
    in AREAGROUP (created by Area)
    in AREA (created by Area)
    in Area (created by Example)
    in VERTICALBOX (created by Box)
    in Box (created by Example)
    in WINDOW (created by Example)
    in APP (created by Example)
    in Example

The function gets passed to Area.Group as a child:
Area.Group = class AreaGroup extends AreaComponent {
  constructor(root, props) {
    super(root, props);
    this.children = [];
  }

  appendChild(child) {
    this.children.push(child);
  }

  draw(area, p, props) {
    if(typeof this.props.children === "function"){
      this.appendChild(this.props.children(p.getAreaWidth(), p.getAreaHeight()));
    }

    for (let i = 0; i < this.children.length; i += 1) {
      if (typeof this.children[i] === 'object') {
        console.log(this.children[i]);
        this.children[i].render(this, area, p, props);
      }
    }
  }
};

This is printed to the console (returned by React.createElement via the function child):
{ '$$typeof': Symbol(react.element),
  type: 'AREATEXT',
  key: null,
  ref: null,
  props: { children: '560 460' },
  _owner: null,
  _store: {} }

But I need something like (the real class) this for the rendering:
AreaText {
  root: Root { children: [ [App] ] },
  props:
   { children:
      'Some text',
     x: 0,
     y: 0 },
  element: {},
  children:
   [ 'Some Text' ],
  str: AttributedString {} }

But I need something like (the real class instance) this for the rendering:

In other words: How can I invoke the reconciliation "manually" without rendering these elements (usually you just return them in a render function and the reconciler continues down)? If that's not easily possible the whole Area code would have to be restructured (probably using Context).

I'm actually not sure. Could you upload your code and test so I can try it out? There may be some functions in the reconciler that can help out, like DesktopRenderer.updateContainer(element, node, null); (from render/index.js), but I'm not sure.

diff --git a/examples/area-size.js b/examples/area-size.js
new file mode 100644
index 0000000..fb07aa5
--- /dev/null
+++ b/examples/area-size.js
@@ -0,0 +1,22 @@
+import React, { Component } from 'react';
+import { render, Window, App, Box, Menu, Area } from '../src/';
+
+class Example extends Component {
+  render() {
+    return (
+      <App>
+        <Window title="Test" size={{ w: 600, h: 500 }} margined={true}>
+          <Box padded>
+            <Area>
+              {(width, height) => (
+                <Area.Text>{`${width} ${height}`}</Area.Text>
+              )}
+            </Area>
+          </Box>
+        </Window>
+      </App>
+    );
+  }
+}
+
+render(<Example />);
diff --git a/src/components/Area.js b/src/components/Area.js
index fcc911e..73855d0 100644
--- a/src/components/Area.js
+++ b/src/components/Area.js
@@ -577,9 +577,33 @@ Area.Group = class AreaGroup extends AreaComponent {
   }

   draw(area, p, props) {
-    for (let i = 0; i < this.children.length; i += 1) {
-      if (typeof this.children[i] === 'object') {
-        this.children[i].render(this, area, p, props);
+    if (typeof this.props.children === 'function') {
+      /*
+        OUTPUT:
+
+        Warning: Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.
+            in AREAGROUP (created by Area)
+            in AREA (created by Area)
+            in Area (created by Example)
+            in VERTICALBOX (created by Box)
+            in Box (created by Example)
+            in WINDOW (created by Example)
+            in APP (created by Example)
+            in Example
+        { '$$typeof': Symbol(react.element),
+          type: 'AREATEXT',
+          key: null,
+          ref: null,
+          props: { children: '560 460' },
+          _owner: null,
+          _store: {} }
+      */
+      console.log(this.props.children(p.getAreaWidth(), p.getAreaHeight()));
+    } else {
+      for (let i = 0; i < this.children.length; i += 1) {
+        if (typeof this.children[i] === 'object') {
+          this.children[i].render(this, area, p, props);
+        }
       }
     }
   }

Why not use Refs? Just allow the pixel size to be queried using getWidth/getHeight, then you can do
  constructor(props) {
    super(props);
    this.area = React.createRef();
  }

  render() {
    return <Area ref={this.area}>
      <Area.Text>{this.area.current.getWidth()}px</Area.Text>
    </Area>;
  }

I'm actually working on something like that for a code editor I'm making, I'll make a PR when it works.

@mischnic also about the gradients. I think the first option is more in line with how it's done in React / RN, for example with Stylesheets:
const styles = StyleSheet.create({
  container: {
    borderRadius: 4,
    borderWidth: 0.5,
    borderColor: '#d6d7da',
  },
  title: {
    fontSize: 19,
    fontWeight: 'bold',
  },
  activeTitle: {
    color: 'red',
  },
});

<View style={styles.container}>
  <Text style={[styles.title, this.props.isActive && styles.activeTitle]} />
</View>

also about the gradients

These are already implemented in my PR, so I'm quite reluctant to redo them.

I think the first option is more in line with how it's done in React / RN, for example with Stylesheets:

There is nothing like that in "vanilla" React and React Native uses it because it has to serialize everything to json before sending it to the native code side. Creating explicit stylesheets enables them to use a single number to refer to all styles in that stylesheet. We don't need to do that.

Plus it's not a good idea to carry around the overhead of React nodes when all you want is the gradient object.

No React nodes are created, this only creates elements:
{  type: AreaGradient
  key: null,
  ref: null,
  props: { type: "linear", children: [/*same for children*/] },
  _owner: null,
  _store: {} }

No React nodes are created, this only creates elements

My mistake, I didn't look at the code. Still, that's quite a lot of overhead and it's unnecessarily complex. We are writing Javascript, not XML ;p
Simple comparison:
const gradient = <Area.Gradient x1="0" x2="0" x2="100" y2="100">
  <Area.Gradient.Stop color="red" offset="0%"/>
  <Area.Gradient.Stop color="blue" offset="100%"/>
</Area.Gradient>;

vs
const gradient = Gradient.create('linear', 0, 0, 100, 100, {
  0.0: 'red',
  1.0: 'blue',
});

Still, that's quite a lot of overhead

Transforming JSX to React.createElement is done by babel.
React.createElement does basically this (without ref and key handling):
React.createElement = function(type, props, children) {
	return {
		type,
		props: [...props, children]
	}
}

The code for parsing would essentially be the same as this suggestion
const gradient = Gradient.create({
  type: 'linear',
  x1, y1,
  x2, y2,
  stops: {
    0.0: 'red',
    1.0: 'blue',
  },
});

The only argument would correspond to props and stops would be props.children.

We are writing Javascript, not XML.

XML -> HTML -> JSX
Do use React like this ?
import {render, App, Window, Area} from 'proton-native';
import React from 'react';

class MyApp extends React.Component {
	render() {
		return React.createElement(App, null,
			React.createElement(Window, {size: {w: 500, h: 200}, margined: true, title: 'Test'},
				React.createElement(Area, null, [
					React.createElement(Area.Circle, {x: 20, y: 40, r: 10}, null)
				]))
			)
		);
	}
}

render(React.createElement(MyApp, null, null));

every draw call

Thats a good point. But it can be easily solved using memoization using a WeakMap. (With a gradient based on e.g. the mouse position, your solution would suffer from the same problem.)
The question is, which API is better (ignoring the underlying implementation)? @kusti8

No, because with my approach you can access libui.DrawBrush directly and just change what's needed. Still only one object per gradient. Memoizing mouse position based gradients would eat the RAM faster than Chrome.

No, because with my approach you can access libui.DrawBrush directly and just change what's needed. Still only one object per gradient.

How low level do you want to go? You could ditch the whole state concept and just set the text of a label using myLabel.text = "...";.

It's not low level, if I wanted low level I'd just export the libui.DrawBrush constructor and be done with it. Your approach is complex for the sake of being complex and has so much drawbacks I'm surprised you went with it. @kusti8 I think you'll have to make a decision here 😜

It's a tough decision. I'm leaning towards the JSX approach simply because if we end up making something like a stylesheet, that could lead to it ending up being cluttered, so that we have 3-5 StyleSheet type objects. With react, gradients end up being in the stylesheet, and I would be fine with it if we ended up making a Stylesheet and adding it there, but I don't really like creating a separate clone of it.

Please consider the underlying implementation when making this decision. The JSX one is complex, resource-heavy and confusing - nowhere in the React ecosystem you define things with JSX, it's only used for rendering components.
If you knew nothing about this library and looked at the gradient code, wouldn't you think that it's a component of some kind?
I think the question we should ask when deciding whether to use JSX for something is:

Is this code normally written inside of the render() method, or outside of it?

If you knew nothing about this library and looked at the gradient code, wouldn't you think that it's a component of some kind?

Is this code normally written inside of the render() method, or outside of it?

Thats a good point...

so that we have 3-5 StyleSheet type objects

I don't see anything upcoming in libui that would need a stylesheet.

Yup, proton-native shouldn't need stylesheets at all.

Sorry about the delay.
That's a good point. Libui won't be getting stylesheets, was thinking a bit in the future about that.
@maciek134 I like your second syntax here, although it is hard to understand what each number is from a first glance. I'm thinking a more CSS like thing where it accepts an object, so {x1: 0, y1: 0 ...}, but it may not be needed if its documented.
const gradient1 = Gradient.createLinear(0, 0, 100, 100, {
  0.0: 'blue',
  1.0: 'red',
});
const gradient2 = Gradient.createRadial(0, 0, 100, {
  0.0: 'red',
  1.0: 'orange',
});

Well, that's how it's done in JS' Canvas: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createLinearGradient
CanvasGradient ctx.createLinearGradient(x0, y0, x1, y1);

And let's be honest, even vim has code completion/hints/IntelliSense today, no need to be overly expressive with the parameters.

And let's be honest, even vim has code completion/hints/IntelliSense today, no need to be overly expressive with the parameters.

How should that completion know about that proton-native function? You would need something like typescript definitions.

No, not really. Most of the autocompletion solutions easily parse JS libraries, but it doesn't matter in this case since there are TS definitions for proton-native already: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/proton-native/index.d.ts

If it's already used with JS canvas then it would make sense to do it that way. I'm still not a fan of the entire approach, I just like more verbose functions than less, but if it's standard then it's fine.

Yeah it's long, but if it matches web JS then I prefer that over simplifying it.

Fine, but I don't think many know the function signature of createRadialGradient(x1,y1,r1,x2,y2,r2).

Even if they don't know it and however much I don't like it myself, it is already established and I'd rather have something that mirrors what is established rather than something new. I would have made proton-native a new target for react-native instead of with a new reconciler, but a lot of features like flexbox View weren't available.


Switch to new recommended syntax

Composer now recommends using || instead of a single |.
https://getcomposer.org/doc/articles/versions.md#range

Thanks. :+1:


[v2.0] Add Optim Warning

Description
Optimizers in MXNet2.0 are refactored and some have new keyword name for the parameters, like adagrad(eps->epsilon), rmsprop(gamma1->rho, gamma2->momentum). It will be confusing for users who migrate from v1.x to find that using rmsprop could raise the following error:
Traceback (most recent call last):
  File "optimizer_update.py", line 16, in <module>
    rmsprop_optimizer = optimizer.RMSProp(learning_rate=0.001, gamma1=0.9, gamma2=0.9, epsilon=1e-07, centered=False)
  File "/home/ubuntu/workspace/incubator-mxnet/python/mxnet/optimizer/rmsprop.py", line 73, in __init__
    super(RMSProp, self).__init__(learning_rate=learning_rate,
  File "/home/ubuntu/workspace/incubator-mxnet/python/mxnet/optimizer/optimizer.py", line 96, in __init__
    super(Optimizer, self).__init__(**kwargs)
TypeError: object.__init__() takes exactly one argument (the instance to initialize)

This PR will add warnings for deprecated parameters in the following optimizers:

adagrad:

eps -> epsilon

rmsprop:

gamma1 -> rho
gamma2 -> momentum

Checklist
Essentials

[x] PR's title starts with a category (e.g. [BUGFIX], [MODEL], [TUTORIAL], [FEATURE], [DOC], etc)
[x] Changes are complete (i.e. I finished coding on this PR)
[x] All changes have test coverage
[x] Code is well-documented

Comments

If this change is a backward incompatible change, why must this change be made.
Interesting edge cases to note here

@mxnet-bot run ci [centos-gpu]

@mxnet-bot run ci [centos-gpu]


feat: add setLanguage

Currently, we use the router from next to change the current locale, as it is explained in the README : https://github.com/vinissimus/next-translate#9-how-to-change-the-language
Most of the time, we change the locale without changing the current page, as you explain in comments, we could indeed use the current pathname at the end to keep the same page, but it seems repetitve and annoying to do.
Instead we would have a method called setLanguage to change the locale and keep the same page.
Example of how we could use it :
import React from 'react'
import setLanguage from 'next-translate/setLanguage'

export default function ChangeLanguage() {
  return (
    <button onClick={async () => await setLanguage('en')}>EN</button>
  )
}

Note: I can't find out how to write tests for this feature.

About this failing test:

You need to clean the build files here adding the setLang*:
https://github.com/vinissimus/next-translate/blob/master/package.json#L49

Is this going to be merged?  It would help a lot 🙂


Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/3681499109
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.installer-action.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.installer-action.yml
Trigger: workflow_dispatch
Branch: main
Date: Tue Dec 13 01:52:50 UTC 2022

This is a test.

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/3681505660
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.installer-action.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.installer-action.yml
Trigger: workflow_dispatch
Branch: main
Date: Tue Dec 13 01:54:17 UTC 2022
Tests are passing now. Closing this issue.


Add note about skipping message ids

Just something I noticed (and had to painfully troubleshoot) while coding.

This seems to be more complicated than it seemed at first. It does seem to allow some skipped IDs.
The example presented in the commit does fail, but skipping the ID on usually IDed packets seems fine.


Station configuration: remove type keyword

This PR changes the syntax of the station config files slightly, in order to be more consistent and to allow easier validation in the future.
The change disallows the type keyword and will use the full python style path to the instrument in the driver keyword. The old syntax will still be available but show a deprecation warning.
This means that
instruments:
  mock:
    driver: qcodes.tests.instrument_mocks
    type: DummyChannelInstrument

Will show a deprecation warning and will have to be rewritten as
instruments:
  mock:
    driver: qcodes.tests.instrument_mocks.DummyChannelInstrument

The syntax of the tests has been changed to this new style and a test for the old style has been added.

awesome @astafan8 ! That is absolutely right! I will get to it.

@GateBuilder and @lakhotiaharshit You are probably likely to see a bunch or deprecation varnings related to this as 0.7 rolls out


Expo and lottifiles not working

Description
Hi team,
I'm currently using 48.0.18 expo and lottie-react-native 5.1.4
When I try to run the example code in my app, I get the following error
TypeError: Cannot read property 'Commands' of null

This error is located at:
    in RCTView (created by View)
    in View (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (at LottieView.js:178)
    in RCTView (created by View)
    in View (at LottieView.js:177)
    in LottieView (created by App)
    in RCTView (created by View)
    in View (created by App)
    in App (created by LoginScreen)
    in RCTView (created by View)
    in View (created by LoginScreen)
    in LoginScreen (created by SceneView)
    in StaticContainer
    in EnsureSingleNavigator (created by SceneView)
    in SceneView (created by SceneView)
    in RCTView (created by View)
    in View (created by DebugContainer)
    in DebugContainer (created by MaybeNestedStack)
    in MaybeNestedStack (created by SceneView)
    in RCTView (created by View)
    in View (created by SceneView)
    in RNSScreen (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by InnerScreen)
    in Suspender (created by Freeze)
    in Suspense (created by Freeze)
    in Freeze (created by DelayedFreeze)
    in DelayedFreeze (created by InnerScreen)
    in InnerScreen (created by Screen)
    in Screen (created by SceneView)
    in SceneView (created by NativeStackViewInner)
    in Suspender (created by Freeze)
    in Suspense (created by Freeze)
    in Freeze (created by DelayedFreeze)
    in DelayedFreeze (created by ScreenStack)
    in RNSScreenStack (created by ScreenStack)
    in ScreenStack (created by NativeStackViewInner)
    in NativeStackViewInner (created by NativeStackView)
    in RNCSafeAreaProvider (created by SafeAreaProvider)
    in SafeAreaProvider (created by SafeAreaInsetsContext)
    in SafeAreaProviderCompat (created by NativeStackView)
    in NativeStackView (created by NativeStackNavigator)
    in PreventRemoveProvider (created by NavigationContent)
    in NavigationContent
    in Unknown (created by NativeStackNavigator)
    in NativeStackNavigator (created by StackNavigator)
    in StackNavigator (created by App)
    in AuthProvider (created by App)
    in EnsureSingleNavigator
    in BaseNavigationContainer
    in ThemeProvider
    in NavigationContainerInner (created by App)
    in App (created by withDevTools(App))
    in withDevTools(App)
    in RCTView (created by View)
    in View (created by AppContainer)
    in RCTView (created by View)
    in View (created by AppContainer)
    in AppContainer
    in main(RootComponent), js engine: hermes

Steps to Reproduce
Using the exact same code as example
import { Button, StyleSheet, View } from 'react-native';
import LottieView from 'lottie-react-native';

export default function App() {
  const animation = useRef(null);
  useEffect(() => {
    // You can control the ref programmatically, rather than using autoPlay
    // animation.current?.play();
  }, []);

  return (
    <View style={styles.animationContainer}>
      <LottieView
        autoPlay
        ref={animation}
        style={{
          width: 200,
          height: 200,
          backgroundColor: '#eee',
        }}
        // Find more Lottie files at https://lottiefiles.com/featured
        source={require('../../assets/lottieFiles/loginScreen.json')}
      />
      <View style={styles.buttonContainer}>
        <Button
          title="Restart Animation"
          onPress={() => {
            animation.current?.reset();
            animation.current?.play();
          }}
        />
      </View>
    </View>
  );
}

const styles = StyleSheet.create({
  animationContainer: {
    backgroundColor: '#fff',
    alignItems: 'center',
    justifyContent: 'center',
    flex: 1,
  },
  buttonContainer: {
    paddingTop: 20,
  },
});

Do you have new architecture turned on? Also please try updating to 5.1.6.

Closing due to inactivity.

Same issue here

Was this issue solved? I'm having the exact same problem...

Closing due to inactivity.

why closing, when you clearly see there is no solution provided? I am still facing this issue

Closing due to inactivity.

why closing, when you clearly see there is no solution provided? I am still facing this issue

Answer to why:
No one answered the question I asked. Posting an issue and then going away not answering will be considered inactivity.
Your case:
Share your minimal reproduction and specify your environment (Expo Go/Expo Bare) instead of expressing frustration about the closed issue. We're volunteering our time, so please maintain a respectful tone.

Closing due to inactivity.

why closing, when you clearly see there is no solution provided? I am still facing this issue

Answer to why: No one answered the question I asked. Posting an issue and then going away not answering will be considered inactivity.
Your case: Share your minimal reproduction and specify your environment (Expo Go / Expo / Bare) instead of expressing frustration about the closed issue. We're volunteering our time, so please maintain a respectful tone.

Thank you for your response, I figured it out so the issue was I think I used npm to install the library, and expo was not able to link it properly, my solution was
delete the development package,
remove the lottie-react-native package using
npm remove lottie-react-native
using expo to install it again
npx expo install lottie-react-native
and rebuild the package using
eas build --profile development --platform android
and it worked
thank you for your response.


Test caching go list invocation (test only)

:white_check_mark: Build go-langserver 1.0.175 completed (commit https://github.com/elastic/go-langserver/commit/c390f3ade6 by @zfy0701)


runningX/neighbor - deprecated

Need clickhouse-server version specific implementations for macros which apply windows function for macros if possible

SELECT
  t,
  groupArray([type,diff]) as cntDiff
FROM
(
WITH
  lagInFrame(cnt) OVER (PARTITION BY type ORDER BY t ASC ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS prev_cnt,
  cnt - prev_cnt as diff
SELECT
  t,
  type,
  diff
FROM
(
SELECT
  $timeSeries as t,
  type,
  count() as cnt
FROM $table
WHERE $timeFilter
GROUP BY t, type
)
)
GROUP BY t
ORDER BY t


great expectations, airflow: follow snowflake dataset naming rules

Normalize Snowflake dataset and datasource naming rules among dbt/airflow/great expectations.
Canonicalize old snowflake account paths around making them all full size with account, region and cloud names.
Closes: https://github.com/OpenLineage/OpenLineage/issues/1195
Signed-off-by: Maciej Obuchowski<EMAIL_ADDRESS>

Codecov Report

Merging #1527 (347ad59) into main (b1d6bcf) will increase coverage by 1.62%.
The diff coverage is 80.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@             Coverage Diff              @@
##               main    #1527      +/-   ##
============================================
+ Coverage     82.81%   84.44%   +1.62%
============================================
  Files            87       68      -19
  Lines          3962     3657     -305
  Branches         27        0      -27
============================================
- Hits           3281     3088     -193
+ Misses          651      569      -82
+ Partials         30        0      -30

Impacted Files
Coverage Δ

client/python/openlineage/client/utils.py
68.75% <0.00%> (-0.95%)
:arrow_down:

...neage/common/provider/great_expectations/action.py
77.24% <33.33%> (-1.44%)
:arrow_down:

...on/common/openlineage/common/provider/snowflake.py
94.73% <94.73%> (ø)

...nlineage/airflow/extractors/snowflake_extractor.py
95.45% <100.00%> (+2.43%)
:arrow_up:

integration/airflow/openlineage/airflow/utils.py
76.92% <100.00%> (ø)

...egration/common/openlineage/common/provider/dbt.py
91.84% <100.00%> (+0.02%)
:arrow_up:

...a/src/main/java/io/openlineage/client/Clients.java

...a/io/openlineage/client/transports/HttpConfig.java

...o/openlineage/client/transports/ConsoleConfig.java

...penlineage/client/transports/KinesisTransport.java

... and 16 more

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


accessReview creation code snippet is missing

there is no MS Graph SDK code snippet for the following accessReview creation at https://docs.microsoft.com/en-us/graph/api/accessreview-create?view=graph-rest-beta
AB#6990

closing as this has been fixed


table is not exist

[root@localhost go-mysql-elasticsearch]# ./bin/go-mysql-elasticsearch -config=./etc/river.toml
2017/05/22 16:10:40 binlogsyncer.go:89: [info] create BinlogSyncer with config &{1001 mysql <IP_ADDRESS> 3306 root 123456   false false  false info}
github.com/siddontang/go-mysql/schema/schema.go:15: table is not exist
/usr/local/go/src/github.com/siddontang/go-mysql-elasticsearch/river/river.go:232:
/usr/local/go/src/github.com/siddontang/go-mysql-elasticsearch/river/river.go:57:
my schema and table was set like this:
[[source]]
schema = "test"
tables = ["jinmi_domain_delete"]
and mysql can connect,here is my tables:
mysql> show tables;
+---------------------+
| Tables_in_test      |
+---------------------+
| article             |
| documents           |
| jinmi_domain_delete |
| tags                |
So,what's the matter?

Hi @sqq421687517
Do you meet this error when you first start the program?

yes,so what's the problem?

@sqq421687517
Can you give me your config file? Seem that you use an incorrect schema in rule section.

Same problem here. The config is without [[rule]].


Notification counter MetroWindow.RightWindowCommands

Hi, I've added a toggle button that act like a notification center (much like facebook) in RightWindowCommands:

But now I want to show how many notifications are unread... I'd like to show in the top right corner of the "globe" button. Any ideas?

yes there is an easy idea
1 - get how many notifications
2 - name the "image" control of the "globe" button any name : like globeImg
3 -you have two ways
3-1 create a new image and write text to it
3-2 adding a textblock ABOVE the image and write how many notifications you want using codebehind

Sorry for not being specific. I want ideas of how to implement the UI part. Code behind I already implemented hehe.
Here is the current code (I use icons, not image):
<ToggleButton>
  <Rectangle Fill="White">
        <Rectangle.OpacityMask>
            <VisualBrush Visual="{StaticResource appbar_globe}" Stretch="Fill" />
        </Rectangle.OpacityMask>
    </Rectangle>
</ToggleButton>

I'll try the TextBlock suggestion. Thanks.

Hello @JobaDiniz,
My notification badge design uses a combination of my vector art with two borders that have a corner radius of 50 to give this appearance. I have a centered TextBlock inside the second border bound to the unread notification count.

I hope this helps.

This icon is what I wanted hehe... I even opened a suggestion issue (https://github.com/Templarian/WindowsIcons/issues/208) for it.
Your vector is really nice, however, if I understood right, when there is no notification, the red circle will be shown with "0" inside it. That's not what I want.
Thanks for sharing, though :+1:

Thank you for the kind words.  Actually no, when there are no unread notifications, a visibility binding causes the borders to go away, leaving only the bell.

Awesome. Would you mind to share code?

Absolutely, I'll pull it out of my project to post an isolated example and share the link here.

I've created a repository for you to check out here. I hope this helps :)

thanks! I'll check it out later
On Fri Feb 20 2015 at 12:55:51 PM Justin Horner<EMAIL_ADDRESS>wrote:

I've created a repository for you to check out here
https://github.com/justinhhorner/wpf-notificationbadge. I hope this
helps :)
—
Reply to this email directly or view it on GitHub
https://github.com/MahApps/MahApps.Metro/issues/1804#issuecomment-75250391
.


PPI dataset "Connection reset by peer" error

🐛 Bug

To Reproduce
Steps to reproduce the behavior:
When I try to use PPI class to create a PPI dataset, I got a "Connection reset by peer" error. Other datasets can be download correctly. Please find the following screenshot. Thanks.

Environment

OS: Linux
Python version: 3.7
PyTorch version: 1.4.0
CUDA/cuDNN version: 10.1
GCC version:
Any other relevant information:

Additional context

I cannot reproduce this. Are you able to download the dataset manually?

I tried to curl the dataset in the command line and got the following error: "curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to s3.us-east-2.amazonaws.com:443".

There seems to be a problem with the external servers we want to download the raw files from. Not much I can do here :(


Menus

Hi,
Do you have examples for implementing menus? I can't bind a menu item to a ViewModel method. In Caliburn.Micro I just had to name the menu item the same as the method in ShellView but doesn't work in Stylet. Any help you can provide would be greatly appreciated.
Thanks,
Charlie

They work the same as anything else with a Command property:
<MenuItem Command="{s:Action SomeMethodOnTheViewModel}"/>

Can you please post the code you're having trouble with?

Attached are the View and ShellViewModel files. When I run It now I get the following error
Stylet.Xaml.ActionNotSetException: 'View.ActionTarget not set on control System.Windows.Controls.MenuItem Header:Create Customer Items.Count:0 (method CreatCust()). This probably means the control hasn't inherited it from a parent, e.g. because a ContextMenu or Popup sits in the visual tree. You will need so set 's:View.ActionTarget' explicitly. See the wiki section "Actions" for more details.'
NewZip.zip

I hacked that code into a project which I could actually run, SmallBusCustMgtWPF.zip, and the menu works fine.
Please provide a minimal reproducible sample which I can run and which reproduces your issue. Thanks!

Hey,
Still doesn't work for me. I get the same error I included in my previous email. I've attached a zip of the entire solution and the local SQL DB.
:)

So clicking "new customer" in the zip I uploaded fails for you?

Can you try and create a minimal repro? https://stackoverflow.com/help/minimal-reproducible-example

(Also, that zip you linked is just a link to that issue -- there's no zip there I'm afraid

Hey Antony,
I was going through my solution this morning commenting out anything related to DB access, removing some class files related to things non UI and of course it still failed. So before I zipped it up to send to you I took your project and added in the DB access and other class files and everything works like a charm. Go figure. I don’t know what the differences are, I can’t see any. It seems that under .NetCore something must get corrupted and by creating a new project and adding in the same objects it will work.
Anyway, I don’t know if you want me to still send you my original solution, I will if you want .
Thanks very much for your help
Charlie
Sent from C. Ihle's iPhone
704-439-6270

On Oct 22, 2020, at 4:20 PM, Antony Male<EMAIL_ADDRESS>wrote:

(Also, that zip you linked is just a link to that issue -- there's no zip there I'm afraid)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

One thing I did change was I removed the assignment of the DataContext from the code behind: Stylet takes care of instantiating and assigning the ViewModel. Can youssee whether that was the cause?
I'm not sure how it could have been, as that would have been overridden by Stylet straight away, but it's worth checking.

Antony,
I still get the error in my original project even after removing DataContext from the code behind
Charlie
Sent from C. Ihle's iPhone
704-439-6270

On Oct 22, 2020, at 6:29 PM, Antony Male<EMAIL_ADDRESS>wrote:

One thing I did change was I removed the assignment of the DataContext from the code behind: Stylet takes care of instantiating and assigning the ViewModel. Can youssee whether that was the cause?
I'm not sure how it could have been, as that would have been overridden by Stylet straight away, but it's worth checking.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

The other possibility is that the project I put together targets netcoreapp: does yours target framework?

Yes, the project is netcore 3.1. I’ve noticed that with my Core projects as I try different things, add/remove packages etc.. it’s almost like something gets corrupted. I’ll create a new project add in the existing items from the problem project and it will work. That’s what I just did with the project you hacked together and it’s been working fine.
Sent from C. Ihle's iPhone
704-439-6270

On Oct 23, 2020, at 1:32 PM, Antony Male<EMAIL_ADDRESS>wrote:

The other possibility is that the project I put together targets netcoreapp: does yours target framework?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Closing as I don't think there's anything else to do here. Please re-open if necessary. Thanks!


Parsing Decimal With Negative Exponent And Zero Scale Can Overflow

Describe the bug

This passes as expected
let v = parse_decimal::<Decimal128Type>("99999999999999999999999999999999999999", 38, 0).unwrap();
assert_eq!(v,<PHONE_NUMBER>9999999999999999999999999999);

But if we add an additional 9 followed by e-1 we get overflow
let v = parse_decimal::<Decimal128Type>("999999999999999999999999999999999999999e-1", 38, 0).unwrap();
assert_eq!(v,<PHONE_NUMBER>9999999999999999999999999999);

To Reproduce

Expected behavior

Additional context

@yjshen  would you be willing to look into this issue?

Yes, I'll look into this.

@yjshen any update on this?


Remove "maintain" & "triage" from permission opts.

I meant to remove this in an earlier commit, but it turns out I hadn't saved the file after making this change.

@digitalronin not sure if this just needs to be resolved by a close/reopen the PR?

@AntonyBishop this is just a README change, so the terraform plan is unnecessary, and I'm just going to force it through.
Just for reference, the way I do that is:

repo settings > branches > branch protection rules
edit the "main" rule and change "main" to "mainx"
reload the PR - merge is now available
after merging, reinstate "main" as the protected branch name


Draft: setup for no-admin needed by default

This includes several changes to allow NVM not to require admin privileges.

Move the NVM_SYMLINK into NVM_HOME
Switch to using NTFS junctions rather than symlinks
Adjust the installer to do USER or SYSTEM install exclusively, not mix the scenarios

I must have messed up rebasing my changes to latest version.
I thought I resolved the merge conflict in nvm.iss on my machine, but it still shows up here.
The two commits with double-icons seem like they should have been excluded by the rebase.
I'm going to try to straighten it out, but it is a little above my git level.


[TASK] test Python version compatibility

✅ Task
The package was develped in Python v 3.11.
We need to test in which other versions the test suite runs without errors.
📃 Checklist

[x] setup python version test matrix in the CI workflow
[x] test compatibility

python 3.10 lacks some important typing features, so the "support" was dropped.


NG6 - ngsw doesn't work offline

Bug Report or Feature Request (mark with an x)
- [x] bug report -> please search issues before submitting
- [ ] feature request

Command (mark with an x)
- [ ] new
- [x] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions
Win 10
Angular CLI: 6.2.2
Node: 8.11.2
npm: 5.6.0
OS: win32 x64
Angular: 6.1.7
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router, service-worker
Package                           Version
@angular-devkit/architect         0.8.2
@angular-devkit/build-angular     0.8.2
@angular-devkit/build-optimizer   0.8.2
@angular-devkit/build-webpack     0.8.2
@angular-devkit/core              0.8.2
@angular-devkit/schematics        0.8.2
@angular/cdk                      6.4.7
@angular/cli                      6.2.2
@angular/material                 6.4.7
@angular/pwa                      0.8.2
@ngtools/webpack                  6.2.2
@schematics/angular               0.8.2
@schematics/update                0.8.2
rxjs                              6.2.2
typescript                        2.9.2
webpack                           4.19.0
Repro steps
To reproduce this bug you can:

npm install -g @angular/cli@latest
ng new project
ng add @angular/material
ng add @angular/pwa
ng build --prod

I did some lazy load but I think it doesn't matter...
The log given by the failure
When I refresh the browser on offline mode, none of my files stay on cache. The service worker ngsw-worker.js get registered normally online andit seems that cache some of my *.js and *.css files, but not my main.js or index.html. And then, again, offline it caches nothing.
I would like to solve this by not creating my own sw.js, but I am new at angular and I think it is the only way for now.

This seems like a bug but we'll need to look at a reproduction to find and fix the problem. Can you setup a minimal repro please?
You can read here why this is needed. A good way to make a minimal repro is to create a new app via ng new repro-app and adding the minimum possible code to show the problem. Then you can push this repository to github and link it here.
This might be related to your directory structure so its really important to get an accurate repro to diagnose this.

Hi @alan-agius4, there's no problem. I setted up a github and start the code on a server, in case you want to see it running.
That's my repository: Repo
And that's where the code is running rigth now Link
Thanks for the answer =D

Anyone?
@alan-agius4 can you help me?

@alan-agius4  - did you manage to fix this? I have exactly the same issue.

I also have the same issue... any news on this? I disconnect from Internet, refresh and get a page load error and nothing works...

I have also same issue with offline mode  I am using angular 7 project in to pwa .in offline mode only works with /index.html


RS backend: Update all payments submission response to add calculated elements values

Description
Currently when a payment is submitted the response doesn't contains the calculated elements.
Tasks

[ ] Update RS backend to build the payment submission response with all calculated elements expected by TPP

Acceptance criteria

[ ] All payments submission response contains the calculated elements expected by tpp.

Hey team! Please add your planning poker estimate with ZenHub @andra-racovita @frlaura-jianu @mariantiris


[cfe/ffi] Incremental compiler and FFI transforms

The FfiTransformer and it's subclasses rely on internal state:
Map<Class, Set<Class>> compoundClassDependencies builds a dependency graph between classes. If a struct in a library that is updated nests a struct in a library that is not updated, this graph is incomplete (reproduction).
Map<Class, CompoundNativeTypeCfe> compoundCache contains the computed sizes of structs already processed for when processing structs that nest them. If a struct in a library that is updated nests a struct in a library that is not updated, this information is missing and we cannot compute the size of the struct in the updated library.
Map<Field, Procedure> replacedGetters is passed from the definitions transformer to the use site transformer. However, if we have an incremental compilation, and a definition is in a non-updated library, and the use is in an updated library, the use sites might not be replaced. (Or this one was fixed already in #39840, because an updated outline is stored?)
These are some examples of multiple data structures being used which have incomplete data on incremental compilation:
https://github.com/dart-lang/sdk/blob/79331c788c74bb6934959e72ab585b0596c042f5/pkg/vm/lib/transformations/ffi_definitions.dart#L108-L114
https://github.com/dart-lang/sdk/blob/79331c788c74bb6934959e72ab585b0596c042f5/pkg/vm/lib/transformations/ffi.dart#L775-L783
cc @jensjoha @stefantsov @johnniwinther
Two ideas which @stefantsov and I discussed earlier:

Store the information distributed in the AST, for example in annotations, so that it can be looked up again.
A facility to store some kind of meta data in the outline.

In the below mind you that my understanding of what the ffi transformation does is somewhat limited.
I personally think it would be helpful to (at least) think about the transformation as doing three separate things:

It gathers data. This might need the full component. Alternatively it could perhaps be calculated lazily. My guess would be that what it needs is only libraries that import ffi (which would quickly throw most libraries away) and only classes that extends Struct (which would quickly throw many classes away) and that thus looking at the entire component is not a big deal.
Transforms new compilation of ffi stuff (extending struct and whatnot). This should only need the new libraries. Old call-sites might theoretically need updating too, but given that fields now have 2 references (one for the getter and one for the setter), creating the new getter and setter correct should make this free and automatic without any patching.
Error reporting. My guess would be that this is doable with the information gathered in step 1 and/or when transforming in step 2.

As for the 3 maps mentioned in the first post, 1 and 2 should be filled in when gathering information (or done lazily, if possible) and 3 shouldn't be needed at all I think.
I'm not sure I understand why there should be a need to store data in the ast.

Plan with @jensjoha:

[ ] Update information gathering to gather from all libraries not only the ones being transformed.
[ ] Bail out on not recompiling dependent libraries if FFI structs are involved, same as with mixins (e.g. we're inlining things).
[ ] Remove getter/setter replacement (because those referenced should be updated automatically).
[ ] We need tests for the various use cases.

Test cases:

static final field dart.core::int* #sizeOf of an outer struct should be updated when a nested struct size is updated by adding a field
static final field dart.core::int* #sizeOf of an outer struct should be updated when a nested struct size is updated by a reordering of fields (@Int8(), @Int8(), @Int64() -> @Int8(), @Int64(), @Int8()).
The offsets in generated fields of outer struct should be updated if inner struct in front of it changes size: return dart.ffi::_loadDouble(this.{dart.ffi::_Compound::_typedDataBase}, (#C14).{dart.core::List::[]}(dart.ffi::_abi()));, #C14 should change in ffi_01.yaml.world.1.expect on incremental compilation.

A possible future thing to investigate is what happens if we move the size/position calculation to runtime. That way only actually changed libraries would have to be updated (and the special casing in the incremental compiler could be avoided).


Record User Data in Mongo Database

The database records gets saved with the password hashed with salt.
Eventually check if necessary additional information about the supplier


Update README

Get some content into the README now that we are master branch

Coverage remained the same at 94.556% when pulling a81f71e76aeee3f81319848764d0c4a8cb3723c4 on bartvde:update-readme into b2b8046bd5a725616c6c7e4d772eda50164ca0be on boundlessgeo:master.


fix: Move check for serviceUrl to createRequest

This PR moves the check for a non-empty serviceUrl to the createRequest method, so that sendRequest can be used from the authenticators which just pass url.
In addition, createRequest will take serviceUrl from the service baseOptions if none was provided in  parameters.defaultOptions.
Tests were updated accordingly.

On further consideration, I decided to drop the logic that grabs the serviceUrl from baseOptions if one is not specified. That was a half solution that isn't needed here and should be addressed fully in a separate PR (in the future).


v0.18.1 weird behavior of Axes().coords_to_point / Axes().c2p

Description of bug / unexpected behavior
According to the documentation, the argument of .c2p() may be individual values for x, y (and z), as well as lists, lists of lists and numpy.arrays. However, when using just lists [x,y,z] or 1D np.arrays the returned coordinates are wrong.
Expected behavior

How to reproduce the issue
Code for reproducing the problem

class testc2p(Scene):
    def construct(self):
        ax = Axes()
        print("ax.c2p(1,2) = ",ax.c2p(1,2))
        print("ax.c2p(1,2,1) = ",ax.c2p(1,2,1))
        print("ax.c2p(np.array([1,2])) = ",ax.c2p(np.array([1,2])))
        print("ax.c2p(np.array([1,2,1])) = ",ax.c2p(np.array([1,2,1])))
        print("ax.c2p([1,2,1]) = ",ax.c2p([1,2,1]))
        print("ax.c2p([1,2]) = ",ax.c2p([1,2]))
        print("ax.c2p([[1,2],[2,3]]) = ",ax.c2p([[1,2],[2,3]]))

returns
Manim Community v0.18.1

ax.c2p(1,2)   =  [0.85714286 1.5        0.        ]
ax.c2p(1,2,1) =  [0.85714286 1.5        0.        ]
ax.c2p(np.array([1,2])) =  [[0.85714286 1.71428571]
                            [0.         0.        ]
                            [0.         0.        ]]
ax.c2p(np.array([1,2,1])) =  [[0.85714286 1.71428571 0.85714286]
                              [0.         0.         0.        ]
                              [0.         0.         0.        ]]
ax.c2p([1,2,1]) =  [[0.85714286 1.71428571 0.85714286]
                    [0.         0.         0.        ]
                    [0.         0.         0.        ]]
ax.c2p([1,2]) =  [[0.85714286 1.71428571]
                  [0.         0.        ]
                  [0.         0.        ]]
ax.c2p([[1,2],[2,3]]) =  [[0.85714286 1.5        0.        ]
                          [1.71428571 2.25       0.        ]]

ax.c2p(1,2)  and ax.c2p(1,2,1)  return reasonable values
ax.c2p(np.array([1,2])) appears to be treated as two "points" with x=1 and x=2 respectively, returning [[x1, x2],[y1, y2],[z1, z2]] rather than [[x1 y1 z1],[x2, y2, z2]], similar for all other 1D-lists
ax.c2p([[1,2],[2,3]]) appears to correctly return two points

System specifications
System Details

OS : Windows 10
RAM: enough
Python version (python/py/python3 --version): 3.11.6

Let me preface this by saying that I'm (personally) not a big fan of this behavior.
However, the reason for this is when passing a list (ax.c2p([1,2])) it's treating it as you passed a list of the structure [x1, x2], [y1, y2], [z1, z2] - see the implementation if you're interested.
I would like to make this behavior less confusing, so I'm open to ideas!

I would say the expected behavior would be: list of coordinates - in list of coordinates out
But I can also imagine that it is not easy to distinguish the different formats. But I think the following behavior would be more logical
axes.c2p(x,y,z) -> np.array([X, Y, Z])
axes.c2p([[x,y,z]]) -> [np.array([X, Y, Z])]
axes.c2p([[x1,y1,z1],[x2,y2,z2]]) -> [np.array([X1, Y1, Z1]),np.array([X2, Y2, Z2])]
Personally I cannot see any use case where I would expect to get individual lists of the Xs, Ys and Zs back...


added minicpm cpu examples

added minicpm-v-2 cpu example. 2_5 is yet to commit.
@rnwang04

Please also add link to here: https://github.com/intel-analytics/ipex-llm?tab=readme-ov-file#verified-models


integration-cli: check that docker port command output is not empty

Or else we can violate array range boundaries in:
out = strings.Split(out, ":")[1]
and get runtime error.
We got this runtime error when run TestRunPortFromDockerRangeInUse
Somehow docker goes silently if it cannot publish port because
of no bridge.
Signed-off-by: Pavel Tikhomirov<EMAIL_ADDRESS>

LGTM

LGTM


Adds the "drop" database utility

Closes #44

I was facing issues trying to reset state in my tests, and I couldn't find a way to reset the db, and this drop saved my butt. But I had to venture deep into the woods to find this one. I really feel that this utility should be better documented in the readme.


Benchmark Axom Array vs C++ array and std::vector

We should see how axom::Array performs relative to std::vector and C++ arrays, and optimize where we can.

Difference in emplace_back() performance observed in discussion here: https://github.com/LLNL/axom/pull/1419#discussion_r1769320932


Add Dart support

Looks great! Would you mind adding a test file in sample_files/ too? Once that's sorted, and CI is happy, I'm happy to merge this :)

@Wilfred Done.
I'm not sure if I understand this repo's organization. Am I right that in vendor/ you don't add submodules, but copy contents of other repos?
There seems to be some issues in the .git of the repo. For example, if I run this in master branch:
 $ git submodule update --init
fatal: No url found for submodule path 'vendor/tree-sitter-bash/examples/bash-it' in .gitmodules

In any case, I believe this PR should be working. I've already started using it.

It's using git subtree, not git submodule. There's example commands here: https://difftastic.wilfred.me.uk/upstream_parsers.html#adding-a-new-parser
I wouldn't expect git submodule commands to do anything useful in difftastic. I think the error there is because the bash grammar happens to contain a submodule: https://github.com/tree-sitter/tree-sitter-bash/tree/master/examples

Is there anything you want me to do here @Wilfred ?

Merged (with a few tiny tweaks), thanks :)

Upstream highlighting bug: https://github.com/UserNobody14/tree-sitter-dart/issues/24


Update To find Prime number using python

Dear CodeWithBishal you had done a wrong pull request
Please connect with me on my telegram @Royaleagle11
and on my youtube channel - https://youtu.be/5qnQjgdpFPg
Like , share , subscribe - https://youtu.be/5qnQjgdpFPg


Use externally passed postgres tid to identify neighbors

Usearch assumes nodes are stored sequentially in an in memory array.
In Lantern, we get rid of the in memory storage and store usearch nodes in a postgres index.
Postgres index elements are identified by 48 bit tuple ids (BlockNumber + OffsetNumber)
We used to maintain a mapping between Usearch sequential ids and postgres tuple ids (tids).
This PR removes the need of such mapping.
This PR allows us to pass inserted tuple tid into Usearch so usearch can use that in neighbor list in place of the sequential id.

superseded by #30


Replace NotImplementedException with unreachable

Moreover, convert src/code/pdf_manager.js to ES6 classes/syntax while we're here for more compact, readable and modern code.
Fixes #9836.
I recommend to review this per commit and use the ?w=1 flag especially for the second commit.

/botio-linux preview

/botio test

/botio-linux preview

/botio test


Special-case for top-level triple-quoted string literals

For top-level triple-quoted string literals, the surrounding parenthesis
is an unnecessary amount of verbosity and indentation.
These parenthesis are always needed for any situation where the triple-quoted
string literal does not appear at the top-level to ensure that it nests well
within some other composite structure.
Thus, we detect triple-quoted string literals at the top-level
and format them verbatim. The textList.formatExpandedTo method
assumes that it is usually called within the context of a composite structure,
so we perform some string mangling to correct the leading and trailing bytes.
Fixes #301

I'm not particularly happy with how this is implemented, but it works.
Ideally, the code change would occur in report_slices.go where we do the triple-quoted string literal stuff.
However, the code there fundamentally cannot implement this special-case since
it does not know whether this is a top-level value or not.
The defaultReporter.String method is the place where we know we definitely have a top-level value on hand.
However, implementing it there means that we have triple-quoted related logic that is far from where it is generated.
Also, I'm not fond of the byte-mangling (i.e., with bytes.TrimXXX) that I needed to do.

I'm further questioning whether this is a good idea. It is common for someone to do something like:
t.Errorf("mismatch: %s", cmp.Diff(x, y))

where the diff does not occur on a new line.
Previously, this would print as:
mismatch:   (
  	"""
  	... // 135 identical lines
<EMAIL_ADDRESS><EMAIL_ADDRESS>+<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>  	... // 386 identical lines
  	"""
  )

where the extra ( and ) would protect the diff from formatting in a strange way.
However, now it would print as:
mismatch:   """
  ... // 135 identical lines
<EMAIL_ADDRESS><EMAIL_ADDRESS>+<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>  ... // 386 identical lines
  """

where the triple-quotes a not vertically aligned.

I took a shower and decided this was a bad idea :)


Read an account from the service

As a user of the application
I need to read an account from the service
So that I can access account information
Details and Assumptions

The service contains account data that needs to be retrieved.

Acceptance Criteria
Given I have a valid request for an account
When I make a request to read an account
Then I receive the account information