fix: autodetect nodejs runtime

Closes https://github.com/vercel-community/php/issues/531
Closes https://github.com/vercel-community/php/issues/534
Relates to https://github.com/vercel-community/php/issues/504#issuecomment-2024215402
Vercel recently shipped Node.js 20 GA, which means the default Node.js version for new projects is Node.js 20.
However, this project hardcodes the runtime to be nodejs18.x, instead of auto-detecting the user-defined Node.js version to set the correct runtime.

hey pls see and fix this error, i cant deploy on vercel  with runtime error

hey pls see and fix this error, i cant deploy on vercel with runtime error

In the meantime, you can follow https://vercel.slack.com/archives/C06UGDJKVRA/p1713213106626339

Merged, thank you @QuiiBz


It is very well if you combine sticky header for this library

I'm very like this library, the header is auto hidding, it is good if it can be pinned.
In your library, getItemViewType have been use so that I cannot use it to make pinned

You can use getAdapterItemViewType to defined your own custom view types.


Possible bug triggered by json decoders

See previous dicussion: https://github.com/slack-rs/slack-rs/issues/57
Decoding message events for posts from the giphy integration seem to trigger a segfault with some versions of rust.

From comment here: https://github.com/slack-rs/slack-rs/issues/57#issuecomment-224350079, updating rustc_serialize may fix this.

closed by https://github.com/slack-rs/slack-rs/pull/55


AvroParquetWriter  write to s3 bucket throws data intergrity exception

Hi, we are trying to use org.apache.parquet.avro.AvroParquetWriter
to write parquet file to s3 bucket. The file is successfully written to s3 bucket but
get an exception
com.amazonaws.SdkClientException: Unable to verify integrity of data upload.
The purpose is to resolve this exceptions while  The s3 bucket is encrypted with SSE-KMS not SSE-S3.

It appears that the exceptions are thrown because of code blocks in the link below
https://github.com/aws/aws-sdk-java/blob/fd409dee8ae23fb8953e0bb4dbde65536a7e0514/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java#L1876
From amazon doc, the etag is not same as MD5 when s3 bucket is encrypted with SSE-KMS
https://docs.aws.amazon.com/AmazonS3/latest/API/RESTCommonResponseHeaders.html

The possible way is to pass MD5 in request header or set system.property to disable validation in  skipMd5CheckStrategy.skipClientSideValidationPerPutResponse as indicated in link
https://github.com/aws/aws-sdk-java/blob/99fe75a823d4b02f4e90fa0dda06a1558d5617a1/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/SkipMd5CheckStrategy.java#L42
The issue is that I do not find a proper way to inject such configurations into AvroParquetWriter. Is this possible? If yes, can you help to show how to do it?

Thanks

Sean

Reporter: sean
Note: This issue was originally created as PARQUET-2146. Please see the migration documentation for further details.

Steve Loughran / @steveloughran:
This error isn't related to server side encryption, which other than the etags is generally invisible. And etags are way more complicated than md5s everywhere.
What I believe it means is that the client application uploaded a block and the validation logic said "not valid"

which s3 connector? EMR s3:, hadoop s3a or other?

whose s3 store? AWS s3 or something else.
This isn't parquet's problem, it's that of whoever wrote the s3 connector. And if it is the hadoop one, while you've got the right JIRA server, our response will be one of "does it still happen on the 3.4.x or 3.3.6 releases?".
Looking at the v1 SDK there doesn't seem any way to disable this checking programatically, though you can disable checksum validation on read and write through system properties.

com.amazonaws.services.s3.disableGetObjectMD5Validation
com.amazonaws.services.s3.disablePutObjectMD5Validation

Please tell us more. If it's through the s3a connector then move to becoming a HADOOP JIRA.
If it is someone else's it'll have to be a WONTFIX


Classes Documentation

There is a need for classes documentation as the beginners are not able to figure out uses of various particular classes. There should be something like a cheatsheet for beginners where you give definitions and descriptions of all the classes used in semantic ui alphabetically.

There's one : Kitchen Sink
For anything else, you can ping on Gitter or use the forums


elevate chef shell shortcuts and keep shell icons

This flips the 22nd byte of the shortcut file to 34 which will elevate the process.
Note: I did not realize until this was nearly completed, that the shortcut script spawns a new process window - either powershell or conemu (if its installed). Had I known that, I would have made the more trivial change of adding -Verb RunAs to the Start-Process calls. I'm open to dumping this implementation for that. Really the only other benefit to this method is that the powershell window no longer needs to spawn a new window (unless spawning conemu) and then the window icon and the taskbar icon are chef icons and not powershell icons. So if we see no value in that, I vote scrapping this.

Here is the window and taskbar with icons.

:+1:! Yay for icons! I couldn't figure out how to elevate without spawning a new window, thanks tons :)

Let's do the -RunAs @mwrock if the effect is the same. To be clear, it creates a window that disappears, right?

btw, I tried this manually with the existing chef-dk shortcut, and when I also set the shortcut's window style to be minimized, I never saw an extra window pop up, so that could be a way to get around that problem.

yes @adamedx adding -Verb RunAs to the start-process calls would get us exactly what we have today but with elevation. The second window does go away as it does today. It really depends on your system resources as to how distracting that is. Could be a flash or a coupe seconds but I have not heard folks complaining. The chef branding is a nice touch but again, I don't think that's a big win here if people are used to plain ps consoles.

I don't see why we wouldn't want the icon and not to have an extra window flash up. What's the downside?

@jkeiser I'm torn as well but its difficult for me to be subjective having spent a day fighting with wix and omnibus :) The downside is its just a bigger surface area change as is.  Albeit not huge.

to reiterate @mwrock I don't get a flash of any window if I set the window style property of the shortcut to "minimized." My preference for using -verb is that it is more maintainable than a binary blob.
So I think we can get rid of the flash problem altogether using minimized even when using verb.

The icon would be a really nice thing to have though. I was wondering why it went away.

Well I added #678 that just elevates sans icons. We should get @charlesjohnson 's input here

I'm unclear about what the cost may be, but assuming it's not more than a day then we should go with the version that has a Chef icon, without flashing a window.

I think the icon is kinda cool, as long as it doesn't have any other user experience downsides.

In line with @adamedx comment above, the flashing window is not an issue either way if you set the initial window to minimized. So its really just icons at stake here.
In terms of cost, both implementations (#678 and #677) are done.
To kepp the icons, you just have to include a "evil trick" which I tried to comment so its not entirely mysterious.
Personally, I'd opt for this technique since I think the icons are a nice touch and its done. In retrospect I should have looked more closely at the initial implementation and gone with the approach in #677 since that would have taken 25% or less of the time to do, but alas time is immutable.

I'd prefer this as well. More code, but a quantifiably better experience ("which of these windows is my chefdk one? Oh, that one."). Plus, better marketing.

(If there were another way to get the icon back, I would probably prefer the other PR :)

There is one other thing to consider here too. When you launch powershell from a shortcut link as we do here, it does look slightly different from a "normal" powershell window:
background color is black
"quickedit" is not enabled
Screen Buffer is smaller (not 6 pages)
see http://www.leeholmes.com/blog/2008/06/01/powershells-noble-blue/ if interested in the details

Having thought about this more, I think we risk irritating users who use the shortcut (all 12 of them) more than delighting users due to the window attributes listed above. We can always merge this later but #678 is clearly the safer option and does what we originally wanted to do.


fix(ingest/airflow): simplify env configuration

Simplifies the implementation of https://github.com/datahub-project/datahub/pull/10814 + adds better default handling.
Checklist

[ ] The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
[ ] Links to related issues (if applicable)
[ ] Tests for the changes have been added/updated (if applicable)
[ ] Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
[ ] For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@hsheth2 it seems like tests are failing on Airflow 2.4.3


Gemini chat wrapper fix

name: Pull Request
about: Create a pull request
Description
fixed the error arisen when response does not contain any text due to the reasons flagged by Google. One such case is when running the werewolf example with gemini chat.
Checklist
Please check the following items before code is ready to be reviewed.

[x]  Code has passed all tests
[x]  Docstrings have been added/updated in Google Style
[ ]  Documentation has been updated
[x]  Code is ready for review

Would it be possible for you to exclude the changes that are not related to the Gemini Wrapper from this PR? The SFT-related modifications seem to be intertwined with those for the Gemini Wrapper, and it might be advisable for a PR to concentrate mainly on a single alteration.

Changes made to conversation_with_agent_with_finetuned_model is now decoupled from this branch.


Added documentation on how to set up in Teams

Fixes confusion when using the sample in Teams  #
Proposed Changes
This is only a documentation change.
The sample did not work in Teams until I figured out that the token login service domain (token.botframework.com) needs to be listed as valid in the Teams manifest. I hope to save others the time I spent figuring that out.
Testing
n/a

This is a Teams specific sample and should follow the pattern we've now established with the other Teams specific samples. It should also include a templated manifest.json as we have in the others.

opened tracking issue https://github.com/microsoft/BotBuilder-Samples/issues/2028


Cannot reproduce the results using pretrained weights

I tested the cxtrack3d pretrained weights ,and I got:
cxtrack_kitti_car_81.6_69.1.ckpt:
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃        Test metric        ┃       DataLoader 0        ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│         precesion         │     79.60032653808594     │
│          runtime          │   0.018718518316745758    │
│          success          │     67.48014688491821     │
└───────────────────────────┴───────────────────────────┘
cxtrack_kitti_pedestrian_91.5_67.0.ckpt:
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃        Test metric        ┃       DataLoader 0        ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│         precesion         │     87.14067840576172     │
│          runtime          │   0.019559158012270927    │
│          success          │     63.82514238357544     │
└───────────────────────────┴───────────────────────────┘
My environment : pytorch 2.01,cuda 11.8,pytorch_lightning 2.04
data are from kitti official site.
Under the same environment and data, M2TRACK (OPEN3DSOT) GOT:
github page results:
M2Track-KITTI | Car | 67.43 | 81.04 | pretrained_models/mmtrack_kitti_car.ckpt
M2Track-KITTI | Pedestrian | 60.61 | 89.39 | pretrained_models/mmtrack_kitti_pedestrian.ckpt
my test results:
pedestrian:
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃        Test metric        ┃       DataLoader 0        ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│   precision/test_epoch    │     89.54376220703125     │
│    success/test_epoch     │      60.786376953125      │
└───────────────────────────┴───────────────────────────┘
car:
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃        Test metric        ┃       DataLoader 0        ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│   precision/test_epoch    │     81.04179382324219     │
│    success/test_epoch     │     67.47976684570312     │
└───────────────────────────┴───────────────────────────┘

Hi.  Using the pre-trained weights of cars, my reproduction results are 68.7531/81.2052 (succ/prec), also have small fluctuations.

Hi, thanks for your interest. I've just test my pretrained weights of pedestrians on KITTI, here's my results, which is corresponding to our paper.

I'm trying to find out which factor leads to the fluctuations of performance.

I've just checked the precision and success metrics during the training process. As shown in the following figure, the performance metrics are still not stable when the model weights converage

I think this stems from unperfect testing data from KITTI and the nature of object tracking.

As long as the tracked target is missing in the point cloud sequences, the following predictions provided by the 3D tracker are unstable. This problem is partially solved by our recent work MBPTrack: Improving 3D Point Cloud Tracking with Memory Networks and Box Priors.

I suggest you can train CXTrack from scratch under your env to reproduce the similar performance.


Application Insights .Net SDK v2.15 - Asp.Net Core storage changes

This issue is to track needed documentation changes for Application Insights .Net SDK v2.15 to be released on Tuesday, September 15th.
We've introduced changes to the default storage behavior for Asp.Net Core + Linux scenarios that need to be documented.
Source: https://github.com/microsoft/ApplicationInsights-dotnet/issues/1792
Please assign this issue to @mrbullwinkle and @rajkumar-rangaraj.
Please label this issue Azure-Monitor/svc and application-insights/subsvc.

@TimothyMothra Thanks for the feedback. It would be better if you can provide list of affected doc's as you did for #62290.
Assigned to @rajkumar-rangaraj and @mrbullwinkle.

PR to address this issue is merged internally and will go-live at 10 AM UTC-7

@mrbullwinkle thank you!


global replace OmicsProcessing with DataGeneration

Replace all records of OmicsPrcessing with DataGeneration.

leave OmicsProcessing as an alias

cloned git@github.com:microbiomedata/berkeley-schema-fy24.git, which i s based on
opened in PyCharm
built poetry environment
currently running make squeaky-clean all test

Omitting slots and slot_usages
  DataGeneration:
    aliases:
      - OmicsProcessing
      - assay
      - omics assay
      - sequencing project
      - experiment
    is_a: PlannedProcess
    in_subset:
      - sample subset
    description: >-
      The methods and processes used to generate omics data from a biosample or organism.
    alt_descriptions:
      embl.ena:
        An experiment contains information about a sequencing experiment including
        library and instrument details.
    broad_mappings:
      - OBI:0000070
      - ISA:Assay

Now need to rename example files

and omics_processing_set slot name -> data_generation_set

build succeeds now includiong examples, but we ahven't addressed typecodes yet


Document historical reads on RESTOREd tables as a known limitiation

If https://github.com/cockroachdb/cockroach/issues/53044 isn't fixed by v20.2 release, document as a known limitation

Let's doc this now. tl;dr is that it's a pretty bad experience insofar as a user can issue an AS OF SYSTEM TIME query on a restored database but it will "lie" in that we don't actually have historical data to query after a RESTORE.


Disable certificate renewal

What would you like to have changed?
Ability to disable certificate renewal.
Why is this feature a useful, necessary, and/or important addition to this project?
I'm using the dns challenge since I need wildcard certificates, the problem is that every server needs to know the credentials for my dns provider, which I find unnecessary since I could have a single server do the renewal, or something hosted on some serverless platform, so because of this it would be awesome to have the ability to disable renewal on the rest of the servers.
What alternatives are there, or what are you doing in the meantime to work around the lack of this feature?
I'm setting up a dns provider but passing in invalid credentials, which will probably become a problem when certmagic will decide it's time to renew the certificates.

Closing this for now. Thinking on it more, I don't think disabling renewal is a good way to solve this problem, which is more about credentials management.


Can't connect to local MySQL server through socket

Hi,
I am trying to install Huginn on one server with MySQL on another server.
I have setted .env like this:
DATABASE_ADAPTER=mysql2
DATABASE_ENCODING=utf8mb4
DATABASE_RECONNECT=true
DATABASE_NAME=app_huginn
DATABASE_POOL=10
DATABASE_USERNAME=app_huginn
DATABASE_PASSWORD=******
DATABASE_HOST=mysql.***.net
#DATABASE_PORT=3306
#DATABASE_SOCKET=/tmp/mysql.sock

RAILS_ENV=production

And I also run bundle exec rake db:create, bundle exec rake db:migrate, and bundle exec rake db:seed successfully.
However, after I bundle exec foreman start and visited the website, it always showed "We're sorry, but something went wrong." And the production.log said
Mysql2::Error (Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)):
  config/initializers/silence_worker_status_logger.rb:5:in `call_with_silence_worker_status'

I checked the installation instruction again and believed I had done all the steps.
Can someone help me?
Thanks,
Alan

Hi @iLtc,
it is odd that the database creation and migration worked but the webserver does not use the correct configuration. Did you run sudo bundle exec rake production:export after changing the settings in .env?
An other possibility is that the DATABASE_PORT needs to be set for rails to connect to DATABASE_HOST and not use the socket.

Hi @dsander,
I set DATABASE_PORT and Huginn can run now!
Thank you!
Best,
Alan

Great! Glad it works now.


fix: thorchain lp RUNE BCH pairing Txs

Description

Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[ ] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[ ] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)

closes #
Risk

High Risk PRs Require 2 approvals

What protocols, transaction types or contract interactions might be affected by this PR?

Testing

Engineering

Operations

Screenshots (if applicable)

Current dependencies on/for this PR:

#6317  👈
develop

This stack of pull requests is managed by Graphite.


Base images for Fedora 40 which use GCC 14 and OCaml < 4.08 fail

Taking a Fedora 40 image such as this one: https://images.ci.ocaml.org/job/2024-05-02/131216-ocluster-build-e4bdb0
docker run --rm -it ocurrent/opam-staging@sha256:2183cb377106178781bf86fe05b2b0d5e937bffac769db81765dc03ffbfc30b4

Then, attempting to install OCaml 4.07.1 like this:
cat /etc/fedora-release
curl -LO https://github.com/ocaml/ocaml/archive/4.07.1.tar.gz
rm -rf ocaml-4.07.1
tar -xzf 4.07.1.tar.gz && cd ocaml-4.07.1
curl -L https://github.com/ocaml/ocaml/commit/00b8c4d503732343d5d01761ad09650fe50ff3a0.patch?full_index=1 | patch -p1
./configure -prefix /usr -with-debug-runtime
make world

This fails with
make[1]: Entering directory '/home/opam/ocaml-4.07.1/stdlib'
../boot/ocamlrun ../boot/ocamlc -use-prims ../byterun/primitives -strict-sequence -absname -w +a-4-9-41-42-44-45-48 -g -warn-error A -bin-annot -nostdlib -safe-string -strict-formats  -nopervasives -c camlinternalFormatBasics.mli
Fatal error: exception Invalid_argument("Sys.getcwd not implemented")
make[1]: *** [Makefile:237: camlinternalFormatBasics.cmi] Error 2
make[1]: Leaving directory '/home/opam/ocaml-4.07.1/stdlib'
make: *** [Makefile:393: coldstart] Error 2

In byterun/sys.c we see
CAMLprim value caml_sys_getcwd(value unit)
{
  char_os buff[4096];
  char_os * ret;
#ifdef HAS_GETCWD
  ret = getcwd_os(buff, sizeof(buff)/sizeof(*buff));
#else
  caml_invalid_argument("Sys.getcwd not implemented");
#endif /* HAS_GETCWD */
  if (ret == 0) caml_sys_error(NO_ARG);
  return caml_copy_string_of_os(buff);
}

This is defined in configure:
if sh ./hasgot getcwd; then
  inf "getcwd() found."
  echo "#define HAS_GETCWD" >> s.h
fi

hasgot creates a tiny .c file like this
int main() { getcwd(); }

which when compiled fails:
$ gcc -o tst hasgot.c
hasgot.c: In function ‘main’:
hasgot.c:1:14: error: implicit declaration of function ‘getcwd’ [-Wimplicit-function-declaration]
    1 | int main() { getcwd(); }
      |              ^~~~~~

This is a change in GCC 14, https://gcc.gnu.org/gcc-14/porting_to.html, which ships with Fedora 40.
$ gcc --version
gcc (GCC) 14.0.1 20240411 (Red Hat 14.0.1-0)
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

The original behaviour can be restored like this
cflags="-Wno-implicit-function-declaration" ./configure
make world

This is also confirmed to be an issue on Ubuntu if GCC 14 is installed.
diff -c configure.bak configure
*** configure.bak	2018-10-04 13:38:56.000000000 +0000
--- configure	2024-05-08 09:00:37.498222505 +0000
***************
*** 947,952 ****
--- 947,961 ----
          fi;;
  esac

+ # GCC 14 makes implicit function declaration an error rather than a warning
+ # Turn off the check to allow ./hasgot to work
+
+ case "$cc" in
+     *gcc*)
+         if sh ./hasgot -Wno-implicit-function-declaration; then
+             export cflags="-Wno-implicit-function-declaration $cflags";
+         fi;;
+ esac

  # Configure the native-code compiler

@mtelvers has noted that this is now also affecting Arch

Thanks to Mark's work, this is fixed in our systems and compiler devs are aware of the problem, as noted in the discussion in https://github.com/ocaml/opam-repository/pull/26177 .


1-3-2: Models - Introduce Assimp

Show how to load a model using assimp, which we are probably going to abstract away already, and not show raw at first

Decide whether to use Assimp or cGLTF


cargo build -q shows crate downloading progress

A successful build using cargo build -q is silent, except for displaying progress bars for crates being downloaded.

@oblitum What if we want everything to be silent except the progress bar?  It would be nice for developers to be able to see the progress bar, but the logs are sometimes too long to want to show on the terminal.  Thanks!


WinRM - SQL Server DB Deployment : Unable to connect to master or target server

When I try to deploy a DACPAC using the "WinRM - SQL Server DB Deployment" Task, I receive the following error message:
"System.Exception: *** Could not deploy package. Unable to connect to master or target server 'TestDB2'. You must have a user with the same password in master or target server 'TestDB2'."
I can successfully deploy IIS apps to the machine using the same details, just not the DACPAC
Can you please assist?

@brett3210 , thanks for reporting the issue.
Can you please ensure that the username and password is valid for the corresponding server ?
Can you queue a release with system.debug = true and share the logs ?

Thanks, yes the same username and password Environment Variables are used to successfully deploy the IIS app.
Attached is the log file.
VSTS RM DB Deploy Debug.txt

Is the .\ZZZ also has permissions to Sql Server running on target machine? If no you might want to use "SQL Authentication" instead of default Windows Authentication.

Yes, the account does have the permissions.  I can perform the steps manually on the target machine under that account

The following command gets executed on the target server in admin mode. Can you try this command in admin command prompt on remote machine.
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\SQLDB\DAC\130\SqlPackage.exe"  /SourceFile:"C:\temp\VS\Release\<IP_ADDRESS>.2\TestSQLServerDBProj<IP_ADDRESS>.dacpac" /Action:Publish /TargeServerName:"XXX.cloudapp.azure.com"  /TargetDatabaseName:"TestDB2"
If it doesn't work, can you check TargetServerName with localhost if it is default sql instance.

Thanks.  It failed (same error as above) with the cloudapp server name, but "successfully published database" with "localhost"

Thanks for confirming I am closing the issue. Issue is your SQL Server instance name is not matching and hence the failure.

In our case, the user's password had changed - after a few failed releases/tries, the Sql Server account was locked out, and SqlPackage was giving us the same message.


[arrow] Update Arrow to 9.0.0

Arrow 9.0.0 was just released this PR:

updates the port

removes upstreamed patches

fixes #22552 (Thanks to @kou for the patch)

Adds GCS support as a feature

Which triplets are supported/not supported? Have you updated the CI baseline?

no changes

Does your PR follow the maintainer guide?

Yes
If you are still working on the PR, open it as a Draft: https://github.blog/2019-02-14-introducing-draft-pull-requests/

would it be possible to verify your update fixes this issue?
https://github.com/microsoft/vcpkg/issues/22552
As far as I can tell if one wants to use parquet, vcpkg doesn't work

@diehard2 I'll check :)

I successfully ran vcpkg install arrow[dataset,flight,json,mimalloc,s3,gcs]:x64-windows-static and the Dockerfile from #22552
cc: @GPSnoopy @jgiannuzzi

Feature [csv,dataset,example,filesystem,flight,json,orc,parquet,s3] tested successfully in the following triplet:

x64-windows
x64-windows-static

Feature 'cuda' tested failed :
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\include\memory(3128): error C2027: use of undefined type 'arrow::cuda::CudaDevice::Impl'
F:\Feature-test\arrow\vcpkg\buildtrees\arrow\src\rrow-9.0.0-b3a973f1b1.clean\cpp\src\arrow/gpu/cuda_context.h(140): note: see declaration of 'arrow::cuda::CudaDevice::Impl'
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\include\memory(3127): note: while compiling class template member function 'void std::default_delete<arrow::cuda::CudaDevice::Impl>::operator ()(_Ty *) noexcept const'
        with
        [
            _Ty=arrow::cuda::CudaDevice::Impl
        ]
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\include\memory(3239): note: see reference to function template instantiation 'void std::default_delete<arrow::cuda::CudaDevice::Impl>::operator ()(_Ty *) noexcept const' being compiled
        with
        [
            _Ty=arrow::cuda::CudaDevice::Impl
        ]
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\include\memory(3164): note: see reference to class template instantiation 'std::default_delete<arrow::cuda::CudaDevice::Impl>' being compiled

@assignUser, can you take a look?

@JonLiu1993 Yes I am looking into it. I think the patch for this isn't to bad but I'll open a PR in apache/arrow and link it here.

Feature [csv,dataset,example,filesystem,flight,json,orc,parquet,s3,cuda] tested successfully in the following triplet:

x64-windows
x64-windows-static

Thanks!


[Bug]: Columns shift in CSV data download of charts when an indicator doesn't have a value for a date

What happened?
If I create a chart for multiple indicators, in some cases not all indicators will have valid data on a given date. This happens as the availability / production of indicators varies. When this happens, the values in the CSV file are shifted incorrectly.
Which country / deployment are you running?
PR https://github.com/WFP-VAM/prism-app/pull/688; country=cambodia
Add a screenshot (if relevant)

The NDVI anomaly values are not yet available for 1-March. Instead, values for 3-month rainfall aggregate are shifted over into the NDVI anomaly columns

Kampong Cham_10_day_ndvi_anomaly_modis_10_day_rainfall_estimate_mm_1_month_rainfall_aggregate_10_day_ndvi_modis_3_month_rainfall_aggregate_mm.csv

Closed by #756


ansibleserver: 避免数据库故障引起内部状态不一致

这个 PR 实现什么功能/修复什么问题:
ansibleserver: 避免数据库故障引起内部状态不一致
是否需要 backport 到之前的 release 分支:

release/2.10.0

/area ansible
/cc @zhasm @swordqiu

Codecov Report

Merging #3009 into master will increase coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           master   #3009      +/-   ##
=========================================
+ Coverage    7.17%   7.17%   +<.01%
=========================================
  Files         478     478
  Lines       76715   76715
=========================================
+ Hits         5502    5504       +2
+ Misses      70749   70748       -1
+ Partials      464     463       -1

Flag
Coverage Δ

#aFlag
7.17% <ø> (ø)
:arrow_up:

Impacted Files
Coverage Δ

pkg/appsrv/response.go
69.23% <0%> (+3.07%)
:arrow_up:

Continue to review full report at Codecov.

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

/lgtm

/approve


Find/Replace selection only

I would suggest to add a feature to find/replace text only in a highlighted selection of the current file, similar to the find/replace function in kwrite:

This is duplicated of #358

Thanks!


HomeAssistant : no unique ID

I am running onstar2mqtt on a synology NAS via the docker plugin.
All the environement variables are filled in , onstar2mqtt grabs everything and pushes it to MQTT. ONSTAR_DEVICEID is also in the environement variables.
I have 2 instances of onstar2mqtt running, each for a different car, but same onstar account. (different VIN, different generated devideID)
I can read everything in Home Assistant but the entities names are doubled (i.e. ev_plug_state and ev_plug_state_2)
However :

MQTT does not show me the entities as belonging to a single device, I do not see more devices in the MQTT integration
but I can access all the information directly from the entities menu, it just doesnt seem to recognise it coming from MQTT
and all these entities report not having a unique ID.

+1 for adding unique id's

Created a PR that will fix this https://github.com/michaelwoods/onstar2mqtt/pull/165

@michaelwoods thanks for accepting the PR to fix this issue, just wondering if you knew when you might cut a release, would love to get my kube cluster updated with this fix so i could re-enable collecting data from my vehicle.

@ehran if your still waiting on the fix i have pushed it to my dockerhub while waiting for @michaelwoods to cut a release. https://hub.docker.com/r/fireball1725/onstar2mqtt. It seems to be working, i'm using it to read my vehicle info

@FireBall1725 v1.4 is out, thanks again.


Lower levenshtein tolerance to 2

To reduce false-positives of the phishing detector.
Otherwise defaults to 3

Could we go through the whitelist and remove any that are no longer blocked by the fuzzy list as well? This change will likely mean a lot of those are no longer needed in the list.

We could probably add a CI step to check for redundant entries :thinking:

Could we go through the whitelist and remove any that are no longer blocked by the fuzzy list as well?

Since the fuzzy list operates on a tolerance parameter, I don't think we can generically cleanse the whitelist of exceptions. I guess we could sanitize for the lowest-tolerance parameter, like 1?

Since the fuzzy list operates on a tolerance parameter, I don't think we can generically cleanse the whitelist of exceptions. I guess we could sanitize for the lowest-tolerance parameter, like 1?

Fair enough, though perhaps we can set a max tolerance as well? Then require everything on the whitelist to be matched by some valid tolerance.


feat: Adds drill to detail context menu for ECharts visualizations

SUMMARY
Adds drill to detail (drill-through) context menu for ECharts visualizations. The context menu is triggered when right-clicking an EChart series. Upon selecting a drill to detail option, an alert is displayed with the selected values.
The linking between the context menu and the actual feature will be handled in a future PR.
The context menu was added to all ECharts with the exception of the Tree Chart.
The feature is behind the DRILL_TO_DETAIL feature flag.
This first iteration focuses on providing a minimal set of interaction possibilities for the ECharts. More advanced interactions like clicking on legends, subheaders, etc will be handled in follow-up PRs. Drilling to detail using metrics is not supported as well.
@kasiazjc @lauderbaugh @rusackas @codyml
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
https://user-images.githubusercontent.com/70410625/181340086-a6a8376f-e962-440c-b5f4-8679bc731337.mov
TESTING INSTRUCTIONS
1 - Make sure the feature does not introduce any regression when disabled. This is the default value for the feature flag.
2 - Enable the DRILL_TO_DETAIL feature flag and check:

Check if there are no regressions when right-clicking the series for different charts
Check if the right-click works with different chart control values (dimensions, time grain, customizations, etc)
Check if the correct values are displayed in the context menu
Check if the correct values are displayed when selecting a context menu option
Check if other dashboard interactions are not affected by the new feature such as cross-filtering, drag-and-drop, tooltips, etc

Below is the import file for the dashboard shown in the video:
dashboard_export_20220727T144027.zip
ADDITIONAL INFORMATION

[ ] Has associated issue:
[x] Required feature flags: DRILL_TO_DETAIL
[x] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[x] Introduces new feature or API
[ ] Removes existing feature or API

@michael-s-molina Looking at the screenshot, there is one thing that needs to be added. When a time dimension is clicked with time grain applied, the time grain needs to be passed at the same time.
BTW, why needs a formattedVal in the filter?

@michael-s-molina Looking at the screenshot, there is one thing that needs to be added. When a time dimension is clicked with time grain applied, the time grain needs to be passed at the same time.

Nice point! I'll work on it.

BTW, why needs a formattedVal in the filter?

Currently, the logic for formatting the values is contained in each plugin. Depending on the plugin type the values can be formatted differently. When exhibiting these values in the context menu and also later in the modal, we need to present the values with the exact formatting used by the plugin. At the same time, we need the original value for the endpoint. Some examples are dates, currencies, decimals, etc.

@zhaoyongjie Added the time grain for Timeseries and MixedTimeseries.

/testenv up

/testenv up FEATURE_DASHBOARD_CROSS_FILTERS=true FEATURE_DRILL_TO_DETAIL=true

/testenv up FEATURE_DASHBOARD_CROSS_FILTERS=true FEATURE_DRILL_TO_DETAIL=true

I found that in treemap, if i move my mouse to the white edge and it will show drill to details too, is that expected?
https://user-images.githubusercontent.com/81597121/182424965-323f2549-47f6-4802-b09b-9af455c0f35d.mov

I found that in treemap, if i move my mouse to the white edge and it will show drill to details too, is that expected?

No, it's not 😆. I'll fix it.

/testenv up FEATURE_DASHBOARD_CROSS_FILTERS=true FEATURE_DRILL_TO_DETAIL=true

I found that in treemap, if i move my mouse to the white edge and it will show drill to details too, is that expected?

Fixed

Tested each viz type and left 2 notes for issues I found, otherwise looks great!

/testenv up FEATURE_DASHBOARD_CROSS_FILTERS=true FEATURE_DRILL_TO_DETAIL=true

First of all, this looks great!
A few minor issues that I found:

Not a big deal, but you can click way after the number in the Big Number

Another small one. It would be great if the dropdown could be shown in the upper side when it does not have enough visible space to save some of the scrolling

In a graph chart we can only click on the line but not on the node, is that normal?

One more thing about the graph is that when right-clicking the animation is triggered and it creates confusion as the nodes start moving. Not sure if there is a way to stop the chart animation when right-clicking

For some reasons, when trying to close the dropdown by clicking 2 or 3 px from its left side, it won't close. I found it annoying for the user as I ended up clicking a few times to try closing it up. For some reasons, it does not happen if you click on any other side, even 1 px away from its side. This is an Antdesign issue though. Just pointing out if there is a quick fix.

I believe the above are all minor issues that we can handle in separate PRs.

@codyml @geido Great comments! Thanks again for testing the feature.
My last commit fixed:

If you right-click on the dimension label for Treemap v2, the menu looks like it has a broken option:

Not a big deal, but you can click way after the number in the Big Number

I decided to follow @geido's suggestion and tackle the remaining comments in follow-up PRs so that @codyml can rebase his PR on top of this one. I'll create tickets for them.


[dask] Accept other inputs for prediction.

Returns a series when input is dataframe.

Related: https://github.com/dmlc/xgboost/issues/5425

@RAMitchell I see that that these changes were merged. I have a follow up question related: #5425 issue that I created.
I installed the latest nightly build, and ran:
pip install xgboost-1.1.0_SNAPSHOT+6601a641d756a2769fcd85e25817506490c40861-py2.py3-none-manylinux1_x86_64.whl

This code still returns prediction = xgb.dask.predict(client, output, dtrain) the prediction as  dask.array.core.Array not as  dask_cudf.Series.

It outputs a series when input to predict is a dataframe.

Right now it's a dask series.  dask cudf doesn't support dropping dimension with map partition, will check back at 0.13

@trivialfis  Thanks. yes, I can get a dask.dataframe.core.Series from xgb.dask.predict(client, output, X_test). From here, I'd like to calculate RMSE, but cannot do it with two dask.dataframe.core.Series.
example code:
prediction = xgb.dask.predict(client, output, X_test)
true= Y_test['true_output']
type(true), type(prediction)
(dask.dataframe.core.Series, dask.dataframe.core.Series)

#calculate squared error
squared_error=(prediction -true)**2
squared_error.compute()
0   NaN
1   NaN
5   NaN
6   NaN

If I convert dask.dataframe.core.Series to  dask.array.core.Array then, I can calculate the squared error.  Is that the recommended way?

That's weird, let me take a look.


Flattened chart for download and upload 0.17.2 version

Flattened chart for download and upload with separate axes... Ok for ping and jitter in 0.17.2 version
Server Error remains in the Notification section
Downgrade to 0.16.6 last stable
Thanks
PC

Hi Alex (@alexjustesen)
the graph seems appears to be flat for download and upload only and all the detail is lost.
Why the choice to have separate axes when I could exclude the display of download and upload in a single graph at will? :-(
Thank you

The graphs were separated to take into account those who have symmetric internet plans. I found that my 1 Gbit service was overlapping on itself which caused me to lose context of the data in the charts.

@alexjustesen
in this way, those like me who have a NON-symmetrical figure are putting themselves at a disadvantage. You should provide a parameter to be able to configure a single graph or separate graphs for DOWNLOAD and UPLOAD.
For me the graph is now very flat and I lose the detail.
Thanks in advance
PC

Hi Alex @alexjustesen
I attach two new images. I hope I explain myself well. With version 0.17.2 graphs with separate axes, I expected to get the same result as the single graph with download disabled, instead I get a flattened graph...
Thank you

@alexjustesen in this way, those like me who have a NON-symmetrical figure are putting themselves at a disadvantage. You should provide a parameter to be able to configure a single graph or separate graphs for DOWNLOAD and UPLOAD. For me the graph is now very flat and I lose the detail. Thanks in advance PC
PS: remeber fix server error 500 in notificatio section

Did you try running this within the container to fix the 500 error in notification section
cd /app/www php artisan cache:clear

Did you try running this within the container to fix the 500 error in notification section
cd /app/www
php artisan cache:clear

Running php artisan cache:clear inside the container worked  for me, thanks!

In #1225 I standardized the charts so they all have a Y axis that starts at zero. I also have a generally stable connection which makes my charts look "flat", the intent here to to help visually represent when there is a significant deviation in performance (see beginning of my uploads chart) and if performance is improving or degrading over time to make that easier to understand from a view perspective.

Is there an environment variable that we can set to combine them again?

Starting at zero is good practice for graphs. Why would you need to know about such a small difference between 938 and 945 Mb/s? Starting at zero allows the graph to actually show a true representation of the stability and speed of your connection.

@mmomjian  @alexjustesen
all the graphs I have have the Y axis resized. Here you can see my Grafana and InfluxDB2 graphs. Which one do you think has more detail? The flat graph does not provide any information...
Grafana

InfluxDB2

With all due respect, an upload speed between 311.2 and 311.5 Mb/s is not "detail"  -- it is noise. Regardless, this is not our project, so it's not our decision. I am in favor of the new graphs.

@mmomjian
Of course you're right but it would be nice to have an environment variable to choose whether or not to have the double graph and/or the renumbering of the Y axis scale
Thanks

Gave a little thought about this over my tech-detox weekend.
The main goal of the charts is to provide a high level overview of performance over a given time period and to visualize significant deviations from the norm. I want to provide a simple and consistent picture of data in the app but I also recognize that everyone has their data visualization preferences.
If you're looking to customize your data's story I suggest integrating with InfluxDB and charting in Grafana.
Now that I'm on the other side of the data quality issue expect to see improvements to how you can leverage your data soon (i.e. InfluxDB improvements and an API).


Topdown map matplotlib display utility

Motivation and Context
Provide a convenience utility to display a topdown map via matplotlib.
How Has This Been Tested
Local testing in Colab. Example output:
Default:

With key-points and title:

With trajectory and title:

Types of changes

[ ] Docs change / refactoring / dependency upgrade
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have completed my CLA (see CONTRIBUTING)
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.

We should make sure to not duplicate the functionality here: https://github.com/facebookresearch/habitat-api/blob/master/habitat/utils/visualizations/maps.py too much

We should make sure to not duplicate the functionality here: https://github.com/facebookresearch/habitat-api/blob/master/habitat/utils/visualizations/maps.py too much

Thanks for pointing this out. We've been wanting to display topdown map visualizations on the sim side in a simple way using the existing C++ Pathfinder topdown map implementation. This module looks much more configurable, but would need to be converted for use in Habitat-sim.

We should make sure to not duplicate the functionality here: https://github.com/facebookresearch/habitat-api/blob/master/habitat/utils/visualizations/maps.py too much

Thanks for pointing this out. We've been wanting to display topdown map visualizations on the sim side in a simple way using the existing C++ Pathfinder topdown map implementation. This module looks much more configurable, but would need to be converted for use in Habitat-sim.

This is a common theme and will lead to duplicate in Habitat-API that will only grow over time, no? We can move things out of habitat-sim to Habitat-API, but then we may need those utilities later without wanting to wrap around Habitat-API. We should keep this in mind for future Habitat-API design.

Using the API utilities.


Create user story

@Lucasiti  working on user story

The first draft of the Readme.
The parts that are starred need clarification


Does not run on MacOS with Matlab 2018b

Created error messages relating to the mex file library when I tried to run it on Matlab 2018b. I switched back to 2016b, here everything works fine.

you Can probably delete the mexmac files and use the slower routine. You could also try building the mex files yourself.


Add the -r flag for requirements.txt

The link is that the html-proofer is complaining about is working. Opening #1881 to resolve this, so this can be merged.


v2rayn already supports Xray-core, hope to add a version that uses Xray-core by default

Xray-core is a superset of v2ray-core with a range of enhancements including better overall performance and XTLS, and is fully compatible with v2ray-core features and configurations.

You can see here that it has a documentation.

@Ash258


Fix anchor link in docs

Just a small fix for the broken anchor link ;)

Coverage remained the same at 74.487% when pulling cab0b32f6bd45e75fc831e9de17b49c82a42f966 on soul-wish:patch-1 into a6cc75bd313bfa01a1c515ce280ad99f39ce337d on mediaelement:master.

@soul-wish : thank you, will be included in 4.2.11


Further workshop material

First draft of material is here: https://github.com/hugobowne/machine-learning-in-r/blob/master/ML_R_draft.Rmd
You can find the resulting html here: https://github.com/hugobowne/machine-learning-in-r/blob/master/ML_r_draft.html
I have decided to develop the material in an R markdown notebook, as it provides an easy workflow.
I will create another issue in this repo about converting it into a Carpentry lesson, which we can do after getting the material close to the final product.
Before this, I need to fill in some gaps in the motivation/explanation.
We also need to add more material.
I currently have unsupervised learning & supervised learning (for classification), both using the UCI breast cancer diagnosis dataset.
In this issue, I'm requesting everybody's thoughts on adding sections on:

[ ] classification using a dataset more relevant to the attendees, ideally a genomics/bioinformatics dataset
[ ] regression challenges in ML, i.e., predicting a continuously varying target variable instead of a category ( i know several datasets we could use for this, but none are relevant to bioinformatics so help here requested)
[ ] regularized regression and variable selection, e.g., using glmnet

I welcome volunteers to work on each of these. Thanks!

I found this dataset from this paper and been running a couple of tests and seems to work well. The dataset is comprised of 3005 single-cell RNA-seq mouse samples, where the classified cell ("level1class" ) belong to one of nine classes.
I did KNN (n=5) with and without PCA on "level1class" and got the following results. I think it might be interesting to discuss how doing PCA affects execution time and precision of the model. Let me know your thoughts.
Without PCA
Execution time: 2,620 ms

precision
recall
f1-score
support

astrocytes_ependymal
0.88
0.20
0.33
70

endothelial-mural
0.75
0.04
0.08
72

interneurons
1.00
0.34
0.51
85

microglia
1.00
0.11
0.21
35

oligodendrocytes
0.42
0.99
0.59
249

pyramidal CA1
0.70
0.67
0.68
261

pyramidal SS
1.00
0.06
0.12
130

avg/total
0.72
0.53
0.46
902

With PCA
Execution time: 17 ms

precision
recall
f1-score
support

astrocytes_ependymal
0.88
0.76
0.82
70

endothelial-mural
0.90
0.49
0.63
72

interneurons
0.98
0.54
0.70
85

microglia
1.00
0.11
0.21
35

oligodendrocytes
0.73
0.98
0.84
249

pyramidal CA1
0.62
0.98
0.76
261

pyramidal SS
1.00
0.04
0.07
130

avg/total
0.80
0.71
0.65
902

mouse_data.csv.gz

@jorgepda I like the idea.
It's also cool to introduce precision as I've only dealt with accuracy so far in the material.
One question is how to run the workshop when we have several datasets but I think @JasonJWilliamsNY can advise us on this when we walk him through the material developed.
@jorgepda, can you share reproducible code that produces the above and that you think would work well in the workshop (ideally it would use the same function/API that I use here so that we're not teaching too many different ways to do one thing)? Please do so in a branch in this repository (feel free to do so in a new file).
I've opened another issue for you all to confirm that my code works on your computer.

ok team, we had plans to have next iteration of material ready for @JasonJWilliamsNY to check out today. We may be a bit behind schedule.
@jorgepda, when can you have first iteration of the "single-cell RNA-seq mouse samples" data material ready?
I can relatively easily write the regression material by mid next week but, as I mentioned above, I don't know of any datasets relevant to genomics. @jorgepda, @Kapeel , any suggestions here?
I can probably then create the glmnet material, which will be a nice addition, but this may need to come later, time permitting.

Sorry for the tardiness, but full disclosure, I ran the classification in Python to make sure the database yielded good results, and it took my a lot longer to do it in R for some pesky errors I couldn't get rid of. The reproducible example is here.
@hugobowne For the genomics dataset with a continuously varying target variable, what ML method were you thinking of using?

no worries, @jorgepda.
I have made a first pass at the regression material in this branch.
I used linear regression and then regularized regression but feel free to use anything else also.
To decouple issues (the development of regression/glmnet material from the introduction of genomics data), I'm going to close this issue now and open one specifically to do with material using genomics data.
I'll also open another issue for me to take another pass at all the material that I've developed.


Questions about Table-column properties, fixed fixation, and type=expand rendering

Element UI version
1.3.6
OS/Browsers version
mac osx
Vue version
2.3.4
Reproduction Link
https://jsfiddle.net/v5n6mywp/1/
Steps to reproduce
table表格有expand 和fixed属性时，鼠标hover时，高亮行错误！
What is Expected?
鼠标hover时，高亮行正确
What is actually happening?
鼠标hover时，高亮行不正确

issue 好像没人管呀

@Leopoldthecoder

https://jsfiddle.net/v5n6mywp/1/

Fixed in #5471


[Requirement] Install version specified dependencies for CUDF in dev.Dockerfile

Currently we don't specify the version for dependencies of CUDF in dev.Dockerfile, which may be at risk when one of them updated by Ubuntu.

apt update && apt install -y libarrow-dev libarrow-cuda-dev && \
dpkg -r --force-depends libnvidia-compute-450-server

We are now using cudf installed from upstream merlin-base image.


Dataset images crop

Please share what's the crop of the images in the dataset given that they are extracted with resolution 800x600

Hey the crop is like this:
image_cut=[115, 510]
then you cut the image like this:
    rgb_image = rgb_image[image_cut[0]:image_cut[1], :]

And reshape to 200x88
The angles are
    camera = {
        "id": "rgb",
        "type": "sensor.camera.rgb",
        "image_size_x": 800,
        "image_size_y": 600,
        "fov": 100,
        "position_x": 2.0,
        "position_y": 0.0,
        "position_z": 1.4,
        "rotation_pitch": -15.0
    }


aiken/option.{flatten}

added a function that converts Option<Option<a>> to Option<a>

only supports one level of nesting

enabled some commented out list tests for flat_map

relates to #9


bug(mat-sidenav): sidenav really does break position: sticky

Reproduction
Use StackBlitz to reproduce your issue:

Components: https://stackblitz.com/edit/components-issue-jfapkp?file=src%2Fapp%2Fexample-component.html

Steps to reproduce:

Add a sticky element inside a mat-sidenav-content
Element will not stick to the top of the screen
Unsetting display: block on mat-sidenav-container fixes this but breaks the sidenav itself

This is a copy of #16443 but that issue is locked due to inactivity so I have created this.
@jelbourn's answer:

(revisiting older issues as part of a triaging fix-it)
The problem here is that you're not actually scrolling the mat-sidenav-content element- the body element is scrolling. The way position: sticky works is that it's sticky relative to its containing element, so when the body scrolls instead, the entire mat-sidenav-content is being scrolled through the body. You can see this manifest by adding a smaller height to mat-sidenav-content and scrolling.

This doesn't make sense to me as I was under the impression that this is how position: sticky  is intended to work.
See: CSS Position Sticky - How It Really Works!
specifically this codepen example
As you can see in the codepen example, the body is scrolling and taking the main element with it. The HEADER div (which has position: sticky set) sticks to the top (within the bounds of the main element).
Is this not analogous to the mat-sidenav stackblitz example above, with the mat-sidenav-content element acting like main? It seems as though sidenav is breaking the position: sticky and preventing it from working as intended.
Expected Behavior
Header div Element to stick to top when scrolling down
Actual Behavior
Header div scrolls out of view
Environment

Angular: 12
CDK/Material: 12
Browser(s): chrome
Operating System (e.g. Windows, macOS, Ubuntu): Windows

I think that what @jelbourn said in #16443 is correct: the element being scrolled is the body, not the sidenav container which is potentially scrollable due to the overflow: auto. This is why sticky doesn't work. You can prove this by setting height: 100vh on the container, making it the scrollable element.
As for the Codepen example, you can break it by setting overflow: auto on the main content, similarly to what we're doing on the sidenav container.

Closing since there hasn't been any feedback. The issue can be reopened if we get more information.


Install Workspace

Hello ,
can I get Information about how to setup workspace?
I will try it, but it stucks at the RabbitMQ connection settings:

Hello @dslengel, you need to set up a connection to RabbitMQ if you have a custom install of it. By default, this step is skipped because we automatically configure it.
If you're only using the Workspace installer and didn't install RabbitMQ manually, try uninstalling it and re-running the workspace installer.

Hi Mike,
I have RabbitMQ totally uninstalled.
But the error recurred the same way.
What do you suggest?

Message ID: @.***>

In this case i recommend to use a clean OS for host.


Add browser badges with extension versions

Display latest add-on versions for Firefox and Chrome information below banner. Shields badges do not yet support Safari extension versions.
If you like this, What should we do with the extension link images just above this ? Both install images and badges link to same page, But both serve different purpose.

I like having the big install images at the top, and though the badge links are redundant I think they work fine where they are.
At one point I was messing around with badges in this space -- maybe we could also combine this with those changes on the rating-badges branch. But for now, this looks good. Thanks for contributing!


Fix CI

Current dependencies on/for this PR:

master

PR #558

PR #573

PR #574   👈

This comment was auto-generated by Graphite.


Implement MOTION_BLOCKING heightmap in chunk.rs

If I'm not mistaken, rain uses this heightmap to determine when it should stop falling. Once weather is implemented, the heightmap can be properly tested.

[x] #105

According to this: https://minecraft.fandom.com/wiki/Chunk_format

MOTION_BLOCKING: The highest block that blocks motion or contains a fluid.

Implemented by #523, can be closed.


Resizing disk on a clone endless loop

On subsequent pulumi up's, details shows:
  [provider=urn:pulumi:omega::cloud::pulumi:providers:proxmoxve::proxmoxve::7624107a-857f-46a6-a906-452dd1fea95d]
    ~ disk: {
        ~ size: 32 => 100
      }

What seems to happen is the CT gets created based on the clone (32GiB disk), but I want the drive to be bigger; and that only gets picked up after* the clone happens, on subsequent pulumi ups
I don't see a Proxmox UI option to "clone and resize" in one go, so I'm wondering if I could configure the provider differently(?)
The funny part is that it recreates the container when it replaces the disk, and the recreated CT has 32GiB disk size(!); and so on...
The template is itself a stopped container: https://gitlab.com/home.cloud/infra/template/-/blob/main/index.ts?ref_type=heads#L42-45 in an upstream stack that I import to reuse here: https://gitlab.com/home.cloud/infra/cloud/-/blob/main/index.ts?ref_type=heads#L93-110
One option would be to create differently sized templates, but that would defeat the original purpose 😄
Are changes to disk.size forced by the upstream tf-provider?

https://www.pulumi.com/registry/packages/proxmoxve/api-docs/ct/container/#containerdisk
https://registry.terraform.io/providers/bpg/proxmox/latest/docs/resources/virtual_environment_container#disk

Appreciate any hints, thanks!

Oh well, it was worth a try 😸
I went for re-cloning the template and resizing its disk against the destination datastoreId, then I clone this clone to get the container.
https://gitlab.com/home.cloud/infra/cloud/-/blob/main/src/ct/index.ts?ref_type=heads#L95-157
create: pulumi.interpolate`
  # Check for non-existence of preclone
  while pct list | grep -q "^${tempCloneId} "; do
    echo "Temporary clone ID ${tempCloneId} is in use. Waiting..."
    sleep 5
  done

  # Perform clone and resize
  pct clone ${template.id} ${tempCloneId} --full --storage ${datastoreId} &&
  pct resize ${tempCloneId} rootfs ${size}G
`

As I'm creating multiple containers and Proxmox locks the template while it's cloning it, we need to serialize everything. It looks pretty bad, but seems to work. A better design would be to create a higher level ProxmoxVE Dynamic Provider (haha) to hide away all these remote.Commands and bypass this limitation:

Thanks for helping me understand what's going on under the hood!


[BUG][WEBJS] - Sessions Not Starting

After updating to the version:
{
  "version": "2024.12.3",
  "engine": "WEBJS",
  "tier": "PLUS",
  "browser": "/usr/bin/chromium"
}

I encountered an issue where existing sessions cannot be started. They remain stuck in the STARTING status and do not proceed.
When checking the logs, the following error is displayed:
[12:49:37.275] ERROR (WhatsappSession/1): session:1705 - Runtime.callFunctionOn timed out. Increase the 'protocolTimeout' setting in launch/connect calls for a higher timeout if needed. {"reqId":770,"session":"1705"}
    err: {
      "type": "ProtocolError",
      "message": "Runtime.callFunctionOn timed out. Increase the 'protocolTimeout' setting in launch/connect calls for a higher timeout if needed.",
      "stack":
          ProtocolError: Runtime.callFunctionOn timed out. Increase the 'protocolTimeout' setting in launch/connect calls for a higher timeout if needed.
              at <instance_members_initializer> (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:94:14)
              at new Callback (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:98:16)
              at CallbackRegistry.create (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:23:26)
              at Connection._rawSend (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.js:90:26)
              at CdpCDPSession.send (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CDPSession.js:66:33)
              at #evaluate (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.js:360:50)
              at ExecutionContext.evaluate (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.js:275:36)
              at IsolatedWorld.evaluate (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/IsolatedWorld.js:100:30)
              at CdpFrame.evaluate (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Frame.js:341:43)
              at CdpFrame.<anonymous> (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/util/decorators.js:104:27)
              at CdpPage.evaluate (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.js:807:43)
              at WebjsClient.inject (/app/node_modules/whatsapp-web.js/src/Client.js:107:55)
              at async WebjsClient.initialize (/app/node_modules/whatsapp-web.js/src/Client.js:334:9)
      "name": "ProtocolError"
    }

I have same problem all my sessions remain in status starting
[11:06:19.635] INFO (1): request errored {"reqId":168,"req":{"id":168,"method":"GET","url":"/api/contacts/check-exists?phone=&session=session_","query":{"phone":"40723468122","session":"session_"},"params":{"0":"api/contacts/check-exists"}},"res":{"statusCode":422},"responseTime":6090}
err: {
"type": "UnprocessableEntityException",
"message": "Unprocessable Entity Exception",
"stack":
UnprocessableEntityException: Unprocessable Entity Exception
at SessionManagerPlus.waitUntilStatus (/app/dist/core/abc/manager.abc.js:65:19)
at runNextTicks (node:internal/process/task_queues:65:5)
at process.processTimers (node:internal/timers:526:9)
at async ContactsController.checkExists (/app/dist/api/contacts.controller.js:36:26)
"response": {
"error": "Session status is not as expected. Try again later or restart the session",
"session": "session_",
"status": "STARTING",
"expected": [
"WORKING"
]
},
"status": 422,
"options": {},
"name": "UnprocessableEntityException"

Hi! Could you try to stop all session and start exactly one and send the logs to<EMAIL_ADDRESS>That's weird behaviour

ANother thing to try is to swithc to chrome based docker image
devlikeapro/waha-plus:chrome

https://waha.devlike.pro/docs/how-to/engines/#docker-images

@whera what is your CPU/Memory configuration? How many session do you have?
Usually timeout happens because it starts all sessions at once when you restart container


style: skip actionlint checks if an actionlint workflow is present

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew typecheck with your changes locally?
[ ] Have you successfully run brew tests with your changes locally?

Fixes #18382.

Thanks @carlocab!


merge from arlac77/npm-package-template-esm-only

package.json

chore(scripts): add ava --node-arguments '--experimental-modules' --timeout 2m (scripts.test)
chore(scripts): add c8 -x 'tests/**/*' --temp-directory build/tmp ava --node-arguments '--experimental-modules' --timeout 2m && c8 report -r lcov -o build/coverage --temp-directory build/tmp (scripts.cover)
chore(package): add ^3.4.0 remove ^3.3.0 (devDependencies.ava)

README.md

docs(README): update from template

Pull Request Test Coverage Report for Build 3129

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 83.871%

Totals

Change from base Build 3124:
0.0%

Covered Lines:
72

Relevant Lines:
87

💛  - Coveralls


Application will exit execution if jq does not match API answers from DynuDNS

I noticed a bug in the recent PR https://github.com/koying/ha-addons/pull/14 I submitted:
When using jq, and the records are missing (IE domain does not exist), it fails silently, rather than triggering error handling. This can cause quite a few unintended failures and crashes. The fix was to add the missing '-e' flag in the relevant jq commands in dns_dynu.sh as follows:
https://github.com/koying/ha-addons/pull/15/files#diff-dd5e3487640e2242a3c54e27e8715e5db3968f93c0b95b5f2151240c8718836cR130-R146

This has been fixed in https://github.com/vittorio88/addon-ddns-acme closing issue on this repo


Polymer 3 upgrade

Any plan for Polymer 3 upgrade ATM? I can work on a PR for that.

I am currently not working on it, because of lack of time.
Although I would be happy to merge accept any contribution/PR


IE8 & 9 Incompatibility

The line "(node.classList.contains("mx-groupbox-body"))" is not supported. "classList" is not supported by browsers IE8 and IE9

I replaced the classList with Dojo function calls.

Works like a dream. Cheers :)


Allow user to specify a conversion function for a column

Super advanced: ability to reformat data to populate columns correctly, for example reformatting dates to match. This is likely to be a separate feature, there's a lot of depth to this one and it affects how imports work too.
Might also need a bit of persistence around this in order to remember what those conversions were for future loads into the same table.

Originally posted by @simonw in https://github.com/datasette/datasette-paste/issues/2#issuecomment-2008485099

Worked with Claude Opus to figure out this recipe for running code hopefully-safely in a worker:
workerScript = `
self.onmessage = function(event) {
  const userCode = event.data.userCode;;
  try {
    const result = eval(userCode);
    self.postMessage({ success: true, result: result });
  } catch (error) {
    self.postMessage({ success: false, error: error.message });
  }
};
`;

function safeEval(userProvidedCode, timeLimit) {
  timeLimit = timeLimit || 1000;
  let worker = new Worker(URL.createObjectURL(new Blob([workerScript], { type: 'text/javascript' })));
  worker.onmessage = function(event) {
    if (event.data.success) {
      console.log('Result:', event.data.result);
    } else {
      console.error('Error:', event.data.error);
    }
    worker.terminate();
    worker = null;
  };
  worker.postMessage({ userCode: userProvidedCode });
  setTimeout(function() {
    if (worker) {
      worker.terminate();
      console.error('Execution timed out');
    }
  }, timeLimit);
}

Claude conversation here: https://gist.github.com/simonw/ef14e52da14e995f986221865ab72a55


:db/default attribute operation broken?

Hi,
Submitting a tx-doc with a [:db/default value] results in
ERROR com.biffweb.impl.middleware - Exception while handling request
java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Keyword

The stack trace ends in apply-special-vals, and an inspection seems to reveal an inconsistency in the return value of the :db/default case.
https://github.com/jacobobryant/biff/blob/92a03324f98836d579878fc669eb702746551858/src/com/biffweb/impl/xtdb.clj#L182

Thanks for fixing that! Very embarrassing :). I'll add a test for that and the other operations soon.


s390: Add new machine generation

Yesterday, IBM announced the next machine generation.
Allow to specify "z16" as machine generation in environment variable
OPENSSL_s390xcap.  It is an alias for "z15".
Signed-off-by: Juergen Christ<EMAIL_ADDRESS>
Checklist

Merged to master branch. Thank you for your contribution.


Allow passing an array of argument to test_arg

Fixes #252
Still need to add some tests and docs.
This changes InstallCrateInfo's test_arg to take either a string (as is currently allowed) or an array - by using a custom deserializer function. In other words, both of those rules are now allowed:
[tasks.install-mkisofs-rs]
install_crate = { crate_name = "mkisofs-rs", binary = "mkisofs-rs", test_arg = "--help" }

[tasks.install-cargo-travis]
install_crate = { crate_name = "cargo-travis", binary = "cargo", test_arg = ["doc-upload", "--help"] }

Codecov Report

Merging #253 into master will decrease coverage by 0.07%.
The diff coverage is 82.35%.

@@            Coverage Diff             @@
##           master     #253      +/-   ##
==========================================
- Coverage   93.57%   93.49%   -0.08%
==========================================
  Files          82       82
  Lines       12747    12764      +17
==========================================
+ Hits        11928    11934       +6
- Misses        819      830      +11

Impacted Files
Coverage Δ

src/lib/installer/rustup_component_installer.rs
80% <100%> (ø)
:arrow_up:

src/lib/types_test.rs
95.93% <100%> (ø)
:arrow_up:

...c/lib/installer/rustup_component_installer_test.rs
94.02% <100%> (ø)
:arrow_up:

src/lib/installer/crate_installer_test.rs
90% <100%> (ø)
:arrow_up:

src/lib/installer/mod_test.rs
97.05% <100%> (ø)
:arrow_up:

src/lib/installer/crate_installer.rs
92.85% <100%> (ø)
:arrow_up:

src/lib/types.rs
85.48% <40%> (-0.81%)
:arrow_down:

src/lib/cli_commands/print_steps.rs
88.88% <0%> (-2.54%)
:arrow_down:

src/lib/installer/mod.rs
93.61% <0%> (-2.04%)
:arrow_down:

Continue to review full report at Codecov.

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

I think it should all work. I had to change test_arg to be a new type, TestArg, which implements deserializer. That was the only way I could come up with to make Option<TestArg> to be None when test_arg is absent. Specifying a custom deserializer through deserialize_with wouldn't work no matter what I tried :shrug:

looks great. once CI is done, i'll merge it in. thanks!!!
i'll probably wait for few changes in shell2batch (your PR and i'll also add that user provided translation as well) and release all together.

@roblabla merged. thanks a lot!!!
currently pushed to a dev branch of the next release.


Native calls to UIPopoverPresentationControllerDelegate instance result in application crash

When I try to set a delegate on a UIPopoverPresentationController, any invocations on the delegate from the native end of the application result in a crash, which results in the following stacktrace:
MoePopoverDelegate[372:141967] *** Terminating app due to uncaught exception 'java.lang.RuntimeException', reason: 'java.lang.RuntimeException: Java reference construction error!
at org.moe.natj.general.map.ReferenceMapper.toJava(ReferenceMapper.java:118)
at org.moe.natj.general.NatJ.toJava(NatJ.java:1053)
at apple.uikit.c.UIKit.UIApplicationMain(Native Method)
at com.vfpowertech.moepopoverdelegate.Main$Companion.main(Main.kt:18)
at com.vfpowertech.moepopoverdelegate.Main.main(Main.kt)
Caused by: java.lang.RuntimeException: No matching type found in ptr mapper
at org.moe.natj.general.map.ReferenceMapper.getSimpleConstructor(ReferenceMapper.java:125)
at org.moe.natj.general.map.ReferenceMapper.toJava(ReferenceMapper.java:67)
... 4 more
It seems that the native side can't find a matching java object entry for the delegate object. One thing I did notice is the signature of UIPopoverPresentationController.setDelegate takes Object instead of the expected UIPopoverPresentationControllerDelegate as designated in apple's documentation for the selector signature (https://developer.apple.com/reference/uikit/uipopoverpresentationcontroller/1622320-delegate?language=objc), although I'm unsure as to whether or not this matters. I have also tried a separate object implementing only the delegate interface with the same outcome (the example project implements the interface on the view controller).
An example project which triggers this is available at https://github.com/kevin-vf/moe-popover-delegate-bug which uses MOE 1.2.5. If one runs this on an iPad, clicks the Share button to activate the popover, then rotates the device, the application will crash with the above error. It must be run on an iPad, as popovers are rendered as action sheets on other devices.

Thank you for reporting this. You can work around this issue by changing:
    override fun popoverPresentationControllerWillRepositionPopoverToRectInView(
            popoverPresentationController: UIPopoverPresentationController,
            rect: CGRect,
            view: Ptr<UIView>)

to
    override fun popoverPresentationControllerWillRepositionPopoverToRectInView(
            popoverPresentationController: UIPopoverPresentationController,
            rect: CGRect,
            @ReferenceInfo(depth = 1, type = UIView::class) view: Ptr<UIView>)

Thanks a lot for the workaround, works like a charm.


[BUG] Unblur NSFW thumbnails not working on fedia.io

Describe the bug
As per the title, unbluring NSFW thumbnails does not work on said instance. It does work on kbin.social but the two instances seem to have possibly different methods to blur as fedio.io also has a little eye icon in the thumbnail. Additionally, the magazine icons for 18+ magazines also seem to be blurred on that instance, which might be a good additional feature request for this function to also unblur them too when enabled (Just search for @lemmynsfw for example in the Magazine search).
I'm not sure if this is a general mbin related issue or specific to this instance.
To Reproduce
Steps to reproduce the behavior:

Go to fedia.io
Find a 18+ image submission.
Enable the auto unblur.
See that blurred thumbnails aren't unblurred.

Expected behavior
Blurred thumbnails getting unblurred.
KES version:

3.1.0

Extension and version:

Extension: Violentmonkey
Version number: 2.17.0

Desktop (please complete the following information):

OS: Nobara Linux 38
Browser Firefox
Browser version 121

Thanks for the report. fedia.io is using Mbin, a fork of kbin. Some elements might be changed or differ in this version. While many aspects are similar, unfortunately, we can't realistically support diverging implementations of the site, since they could have wildly different elements, tags, and styling, and it would be impossible to maintain over time. KES targets sites running on the stable version of kbin.
Hopefully the different sites will converge around a single framework, but it seems like Mbin has decided to change stylistic elements in addition to the backend. If mbin becomes the de facto standard in the future, we can consider reevaluating this.

@NaturalHate
We have decided to make a push for 100% compatibility of all KES add-ons on mbin. The issue with blurred magazine cover images and avatar icons has been fixed in testing, but the issue you mentioned of images being blurred on the thread index is still pending: specifically, is there a way to cause images to be shown on those NSFW magazines? When we search for NSFW magazines on fedia.io and visit any of those magazines, they have no posts, as if they aren't being federated from the home instance. Have you had this issue?

@aclist

When we search for NSFW magazines on fedia.io and visit any of those magazines, they have no posts, as if they aren't being federated from the home instance. Have you had this issue?

Yes, on kbin and mbin actually.
I typically see always the same few communities from @lemmynsfw pop up and I think it was barely any showing up on kbin. When you Magazine search for the instance (see URL below) then only a few of the many communities show up and a lot of them don't have much if any content inside of them compared to when you visit the actual Lemmy instance. If you try to manually search for, or enter the kbin / mbin URL of a lemmynsfw instance that you know exists and has content, then it even gives you an "empty" or "404 not found" respectively. I don't know where this federation issue comes from though or if it is related to 18+ content or specific instances but I wouldn't be surprised if it is. It's just harder to gauge with the many niche instances that are out there.
Examples:
https://fedia.io/magazines?query=flatchested%40lemmynsfw&fields=names&federation=all&adult=show
<EMAIL_ADDRESS>
specifically, is there a way to cause images to be shown on those NSFW magazines?

What exactly do you mean by causing images to be shown? I meant the images that aren't actual content submissions, like the logos in the sidebar, or even when you go through the Magazine search. You can manually unblur them by hovering over them.
Examples:
<EMAIL_ADDRESS>https://fedia.io/magazines?query=%40lemmynsfw&fields=names&federation=all&adult=show
The instance admin actually gave me a quick Userscript that at least unblurs most of the content images but I've seen some regular non 18+ threads with blurred thumbnails pop up every now and then too. Unsure whether that's related at all or just a bug on their side. I'll post it below in case it is helpful.
// ==UserScript==
// @name         Mbin tweak
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Unhide NSFW entries automatically
// @match        https://fedia.io/*
// @require      https://greasyfork.org/scripts/12228/code/setMutationHandler.js
// ==/UserScript==

checkThem([].slice.call(document.querySelectorAll('input[type="checkbox"].sensitive-state')));

setMutationHandler(document, 'input[type="checkbox"].sensitive-state', checkThem);

function checkThem(nodes) {
    nodes.forEach(function(n) { n.checked = true });
}

What exactly do you mean by causing images to be shown? I meant the images that aren't actual content submissions, like the logos in the sidebar, or even when you go through the Magazine search. You can manually unblur them by hovering over them.

Magazine logos and circular avatars being blurred is fixed in the upcoming version. I'm referring to the actual content images that the script you provided is supposed to unblur: I'm not actually seeing any content images whatsoever in any of the magazines (checked all of them), except for SFW celebrity photos magazines. No thumbnail, no eye icon, no posts, even. I'm wondering if there is some setting at the user-level that is blocking NSFW content from being loaded in the first place. I searched high and low for a setting in the sidebar, but did not find anything. This is also happening when logged out.
The images only seem to load when going to the home instance.
To clarify, I'm using the below terminology:

Magazine logo: logo for the magazine, appears in the sidebar, is sometimes blurred if NSFW. This is going to be fixed
Circular avatar: a circular avatar representing the magazine, appears in the magazine search index, is sometimes blurred if NSFW. This is going to be fixed
Content image/thumbnail: images appearing in the thread index of a magazine or inside of posts

Also tried subscribing to different magazines to see if the content images are for subscribers only, but that didn't work, either. Strangely, many of the magazines in the thread index list 0 posts, but even the ones that list a handful of posts have no content. For example, the porn@lemmynsfw lists 10 posts on the magazine search, but there are none shown in the thread index. (Only 10 microblogs.) Strangely, clicking onto microblogs also shows no content.
Is this happening for you as well?

I'm not actually seeing any content images whatsoever in any of the magazines (checked all of them), except for SFW celebrity photos magazines. No thumbnail, no eye icon, no posts, even. I'm wondering if there is some setting at the user-level that is blocking NSFW content from being loaded in the first place.

Oh, it's the same as on kbin. Just uncheck "Hide NSFW content".
https://fedia.io/settings/general

For example, the porn@lemmynsfw lists 10 posts on the magazine search, but there are none shown in the thread index. (Only 10 microblogs.) Strangely, clicking onto microblogs also shows no content.
Is this happening for you as well?

It lists only 10 posts on the magazine search for me too but the community a lot more than that when I enter it. I never found the stats on the magazine search page to be overly useful unfortunately. One of the many negative quirks about kbin / mbin which I hoped get fixed quicker.

Oh, it's the same as on kbin. Just uncheck "Hide NSFW content".

OK, great, this is easy to fix now. Will get started working on it for inclusion in #260.


Use requirejs 2.3.6 in requirejs demo

Just using the latest and greatest
xref: https://github.com/SheetJS/sheetjs/pull/2405

a7405c4


add export command to build script

When i builded project and deployed it on netlify VITE_APP_ENVIRONMENT was undefined. Therefore i added export command into build script to ensure that the VITE_APP_ENVIRONMENT variable is set in the environment for the entire session. This makes the variable available to the TypeScript compiler and the Vite build command.

Hey @ReneDuris,
Usually, you would have a single build command and provide the required ENV variable through the build service.
I see that Netlify has support for this: environment variables
I added the three commands for convenience, to be able to run multiple environments at the same time during development.
Would adding a separate build command fix your issue?
build: tsc && vite build

In case you are building the app locally, the environment variable can also be placed in an .env file and you would just run npm run build
If setting the ENV during build in your Netlify account is not an option, then I will merge this PR.

I just thought that somebody could run on similar issue, basically this will not change anything. So its completly up to you if you close it or merge it. I did not research possibilities for netlify yet, thanks for link.


Revert to Go 1.21 and Kubernetes 1.29

This only touches the main module; the tools can remain on Go 1.22 for our purposes.
This must only be merged on the release-0.18 branch once it has been created.
Depends on https://github.com/submariner-io/releases/issues/923

We decided that we were going to do this on the 0.18 release branch once we do rc0 next week. That way we leave devel as is so we don't have to re-upgrade to Go 1.22 et al later.

We decided that we were going to do this on the 0.18 release branch once we do rc0 next week. That way we leave devel as is so we don't have to re-upgrade to Go 1.22 et al later.

I know, see the PR description.


Bug with touch function

My device Poco X3
Android version 12
my android 12 device also sometimes does not detect touches and messages are not deleted
Video Link : https://gofile.io/d/fQTMVb

@TeaqariaWTF Hi. Sorry, your video link doesn't work. Can you please update it?

@The-Hidden-Hand The issue may have been fixed by a recent swipe handling improvement - https://github.com/CTemplar/android/pull/476

Thanks

Problem solved with new update


run script on windows 10

how to run this script on windows 10? can't install curl

Hi @afterdelight,
This downloader is written in bash, so WSL (Windows Subsystem for Linux) should help.
Please wait for a few days as I don't have a windows machine currently, and we're refactoring the codebase right now.
I'll write a step-by-step to show how to run on Win 10 after the refactoring is done.

okay, ill wait. thanks for the explanation.


how to run sweeps for yolov5

how to run sweeps for yolov5
in this code
https://colab.research.google.com/drive/19fiDEOl3zEeLHTCLFbrnWxGahwuDx7O0#scrollTo=r4VjKui20N3j
should I add
train.py --img 416 --batch 16 --epochs 500
after last line in code
wandb.agent(sweep_id, train, count=5)
and which .yaml have parameters to change

@besbesmany YOLOv5 has built-in support for W&B sweeps. Follow the instructions here, once this PR is merged.
Also, for better visibility, it is recommended that you ask YOLOv5 related questions on Ultralytics github so I can bring in the maintainers of the repo to answer questions/address feature requests. Thanks :)

thank you sir for your help

hello sir
I run
python train.py --epochs 10 --data coco128.yaml --weights yolov5s.pt --cache --evolve
this will get best value of hyp.scratch.yaml file, right?
1- how to change genetic operators values( crossover, mutation)
2- how to use the best result of hyperparameters, should I run again train.py or what
3- after that should I change hyperparameters limit in data/hyps/sweep.yaml, right?
4- how to make sweep in wandb, should I run the next line before train.py or what?
wandb sweep utils/wandb_logging/sweep.yaml

For sweeps:

Set the hyperparameter limits in utils/logging/wandb/sweep.yaml and define dataset path and search strategy.
run wandb sweep utils/loggers/wandb/sweep.yaml . You can optionally pass --project name and --count max_run_count
The above command will output an id. Start the sweep with wandb agent sweep_id. This will start W&B sweep over the defined search space in sweep.yaml

in Set the hyperparameter limits in utils/logging/wandb/sweep.yaml and define dataset path and search strategy.
where to define dataset path

is search strategy means min/max values? is that according to the resulting file yolov5/runs/evolve/hyp_evolved.yaml ?

The search strategy means how want to search the hyper-parameter space( in method: random). I'd say stick to random because if you change that, you'll have to change the distribution of values to support that. (More on this in wandb Sweeps doc)
Dataset path can be set by modifying line 26 in the above screenshot. set value="your_dataset_path"

how to change genetic operators values( crossover, mutation)?

should I run
run wandb sweep utils/loggers/wandb/sweep.yaml . You can optionally pass --project name and --count max_run_count
before train.py

The above command will output an id. Start the sweep with wandb agent sweep_id. This will start W&B sweep over the defined search space in sweep.yaml
can not understand last line

Cannot use genetic mutation with sweeps, it can be used in evolve. That's different
You don't have to call train.py manually, the sweeps command will take care of that
the above command will output an id. then you just have to run wandb agent {sweep_id}

how to change crossover , and mutation in evolve

@besbesmany you should ask that in the same thread in YOLOv5. Sweeps and evolve operations are independent, so you likely want to use them separately

where I can find the generated id

For sweeps:

Set the hyperparameter limits in utils/logging/wandb/sweep.yaml and define dataset path and search strategy.
run wandb sweep utils/loggers/wandb/sweep.yaml . You can optionally pass --project name and --count max_run_count
The above command will output an id. Start the sweep with wandb agent sweep_id. This will start W&B sweep over the defined search space in sweep.yaml

When you run the 2nd step here, you'll find a generated ID


WIP: Fix for node references not working

Working on issue #22. Seems that the issue is passing culture on nodes/properties that don't vary by culture? Still need to confirm and work up a proper fix.

Superseded by PR https://github.com/wholething/wholething-fallback-text-property/pull/25.


Feat: Support Capacitor 6

Fixes: #630
This PR brings support to Capacitor while also adding some quality of life improvements. During the review, the ionic-angular-v2 was removed due to being a too old dependency of Capacitor that no longer works on the latest Android Studio, I opted to remove it since we already will cover a wide range of versions (3.0 up to 6.0). Also ionic-angular was renamed to ionic-angular-v3 to match the pattern where the last number indicates the capacitor version used by the sample.
Minor changes:
Samples:

Added Capacitor 6 Sample.
Removed Capcitor 2 Sample.
Added script to skip pod install on Windows.

SDK:

Add Required changes to support Capacitor 6.
Code cleanup on gradle script in order to reduce dependencies and make it more simple to maintain.

The SDK is in v0.X.X so it's okay to drop some very old capacitor version, but we should mentioned in Changelog.
I'm not sure if we dropped any, from the code it looks like maybe 2 and 3?

Capacitor 4 and older are out of support, I don’t think you should support those versions anymore
https://capacitorjs.com/docs/main/reference/support-policy


Debug configuration selector is disappeared

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

Commit:<PHONE_NUMBER>f055b99068d3688932416f2346dd3b
Date: 2022-11-09T03:54:53.913Z
Electron: 19.0.17
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: <IP_ADDRESS>-electron.0
OS: Linux x64 5.15.78-1-MANJARO
Sandboxed: No
Steps to Reproduce:
I tried clicking the right-click of Debug panel header, it shown a menu and I clicked an option(I forgot which I clicked!),then the configuration selector is disappeared,I can't find the settings to open it, for about two hour🥲

@jrieken people keep losing the debug dropdown. I'm not sure what's special about it, but it feels unexpected for it to be hideable and go under a ... menu. Given that I have no control over the menu itself, is there any way to make this action not hideable? This isn't really like https://github.com/microsoft/vscode/issues/162304 since the custom action view item does represent one real action.

You can right-click the ... menu to get it back. However, I don't think that menu should be hideable

...button

...button only has two action, Run is disabled, Debug Console is opening Debug Console.
right-click

right-click only can move or hide Debug panel

And this setting has been synced to my other machines😮

Looking at https://github.com/microsoft/vscode/issues/167137#issuecomment-1338599628 make me wonder if this is really customizable menus @roblourens. The item is checked and if customized there should be a "Reset Menu" entry with the overflow. Can there other reasons why this isn't rendered?

@roblourens The project is opened,and Debug works well, the problem is I can't switch configuration that inside launch.json

Your gif shows it- once you have a launch.json, then you right click the ... and it shows that "Start Debugging" is unchecked. Select that and it should show the dropdown

@roblourens Unfortunately,what Start Debugging does is start debugging, even I have two configurations!

Did you right click on that menu or left click?

@roblourens Yes! right click ... button then I can enable it,thanks a lot


Add HOPR Genesis DAO space

If you want to create a space follow this guide
https://docs.snapshot.page/guides/create-a-space

@SCBuergel You don't need a index.json file anymore with the ENS method, can you remove it?

@SCBuergel You don't need a index.json file anymore with the ENS method, can you remove it?

Thanks - I did that. Also working on a skin, where would I define that then though?


Normalize URL structure. Move to MUI.

Do /category/v/videoId instead of just /prefix/videoId
Make / present full text search instead of index
Move index into /category
Remove /category -> /?category=[category] redirect
Start redoing some components in MUI
Fix some scattering of bugs.

Wow, a ton of stuff here I had no idea about. The new MUI layout constructs are interesting.
The only thing I'd say is maybe add the category pages back to the sitemap?


timeout: invalid time interval 'ffmpeg'

timeout: invalid time interval 'ffmpeg'
Try 'timeout --help' for more information.

can you give some more information on which container is failing with this error and some logs around it. also it would help if you can attach your compose file

@wfchan  solved the issue by setting the following env vars in docker-compose file for the recorder services:

DURATION=600
FORMAT=mp4
SEGMENT_FORMAT=%Y-%m-%d_%H-%M-%S

@zkhan93 would be really nice you listed the env vars that needs to be set on the .env file or docker-compose services declaration.

thanks @btalanski for pointing that out, I will add and example.env

here's my .env file
############### DOCKER COMPOSE ############
OUT=/mnt/data/cctv

################### COMMON #############
TZ=Asia/Kolkata

################### RECORDER #################
FORMAT=mkv
DURATION=600
SEGMENT_FORMAT=%d-%m-%Y_%H%M%S

##################### MERGE #########################
CLEANUP_SPACE=45
CLEANUP_REGEX=.*-[0-9]+_\(cam[0-9]\|mosaic\).*
CLEANUP_DIR=/out/

############################ DELETE THIS LATER #####################
TIMEOUT_BUFFER=10

this is what I have on my server, there might be something that needs to be removed.
CLEANUP_SPACE is in GBs

@zkhan93 thanks for sharing that!


$withCount breaks replicate()

Laravel Version: 5.7.13
PHP Version: 7.2.9
Database Driver & Version: mysql / ?

Description:
As in other cases(that have all been fixed I think), a model with a polymorphic relation and a $withCount property fails to replicate()
Steps To Reproduce:
class Board extends Model {
public $withCount = ['profiles'];
public function profiles()
    {
        return $this->morphedByMany(User::class, 'profilable');
    }
}

$b = Board::first();
$b2 = $b->replicate();
$b2->save();

Results in the error:
Column not found: 1054 Unknown column 'profiles_count' in 'field list' ...
Expected $b2 to be a new Board instance with same properties as original.

Am getting past this currently by manually passing in the count property to the replicate($except) param.
$b->replicate(['profiles_count'])
$this should be pretty easy to fix by using the withCount property in replicate's internal filtering.
...although that won't help for manually counted relations (loaded after the fact using withCount()).
I don't think there's a register for counted relations (ala the $model->relations array)

You are calling save() afterwards, right? replicate() itself doesn't trigger the error.

Ah yes - sorry, missed that part.

I don't think we can make this assumption. There could be users who except the profiles_count attribute in the replicated model. Maybe they don't want to save it but use it for something else.

Yep, Good point.
Maybe a register of all loaded withCount's and ignore them on save?
Or maybe move where the count is stored from the attributes array to something else and do a check in getAttribute()? That could be a BC issue though aye?

I'm not sure it's worth the effort.

Seems like a pretty bad bug to me. If you have a polymorphic relation and a withCount you can't replicate?
I realize its a little bit of a edge case but still...

It's my impression that $withCount is not widely used, especially in combination with replicate(). IMO, using $expect is good enough as a workaround.

Whats $expect? I've not seen this.

Sorry, I meant $except (the parameter of replicate()).

Ah, haha here I am searching through the code for $expect :)
yeah fair enough. At least there's a record of the issue here now for others (and myself in the future when I've forgotten about it)

Somewhat related: #25495

Yes I think that's the same underlying issue.
Also TIL about storedAs :)

The fundamental "issue" is that Laravel (unlike some other frameworks) doesn't know what columns the table contains, so there is no solution that can cover all cases. As you mentioned, we could fix it for $withCount but not for withCount().

Unless you move the count value out of the main attributes array to something like $withCounts? and access that via the getAttribute() method.
but doing that could break people code if they're accessing the count directly on $attributes - so that's probably a no go as well.
well, I suppose it could go into 5.8?

Yes. Also, consider #26481.

This is tricky indeed. On the one hand you could say that filtering out the counts and stored as values is twtg because they aren't actually defined on the new static class instance. On the other hand people might expect these values to still be present when replicating a model. I don't think there's an easy for for this. As @staudenmeir said manually adding the columns to the except array is probably the best solution at the moment so people can simply choose how to handle it.
I noticed that the replicate method is currently undocumented so I'll send in a PR to the docs for this together with a note on this behavior.

Sent in a PR: https://github.com/laravel/docs/pull/4795

The PR was closed to prevent confusion with other methods. We're going to leave this undocumented for now.


New cell does not show widgets in creation mode

Describe the bug
When adding a new cell to the notebook in creation mode, the new cell does not show the creation mode widget.
To Reproduce
Steps to reproduce the behavior:

Create new assignment, add notebook and enter creation mode
Add cell in any way (button, shortcut etc.)
Cell does not show any creation mode widgets (toggle needed)

Expected behavior
The widgets should be displayed automatically when new cell is added.

fixed


pdf() doesn't work for me

The pdf example doesn't work for me - disabling the "catch", I get the following error in the console:
Error: PrintToPDF is not implemented
Using Chrome Version 59.0.3071.86 (Official Build) (64-bit)

@nthsense
I was able to reproduce that problem with visible mode.
Perhaps Chome doesn't support PrintToPDF() without headless mode currently.

@dotneet Confirmed with Chrome Version 61.0.3131.0 (Official Build) canary (64-bit).  However, with Version 59.x, it doesn't work in either mode for me.

Thank you for reporting.
I'll add note about this to README.

If you have any questions reopen this issue or create new issue.


Fix/ddw 160 Debug context menu copy & paste actions on Windows [HOTFIX]

This PR fixes broken copy&past context menu actions on Windows.
It also adds an Edit tab with various options to the application menu:

Reviewing this now...

@darko-mijic thanks for fixing the CHANGELOG. I have ported your chages to the other PR (which targets develop): https://github.com/input-output-hk/daedalus/pull/816


add contributor

add contributor

Thanks for the PR. Would you mind replacing the tab characters in your code by spaces so that the indentation is correct? Thanks a lot!
Michel

I merged the commit and replaced the tabs by spaces. I also replaced your contribution Clojure-lang, Zookeper-cluster by Clojure/Zookeper because it didn't fit on one line. Now it looks much better. Please let me know if you're OK with that.