TypeError: 'ocrd_froc.processor' is not a package

make checkfor ocrd_all fails with the error message TypeError: 'ocrd_froc.processor' is not a package since at least ocrd_all v2024-02-01.
I get the same error when I just run ocrd-froc-recognize without any argument:
$ ocrd-froc-recognize
Traceback (most recent call last):
  File "/home/stweil/src/github/OCR-D/ocrd_all_test/venv/bin/ocrd-froc-recognize", line 5, in <module>
    from ocrd_froc.cli.ocrd_cli import cli
  File "/home/stweil/src/github/OCR-D/ocrd_all_test/venv/lib/python3.11/site-packages/ocrd_froc/cli/ocrd_cli.py", line 7, in <module>
    from ..processor import FROCProcessor
  File "/home/stweil/src/github/OCR-D/ocrd_all_test/venv/lib/python3.11/site-packages/ocrd_froc/processor.py", line 24, in <module>
    OCRD_TOOL = loads(resource_string(__name__, 'ocrd-tool.json'))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/stweil/src/github/OCR-D/ocrd_all_test/venv/lib/python3.11/site-packages/ocrd_utils/introspect.py", line 58, in resource_string
    with open(resource_filename(pkg, fname), 'r', encoding='utf-8') as f:
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/stweil/src/github/OCR-D/ocrd_all_test/venv/lib/python3.11/site-packages/ocrd_utils/introspect.py", line 54, in resource_filename
    ref = importlib_resources.files(pkg) / fname
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/resources/_common.py", line 22, in files
    return from_package(get_package(package))
                        ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/resources/_common.py", line 55, in get_package
    raise TypeError(f'{package!r} is not a package')
TypeError: 'ocrd_froc.processor' is not a package

The TypeError was introduced by commit 644bf7050d64b0847ce8bef0cda88004c37ee692:
644bf7050d64b0847ce8bef0cda88004c37ee692 is the first bad commit
commit 644bf7050d64b0847ce8bef0cda88004c37ee692
Author: Konstantin Baierer<EMAIL_ADDRESS>Date:   Wed Jan 31 11:54:03 2024 +0100

    method -> ocr_method, make OCR optional ("none")

 Makefile                 |  5 +++++
 README.md                | 38 ++++++++++++++++++++------------------
 ocrd_froc/froc.py        | 14 ++++++++------
 ocrd_froc/network.py     |  6 ++----
 ocrd_froc/ocrd-tool.json | 29 ++++++++++++++++++++++++-----
 ocrd_froc/processor.py   | 27 ++++++++++++++-------------
 6 files changed, 73 insertions(+), 46 deletions(-)
 create mode 100644 Makefile

@kba, I narrowed down the TypeError further: if I revert the changes in ocrd_froc/processor.py, it no longer occurs.

I don't understand why I cannot reproduce the problem, because there is indeed the top-level __init__.py missing. Nonetheless I'll prepare a PR which should fix the issue.

That PR does not fix the issue. I added a CI test which allows to reproduce it.

@kba, you could not reproduce the error because it does not occur with Python 3.7 and Python 3.8. It requires Python 3.9 or later, but then occurs on macOS and Ubuntu. See https://github.com/stweil/ocrd_froc/actions/runs/8678819215/job/23796379466 for test results. Those test results also show that running ocrd-froc-recognize terminates with an error (1) even with Python 3.7 and Python 3.8. Running ocrd returns success (0).


In main.py...

In your annotation in main.py, you write "수정필요" from line 24 to 47.
I want to know the problem that codes have.

The code has no problem, we wrote the annotation because the code indicates the specific values of RocksDB parameters.
We hired a RocksDB expert to shrink the range of each parameter to a certain degree to make sure none of those parameters exceed their reasonable range so that no error occurs when generating RocksDB data.
Besides, if the other people want to use our model, he should change those parameters to his own database-oriented parameters rather than the parameters of RocksDB

Thank you


Document VPN-related network connectivity issues

VPNs may overwrite the DNS configuration used by CodeReady Containers. All traffic may be routed through the VPN (if set to "route all"). This will cause the deployment to fail.
Workaround: temporarily turn off the VPN.
Related Minishift docs: https://github.com/minishift/minishift/blob/master/docs/source/troubleshooting/troubleshooting-driver-plugins.adoc#project-running-with-hyper-v-fails-when-connected-to-openvpn
Note that this issue can occur on any operating system. It is not specific to Windows or Hyper-V.

If your interested, I use vpnkit as a workaround for running minishift via Hyper-V on Windows ie. while on the VPN I use:
oc login https://localhost:8443 -u developer -p developer
instead of
oc login https://<IP_ADDRESS>:8443 -u developer -p developer
Start Minishift while the VPN is disabled
I can quite happily use minishift on/off my corporate network using the "DockerNAT" vSwitch provided by "Docker for Windows":
minishift start
    --vm-driver hyperv
    --hyperv-virtual-switch "DockerNAT"
    --network-ipaddress  <IP_ADDRESS>
    --network-gateway    <IP_ADDRESS>          (IP Address of the DockerNAT vSwitch)
    --network-netmask    <IP_ADDRESS>
    --network-nameserver "<IP_ADDRESS>,X.X.X.X"  (where X.X.X.X is my corporate nameserver)

And I can login as normal:
oc login -u developer -p developer
Problem when enabling the VPN
Once the VPN is started, the lowest route metric for the minishift VM (<IP_ADDRESS>) is no longer the "DockerNAT" vSwitch causing the minishift VM to be unreachable.
For example, "route print" while VPN is OFF:
Network Destination        Netmask          Gateway       Interface  Metric
        <IP_ADDRESS>    <IP_ADDRESS>         On-link         <IP_ADDRESS>    271
        <IP_ADDRESS>  <IP_ADDRESS>         On-link         <IP_ADDRESS>    271
      <IP_ADDRESS>  <IP_ADDRESS>         On-link         <IP_ADDRESS>    271

while VPN is ON:
Network Destination        Netmask          Gateway       Interface  Metric
        <IP_ADDRESS>    <IP_ADDRESS>         On-link         <IP_ADDRESS>    271
        <IP_ADDRESS>    <IP_ADDRESS>         X.X.X.X           Y.Y.Y.Y      2 <-- added by VPN
        <IP_ADDRESS>  <IP_ADDRESS>         On-link         <IP_ADDRESS>    271
      <IP_ADDRESS>  <IP_ADDRESS>         On-link         <IP_ADDRESS>    271

Workaround after enabling the VPN
My workaround is to run both minishift and "Docker for Windows" VM's.
Log into the "Docker for Windows" VM:
docker run --privileged -it -v /var/run/docker.sock:/var/run/docker.sock jongallant/ubuntu-docker-client
docker run --net=host --ipc=host --uts=host --pid=host -it --security-opt=seccomp=unconfined --privileged --rm -v /:/host alpine /bin/sh
chroot /host

and use vpnkit to port forward 8443 to the minishift VM (<IP_ADDRESS>):
/usr/bin/vpnkit-expose-port -proto tcp \
    -host-ip <IP_ADDRESS> -host-port 8443 \
    -container-ip <IP_ADDRESS> -container-port 8443 &

and exit the VM (3 layers deep)
exit
exit
exit

This enables me to use minishift without sending network requests over the VPN ie.
oc login https://localhost:8443 -u developer -p developer

@gbraad, I'd like to have this documented in our troubleshooting section soon. A couple of questions:
Is there a specific error message that we expect to see from crc when these VPN issues occur?
Likewise, when is the user most likely to encounter issues related to the VPN, after crc start?

we just get errors about the VM being unreachable. they start early in the process of start, when trying to communicate using ssh.

@moffatn ideally it would have been great to get vpnkit from inside the Minishift VM, but this never worked out well (some issues with creating the actual network device). It is surely on our todo list.

I'm on Fedora 30 linux, accessing Red Hat's internal VPN using openvpn.
Things started working for me :tada: after I appended an unconstrained DNS server to /etc/NetworkManager/dnsmasq.d/crc.conf:
 server=/apps-crc.testing/<IP_ADDRESS>
 server=/crc.testing/<IP_ADDRESS>
+server=<IP_ADDRESS>

I don't much about VM nor container networking nor dnsmasq, no idea if this fix makes sense for others...
It was a hunch, I saw NetworkManager is running it as /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts --bind-interfaces --pid-file=/var/run/NetworkManager/dnsmasq.pid --listen-address=<IP_ADDRESS> --cache-size=400 --clear-on-reload --conf-file=/dev/null --proxy-dnssec --enable-dbus=org.freedesktop.NetworkManager.dnsmasq --conf-dir=/etc/NetworkManager/dnsmasq.d,
figured out --no-resolv means it will only use hosts from dnsmasq.d/* files (and that crc config is the only file I have there), suggesting that it won't try any external DNS server unless I add one...
Tested with crc started first, then several rounds of editing config & restarting NetworkManager, then connecting to VPN; don't know if it'll work with VPN before crc.

[x] I can access external sites from my laptop (not sure if flowing through VPN or not)
[x] I can access internal sites from my laptop
[x] I can oc get pod etc from my laptop
[x] containers running in crc can access external sites
[x] containers running in crc can access internal sites

Well that leads to crc start exiting with
FATA Config file contains changes: /etc/NetworkManager/dnsmasq.d/crc.conf

So have to make a copy with my changes, restore original (or delete and crc setup), start the cluster, copy back my version, sudo systemctl NetworkManager restart, then get on VPN.
Are you open to making preflight checks for config files changes be warnings rather than fatal?  Or some kind of "I know what I'm doing" flag?  (I really don't :stuck_out_tongue_winking_eye:, but playing with configs is my only way to proceed...)

you can change the preflights to be non-fatal or warn instead by setting
the appropriate config option.
please check using crc config set --help IIRC
On Tue, Nov 5, 2019 at 9:54 PM Beni Cherniavsky-Paskin <
<EMAIL_ADDRESS>wrote:

Well that leads to crc start exiting with
FATA Config file contains changes: /etc/NetworkManager/dnsmasq.d/crc.conf
So have to make a copy with my changes, restore original (or delete and crc
setup), start the cluster, copy back my version, sudo systemctl
NetworkManager restart, then get on VPN.
Are you open to making preflight checks for config files changes be
warnings rather than fatal? Or some kind of "I know what I'm doing" flag?
(I really don't 😜, but playing with configs is my only way to proceed...)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/code-ready/crc/issues/384?email_source=notifications&email_token=AAAAOZUYJPO6BIQVWBRNPLDQSF3KJA5CNFSM4IJXUOFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDC2XJA#issuecomment-549825444,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAAOZV7VHKWTOKGQ2RXG6DQSF3KJANCNFSM4IJXUOFA
.

--
Gerard Braad | http://gbraad.nl
[ Doing Open Source Matters ]

Added to release notes


Controlnet Documentation?

Thanks for the great work!
Excited it was integrated.
How to use it?

Guess I need to make the documentation more obvious. You click on each header to see the command:

@brycedrennan Thanks!


[armcompute] Getting a specific response page when listing virtual machines

Feature Request / Question
Having a nextLink from the previous call, I'd like to get only the page it refers to.
The runtime.Pager allows to paginate through all the entries starting from the first page, but it doesn't seem to provide a way to set the page (nextLink) to start paginating from. There doesn't seem to be a separate method for getting a particular page, either.
Is there some way to achieve that with the SDK?

@jhendrixMSFT Do we have plan to add rehydration for pager?


[Snyk] Upgrade tss-react from 4.9.3 to 4.9.4

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to upgrade tss-react from 4.9.3 to 4.9.4.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 1 version ahead of your current version.
The recommended version was released 22 days ago, on 2024-02-02.

Release notes

Package name: tss-react

4.9.4 - 2024-02-02
Full Changelog: v4.9.3...v4.9.4

4.9.3 - 2023-10-18
What's Changed
Other Changes

update use of Component_.name to account for dollar signs in the name by @ rlansky-percipient in #200

New Contributors

@ rlansky-percipient made their first contribution in #200

Full Changelog: v4.9.2...v4.9.3

    from tss-react GitHub release notes

Commit messages

Package name: tss-react

02c1741 Bump version
129a416 Ensure the generated withStyles class identifier are valid
de4fb00 Update dev dep: tsafe
3dcd6a7 Update react-dsfr

Compare

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

duplicate


Internal documents - extended

Extend the MVP to have documents which include sensitive and non-sensitive information
More research needed.
The LLM can decide what is sensitive (?) or we can instruct the LLM what should be considered as sensitive (?)

Do you think we could close this now @heatherlogan-scottlogic  ?

Yeah think so! didn't realise it was still open


Folders not found

Keybase GUI Version: 1.0.40-20180205105656+493a528
I click on "Open Folders" and nothing opens. In Windows Explorer I see the 'Keybase' disk but I get a "Location Not found" error.

Any ideas why?

Can you do a keybase log send? Have you rebooted recently (after the last update)?

Hi,
I restarted my laptop and it works fine.
Thanks.


D2 vscode extension http

VS Code extension using d2 in watch mode

I think we should abandon this branch, my other implementation is more robust and consistent, plus it doesn't require a change in the exe, d2.


Optimization

Now a derivative free bounded univariate optimization function Optim.optimize (Brent()) is used to compute the max in the Bellman operator. This part should be the main bottleneck. It will be more efficient if we utilize information on 1st and 2nd derivatives of f and g.
Options: in ContinuousDP,

1st and 2nd derivatives are mandatory;
1st and 2nd derivatives are optional; in this case, we have to switch the optimization solver depending on whether or not ContinuousDP has derivatives.

Given that we require users to pass in functions for f and g, we should be able to use automatic differentiation exactly and efficiently calculate the derivatives of f and g.
I think Optim has this functionality built in

Thanks, I didn't think about automatic differentiation. (And I have no experience with that.)


Update to use Android sdk v10.2.6

We need to update our base Android SDK version to 10.2.6 and subsequent updates to the 10.2.6 release.

Latest version is 10.2.6-2

verified fixed


Update stripe-api.yaml and re-generate src

Closes: #11
Had to manually add StripeAPI.Types.OrderReturn re-export to StripeAPI.Types for some reason.
This change is breaking. In our case some strings were replaced with enums, and some types were wrapped in Nullable.
On that note it's a bit weird that there are various Maybe (Nullable _) types lying around, which seems redundant and is mildly annoying.
Can update cabal version as well if desired.

Hey @tysonzero ,

Had to manually add StripeAPI.Types.OrderReturn re-export to StripeAPI.Types for some reason.

OrderReturn is no longer present in the OpenAPI spec. I had to adjust src/StripeAPI/Types/NotificationEventData/Extra.hs to account for this (and it was missing the new event types anyway).

This change is breaking. In our case some strings were replaced with enums, and some types were wrapped in Nullable.

I agree, I updated the version to <IP_ADDRESS> to reflect this.

On that note it's a bit weird that there are various Maybe (Nullable _) types lying around, which seems redundant and is mildly annoying.

I agree that it is redundant from a usage perspective but it is actually how it is specified in the OpenAPI spec of Stripe (there are optional fields which are nullable). Nullable-support is a new(ish) feature in the generator and this reveals the redundancy in the spec. If you have a good idea how to solve this without changing the semantics of nullable/optional in OpenAPI, feel free to contribute!
I created this commit with the necessary changes since some parts of this were missing in this PR (e.g. removing of the obsolete files, formatting with Ormolu, example adjustment): https://github.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/commit/ba4401f083ff054f8da68c741f762407919de42f
It should supersede this PR so I am closing it. Please notify me if I missed something.


Characters with accents are not properly converted/formated

I can't reopen the issue, but I'm having the same problem as in #67 , hence the same title.
The files to vulcanize are saved as UTF-8. Just to add an example, something like 'Economía' is outputted as 'Econom├¡a'
Since the old issue was closed the code was changed considerably, I gave it a quick look but couldn't exactly pinpoint where the problem is.

Vulcanize forces output files to use UTF-8 encoding since 1.0. Can you check what version you are using with vulcanize --version ?

Sorry, I forgot I had opened this issue. I was working on windows at the time and using Powershell, which by default outputs UTF-16. It took me longer than I'd like to admit to realize this was the problem, but simply switching to another CLI solved everything. Thanks for taking a look nonetheless.

Thanks for the note about Powershell. That is very disturbing to think that the shell may muck with output files :-1:


Introduction documentation for The Space

As title.

Notes:

issue UBI periodically, according to participants? UBI should be given to participants, instead of pixel.
how to simplify mental model in white paper? Separate technical explanation in white paper?
in bid, move price check after collect tax
settleTax  should benefit sender

we use a 2nd contract to record sender of settleTax

make totalSupply updatable?
treasury & admin roles: limit to 1 address, by forking Ownable.sol
add address as an argument for treasury withdraw


Improve model explainability for created xgboost model

Automatically prepare datasets from user /item metadata and  test interactions and relationships with synthetic data to provide better model explainabilty

Let's first look at how XGBoost models are usually represented and check if scala models for the same have some quick and easy representation techniques.


Fix overlay view not rendering correctly

Hi!
I recently upgraded to the latest version of react-google-maps and my OverlayViews stopped working. They would mysteriously cluster at the origin of the map:

After adding the position property to the whitelist of component properties (although admittedly in the post-babel distribution code in my node_modules folder) they spring into life again:

This was made a little trickier to debug because the _getPixelPosition method doesn't complain if it cannot get a projection or a position for the OverlayView. It would probably be worth taking this change one step further and adding a warning if the if (projection && position) { condition does not match.
Cheers,
~ Si

Thanks a bunch! This fixes the issue from
https://github.com/tomchentw/react-google-maps/commit/2c0dc02655ae999ff202229316d543caa1ae6afc#commitcomment-12587801

You are very welcome!
 You can find more details here:
https://github.com/ajoslin/conventional-changelog

Cheers :dancers:


#25 add credit card ui generation

Coverage remained the same at 100.0% when pulling c846418a538ab27b64f72945000cab5b3200b93e on 25-prepare-ccard into 1fbf107385870c8c494a1bc7c93d050492e2faf2 on 25-ccard-authorize.

Coverage remained the same at 100.0% when pulling 66aed6655b5657d9fe2cbb3b3e65e856c0a03780 on 25-prepare-ccard into 1fbf107385870c8c494a1bc7c93d050492e2faf2 on 25-ccard-authorize.


Refactor AOT Test Utils parameters into object

compile_and_run was getting quite complicated to understand as well as being mostly duplicated by comile_and_run_multiple_models.
This patch pulls out some common parameters into a data class AOTTestNetwork which makes it clearer what each parameter is doing and provides documentation.

This is merged now. Thanks @areusch and @Mousius!


Bug: resolve IPs for load balancer CNAME

Using a Gateway published through an AWS load balancer ends up with the controller not being able to create the DNSRecords because it tries to create an A record that points to the load balancer cname, which fails.
Example of a failing DNSRecord:
{
    "dnsRecord": {
        "kind": "DNSRecord",
        "apiVersion": "kuadrant.io/v1alpha1",
        "metadata": {
            "name": "roi-gw.hcg-stage.rhcloud.com",
            "namespace": "mctc-tenant-unstable",
            "uid": "2ee7b3a3-237d-425f-9653-0774b1d13643",
            "resourceVersion": "550053855",
            "generation": 2,
            "creationTimestamp": "2023-04-06T15:20:50Z",
            "labels": {
                "kuadrant.io/record-id": "roi-gw"
            },
            "ownerReferences": [
                {
                    "apiVersion": "kuadrant.io/v1alpha1",
                    "kind": "ManagedZone",
                    "name": "rhcloud-com-managedzone",
                    "uid": "506a28a5-32f5-40e6-a34c-3f89f702102f",
                    "controller": true,
                    "blockOwnerDeletion": true
                }
            ],
            "finalizers": [
                "kuadrant.io/dns-record"
            ],
            "managedFields": [...]
        },
        "spec": {
            "managedZone": {
                "name": "rhcloud-com-managedzone"
            },
            "endpoints": [
                {
                    "dnsName": "roi-gw.hcg-stage.rhcloud.com",
                    "targets": [
                        "a3b561dceb3db46068c07a5adb935c7a-851127283.eu-west-1.elb.amazonaws.com"
                    ],
                    "recordType": "A",
                    "setIdentifier": "a3b561dceb3db46068c07a5adb935c7a-851127283.eu-west-1.elb.amazonaws.com",
                    "recordTTL": 60,
                    "providerSpecific": [
                        {
                            "name": "aws/weight",
                            "value": "120"
                        }
                    ]
                }
            ]
        },
        "status": {
            "conditions": [
                {
                    "type": "Ready",
                    "status": "False",
                    "observedGeneration": 2,
                    "lastTransitionTime": "2023-04-06T15:20:50Z",
                    "reason": "ProviderError",
                    "message": "The DNS provider failed to ensure the record: failed to update record in route53 hosted zone /hostedzone/Z046424626M05TZHD354K: couldn't update DNS record roi-gw.hcg-stage.rhcloud.com in zone /hostedzone/Z046424626M05TZHD354K: InvalidChangeBatch: [Invalid Resource Record: 'FATAL problem: ARRDATAIllegalIPv4Address (Value is not a valid IPv4 address) encountered with 'a3b561dceb3db46068c07a5adb935c7a-851127283.eu-west-1.elb.amazonaws.com'']\n\tstatus code: 400, request id: 7c32ffee-3c36-4ddf-bc28-eefcd9b7e507"
                }
            ]
        }
    }
}

The controller needs to resolve the IPs of the load balancer's cname and create the A record with that. After discussing it, it seems that directly creating a cname is not possible as it would make it impossible to use weighted dns records.
The IP resolution of the load balancer cname needs to happen periodically to update the records if the load balancer's IP set changes. There should already be code in the kcp-glbc repo that did this that might need to be ported.

wip #161

TODO: check if there is an issue in istio to track this, create one otherwise


Issue 490/defining units bug

Code from session with Rob, only change is I had to remove the comprehension approach to satisfy PyRight.
Also includes a change to use columntemplate over uri_safe_identifier for comparisson. This was another bug (obscured by the first bug), tests were only previously passing as we were using the uri template "{+unit}" which meant that coincidentally the unique_expanded_uris derived from the template + values (made uri_safe) matched the unit.uri_safe_identifier's for NewQbUnit's which we were using in error.
I don't think it warrants new tests now the behaviour is corrected, but happy to take a steer, found this very opaque.

Could team please remove my email please as I am still bombarded with lots of emails thank you
Sebastian
Sent from my iPhone

On 26 May 2022, at 13:05, Michael Adams @.***> wrote:

Code from session with Rob, only change is I had to remove the comprehension approach to satisfy PyRight.
Also includes a change to use columntemplate over uri_safe_identifier for comparisson. This was another bug (obscured by the first bug), tests were only previously passing as we were using the uri template "{+unit}" which meant that coincidentally the unique_expanded_uris derived from the template + values (made uri_safe) matched the unit.uri_safe_identifier's for NewQbUnit's which we were using in error.
I don't think it warrants new tests now the existing tests are working, but happy to take a steer, found this very opaque.
You can view, comment on, or merge this pull request online at:
https://github.com/GSS-Cogs/csvcubed/pull/500
Commit Summary
a10586b validate against NewQbUnit identifiers, not labels
7ba25b5 black
File Changes  (1 file)
M csvcubed/csvcubed/models/cube/qb/components/unitscolumn.py (26)
Patch Links:
https://github.com/GSS-Cogs/csvcubed/pull/500.patch
https://github.com/GSS-Cogs/csvcubed/pull/500.diff
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.

Hey Seb, you were removed ages ago.
I believe in this instance you're watching this repository. I would suggest you unwatch and/or update your notifications. I'm pretty sure this is your github settings more than anything I/we have control over.


experimental(patterns): Create cupcake status overview

Create an effective way to communicate the status of patterns in progress.

The experimental homepage was rewritten to provide a clear picture of experimental resources. The page now details what experimental status is and what resources are coming soon, in progress, or under review.
Link: https://www.carbondesignsystem.com/experimental/overview


[front] Add backward compatibility on the agent_configuration endpoint

Description

Fix issues identical to https://app.datadoghq.eu/logs?query=service%3Afront status%3Aerror&agg_m=count&agg_[…]z=stream&from_ts=1729771653256&to_ts=1729772553256&live=true

Risk
Deploy Plan

Deploy front

@Fraggle I seem to remember you added a commithash trick in that sort of cases; could we use that here?

@philipperolet it was @flvndvd (who else? :p)
Surprisingly, in the examples we found with @aubin-tchoi , there was no commit hash in the url.

@Fraggle I seem to remember you added a commithash trick in that sort of cases; could we use that here?

@philipperolet it was @flvndvd (who else? :p)
Surprisingly, in the examples we found with @aubin-tchoi , there was no commit hash in the url.

I see 😄
Maybe there's a withCommitHash decorator somewhere? Will have a look when possible


[HUDI-5627] Improve the usability of Hudi CLI bundle

Change Logs
This PR improves the usability of Hudi CLI bundle by changing hudi-cli-with-bundle.sh:

Adds the ability to specify existing hudi-cli-bundle and hudi-spark-bundle jars downloaded by user, through environmental variables CLI_BUNDLE_JAR and SPARK_BUNDLE_JAR.  Currently it assumes that these jars are built inside Hudi repo and there is no way to specify the jars from another path.
Automatically downloads the auxiliary jars to auxlib/ for Hudi CLI.  Right now, Hudi CLI bundle still requires additional org.glassfish:jakarta.el and jakarta.el:jakarta.el-api jars in the Java classpath to start the Hudi CLI shell.  Auto-downloads make it easier for the users.

Impact
Makes hudi-cli-with-bundle.sh easier to start Hudi CLI shell.
Risk level
low
Documentation Update
N/A
Contributor's checklist

[ ] Read through contributor's guide
[ ] Change Logs and Impact were stated clearly
[ ] Adequate tests were added if applicable
[ ] CI passed

LGTM


[3772] trainee id validation allows duplicates if trainee inactive

Context
If a trainee is inactive (withdrawn or awarded in a previous cycle) we should be able to create a duplicate of it using the same trainee_id.

 Trainee ID validation - allow same ID if trainee isn't active


Failed to access database

After adding my remote server to the existdb.json file, I'm getting the error: Error while serializing xml: java.util.EmptyStackException and no collections are showing in the tree. I can add collections locally, but they don't save to the server itself.

I'm having the same issue. Anyone had any luck so far?

same problem here…

What version of eXist are you connecting to?

I'm using:
eXist Version: 2.2
eXist Build: 20170310
Is it not compatible ?
Regards,
On 7 April 2017 at 08:42, Wolfgang Meier<EMAIL_ADDRESS>wrote:

What version of eXist are you connecting to?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/wolfgangmm/atom-existdb/issues/9#issuecomment-292465570,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABx-qart8zxIGxmX0-EJsXggBTL2ggvZks5rtejqgaJpZM4JltF3
.

--
Jesús Alberto Rodríguez Pérez
CREATe Data Specialist
CREATe, School of Law
10 The Square
University of Glasgow
G12 8QQ

same here

same problem in v2.2 but work fine in v3

I always assumed this was an eXist 3.x-only project, but I don't see anything in the docs or in the companion eXist app's package that declares a 3.x dependency. Definitely works well with the current release of eXist, 3.1.1.

Ok thanks for the time, I'll update to 3.x and see how it goes. Maybe it
would be a good idea to make it more evident that it will only work on
version 3.x+
Regards,
On 10 April 2017 at 13:07, Joe Wicentowski<EMAIL_ADDRESS>wrote:

I always assumed this was an eXist 3.x-only project, but I don't see
anything in the docs or in the companion eXist app's package that declares
a 3.x dependency. Definitely works well with the current release of eXist,
3.1.1.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/wolfgangmm/atom-existdb/issues/9#issuecomment-292930338,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABx-qSVgMsZXkxwCvAWTOUcDMCRT0dpaks5ruht1gaJpZM4JltF3
.

--
Jesús Alberto Rodríguez Pérez
CREATe Data Specialist
CREATe, School of Law
10 The Square
University of Glasgow
G12 8QQ

exist 2.2. is ancient history and not supported. Please open a new issue if you have problems with connecting to more current versions of exist.


hxCodec issue with Psych Engine 0.6.3

Describe your bug here.
I don't know how to fix this issue!  I've tried troubleshooting on this github page. No change. I've tried downloading different versions of hxCodec. Still broken. Any help without the constant repeating of "you're using an old version" is very much appreciated.
Side note: I tried compiling an older version of Psych (specifically 0.5.1), and the issue isn't there.
The only issue is with PlayState.hx. Nothing else. For reference, below is the exact file of PlayState.hx I have in my build:
PlayState.zip
Command Prompt/Terminal logs (if existing)
source/PlayState.hx:75: characters 8-22 : Type not found : vlc.MP4Handler
source/PlayState.hx:1620: characters 14-24 : Type not found : MP4Handler

Are you modding a build from source or with Lua?
Source
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
Yes, I edited Achievements.hx, but I never edited PlayState.hx (which is where the issues are). I want to edit PlayState.hx ONLY when it's working normally.

Update: Figured out the issue. Turns out the Project.xml is the thing that handles the issue for you. I was trying to upgrade my old mod to the latest version (which was on the older version of Psych mentioned above), and dragged over the old Project.xml from that. Turns out this problem could've been avoided if I had just added the new changes I had made for my mod over the new Project.xml :|
TLDR: If you're trying to fix this problem, replace the Project.xml file in your build with the current version's one


adding a migration test

addressing #7
testing some output generated today

@bagelface added fuzzy testing for batch mint


Simplify UFS path resolution

What changes are proposed in this pull request?
This change simplifies MountTable path resolution by removing the try-with-resource block around path resolution.
Why are the changes needed?
Path resolution does not need to acquire the UFS resource.
Does this PR introduce any user facing changes?
Removed #resolveUri() from UFS interface.

acquireUfsResource() only does some ref counting, so the cost should be just the try-block. It pends on some microbenchmarking to tell how much this block is really costing. If the cost is trivial, there's no need to refactor this part while it also induces backward compatibility issues.


Support outer classes

Support enums within outer classes.
Use GenericEnum annotation to control the name of the generated outer class.
Generated inner classes will be declared static.

Hi Christophe,
Could you consider merging this PR please? It adds support for enums within classes. This is a blocking issue for us. I've attempted to make the PR simpler, please reply with questions or suggestions for improvements.
Cheers,
Simon

Hi Christophe,
Have you managed to review this PR yet?
Cheers,
Simon


chore(indexSelector): renamed to sortBySelector

Fix #485
BREAKING CHANGE: the indexSelector has been renamed to
sortBySelector.

Going to rebase and merge this


Duplicate renderText functions (in Common.cpp and Texture.cpp)

We haven't resolved it yet bro :v

Have u solved it bro?


Error in Author Details Page

Running Mage 2.1.2 and php 7 author details page gives:
Fatal error: Cannot use Sample\News\Model\ImageFactory as ImageFactory because the name is already in use in /var/www/html/magento2/app/code/Sample/News/Helper/Image.php on line 26

This is a bug in PHP when OPcache is not on.
http://stackoverflow.com/questions/17746481/cannot-use-x-as-y-because-the-name-is-already-in-use-even-though-its-not/23879699#23879699
I am running php 5.6.30 via Xampp installed yesterday  Feb 22 2017
I had the error on a clean Magento 2.1.5
turned on opcache in the php.ini file and no more error.

The fix did not help me.
Magento 2.1.5
Php 7.0.12
Opcache enabled.
This is what helped:
In Sample/News/Helper/Image.php try change
use Sample\News\Model\ImageFactory;
to
use Sample\News\Model\ImageFactory as MyImageFactory;
and in constructor
ImageFactory $imageFactory,
to
MyImageFactory$imageFactory,


Fix clock example

I can see this is not what you were going for but maybe this can be a temporary fix for server-side driven events to get the clock example in the read me working again.
Feel free to reject if you have a better solution.

Thank you!


Basic Demo of TensorFlow Lite

Assign me this work @Niketkumardheeryan

You can work on it now @learner2102


[SPARK-8561][SQL]drop table under specific database

we run the following code
hivecontext.sql("use dbname")
hivecontext.sql("drop table tablename")
it will drop the table under "default"

Merged build triggered.

Merged build started.

Test build #35544 has started for   PR 6951 at commit 2bc3e7a.

Test build #35544 has finished for   PR 6951 at commit 2bc3e7a.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Merged build triggered.

Merged build started.

Test build #35552 has started for   PR 6951 at commit 2893b77.

Test build #35552 has finished for   PR 6951 at commit 2893b77.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Merged build triggered.

Merged build started.

Test build #35751 has started for   PR 6951 at commit 3ba7913.

Test build #35751 has finished for   PR 6951 at commit 3ba7913.

This patch fails Scala style tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Merged build triggered.

Merged build started.

Test build #35755 has started for   PR 6951 at commit c09cb9f.

Test build #35755 has finished for   PR 6951 at commit c09cb9f.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

NAVER - http://www.naver.com/
<EMAIL_ADDRESS>님께 보내신 메일 <Re: [spark] [SPARK-8561][SQL]drop table under specific database (#6951)> 이 다음과 같은 이유로 전송 실패했습니다.

받는 사람이 회원님의 메일을 수신차단 하였습니다.

I believe this issue is fixed in master and we can close this issue.


Added toggle_bits_given_range.cpp

Description of Change

Given a non-negative number n and two values l and r. The problem is to toggle the bits in the range l to r in the binary representation of n, i.e, to toggle bits from the rightmost lth bit to the rightmost rth bit. A toggle operation flips a bit 0 to 1 and a bit 1 to 0.
Constraint: 1 <= l <= r <= number of bits in the binary representation of n.
Checklist

[x] Added description of change
[x] Added file name matches File name guidelines
[x] Added tests and example, test must pass
[x] Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
[x] Relevant documentation/comments is changed or added
[x] PR title follows semantic commit guidelines
[x] Search previous suggestions before making a new one, as yours may be a duplicate.
[x] I acknowledge that all my contributions will be made under the project's license.

Notes: Added an algorithm for which the bits in a given range l to r of a number n will be toggled and then the new number will be returned.

@Panquesito7 Sir is there any further changes required?


Screen rotation while showing Rationale dialog invalidates PermissionListener

Expected behaviour
PermissionListener passed to withListener() function is triggered after permission request.
Actual behaviour
PermissionListener is invalidated on screen rotation and its callbacks are not triggered.
Steps to reproduce
Rotate screen while showing dialog from onPermissionRationaleShouldBeShown callback.
Version of the library
6.2.2
I suppose that using ViewModel for DexterActivity should fix the problem, but it requires jetpack dependency.

Expected behaviour
PermissionListener passed to withListener() function is triggered after permission request.
Actual behaviour
PermissionListener is invalidated on screen rotation and its callbacks are not triggered.
Steps to reproduce
Rotate screen while showing dialog from onPermissionRationaleShouldBeShown callback.
Version of the library
6.2.2
I suppose that using ViewModel for DexterActivity should fix the problem, but it requires jetpack dependency.

Expected behaviour
PermissionListener passed to withListener() function is triggered after permission request.
Actual behaviour
PermissionListener is invalidated on screen rotation and its callbacks are not triggered.
Steps to reproduce
Rotate screen while showing dialog from onPermissionRationaleShouldBeShown callback.
Version of the library
6.2.2
I suppose that using ViewModel for DexterActivity should fix the problem, but it requires jetpack dependency.

@nsk90 what do you mean by invalidated? Could you describe the issue from the user point of view?

@nsk90 what do you mean by invalidated? Could you describe the issue from the user point of view?

what do you mean by invalidated?
I mean it is replaced with default one, and so is not triggered.

  void onActivityDestroyed(Activity oldActivity) {
    if (activity == oldActivity) {
      activity = null;
      isRequestingPermission.set(false);
      rationaleAccepted.set(false);
      isShowingNativeDialog.set(false);
      listener = EMPTY_LISTENER; // as I see this line invalidates listener
    }
  }

Could you describe the issue from the user point of view?
from the use point of view is depends on what my app is doing in onPermissionRationaleShouldBeShown()

here are some cases:

in onPermissionRationaleShouldBeShown() I show AlertDialog with ok button. Screen rotation closes dialog and default (replaced) listener shows permission request.
in onPermissionRationaleShouldBeShown() I show DialogFragment with ok button. DialogFragment supports orientation changes so it not closed by screen rotation. Permission request is shown above DialogFragment by the same reason as before.
in onPermissionRationaleShouldBeShown() I show AlertDialog with ok button. And in onPermissionGranted() I do some action which user must see (show some notification for example).
In this case user will see notification if he clicks ok on rationale dialog and grands permission. But he will not see notification if he will rotate screen while rationale dialog is shown and grand permission.
There is not way to fix this with DialogFragment.

I wrote that in my opinion ViewModel for DexterActivity should help, now I can add that there is a simpler option "headless fragment".
I hope this will help to support screen rotations (configuration changes) correctly.

what do you mean by invalidated?
I mean it is replaced with default one, and so is not triggered.

  void onActivityDestroyed(Activity oldActivity) {
    if (activity == oldActivity) {
      activity = null;
      isRequestingPermission.set(false);
      rationaleAccepted.set(false);
      isShowingNativeDialog.set(false);
      listener = EMPTY_LISTENER; // as I see this line invalidates listener
    }
  }

Could you describe the issue from the user point of view?
from the use point of view is depends on what my app is doing in onPermissionRationaleShouldBeShown()

here are some cases:

in onPermissionRationaleShouldBeShown() I show AlertDialog with ok button. Screen rotation closes dialog and default (replaced) listener shows permission request.
in onPermissionRationaleShouldBeShown() I show DialogFragment with ok button. DialogFragment supports orientation changes so it not closed by screen rotation. Permission request is shown above DialogFragment by the same reason as before.
in onPermissionRationaleShouldBeShown() I show AlertDialog with ok button. And in onPermissionGranted() I do some action which user must see (show some notification for example).
In this case user will see notification if he clicks ok on rationale dialog and grands permission. But he will not see notification if he will rotate screen while rationale dialog is shown and grand permission.
There is not way to fix this with DialogFragment.

I wrote that in my opinion ViewModel for DexterActivity should help, now I can add that there is a simpler option "headless fragment".
I hope this will help to support screen rotations (configuration changes) correctly.

I don't know right now what's the best fix for this issue. I need to review it in detail before changing anything. I'm also checking how to reproduce the issue manually and the sample app we provide seems to work properly. If you open the sample app, tap on the audio permission and waits for the dialog to be shown you can rotate the screen and the library works as expected. Maybe I'm missing something...could you try it out? If you can reproduce the error in our sample project it could be great if you create a branch reproducing the error. As a workaround, you could use configure your activity configChanges to avoid restoring the activity when the device screen rotates.

I don't know right now what's the best fix for this issue. I need to review it in detail before changing anything. I'm also checking how to reproduce the issue manually and the sample app we provide seems to work properly. If you open the sample app, tap on the audio permission and waits for the dialog to be shown you can rotate the screen and the library works as expected. Maybe I'm missing something...could you try it out? If you can reproduce the error in our sample project it could be great if you create a branch reproducing the error. As a workaround, you could use configure your activity configChanges to avoid restoring the activity when the device screen rotates.

Audio button in sample app does not use Rationale dialog. Use CAMERA button.
Steps to reproduce on Sample app.

press CAMERA button
see rationale dialog
rotate screen
accept or reject permission.

Take a look at SampleActivity.showPermissionRationale() method it is called from SamplePermissionListener.
There is an AlertDialog which calls token.cancelPermissionRequest(); and  token.continuePermissionRequest(); (in 3 places)
you can place breakpoints or logs on this calls to see that no one of them is called if you rotate screen while dialog is up.
In this condition permission is actually requested (made call to token.continuePermissionRequest();) from BaseMultiplePermissionsListener (default). To see that listener is "invalidated" (replaced with default one) put breakpoints or logs to onPermissionGranted() and onPermissionDenied() methods in SamplePermissionListener. This methods will not be triggered if you rotate screen while rationale dialog is up.
The problem is just hidden by default listener which is calling token.continuePermissionRequest();.

Audio button in sample app does not use Rationale dialog. Use CAMERA button.
Steps to reproduce on Sample app.

press CAMERA button
see rationale dialog
rotate screen
accept or reject permission.

Take a look at SampleActivity.showPermissionRationale() method it is called from SamplePermissionListener.
There is an AlertDialog which calls token.cancelPermissionRequest(); and  token.continuePermissionRequest(); (in 3 places)
you can place breakpoints or logs on this calls to see that no one of them is called if you rotate screen while dialog is up.
In this condition permission is actually requested (made call to token.continuePermissionRequest();) from BaseMultiplePermissionsListener (default). To see that listener is "invalidated" (replaced with default one) put breakpoints or logs to onPermissionGranted() and onPermissionDenied() methods in SamplePermissionListener. This methods will not be triggered if you rotate screen while rationale dialog is up.
The problem is just hidden by default listener which is calling token.continuePermissionRequest();.

I'm afraid this is not easy to fix at all. When the device is rotated the OS recreates the activity and this means we lose every reference to the original listener. As far as I've reviewing there is no way we can get a reference of any listener pointing at the new activity. I'm all ears in case any of you are able to find a fix for this, right now I can't any possible solution but blocking screen orientation which is not a solution at all.

Storing a reference to the listener in a Fragment with setRetainInstance(true) does not help?

That would help if you are using Dexter but that wouldn't fix the issue and it would not be valid for anybody using activities.

Looks like I explained not correctly.
I meant, to use such a fragment (with setRetainInstance(true)) inside DexterActivity.
Move Dexter.onActivityReady(this); and  Dexter.onActivityDestroyed(this); calls to that fragment.
I expect this will extend lifetime of references stored in Dexter class and they will be retained across configuration changes.

@nsk90 I think that's not going to work because the listener would hold a reference to a destroyed activity. Even if we save the listener in a static property the activity of the developer who uses dexter will be recreated and the listener we saved would point at a dead activity :(

This is a serious bug. At least make some kind of broadcast so we can check that rights were granted or means to cancel this dialog after rotation.

Indeed! It's a serious bug @deinlandel. Keep in mind, I'm the only developer actively working on this project for years and I have to maintain the other company repositories. https://github.com/Karumi/KotlinSnapshot and https://github.com/Karumi/Shot are just two examples. I'm afraid I only have 12 days per year to work on our open-source projects and two hands. If you think this is a serious bug and it is blocking you I'd really appreciate it if you can have the time to help us and collaborate. If you don't have the time, I guess you can use only portrait rotation whenever you are requesting this permission. There are also other libraries you can use if you need it.

@pedrovgs That's okay, life often leaves us without time for our side projects. Although please at least write in library's readme that it's unmantained because you don't have time to maintain it. So new users would know that they should not expect any updates and bug fixes.


[BUG]:  When using the API as an Admin user, I am getting 401 errors when attempting to create new users

How are you running AnythingLLM?
Docker (remote machine)
What happened?
When attempting to automate configuration of a deployed anythingllm environment I discovered that a valid API token

from an admin user

was returning 401 from the create users api after successfully hitting the /ping endpoint to prove that everything else is ok.

This indicated to me that multi-user mode is not enabled

but we know that can't be the case because multiple users have been created via GUI

So I'm a bit stuck on automating my environment setup right now because I can't do automated user creation.
Let me know how else I can support the investigation here! I've included my code and docker-compose file for reference in the repro steps.
Are there known steps to reproduce?

Create dockerized anythingllm using a dockerfile like this

    image: mintplexlabs/anythingllm
    container_name: anythingllm_test
    cap_add:
      - SYS_ADMIN
    environment:
    # Adjust for your environment
      - STORAGE_DIR=/app/server/storage
      - JWT_SECRET="make this a large list of random numbers and letters 20+"
      - LLM_PROVIDER=ollama
      - OLLAMA_BASE_PATH=http://ollama:11434
      - OLLAMA_MODEL_PREF=llama3:latest
      - OLLAMA_MODEL_TOKEN_LIMIT=4096
      - EMBEDDING_ENGINE=ollama
      - EMBEDDING_BASE_PATH=http://ollama:11434
      - EMBEDDING_MODEL_PREF=mxbai-embed-large:latest
      - EMBEDDING_MODEL_MAX_CHUNK_LENGTH=8192
      - VECTOR_DB=lancedb
      - WHISPER_PROVIDER=local
      - TTS_PROVIDER=native
      - PASSWORDMINCHAR=8
      - AGENT_SERPER_DEV_KEY="SERPER DEV API KEY"
      - AGENT_SERPLY_API_KEY="Serply.io API KEY"
    volumes:
      - anythingllm_storage:/app/server/storage
    networks:
      - distill_network
    restart: always

volumes:
  anythingllm_storage:

networks:
  distill_network:
    name: distill_network
    driver: bridge

Turn on multi-user mode
Create username and password
log in as admin user
generate API Key
Run the following python code with your api key. Ping should prove that the api key is valid.

import aiohttp
import json
import logging
import os
import asyncio

API_KEY = os.getenv("API_KEY")
ADMIN_PASSWORD = os.getenv("ADMIN_PASSWORD")
MANAGER_ACCOUNT_USERNAME = os.getenv("MANAGER_ACCOUNT_USERNAME")

# Set up logging
logging.basicConfig(level=logging.INFO)

# Call configuration
base_url = f"http://anythingllm_test:3001/api"
headers = {
    'Authorization': f'Bearer {API_KEY}',
    'Content-Type': 'application/json'
}
ping_headers = {
    'Authorization': f'Bearer {API_KEY}',
}

payload = {
  "username": MANAGER_ACCOUNT_USERNAME,
  "password": "CHANGEME01",
  "role": "default"
}

async def create_user() -> str:
    try:
        async with aiohttp.ClientSession() as session:
            async with session.get(base_url + "/ping", headers=ping_headers, ssl=False) as response:
                if response.status == 200:
                    resp = await response.json()
                    logging.info("Ping response received")
                    logging.info(f"{resp}")
                else:
                    logging.error(f"Failed to get ping response from server: {response.status}")
                    return "Failed to get ping response from server."

            async with session.post(base_url + "/admin/users/new", headers=headers, json=payload, ssl=False) as response:
                if response.status == 200:
                    resp = await response.json()
                    logging.info("create user response received")
                    logging.info(f"{resp}")
                    return resp.get("textResponse", "No message in response.")
                else:
                    logging.error(f'{response}')
                    logging.error(f"Failed to create user: {response.status}")
                    return "Failed to create user."
    except aiohttp.ClientError as e:
        logging.error(f"HTTP request failed: {e}")
        return "Failed to connect to the server."

# Run the create_user function
if __name__ == "__main__":
    result = asyncio.run(create_user())
    print(result)

Verify a response like the following

configure_customer  | INFO:root:Ping response received
configure_customer  | INFO:root:{'online': True}
configure_customer  | ERROR:root:<ClientResponse(http://anythingllm.test-customer:3001/api/admin/users/new) [401 Unauthorized]>
configure_customer  | <CIMultiDictProxy('X-Powered-By': 'Express', 'Vary': 'Origin', 'Content-Type': 'application/json; charset=utf-8', 'Content-Length': '31', 'Etag': 'W/"1f-J3f56Tp3MQETl1YY4BuqOD/e+5g"', 'Date': 'Mon, 15 Jul 2024 06:53:24 GMT', 'Connection': 'keep-alive', 'Keep-Alive': 'timeout=5')>
configure_customer  |
configure_customer  | ERROR:root:Failed to create user: 401
configure_customer  | Failed to create user.
configure_customer exited with code 0

Ok so I've now also tried with creating a workspace. I'm also getting 401 for that

which is strange since 401 isn't one of the documented error codes

Given this error has happened on 2 different endpoints I'm suspecting I've missed something obvious and I stand ready to be bonked on the head here if that's the case :D

Is the instance in multi-user mode? You cannot create users on an instance that is not in multi-user mode. You cannot swap the instance to multi-user from the API it must be done via the frontend.
Settings -> Sidebar -> Security -> Mulit-user mode (set username password for admin). Then you can create users via API

Hey @timothyasp, thanks for the quick reply! In my writeup I have a screenshot showing that multiple users have been created in that instance. Here's a full screenshot of that view.

Wow i have no idea how i overlooked that - investigating!

No worries! I've continued my investigation too and found something interesting. I was referencing the Postman collection here.
https://www.postman.com/tcarambat/workspace/mintplex-labs/request/6334211-099b35ac-c51a-4a7c-af54-64001446e56f
And I wasn't using /api/v1 in my URLs as a result since that postman collection doesn't use them. This seems to work for the ping call but causes 401 on all  other methods I've tried.
I switched all of my URLs other than ping to /api/v1 and now I'm getting 403 on all API calls other than ping. I'm still confused why this is the case as the API key is from an admin user on the account.

Sorry for the rapidfire updates, but I also just tried using the Swagger GUI to test this, and on that GUI I'm able to execute the commands using the same API key successfully. For instance.

This makes me think it is still somehow something I'm doing wrong in my python implementation but I'm yet to discover what... Will update if I can find it.

Ok I found my dumb error in python. I wasn't using the accept:application/json header that the curl configuration used.
Sorry for the hassle :(.
Hopefully some good comes out of this in terms of maybe updating the postman collection? I think I didn't find my own error for a while because that collection didn't use the v1 urls.

Oh haha, yeah the postman collection is quite old - I think it might have even existed prior to us having the swagger docs live! If anything it should be removed at this point because of its incompatibility with the recent changes!


Add Twitter follow badge in readme file

Add Twitter follow badge in the readme file and add the following URL to reference.
https://twitter.com/carrier_js
ℹ Twitter follow badge should look like this 👇

ℹ Add twitter follow along with below badges

⚠ Important Message
No need to wait for assigning, you can raise the pull request.

hi @theritikchoure please assign this to me

Hello @theritikchoure assign this issue to me.

@najeebkp @pratyushkr11
⚠ Important Message
No need to wait for assigning, you can raise the pull request.
Give a ⭐ to this repo.


ADD: PRAGMA cipher_compatibility

The cipher_compatibility pragma should be called immediately after if provided in dsn for indicating backward compatibility
requirement (eg. from  v4 -> v3), but not considered previously, so it lead to error file is not a database, because synchronous pragma is always executed even if cipher_compatibility pragma is not executed.

I took your Pull Request @safiir inside my fork() of this repository.
See https://github.com/ValentinMontmirail/go-sqlcipher/pull/10
I try to maintain the fork() to the latest version of SQLite3 and SQLCipher.
I am currently supporting SQLite 3.45.0.
Feel free to do PR directly there if you want to improve this lib.


Public SSH Key Validation is not working

Description
Public SSH Key Validation is not working and it can be updated with any value.
Adding a new ssh key with an invalid value
Untitled_ May 14, 2023 3_45 PM.webm
Updating and already existing key with an invalid value.
Untitled_ May 14, 2023 3_40 PM.webm

PR #455 ready for review

after some discussions, will make sure the user provides a ssh key, if no the user will not be able to complete the deployment.
whoever the pr now is ready for  review :D


Update firewalld custom service to translate port ranges with a colon…

… in hashes
Pull Request (PR) description
Make sure colon is replaced with a dash with firewalld_custom_service when using a port range in a hash
This Pull Request (PR) fixes the following issues
Fixes #292

Any concerns?  Would be nice to get this merged in.  thanks


[Syntax Error] line 0, col 94: Error: Expected Doctrine\ORM\Query\Lexer::T_COMMA, got 'AND'" Upgrade to 2.6

Hello,
I used REGEXP,  and i have this error.
Here is the produced DQL:
SELECT t FROM Test t WHERE t.account = :account AND REGEXP(t.labels AND :excludetag0) = false AND REGEXP(t.labels AND :excludetag1) = false ORDER BY t.id DESC
This was perfectly working with the same code for v2.5, not after upgrading to 2.6.
Rolling back to v2.5 was the only thing I did to make it working again.

Hello @Ocramius,
Thank you for your quick response.
You are right it seems to be a bug, i'm blocked by match() in Orm/Query/Parser.php.
I'm using the string_functions REGEXP. DoctrineExtensions\Query\Mysql\Regexp

Can you print out a full trace, please?

@Ocramius
I don't understand whey you have closed quickly this issue.
This is my query  $qb
->andWhere('REGEXP('labels', ':' . $attributeKey.') = true')
->setParameter($attributeKey, $this->regexTag($tag))
You can see that  I'm using the comma ','  with my REGEXP. the "AND" is in the DQL transformation This was perfectly working with the same code for v2.5, not after upgrading to 2.6.

The query you pasted above is following:
SELECT t
FROM Test t
WHERE t.account = :account
AND REGEXP(t.labels AND :excludetag0) = false
AND REGEXP(t.labels AND :excludetag1) = false
ORDER BY t.id DESC

The transformation should be an SQL transformation, not a DQL one. The DQL parser is correctly throwing an exception, and your traces show that the failure is precisely in the handling of the custom DQL function.


store: Do not include 'id' in BRIN indexes

Including the id column makes Postgres use this index when it really shouldn't and actually slows some queries down catastrophically from 50ms to 2s.

There are tests that need fixing.

There are tests that need fixing.

Ugh .. of course, the unit tests that check the generated SQL needed an update.


Use tox to be able to run tests locally

With tox, it's easy to run unittests or linters locally before
submitting code. So use it here.
Also switch Travis to use tox, too. That way the results between local
test runs and travis runs are more compareable.
Signed-off-by: Thomas Bechtold<EMAIL_ADDRESS>

@toabctl thanks for this contribution.


chore(deps): upgrade dev dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-dev-dependencies-k8s-29-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 4039

Questions ?
Please refer to the Backport tool documentation


feat: reconfigure proxy and extend github settings | Draft

⚠ Config-UI / Data Integrations / GitHub

[x] Re-configure Proxy (Optional Field) as a Connection level field
[x] Extend/Support new GitHub Provider Settings

GITHUB_PR_TYPE
GITHUB_PR_COMPONENT
GITHUB_ISSUE_SEVERITY
GITHUB_ISSUE_COMPONENT
GITHUB_ISSUE_PRIORITY
GITHUB_ISSUE_REQUIREMENT
GITHUB_ISSUE_TYPE_BUG
GITHUB_ISSUE_TYPE_INCIDENT

[x] Extend/Support new JIRA Provider Settings

RemoteLinkCommitSha

[x] Update Connection Validation Hook
[x] Test/Verify GitHub Provider Integration
[x] Test All Data Integrations
[x] Test Production Build

Description
This PR re-configures the Proxy field as a Connection level parameter for all applicable providers (GitHub, JIRA, GitLab). It also enhances the GitHub Provider Settings with 8 new fields related to PR and Issue Enrichment using Labels. It also adds the RemoteLinkCommitSha field for JIRA Provider.
NOTE: This PR will impact and resolve multiple issue tickets related to Data Provider settings & Proxy (outlined below)
Does this close any open issues?
#1223, #1247, #1248, #1249, #1252, #1264
Screenshots

Depends on #1282

Can we unify the naming?

And, why the vertical alignment seems off?

@klesh That is an old screenshot and all the labels are set as "Proxy" for the providers, I can update to "Proxy URL" if needed. I'll check alignment as well of the label.

@klesh That is an old screenshot and all the labels are set as "Proxy" for the providers, I can update to "Proxy URL" if needed. I'll check alignment as well of the label.

Resolved with f1de39 (fix: update proxy field labels and alignment)


view: fix role-base checks on components to disable if role is not allowed an operation

Fixes #310

@rhtyd I've tried to address all possible cases, please check

@rhtyd I've verified and made changes to disable buttons/actions across UI. I've not changed it in custom forms which are called for certain API and will be taken care of by permissionchecker

@shwstppr  can you fix the conflict? Thanks.

@blueorangutan package

@rhtyd a Jenkins job has been kicked to build primate packages. I'll keep you posted as I make progress.

Packaging result: :heavy_check_mark:centos :heavy_check_mark:debian :heavy_check_mark:archive.
QA: http://primate-qa.cloudstack.cloud:8080/client/pr/317 (JID-2000)


Kimchi_backend: remove create_and_verify_async

Fixes https://github.com/MinaProtocol/mina/issues/12926

!ci-build-me

!ci-build-me


Add relevant metadata files from the Google project to our project.

Update index.php to take files locally.
Update generated metadata classes.

This probably should not be merged until we're certain it will work.

How I did it:

Used the ant build script to convert the XML file from our C# repo to metadata.js
Used the PHP script to generate PhoneNumberMetaData.json
Ran the iOS test application which also generates NBMetadataCore.m

After following this chain, all our internal tests pass.

Never mind this! Carry on!


Allow fallback for Pulumi.Log when used outside a Pulumi run

Hello!

Vote on this issue by adding a 👍 reaction
If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

Our Pulumi C# code contains a number of helper classes, for example one that calculates IP CIDR Ranges. These have unit tests independent of Pulumi, and need to do some logging. The nice thing to do would be to use Pulumi.Log in the code, however this fails during execution outside of a Pulumi stack.
System.InvalidOperationException
Trying to acquire Deployment.Instance before 'Run' was called.

As far as I can tell, there is no way to tell whether or not Pulumi is running or not so it's hard to even fall back to Console. The 'proper' answer may be to start injecting ILogger with some kind of dynamic configuration, but this feels a little bit like overkill when it would be nice to just he Pulumi.Log everywhere but have it behave itself when called outside of Pulumi run.
Affected area/feature

Logging.

Hi, thanks for filing this. Will discuss with the team.


[ARROW-7808] Shared libraries inside jar files

Hi there @zhztheplayer,
I am currently using your nice Arrow Dataset Java implementation to be able to use Datasets from Java. I can use it without problems on my own system, where I have sudo rights, have up-to-date gcc, cmake, etcetera.
However, I cannot run my jarfile, containing all dependencies, on a remote machine.
Here is the error I get on a remote machine:
Exception in thread "Thread-49" java.lang.NoClassDefFoundError: Could not initialize class org.apache.arrow.dataset.file.JniWrapper
	at org.apache.arrow.dataset.file.FileSystemDatasetFactory.createNative(FileSystemDatasetFactory.java:33)
	at org.apache.arrow.dataset.file.FileSystemDatasetFactory.<init>(FileSystemDatasetFactory.java:29)
	at arrow.dataset.DefaultDatasetFactory.lambda$create$0(DefaultDatasetFactory.java:49)
	at arrow.JNIMemory.withAllocatorDo(JNIMemory.scala:54)
	at arrow.dataset.DefaultDatasetFactory.create(DefaultDatasetFactory.java:48)
	at arrow.dataset.MetaDataset.dataset$lzycompute(MetaDataset.scala:34)
	at arrow.dataset.MetaDataset.dataset(MetaDataset.scala:34)

I want to stress again that the very same jar file works without problems on my local machine.
I suppose the error makes sense: I access the JniWrapper here for the very first time, so this is the first time the '.so' shared libraries are called right?
My local system has a lot more recent libraries than the server I ran on while getting this error.
My guess: Different environments cause the .so file to fail loading propely, meaning I can use my code only on the same system I compiled this JNI bridge on.
I noticed there was a way to compile static libraries ('.a' files) in Arrow. That might solve the problem. With '.a' files, relevant system library routines are inserted into the '.a' file,
so my server environment does not matter much then (I think).
Questions
Here is what I would like to know:

Do you think using static libraries will solve my problem?
Does your JNI bridge currently support static libraries?
Do you plan to add static libraries to your JNI bridge in the future?

If static libraries prove to increase independence from system libraries, I really think you should use those instead of shared libraries. Even though the library size will increase, static libs would add a piece of compatibility between systems, and Java and JARs are all about compatibility between systems.
P.S.
JNI can use static libraries since Java 8. Source: StackOverflow

After additional checking I found that
ldd libarrow_dataset_jni.so
ldd: warning: you do not have execution permission for `./libarrow_dataset_jni.so'
./libarrow_dataset_jni.so: /cm/local/apps/gcc/6.3.0/lib64/libgcc_s.so.1: version `GCC_7.0.0' not found (required by ./libarrow_dataset_jni.so)
./libarrow_dataset_jni.so: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by ./libarrow_dataset_jni.so)
./libarrow_dataset_jni.so: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by ./libarrow_dataset_jni.so)
./libarrow_dataset_jni.so: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by ./libarrow_dataset_jni.so)
./libarrow_dataset_jni.so: /cm/local/apps/gcc/6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by ./libarrow_dataset_jni.so)
./libarrow_dataset_jni.so: /lib64/libpthread.so.0: version `GLIBC_2.30' not found (required by ./libarrow_dataset_jni.so)
	linux-vdso.so.1 =>  (0x00002aaaaaacd000)
	libz.so.1 => /lib64/libz.so.1 (0x00002aaaabc94000)
	libstdc++.so.6 => /cm/local/apps/gcc/6.3.0/lib64/libstdc++.so.6 (0x00002aaaabeaa000)
	libm.so.6 => /lib64/libm.so.6 (0x00002aaaac22b000)
	libgcc_s.so.1 => /cm/local/apps/gcc/6.3.0/lib64/libgcc_s.so.1 (0x00002aaaac52d000)
	libpthread.so.0 => /lib64/libpthread.so.0 (0x00002aaaac744000)
	libc.so.6 => /lib64/libc.so.6 (0x00002aaaac960000)
	/lib64/ld-linux-x86-64.so.2 (0x00002aaaaaaab000)

So yeah, that's a bit awkward. Answering my own question: Using static libraries will not work to improve compatibility much, because libc code is never added to static libraries...
In my case, all I can do is (in order of difficulty):
0. Spawn a VM resembling the old system, compile the library there, and pray that it works on the actual remote.

Compile the library on the remote. This will be really painful, because everything on the remote is a bit dated and I have no sudo rights. So I would need to compile recent enough versions of cmake, libboost-all-dev automake bison flex g++ git libevent-dev libssl-dev libtool make  on the remote system without sudo.
Use musl to compile the library, but I am not sure JNI can handle that and this is quite hardcore.
Use a cursed hack to download software from apt and "install" that locally.

Of course, when not having to use one specific remote, it would be the simplest to just find a host where you have root or a remote that is up to date.

What this leaves me wondering: How will you approach building releases for your code in the future?
It might make sense to add the jni-bridge shared libraries to the libarrow-dev package, and remove them from the arrow-dataset.jar.
That way, the jar becomes portable between systems (like jars should be), and users only have to install libarrow-dev for the jni bridge.

Hi Sebastiaan,
I assume you encountered an dependency version problem right? E.g. try loading the library on lower version of glibc/gcc than it was built. I think you could have a try but I am not sure static linking will always work on issues like this because the dependencies are pretty low-level and tightly bounded with operation system.
I think a common practice to solve such a problem is to compile cpp files on comparatively elder Linux environment then it should be able to run on higher. It will be a little annoying in cases like yours that local machine has higher version while remote server has lower. Anyway it might be an option to install a virtual machine from local to compile the sources.
Regarding the Java library releases, AFAIK official Apache Arrow Java libraries don't do much on compatibility: I downloaded arrow-orc-2.0.0.jar and arrow-gandiva-2.0.0.jar then found the C++ libs included in the jars are dylibs. If I am guessing correctly users can not run it directly on Windows or Linux. I know some other opensource repositories like lz4-java includes multiple C++ binary files for different system types like win/osx/linux, maybe that is a feasible direction for Arrow Java releases. But so far the compatibility is still limited.

Hi there, hadn't heard of dylibs so far, seems interesting, thanks!
Yes I spawned a VM resembling my target system, and compiled on there using su rights.
Thanks for the info!


Improve log messages during 2.0 startup

Prometheus 2.0 doesn't log anything useful during a startup of a bit more complex config (k8s_sd, dns_sd, lot's of relabeling).
INFO[0000] Build context (go=go1.8.1, user=grobie@grobook, date=20170505-12:50:08)  source=main.go:74
INFO[0026] Loading configuration file prometheus.yml     source=main.go:215

What do you expect it to log?
We don't log anything related to SD/relabelling currently in 1.6 at startup.

Anything telling me what it's doing right now instead of locking up for tens of seconds.

Fixed in #2844? So the main thing I observed that took time during startup is the reading of WAL by the tsdb.
I added a couple of lines, specifically:
INFO[0000] Starting prometheus (version=, branch=, revision=)  source="main.go:193"
INFO[0000] Build context (go=go1.8.1, user=, date=)      source="main.go:194"
INFO[0000] Host details (linux)                          source="main.go:195"
INFO[0000] Starting tsdb                                 source="main.go:207"               <---------------
INFO[0015] tsdb started                                  source="main.go:213"               <---------------
INFO[0015] Loading configuration file prometheus.yml     source="main.go:340"
INFO[0015] Starting target manager...                    source="targetmanager.go:67"
INFO[0015] Listening on :9090                            source="web.go:260"

Hello, So where can i add the lines which you added.
Srikanth
On Thu, Jun 15, 2017 at 6:09 AM, Goutham Veeramachaneni <
<EMAIL_ADDRESS>wrote:

Fixed in #2844 https://github.com/prometheus/prometheus/pull/2844? So
the main thing I observed that took time during startup is the reading of
WAL by the tsdb.
I added a couple of lines, specifically:
INFO[0000] Starting prometheus (version=, branch=, revision=)  source="main.go:193"
INFO[0000] Build context (go=go1.8.1, user=, date=)      source="main.go:194"
INFO[0000] Host details (linux)                          source="main.go:195"
INFO[0000] Starting tsdb                                 source="main.go:207"               <---------------
INFO[0015] tsdb started                                  source="main.go:213"               <---------------
INFO[0015] Loading configuration file prometheus.yml     source="main.go:340"
INFO[0015] Starting target manager...                    source="targetmanager.go:67"
INFO[0015] Listening on :9090                            source="web.go:260"
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/prometheus/prometheus/issues/2680#issuecomment-308724471,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AcFE9XdZf33CLFazTaI_bXZvZ4PMOFXiks5sES0GgaJpZM4NR4Qs
.

Closing this as tsdb startup is the main contributor to the start time and logs now show that.


Can't select data by timestamp equals a literal

What type of bug is this?
Incorrect result
What subsystems are affected?
Standalone mode
Minimal reproduce step
First create table and insert data:
mysql> create table test(ts timestamp time index, a int);
Query OK, 0 rows affected (30.06 sec)

mysql> insert into test values(1,1);
Query OK, 1 row affected (0.03 sec)

mysql> select * from test;
+----------------------------+------+
| ts                         | a    |
+----------------------------+------+
| 1970-01-01 00:00:00.001000 |    1 |
+----------------------------+------+
1 row in set (0.07 sec)

Then select * from test where ts = '1970-01-01 00:00:00.001000';.
The result is empty, which is incorrect.
Two walkaround:

add time unit directly: select * from test where ts = “1970-01-01 00:00:00.001000”::timestamp_ms;
add time zone to time literal: select * from test where ts = "1970-01-01 08:00:00.001000"

What did you expect to see?
select non-empty data
What did you see instead?
select empty data
What operating system did you use?
all
Relevant log output and stack trace
No response

@waynexia What's the status of this issue?

@waynexia What's the status of this issue?

It's fixed in https://github.com/GreptimeTeam/greptimedb/pull/2905


Polygons that contains a Pole are not filled (so not clickable)

Sandcastle example:
https://sandcastle.cesium.com/#c=dZJPSwMxEMW/ypBTC9ts66GI3RahoiCCQsGL6SHdHWswmylJtmUVv7tJ1/5fDyHz3rzfHDLJyTgPa4UbtDAGgxuYolNVyV+3XkewfKunZLxUBq1g3ZEwwjQML6SXM6psSHFZFB1hYDfhAenRkbnbJ7gm2SQAvpsLQDBfr1Cwm1Ddo/SVDSI5dJdIJXpbx8QeOsVeSNdLMkdY7OdEtlBGenQx9nbowakIsp8M+/PkzBy2uoOrdvu61e79E++1D7805wexL3+aYnt1hWn2wRIm2ChauwOQOV9rnOy4W1WuyHqorO5wnnosVzo+T7qo8k/0PHeuO/oj02M0K9QaVDFu+QyQa+lc6LxXWs/UV1jJJEtD/gKNy1dm+bxGq2UdYx+DyVNjcs6zNMh20hPphbRnk38B
Browser:
Firefox v.105.0.1
Operating System:
Pop!OS 22.04   (ubuntu)
I saw this issue developing in Angular. Sandcastle behave the same.

Hi @spiderdab, changing the arc type to geodesic allows the polygon to fill. Otherwise, I believe the polygon appears to not be filled due to intersecting with the earth's ellipsoid.
This comment has a workaround that may help.

Hi and thank for helping.
I've tried the Geodesic workaround and the fill was ok with the same polygon:
here
but if I put a more complicated polygon (taken from a satellite geojson) it gives me an error..
example:
here
I also tried to reverse the points order (maybe a problem with anticlockwise..) but the result is the same..
Any idea, where the problem is, here?
p.s. the border seems correct.. it is just the fill. I have put the same coords in Mapbox and they look ok, so I think the numbers are correct.

@spiderdab I suspect that the original representation in 3D did cover the pole, but the 2D data in the GeoJSON does not.  Below is an image from QGIS showing the poles and the points creating the polygon.

Obviously still a problem, but not due to covering the pole.
@ggetz Is there any "Inspector" for polygon triangulation to help see what's going on or a description of how filling works?

Indeed I think that this satellite returns a footprint with a hole around the pole, so I was wrong with the issue argumentation..

Is there any "Inspector" for polygon triangulation to help see what's going on or a description of how filling works?

No, but that's a good suggestion @GatorScott! I'll add that suggestion to https://github.com/CesiumGS/cesium/issues/4871.
@spiderdab I do think the root issue here is a duplicate of #8042 as part of fixing that will need to include special consideration around the north and south poles. The overlapping in the second example (as @GatorScott alludes to) is likely a separate issue with triangulations for large polygons. As a workaround, users have had some luck by breaking up larger polygons into smaller ones.
If you agree, we can close this and move this discussion to those issues.

Thanks for your answer and suggestions.
Yes of course it can be closed.


Bumping Spaniel

This PR bumps spaniel to leverage the latest release-V2 tag

This can be closed.


Add sbt-launch-0.13.8.jar because something is wrong with it in the public repository

Build succeeded

Build succeeded


I heard the executor nezur literally pasted my entire source and left no credits at all LMFAO life is great having 70k discord members and pasting from my github repository

Is Nezur a rat or any other virus?

i literally deobfuscated their code all freaking xeno paste no change at all like atall
no rat i seen their source code so far

yh i tried nezur once never using it again

i cracked it for real


ImportError: cannot import name _orc

Meeting error import orc in RedHat 7, could you give some insights on how to solve it. thanks!
Traceback (most recent call last):
File "train.py", line 14, in
from pyarrow import orc
File "~/virtualenv-2.7/lib/python2.7/site-packages/pyarrow/orc.py", line 21, in
from pyarrow import _orc
ImportError: cannot import name _orc

How have you installed pyarrow?

installed via pip

@ishare you can obtain this functionality in the meantime by installing with conda

Why was this issue closed? From version 0.15, I still have the same error, so I cannot use newer versions of pyarrow until ORC is available for usage.
Here the very simple snippet to reproduce error (tested with pyarrow==0.16.0):
from pyarrow import orc
# Throws:
#     23 from pyarrow import types
#     24 from pyarrow.lib import Schema
# ---> 25 import pyarrow._orc as _orc
#      26
#      27
#
# ModuleNotFoundError: No module named 'pyarrow._orc'

The issue is tracked in JIRA, please comment there (obviously the issue is clear, all we need is someone to implement it).

If anyone comes across this while searching the internet, the latest JIRA issue about having pyarrow.orc in the wheels is https://issues.apache.org/jira/browse/ARROW-7811. We had to disable it a while ago due to a packaging issue and no one has volunteered to fix it yet


invocant is searchable but :D: is not searchable

We can see many :D:s in the document, for example
method params(Signature:D:) returns Positional

(Cited from https://docs.perl6.org/type/Signature#method_params )
And there is a description of :D: in the following page.
https://docs.perl6.org/type/Signature#Signature_Literals
However I think that the above page doesn't seem to explain the relation between :D: and invocant explicitly, and associating with the keyword invocant just from :D: is difficult for users.

:D: isn't the "invocant". :D is a type smiley and : is used to demarcate the invocant in the signature, like ($: $, $). So there's no such thing as :D: as a single item. It can be written as method params(Signature:D    :    ) returns Positional

https://docs.perl6.org/type/Signature#Parameter_Separators states:
"As an exception the first parameter may be followed by a colon instead of a comma to mark the invocant of a method."
We can't make readers read better by adding more to read. I will therefor close this ticket.


Update Pages “about”

Automatically generated by Netlify CMS

👷 Deploy Preview for reviewza processing.

Name
Link

🔨 Latest commit
22eaa4cea34a1adf480fd020628e20aaa207faeb

🔍 Latest deploy log
https://app.netlify.com/sites/reviewza/deploys/6356a54f3e7312000888c061


How to change the timeout param to deal with error context deadline exceeded

For some business methods that take a long time, rpc processing takes longer than the default 2s and returns a context deadline exceeded error. When I tried to extend the timeout period by modifying the Timeout parameter, I found that it did not take effect.
For example, I use time.sleep(5) in rpc to simulate a long time-consuming business method. I want to set the Timeout parameter  to 10s in the yaml config. There will not discuss whether the business time-consuming of 10s is reasonable.
Test 1
Only modify the Timeout in the api or rpc , the default 2s timeout will be executed, and then the error context deadline exceeded will be return.
Test 2
Set the Timeout parameter in api and rpc at the same time, you will found that after the 3s timeout, and error context deadline exceeded.  I found that the default value set in zrpc/internal/client.go in the source code is dialTimeout = time.Second * 3 https://github.com/zeromicro/go-zero/blob/9d528dddd620c6d5a32cb8eed38edd710093ece4/zrpc/internal/client.go#L18
Test 3
Set the Timeout parameter in api and rpc at the same time, and then set  rest.WithTimeout(time.Second*10)  in handler/Routes.go in api , you will found that it returns success.
But the file handler/Routes.go will be overwritten every time when the api template is regenerated, because this file is // Code generated by goctl. DO NOT EDIT.
So, what is the correct configuration method of Timeout?

go-zero version [v1.2.4]
goctl version [v1.2.4]

I don't really get the problem.
Timeout is in config file, it will not be overwritten.
And Timeout does work to control the timeout, so what's the problem?

Okay, I know. I will try again.

I seem to figure it out.

I seem to figure it out.

I have the same problem. So, what is the correct configuration method of Timeout? Thanks.

I seem to figure it out.

I have the same problem. So, what is the correct configuration method of Timeout? Thanks.

Don't forget to change both client and server sides.

I seem to figure it out.

I have the same problem. So, what is the correct configuration method of Timeout? Thanks.

Don't forget to change both client and server sides.

So, both rest.RestConf.Timeout、zrpc.RpcClientConf.Timeout and zrpc.RpcServerConf.Timeout should be changed, right?


Certificate Module

Features:

Lead/core can upload certificate pdf with text font and colors.
Lead/core can generate a pdf preview before uploading the pdf metadata to make sure the certificate design looks good.
Lead/core can save the certificate pdf file and font file with its metadata on the server if everything looks good on the preview.
Participants can generate their certificate anytime they want if they have attended the full event and the certificate design is ready on the server.

@goelaakash79 @mayanksh99
This is for your reference:

To request the PDF preview with pdf and font file with x,y,size and rgb as query params.

here x,y are the coordinates of text on PDF, size is the font-size and rgb is font color

axios.post("http://localhost:5000/api/v1/events/certificate/previewname=Rohan%20Mehta&x=476&y=1380&size=120&red=66&green=208&blue=253",dataForm,{
	responseType: "blob", //Force to receive data in a Blob Format
}).then((response) => {
	console.log(response);
	//Create a Blob from the PDF Stream
	const file = new Blob([response.data], { type: "application/pdf" });
	//Build a URL from the file
	const fileURL = URL.createObjectURL(file);
	//Open the URL on new Window
	window.open(fileURL);
}).catch((err) => {
	//since response type is Blog, we need to parse if server sends a JSON resp.
	if (err.request.responseType === "blob" &&
		err.response.data instanceof Blob &&
		err.response.data.type &&
		err.response.data.type.toLowerCase().indexOf("json") !== -1
		) {
			let reader = new FileReader();
			reader.readAsText(err.response.data);
			reader.onload = () => {
					err.response.data = JSON.parse(reader.result);
					console.log(err.response.data);
			};
		}
});

To add the PDF with pdf and font file with x,y,size and rgb as body.

here x,y are the coordinates of text on PDF, size is the font-size and rgb is font color

 axios.post("http://localhost:5000/api/v1/events/certificate/add/eventid",{dataForm,x,y,size,red,green,blue}).then((response) => {
	console.log(response);
	// simple JSON response
}).catch((err) => console.log(err.response));

To generate the PDF(participant side).

here x,y are the coordinates of text on PDF, size is the font-size and rgb is font color

axios.get("http://localhost:5000/api/v1/events/certificate/generate/eventid",{
 responseType: "blob", //Force to receive data in a Blob Format
}).then((response) => {
	console.log(response);
	//Create a Blob from the PDF Stream
	const file = new Blob([response.data], { type: "application/pdf" });
	//Build a URL from the file
	const fileURL = URL.createObjectURL(file);
	//Open the URL on new Window
	window.open(fileURL);
}).catch((err) => {
	//since response type is Blog, we need to parse if server sends a JSON resp.
	if (err.request.responseType === "blob" &&
		err.response.data instanceof Blob &&
		err.response.data.type &&
		err.response.data.type.toLowerCase().indexOf("json") !== -1
		) {
			let reader = new FileReader();
			reader.readAsText(err.response.data);
			reader.onload = () => {
					err.response.data = JSON.parse(reader.result);
					console.log(err.response.data);
			};
		}
});

okay, understood.

cool, but if we store all certificates directly on the server, will it affect storage/performance?

cool, but if we store all certificates directly on the server, will it affect storage/performance (later)?

Storage might be an issue, we can shift to AWS s3 later.


fix: move some scope calculations out of main loop

This pull request moves the calculation of the scope index out of the main loop, since we want to be able to figure this out without including lines all the way from the start of the scope if we are in the middle of a very long scope.
Since we no longer need to include as many lines to get good highlighting, I also lowered the default value of viewport_buffer.max from 500 to 60. I think we can lower both min and max even more, but at that point it becomes a question of personal preference. I picked 60, since that should about cover one full screen for most people (I think?).
Furthermore, I added a comparison between the start line and end line whitespace tables, and we use the smaller one to calculate the scope index. This fixes #752, and I can't think of any normal formatting style that will get worse highlighting by this. If you want, I can include an option for whether to use the start (of the scope), end or the minimum of both?

I updated this based on your comments now. If you have anything else you would like to update, I can do that too, and then I plan to squish the commits afterwards.


2404: rename args to PanelComponent

Context
The new version of govuk-components has renamed a couple of args to initialize a PanelComponent.
This is raising an exception on our code. See sentry
Changes proposed in this pull request
Rename :title and :body params when initializing the GovukComponent::PanelComponent on thank_you.html view
Guidance to review
See card 2404

 Fix Thank You bug after components upgrade


Added extra information and reference cast storage to get values

Added extra information and reference cast storage to get values

@all-contributors add @sbalk for docs


BUG - midi-bricks-persisted-app-settings.json incorrect

Does the issue occur in the electron-app or the web-app?

[ ] midi-bricks-electron
[ ] midi-bricks-web-app
[x] I do not know nor understand

Can you determine, which version was used?
Version: 1.2.3
Describe the bug
the file contains only the text "null"
solved:
replaced the file with yours, worked

I have a fix...

fix in v.1.2.5: https://github.com/TimSusa/midi-bricks-mono/releases/tag/v1.2.5


DB statistics collection takes too long time

When running dbt2-run-workload with a target duration set to 2 hours, database statistics takes almost 4 hours.
Command executed:
$ dbt2-run-workload -A -l 5444 -a pgsql -d 7200 -D dbt2 -F 2 -H <IP_ADDRESS> -n -o /tmp/dbt2-data-tde -s 37500 -t 1 -u -w 2000 -y -z "My report"

One possibility is that the time it takes to collect stats could be taking long enough that each iteration of collection stats continues to extend how long this script is actually going to run.  The dbt2-pgsql-db-stat script doesn't account for how long the commands take to run, even though they are all fired off into the background.
We can explore adding an additional check to see how much time has passed and quit when either the requested iterations expired or when we've run longer than the expected duration.
I don't think this explains why the time is doubled in a 2 hour test but at least we can put in some mechanism to try not to run longer that the test is supposed to.

Closing, hopefully fixed with script updates.


Input manager

Context abstraction (SDL only included in SdlContext.cpp and nowhere else)
Input Abstraction (AGE enums for inputs)
Controller (XboX controller handling)
Difference between mapped and physical keys
It is VERY LONG and laborious to add another context (you need to reimplement the files SdlContext.cpp, SdlContext.hh and SdlToAgeInputs.cpp and to add a visual studio configuration to exclude those files from the project and replace them with the new implementation) so the GLFW context might never be implemented (it works very well with the SDL).
close #144

That'is totaly okay for me ! Great job !!! :clap:
Juste on question / problem. When the Xbox controller is plugged, we don't have access anymore to keyboards input. It'll be great to have both access.

Then juste move the block of code that handles the keyboard input outside the "else" statement.

I let you do it on my last PR :)
2015-03-10 9:41 GMT-04:00 paulbaron<EMAIL_ADDRESS>
Then juste move the block of code that handles the keyboard input outside
the "else" statement.
—
Reply to this email directly or view it on GitHub
https://github.com/Another-Game-Engine/AGE/pull/366#issuecomment-78054238
.

--
[image: dancing frog animation][image: dancing frog animation][image:
dancing frog animation][image: dancing frog animation][image: dancing frog
animation][image: dancing frog animation][image: dancing frog animation][image:
dancing frog animation][image: dancing frog animation][image: dancing frog
animation][image: dancing frog animation][image: dancing frog animation][image:
dancing frog animation][image: dancing frog animation]

I gonna modify 1 or 2 things before merging this

oki ! work on MY PR i merge it with your code and update it with master's
code
2015-03-10 10:20 GMT-04:00 paulbaron<EMAIL_ADDRESS>
I gonna modify 1 or 2 things before merging this
—
Reply to this email directly or view it on GitHub
https://github.com/Another-Game-Engine/AGE/pull/366#issuecomment-78062465
.

--
[image: dancing frog animation][image: dancing frog animation][image:
dancing frog animation][image: dancing frog animation][image: dancing frog
animation][image: dancing frog animation][image: dancing frog animation][image:
dancing frog animation][image: dancing frog animation][image: dancing frog
animation][image: dancing frog animation][image: dancing frog animation][image:
dancing frog animation][image: dancing frog animation]

good for me :D

DO NOT MERGE IT WE HAVE PROBLEM WITH THREADS

My last commit correct the bug normally... have you tried it?

Not yet. Can you merge it with implement_new_deferred_shading please
(normally i correct it on the branch to)
2015-03-11 6:02 GMT-04:00 paulbaron<EMAIL_ADDRESS>
My last commit correct the bug normally... have you tried it?
—
Reply to this email directly or view it on GitHub
https://github.com/Another-Game-Engine/AGE/pull/366#issuecomment-78234814
.

--
[image: dancing frog animation][image: dancing frog animation][image:
dancing frog animation][image: dancing frog animation][image: dancing frog
animation][image: dancing frog animation][image: dancing frog animation][image:
dancing frog animation][image: dancing frog animation][image: dancing frog
animation][image: dancing frog animation][image: dancing frog animation][image:
dancing frog animation][image: dancing frog animation]


Update gsl-lite to v0.32.0

Updates gsl-lite, which is required for OSX (AppleClang) support.

jenkins, test this please

Jenkins CI test (for commit 5795a2b32a52e73747a217b8c313db9c9afc3f70, target branch master) failed with status FAILURE.
(For contributors, please wait until the reviewer confirms the details of the error.)

jenkins, test this please

Jenkins CI test (for commit 5795a2b32a52e73747a217b8c313db9c9afc3f70, target branch master) succeeded!

LGTM


Move the maxReachedTooltip variable to a prop.

This leads to a loss in reactivity for the default value, but there is no neat way (I know of) that allows customizing it while maintaing reactivity of the default value.
Closes #13

I'm thinking of maybe moving this to a named slot? That way we retain reactivity of the default value and consistency with the way this stuff is customized in Autocomplete.

That's not possible because we use that value in the HTML title attribute. We could replace it with a Popover (acting like a tooltip), but I don't prefer that option (feels like an overkill).

We could do something like:
export let maxReachedTooltipOverride = null;
$: maxReachedTooltip = maxReachedTooltipOverride ?? `...`;

I thought about that option but didn't think it was neat (felt like a hack). But now that I see it written, it may not be that bad; seems decent enough.


tmux jshell output

I don't know whether this qn has been asked previously or not.
If we are using the normal ubuntu (not the tmux) and run the given test.jsh, we can scroll up and down to see the full output. However, when we are using tmux to split our screen, we cannot see the full output. It's hard to check the output especially for our Lab 3. Is there any way to solve this?

No, this question has not been asked previously.
I also noticed this during yesterday's lab due to the long jshell execution.
Try Ctrl+B and then :set -g mouse on.
Note  that you don't need to do this when logging in to PE Node as they already provide you these settings.

you can also pipe the output to other programs such as less to view it as well.
like this jshell .... | less

Ctrl+B (or Ctrl+A if you're using penode's tmux) + [, then use either arrow keys or page up/down to scroll. Q to exit scrolling mode.

Ctrl+B (or Ctrl+A if you're using penode's tmux) + [, then use either arrow keys or page up/down to scroll. Q to exit scrolling mode.

This was my original solution but somehow we cannot use the mouse scroller to hover. Works with arrow keys anyways so I guess it's also viable.

My bad, after further testing I realised page up/down doesn't work in penode's tmux. Mouse scrolling is the fastest (and more precise) way to scroll, and your solution enables that.


Add encoding types to the logger

Should handle Jason and console.
This is combined with log-level to allow more fine grained control of the logging process


Dockerfile fixes

Adding in environment variables for sub modules
Picking up Jess' changes to the caching on the build.
Adding in fig>compose from Ben
Signed-off-by: Mary Anthony<EMAIL_ADDRESS>

Looks like we would not be able to merge this PR because of merge conflicts. Please fix them and force push to your branch.

I don't know why this one keeps effing up...I'm using the same process i always do. I did tweak my .git/config so maybe that


added avaliable ubuntu bionic packages

These packages are available in the bionic repository

i can do both, what do you prefer?

Using the * syntax for the current and expected future versions would be great. Listing the older versions explicitly as blank.

Rebased and resolved conflicts now that https://github.com/ros/rosdistro/pull/18767 has been merged


Can't find glslValidator.exe

There is a problem locating the glslValidator. Before the most recent update I had it set up to a specific path but now it can't find it and even if I add it to the System Path it doesn't work. Some change in the most recent update broke this. I'm on Windows 7
Thanks for the neat plugin!

Apologies @ricanteja I didn't test on Windows before the last release.
I've unpublished 1.0.3 until I can test the change on Windows. In the meantime you might need to reinstall linter-glsl as I'm not sure Atom will prompt you to downgrade it to 1.0.2.

apm had problems republishing 1.0.3 so I had to bump up to 1.0.4, but the fix should be in there.
The bug was due to me assuming fs.assessSync returns a boolean. It doesn't - it throws an exception instead if the required condition isn't met.
Let me know if you have any more issues with this.

It's fixed! Great work!


Bad package.json version

When installing with bower I get the following warning:
bower font-awesome-animation#0.0.8    mismatch Version declared in the json (0.0.7) is different than the resolved one (0.0.8)
This is due to the package.json version have not been bumped to 0.0.8

Done with those PR: #17 & #18 .

thanks :+1: