pygeos installed with pip on macos conflicts with numpy 2

❯ ipython                                                                                (pygeos)
Python 3.11.10 | packaged by conda-forge | (main, Sep 10 2024, 10:57:35) [Clang 17.0.6 ]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.27.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import pygeos

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.1.1 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last):  File "/opt/homebrew/Caskroom/miniforge/base/envs/pygeos/bin/ipython", line 10, in <module>
    sys.exit(start_ipython())
  File "/opt/homebrew/Caskroom/miniforge/base/envs/pygeos/lib/python3.11/site-packages/IPython/__init__.py", line 130, in start_ipython
    return launch_new_instance(argv=argv, **kwargs)
  File "/opt/homebrew/Caskroom/miniforge/base/envs/pygeos/lib/python3.11/site-packages/traitlets/config/application.py", line 1075, in launch_instance
    app.start()
  File "/opt/homebrew/Caskroom/miniforge/base/envs/pygeos/lib/python3.11/site-packages/IPython/terminal/ipapp.py", line 317, in start
    self.shell.mainloop()
  File "/opt/homebrew/Caskroom/miniforge/base/envs/pygeos/lib/python3.11/site-packages/IPython/terminal/interactiveshell.py", line 917, in mainloop
    self.interact()
  File "/opt/homebrew/Caskroom/miniforge/base/envs/pygeos/lib/python3.11/site-packages/IPython/terminal/interactiveshell.py", line 910, in interact
    self.run_cell(code, store_history=True)
  File "/opt/homebrew/Caskroom/miniforge/base/envs/pygeos/lib/python3.11/site-packages/IPython/core/interactiveshell.py", line 3075, in run_cell
    result = self._run_cell(
  File "/opt/homebrew/Caskroom/miniforge/base/envs/pygeos/lib/python3.11/site-packages/IPython/core/interactiveshell.py", line 3130, in _run_cell
    result = runner(coro)
  File "/opt/homebrew/Caskroom/miniforge/base/envs/pygeos/lib/python3.11/site-packages/IPython/core/async_helpers.py", line 128, in _pseudo_sync_runner
    coro.send(None)
  File "/opt/homebrew/Caskroom/miniforge/base/envs/pygeos/lib/python3.11/site-packages/IPython/core/interactiveshell.py", line 3334, in run_cell_async
    has_raised = await self.run_ast_nodes(code_ast.body, cell_name,
  File "/opt/homebrew/Caskroom/miniforge/base/envs/pygeos/lib/python3.11/site-packages/IPython/core/interactiveshell.py", line 3517, in run_ast_nodes
    if await self.run_code(code, result, async_=asy):
  File "/opt/homebrew/Caskroom/miniforge/base/envs/pygeos/lib/python3.11/site-packages/IPython/core/interactiveshell.py", line 3577, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-1-212f7c7fc761>", line 1, in <module>
    import pygeos
  File "/opt/homebrew/Caskroom/miniforge/base/envs/pygeos/lib/python3.11/site-packages/pygeos/__init__.py", line 1, in <module>
    from .lib import GEOSException  # NOQA
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
AttributeError: _ARRAY_API not found
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Cell In[1], line 1
----> 1 import pygeos

File /opt/homebrew/Caskroom/miniforge/base/envs/pygeos/lib/python3.11/site-packages/pygeos/__init__.py:1
----> 1 from .lib import GEOSException  # NOQA
      2 from .lib import Geometry  # NOQA
      3 from .lib import geos_version, geos_version_string  # NOQA

ImportError: numpy.core.multiarray failed to import

In [2]:

pygeos is working when installed with mamba:
mamba install pygeos

pygeos has been replaces with shapely


PermissionDeniedError returned when trying to share screens using statefull components and teams toolkit

Im getting a permissionDeniedError when I attempt to share my screen using a video statefull component inside a teams toolkit app built with React.

Before switching to the statefull components, I was using the Video Composites and was able to share screens with no issue. I made sure that I had the correct permissions on both the teams toolkit manifest and on chrome's browser permissions. It turned out that for our use case, having the statefull components was a better fit and so we changed to that. When testing the call aspects, the camera and microphone work as intended, but the share screen feature returns the error above.
The calling component has this code:

Here is the complete state creation process:

The code section that manages the video stream is as follows:

And here is where the calling component is render along with the state checks being made:

Here are the currently active permissions present in the manifest files:

Finally here is my complete set of package dependancies:

OS & Device: Windows 10 on PC
Browser: Google Chrome & Microsoft Edge
Browser Version: 114.0.5735.134 (Official Build) (64-bit) [Chrome]. Version 114.0.1823.43 (Official build) (64-bit) [Edge]

Code snippet as texts:
CallingComponents.txt (Component created)
ChatStatefuls.txt (state management & component called)
manifest.txt (app persmissions)
package.txt

@AlbertoPerez8  thanks for writing this issue. We are looking into this with the team and will be sharing a response when we have any ideas.
This is a really interesting scenario. We haven't directly tried building an experience with Azure Communication Services and Teams Toolkit but we do know it is quite a hot topic. Thanks for sharing you were able to have the Call Composite work directly with the Teams Toolkit with the correct permissions set.
From the console I believe I am reading we fail on the screenshare call, then we leave the call, and then we hit a button but we are already out of the call so that action is not allowed?
Perhaps you can walk us through some of the experience you are seeing.

Do you have a screen sharing button?
When you click on the screen sharing button is that when the exception throws?
Are you able to load up the screen share chromium dialog to select your tab/window/screen?
Are you hitting cancel at any time during the chromium screenshare dialog?

The more we understand about your experience the more insight we may have in helping to provide a helpful response.

We do have a small bug on the case when we answer a call from a sister app built solely with react, where the application on teams creates a secondary call when answering, but for the experience flow I'll explain the case when the call is created from the toolkit application since the duplicate call issues doesn't present itself.
The process begins where the user working with the teams toolkit app creates the call and the reciever on the sister app answers.  From here the user has the options to click the buttons in the little menu to turn on/off the camera, mute/unmute, present your screen in the call, view chat participants, and end the call.
 (call screen)
 (call screen with developer tools on)
In this example, I cleared the developer tools console, and immediately pressed the button for screen sharing and took this screenshot with the error.
 (error when pressing share screen button)

(error close up)
When I would reach this point in previous tests before checking the developer tools console, I did not received any indication that there were any errors or issues, apart from not being able to see any pop-ups that normally appear asking what screen or window to share in other applications. No screen share dialogs where opened when clicking the button at all.
That's when I was reminded to check the dev tools console, and saw the error above.
Other than this issue and the aforementioned double calls bug, no other issues appear from using the state full. I am able to operate camera and microphone actions, as well as terminating the call.

@AlbertoPerez8 Sorry for the late response.
I am wondering if there is something specific with using Teams toolkit that interferes with screen sharing operation. I tried screensharing from our calling quickstart and found no issues with screen sharing but I did not incorporate any Teams toolkit code. I will need some time to investigate and get acclimated with the basics of Teams tool kit.
Is Teams tool kit just used just for UI to wrap the stateful components code? Or does it also use the ACS token and id?
Also does the sister app, you mention also get this screensharing error? I'm assuming the sister app does not incorporate Teams toolkit code?

So the sister application is running the acs communication library just on a create-react-app application without the use of the Teams Toolkit, and it hasn't run into any screen sharing issues. The teams toolkit used for my app is wrapping my application, rendering it inside an Iframe. The toolkit does make me ask the user permission to gain access to their media (i.e. microphone, camera, and speakers) and its allowed when I'm testing in both the toolkit and browser window, but it still wouldn't let me screenshare.

Hey @AlbertoPerez8, sorry for the late response. Is this still an issue? I have not had a chance to try teams toolkit yet but we have had numerous permission fixes in our newest version since this issue was filed.

Closing this issue due to staleness. @AlbertoPerez8 please re-open if this issue is still happening.


P2P code review

Hello @fithamlak
Your code looks good when run locally
Well done 👍
However
The live demo link doesn't give the expected results. Please look into this

thank you it was deployed from an other branch


Module incompatibility

minio-go uses go.mod but it does not declare itself as v6. This makes using v6.0.15 and later harder as it is incompatible with semantic import versioning.
I saw PR(#1021) from @marwan-at-work which changes the import paths and have version in go.mod, which is I think better way to move on to modules. It would be even better to include go.mod file and change imports to have major version in the next major version release as suggested in module documentation.
Related documentation

If the module is version v2 or higher, the major version of the module must be included as a /vN at the end of the module paths used in go.mod files (e.g., module github.com/my/mod/v2, require github.com/my/mod/v2 v2.0.0) and in the package import path (e.g., import "github.com/my/mod/v2/mypkg").

thanks for reporting @ebati we’ll take a look

@ebati feel free to send a fix

What is the agreed solution here? Do you want to create new major version(v7)?

Why not v6 ?

Also if you want to update you can update to go get -u<EMAIL_ADDRESS>My concern is go mod is asking us to do some weird form of import styles.

After getting minio-go with go get -u<EMAIL_ADDRESS>downloaded version is not listed as v6.0.18 but listed as v0.0.0-20190223084638-008c7aa71fc1 in go.mod file and also v6.0.14 is shown as update in go list -m -u all as below
github.com/minio/minio-go v0.0.0-20190223084638-008c7aa71fc1 [v6.0.14+incompatible]
Editing go.mod file manually and writing v6.0.14 solves v0.0.0-* problem but v6.0.14 is still shown as update.
Moving forward with modules requires "weird" import style. AFAIK, it is necessary to be able to handle importing multiple version of the same module. Also, since having different major version shows different APIs, it is understandable to differentiate them with different import paths.
I believe that removing go.mod file is a better option than putting an incompatible go.mod file.

I believe that removing go.mod file is a better option than putting an incompatible go.mod file.

I guess removing go.mod is perhaps acceptable for now.  The import styles are really not the way it should have been implemented.  Migrating to newer versions such as v7 becomes even more problematic. Our releases are really automated and taking care of manually creating these directories in a git repo - when we move to the next major version is just going to be painful.

Will fix this properly, as I figured there is a more easier way.

Fixed by https://github.com/minio/minio-go/pull/1111


Hide the header

Hi, really cool component. Is there any way to hide the header text to save some space?

alright I edited the header out


read_gbq query keyword argument changed from 0.16.2 to 0.17.0

Environment details

OS type and version: Databricks 9.1 LTS
Python version: 3.8.8
pandas_gbq version: 0.17.0

Steps to reproduce
Not a major problem, but the read_gbq function had its first keyword argument changed:
In 0.16.1 it was query and now in 0.17.0 it is query_or_table

Thanks for pointing this out. I hadn't realized folks were using query as a keyword argument.


Error: Failed to get taint toleration setting before starting CSI driver

Okay, I'm not very good with these issue reports, so please be kind :) My environment consists of the following:

Kubernetes as deployed by Rancher (not HA) across three nodes.

Using version 1.14.6-rancher1-1.
Two of the nodes are deployed under a KVM hypervisor whilst the other is on a bare-metal server, all of which are under my complete control (i.e. I own all three bare-metal servers which include the KVM hypervisors that are installed too).
This is a custom setup and not deployed on AWS, GKE, etc.
Canal is the network provider for Kubernetes in this instance.

There are plentiful resources to go around, including 24 GB of free RAM and 12 x free CPU cores.

The issue that I'm encountering is that I upgraded to 0.6.0 of the available Longhorn library from the applications database, having had 0.5.9 previously installed which worked perfectly fine. But upon upgrading, I was greeted with this from longhorn-driver-deployer:
time="2019-09-22T10:04:35Z" level=fatal msg="Error deploying driver: failed to get taint toleration setting before starting CSI driver: settings.longhorn.rancher.io \"taint-toleration\" not found"

This is also displayed at the top when viewing details about the application:
Failed to install app longhorn-system. Error: UPGRADE FAILED: timed out waiting for the condition

You may see my settings for the application by clicking here. I think that's it though! I will now begin the process of rolling back to the previous version, since this Kubernetes cluster is a production system.
--
Regards,
Christopher McGill
Proprietor / Lead System Administrator
https://gekkofyre.io/
GekkoFyre Networks

@phobos-dthorga Thanks for reporting, we're looking into this now. Have you collected any log we can take a look?

@phobos-dthorga We found the problem, fixing it.

@phobos-dthorga We cannot reproduce the issue in the lab. Was your Longhorn UI up? That means UI can connect to the Longhorn manager and we would know the manager is up. In your case, I think it might be something blocking Longhorn manager from starting up correctly. Once Longhorn manager is up, taint toleration setting should be set.
I am not sure what's the root cause of the issue, but there is a workaround:
Copy the following code snippet into toleration.yaml:
apiVersion: longhorn.rancher.io/v1alpha1
kind: Setting
metadata:
  name: taint-toleration
  namespace: longhorn-system
value: ""

Then run kubectl create -f toleration.yaml. This should add the missing toleration setting.

I just updated from 0.5 and I am also experiencing this problem. Workaround fixed the problem.

@courcelm Can you check the Longhorn managers' log and see if it's due to #754 ?

Sound like #754 is the culprit!

This is the symptom of #754 . Once the manager is up, the setting should be set correctly and deployer should continue to work.

@phobos-dthorga No problem, glad it resolved!
Just one note: the settings on the app page only apply if there is no current setting in the Longhorn UI (e.g. new installation or upgrade to a new version with more settings), to prevent accidentally overridden the current Longhorn setting.


Compile for iOS

Guys, can you add documentation section how to compile lib for iOS?

./configure --with-openssl=/usr/local/openssl-1.0.2j –with-jansson=/usr/local/opt/jansson & make

It's fine for you @emartynov ?

Sure, but should it be part of README?

Yes @emartynov .
This library can be build for several architectures. And developers don't have to know in this case how to build for iOS architectures or others.
I fought a lot to find how to build static libraries for iOS. We could help more people if it is added in a README.
I will generate a pull request.
Regards

I'm not ios developer but was looking to the library and I was not able to match knowledge of make file with the linking for iOS.
Thank you!

@garnaizd Could you post the library here for us to include directly into our projects?

From where do i get the .a file mentioned on the script. Please help
cp -p src/.libs/libcjose.a ${PREFIX}/lib/libcjose.a

#!/bin/bash
export DEVROOT=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
DFT_DIST_DIR=${HOME}/libcjose-ios-dist
DIST_DIR=${DIST_DIR:-$DFT_DIST_DIR}
function build_for_arch() {
ARCH=$1
HOST=$2
SYSROOT=$3
PREFIX=$4
IPHONEOS_DEPLOYMENT_TARGET="9.0"
echo "**************Building cjose for ${ARCH}****"
#Openssl
export libcrypto_LIBS="-L/Users/gemma/Desktop/xcode/dependencies/OpenSSL/lib -lcrypto"
export libcrypto_CFLAGS="-I/Users/gemma/Desktop/xcode/dependencies/OpenSSL/include"
#export libcrypto_LIBS="-L/usr/local/opt/openssl/lib -lcrypto"
#export libcrypto_CFLAGS=-I/usr/local/opt/openssl/include
#Jannson
export jansson_LIBS="-L/Users/gemma/jansson2.8/lib -ljansson"
export jansson_CFLAGS="-I/Users/gemma/jansson2.8/include"
export PATH="${DEVROOT}/usr/bin/:${PATH}"
export CFLAGS="-arch ${ARCH} -pipe -Os -gdwarf-2 -isysroot ${SYSROOT} -miphoneos-version-min=${IPHONEOS_DEPLOYMENT_TARGET} -fembed-bitcode"
export LDFLAGS="-arch ${ARCH} -isysroot ${SYSROOT}"
make clean
./configure --host="${HOST}" -with-openssl="/Users/gemma/Desktop/xcode/dependencies/OpenSSL" --with-jansson="/Users/gemma/jansson2.8" && make
echo "Configure finished"
mkdir -p ${PREFIX}/lib/
cp -p src/.libs/libcjose.a ${PREFIX}/lib/libcjose.a
}
TMP_DIR=/tmp/build_libcjose_$$
build_for_arch i386 i386-apple-darwin /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk ${TMP_DIR}/i386 || exit 1
build_for_arch x86_64 x86_64-apple-darwin /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk ${TMP_DIR}/x86_64 || exit 2
#build_for_arch armv7s armv7s-apple-darwin /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk ${TMP_DIR}/armv7s || exit 4
build_for_arch armv7 armv7-apple-darwin /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk ${TMP_DIR}/armv7 || exit 5
build_for_arch arm64 arm-apple-darwin /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk ${TMP_DIR}/arm64 || exit 3
mkdir -p ${TMP_DIR}/lib/
${DEVROOT}/usr/bin/lipo
-arch i386 ${TMP_DIR}/i386/lib/libcjose.a
-arch x86_64 ${TMP_DIR}/x86_64/lib/libcjose.a
-arch armv7 ${TMP_DIR}/armv7/lib/libcjose.a
-arch arm64 ${TMP_DIR}/arm64/lib/libcjose.a
-output ${TMP_DIR}/lib/libcjose.a -create
mkdir -p ${DIST_DIR}/include
cp -p /usr/local/include/cjose/*.h ${DIST_DIR}/include
cp -r ${TMP_DIR}/lib ${DIST_DIR}

How can i install the open ssl for xcode, jansson2.8 and from where can i get libcjose.a


Abhi jain patch 1

please check it now

how should I do, basically by mistaken I removed the package-lock.json file and later I added it as well, and that is conflicting error
can you help me

hey  @abhijain2003  check this doc
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/addressing-merge-conflicts/resolving-a-merge-conflict-on-github

@abhijain2003 I think you deleted a file.

i think I messedup thinks

You can close it. Create another fresh PR. don't forget to check the official doc https://linkfree.eddiehub.io/docs/quickstart


Add a DSC Script Resource for Bootsrapping Sandbox

[x] Have you signed the Contributor License Agreement?

Related to #130038

@denelon - I decided to make a script resource anyways to handle the logic for sandbox. The documentation wasn't super clear, but I think I figured it out.
Microsoft Reviewers: Open in CodeFlow

I cri. Why is it giving path error, I thought I fixed that in policy :(


CORS is not working for ionic apps.

Please speak English, this is the language everybody of us can speak and write.
Please ask questions or config/deploy problems on our pREST channel: https://gitter.im/nuveo/prest
Please take a moment to search that an issue doesn't already exist.
Please give all relevant information below for bug reports, incomplete details will be handled as an invalid report.

You MUST delete the content above including this line before posting, otherwise your issue will be invalid.

pREST version (or commit ref):
pREST endpoint:
PostgreSQL version:
Operating system:
Go version:
Log gist:

Description
...

@suvarapuprasad could you provide more description about this?
What is the error message posted by ionic?


Prepass

I need to use prepass to support urql in ssr mode, where can i run prepass from react-ssr-prepass

Hi, Rakkas doesn't need react-ssr-prepass because it actually supports Suspense on the server! :)
First of all, you may not need urql at all. Rakkas's builtin useQuery is very capable and you can use it for GraphQL as in this example. You can write your own hook to make it easier to use if you want. It will give you automatic support for document level caching and streaming SSR.
But urql provides a few extras such as request deduplication and (optionally) normalized caching. So I've just added an integration example, see it in action here.
The important bits are in entry-hattip.tsx and entry-client.tsx. It follows urql's SSR docs pretty closely.
One import point which isn't obvious though is this bit here. throttleRenderStream: true disables streaming so that all data is ready by the time emitToDocumentHead is called. This is still much more efficient than react-ssr-prepass.
A better integration would implement a "streaming SSR exchange" for urql which would use the emitBeforeSsrChunk hook to update the client cache as new data arrives in a similar way that Rakkas's own useQuery does but unfortunately I'm not that familiar with urql.
Hope this solves your problem!

thank you so much. I'm liking rakkas js more and more. All I need is here, ssr with remix like actions for form + vite + react ❤.


Upgrade MIME types, fix Model.js to not look at URL file extension.

This addresses @mramato's comment in 3a5eb8551, and also fixes a bug in Model.js where the URL itself was being used to distinguish bgltf from gltf.  Using the URL is incorrect because data-URIs do not contain file extensions.  Likewise, models fetched from a server-side database may not contain a filename with an extension.  So instead, we look at the binary magic number to see which path to take.
Thanks to @shunter for research & advice on this.  We should probably get his approval before merge.

:+1:

OK with me.  The only concern is if getStringFromTypedArray is a performance hit when TextDecoder isn't available, but that is on the slow path anyway, i.e., non Binary glTF.

It is a small performance hit, but only on the "slow path" as you mention.  The problem is the XHR responseType can only be set before making the request, and Cesium won't know if it's getting binary or JSON until after the request is made and the response starts to appear.  Expecting known file extensions to show up in 3rd-party app URLs is not the correct way to guess the outcome.  So instead, we expect binary, and take steps to convert back to a string if needed.

@shunter did you want to look at this?


Colorpicker text field coloboration

AS a user I want

When I selected a color(from Colorpicker plus "select Color" button pressed) I want the color to be represented in the text field below
I want to be able to insert hex code( or other code that is transformable with Color colorFrom to a Color) in the text field

Update.
Check out if an observer solution with a subclassed ColorPicker ( that has one modified(calls update) method) is the best solution / if there is a prettier method to implement observer on ColorPicker

(daran denken vorher super update aufzurufen)


raftstore-v2: add DATA_PREFIX

What is changed and how it works?
Issue Number: Ref #12842
What's Changed:
Because v2 doesn't share rocksdb, so it's possible to not write a prefix when
writing keys. However, because rocksdb doesn't support specifying infinite
upper bound in various APIs like properties, so we should solve those issues
before landing prefix-less write.

Check List
Tests

Unit test
Integration test

Release note
None

/merge


Responsive Style Props

Is there a way to make use of responsive style props? How about media queries? Can they be added as props too?

There's no built-in feature. You should handle it by yourself for now. We can add such a thing in the future, but we'll need to discuss and experiment some things before.
Thanks for the question.

This bothered me as well, handling responsive styles manually is pretty annoying. I really love the way that styled-system handles responsive props, something like this for reakit would be awesome!

We can think about dropping the inline style sugar to support styled-system. Personally, I don't like their API. Things like p={[1, 2, 3]} mean more to robots than to humans. It's hard to figure out without reading the specific docs.
But abstracting this is a very tough job. And that's probably the best we have so far.

@lluia I agree that a utility like this would help avoid cluttering up the API and creating messy props.
I've been using Reakit in combination with this hook to great success:
https://github.com/palmerhq/the-platform/blob/master/src/useMedia.tsx
Examples:
function Nav() {
  const isMobile = useMedia('(max-width: 768px)');

  if (isMobile) {
    return <MobileNav />
  }

  return (
    <DesktopNav />
  )
}

function Header() {
  const isMobile = useMedia('(max-width: 768px)');

  return (
    <Box height={isMobile ? '60px' : '80px' />
  )
}

Reakit v1 now supports styled-system. It can also be seamlessly integrated with reakit systems: https://codesandbox.io/s/ll8pzo20qm


Fix #2: Changed directory name from 'includes' to 'include'

exciting - for me :-)

Thanks Graham! That's a first for both of us.

cool - time for a cigarette then :-)
fwiw I did find my own 'Get started with Git' blog post useful so it may
help someone else...
http://gitstarted.blogspot.co.nz/2015/02/git-for-one.html
g
On 19/03/15 16:41, Alex Hill wrote:

Thanks Graham! That's a first for both of us.
—
Reply to this email directly or view it on GitHub
https://github.com/AlexHill/tinymezzce4/pull/3#issuecomment-83299628.


Fix bug of includes filter

Reject rows which is having falsy values like null, undefined.

Would love your take on this @tannerlinsley whenever you are free.
I am also facing some issues with this one and my initial workaround didn't last long.

@tannerlinsley I feel as though this easy patch is actually a pretty big deal for a lot of projects. Can you perhaps take a look at this?


Exception on calling isUpdateAvailable

isUpdateAvailable(url: 'https://test.com');   is throwing the following exception:
Exception has occurred.
AnyhowException (AnyhowException(This application is not properly installed: Could not auto-locate app manifest

Stack backtrace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: <unknown>
  13: <unknown>
  14: <unknown>
  15: <unknown>
  16: <unknown>
  17: <unknown>
  18: <unknown>
  19: <unknown>
  20: <unknown>
  21: <unknown>
  22: <unknown>
  23: <unknown>
  24: BaseThreadInitThunk
  25: RtlUserThreadStart))

Context:
On windows, calling isUpdateAvailable after calling Rustlib.init() in debug version.
Do you have any idea what could cause this?

Did you pack it using vpk pack and install it using the created installer? If you just run the debug/release build without packaging first, there will be missing files.
Also, trying to fetch updates from test.com will probably throw an exception anyway even if all necessary files are there, as there are no update files located on that domain

Oh. I did not pack it. I will try that. Thanks for the information.


Difference between platform and plugin

Hello,
I apologise for the easy question but being a newbie I have not realised the difference between platforms and accessory inside a config.json file.
Can anyone please advise?
I have noticed that some plugin require a platform to be specified, some others just accessories, why?
Can the coexist in the same config.json file?
Thnaks for clarifying, dan

So a platform is a group of accessory, have I understood correctly?
And then other “independent” accessories may coexists with platforms.
Is that correct?
Thanks,
Dan

Platforms can be configured dynamically. Essentially it does the heavy lifting for you, you login to your Nest,Ecobee, etc, and a platform will handle the declaring of accessories and their characteristics and auto link commands. Accessories allow more granular control and require more setup. You will have to setup the device name, IP address of the device for each device you want to link. That make sense?

Hi, I too have this question - what is the difference?
Mike


Inserting link doesn't work

When inserting a link it outputs 'insert link' in the console, however no link is getting inserted in the text area. That might be related to #95.

I'm experiencing this too.

I have just tried replicating this issue and it is working for me.

@michaelloistl @obuseme I am going to close this issue for now but if you can provide clear steps to reproduce this issue and I am able to reproduce it then I will re-open it.

I'm experiencing this too.  this a mistake

I'm experiencing this too.

I solved . First call     [self.editorView stringByEvaluatingJavaScriptFromString:@"zss_editor.prepareInsert();"];

This is still an issue.  I fixed similar to menuhui22's fix, by inserting:
   // Save the selection location                                                  [self.editorView evaluateJavaScript:@"zss_editor.prepareInsert();" completionHandler:^(NSString *result, NSError *error) {       }];
at beginning of:
- (void)insertLink:(NSString *)url title:(NSString *)title

@101airborne Please submit a pull request if you have fixed this issue.

I'm sorry but I am not in a position to do a pull request, but here is the entire changed -insertLink:url:title function:
`- (void)insertLink:(NSString *)url title:(NSString *)title {
// Save the selection location, preparing for insert - resolves ISSUE #104
[self.editorView evaluateJavaScript:@"zss_editor.prepareInsert();" completionHandler:^(NSString *result, NSError *error) {

}];

NSString *trigger = [NSString stringWithFormat:@"zss_editor.insertLink(\"%@\", \"%@\");", url, title];
[self.editorView evaluateJavaScript:trigger completionHandler:^(NSString *result, NSError *error) {

}];

if (_receiveEditorDidChangeEvents) {
    [self updateEditor];
}

}
`


fix(ui): prevent double scrollbars on windows

Description:
On windows when resizing Windows to a minimum allowed height double scrollbars sometimes appear.
This PR fixes this issue

How Has This Been Tested?
Manually

Screenshots (if appropriate):

Types of changes:
Bugfix

Checklist:

[x] My code follows the code style of this project.
[x] I have reviewed and updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes where needed.
[ ] All new and existing tests passed.
[x] My commits have been squashed into a concise set of changes.

Coverage remained the same at 19.848% when pulling fdc1c446e3402d793e17b07f59e8d3a412573099 on korhaliv:fix/double-scrollbars into 0f20884b54d79ca30b4a24e3e24d6ac108dfe3ec on LN-Zap:next.


exclude doesn't works with custom Field

   is_vaccinated = fields.Field(
        column_name = 'Is Vaccinated',
        attribute='patient_vaccine_status',
        widget = ForeignKeyWidget(PatientVaccinationStatus, 'is_vaccinated'
        )
    )

class Meta:
        model = PatientProfile
        fields = ('name', 'patient_id', 'contact_number', 'created_on',  'address', 'patient_status', 'bed_id', \
            'is_tested','test_type',  'vaccine_status','patient_migrate_to', 'patient_migrate_on', \
                  'patient_migration_reason' )
        # export_order = ('name', 'patient_id','created_on',  'contact_number', 'address', 'patient_status', 'bed_id','is_tested','test_type', 'is_vaccinated', 'vaccine_status')

        exclude =['is_vaccinated']

how can I exclude the is_vaccinated field .
Actually I am trying to download only selected data based on the filter..  for example, bed_id should not display for expired patients. for that.. I have updated the static exclude variable in  custom filter class , but.. it doesn't works for custom fields (such as is_vaccinated). Is there any way to exclude them, without actually deleting that field (I mean , I don't have to remove the is_vaccinated  field for that)
or if there is any work around then please suggest me, your help and response will be highly appreciated.
Thanks.

Hi @ayushbisht2001, did you find a solution to your problem? I'm having the same problem. I want to export some fields but not use them to import.

Me too. Can anyone know the solution ? Please help us 🙏

If you want to control which fields appear in the export, you can override get_export_order() to return an iterable containing just the fields you need, for example, this will export only the 'id' field.
class BookResource(resources.ModelResource):
    name = Field(attribute="name", column_name="Book Name")

    def get_export_order(self):
        return ("id",)

    class Meta:
        model = Book
        fields = ('id', 'name', 'author_email')

If you want to control which fields are exported, perhaps based on a check against the instance to be exported, then there are some hooks in the code which you can use to modify the data before it is exported:

before_export(queryset, *args, **kwargs)
after_export(queryset, data, *args, **kwargs)

You can override these methods in your Resource class.  Alternatively you can override the export() method completely to have complete control over the export.

@matthewhegarty Looks odd for me but thank you for solution!


Doesn't work with two factor authentication

If 2fa is enabled it isn't able to display my grocery list.

Sorry. This module doesn't use official API (There is no official API for Google ShoppingList yet.) So, 2fa is not supported.


Multiplayer limits cannot be changed

The sliders to adjust and change time, score, and team score won't respond to any inputs other than A and B.

Should be fixed now. This was also affecting all the other sliders in the menu.


[Bug]: context.tracing() breaks Inspector

Playwright version
1.14.1
Operating system
Windows
What browsers are you seeing the problem on?
No response
Other information
No response
What happened? / Describe the bug
Having context.tracing() and page.pause() in the same test breaks the inspector.

Record doesn't work
"step over" is not consistent with end result when the test run finishes - Inspector's console says "element does receive pointer events" (first click), however, the test still fails with "element doesn't receive pointer events" seconds later

To reproduce:

Run the code example below, wait until the inspect comes up
Hit "Record" and click around - no code gets generated
Step over - see Inspector log say "element does receive pointer events", but the test will fail with "element doesn't receive pointer events"

Note: this has only been reproduced in Java, not sure if the same behaviour can be observed in other language bindings.
Code snippet to reproduce your bug
public class _2TraceViewer {

    Playwright pw;
    Browser browser;

    @Test
    public void traceViewerDemo() {

        pw = Playwright.create();
        browser = pw.chromium().launch(new BrowserType.LaunchOptions().setHeadless(false).setSlowMo(1000));

        BrowserContext context = browser.newContext();

        // Start tracing before creating / navigating a page.
        context.tracing().start(new Tracing.StartOptions()
                .setScreenshots(true)
                .setSnapshots(true));

        Page page = context.newPage();
        page.setDefaultTimeout(8_000);
        page.navigate("https://playwright.dev/java/");
        page.pause();
        page.click("text=Get Started");
        page.click("text=Guides");
        page.click("text=Trace Viewer");
        Assertions.assertTrue(page.isVisible("text=Recording a trace"));

        // Stop tracing and export it into a zip archive.
        context.tracing().stop(new Tracing.StopOptions()
                .setPath(Paths.get("trace.zip")));
    }

    @AfterEach
    public void cleanup() {
        browser.close();
        pw.close();
    }
}

Relevant log output
No response

I cannot reproduce it, hitting Record while paused does start recording. If I click around and get the page into a different state the test will fail after resuming (which is expected). The only problem that I see is that if you click Record while paused then clicking 'Step over' will continue execution of the script, is that the issue? What is the behavior you expect to see?

Closing since it seems stale, please create a new issue with a repro and more information.

It is still reproducible on my machine (Windows 10, JDK 14) with the provided code. Tried different Java language levels and other options - I could not find an alternative where it would NOT be reproducible.

@yury-s - which OS, JDK, IDE, language level of Java set, and Playwright version did you try?

@yury-s - which OS, JDK, IDE, language level of Java, and Playwright version did you try?

I tied with 1.14.1 and openjdk version "1.8.0_292" Linux, also tried on macOS before but I don't think the platform matters. Could you answer my questions above about your expectations?

The expectation is simply to have a working inspector (clicking generates code) when there's also context.tracing() in the code as in the provided example. It's not a blocker, of course, so if it's not reproducible by anyone else, I'm happy to close it or rephrase the issue to focus on the issue that you do see - "if you click Record while paused then clicking 'Step over' will continue execution of the script".

I think I've run into the same problem. Maybe you need to say how you execute the repro. I my case it was with the IntelliJ JUnit runner, and no PWDEBUG set (can't remember which way the headless setting was).
At the page.pause(); line, the execution will stop, and the inspector will open, but using record from there will not generate any code. I just chalked it up to some weird bug and just stopped using pause, since I didn't really need it.
I don't have time to reproduce it anymore or to try different conditions (since it's not an important feature for me), but just putting a "me too" here, if anybody is interested.

Why was this issue closed?
Thank you for your involvement. This issue was closed due to limited engagement (upvotes/activity), lack of recent activity, and insufficient actionability. To maintain a manageable database, we prioritize issues based on these factors.
If you disagree with this closure, please open a new issue and reference this one. More support or clarity on its necessity may prompt a review. Your understanding and cooperation are appreciated.


Bug(scope): Build failed

Is there an existing issue for this?

[X] I have searched the existing issues

Which Transloco package(s) are the source of the bug?
Transloco
Is this a regression?
No
Current behavior
Errors occur when starting the build
npm run transloco:build && ng serve --configuration=demo
    node_modules/@ngneat/transloco/lib/transloco.interceptor.d.ts:12:21 - error TS2694: Namespace '"/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.

    12     static ɵfac: i0.ɵɵFactoryDeclaration<DefaultInterceptor, never>;
                           ~~~~~~~~~~~~~~~~~~~~
    node_modules/@ngneat/transloco/lib/transloco.interceptor.d.ts:13:22 - error TS2694: Namespace '"/node_modules/@angular/core/core"' has no exported member 'ɵɵInjectableDeclaration'.

    13     static ɵprov: i0.ɵɵInjectableDeclaration<DefaultInterceptor>;
                            ~~~~~~~~~~~~~~~~~~~~~~~
    node_modules/@ngneat/transloco/lib/transloco-fallback-strategy.d.ts:12:21 - error TS2694: Namespace '"/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.

    12     static ɵfac: i0.ɵɵFactoryDeclaration<DefaultFallbackStrategy, never>;

ERROR in<EMAIL_ADDRESS>1457:30-52
Can't import the named export 'ɵɵngDeclareInjector' from non EcmaScript module (only default export is available)

ERROR in<EMAIL_ADDRESS>1382:23-45
Can't import the named export 'ɵɵngDeclareNgModule' from non EcmaScript module (only default export is available)

ERROR in<EMAIL_ADDRESS>1456:30-52
Can't import the named export 'ɵɵngDeclareNgModule' from non EcmaScript module (only default export is available)

ERROR in<EMAIL_ADDRESS>1338:22-40
Can't import the named export 'ɵɵngDeclarePipe' from non EcmaScript module (only default export is available)

Expected behavior
Successful build
Please provide a link to a minimal reproduction of the bug
haven`t
Transloco Config
No response
Please provide the environment you discovered this bug in
Transloco: 4.0.0
Angular: 10.0.8
Node: 12.14.1
Package Manager: 6.13.4
OS: win32 x64 (Windows 11)

Browser
No response
Additional context
No response
I would like to make a pull request for this bug
No

Ok, thank you. But you can add this information somewhere on the site. Because I understood that the problem is in the version, I could not find this information anywhere. For some versions of the angular use the version of the plugin. I will be grateful

Sorry, but I have another problem with 3.2.0
An unhandled exception occurred: Collection<EMAIL_ADDRESS>cannot be resolved.
See "\AppData\Local\Temp\ng-zVAbl9\angular-errors.log" for further details.

[error] Error: Collection<EMAIL_ADDRESS>cannot be resolved.
    at NodeModulesEngineHost.resolve (node_modules\@angular-devkit\schematics\tools\node-module-engine-host.js:75:19)
    at NodeModulesEngineHost.resolve (node_modules\@angular-devkit\schematics\tools\node-module-engine-host.js:55:35)
    at NodeModulesEngineHost._resolveCollectionPath (node_modules\@angular-devkit\schematics\tools\node-module-engine-host.js:80:37)
    at NodeModulesEngineHost.createCollectionDescription (node_modules\@angular-devkit\schematics\tools\file-system-engine-host-base.js:110:27)
    at SchematicEngine._createCollectionDescription (node_modules\@angular-devkit\schematics\src\engine\engine.js:148:40)
    at SchematicEngine.createCollection (node_modules\@angular-devkit\schematics\src\engine\engine.js:141:43)
    at GenerateCommand.getCollection (node_modules\@angular\cli\models\schematic-command.js:128:35)
    at GenerateCommand.initialize (node_modules\@angular\cli\models\schematic-command.js:44:37)
    at async GenerateCommand.initialize (node_modules\@angular\cli\commands\generate-impl.js:13:9)
    at async GenerateCommand.validateAndRun (node_modules\@angular\cli\models\command.js:125:9)

And on version 3.2.0 the same problem ((
node_modules/@ngneat/transloco/lib/loader-component.component.d.ts:5:21 - error TS2694: Namespace '"node_modules/@angular/core/core"' has no exported member 'ɵɵComponentDeclaration'.

5     static ɵcmp: i0.ɵɵComponentDeclaration<TranslocoLoaderComponent, "ng-component", never, { "html": "html"; }, {}, never, never>;
                      ~~~~~~~~~~~~~~~~~~~~~~
node_modules/@ngneat/transloco/lib/transloco.module.d.ts:27:21 - error TS2694: Namespace '"/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.

27     static ɵfac: i0.ɵɵFactoryDeclaration<TranslocoModule, never>;

Yes, 2.35.5 working, but on this version not work transloco build
ng generate @ngneat/transloco:join --default-Lang en --translation-path ./src/translation --out-dir ./src/assets/i18n
response
Nothing to be done.
On version 3.0.0 build working

@JakaRua I'm closing this issue since this version is no longer supported.
You are welcome to search the repo for past issues in this area, the code at that version, or consult the community.
The upgrade to Angular 12 from Angular 10 should be pretty smooth and easy. I recommend upgrading so you can use v3+.

Ok, i understand, thx.

@JakaRua I've added a compatibility table, thanks for the input 👍


Unable to connect to gpclient on nixos unstable

Describe the bug
I am trying to connect to globalprotect vpn, but I am unable to do so.
Steps To Reproduce
Steps to reproduce the behavior:
sudo  gpclient --fix-openssl connect <portal>
[2024-12-08T19:17:51Z INFO  gpclient::cli] gpclient started: 2.3.9 (2024-11-20)
[2024-12-08T19:17:51Z INFO  gpapi::portal::prelogin] Portal prelogin with user_agent: PAN GlobalProtect
[2024-12-08T19:17:51Z INFO  gpapi::portal::prelogin] Perform prelogin, user_agent: PAN GlobalProtect
[2024-12-08T19:17:51Z INFO  gpauth::cli] gpauth started: 2.3.9 (2024-11-20)
[2024-12-08T19:17:51Z INFO  gpauth::cli] Fixing OpenSSL environment
[2024-12-08T19:17:51Z INFO  gpauth::auth_window] Open auth window, user_agent: PAN GlobalProtect

** (gpauth:7778): WARNING **: 13:17:51.347: webkit_settings_set_enable_offline_web_application_cache is deprecated and does nothing.
[2024-12-08T19:17:51Z INFO  gpauth::auth_window] Auth window user agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Safari/605.1.15
[2024-12-08T19:17:51Z INFO  gpauth::auth_window] Load the SAML request as URI...

(process:7799): dconf-WARNING **: 13:17:51.614: Unable to open /root/.nix-profile/share/dconf/profile/user: Permission denied
[2024-12-08T19:17:52Z INFO  gpauth::auth_window] Loaded uri: https://p**********u/nusso/XUI/?realm=%2F**********n&goto=h**********n#login/
[2024-12-08T19:17:52Z INFO  gpauth::auth_window] Trying to read auth data from response headers...
[2024-12-08T19:17:52Z INFO  gpauth::auth_window] No saml-auth-status header found
[2024-12-08T19:17:52Z INFO  gpauth::auth_window] No auth data found in headers, trying to read from body...
[2024-12-08T19:17:52Z INFO  gpauth::auth_window] Failed to read auth data from body: No auth data found
[2024-12-08T19:17:52Z INFO  gpauth::auth_window] No auth data found, it may not be the /SAML20/SP/ACS endpoint
[2024-12-08T19:17:52Z INFO  gpauth::auth_window] Raise window in 1 second(s)
[2024-12-08T19:17:54Z INFO  gpapi::utils::window] Window not raised: Failed to raise window: GlobalProtect Login
[2024-12-08T19:17:57Z INFO  gpauth::auth_window] Loaded uri: https://p**********u/nusso/oauth2/authorize?state=W**********c&nonce=r**********m&response_mode=f**********t&redirect_uri=h**********2&response_type=i**********n&scope=o**********d&client_id=n**********b&agent_provider=t**********e&agent_realm=%2F**********n
[2024-12-08T19:17:57Z INFO  gpauth::auth_window] Trying to read auth data from response headers...
[2024-12-08T19:17:57Z INFO  gpauth::auth_window] No saml-auth-status header found
[2024-12-08T19:17:57Z INFO  gpauth::auth_window] No auth data found in headers, trying to read from body...
[2024-12-08T19:17:57Z INFO  gpauth::auth_window] Failed to read auth data from body: No auth data found
[2024-12-08T19:17:57Z INFO  gpauth::auth_window] No auth data found, it may not be the /SAML20/SP/ACS endpoint
[2024-12-08T19:17:58Z INFO  gpauth::auth_window] Loaded uri: https://a**********m/frame/frameless/v4/auth?sid=f**********1&tx=e**********w&req-trace-group=a**********5
[2024-12-08T19:17:58Z INFO  gpauth::auth_window] Trying to read auth data from response headers...
[2024-12-08T19:17:58Z INFO  gpauth::auth_window] No saml-auth-status header found
[2024-12-08T19:17:58Z INFO  gpauth::auth_window] No auth data found in headers, trying to read from body...
[2024-12-08T19:17:59Z INFO  gpauth::auth_window] Failed to read auth data from body: No auth data found
[2024-12-08T19:17:59Z INFO  gpauth::auth_window] No auth data found, it may not be the /SAML20/SP/ACS endpoint
[2024-12-08T19:17:59Z INFO  gpauth::auth_window] Loaded uri: https://a**********m/frame/v4/preauth/healthcheck?sid=f**********1
[2024-12-08T19:17:59Z INFO  gpauth::auth_window] Trying to read auth data from response headers...
[2024-12-08T19:17:59Z INFO  gpauth::auth_window] No saml-auth-status header found
[2024-12-08T19:17:59Z INFO  gpauth::auth_window] No auth data found in headers, trying to read from body...
[2024-12-08T19:17:59Z INFO  gpauth::auth_window] Failed to read auth data from body: No auth data found
[2024-12-08T19:17:59Z INFO  gpauth::auth_window] No auth data found, it may not be the /SAML20/SP/ACS endpoint
[2024-12-08T19:18:00Z WARN  gpauth::auth_window] Failed to load uri: https://a**********m/frame/v4/return?sid=f**********1 with error: Load request cancelled
[2024-12-08T19:18:00Z INFO  gpauth::auth_window] Loaded uri: https://a**********m/frame/v4/return?sid=f**********1
[2024-12-08T19:18:00Z INFO  gpauth::auth_window] No response found in main resource
[2024-12-08T19:18:00Z INFO  gpauth::auth_window] Got invalid auth data, retrying...
[2024-12-08T19:18:00Z INFO  gpapi::portal::prelogin] Portal prelogin with user_agent: PAN GlobalProtect
[2024-12-08T19:18:00Z INFO  gpauth::auth_window] Injected loading element successfully
[2024-12-08T19:18:00Z INFO  gpapi::portal::prelogin] Perform prelogin, user_agent: PAN GlobalProtect
[2024-12-08T19:18:00Z INFO  gpauth::auth_window] Load the SAML request as URI...
[2024-12-08T19:18:00Z WARN  gpauth::auth_window] Failed to load uri: https://a**********m/frame/frameless/v4/auth?sid=f**********1&tx=e**********w with error: Load request cancelled
[2024-12-08T19:18:00Z INFO  gpauth::auth_window] Loaded uri: https://a**********m/frame/frameless/v4/auth?sid=f**********1&tx=e**********w
[2024-12-08T19:18:00Z INFO  gpauth::auth_window] No response found in main resource
[2024-12-08T19:18:00Z INFO  gpauth::auth_window] Got invalid auth data, retrying...
[2024-12-08T19:18:00Z INFO  gpapi::portal::prelogin] Portal prelogin with user_agent: PAN GlobalProtect
[2024-12-08T19:18:00Z INFO  gpauth::auth_window] Injected loading element successfully
[2024-12-08T19:18:00Z INFO  gpapi::portal::prelogin] Perform prelogin, user_agent: PAN GlobalProtect
[2024-12-08T19:18:00Z INFO  gpauth::auth_window] Load the SAML request as URI...
[2024-12-08T19:18:00Z WARN  gpauth::auth_window] Failed to load uri: https://f**********u/idp/profile/SAML2/Redirect/SSO?execution=e**********1&_eventId_proceed=1 with error: Load request cancelled
[2024-12-08T19:18:00Z INFO  gpauth::auth_window] Loaded uri: https://f**********u/idp/profile/SAML2/Redirect/SSO?execution=e**********1&_eventId_proceed=1
[2024-12-08T19:18:00Z INFO  gpauth::auth_window] No response found in main resource
[2024-12-08T19:18:00Z INFO  gpauth::auth_window] Got invalid auth data, retrying...
[2024-12-08T19:18:00Z INFO  gpapi::portal::prelogin] Portal prelogin with user_agent: PAN GlobalProtect
[2024-12-08T19:18:00Z INFO  gpapi::portal::prelogin] Perform prelogin, user_agent: PAN GlobalProtect
[2024-12-08T19:18:00Z INFO  gpauth::auth_window] Injected loading element successfully
[2024-12-08T19:18:00Z INFO  gpauth::auth_window] Load the SAML request as URI...
[2024-12-08T19:18:00Z WARN  gpauth::auth_window] Failed to load uri: https://f**********u/idp/profile/SAML2/Redirect/SSO?SAMLRequest=l**********%3D&RelayState=%2F**********x with error: Load request cancelled
[2024-12-08T19:18:00Z INFO  gpauth::auth_window] Loaded uri: https://f**********u/idp/profile/SAML2/Redirect/SSO?SAMLRequest=l**********%3D&RelayState=%2F**********x
[2024-12-08T19:18:00Z INFO  gpauth::auth_window] No response found in main resource
[2024-12-08T19:18:00Z INFO  gpauth::auth_window] Got invalid auth data, retrying...
[2024-12-08T19:18:00Z INFO  gpapi::portal::prelogin] Portal prelogin with user_agent: PAN GlobalProtect
[2024-12-08T19:18:00Z INFO  gpauth::auth_window] Injected loading element successfully
[2024-12-08T19:18:00Z INFO  gpapi::portal::prelogin] Perform prelogin, user_agent: PAN GlobalProtect
[2024-12-08T19:18:00Z INFO  gpauth::auth_window] Load the SAML request as URI...
[2024-12-08T19:18:00Z WARN  gpauth::auth_window] Failed to load uri: https://f**********u/idp/profile/SAML2/Redirect/SSO?SAMLRequest=l**********%3D&RelayState=%2F**********x with error: Load request cancelled
[2024-12-08T19:18:00Z INFO  gpauth::auth_window] Loaded uri: https://f**********u/idp/profile/SAML2/Redirect/SSO?SAMLRequest=l**********%3D&RelayState=%2F**********x
[2024-12-08T19:18:00Z INFO  gpauth::auth_window] No response found in main resource
[2024-12-08T19:18:00Z INFO  gpauth::auth_window] Got invalid auth data, retrying...
[2024-12-08T19:18:00Z INFO  gpapi::portal::prelogin] Portal prelogin with user_agent: PAN GlobalProtect
[2024-12-08T19:18:00Z INFO  gpapi::portal::prelogin] Perform prelogin, user_agent: PAN GlobalProtect
[2024-12-08T19:18:00Z INFO  gpauth::auth_window] Injected loading element successfully
[2024-12-08T19:18:00Z INFO  gpauth::auth_window] Load the SAML request as URI...
[2024-12-08T19:18:00Z WARN  gpauth::auth_window] Failed to load uri: https://f**********u/idp/profile/SAML2/Redirect/SSO?SAMLRequest=l**********%3D&RelayState=A**********x with error: Load request cancelled
[2024-12-08T19:18:00Z INFO  gpauth::auth_window] Loaded uri: https://f**********u/idp/profile/SAML2/Redirect/SSO?SAMLRequest=l**********%3D&RelayState=A**********x
[2024-12-08T19:18:00Z INFO  gpauth::auth_window] No response found in main resource
[2024-12-08T19:18:00Z INFO  gpauth::auth_window] Got invalid auth data, retrying...
[2024-12-08T19:18:00Z INFO  gpapi::portal::prelogin] Portal prelogin with user_agent: PAN GlobalProtect
[2024-12-08T19:18:01Z INFO  gpauth::auth_window] Injected loading element successfully
[2024-12-08T19:18:01Z INFO  gpapi::portal::prelogin] Perform prelogin, user_agent: PAN GlobalProtect
[2024-12-08T19:18:01Z INFO  gpauth::auth_window] Load the SAML request as URI...
[2024-12-08T19:18:01Z WARN  gpauth::auth_window] Failed to load uri: https://f**********u/idp/profile/SAML2/Redirect/SSO?SAMLRequest=l**********%3D&RelayState=A**********x with error: Load request cancelled
[2024-12-08T19:18:01Z INFO  gpauth::auth_window] Loaded uri: https://f**********u/idp/profile/SAML2/Redirect/SSO?SAMLRequest=l**********%3D&RelayState=A**********x
[2024-12-08T19:18:01Z INFO  gpauth::auth_window] No response found in main resource
[2024-12-08T19:18:01Z INFO  gpauth::auth_window] Got invalid auth data, retrying...
[2024-12-08T19:18:01Z INFO  gpapi::portal::prelogin] Portal prelogin with user_agent: PAN GlobalProtect
[2024-12-08T19:18:01Z INFO  gpapi::portal::prelogin] Perform prelogin, user_agent: PAN GlobalProtect
[2024-12-08T19:18:01Z INFO  gpauth::auth_window] Injected loading element successfully
[2024-12-08T19:18:01Z INFO  gpauth::auth_window] Load the SAML request as URI...
[2024-12-08T19:18:01Z WARN  gpauth::auth_window] Failed to load uri: https://f**********u/idp/profile/SAML2/Redirect/SSO?SAMLRequest=l**********P&RelayState=A**********x with error: Load request cancelled
[2024-12-08T19:18:01Z INFO  gpauth::auth_window] Loaded uri: https://f**********u/idp/profile/SAML2/Redirect/SSO?SAMLRequest=l**********P&RelayState=A**********x
[2024-12-08T19:18:01Z INFO  gpauth::auth_window] No response found in main resource
[2024-12-08T19:18:01Z INFO  gpauth::auth_window] Got invalid auth data, retrying...
[2024-12-08T19:18:01Z INFO  gpapi::portal::prelogin] Portal prelogin with user_agent: PAN GlobalProtect
[2024-12-08T19:18:01Z INFO  gpauth::auth_window] Injected loading element successfully
[2024-12-08T19:18:01Z INFO  gpapi::portal::prelogin] Perform prelogin, user_agent: PAN GlobalProtect
[2024-12-08T19:18:01Z INFO  gpclient::connect] Failed to connect portal with prelogin: Auth cancelled

Expected behavior
Will connect to the vpn
Additional context
It opens a small window for the SAML two factor authentication, but then displays a message "Got invalid token... retrying". I have always used globalprotect vpn client on arch and never had any issues. So, there is no problem with the vpn server.
Metadata

Notify maintainers

@Binary-Eater @m1dugh

I have always used globalprotect vpn client on arch and never had any issues.

When you say GlobalProtect VPN client, are you talking about the one provided by Palo Alto Networks or https://github.com/yuezk/GlobalProtect-openconnect?

I am just using the packages gpclient and gpauth, and was trying to follow the issue #350111. Because, it was not described else where as to how to use the two packages.

@saipavanc I am asking about what you did on Arch Linux as you mentioned in your bug report.

Oh sorry, yeah I was using the one from AUR which is https://github.com/yuezk/GlobalProtect-openconnect.

I see. We didn't package the GUI for a couple of reasons. Would you mind letting me know if following the example usage of the README for the CLI works for you?

sudo -E gpclient connect --browser default

Where you would replace , with your VPN portal URL.

No, it did not work. I have the following trace:
[2024-12-09T01:34:50Z INFO  gpclient::cli] gpclient started: 2.3.9 (2024-11-30)
[2024-12-09T01:34:50Z INFO  gpapi::portal::prelogin] Portal prelogin with user_agent: PAN GlobalProtect
[2024-12-09T01:34:50Z INFO  gpapi::portal::prelogin] Perform prelogin, user_agent: PAN GlobalProtect
[2024-12-09T01:34:50Z INFO  gpauth::cli] gpauth started: 2.3.9 (2024-11-30)
[2024-12-09T01:34:50Z INFO  gpapi::process::browser_authenticator] Launching the default browser...
[2024-12-09T01:34:50Z INFO  gpauth::cli] Please continue the authentication process in the default browser
[2024-12-09T01:34:50Z INFO  gpauth::cli] Listening authentication data on port 33947
[2024-12-09T01:34:50Z INFO  gpauth::cli] If it hangs, please check the logs at `/tmp/gpcallback.log` for more information
[2024-12-09T01:35:07Z INFO  gpauth::cli] Received the browser authentication data from the socket
[2024-12-09T01:35:07Z INFO  gpauth::cli] Authentication completed
[2024-12-09T01:35:07Z INFO  gpapi::portal::config] Retrieve the portal config, user_agent: PAN GlobalProtect
[2024-12-09T01:35:07Z INFO  gpapi::gateway::parse_gateways] Try to parse the external gateways...
[2024-12-09T01:35:07Z INFO  gpclient::connect] Connecting to the only available gateway: vpn-connect2-nit (vpn-connect2.northwestern.edu)
[2024-12-09T01:35:07Z INFO  gpapi::gateway::login] Perform gateway login, user_agent: PAN GlobalProtect
[2024-12-09T01:35:07Z INFO  openconnect::ffi] openconnect version: v9.12
[2024-12-09T01:35:07Z INFO  openconnect::ffi] User agent: PAN GlobalProtect
[2024-12-09T01:35:07Z INFO  openconnect::ffi] VPNC script: /nix/store/fighsxkk4hwh8mdg9vbsz6jsgaikv67s-vpnc-scripts-unstable-2023-01-03/bin/vpnc-script
[2024-12-09T01:35:07Z INFO  openconnect::ffi] OS: linux
[2024-12-09T01:35:07Z INFO  openconnect::ffi] CSD_USER: 1000
[2024-12-09T01:35:07Z INFO  openconnect::ffi] CSD_WRAPPER: (null)
[2024-12-09T01:35:07Z INFO  openconnect::ffi] RECONNECT_TIMEOUT: 300
[2024-12-09T01:35:07Z INFO  openconnect::ffi] MTU: 0
[2024-12-09T01:35:07Z INFO  openconnect::ffi] DISABLE_IPV6: 0
[2024-12-09T01:35:07Z INFO  openconnect::ffi] NO_DTLS: 0
[2024-12-09T01:35:07Z INFO  openconnect::ffi] POST <portal>/ssl-vpn/getconfig.esp
[2024-12-09T01:35:07Z INFO  openconnect::ffi] Connected to <IP_ADDRESS>:443
[2024-12-09T01:35:07Z INFO  openconnect::ffi] SSL negotiation with <portal>
[2024-12-09T01:35:08Z INFO  openconnect::ffi] Connected to HTTPS on <portal> with ciphersuite (TLS1.2)-(ECDHE-SECP256R1)-(RSA-SHA256)-(AES-256-GCM)
[2024-12-09T01:35:08Z INFO  openconnect::ffi] Tunnel timeout (rekey interval) is 180 minutes.
[2024-12-09T01:35:08Z INFO  openconnect::ffi] Idle timeout is 180 minutes.
[2024-12-09T01:35:08Z WARN  openconnect::ffi] GlobalProtect IPv6 support is experimental. Please report results to<EMAIL_ADDRESS>[2024-12-09T01:35:08Z WARN  openconnect::ffi] No MTU received. Calculated 1422 for ESP tunnel
[2024-12-09T01:35:08Z INFO  openconnect::ffi] POST https://<portal>/ssl-vpn/hipreportcheck.esp
[2024-12-09T01:35:08Z WARN  openconnect::ffi] WARNING: Server asked us to submit HIP report with md5sum f3657cf1508c0d28c17cdf2b18e8f775.
        VPN connectivity may be disabled or limited without HIP report submission.
        You need to provide a --csd-wrapper argument with the HIP report submission script.
[2024-12-09T01:35:13Z WARN  openconnect::ffi] Failed to connect ESP tunnel; using HTTPS instead.
[2024-12-09T01:35:14Z INFO  openconnect::ffi] Using vhost-net for tun acceleration, ring size 32
[2024-12-09T01:35:14Z INFO  openconnect::vpn] Connected to VPN, pipe_fd: 11
[2024-12-09T01:35:14Z INFO  gpclient::connect] Wrote PID 94390 to /var/run/gpclient.lock
[2024-12-09T01:35:34Z WARN  openconnect::ffi] GPST Dead Peer Detection detected dead peer!
[2024-12-09T01:35:34Z INFO  openconnect::ffi] POST https://<portal>/ssl-vpn/getconfig.esp
[2024-12-09T01:35:34Z INFO  openconnect::ffi] SSL negotiation with <portal>
[2024-12-09T01:35:34Z INFO  openconnect::ffi] Connected to HTTPS on <portal> with ciphersuite (TLS1.2)-(ECDHE-SECP256R1)-(RSA-SHA256)-(AES-256-GCM)
[2024-12-09T01:35:34Z INFO  openconnect::ffi] Tunnel timeout (rekey interval) is 180 minutes.
[2024-12-09T01:35:34Z INFO  openconnect::ffi] Idle timeout is 180 minutes.
[2024-12-09T01:35:34Z WARN  openconnect::ffi] GlobalProtect IPv6 support is experimental. Please report results to<EMAIL_ADDRESS>[2024-12-09T01:35:34Z INFO  openconnect::ffi] POST https://vpn-connect2.northwestern.edu/ssl-vpn/hipreportcheck.esp
[2024-12-09T01:35:39Z WARN  openconnect::ffi] Failed to connect ESP tunnel; using HTTPS instead.
^C[2024-12-09T01:35:46Z INFO  gpclient::connect] Received the interrupt signal, disconnecting...
[2024-12-09T01:35:46Z INFO  openconnect::ffi] Stopping VPN connection: 11
[2024-12-09T01:35:46Z INFO  openconnect::ffi] POST https://vpn-connect2.northwestern.edu/ssl-vpn/logout.esp
[2024-12-09T01:35:47Z INFO  openconnect::ffi] SSL negotiation with vpn-connect2.northwestern.edu
[2024-12-09T01:35:47Z INFO  openconnect::ffi] Connected to HTTPS on vpn-connect2.northwestern.edu with ciphersuite (TLS1.2)-(ECDHE-SECP256R1)-(RSA-SHA256)-(AES-256-GCM)
[2024-12-09T01:35:47Z INFO  openconnect::ffi] Logout successful.
RTNETLINK answers: No such process
[2024-12-09T01:35:47Z INFO  openconnect::ffi] openconnect_mainloop returned -4, exiting
[2024-12-09T01:35:47Z INFO  gpclient::connect] Removing PID file

The same error for ESP tunnel showed up previously I think.

Ah, the AUR uses the old V1 version of globalprotect-openconnect.
https://archlinux.org/packages/extra/x86_64/globalprotect-openconnect/
NixOS adopted V2 which might have a bug. We brought back V1 recently.
https://github.com/NixOS/nixpkgs/pull/355758
You may want to open an issue on the upstream project or go back to V1.

I am trying to compile the version 1.4.9, but is there a way to use the proprietary globalprotect app by Paolo Alto Networks?

I have been using the Palo Alto Network proprietary client in a systemd-nspawn container personally with host networking passed to the container and using the host's X server.

The old globalprotect-openconnect and its options are back FYI in 24.11.
https://search.nixos.org/packages?channel=24.11&show=globalprotect-openconnect&from=0&size=50&sort=relevance&type=packages&query=globalprotect-openconnect

I am using the unstable branch, I will try to see if I can use the package from 24.11

It's also in back in unstable.
https://search.nixos.org/packages?channel=unstable&show=globalprotect-openconnect&from=0&size=50&sort=relevance&type=packages&query=globalprotect-openconnect

I switched to Arch again, as I had a lot of issues with nixos. I installed the packages both the 1.4.9 version and the globalprotect-openconnect-git package, and I am facing the same issue. It seems like the problem is upstream, I will raise an issue there. Thanks!

Arch linux coupled with nix package manager is a good pick.

@m1dugh thanks for the suggestion. I will give that a try sometime.


bump version from 1.0.3+1.19 to 1.0.4+1.19

https://github.com/Aton-Kish/reinforced-chests/issues/17

It seems curse maven has been disabled.
https://www.cursemaven.com/test/399221/3826746
Raw URL: /test/399221/3826746

ProjectDescriptor: 399221
ProjectDescriptorSplit: 399221
ProjectName:
ProjectId: 399221

FileIds: 3826746
MainFileId: 3826746
GET: https://api.curseforge.com/v1/mods/399221/files/3826746/download-url
Response: 403
Not Found: Forbidden

---------- ERROR ----------
Unable to fetch url https://api.curseforge.com/v1/mods/399221/files/3826746/download-url
Error


add default_theme parameter passing to grafana.ini (closes #394)

Description

Relevant issues/tickets

Type of change

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

[ ] This change requires a documentation update
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added a test case that will be used to verify my changes
[x] Verified independently on a cluster by reviewer

Verification steps

overriding CI again


Update running-locally.md

Missing the repository on the 2 docker related commands :)

What did you implement:
Closes #XXXXX

How did you implement it:

How can we verify it:

Todos:

[ ] Write tests
[ ] Write documentation
[ ] Fix linting errors
[ ] Make sure code coverage hasn't dropped
[ ] Provide verification commands / resources
[ ] Enable "Allow edits from maintainers" for this PR
[ ] Update the messages below

Is this ready for review?: NO
Is it a breaking change?: NO

Thanks for that @paulxuca !


Problem matcher with backtick in filename

Originally posted on SO without success.

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.69.2
OS Version: linux

Steps to Reproduce:

My project has files like "Bar`1.cs" to represent generic types, as is done in the dotnet SDK
My build task contains "problemMatcher": { "base": "$msCompile" }

When such a file has errors/warnings, I get this:

/home/username/project/Foo/Bar`1.Tests.cs (458,23): warning 123: some warning [/home/username/project/Foo.Tests.csproj]

...which is fine. But I cannot control-click on that filename to open it. The file's path is not underlined as normal - there is a clickable part before the bactick, and after.
Someone from SO offered this guess: " probably backticks are not part of the regex that matches the filepath, or backticks are not in the \w regex set"

I can reproduce this, it is correctly validating the link, but it then recognizes it as a folder:

I guess nothing happens if Test doesn't exist?
As for the fallback "word links", you can support this type of link if you remove backtick from word separators:
"terminal.integrated.wordSeparators": " ()[]{}',\"─‘’",

And that happens because backticks aren't allowed in the local path regex:
https://github.com/microsoft/vscode/blob/8ed4dc537c7c17bb04576bd5450387f167f8b883/src/vs/workbench/contrib/terminal/browser/links/terminalLocalLinkDetector.ts#L38


replace trading_calendars with exchange_calendars

fix for https://github.com/alpacahq/alpaca-backtrader-api/issues/176
trading_calendars is broken and unmaintained.
exchange_calendars is a maintained fork that's recommended by trading_calendars and has fixed this issue.
This PR changes from trading_calendars to exchange_calendars to resolve https://github.com/alpacahq/alpaca-backtrader-api/issues/176.

Was this ever fixed in the main branch? I am still seeing this error.

I have same problem with below version
alpaca-trade-api==1.2.3
alpaca-backtrader-api == 0.14.1

Plus one to merge this PR. Still seeing this issue.


[Bug] DQN Exploration divides by 0 when learn steps are small

Training  a DQN agent for a few steps fails because of a divide by zero bug here:
class LinearSchedule(Schedule):
    #
    # .... other code ....
    #
    def value(self, step):
        # self.schedule_timesteps = 0
        fraction = min(float(step) / self.schedule_timesteps, 1.0)
        return self.initial_p + fraction * (self.final_p - self.initial_p)

Which is a consequence of the following in the learn function in DQN:
def learn(total_timesteps, ....):
    self.exploration = LinearSchedule(
          schedule_timesteps=int(self.exploration_fraction * total_timesteps),
          initial_p=self.exploration_initial_eps,
          final_p=self.exploration_final_eps)

The bug occurs when self.exploration_fraction * total_timesteps  is less than 1.
Reproduce
import gym
import stable_baselines as sb

env = gym.make('CartPole-v1')
agent = sb.DQN('MlpPolicy', env)
agent.learn(1)

Traceback:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/stelios/anaconda3/envs/thesis37/lib/python3.7/site-packages/stable_baselines/deepq/dqn.py", line 201, in learn
    update_eps = self.exploration.value(self.num_timesteps)
  File "/Users/stelios/anaconda3/envs/thesis37/lib/python3.7/site-packages/stable_baselines/common/schedules.py", line 107, in value
    fraction = min(float(step) / self.schedule_timesteps, 1.0)
ZeroDivisionError: float division by zero

Secondary issue
Assuming this is fixed, using total_timesteps assumes that the agent will run .learn only one time, when, ideally, the exploration rate should be independent of the number of calls.
Proposed solution
class LinearSchedule(Schedule):

    def __init__(self, schedule_timesteps, final_p, initial_p=1.0):
        self.schedule_timesteps = max(schedule_timesteps, 1)
        self.final_p = final_p
        self.initial_p = initial_p

Such low number of training steps does not really make sense, but indeed there should be a more informative catch for this. I would rather go with an assertion that total number of exploration steps is more than one, i.e.
assert (self.exploration_fraction * total_timesteps) > 1

It does make sense when you are implementing hierarchical agents.
To be exact, I am using many individual agents in a structure like 'feudal learning' and I needed a way to stop the agent.learn when the episode is terminated and propagate the termination to higher up agents.
There isn't a callback, or an option for this, so instead I run the agent 1 step at a time and keep track of the observation, the reward, and whether the environment terminated.

Ah, right. I see the use there, but I believe this should rather be fixed with a new algorithm, rather than patches like this to DQN. I do not think the learning would work with learn of 1 steps, as DQN learning is done every n_step steps, right?
Regarding callbacks: You can use the new callbacks (v2.10) to do checks on each step. You could use these to detect when episodes end.

Indeed, DQN learns every n_step, however, it compares against self.num_timesteps.
if can_sample and self.num_timesteps > self.learning_starts \
                        and self.num_timesteps % self.train_freq == 0:

The only callback that exits the loop (which is a condition for the algorithm to work is the on_step. Exiting on on_step means skipping the network update, not storing the transition and no logging.

Right, thanks for clarifying this :). I still think this should not be patched around like this, rather it should be a sanity-check with assertion. If we clip the exploration steps to minimum of 1, then you will end up with full exploration over that one step. This may be desirable  at times, but not always (i.e. sometimes you want zero exploration). You can achieve by setting exploration epsilon to zero, but for clarity I do not think we should do quiet clipping right this, and instead inform user of invalid input.

I agree with you. Perhaps an extra argument in learn? For example, explore_over_timesteps that is by default set to None. If it is None it takes exploration_fraction*total_timesteps, keeping the default behavior, if it has a value, that is used instead. Then asserting that explore_over_timesteps >= 1.

Hello,
This seems to be an issue very specific to a given problem.
I would advise you to derive a CustomDQN from DQN to fit your needs (you could also to the update in the on_step() of the callback as you have access to the model object). I did that here where I needed to train only after each episode.
I'm against adding an extra argument to learn() (which should keep it consistent) and adding an extra default parameter to the constructor looks confusing.
The second issue is also present in the other algorithms, so I would keep it as so to be consistent.
(maybe a thing to look at for v3 #576 )

Thanks @araffin,
Due to some other issues that I encountered, I will derive the classes.
For future reference and anyone else that might encounter this, the callback doesn't have access to done, observation, etc. So to access them, one needs to wrap the environment in something to keep track of everything and access it through BaseCallback.training_env.

the callback doesn't have access to

for DQN, it does through self.locals, for others, you need to wrap it.

for DQN, it does through self.locals

It doesn't.
import stable_baselines as sb
from stable_baselines.common.callbacks import BaseCallback
import gym

env = gym.make("MountainCar-v0")
class TestCallback(BaseCallback):
    def __init__(self, verbose=0):
        super().__init__(verbose)
    def _on_step(self):
        assert 'done' in self.locals

agent = sb.DQN('MlpPolicy', env, verbose=1)
agent.learn(100, callback=TestCallback())

'''
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/stelios/Documents/stable-baselines/stable_baselines/deepq/dqn.py", line 231, in learn
    if callback.on_step() is False:
  File "/Users/stelios/Documents/stable-baselines/stable_baselines/common/callbacks.py", line 89, in on_step
    return self._on_step()
  File "<stdin>", line 5, in _on_step
AssertionError
'''

Then there seems to be a bug that is universal to python.
def xar(bar):
      x = 1
      bar()

def foo(locs):
    def bar():
        assert 'x' in locs
    return bar

xar(foo(locals()))
'''
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 3, in xar
  File "<stdin>", line 3, in bar
AssertionError
'''

I should open a new issue for this one.

It doesn't, see here: #760


How to run multiK with multi-CPU core ?

Hello. I am trying to apply MultiK to figure out optimal clustering number for single-cell RNA sequencing (about 40,000 ten thousands cells )
Although i run the code with narrow resolution interval, it takes too many times to run.
I found that MultiK analysis was being done with single core CPU.
Is there any way for me to  run multiK with multi-CPU core ?
Thank you.

If I repeat 100 times, the running time will be very long.


Remove type specific logic from DataTypes.merge

Summary of the changes / Why this improves CrateDB
Follows: https://github.com/crate/crate/pull/16731#issuecomment-2416346389
Checklist

[ ] Added an entry in the latest docs/appendices/release-notes/<x.y.0>.rst for user facing changes
[ ] Updated documentation & sql_features table for user facing changes
[ ] Touched code is covered by tests
[ ] This does not contain breaking changes, or if it does:

It is released within a major release
It is recorded in the latest docs/appendices/release-notes/<x.y.0>.rst
It was marked as deprecated in an earlier release if possible
You've thought about the consequences and other components are adapted
(E.g. AdminUI)

Need this refactoring now such that we can resolve something like numeric_col = 1.111 to =(numeric,numeric) by modifying NumericType.merge to
DataType<?> merge(DataType<?> other) {
    if (DataTypes.isNumeric(other)) {
        return NumericType.INSTANCE;
    } else {
        return super.merge(other);
    }
}

Should we maybe backport this to 5.9, so that we have easy backports, in case we encounter a bug?

Should we maybe backport this to 5.9, so that we have easy backports, in case we encounter a bug?

Thanks yes, it is needed for https://github.com/crate/crate/issues/16838.


bug: no window object exists check in thin engine

This bug makes engine not compatible with workers

Now I think that there might be more of this. So let me check first before merge :)

done


support independent update of CNI insecure registry

Describe the Bug
When a standalone plugin is installed and a private image repository is filled that does not support its TLS, the image pull fails.
Versions Used
Kubernetes: v1.23.6
Kubeclipper: master
Environment
How many nodes and their hardware configuration:
For example: CentOS 7.9 / 1 masters:  8cpu/8g; 1 nodes: 8cpu/8g
(and other info are welcomed to help us debugging)
How To Reproduce
Steps to reproduce the behavior:

A K8S cluster is installed properly.
The storage plugin is then installed independently, filling a private repository that does not support TLS.
When the mirror pull progress is displayed, the mirror pull fails.

Expected behavior
A clear and concise description of what you expected to happen.

/assgin @qinyer

/assign @qinyer


Applet shifts panel items beyond screen edge in Xfce - when there are many opened apps

When you open a lot of apps - so applet expends and apps don't fit into panel space - the applet shifts other panel elements beyond screen edge - without any easy possibility to rich them. Maybe some sort of arrows can be added into both sides of applet - when all apps don't fit. Tried in Xfce so far

Can you take a screenshot of the issue for me?

When there are not much opened apps - all panel elements fit into panel - notice sound and power items in the panel:

and when there are too much opened apps - they push all other panel items beyond screen edge - notice absence of pushed sound and power items:

Holy crap that is a lot of stuff to have open! That is a valid use-case to support though, so I'll see what I can do for you. 👍


Update zio, zio-test, zio-test-sbt to 1.0.1

Updates

dev.zio:zio
dev.zio:zio-test
dev.zio:zio-test-sbt

from 1.0.0 to 1.0.1.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "dev.zio" } ]

labels: library-update, semver-patch

Codecov Report

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

@@           Coverage Diff           @@
##           master     #113   +/-   ##
=======================================
  Coverage   71.59%   71.59%
=======================================
  Files          12       12
  Lines         426      426
  Branches       19       19
=======================================
  Hits          305      305
  Misses        121      121

Continue to review full report at Codecov.

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


Add subclass-specific params to estimator_params list

The BaseEstimator get_params() method returns all params that were defined in the estimator's estimator_params attribute. However, some subclasses do not add their specific params to this list, therefore when calling get_params() on them, only the base classes parameters are returned. For example in TensorFlowV2Classifier, params such as nb_classes, input_shape, train_step, reduce_labels, etc. should also be added.

@beat-buesser Which params specifically do you think should be exposed by each class? Should it only be those sent by the user to init()? Or also properties that are computed internally by the init() method (for example input_shape)?

@beat-buesser Which params specifically do you think should be exposed by each class? Should it only be those sent by the user to init()? Or also properties that are computed internally by the init() method (for example input_shape)?


ci: add support to label goldens

What
ci: add support to label goldens

Codecov Report

Merging #3235 (7bbda2b) into develop (a3608be) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           develop   #3235   +/-   ##
=======================================
  Coverage     7.69%   7.69%
=======================================
  Files          249     249
  Lines        12248   12248
=======================================
  Hits           942     942
  Misses       11306   11306

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


feat: add ls-lint

It could make sense to add ls-lint to api-linter to ensure a reliable filesystem structure

thanks for the contribution! we actually have a quality checker tool that runs on CI for formatting checks like these: https://github.com/googleapis/api-linter/tree/main/.github/quality-checker.
I really do appreciate the PR, but I'm not sure it provides enough benefit beyond what the quality-checker already does.
I'll close the PR for now, but feel free to raise issues if you'd like to discuss other tooling improvements!


(feat): Remove progress bar

This could help with #2104

How would you feel about adding a message.info like we do in the new mirror? I know some users have many large images / have 100s of images. IMO we'll want to give some indication that the system is progressing
https://github.com/zarf-dev/zarf/blob/e1a99f67636ac40f8f2d1a260f5a4692bcfeebd8/src/internal/packager2/mirror.go#L126

closing due to internal discussion


Access optional captures via names

I think that the following should not happen:
 Λ "a" ^? [_regex|(?a)|(?b)|] . _capture @"a"
Just "a"
 Λ "a" ^? [_regex|(?a)|(?b)|] . _capture @"b"
Just*** Exception: src/hs/Text/Regex/Pcre2/Internal.hs:1275:9-70: Non-exhaustive patterns in (ls, c : rs)
 Λ "b" ^? [_regex|(?a)|(?b)|] . _capture @"a"
Just ""
 Λ "b" ^? [_regex|(?a)|(?b)|] . _capture @"b"
Just*** Exception: src/hs/Text/Regex/Pcre2/Internal.hs:1275:9-70: Non-exhaustive patterns in (ls, c : rs)

With indices, everything works fine:
 Λ "a" ^? [_regex|(?a)|(?b)|] . _capture @1
Just "a"
 Λ "a" ^? [_regex|(?a)|(?b)|] . _capture @2
Just ""
 Λ "b" ^? [_regex|(?a)|(?b)|] . _capture @1
Just ""
 Λ "b" ^? [_regex|(?a)|(?b)|] . _capture @2
Just "b"

Oof, thanks.


Create elev.txt

@0xdeki Pull request merged. Please notice that free educational license for JetBrains tools is for high and higher schools students, i.e. those who are over 13 of age. Thank you!


EventMode - Newtonsoft - Invalid cast

Nabaztag.cs, line 145 is throwing the following error:
"Unable to cast object of type 'Nabaztag.Net.Models.EventType[]' to type 'System.Enum'."
I've tried to follow the advice of multiple stackoverflow articles, but none of them have worked.
Any ideas?

I pushed a quick fix, should work. Please let me know.

It appears to be failing at a different point now.
Messages for sleep and wake seem to work fine - but on line 167 of Nabaztag.cs, when Events is an array of "Buttons, Ears, Asr", although the ret variable is "123", the response ErrorMessage is "Unknown or malformed mode packet".
I thought that the Asr might be an issue, since I have a Nabaztag (no belly button) and perhaps 'Asr' referred to a capability my bunny did not have. I omitted it from the array, but still had the same error.
I wish I could contribute more than complain!

Issue is coming from the serialization which does not happen as expected. Nabaztag code only supports lowercase. Should work better now. Please continue to pass issues.

PS: I found some other issues, will continue to fix. Sorry, I was (and I am still) fully busy with work!

Should now work fully correct for the events:
Your Nabaztag is in interactive mode and will receive all events
New button event: Down
New button event: Up
New button event: Click
New button event: Down
New button event: Hold
Nabaztag status changed, new status is Recording
New button event: Down
New button event: Click
Nabaztag status changed, new status is Idle
New asr event. Intent: clock, Time:<PHONE_NUMBER>.5389247
New asr event. Intent: clock, Time:<PHONE_NUMBER>.1260304
New ear event. Left: 8 Right: 0 Ear:
New ear event. Left: 0 Right: 0 Ear:
New button event: Down
New button event: Up
New button event: Down
New button event: Up
New button event: DoubleClick

So you'll have much more things working:

added the test (the same you have in the web UI) to test the ears and the led
Fixed couple of issues in serializing and deserializing
All events seems to work correctly
Asr message are received properly
The Message for audio seems to work properly

Still not working:

Playing a full choreography with command or message

Still to add:

Support for streamed audio or equivalent
time conversion to normal DateTime in the events

@jasongb I worked on supporting all features. There is a solid version now. You have have examples for every supported features.
I encourage you to switch to the master branch for nabd as in the 0.7.4 version, for example in interactive mode, you won't get any event at all.
What is missing now is the RFID support 😊
Please let me know if anything is not working as expected. I'm also interested in your scenario!


Implement Admin-related features

Changes made in this PR:

[x] Implement feature to allow role-changing for super admin
[x] Implement feature for super admin to do CRUD on scantypes
[x]  Implement Stats at a Glance feature

📝 Changed routes:

/admin/users

(view full size)

And 5 other routes:

/api/applications/[applicationId]
/api/applications
/api/scan
/api/userinfo
/api/users/roles

Commit 1c7bc9d418e0944ef0dcfe3c60b00be426b99be2 (https://hackportal-f84h987bh-acmutd.vercel.app).

Need a maximum of 1 check-in type

Add check to ignore spaces in the scan names.
Currently, "new scan" and "new scan " with a space are different scans.


connect to google mail server time out

I start the server on my local, try to send an email to my gmail. the messages showed as
2020-02-13T02:12:56.918779+00:00 76b83c891167 postfix/smtpd[117]: disconnect from unknown[<IP_ADDRESS>] ehlo=1 mail=1 rcpt=1 data=1 commands=4
2020-02-13T02:13:27.003819+00:00 76b83c891167 postfix/smtp[121]: connect to gmail-smtp-in.l.google.com[<IP_ADDRESS>]:25: Operation timed out
2020-02-13T02:13:57.032523+00:00 76b83c891167 postfix/smtp[121]: connect to alt1.gmail-smtp-in.l.google.com[<IP_ADDRESS>]:25: Operation timed out
2020-02-13T02:14:27.060979+00:00 76b83c891167 postfix/smtp[121]: connect to alt2.gmail-smtp-in.l.google.com[<IP_ADDRESS>]:25: Operation timed out
2020-02-13T02:14:57.087501+00:00 76b83c891167 postfix/smtp[121]: connect to alt3.gmail-smtp-in.l.google.com[<IP_ADDRESS>]:25: Operation timed out
2020-02-13T02:15:27.102233+00:00 76b83c891167 postfix/smtp[121]: connect to alt4.gmail-smtp-in.l.google.com[<IP_ADDRESS>]:25: Operation timed out
2020-02-13T02:15:27.116627+00:00 76b83c891167 postfix/smtp[121]: DC95C602BA<EMAIL_ADDRESS>relay=none, delay=150, delays=0.05/0.01/150/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[<IP_ADDRESS>]:25: Operation timed out)

I start by the command
docker run --rm --name postfix -e "ALLOWED_SENDER_DOMAINS=example.com" -p 1587:587 boky/postfix

tried hotmail, also failed by Operation timed out.
please help

If you're running this locally, there's a great chance that port 25 is blocked by your ISP, as most ISPs block this port.

thank you for the replying. But the same issue happens on AWS us-east-1 instance

AWS also throttles port 25: https://aws.amazon.com/premiumsupport/knowledge-center/ec2-port-25-throttle/

Thank you. Filed request to AWS.


Captain Supply Drop Bug

When using captain, if I save and then quit the game both supply drops are used up.
But If i then quit to menu and load back in they are back.
Thanks

Should be fixed with latest RoR2BepInExPack update

Can confirm it appears to be fixed now.
Wanted to say I appreciate the mod, thanks.


[sprint 7]: refactoring & testing completed

User story

As a {}
I want / need {}
So that {}

Acceptance criteria

Code is cleaned up
Architecture is updated to the expected future needs
Tests are updated

Definition of done (DoD)

Added only after week 5
The same for all features
Here goes the project specific part

DoD general criteria

Feature has been fully implemented
Feature has been merged into the mainline
All acceptance criteria were met
Product owner approved features
All tests are passing
Developers agreed to release

@annikakrause: Hier mal ein Issue zu dem Refactoring und Testing.


Clean up workflow for Monotype feature files

Instead of injecting the Monotype feature files late into the
pipeline, we now embed them into UFO files so that the UFOs are fully
self-contained. This change also cleans up the way how the data
gets embedded into the UFO; instead of changing files underneath
defcon, fontmake now calls the defcon data APIs.
The handling of Monotype feature files was added to ufo2ft in
version 0.4.3, so fontmake now requires that version.
https://github.com/googlei18n/fontmake/issues/289

@anthrotype, how to tell pip about ufo2ft 0.4.3? Currently, pip install fails because it doesn’t know about ufo2ft 0.4.3 yet.

Before the next fontmake release you may also want to set minimum required mutatormath to 2.0.4, Erik fixed some issue there.

sorry Sascha, I bumped mutatorMath myself on master, then I used github's merge conflict resolution interface to fix up. It's actually quite cool.


OUT OF RANGE error on Matshita UJ8HC drive

Version
2.3 and Debug (tested on same day as this post)
Describe the bug
When using DiscImageCreator (through MPF) I expect the drive to correctly dump an IBM PC disc.
However I get the following error:
LBA[015664, 0x03d30]: [F:ReadCDForCheckingReadInOut][L:1046]
    Opcode: 0xbe
    ScsiStatus: 0x02 = CHECK_CONDITION
    SenseData Key-Asc-Ascq: 05-21-00 = ILLEGAL_REQUEST - LOGICAL BLOCK ADDRESS OUT OF RANGE
lpCmd: be, 04, 00, 00, 3d, 30, 00, 00, 01, f8, 00, 00
dwBufSize: 2352

Looking at issue #59 it seems to be an offset thing.
However the drive, a Matshita DVD-RAM UJ8HC 1.00 seems to be included in the driveOffset file.
Though as a Panasonic one.
Log file
UJ8HC Log Files

========== TOC ==========
	  Data Track  1, LBA        0 -    15663, Length    15664
	                                          Total     15664
Set the TRACK_TYPE to dataExist
========== DiscInformation ==========
	                  DiscStatus: Incomplete
	           LastSessionStatus: Empty

is this even a finished CD-R? LBA15664 doesn't seem to exist.

Well I didn't make the disc so I wouldn't know.
It works just fine though.
It does not seem to have protection on it as well.
Should I try some other data CD?

Compared to #59 where there is no ATIP information, in your disc file, there is this:
========== TOC_PMA ==========
========== TOC ATIP ==========
	Special Information 1
		     WritePower: 4
		 ReferenceSpeed: 0
		UnrestrictedUse: No
		       DiscType: 0 (CD-R), DiscSubType: 3
	Special Information 2
		      LeadInMsf: 97:24:01
		       => Manufacturer: Taiyo Yuden Company Limited
               => Recording characteristics: Long Strategy Type (ex. Cyanine type media)
	Special Information 3
		     LeadOutMsf: 74:43:02

So I thought, this might be a CD burned from some CD burner.

It could be a burned CD.
I have no clue which of the two it is, since it has a print on the disc like normal industrial made CDs.
But it is probably made in low quantities.
It is indeed around 30MB in size (30.2MB total).


chore(master): release 1.5.7

:robot: I have created a release beep boop
1.5.7 (2023-09-04)
Miscellaneous

deps: update actions/checkout action to v4 (12b6c6c)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/wayofdev/docker-shared-services/releases/tag/v1.5.7 :sunflower:


proposal: cmd/go: Allow tarball-over-http downloads in

Feature request
I would like for go get to support downloading tarballs, in addition to the current git/hg/svn/bzr support.
Since the argument to go get is a package name, this should be implemented as an extra backend to the current go-import meta tag / ?go-get=1 system as described in https://golang.org/cmd/go/#hdr-Remote_import_paths .
Rationale

To offer a latency-insensitive method for deploying go get-able packages on object storage servers.
To offer a maximally lightweight method for deploying go get-able packages on low-end servers.
To support a pre-existing packaging workflow that produces tarball artefacts.

Implementation
I think it should be possible to implement initially in src/cmd/go/vcs.go as a new vcsCmd type that shells out to external wget/curl and tar binaries, in much the same way as the existing code.
This proposal succeeds #14076 .
Do you think this would be accepted by the Go project? If so, I am happy to develop and submit a patch with a goal of having this in Go 1.8.

#11876 is the same one, that had been rejected.

I think that other thread was rejected because (A) lack of other community interest, and (B) no clear path to support go get -u.
But today Go is more popular, i am interested.
And go get -u can be supported by simply removing / emptying the package directory before download.

Removing the package directory is unsafe because the user might have edited the code it contains.

Removing the package directory is unsafe because the user might have edited the code it contains.

For the specific case of a git backend, local modifications seem to be preserved. But i don't think this behavior is contractual. There's no mention of it in https://golang.org/cmd/go/#hdr-Download_and_install_packages_and_dependencies , only to "use the network to update the named packages and their dependencies".
I see some possible options:

Destroy any local modifications. Preserving local modifications is a side effect of using git that does not apply to all uses of go get -u.

Display a warning with go get -u saying that go get -u -f is required

Reinvent several change-tracking features of git... probably unwise.

So How about 1 or 2 above?

Number two seems the least invasive, however I don't think that's what -f is for:
The -f flag, valid only when -u is set, forces get -u not to verify that
each package has been checked out from the source control repository
implied by its import path. This can be useful if the source is a local fork
of the original.

-f is essentially "just do a git pull, don't check that it's pulling from the right place". We'd want a new flag.
If we want this, then I suggest just returning an error and failing early, such as when there are local modifications for a versioned repository. People will need to remove the package directory to continue with a go get -u with tarball source.

Sorry, I think we're going to decline this proposal.
The Go project isn't interested in building a version control system and once we start thinking through all the implications of implementing this proposal, it starts to sound like a version control system.
Since Github and other version control system hosting providers are free, and Go already has a mechanism to point at an existing VCS from your HTML file on your own domain, we recommend you just use Github + <meta name="go-import" ...>.


Proper directory setup for localized .md files for pxt-target

Hi
I am implementing a new pxt target with exapmles and tutorials basing on the "pxt-sample" repository. I created new Gallery "tutorials" and a following tutorials.md and file in the doc directory:
# Tutorials

## Fun stuff

[{
  "name": "T 1",
  "description": "O 1",
  "url":"/tutorials/tutorial1",
  "cardType": "tutorial"
}, {
  "name": "T 2",
  "description": "O 2",
  "url": "/tutorials/tutorial2",
  "cardType": "tutorial"
}]

tutorial1.md and tutorial2.md are files in the /doc directory.
Everything works fine and tutorials display and run properaly.
The problem is with the localization. I've added lozalization files to the /libs/core/_locales/[language_code]. Both .jsons and localized versions of tutorial1.md and tutorial2.md. (According to this documentation https://makecode.com/writing-docs/user-tutorials ) The string from .json files are implemented propearly when i change the language setting, but the .md files are still taken from the /docs folder. What is the proper way to set the directories and files for the localized .md files? I know this is possible since the microbit target supports it for some languages, but i just do not know how to do it right?

Have you fix this?


feat: mock download test logic in pluginmanager

Signed-off-by: Meng JiaFeng<EMAIL_ADDRESS>Pre-Checklist

[x] I have read through the CONTRIBUTING.md documentation.
[x] My code has the necessary comments and documentation (if needed).
[x] I have added relevant tests

Description
mock download logic in unit test
Related Issues
#827

nitpick: consider refactoring the test cases into a table-driven test

I changed these tests to be table-driven，It does look better

I have changed variables to constants, this make code more clear


Off-by-one error in partition sizing

The following code in partitions.py:
part_offset = part.first_lba * BLOCK_SIZE
part_size = (part.last_lba - part.first_lba) * BLOCK_SIZE

should be:
part_offset = part.first_lba * BLOCK_SIZE
part_size = (part.last_lba - part.first_lba + 1) * BLOCK_SIZE

Consider having a disk of 20 blocks, and you have a partition that starts at 5 and ends at 10. part_size would end up being 10 - 5, which is 5 blocks. Unfortunately, the partition is actually blocks 5,6,7,8,9,10 , which is 6 blocks!
Without this fix, downloading a partition will drop the last block.

thx for reminding me to submit my PR ;)
see PR #40

This has been fixed for a while. Closing.


Bump the release version to v1.4.1

@paigerube14 @chaitanyaenr

Waiting for the image build to pass and we can merge the PR! Thanks.


:book: Added prior art links to release documentation.

What this PR does / why we need it:
Added prior art links to release documentation.

/override test-centos-e2e-integration-main
/override test-ubuntu-integration-main
Irrelevant tests. Save trees.