Getting 408 Attempt to decode JSON with unexpected mimetype: text/html

I keep getting this:
2024-12-30 20:16:29.935 DEBUG (MainThread) [custom_components.pajgps.device_tracker] Token refresh skipped (still valid).
2024-12-30 20:16:29.935 DEBUG (MainThread) [custom_components.pajgps.device_tracker] Getting data for device: XXXX
2024-12-30 20:16:29.936 DEBUG (MainThread) [custom_components.pajgps.device_tracker] Token refresh skipped (still valid).
2024-12-30 20:16:29.936 DEBUG (MainThread) [custom_components.pajgps.device_tracker] Getting data for device: YYYY
2024-12-30 20:17:25.537 ERROR (MainThread) [custom_components.pajgps.device_tracker] 408, message='Attempt to decode JSON with unexpected mimetype: text/html', url='https://connect.paj-gps.de/api/v1/trackerdata/XXXX/last_points?lastPoints=1'
2024-12-30 20:17:25.567 ERROR (MainThread) [custom_components.pajgps.device_tracker] 408, message='Attempt to decode JSON with unexpected mimetype: text/html', url='https://connect.paj-gps.de/api/v1/trackerdata/YYYY/last_points?lastPoints=1'

The error comes from here: https://github.com/skipperro/pajgps-homeassistant/blob/main/custom_components/pajgps/device_tracker.py#L434
I assume it's a timeout thing but it's strange since I can view video remotely from this machine, so a simple request to get some JSON shouldn't cause a 408

You assume correctly that it's timeout when getting data from PAJ GPS API. Since I'm not getting any errors and all my devices are running I assume that their servers are also working fine.
Can you give me more details like was it always like this for you or just started now? Does your home assistant use any VPN or other similar ways to connect? Is https://connect.paj-gps.de/api/documentation working for you (from HA machine)?


Warn against using lag clearing / mob stacking plugins.

What feature would you like to request?
Warn against using lag clearing / mob stacking plugins.
Are you able to help implement the feature?
No response
Is your feature request related to an existing bug or issue?
No response
Please enter any additional comments below.
No response

Closed in 22e3b1d


Schema: support a tag field that implies optionality

This will help us support testcases for optional parts of X.509 profiles, like certificate policy extensions.
Behavior
The presence of a tag implies that the testcase's behavior is "optional", meaning:

If the implementation under test supports the testcase's functionality, then the test MUST have the expected result (i.e., must succeed or fail as specified).
If the implementation under test doesn't support the testcase's functionality MUST fail.

(2) is a little murky -- I'm not 100% sure this should be MUST fail, but it's probably fine to start with that (since we expect to mostly use this on things like critical extensions that aren't universally supported).
Sketch
Something like this:
@testcase(tag="whatever")

...or maybe this:
@testcase
def whatever(builder: Builder):
    builder.tag("whatever")

The latter is probably easier to implement, so we should start with that.

If the implementation under test doesn't support the testcase's functionality MUST fail.

Thought about this some more, and this is probably wrong: the testsuite should skip features it doesn't know about, rather than assuming that they're all critical. We can resolve coverage gaps that happen there with additional features, e.g. features=["no-cert-policies"] for testcases that explicitly cover implementations that choose not to support certificate policies.


HR/GR in DB is incorrect

Need to analyse a decompressed savefile to find where correct bytes are if they exist.

Database, signserver parser and channelserver was rewritten to store GR and HRP (previously exp) correctly.


How to quick edit and Debug?

In my case, I have another library CIS.Client, only SimplCommerce.Order use this lib.
Each time I edit code inside CIS.Client, I always rebuild CIS.Client, then SimplCommerce.Order, then WebHost to make it possible to Debug. If not, it show Breakpoint will not currently be hit. No symbols loaded for this document.
With simple project, I just stop debug, edit the code then Hit F5 to run again. With SimplCommerce, there'are too many projects, they take too much time and step to debug a single line.
Am I missing something?

@mrsherlock88 the easiest way is right click on the solution and choose build (not rebuild), unchanged projects will be skipped.
Btw, are you using the latest code of SimplCommerce?

Thanks for advise, any other solution to just edit and hit F5?
Anw, I cloned the repo about a month ago, and change both in core (Add, Remove columns, Remove Modules .....) so I can not get latest.

With the latest code I think you can just edit and hit F5

Yep, I will try and merge our code into the latest source.
Many thanks,


Firebase created a new authentication

The problem here is that the old databasesecret link (https://console.firebase.google.com/project/[projectname]/settings/serviceaccounts/databasesecrets) is now deprecated. The new key is on the settings and it's not the same of the previous databasesecret. So, when I tried to use the new key, I wasn't able to authenticate.

See #64. The https://github.com/crossfield/firebase-ruby fork uses the new Firebase authentication, but it hasn't been merged here.

Would love to take a PR around this!


build on ARM

Describe what happened:
Attempting to build the project on a Raspberry Pi 3 resulted in these errors:
~/go/src/github.com/DataDog/datadog-agent $ invoke agent.build --build-exclude=snmp
# github.com/DataDog/datadog-agent/pkg/collector/py
pkg/collector/py/datadog_agent.go:148: type [1073741824]*C.char larger than address space
pkg/collector/py/datadog_agent.go:148: type [1073741824]*C.char too large

Is it currently possible to compile on (32-bit) ARM platforms, or cross-compile for them?

I had a similar problem
pkg/collector/py/datadog_agent.go:148: type [1073741824]*C.char larger than address space pkg/collector/py/datadog_agent.go:148: type [1073741824]*C.char too large
But building Puppy worked:
invoke agent.build --puppy
Successfully wrote /home/pi/go/src/github.com/DataDog/datadog-agent/cmd/agent/dist/datadog.yaml

Thanks @masci

Thanks @masci , building puppy worked for me as well

Cool, closing for now, feel free to re-open if you experience issues on the ARM platforms.

I attempted to cross-compile from my Mac and experienced a different issue:
$ env GOOS=linux GOARCH=arm GOARM=5 invoke agent.build
go build github.com/DataDog/datadog-agent/vendor/github.com/sbinet/go-python: build constraints exclude all Go files in /Users/taylor/projects/go/src/github.com/DataDog/datadog-agent/vendor/github.com/sbinet/go-python

But once I added the --puppy option, the build worked for me as well.

For the record, I have the same problem on a i686 box (Debian 8.11) with Go 1.10.3. i386.
# invoke agent.build --build-exclude=snmp,systemd
# github.com/DataDog/datadog-agent/pkg/collector/py
pkg/collector/py/datadog_agent.go:159: type [1073741824]*_Ctype_char larger than address space
pkg/collector/py/datadog_agent.go:159: type [1073741824]*_Ctype_char too large
pkg/collector/py/datadog_agent.go:263: type [1073741824]*_Ctype_char larger than address space
pkg/collector/py/datadog_agent.go:263: type [1073741824]*_Ctype_char too large

Building the Puppy version works.


New clean config structure with packages

As described in #56 i changed the whole config to a more general setup.
Now you only need the esphome.yaml file. No duplications of anymore.
Please test it and give feedback :)

One thing you might want to consider is using the new friendly_name property in ESPHome. If defined, it automatically prefixes all of your entities with the friendly name - meaning you don't have to substitute that in every sensor name. It also makes it much easier to have more than one AIOSense (or any other device for that matter..) in a single home.
For example, in my config - I have;
name: "SomeUniqueName"
friendly_name: "Office Sense"

sensor:
  - platform: bme680
    temperature:
      name: "Temperature"
      ...

Now, the device is called "Office Sense" in home assistant, and the sensor entity is automatically called "Office Sense Temperature".
It makes things much easier!

One thing you might want to consider is using the new friendly_name property in ESPHome

@cadriel Thank you for the hint. I'll change it :)

The occupancy,.yaml doesn't support the ld2410 yet. Maybe we could still add that feature :)

The occupancy,.yaml doesn't support the ld2410 yet. Maybe we could still add that feature :)

Thanks. Should be fixed.


Exclude CUDNN environment variables in forbidden list

According to the official docments:
https://docs.nvidia.com/deeplearning/cudnn/install-guide/index.html
https://github.com/soumith/cudnn.torch/blob/master/cmake/FindCUDNN.cmake
Don't disallow passing these environment variables in Windows.

Currently we 'install' it by unzipping it on top of a cuda install.

In the latest version, CUDNN is separated from CUDA [1].
And the official document said:
export QNX_HOST={flash_dir}/toolchains/qnx_toolchain/host/linux/x86_64
export QNX_TARGET={flash_dir}/toolchains/qnx_toolchain/target/qnx7
export HOST_COMPILER=$QNX_HOST/usr/bin/aarch64-unknown-nto-qnx7.1.0-g++
export CUDNN_LIB_PATH=/usr/lib/aarch64-unknown-nto-qnx
export CUDNN_INCLUDE_PATH=/usr/include/aarch64-unknown-nto-qnx
export CUDA_PATH=/usr/local/cuda-safe-11.4/targets/aarch64-qnx
export PATH=$PATH:$QNX_HOST/usr/bin

In cmake side, cmake uses the following environment [2]:
find_library(CUDNN_LIBRARY
  NAMES libcudnn.so${__cudnn_ver_suffix} libcudnn${__cudnn_ver_suffix}.dylib ${__cudnn_lib_win_name}
  PATHS $ENV{LD_LIBRARY_PATH} ${__libpath_cudart} ${CUDNN_ROOT_DIR} ${PC_CUDNN_LIBRARY_DIRS} ${CMAKE_INSTALL_PREFIX}
  PATH_SUFFIXES lib lib64 bin
  DOC "CUDNN library." )

But I asked another guy, he said CUDNN should be installed into CUDA installation path, so I can close this PR now [3].
[1]. https://docs.nvidia.com/deeplearning/cudnn/install-guide/index.html#qnx-cross-compiling-set-env-variables
[2]. https://github.com/soumith/cudnn.torch/blob/master/cmake/FindCUDNN.cmake#L123-L127
[3]. https://docs.nvidia.com/deeplearning/cudnn/install-guide/index.html#installlinux
https://docs.nvidia.com/deeplearning/cudnn/install-guide/index.html#installwindows

Currently we 'install' it by unzipping it on top of a cuda install.

In the latest version, CUDNN is separated from CUDA. And the official document said [1]:
export QNX_HOST={flash_dir}/toolchains/qnx_toolchain/host/linux/x86_64
export QNX_TARGET={flash_dir}/toolchains/qnx_toolchain/target/qnx7
export HOST_COMPILER=$QNX_HOST/usr/bin/aarch64-unknown-nto-qnx7.1.0-g++
export CUDNN_LIB_PATH=/usr/lib/aarch64-unknown-nto-qnx
export CUDNN_INCLUDE_PATH=/usr/include/aarch64-unknown-nto-qnx
export CUDA_PATH=/usr/local/cuda-safe-11.4/targets/aarch64-qnx
export PATH=$PATH:$QNX_HOST/usr/bin

Yes, but that's talking about behavior of the official NVIDIA maintained apt packages. Yes, on Linux, you need those environment variables. But this PR only affects Windows, not Linux, so I think only what the Windows docs say are relevant, and they suggest unzip-on-top-of-CUDA. I believe it's going to hit in that find_library via __libpath_cudart.
Do we have an actual user report this is fixing?

@BillyONeal Currently I'm working on add Windows support to port CUDNN since its supports expression is (windows | linux) & x64.
But first, we should allow to find cudnn's installed files.

@BillyONeal Currently I'm working on refactor onnxruntime-gpu and try to install cudnn in Windows.
Since the cudnn's portfile has:
find_path(CUDNN_INCLUDE_DIR NAMES cudnn.h cudnn_v8.h cudnn_v7.h
  HINTS ${CUDA_TOOLKIT_ROOT} $ENV{CUDA_PATH} $ENV{CUDA_TOOLKIT_ROOT_DIR} $ENV{cudnn} $ENV{CUDNN} $ENV{CUDNN_ROOT_DIR} /usr/include
  PATH_SUFFIXES cuda/include include)
find_library(CUDNN_LIBRARY NAMES cudnn cudnn8 cudnn7
  HINTS ${CUDA_TOOLKIT_ROOT} $ENV{CUDA_PATH} $ENV{CUDA_TOOLKIT_ROOT_DIR} $ENV{cudnn} $ENV{CUDNN} $ENV{CUDNN_ROOT_DIR} /usr/lib/x86_64-linux-gnu/
  PATH_SUFFIXES lib lib64 cuda/lib cuda/lib64 lib/x64 cuda/lib/x64)

I'm curious if these paths are allowed.

try to install cudnn in Windows

We can't do that because NVidia doesn't provide it without asking you to fill out a questionnaire :(. That's why if you look at our provisioning scripts for it right now we have to grab it from an internal Azure Storage account: https://github.com/microsoft/vcpkg/blob/master/scripts/azure-pipelines/windows/create-image.ps1#L24

Since the cudnn's portfile has:
I'm curious if these paths are allowed.

CUDA_TOOLKIT_ROOT_DIR is allowed:
https://github.com/microsoft/vcpkg-tool/blob/48be135568c3930571adb03ff1632b8c159c2787/src/vcpkg/base/system.process.cpp#L347

At least https://github.com/microsoft/vcpkg/pull/23768 works fine when we update CUDA to the next version.


Update iTerm2: depends_on macos and arch

Version 2.1.4 needs depends_on setting :)

iTerm2 2.1.4 (OS 10.7+, Intel-only)

https://www.iterm2.com/downloads.html

Thank you for the contribution. It was merged directly as 247283aef8c62894a531ed4c48eb53fc37d39694 to keep commit history cleaner. Your contribution is still credited to you.


TextureHandle.set_partial( ) panics in wgpu

Can anyone help for this issue? Many thanks.
Describe the bug
TextureHandle.set_partil panics in wgpu. here is detailed info:
size: [
3248,
2432,
]thread 'main' panicked at wgpu-22.1.0/src/backend/wgpu_core.rs:3411:5:
wgpu error: Validation Error
Caused by:   In Queue::write_texture     Copy of X 100..3348 would end up overrunning the bounds of the Destination texture of X size 3248
To Reproduce
Steps to reproduce the behavior:
if let Some(handle) = self.texture_handle.as_mut() {
        let image_data = self.image_data.clone().unwrap();
        handle.set_partial([100usize, 200], image_data, self.texture_options);
        ui.image(SizedTexture::from_handle(&handle));

You are writing outside the bounds of the texture. The first argument is a position, not a size.


Change definition of complex sign if numpy does

Just a heads-up that over at numpy, I have a PR -- https://github.com/numpy/numpy/pull/25441 -- that changes the definition of complex sign to z / |z|, which follows the Array API standard and is more logical than what numpy (and numba) had. This is still open for discussion on the mailing list [1], but the hope is to make the change in numpy 2.0.
[1]<EMAIL_ADDRESS>

@mhvk thank you for the heads up. I took the liberty to create a milestone for Numpy 2.0 -- that we may collect all the tasks that pertain to that. From what I have heard so far, this will not be the only breaking change.

numpy v2.0.0rc1 was just released, and it indeed includes the PR by @mhvk


Remove version: Twinkstar.TwinkstarBrowser version 8.7.2000.2303

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

URL: https://d1.twinkstar.com/win/Twinkstar_v8.7.2000.2303_ReleaseA32.exe
Response status code does not indicate success: 404 (Not Found).
(Automated message - build 867)


Feature request: Beeing able to extends mapProps

Hi,
Maybe this is already posible, but I didn't find how
Currently if I want to add a error prop on the Control component to do some custom styling like a red border for React Native TextInput, I can't do that:
<Control.TextInput
  model={`.example-text`}
  mapProps={{
    error: ({fieldValue}) => {
      return fieldValue.touched ? !fieldValue.valid : false
    }
  }}
  validators={{
    isRequired: (value) => {
      return value && value.length > 0;
    }
/>

Because it just removed all the custom mapProps defined on the native.js file and do not extend them.
If I want that to work I need to somehow copy your native.js code and add my own mapProps for error and It works.
<Control.TextInput
  model={`.example-text`}
  mapProps={{
    onResponderGrant: ({ onFocus }) => onFocus,
    value: (_props) => ((!_props.defaultValue && !_props.hasOwnProperty('value'))
      ? getTextValue(_props.viewValue)
      : _props.value),
    onChangeText: ({ onChange }) => onChange,
    onChange: noop,
    onBlur: ({ onBlur, viewValue }) => () => onBlur(viewValue),
    onFocus: ({ onFocus }) => onFocus,
    error: ({fieldValue}) => {
      return fieldValue.touched ? !fieldValue.valid : false
    }
  }}
  validators={{
    isRequired: (value) => {
      return value && value.length > 0;
    }
/>

But the goal would be to do it by extending the mapProps, maybe I'm missing something easy to do as it is, but I've tried something like that and it doesn't work:
<Control.TextInput
  model={`.example-text`}
  mapProps={{
    ...Control.TextInput.mapProps,
    error: ({fieldValue}) => {
      return fieldValue.touched ? !fieldValue.valid : false
    }
  }}
  validators={{
    isRequired: (value) => {
      return value && value.length > 0;
    }
/>

Not urgent, but something that would be nice.
Best,
Thibault

After this is released in the next patch, you should be able to extend mapProps just as you have it:
<Control.TextInput
  model={`.example-text`}
  mapProps={{
    error: ({fieldValue}) => {
      return fieldValue.touched ? !fieldValue.valid : false
    }
  }}
  validators={{
    isRequired: (value) => {
      return value && value.length > 0;
    }
/>

Great ! 👍  Many thanks for this library BTW !


Moe Sync

This code has been reviewed and submitted internally. Feel free to discuss on the PR and we can submit follow-up changes as necessary.
Commits:
 Avoid NPEing on symbols which have no enclosing class
See also b/123431414, which is about symbols with no enclosing package.
0f1c1a8b73f7f3e5749a05c7c6a29db281b93543

This is a spurious sync, probably because I've been testing the sync scripts. This commit has already been merged from another run.


Is there any guide for compiling CTK?

Dear:
it is difficult to build CTK, and the CMakeLists in CTK project are so complex that it is diffcult for beginner to understand and make revision.
could you please provide an reference about how to use CMake-gui.exe and MinGW to build CTK project?
Greate Thanks!

CTK has a lot of complex options, so there's not always an easy way to build it.  Plus MinGW has some non-standard features so I'm not sure CTK has ever been built on it.  We do target the windows native build tools though and you might be able to build with those and use the results in MinGW.  You can check how CTK is used in Slicer for build configurations that are known to work across OSes (of course, that's even more complex than CTK itself).

The idea of MinGW was to create multi-platform libraries by porting the Linux toolchain to Windows, but it never worked well (based on my experience it introduced as many problems as it solved). It has been made largely irrelevant by CMake, which allows developers to write multi-platform code that can be built on each platform by native toolsets.
I would recommend to use Visual Studio on Windows also because then if you have any specific questions you can ask us here.

OK，Thanks, i got it. i will have a try at Visual Studio.


removes w=z trick (was causing fisheye, effectively)

BTW I can confirm this fixes the vomit-inducing warping effect that can be seen through a VR HMD.


⚠ Samsung has degraded performance

In d2ab686, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2519 ms

Resolved: Samsung performance has improved in c86fa33.


Change --version to read from stdout

A change in the buf cli moved the output of the --version flag to stdout.
Fixes #17.

This won't work with pre v1.0.0 versions of buf. I think we need to support both for a while.

Ah you're right. Let me update this to check both, my bad 😓

Updated this to support both stdout and stderr. Tested with various old versions of the buf binary from the releases and it worked as well as with the latest version of buf.


Error using YOLO3 with darknet, potentially due to old OpenCV dlls

Have successfully used OpenCVSharp for integrating YOLO2 in Unity, however after trying to include the YOLO3 cfg and model, I'm getting an error thrown

OpenCVException: Unknown layer type: yolo
OpenCvSharp.NativeMethods+<>c.<.cctor>b__1581_0 (OpenCvSharp.ErrorCode status, System.String funcName, System.String errMsg, System.String fileName, System.Int32 line, System.IntPtr userdata) (at :0)
OpenCvSharp.Dnn.Net.ReadNetFromDarknet (System.String cfgFile, System.String darknetModel) <0x1667c620 + 0x000aa> in :0

After having done some research, YOLOv3 support has been added in OpenCV3.4 (from the 18th of April) and I'm unsure of how to go around this issue. Potentially rebuilding OpenCVSharp to use the new version of OpenCV? Or maybe this is an issue within OpenCVSharp itself

Hi trullilulli,
Have you found any solution to the above problem?

Hi trullilulli,
Have you found any solution to the above problem?

Sadly not a direct resolution to this issue! I ended up using Alturos YOLO, a C# DarkNet wrapper which works with YOLO3, you can find more here https://github.com/AlturosDestinations/Alturos.Yolo

Thanks for the reply.


FR: Only gather media till overlaps most recent existing file

Note: The following is a theoretical exercise and I am not advocating this be used in violation of any terms of service or law.
This is similar to #8 but more complicated to implement. Not downloading existing files is a huge improvement, but it still takes a lot of time to download all the media information and then check if the files exist.
I don't use Instagram myself, but I am guessing users cannot retroactively add media? If that's true, the script should be able to check the date of the newest file in the folder that would be created upon first run and then only collect the media info till that date is reached. If this script is being run daily, for instance, likely it would never need to pull more than the first batch of photos.
I'd think that could again be implemented as default behavior and not require an option, unless the script were later augmented to check if any files were previously saved by no longer appear in the Instagram account, as a sort of "deletion detection" feature.

I've made something that does that. I would have extended instagram-scraper, but I yanked a bunch of this code out of another project I was working on which used parts of instagram-scraper, maybe one day.
https://github.com/Skinner927/instagram-scrape-and-mail

Added --latest argument which will only new media since the last scrape. Uses the last modified time of the latest media item in the destination directory to compare.

This works wonderfully. THANK YOU!!

Does this works for type=story as well?


Always keep curly brackets for dynamic paths

Currently, when we declare dynamic path (with @Path), the generator do not include brackets for string interpolation which is fine in most cases but not always...
@GET('/images/{id}_XL.png')
Future<HttpResponse> getImage(@Path('id') String id)

this will generates this code :
Future<HttpResponse<dynamic>> getImage(uuid) async {
// ...
      .compose(_dio.options, '/api/images/products/$uuid_XL.png',
// ...
}

The string interpolation expects a variable named uuid_XL instead of uuid. The generator should always add brackets. This PR fixes that and now generates :
Future<HttpResponse<dynamic>> getImage(uuid) async {
// ...
      .compose(_dio.options, '/api/images/products/${uuid}_XL.png',
// ...
}

Let's add @woprandi as a contributor of code

Let's add @woprandi for the contributions. cc @all-contributors

@all-contributors please add @woprandi for bug


Sentry interceptor example

What was changed

added Sentry interceptor example based on discussion in slack thread
Why?

Sentry is a popular error monitoring tool & interceptors aren't super intuitive to make from scratch, hopefully this can be a good starting point for folks
Checklist

How was this tested:
Executed locally

Any docs updates needed?
not sure

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

will try to implement the tests/readme/worker changes this weekend

@nediamond - Wanted to follow up here. I think this is a great sample. Let me know if there's anything I can do to help move it along.

@cretz sorry got busy with life stuff will set some time aside for this before next week - feel clear on what needs to be done thanks

@cretz i reverted the poetry.lock file bc it looked like the checks didnt like it - could use your help generating that since it seems like it may be from a difference in my setup or something
added a super basic readme, but i think this is about as much as i can commit to for now

could use your help generating that since it seems like it may be from a difference in my setup or something

added a super basic readme, but i think this is about as much as i can commit to for now

Ok, I will look to fixing that and improving your README

Hey @nediamond and @cretz, I just wanted to share a pitfall I found in this approach for implementing Sentry via interceptors when using threaded activities. Because activities are run in a thread in a ThreadPoolExecutor or in a separate process but the interceptor is run in the main thread, the activity code gets a totally different Sentry scope/context than the interceptor. So any context generated inside the activity (such as breadcrumbs, setting tags, context etc.) will not be included in the resulting Sentry issue. I also was experiencing some "leakage" of contexts, where transaction names would be wrong (I don't 100% understand what was happening there). I haven't tested with async activities, but I feel like maybe they might have the same issue too because Sentry uses contextvars?
My solution was to add Sentry handling to a custom decorator that wraps the @activity.defn decorator and does Sentry handling in the thread. I left the activity interceptor as a fallback, and set an attribute on the activity function and skip interceptor Sentry handling if this attribute is set.
I just wanted to write this up in case you had any further thoughts on this and as a note for others implementing Sentry with Temporal Python SDK.

Hrmm, this is true. I think we need to be putting contextvars from interceptors on to threaded activities. I have opened https://github.com/temporalio/sdk-python/issues/263.


fix Firefox impact modal

normalise bg-color for Firefox modals because they were looking like this 🤮

add first render check to pad by 1em on first canvas mount

Mmm the 1em fix doesn't work for me on Firefox yet @Syncretik  🤔

@Syncretik for some reason there's no deploy of the new branch 🤔 ?


Read DB in Hive Metastore and build data config

Using tables found in a Hive Schema, build out a data config that can be used to generate data for the schema.
Use common terms OR constraints as 'references' between tables.


CORS Policy Issues

I'm working completely locally and am utilizing the API via JS. Very simple stuff. However, I'm getting a CORS policy issues when I hit the local API. Thoughts?

You could pass the API through nginx and add the CORS headers. A feature to enable CORS would be nice though, maybe an environment variable toggle?

Yes! That would be fantastic. I ended up circumventing with a Chrome add-on but you're right - adding via nginx would be best. Or best yet: your suggestion!

Hello, I have the same issue. It works if I run it locally but when I try to use it from another pc with the ip adders it doesn't work. What can I do to solve this issue?

Hello, I have the same issue. It works if I run it locally but when I try to use it from another pc with the ip adders it doesn't work. What can I do to solve this issue?

https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS

Just an FYI for anyone else stuck in CORS hell, you can set the allowed hosts by adding the following to webservice.py:
from fastapi.middleware.cors import CORSMiddleware

app = FastAPI(
    # Existing block of code w options
)

allowed_origins = [
    "http://localhost:5173",  # Make sure this matches the port your frontend is running on
    "https://yourfrontenddomain.com",  # Replace this with your actual frontend domain
]

app.add_middleware(
    CORSMiddleware,
    allow_origins=allowed_origins,  # List of allowed origins
    allow_credentials=True,
    allow_methods=["*"],  # Allows all methods
    allow_headers=["*"],  # Allows all headers
)

I think it would be a nice feature to have a way to inject the allowed origins into an env var for runtime.


Translation Updates - Lab 3

Lab 3
Exercise 1
Task 3
Step 2
"비활성화" should be changed to "사용 안 함"
Lab 3
Exercise 1
Task 4
Step 4
"삭제 잠금" should be changed to "Delete Lock". Cannot delete resource locks in Korean in Cloud Shell

Hello contributor,
Thank you for your contribution! We are processing your suggestions and we will update you shortly.
Kind regards,
Microsoft Worldwide Learning Team

Blocked Locfile is at PHO - needs to be at HB

Discussed with the PM - update made to the older HB locfiles and this will seed the TM when handedback


Included a basic scaling test for remote monitoring

Included a basic scaling test for remote monitoring

Quick Scale tests are automated in this PR - https://github.com/kruize/autotune/pull/832 , closing this as these changes are not required.


Spells, agents, etc should be isolated to per-account

Right now with the current Thoth server we are not giving per-user access to spells, personalities, agents, knowledge bases, etc.
When running in our default, non-Latitude mode, user accounts are kind of a headache, so we probably want to just default to a default user. If someone wants to add a non-Latitude login system in the future for multi-tentant Thoth instances, they certainly can.

Yeah.  I think if we get it all sorted so it "just works" with a latitude SSO, that is fine.  And if anyone has. strong use case for not storing the data against a latitude user ID in the DB, then we can always be open to PR's or do it ourselves if there is a strong cause to do so.


BottomNavigationBar notch disappearing when keyboard is open

I'm having a bizarre issue where the notch in my bottom navigation bar goes missing when the device keyboard is visible.
I'm translating the navigation bar when the device keyboard is open, but have tested the translate when the keyboard is fine, so I don't think the translate is the issue.
Keyboard closed:

Keyboard opened:

It appears to me to be a bug.

Hi @leesus
Not able to reproduce this issue on latest dev channel

Code Sample
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      theme: ThemeData.dark(),
      home: Home(),
    );
  }
}

class Home extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final bottom = MediaQuery.of(context).padding.bottom;
    return Scaffold(
      appBar: AppBar(
        title: Text('Material App Bar'),
      ),
      body: Center(
        child: TextField(
          decoration: InputDecoration(
            border: OutlineInputBorder(),
          ),
        ),
      ),
      floatingActionButtonLocation: FloatingActionButtonLocation.endDocked,
      floatingActionButton: FloatingActionButton(
        child: Icon(Icons.add),
        onPressed: () {},
      ),
      bottomNavigationBar: Container(
        margin: EdgeInsets.only(bottom: bottom + 300),
        child: BottomAppBar(
          shape: CircularNotchedRectangle(),
          notchMargin: 12,
          color: Colors.blue,
          child: Container(
            height: 60,
          ),
        ),
      ),
    );
  }
}

flutter doctor -v
[✓] Flutter (Channel dev, 1.20.0-1.0.pre, on Mac OS X 10.15.5 19F101, locale
    en-GB)
    • Flutter version 1.20.0-1.0.pre at /Users/tahatesser/Code/flutter_dev
    • Framework revision f73f498da1 (7 days ago), 2020-06-18 08:23:22 -0700
    • Engine revision c0d52b98d1
    • Dart version 2.9.0 (build 2.9.0-16.0.dev 2b917f5b6a)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/tahatesser/Code/sdk
    • Platform android-29, build-tools 29.0.3
    • ANDROID_HOME = /Users/tahatesser/Code/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.5, Build version 11E608c
    • CocoaPods version 1.9.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 46.0.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.46.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.11.0

[✓] Connected device (5 available)
    • SM M305F      • 32003c30dc19668f          • android-arm64  • Android 10
      (API 29)
    • Taha’s iPhone • 00008020-001059882212002E • ios            • iOS 13.5.1
    • macOS         • macOS                     • darwin-x64     • Mac OS X
      10.15.5 19F101
    • Web Server    • web-server                • web-javascript • Flutter Tools
    • Chrome        • chrome                    • web-javascript • Google Chrome
      83.0.4103.116

• No issues found!

Can you please provide your flutter doctor -v  and a complete reproducible minimal code sample
Thank you

@TahaTesser The margin solves the problem. It seems to be a combination of the device keyboard and Transform.translate that cause the notch to disappear.


Error while crawling at large size domains

Sometimes, I get this error and I guess it happens when the target domain contains many links in it
ERROR While Crawling
maximum recursion depth exceeded while calling a Python object

After adding this line:
sys.setrecursionlimit(10000)
I got this error:
ERROR While Crawling
Exceeded 30 redirects.

@waelahmed-dev you can change the value of sys.setrecursionlimit() on your Local System according to your use case.


Lazy import pandas

Fixes https://github.com/openai/openai-python/issues/525
Results from code Code snippets in issue
0.3406072079669684 <openai.datalib.common.DependencyUnchecked object at 0x100f66500>
6.4803954580565915 <module 'pandas' from '/Users/pedrovicente/.virtualenvs/openai-python-uihn/lib/python3.10/site-packages/pandas/__init__.py'>
1.459033228456974e-06 <module 'pandas' from '/Users/pedrovicente/.virtualenvs/openai-python-uihn/lib/python3.10/site-packages/pandas/__init__.py'>

See import time now takes 0.3s

Thanks for this!
We've since rewritten the library entirely, so this change is no longer relevant. I'm sorry we didn't get to it sooner.


x/tools/gopls: diff metadata before invalidating on changes to go.mod

Right now, gopls invalidates all workspace metadata if there is a change to the user's go.mod file. This is unnecessary if the metadata remains valid after the change. @heschik proposes running go list -m all as a gate during the snapshot cloning to determine if we should invalidate all metadata or keep it in the cache. Either way, we will either invalidate all metadata for the workspace or none.

CC @adonovan
I think this is less urgent now that we only invalidate on saves to go.mod, go.work, etc., but also we're pretty close to being able to do this after recent refactorings to invalidation and loading. It would be easy to avoid applying metadata changes if no diff was detected in cache.buildMetadata.
The problem is getting the package invalidation correct to avoid layering problems: when we invalidate metadata in snapshot.clone, we also invalidate computed packages. With the current caching model, these packages get evicted ~immediately, so even if metadata has not changed following the load they need to be recomputed.  If we don't invalidate immediately, then we have packages in the snapshot whose metadata does not match the stored metadata.  As we have seen, maintaining such invariants is crucial.
I think the cleanest way to achieve this may be to not do metadata invalidation in snapshot.clone, but just schedule a reload (c.f. https://go.dev/cl/417576).  Then, create a new snapshot on load. This has the advantage of making metadata in the snapshot fully immutable.  Along with #42814, we can move toward a model where the snapshot is entirely immutable, save for lazily computed promises.
Moving this to the gopls/later milestone.


TestStatsdThroughput should be a benchmark

It is a test that is run under race detector to detect races :)


Handling special programs

Hello! Thank you for developing this great extension, and it has been really helpful!
I ran into the rare instance where I want to listen / dl a radiko special program: https://radiko.jp/rg/special/autoreverse/
Listening works, but with download, I don't see the usual download timefree button. It remains on "confirm" view.
Thanks for taking a look!

If you need it you could use the donwload link below.
https://send.vis.ee/download/59efa3b43ee220a8/#NxnbSWThYgOkERqF1VUjQw
password: autoreverse
Valid for 7 days or 20 downloads


fix serialization, internal issue #375

Fixes:

BlockInfo now uses RLP for default serialization and deserialization when possible
BlockInfo deserializer can default to old implementation when necessary

BlockInfo constructor :
need check RLP.decode2(ser) if is emtpy before pull first element.
MigrationRedirectingInputStream:
throwing exceptions in the constructor to be bad practice

Will patch the decoding logic to return early if the list is empty.
As for point 2) IOException is inherited from ObjectInputStream.

but keep in mind ,    the object serialization not only for blockinfo,  but also the outside wrapper,--> List<>,  which use ObjectDataSource<>,   if the wrapper was changed before we migrate to pub test net, we need review this patch.


Cannot access docker daemon from host when portainer is running

Description
Cannot access docker daemon from host when portainer is running
Steps to reproduce the issue:
1.install docker
2.start docker daemon
3.install portainer container and start it using  -v /var/run/docker.sock:/var/run/docker.sock
4 try to connect to the daemon from the host with docker ps for example
5 get the following error:
cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
I was expecting to still be able to access docker from the host machine.
Technical details:

Portainer version:1.15.5
Target Docker version (the host/cluster you manage):
Platform (windows/linux): linux
Command used to start Portainer (docker run -p 9000:9000  -v /var/run/docker.sock:/var/run/docker.sock  portainer/portainer):

Hi @thomasricaud , did you try running docker ps in the same host just before starting portainer? Or, can you stop and remove the portainer daemon and try docker ps?
I'd say that you user does not have the required privileges and you need to run sudo docker ps, which is independent of portainer being used.

I did install portainer using the command line on the same host with my user, meaning i had the right access.
I noticed that the file /var/run/docker.sock wasn't there (but i still could manage and see my containers on the portainer webUI)
So i asked the admin to reboot the daemon docker and it's working fine now.

I did install portainer using the command line on the same host with my user, meaning i had the right access.

Note that you can have the right access to execute apt, pacman, dnf... but not to interact with the docker daemon from the cli: https://docs.docker.com/engine/installation/linux/linux-postinstall/#manage-docker-as-a-non-root-user

So i asked the admin to reboot the daemon docker and it's working fine now.

Therefore, it is possible that the linux postinstall steps referred above where applied sometime between your last try and the reboot.
Happy it is solved anyway!

When I said install I meant using the docker run command. Don't I need access to the daemon for that ?

Yes. You do. This is quite strange then. Did you remember doing those postinstall steps or telling the admin to do them? Was there any daemon update which might require a reboot?

The admin did the postinstall steps. My user is in a special groups to have access.(docker)
We had a machine reboot to add some memory. Maybe the daemon(and all the containers) was killed and not properly stopped at that step. Could that be the root cause of the docker.sock file disappearing?

I can not confirm it, but I'd say it is. I'd say that it was not incorrectly stopped, but it wasn't properly restarted. What sounds really strange is that you could properly execute docker run to start portainer, but docker ps failed. docker run should have failed.
Anyway, as I commented, this issue is not likely to be really related to portainer itself, as it is just a container. I mean, there is not "exclusive access" required by portainer. Indeed, I usually have multiple portainer instances along with a couple of other containers with the docker socket mounted, plus I use docker cli. Never had any problem, unless related to docker daemon and user permissions.

Probably. Thanks for your help anyway. Since it's working now I'll close the issue.


advanced_dhcp_server role fails with opt61

Hi,
When I write an inventory file that describes the options 61, I have issue:
failed: [mngt0-1] (item=ice1-1) => changed=false
  ansible_loop_var: item
  item: ice1-1
  msg: 'AnsibleUndefinedVariable: ''dict object'' has no attribute ''dhcp'''

I have fixed this issue like this.
Kind regards

Dear @hmeAtos
You are right, I inverted both values.
Many thanks for this fix :-)
I will report it into 1.2.0 branch also.
Best regards
Ben


How to configure Elasticsearch Mappings

Which Category is your question related to?
@searchable
What AWS Services are you utilizing?
Elasticsearch Service
Provide additional details e.g. code snippets
I'm using @searchable to match queries through elastic search, however the mapping is missing a core piece of information.
My model:
Note {
  id: ID
  content: string
  references: [ID]
}

In this case the references should increase the score of the referenced note id. But I'm unable to find any way to affect the mapping. This must be possible in some way?

Is there even a way to do this? The lambda that's streaming my Notes to ES should be able to do this I believe. But I can't really figure out how.

Hello @raelmiu
You are able to override the generated ES lambda function by providing your own streaming function zipped into amplify/backend/api/<your_api_name>/functions/ under your api folder.
As for how to configure your mapping this is something we would encourage to use our community discord discord.gg/amplify.

@SwaySway I just want to add that there's a total of 80 ppl on that discord, and this is the third "forum" for Amplify I've been sent to. No wonder ppl are confused and end up in GitHub issues.


Popper Component throwing type error when updating from v5.10.15 to v5.10.16

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Steps to reproduce 🕹
Link to live example:
Steps:

Import Popper/Timeline component from @mui/material.
ESlint starts showing type error that nonce onResize onResizeCapture are required

Current behavior 😯
Popper component shows type error that nonce onResize onResizeCapture are required.

Setting the props value to undefined solves the type error.

Expected behavior 🤔
Popper component should not show type error for props which can be set as undefined. We need to set the nonce onResize onResizeCapture prop to be optional in Popper types.
Context 🔦
This issue affected by build pipeline in Next.js as I've enabled type checks and validity at build time which started to fail due to library v5.10.16.

Your environment 🌎

npx @mui/envinfo
  Browser Used: Chrome Version 107.0.5304.121
  System:
    OS: macOS 12.6
  Binaries:
    Node: 16.15.0 - ~/.nvm/versions/node/v16.15.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.15.0/bin/yarn
    npm: 8.5.5 - ~/.nvm/versions/node/v16.15.0/bin/npm
  Browsers:
    Chrome: 107.0.5304.121
    Edge: Not Found
    Firefox: 107.0
    Safari: 16.0
  npmPackages:
    @emotion/react: ^11.10.4 => 11.10.5
    @emotion/styled: ^11.10.4 => 11.10.5
    @mui/base:  5.0.0-alpha.108
    @mui/core-downloads-tracker:  5.10.16
    @mui/icons-material: ^5.10.6 => 5.10.16
    @mui/lab: 5.0.0-alpha.97 => 5.0.0-alpha.97
    @mui/material: 5.10.16 => 5.10.16
    @mui/private-theming:  5.10.16
    @mui/styled-engine:  5.10.16
    @mui/styles: ^5.10.3 => 5.10.16
    @mui/system: ^5.10.3 => 5.10.16
    @mui/types:  7.2.2
    @mui/utils: ^5.10.3 => 5.10.16
    @mui/x-data-grid: ^5.17.1 => 5.17.14
    @mui/x-date-pickers: ^5.0.0 => 5.0.9
    @types/react: 18.0.19 => 18.0.19
    react: 18.2.0 => 18.2.0
    react-dom: 18.2.0 => 18.2.0
    typescript: ^4.8.3 => 4.9.3

{
  "compilerOptions": {
    "target": "es5",
    "lib": ["dom", "dom.iterable", "esnext"],
    "allowJs": true,
    "skipLibCheck": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "noEmit": true,
    "esModuleInterop": true,
    "module": "esnext",
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "jsx": "preserve",
    "incremental": true,
    "baseUrl": "src",
    "paths": {
      "ui-component": ["components/ui-component"],
      "ui-component/*": ["components/ui-component/*"]
    }
  },
  "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
  "exclude": ["node_modules", "./__generated__/globalTypes.ts"]
}

Relates to the same issue, I believe.
https://github.com/mui/material-ui/issues/35287

Duplicate of #35287

Duplicate of https://github.com/mui/material-ui/issues/35287


Tunnel.properties

Hi @dkmstr @mike-jumper,
I successfully did the installation of openuds server, tunneler (build the war using: https://github.com/dkmstr/openuds/tree/master/guacamole-tunnel) and guacd,
Now I would like to know what I need to provide in tunnel.properties, https://github.com/dkmstr/openuds/blob/master/guacamole-tunnel/src/main/webapp/WEB-INF/tunnel.properties
Thanks

I got it


MBB

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

windows-iotcore/TOC.md
:white_check_mark:Succeeded

windows-iotcore/connect-your-device/MBB.md
:white_check_mark:Succeeded

windows-iotcore/release-notes/CurrentInsider.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Add ability to save and load schemas (from transform) in JSON/XML format

https://github.com/deeplearning4j/DataVec/tree/master/datavec-api/src/main/java/org/datavec/api/transform/schema
These schemas: should be saveable in JSON and/or XML format, and loadable again using this. Currently, the only way is to define them manually (in code) or use java serialization.

Schemas and TransformProcesses can now be defined using JSON or YAML:
https://github.com/deeplearning4j/DataVec/pull/21


[sqllab] How can we make large Superset queries load faster?

I'm looking into the possibility of making large superset queries load faster. And I want members of the community to share ideas here.
Many times, users run a long query for a slice and get stuck waiting for a long time to get tens of thousands of rows they don't intend to see. Before users can see the query the whole query has to run and there usually is a round trip to s3. This takes a really long time.
For inspiration, the Presto/Hive CLI returns almost immediately because it uses something like the less bash command to load results immediately there are some rows.
There is a way to know if any data has been loaded in handle_cursor :
(https://github.com/apache/incubator-superset/blob/31a995714df49e55ff69474378845fd8af605d4b/superset/db_engine_specs.py#L617)
https://github.com/apache/incubator-superset/blob/31a995714df49e55ff69474378845fd8af605d4b/superset/db_engine_specs.py#L185
The most basic idea is to make every query 2 queries. One query with a small limit (100?) and a View more button / loading icon so users don't wrongly assume that's all the results, while the actual full query keeps running.
I think we can do better than this starting idea. In particular, we shouldn't need 2 queries. Please share your thoughts.
@fabianmenges @hughhhh @john-bodley  @michellethomas  @mistercrunch @jeffreythewang

So say a user runs a query that returns 1M rows. Now we know that they're not going to read those 1M rows like it's a book, and 1K usually is a decent sample. Now what are some legit things they might do that requires 1M rows?

exporting the CSV to excel (different button)
searching client-side using the instant filtering table search functionality, which isn't a super-legit use-case since they could use a LIKE statement or something equivalent, though LIKE assumes you know the column. Anyhow. Returning 1M rows to full-text search a table isn't great.
infinite scrolling looking for patterns?
sort a column and use pagination?

In any case, it may be a good thing to always do 1K and allow them to push a button to get the whole set (and wait longer, maybe crash their browser). Perhaps the data table shows a msg at the top showing first 1k rows, click here to load the entire data set.
I haven't looked at the implementation of fetchmany for Presto/Hive in pyhive, but in theory given the dbapi spec you should be able to fetchmany(1000) and then fetchmany(MAX_ROWS). Assuming all this is happening on the worker (async), you'd ship the 1k to a first s3 location, and the whole set to another later on. That implies the introduction of:

a new query state partially_saved
perhaps some db_engine_spec methods if the two_phase_save need some specific handling on different engines
frontend logic that understands partially_saved, and exposes that to the user, allowing them to fetch the whole data set. CSV export should probably be greyed until the second phase is saved
configuration elements to turn this on and off (per db? per db engine as a BaseEngineSpec class attr?)
introduce 2 environment configuration settings PARTIAL_SAVE_ROW_COUNT, MAX_SAVE_ROW_COUNT or something equivalent?

Oh and I wanted to make it clear that we absolutely should not run the query twice, that's just not right.

I second this. I have a table with 2 million rows and I have to remember to manually add limit to my query every time I want to try something new in sqllab. And with limit, the generated visualization will also be limited, which is not ideal and making it extremely difficult to test new visualization.

Some more ideas were shared at today's meeting.
One was having a separate flow for downloading query results as CSV.
Otherwise, always limiting the query results ( this should help reduce Presto load). The question is that whe it is eventually run on a slice, it still runs the full query.
Third idea is to respond early to when 1000 rows have been generated. (This can be known from the stats object returned from polling) And send that to the frontend for rendering while the rest of it runs.
We will have to have an opinion on how superset should run queries and communiate that clearly in the interface so users, for example don't think the first 1K rows is all the results there is.

Another use case on this is putting the query results in cahe so that Dashboards load faster.
I'd love to have a way to schedule the refresh of queries that take 1 to 5 minutes in a cache (like we have after first load) so that it's seamless for end users.

@CoryChaplin you should already be able to achieve this by using the warm_up_cache endpoint. See #1063 for details.
The selection of the charts to refresh and the scheduling have to be implemented elsewhere, though (e.g., via Apache Airflow).

The new proposed approach is to have a limit on the UI that the user can see and configure. This UI limit will have some javascript validation to prevent the user from exceeding a particular value.
This value will be set to 10K by default.
The UI will always show at most 1K rows (also configurable) and only via exporting CSV will you be able to export the CSV.
It will look something like the image below (from Jeff's PR (https://github.com/apache/incubator-superset/pull/4941) )

Hi, I had a question regarding the superset dashboard it would be really helpful if can share some insight. Is there any possibility of viewing the same excel sheet structure in the dashboard for client reference as you can see the 3 levels of data in excel so exact same way I have to show in the dashboard this is the client requirement so please help me out.


[db-up] Sql up/down/show-connection-string, plus minor changes

-sql up commands
-default sku for mysql/postgresql servers is now GP_Gen5_2
-remove setting idle in transaction session timeout for az postgres up

If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR:
docker run -it microsoft/azure-cli:latest
export EXT=<NAME>
pip install --upgrade --target ~/.azure/cliextensions/$EXT "git+https://github.com/williexu/azure-cli-extensions.git@sql_up#subdirectory=src/$EXT&egg=$EXT"


Database Navigator (7.2.5) Postgres 12 Not all partition displayed

System information:

Windows 10 64 bit v1909
DBeaver version 7.2.5
Java version 11 -1.8.0_251

Connection specification:

Postgres 12.3
Driver name org.postgresql.Driver (jdbc)
Do you use tunnels or proxies (SSH, SOCKS, etc)? no

We have tables that were partitioned by month (range partition), as of the 06/2020 the monthly partitions were replaced by monthly partitions that were then sub partitioned by day (range).
In prior versions of DBeaver these would be displayed in the navigator whereas now only the partitions up to the monthly parititions before the new sub-partitions were added -i.e. up to and including 05/2020
EXPLAIN query shows the partitions do exist and they are displayed in other IDEs such as Datagrip
Include any warning/errors/backtraces from the logs
None relevant

Seems to be duplicate of #10426

Thank you very much, I did try to find others. I’ll check the link.
p.
From: Serge Rider<EMAIL_ADDRESS>Sent: 23 November 2020 21:13
To: dbeaver/dbeaver<EMAIL_ADDRESS>Cc: Peter Libman<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [dbeaver/dbeaver] Database Navigator (7.2.5) Postgres 12 Not all partition displayed (#10466)
Seems to be duplicate of #10426https://github.com/dbeaver/dbeaver/issues/10426
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/dbeaver/dbeaver/issues/10466#issuecomment-732428785, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQEMOYJ43BMCLI2DZSMJW4LSRLF4PANCNFSM4T7RVUWA.

Missed the (not inheritance) bit. Sorry
From: Serge Rider<EMAIL_ADDRESS>Sent: 23 November 2020 21:13
To: dbeaver/dbeaver<EMAIL_ADDRESS>Cc: Peter Libman<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [dbeaver/dbeaver] Database Navigator (7.2.5) Postgres 12 Not all partition displayed (#10466)
Seems to be duplicate of #10426https://github.com/dbeaver/dbeaver/issues/10426
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/dbeaver/dbeaver/issues/10466#issuecomment-732428785, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQEMOYJ43BMCLI2DZSMJW4LSRLF4PANCNFSM4T7RVUWA.


Make colour codes configurable

We should add a flag that lets users enable colour codes.

Hi, can I try this one? Thanks.

Hi @tinoh9, sure. We would be glad:) Assigning it to you.

Should I create a new .go file which stores all color variables, and import it to all relevant string outputs that need to be colorized in CLI?

Should I create a new .go file which stores all color variables, and import it to all relevant string outputs that need to be colorized in CLI?

That sounds too complicated, see the PR that disabled the color output. It should as simple as just passing the old value EncodeLevel function there.


Failure to install moc

cachix use ic-hs-test seems to run infinitely long (till I press Ctrl+C).
Further (after having pressed Ctrl+C on cachix:
$  nix-env -i -f . -A moc
error: attribute 'moc' in selection path 'moc' not found

$ cat /etc/issue
Ubuntu 23.10 \n \l

What does cachix --version say?

What does cachix --version say?

$ cachix --version
cachix 1.6.1

I have upgraded too, now I get:
$ cachix use ic-hs-test

Binary cache ic-hs-test doesn't exist or you don't have access. Error: Auth token has expired.

I'll have a look how to renew the auth token, in the meantime try downloading a build artefact from the release page.

You shouldn’t need the auth token to use the cache, it’s a public cache:
https://app.cachix.org/cache/ic-hs-test

But maybe cachix authtoken helps nevertheless? (Although it seems to be a bug that cachix use … fails when your local token expired.)


[Discussion] How fast should spleeting be using spleeter-gpu?

Hello all,
I'm running spleeter-gpu (installed via miniconda) on an ec2 GPU instance. I'm still seeing roughly ~25 seconds for it to run 2stem on a 5 minute track, and a bit longer for 5stem. Does this seem about right? Is this as fast at it gets?
Thanks

Hi @zsaraf,
no it is much slower than it should be. For a 5 minutes audio, on a GPU you should be able to perform separation in a few seconds.
Does the time you report include model download (model is automatically downloaded at first separation ) ? as model download should be done only once, it should be excluded for measuring speed of separation.
Otherwise, are you sure the separation is actually running on GPU ? if the CUDA install is not correct/not compatible with the tf version, the separation may actually be running on CPU. Use the -v option of spleeter separate and check the tensorflow log to verify that the separation is actually performed by the GPU.

To bring more precision: actually 25s for a single audio file may be right as there is quite a big overhead for building the model (~20s). Once the model is built, separation should be about 100x real time (i.e. ~3s for a 5min audio file).
So if you need to separate a lot of files, you can build the model only once using a single command for batch processing or instantiating a single Separator in the python API and calling several times the separate methods.

You probably have tensorflow installed, and not tensorflow-gpu.
I don't know what environment you're using but, either way you'll probably have to run pip install tensorflow-gpu.

Thank you for the help, I got the time down a lot! As I'm building for a server that needs to be able to take requests at any time, I will give the single Separator a try. Especially because it seems like the cli can't be used to process 2 files at a time if not instantiated via batch. When I try to do this, I get the following error:
ValueError: Couldn't find trained model at /model/2stems.
Is this a known issue?

It can't find the model. you need to remove the folder "pretrained" models and run the command again so it re-downloads the model.

I'm so stress with cuda instalation. Maybe my card so very old (GT 630 asus 2GB)
current system:
Ubuntu 20.04.1
nvidia driver 390.138
On nvidia page it's install cuda 11.2 but after reboot graphic display "unknow" with very bad resolution. i can see only "450 or 460" nvidia version with these cuda package....
try "sudo apt install nvidia-cuda-toolkit" -> "....packages have unmet dependencies..."
so stress......

To bring more precision: actually 25s for a single audio file may be right as there is quite a big overhead for building the model (~20s). Once the model is built, separation should be about 100x real time (i.e. ~3s for a 5min audio file). So if you need to separate a lot of files, you can build the model only once using a single command for batch processing or instantiating a single Separator in the python API and calling several times the separate methods.

Is this 3 seconds is the complete time for separation?
means time from when I hit the command to when it shows completed and generates the separated files.
Command:- spleeter separate --verbose Wav_45mb.wav recording10.wav -p spleeter:4stems -o output5


why run vlang tests?

The ci runs the testfiles for v libs, why would it have to do this?

I noticed this, too.  I think it's built into the Action I'm using.  I need my own tests 😉

Ok 👍


[stable/mediawiki] Bump bitnami/mediawiki image to version 1.28.0-r4

Contains fix for https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2017-5340

@k8s-bot ok to test


Added preprocessor templates.

Closes #67
This should work in browsers too (but it wasn't tested...).

Hmm, I'm not sure I understand what's going on here. Why are there templates? I thought you just need a simple way to pass stuff in {% %} through the defined preprocessor.

@Hardmath123 The problem is that some preprocessors with insert a blob of code on top (Babbel), or will enclose everything in a closure (CoffeeScript), so I though that is will be simpler if we just make an output "template" that will translate the rules, etc. for that preprocessor (and then the preprocessor can just do its magic).
Maybe it is also possible to pass the postprocessors through a preprocessor as you say, but it will be a different way for each preprocessor. It would be nice if we an just tell the preprocessor "This is pure javascript, don't touch it," but some of them don't even have such option (TypeScript, AFAIK).
I agree that templates are a bit overkill, but for the time being I can't see much alternatives.

Ah, I see. That makes sense; thanks for explaining.
I'm still hesitant to include ejs: it's heavy, and I don't want to risk breaking browser support. Is there a way to rewrite the parts that use ejs manually, as it is written right now? I think that will make the code much smaller.
Also, could you test it out in the browser? (Both generation of grammars and execution of grammars.) I do care a lot about browser support. :-)

@Hardmath123 ok... that makes sense too :wink:. I think I can rewrite them, np :smile: (Maybe next Saturday, who knows...)

Thanks @bojidar-bg ! I'm really excited about this feature. Someday I could be writing postprocessors in ClojureScript. :D

@Hardmath123 it will be more interesting if it is possible to write them in two preprocessors, e.g. some in CoffeeScript and some in ClojureScript, but... that's another story ^^


receiver: option to disable auto respond to DeliverSM

Hello. Thanks for go-smpp library. It saved me a lot of time and health.
We needed custom responses to DeliverSM, here's backward compatible patch.
usage:
rx := &smpp.Receiver{
	SkipAutoRespondIDs: []pdu.ID{pdu.DeliverSMID},
}

👍


IGAPP-1331: Update RN to 0.71

This pull request belongs to an issue on our bugtracker.
You can find it there by looking for an issue with the key which is mentioned in the title of this pull request.
It starts with the keyword IGAPP.

@sarahsporck I can't reproduce the crashing on Android but I also changed a few more things, so that may be why. Can you check if you can still reproduce it?

The crash still occurs. But I also found the solution for this.
https://github.com/react-native-webview/react-native-webview/issues/811
Setting opacity 0.99 on the webview seems to be the best solution honestly, as it does not have any impact on performance.

@sarahsporck I updated Webview to the latest version since that package seems to be where the bug is happening, can you test again? (Sorry to keep bugging you)

@sarahsporck I updated Webview to the latest version since that package seems to be where the bug is happening, can you test again? (Sorry to keep bugging you, and on your birthday no less! Happy birthday?)

Crash still happens :/.

@sarahsporck I put the fix back in, can you check (hopefully) one last time?


when using fetch, axios, etc.catch doesn't handle the error, instead your app crashes

🐛 Bug Report
To make sure that our request will be successful, first, we check the internet connection then send our request.
This approach was fine until I faced this issue: consider a situation in which access to a server for some countries is blocked.
So, although the internet connection was ok, each time I was getting network request failed error and my app was just crashing.
Note that this issue is not limited to this problem, it also happens when your internet speed is low, etc.
So, What is the point of catch!? if it doesn't catch the error!?
To Reproduce
react-native init myApp
sending a request to an endpoint which is blocked for your IP.
Expected Behavior
The expected behavior is that, when the connection can't be made, catch gets the error and I can inform the user to use a VPN or leave the app because they are in an embargoed country!
Code Example
NetInfo.isConnected.fetch().then(async isConnected=> {
  if(isConnected){
    try {
       let result = await fetch(MY_REMOTE_SERVER);
       console.log("result: ", result)
    } catch (error) {
       console.error("error: ", error);
    }
  }
  else ToastAndroid.show('No internet', ToastAndroid.SHORT);
});

Environment
React Native Environment Info:
System:
OS: Windows 10
CPU: (4) x64 Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
Memory: 4.09 GB / 7.90 GB
Binaries:
Yarn: 1.12.3 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: Version  <IP_ADDRESS> AI-181.55<IP_ADDRESS>56338.

what is your React Native version?

what is your React Native version?

"react-native": "0.59.1".

I'm having the same issue on both Android and iOS, but with a different library ("react-native-firebase": "^5.2.3"). I don't know if the two things are related, here the issue on the lib tracker https://github.com/invertase/react-native-firebase/issues/1993.
"react-native": "0.59.3"

Is it crashing in debug or release mode? In debug mode a console.error will throw up a red screen, but won't cause a crash in release

@JKCooper2  yes you right, but until you change your app to release mode, you won't understand it, on the other hand, it bothers a lot when you're in debug mode because you get the red screen and your app restart. If catch could get the error, it would be great. thanks

Is it crashing in debug or release mode? In debug mode a console.error will throw up a red screen, but won't cause a crash in release

oh, I'm sorry you right. I should replace console.error with console.log and it won't crash anymore

oh, I'm sorry you right. I should replace console.error with console.log and it won't crash anymore

👋 closing this issue now as I believe this is resolved, if not please let me know.

I wish "Hey, BTW, console.error intentionally crashes your app in development." were more prominently documented and/or configurable.


initialValue in list is throwing infinite loop with error "Maximum update depth exceeded...."

Describe the bug
initialValue in list is throwing infinite loop with error "Maximum update depth exceeded...."
To Reproduce
Steps to reproduce the behavior:

Go to List compoennt and add initialValue = (someValidList || fallbackList) as conditional statement
This throws error in console "Maximum update depth exceeded...."

Expected behavior
Like other fields (string, selectField), we need to get this working because we always have api call which makes atleSt 2 phases
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Try adding conditional statement

Hey, I believe this works as designed - the useFieldInitialValue does only a shallow equal, so I believe that when you set something like
<List initialValue={[{value: 1}, {value: 2}]} />
where there is always a new instance of the array, it will result in useEffect being called, which triggers render, which agains triggers the use effect and so on...
Again, the main purpose of the initialValue prop is to set a data received most of the time from the server, so usually its cached, e.g. if you use react-query that does the caching, or if you initialize only once, e.g. in NextJS.
if you need to set a custom static data, you need to persist that in a useState:
const Example = () => {
  // data persisted between renders
  const [initialValue] = useState([{value: 1}, {value: 2}]);

  return <List initialValue={initialValue} />


Error to use rack middleware with session dependency

If I use in application.rb:
  sessions :cookie, secret: ENV['SESSIONS_SECRET']
  middleware.use OmniAuth::Builder do
    provider :facebook, ENV['FACEBOOK_KEY'], ENV['FACEBOOK_SECRET']
  end

I received this error:
OmniAuth::NoSessionError: You must provide a session to use OmniAuth.

~/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:175:in `call!'
~/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:164:in `call'
~/gems/omniauth-1.2.2/lib/omniauth/builder.rb:59:in `call'
~/gems/rack-1.6.4/lib/rack/builder.rb:153:in `call'
~/gems/lotusrb-0.4.0/lib/lotus/middleware.rb:53:in `call'
~/gems/lotusrb-0.4.0/lib/lotus/application.rb:217:in `call'
~/gems/http_router-0.11.1/lib/http_router.rb:193:in `process_destination_path'
(eval):15:in `call'
~/gems/http_router-0.11.1/lib/http_router.rb:288:in `raw_call'
~/gems/lotus-router-0.4.1/lib/lotus/routing/http_router.rb:179:in `raw_call'
~/gems/http_router-0.11.1/lib/http_router.rb:142:in `call'
~/gems/lotus-router-0.4.1/lib/lotus/router.rb:878:in `call'
~/gems/lotusrb-0.4.0/lib/lotus/container.rb:36:in `call'
~/gems/shotgun-0.9.1/lib/shotgun/loader.rb:86:in `proceed_as_child'
~/gems/shotgun-0.9.1/lib/shotgun/loader.rb:31:in `call!'
~/gems/shotgun-0.9.1/lib/shotgun/loader.rb:18:in `call'
~/gems/rack-1.6.4/lib/rack/lint.rb:49:in `_call'
~/gems/rack-1.6.4/lib/rack/lint.rb:37:in `call'
~/gems/rack-1.6.4/lib/rack/showexceptions.rb:24:in `call'
~/gems/puma-2.11.3/lib/puma/rack_patch.rb:13:in `call'
~/gems/rack-1.6.4/lib/rack/content_length.rb:15:in `call'
~/gems/puma-2.11.3/lib/puma/server.rb:507:in `handle_request'
~/gems/puma-2.11.3/lib/puma/server.rb:375:in `process_client'
~/gems/puma-2.11.3/lib/puma/server.rb:262:in `block in run'
~/gems/puma-2.11.3/lib/puma/thread_pool.rb:104:in `call'
~/gems/puma-2.11.3/lib/puma/thread_pool.rb:104:in `block in spawn_thread'

But, when I use this code, work perfectly.
middleware.use Rack::Session::Cookie, secret: ENV['SESSIONS_SECRET']
middleware.use OmniAuth::Builder do
  provider :facebook, ENV['FACEBOOK_KEY'], ENV['FACEBOOK_SECRET']
end

In lotusrb-0.4.0/lib/lotus/middleware.rb:51
def call(env)
  # here, env['rack.session'] is nil for code:
  #   sessions sessions :cookie, secret: ENV['SESSIONS_SECRET']
  # and filled for code:
  #   middleware.use Rack::Session::Cookie, secret: ENV['SESSIONS_SECRET']
  @builder.call(env)
end

@vyper Thank you for reporting this. We're going to explore the code and try to make sessions shared with the middleware stack. :+1:

Cool! :+1:

@jodosha I test new version, but I got an errors...
Using configuration
sessions :cookie, secret: ENV['SESSIONS_SECRET']
middleware.use Rack::Session::Cookie, secret: ENV['SESSIONS_SECRET']
middleware.use OmniAuth::Builder do
  provider :facebook, ENV['FACEBOOK_KEY'], ENV['FACEBOOK_SECRET']
end

Specs ran perfectly
rspec spec/web/features/login_spec.rb
.......

Finished in 0.95783 seconds (files took 0.91043 seconds to load)
7 examples, 0 failures

# Or this version
rspec spec/web/features/
.......

Finished in 0.95783 seconds (files took 0.91043 seconds to load)
7 examples, 0 failures

Using "lotus way" configuration
sessions :cookie, secret: ENV['SESSIONS_SECRET']
middleware.use OmniAuth::Builder do
  provider :facebook, ENV['FACEBOOK_KEY'], ENV['FACEBOOK_SECRET']
end

rspec spec/web/features/login_spec.rb
.......

Finished in 0.95783 seconds (files took 0.91043 seconds to load)
7 examples, 0 failures

# Or this version
rspec spec/web/features/
FFFFFFF

Finished in 1.52 seconds (files took 0.95663 seconds to load)
7 examples, 7 failures

@jodosha I've just stumbled upon this same bug myself. In my apps/web/application.rb I have:
      sessions :cookie, secret: ENV['WEB_SESSIONS_SECRET']
      middleware.use OmniAuth::Builder do
        provider :twitter, ENV["TWITTER_KEY"], ENV["TWITTER_SECRET"]
      end

And running this in a browser works great, everything is good. I wrote a feature spec to cover this behaviour:
RSpec.describe 'Logging in from Twitter' do
  before do
    OmniAuth.config.add_mock(:twitter, uid: '1234', info: {
      nickname: 'Jack'
    })
  end

  it 'shows the user the welcome page' do
    visit '/auth/twitter'

    expect(page.body).to include('Welcome, Jack')
  end
end

And running:
rspec spec/web/features/logging_in_spec.rb

Passes just fine. However, as @vyper found, as soon as I give RSpec a folder path that includes > 1 spec, it errors:
Failures:

  1) Logging in from Twitter shows the user the welcome page
     Failure/Error: visit '/auth/twitter'
     OmniAuth::NoSessionError:
       You must provide a session to use OmniAuth.
     # ./.bundle/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:175:in `call!'
     # ./.bundle/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:164:in `call'
     # ./.bundle/gems/omniauth-1.2.2/lib/omniauth/builder.rb:59:in `call'
     # ./.bundle/gems/rack-1.6.4/lib/rack/builder.rb:153:in `call'
     # ./.bundle/gems/lotusrb-0.4.1/lib/lotus/middleware.rb:52:in `call'
     # ./.bundle/gems/lotusrb-0.4.1/lib/lotus/application.rb:217:in `call'
     # ./.bundle/gems/http_router-0.11.2/lib/http_router.rb:193:in `process_destination_path'
     # (eval):15:in `call'
     # ./.bundle/gems/http_router-0.11.2/lib/http_router.rb:288:in `raw_call'
     # ./.bundle/gems/lotus-router-0.4.2/lib/lotus/routing/http_router.rb:123:in `raw_call'
     # ./.bundle/gems/http_router-0.11.2/lib/http_router.rb:142:in `call'

Thanks @jackfranklin for more details. (:


As-built description or diagram of what the service relies on an how it is maintained

(With thanks for the recent changes at #146)
Please add a short 'as-built' description to the docs about what the service relies on for data, where that is (e.g. github repos) and what updates that information.
If that's present already, provide a link please (and make it easier to find).

@rjsparks At documentation root (e.g., https://dev.bibxml.org/static/docs/index.html) there is a link “Bibliographic data sourcing”, which leads to https://dev.bibxml.org/static/docs/topics/sourcing.html. Does that provide the information required?
The documentation may be a bit verbose as it tries to cover multiple audiences (developers, operators, management to a degree).

One item that's not easily found (let me know if I'm just not seeing it) is the answer to
'What are these "tools outside of BibXML service" and where are they running?' when reading this paragraph.

Internal sources are under IETF control, and are maintained as Git repositories with Relaton and BibXML bibliographic data serialized into YAML/XML files under data/ within repository root. They are periodically updated by tools outside of BibXML service

'What are these "tools outside of BibXML service" and where are they running?' when reading this paragraph.

I see. I didn’t want BibXML service’s own docs to go into data source implementation, they are a separate component and BibXML service’s docs shouldn’t be outdated by a change in how data is sourced (I think there may be a line drawn somewhere between some overall deliverable handoff document describing the whole infrastructure, and BibXML service’s own dev/ops Sphinx-based docs which I’d rather keep focused on the service itself), but it’s fair enough that service docs should at least point the reader in the right direction. Will update them.
From what I know off the top of my head, those tools are defined as GitHub Action workflows within those same data source repositories (and thus they run on GHA CI); and the authoritative source parsing logic used by those workflows is in turn defined in some Ruby gems.

Added a documentation section with dependency overview (source: https://github.com/ietf-ribose/bibxml-service/blob/main/docs/topics/architecture.rst), pending deployment.

Now available at https://dev.bibxml.org/static/docs/topics/architecture.html.


unify matcher name restrictions and clearer error on bad param/matcher names

closes #5261
There was a discrepancy between the allowed names for matcher files and matchers in route names, took the opportunity to remove that as well. Was it there for a special reason?
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

[x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
[x] This message body should clearly illustrate what problems it solves.
[x] Ideally, include a test that fails without this PR but passes with it.

Tests

[x] Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

[x] If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. All changesets should be patch until SvelteKit 1.0

thanks, not sure if there was a reason for the discrepancy. it looks like we wanted to disallow names that began with a digit, but i'm not sure why that restriction would be necessary


How it works?

Update readme with more informations

Yeah, i should

#3

maybe now is more useful


Does it update config.plist?

Hello
I was wondering if this tool is able to update the config.plist like your previous tool?
Thanks.

Hello Human7900,
You can update your config with this tool, but it's not totally automatic like the last tool since that had a number of issues behind the scenes.
Use V at any time to tell the tool what version of OpenCore you want it to use
Use s at any time to save your progress and check your config.plist with ocvalidate at the same time
Use m to automatically merge anything new into your config.plist from the Sample.plist
Use d to delete anything no longer needed in your config.plist
and as a last resort, use r to reset either one field or an entire section to what's in the Sample.plist
As I learn more and get better at the Rust language I may automate things more, but for now people will need to do a little on their own.  I hope it works well for you.

Hi!
Thanks for the dedicated reply!
But I am still unable to make it work.
When I select quirks and press m, it doesn't do anything.
Attaching a screenshot for your reference.

That looks fine to me.  There are only 20 Kernel quirks in OpenCore 0.7.5
Did you check the other Quirks sections as well and try to merge them?
You can use f to find quirk then use n to jump to the next and next etc.
The m merge will only work on a highlighted section and it looks like there is nothing to merge into your Kernel>Quirks section

Thank you for the awesome support! It works!
Thank you for the great tool and all the best for the future updates!

@rusty-bits could you elaborate on those problems encountered with automatic tool? The OpenCore guide specifically lists settings for various CPU-s, and then lspci lists devices, you you couléd pick the drivers. Am I naive? Seems like large number of people doing the same steps to get their system up and running, and most could be automated. Your tool takes an excellent direction with downloading what's needed, and this seems to be the next logical step.


[Bug]: value is not a valid dict (type=type_error.dict)

Bug Description
I was using the prem client, and I am getting some unexpected errors, but when seeing the traceback, I am not seeing error coming from prem integration. Need help to understand where the problem is coming from.
Version
latest
Steps to Reproduce
In [1]: from llama_index.llms.premai import PremAI

In [2]: prem_client = PremAI(project_id=4071)

In [3]: prem_client.generate("hello")
Out[4]: CompletionResponse(text='Hello! How can I assist you today?', additional_kwargs={}, raw={'role': <MessageRoleEnum.ASSISTANT: 'assistant'>, 'content': 'Hello! How can I assist you today?'}, logprobs=None, delta=None)

In [5]: from llama_index.core.llms import ChatMessage

In [6]: messages = [
   ...:     ChatMessage(
   ...:         role="system", content="You are a pirate with a colorful personality"
   ...:     ),
   ...:     ChatMessage(role="user", content="Tell me a story"),
   ...: ]

In [7]: prem_client.chat(messages)

After this I get error with the following traceback
Relevant Logs/Tracbacks
---------------------------------------------------------------------------
ValidationError                           Traceback (most recent call last)
Cell In[7], line 1
----> 1 prem_client.chat(messages)

File ~/workspace/Prem/cookbook/venv/lib/python3.12/site-packages/llama_index/core/instrumentation/dispatcher.py:223, in Dispatcher.span.<locals>.wrapper(func, instance, args, kwargs)
    219 self.span_enter(
    220     id_=id_, bound_args=bound_args, instance=instance, parent_id=parent_id
    221 )
    222 try:
--> 223     result = func(*args, **kwargs)
    224 except BaseException as e:
    225     self.event(SpanDropEvent(span_id=id_, err_str=str(e)))

File ~/workspace/Prem/cookbook/venv/lib/python3.12/site-packages/llama_index/core/llms/callbacks.py:208, in llm_chat_callback.<locals>.wrap.<locals>.wrapped_llm_chat(_self, messages, **kwargs)
    198     else:
    199         callback_manager.on_event_end(
    200             CBEventType.LLM,
    201             payload={
   (...)
    205             event_id=event_id,
    206         )
    207         dispatcher.event(
--> 208             LLMChatEndEvent(
    209                 messages=messages,
    210                 response=f_return_val,
    211                 span_id=span_id,
    212             )
    213         )
    215 return f_return_val

File ~/workspace/Prem/cookbook/venv/lib/python3.12/site-packages/pydantic/v1/main.py:341, in BaseModel.__init__(__pydantic_self__, **data)
    339 values, fields_set, validation_error = validate_model(__pydantic_self__.__class__, data)
    340 if validation_error:
--> 341     raise validation_error
    342 try:
    343     object_setattr(__pydantic_self__, '__dict__', values)

ValidationError: 1 validation error for LLMChatEndEvent
response
  value is not a valid dict (type=type_error.dict)

I tried to reproduce this with Anthropic API, but it seems like happening with this integration only.

@Anindyadeep for whatever reason, prem-ai is returning a list of messages instead of a single message.
I have no idea why this logic was added, seems I missed this in #13836

@Anindyadeep ah, you also made that PR, perfect 😅
We can only return a single ChatResponse from llm.chat(), but here we are returning a list. Thus, premai is not following the return type

@Anindyadeep ah, you also made that PR, perfect 😅
We can only return a single ChatResponse from llm.chat(), but here we are returning a list. Thus, premai is not following the return type

I see, let me make that changes in a PR, thanks for pointing it out


"other Internal Server Error"

Hi, I'm getting an error other Internal Server Error when calling mangopay.Mandates.create(props); with the following data (simplified a bit):
{
  BankAccountId: '67802381',
  Culture: 'NL',
  ReturnUrl: 'http://localhost:3010/listing/abc',
  Tag: 'ABC123',
  MandateType: 'DIRECT_DEBIT',
  ExecutionType: 'WEB'
}

I can't see the attempt either in https://dashboard.sandbox.mangopay.com/Transactions/EventsList
Is there any way I can get more information about this or should I start a support ticket with mangopay itself?

Hey @GriffinSauce,
I didn't find this type of error during my tests. Can you try again with this code sample ? Can I see the output result ?
Thanks in advance,
console.log("-----DEBUG-----")
var mandate_test = new Mandate({
      BankAccountId: ibanAccount.Id,
      Culture: 'NL',
      ReturnUrl: 'http://www.my-site.com/returnURL/',
      Tag: 'custom meta',
      MandateType: 'DIRECT_DEBIT',
      ExecutionType: 'WEB'
});

console.log("input : ")
console.log(mandate_test)

api.Mandates.create(mandate_test, function(data){
     mandate = data;
     console.log("--------")
     console.log("output : ")
     console.log(mandate)
     done();
});

Hi Riwak, thanks for looking into it. This is the error I originally got:
Internal Server Error {
  Message: 'Internal Server Error',
  Type: 'other',
  Id: '4e7d6e06-2d4d-4f11-8f4c-c88dbb851efc#1566293769',
  Date:<PHONE_NUMBER>,
}

But now I don't get it anymore, without making changes in my code. 🤔Is there a rate limiter perhaps? I did submit quite a lot of them in quick succession while developing/testing.

Hi @GriffinSauce,
We have indeed a rate limiter. It can be also an incident or connection issue. If you want more details about the rate limiter : https://docs.mangopay.com/guide/rate-limiting.
Have a nice day 😉

@Riwak I'm still hitting this issue. It appears to only happen in some cases but I can't discover which. When I post identical information directly to the REST API though I get the same response, so this module is not to blame. I'll continue with regular technical support.


Habtm insert..

when i try insert one record having habtm i got this error :
Especialidade(#50848536) expected, got Especialidade(#40963524)
before upgrade, it worked fine for me, and i the code still the same.. someone knows if i'ts a bug or something else ?

problem solved, need specify the :value_method => :id
thx

i just restarted the application and got the same error of different objects

I have no idea what this error might be, when I reload the page, insert sometimes works, sometimes not. And the code remains the same. When I change a file in admin / 'model'. Rb, sometimes I can create / change the model

+1
change cache_classes = true in development.rb and all works perfect.
but this is no option imho.
There are other strange issue related to class caching with the new version of ActiveAdmin, see.
Issue 756

i gonna change this, but i rolled back to version 3.0.9 =/ to fix it..
but thx


Settings roaming?

Both are of the same page (in different browser profile):

It is working as expected.


Support for different camera resolutions

Is your feature request related to a problem? Please describe.
I was only able to select a stream resolution of 640x480 while my (front) camera supports a higher resolution.
Describe the solution you'd like
Add more options in the camera select field with different solution (and of course actually show the stream in the selected resolution).
Describe alternatives you've considered
I'm currently using IP Webcam Pro which is a really nice solution for using your Android device as webcam. But it would be great if I would only need WallPanel for my needs and that WallPanel would support the basic feature of IP Webcam (like showing the video feed at the actualy resolution of the camera). But the current low resolution in WallPanel is now holding me back from ditching IP Webcam all together.
p.s. great piece of software, thank you!

I believe the IP Webcam Pro (or non pro version, for that matter) supports being called for those (and other) functions from other Android apps. It may be easier to just rely on the installation of both for those features, although that still requires some integration. Referenced at the bottom of his 'cheats' page. http://ip-webcam.appspot.com/cheats.html

I believe the IP Webcam Pro (or non pro version, for that matter) supports being called for those (and other) functions from other Android apps. It may be easier to just rely on the installation of both for those features, although that still requires some integration. Referenced at the bottom of his 'cheats' page. http://ip-webcam.appspot.com/cheats.html

That seems to be a different solution. I was talking about https://play.google.com/store/apps/details?id=com.pas.webcam

Yes, that's the same solution. Follow the link to the Developers website that you flagged, and you'll see that it's the same one. Basically he's exposed most of it via API to other Android apps.

Yeah, we could expose the camera resolutions of the device and allow users to select them.  I wish the developer of IP Webcam pro would open source his project so I could also see how to produce the RSTP feeds.

Yeah, we could expose the camera resolutions of the device and allow users to select them.

For me MJPEG is totally fine, but I would really like to have the option to use higher resolutions when the device can handle it.
Would that be possible?

Yeah, we could expose the camera resolutions of the device and allow users to select them.

For me MJPEG is totally fine, but I would really like to have the option to use higher resolutions when the device can handle it.
Would that be possible?

We can try to expose camera resolution values and user can select, that's probably the best option at this point.

We can try to expose camera resolution values and user can select, that's probably the best option at this point.


Dropdown Component

Thanks for the nice components!
It would be so cool if you can add dropdown photon is lacking of:
https://github.com/connors/photon/issues/106

Thank you for the idea! I will do my best to implement it!

Curious if there is any update on a dropdown component. If not, can you point me in the right direction on how to best implement one, i.e. bootstrap, vanilla js, etc.?

@smeads Sorry. I did it already and the code is still on my disk. It's not so complicated but I will upload it in the next hours! Sorry, sometimes I'm a mittelbar busy..

Quick question - will dropdown affect header height? :)

No, just test the sample app within the repo. It's a native macOS menu and therefore it's not related to the DOM. And I don't think that it should do so because normally on macOS Cocoa it also has no effects for the header height.
Or what exactly do you mean?

@MauriceConrad that would be great and much appreciated. Also, thanks for Photon, it's a great tool and certainly enjoy using it.

@smeads
Thank you but always remember that Photon itself is not my project. The original photon project is made by Connor sears. Sadly he stopped development since more than a year. This repo is called "PhotonKit Components" because it contains new component and JavaScript controllers that are just "plugins" because photon is deprecated.
I absolutely want to publish everything as her own frame work because  I absolutely want to publish everything as a own framework because there's no chance  that the original developer continues.
But that's something that needs more work. At the moment the components are always standalone because they are just "standalone" fesutures tgat work with photon.
To publish everything as a new framework the structure has to be rethought. I also need windows developers for a metro theme. And everything thing has to be documented one time with a good structure. At the moments it's just a suboptimal solution because connors does not answer and therefore, the original project is deprecated.


[BUG]

Description
When, I am trying to login via google I am getting error --> Unable to login via Google
Screenshots

Hey @WaleedGhori  Is this still open ??


Commit message should use to full editor

Based on StackOverflow post about editable commit message in vscode the entire commit action should be changed in order to use a full editor. This will consolidate the user experience when using git from command line and configuring vscode as preferred editor.
There is no treason to have a different editing experiences for the two cases. In fact is a bit ironic that editing the commit message is much better when git calls vscode than using vscode directly. This enables spellchecking, linting, syntax checks like 50/72 rule and a ton of other features which are not available in the crippled input box of the default commit feature.

There is no treason to have a different editing experiences for the two cases.

Actually there is. Most people don't really want a full editor taking away workbench space. They just want to type a message and go with it.
Nevertheless, a full editor experience has its merits and can be tracked here: #30562


init() got an unexpected keyword argument 'debug'

hi  the accelerate has this problem,so how could i handle it?

thanks!

You may try to modify the default_config.yaml file of accelerate.
Specifically, go to ".cache/huggingface/accelerate/default_config.yaml"and comment the "debug", it works for me.


[Object] Add String container

Discussion: https://discuss.tvm.ai/t/discuss-runtime-array-containers-array-adt-string/4582/38
cc @tqchen @icemelon9 @FrozenGene

@tqchen @FrozenGene Thanks for the comments. Please take a look again.

we can do it in a followup PR but as a reminder, we need python side wrapper for String and perhaps we need to make some special treatment to make sure python could treat it as customized string types (e.g. by subclass string or related).

@tqchen I'll send new revision soon.

@wweic here is an code snippet that we can reuse for hash. We should consider migrate to require c++14, which will give us string view support
#define TVM_USE_CXX14_STRING_VIEW                                       \
  defined(__cpp_lib_experimental_string_view) && __cpp_lib_experimental_string_view >= 201411

#define TVM_USE_CXX17_STRING_VIEW                                       \
  defined(__cpp_lib_string_view) && __cpp_lib_string_view >= 201606

#include <string>
#include <dmlc/logging.h>

#if TVM_USE_CXX17_STRING_VIEW
#include <string_view>
#elif TVM_USE_CXX14_STRING_VIEW
#include <experimental/string_view>
#endif

int main(int argc, char* argv[]) {
  std::string xyz = "xyz";

#if TVM_USE_CXX17_STRING_VIEW
  LOG(INFO) << "C++17=" << std::hash<std::string_view>()(xyz);
#elif TVM_USE_CXX14_STRING_VIEW
  LOG(INFO) << "C++14=" << std::hash<std::experimental::string_view>()(xyz);
#else
  LOG(INFO) << "C++11=" << std::hash<std::string>()(xyz);
#endif
  return 0;
}

Thanks @tqchen! I have incorporated the snippet, please let me if I should put the macro in other places.

IMO, it is bad idea to introduce std::experimental to this core part. As C++ standard says: The behavior of a C++ program is undefined if it adds declarations or definitions to namespace std or to a namespace within namespace std unless otherwise specified. That is to say std::experimental’s behavior is not guaranteed. Different version of compilers / compared with C++17 std, std::experimental maybe have different result too. I strongly suggest we remove std::experimental from this pr. Or we could consider implementing our string::view if we think it is very important.

@FrozenGene In general I agree that we should avoid std::experimental.
In this particular case, i think the usage is fair, because it is guarded by marco tests and is only under a very limited case we a std::hash function that can hash a string without copying it.

T0: We could have implemented a hash function by ourselves, but the hash itself may be inconsistent with the std version.
T1: While the std::experimental::string_view's hash could have been inconsistent with the std::string version as per compiler version(because of experimental), in practice it is consistent with std::string as per string_view proposal(and can be confirmed using different compilers).  More importantly, it is also fine if the hash is inconsistent with the std ver(then we will be the case of T1.

Given the above consideration, I think it is fine to permit the limited usecase. However, I agree that we should have a more careful documentation about the std::experimental use case here and only limit it to the specific usecase.

@FrozenGene In general I agree that we should avoid std::experimental.
In this particular case, i think the usage is fair, because it is guarded by marco tests and is only under a very limited case we a std::hash function that can hash a string without copying it(instead of using the string_view data structure).

T0: We could have implemented a hash function by ourselves, but the hash itself may be inconsistent with the std version.
T1: While the std::experimental::string_view's hash could have been inconsistent with the std::string version as per compiler version(because of experimental), in practice it is consistent with std::string as per string_view proposal(and can be confirmed using different compilers).  More importantly, it is also fine if the hash is inconsistent with the std ver(then we will be the case of T1.

Given the above consideration, I think it is fine to permit the limited usecase. However, I agree that we should have a more careful documentation about the std::experimental use case here and only limit it to the specific usecase.

Ok. One minor comment: let us add one comment in the C++14 experimental part what compiler (version) we have tested. Like GCC 5.4 / Clang 7.0 etc.

@wweic please update as per comments :)

ping @wweic

@tqchen I'm working on the comments :-) Will update soon.

@FrozenGene I'll do compiler test and update comment soon.

@tqchen @FrozenGene Just to give a quick update, I'm testing with clang 9.0.1 in Mac OS X. These test macros(__cpp_lib_experimental_string_view, and __cpp_lib_string_view) don't seem to be available.

Interesting, i think it is fine given that we will fallback to the std::string impl. The standard only requires it to available in C++17, so they might indeed be optional in the case of c++14

please look into the compilation error.

@wweic mac is libcxx. According to the doc : https://libcxx.llvm.org/docs/FeatureTestMacroTable.html it should have __cpp_lib_string_view in C++17. We should make C++17 could work. C++14 doesn’t have macro to guarantee

@FrozenGene @icemelon9 please help to take another look. The standard lib is the core part of the system so we need extra caution in terms of reviewing. Thanks @wweic for pushing it through.
@zhiics @Hzfengsy @jroesch @ZihengJiang @yzhliu  please also help to take a look if you have time.

good to me.

CI has passed after retry 2 times.

ping @wweic :)

@tqchen sorry for the delay. Was adjusting working from china schedules. I have addressed your comments.

Thanks @wweic for all the patience to polish this core data structure.
Thanks @FrozenGene @zhiics @icemelon9  for reviews.
This PR is now merged. Perhaps we can move on to add python side wrappers to the String container. And followup with the final container -- Array.

@tqchen Yes. I'll explore Python interface for String.