ENH adding our own halofit

This PR adds our own halofit.
Closes #599
To do:

[x] rebase on master after #610
[x] finish halofit implementation

bump here @damonge

There is a test for the outputs. See ccl_test_power_nu.c It reads in benchmark data (presumably from CLASS) and compares to halofit from CCL in a number of cases.

OK @damonge I added some extra notes. Back to you!


Add timout to ssh

Adds a timeout to curl and handles the exceptions in case there are any errors with subprocess output (before the connection just hanged sometimes stopping the work of the whole dispatcher).
The problem which remains and I don't know how to approach is that even if the connection is not established after (what is set now) 9 tries, with initial time 1sec doubled after each next try (ie max waiting time 8.51 min) the only thing we are able to return is either that the instance finished or not (ie True or False). If for any reason the instance is lost (shutting by hand, other scenarios (??) ) it will still try connecting to it the next time again.
This might be a problem for another PR though..

thanks for your review @lucyleeow
Yes. I spent quite some time investigating the whole hanging issue. It seems that curl was hanging for now, but there is always a possibility it will hang elsewhere as well.
What other places would you suggest we need to take care of before making release?

Thanks @lucyleeow


Update free-courses-ru.md

Add new python course
What does this PR do?
Add resource(s) | Remove resource(s) | Add info | Improve repo
For resources
Description
Why is this valuable (or not)?
How do we know it's really free?
For book lists, is it a book? For course lists, is it a course? etc.
Checklist:

[x] Read our contributing guidelines.
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Add needed indications (PDF, access notes, under construction).
[x] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

HACKTOBERFEST-ACCEPTED

shrn01, please add label - HACKTOBERFEST-ACCEPTED

shrn01, please help to find error

shrn01, please add label - HACKTOBERFEST-ACCEPTED

Thanks, and welcome to free-programming-books!


#158067945 Implement feedback from 4th checkpoint defence(31/05/2018)

What does this PR do?
This PR implements the followign feedback:

When getting all or one center, the center(s) returned to the consumer of the endpoint is paginated but the event attached to each center by eager-loading is not paginated. Ensure to paginate the event attached to each center.
Make use of a third-party package/sequelize(if it supports) to do the date-validation when creating events.
Fix typo errors in some of the error messages, choosen is supposed to be chosen.

Description of Task to be completed?
Implement feedback from 4th defence 31/05/2018
Any background context you want to provide?
None
What are the relevant pivotal tracker stories?
#158067945
Questions:
None

Coverage decreased (-0.1%) to 92.748% when pulling 4c231f3127f0387e91232e469d8a10ab32e4fc8f on bg-implement-feedback-31/05/2018-158067945 into c9b28d7b0556b1ef4fe01f52a2077d8767cdef99 on develop.


bug( ): 502 errors in browser console

Describe the bug
Sometimes the frontend receives 502 from the backend for various endpoint calls. There are no logs in the backend to indicate the 502 originated from the backend server. It could be caused by Cloudfront or any of the services in between the frontend request and the backend server.
To Reproduce
Steps to reproduce the behavior:

go the the cellxgene frontend
open the network console
generate an API key, or start a revision.
Eventually 502 errors will show up.

Expected behavior
We should not be receiving 502s
Environment

Browser chrome

Additional context
Add any other context about the problem here.

@Bento007 , any chance this could be a duplicate or related to #3535 ?


Passing from Maven to Gradle ( Discussing , Ideas and Solutions )

Generally
@badarshahzad @naeemkhan12
Hello my friends , you added Gradle but you must follow the Gradle Project Layout , it is similar like Maven :
Please read Java Gradle Project Layout
Warning
The problem now is with the build of the project . With Maven you run mvn clean package and it builds the jar along with it's dependencies . I currently don't know how to do it on Gradle , but i will find it soon .
What we need to do with Gradle
We need to add Goals inside the build.gradle  in order to match with the pom.xml . Check it i have added plugins there .
Finally
We have to decide , we continue with Maven or Gradle ? We don't need both .

@badarshahzad
Here is a fast solution .
The only think you need to do for passing on gradle :

Is keeping exactly the same packages as i have done for Maven
Remove pom.xml
Add build.gradle
That's it :)

My suggestion: Gradle fans follow  > maven :smile:

@naeemkhan12  Let's do it then :) Please read Java Gradle Project Layout


Wrong DDL when dropping index on Oracle

DBeaver Version 5.0.3 (Community Edition)
When I try to drop an index on an Oracle table by right clicking it and choosing delete, DBeaver generates the following DDL statement:
ALTER TABLE MYSCHEMA.MYTABLE DROP INDEX IX_MYINDEX;
This is wrong! It should be just:
DROP INDEX IX_MYINDEX;

Thanks for report


emissary 3.9.1 manifests do not work

Describe the bug
Manifests for 3.9.1 add an init container to the emissary-ingress deployment that looks for emissary-apiext in the emissary-system namespace instead of in the emissary namespace
To Reproduce
Install the with 3.9.1 manifests
Expected behavior
Init container should start up the pod and look for emissary-apiext in the emissary namespace.
The namespace should at the very least be templated with an env var, so it can be modified with kustomize
Versions (please complete the following information):

Ambassador: 3.9.1
Kubernetes environment: GKE
Version 1.25

The installation namespace for the emissary-apiext deployment should indeed be emissary-system unless modified from the defaults in the officially published manifests, so this sounds like the correct behaviour to me. Changing the namespace of the emissary-apiext deployment is totally fine, but you'll need to go ahead and change the init container (and possibly some other configuration depending on your setup). If deploying Emissary with kubectl you can manually modify the installation manifest. If you're using the helm chart, then the waitForApiext helm value can be used to point it at your emissary-apiext installation (or disable it if you like).

@AliceProxy that can't be right. According to the docs the user only needs to create a single namespace called emissary, not emissary-system
All the other components are deployed in the emissary namespace, not emissary-system.
Something is not right. Either the documentation or the manifests.

I wished something like this worked (it used to):
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: my-namespace # <- THIS
resources:
  - https://app.getambassador.io/yaml/emissary/3.9.1/emissary-crds.yaml
  - https://app.getambassador.io/yaml/emissary/3.9.1/emissary-emissaryns.yaml

As a workaround for 3.9.x, the following emulates disabling the wait-for-apiext init container altogether:
kustomization.yaml:
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: my-namespace
resources:
  - https://app.getambassador.io/yaml/emissary/3.9.1/emissary-crds.yaml
  - https://app.getambassador.io/yaml/emissary/3.9.1/emissary-emissaryns.yaml
patches:
  - path: deployment-emissary-ingress.yaml

deployment-emissary-ingress.yaml:
apiVersion: apps/v1
kind: Deployment
metadata:
  name: emissary-ingress
  namespace: emissary
spec:
  template:
    spec:
      initContainers: null


Edge-case calls to merge, concat, zip, combineLatest and withLatestFrom... handling the nothing

There are cases, albeit edge cases, where you may end up calling some of the aformentioned methods dynamically with something like:  Observable.merge.apply(this, getSomeArrayOfObservables()). If getSomeArrayOfObservables() is [] what happens?
In RxJS 3.0.1 if you pass no observables to the following you get the following results:

Observable.combineLatest() ... never completes (never)
Observable.zip() ... throws unhandled error
Observable.zip(() => 'test') ... throws unhandled error
Observable.merge() ... completes immediately (empty)
Observable.concat() ... completes immediately (empty)
a.withLatestFrom()  ... complets immediately (empty)
a.combineLatest() ... never completes (never)
a.concat() ... just returns a
a.merge() ... throws unhandled error
a.zip((a) => a + '!') ... works as you'd expect... (same as a.map(x => x+'!'))

... it seems like a.combineLatest() and Observable.zip() above should behave a little better. I think the following should be true:

a.combineLatest() ... should just return a
Observable.zip() and Observable.zip(() => 'test') .... should just complete immediately (empty)

Thoughts?

Closed for lack of interest.


chore: update i18n from Weblate

@michaelien I added full translations for Marathi language yesterday. This PR has only 22% of them which I had the day earlier. Also the branch weblate-i18n is deleted so where are the full translations?


Run Sanic on http, https, unix socket simultaneously.

Is there a way to run Sanic on http, https, unix socket at the same time ?
For example:
app.run(host="<IP_ADDRESS>", port="8000")

Then it runs on http
but
app.run(host="<IP_ADDRESS>", port="8000", ssl={...})

Then it runs only on https.

No, but you can run multiple instances for any addresses/sockets with/without SSL that you may need. Pull requests are welcome, I guess, but this is not likely to be implemented by us any time soon because binding multiple interfaces within the same process is not that important (multiple workers within one Sanic server are supported only because otherwise they couldn't easily bind to same listening address).

I agree with @tronic. It is easy enough to run multiple instances to cover different schemes that adding this into the server itself is not a huge win.
I think we probably should add some deeper documentation on deployment strategies. This seems to be on of the most common questions that we get.

OK :)


16bpc RGBA textures not showing

Bevy version
0.4.0
Operating system & version
Arch linux 5.11.11.arch1-1
What you did
I've created a custom sprite's texture in gimp and then exported it as 16bpc RGBA

Later I've tried to use it like that:
let texture_handle = asset_server.load("chainball.png");
commands.spawn(SpriteBundle {
        sprite: Sprite::new(Vec2::new(sprite_size / 2.0, sprite_size / 2.0)),
        material: materials.add(texture_handle.into()),
        ..Default::default()
    })

What you expected to happen
I expected to see a texture I've created.
What actually happened
Nothing was visible, though the component was added, as it's collider body (from bevy_rapier2d) was colliding with the floor. I was experimenting some why was this invisible and downloaded some texture from google. This one was visible without any problems. I've run file on both files with this result:
rapierbevy/assets
❯ file ball.png
ball.png: PNG image data, 600 x 600, 8-bit/color RGBA, non-interlaced

rapierbevy/assets
❯ file chainball.png
chainball.png: PNG image data, 801 x 820, 16-bit/color RGBA, interlaced

I've then exported same texture as 8bpc RGBA

and everything started to work as expected.
Additional information
I've checked if interlacing makes any difference but no.
❯ gimp -v                                                                                ✭
GNU Image Manipulation Program version 2.10.24
git-describe: GIMP_2_10_24
Build: unknown rev 0 for linux
# C compiler #
	Using built-in specs.
	COLLECT_GCC=gcc
	COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/lto-wrapper
	Target: x86_64-pc-linux-gnu
	Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++,d --with-isl --with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit --enable-cet=auto --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-install-libiberty --enable-linker-build-id --enable-lto --enable-multilib --enable-plugin --enable-shared --enable-threads=posix --disable-libssp --disable-libstdcxx-pch --disable-libunwind-exceptions --disable-werror gdc_include_dir=/usr/include/dlang/gdc
	Thread model: posix
	Supported LTO compression algorithms: zlib zstd
	gcc version 10.2.0 (GCC)

# Libraries #
using babl version 0.1.86 (compiled against version 0.1.86)
using GEGL version 0.4.30 (compiled against version 0.4.30)
using GLib version 2.68.0 (compiled against version 2.68.0)
using GdkPixbuf version 2.42.4 (compiled against version 2.42.4)
using GTK+ version 2.24.33 (compiled against version 2.24.33)
using Pango version 1.48.4 (compiled against version 1.48.4)
using Fontconfig version 2.13.93 (compiled against version 2.13.93)
using Cairo version 1.17.4 (compiled against version 1.17.4)

Could you share your custom sprite, or another one with the same issue? Thanks!

Sure, I've created a minimal reproduction with xcf and exported pngs in assets here.
It looks like it shows some more details about the problem that weren't visible inside my complete project. That is, when I then run this example in debug mode, both 8bpc and 16bpc sprites appear, but the 16bpc disappears after a second or two. If I run with --release then the 16bpc isn't visible from the beginning.

Closing as this seems fixed. Tested on abb8c353f49a6fe9e039e82adbe1040488ad910a with @zvolin's sprites, recoloring the 16bppc to white to distinguish them, seems to display properly:


Change padding length to obscure content

At the moment we add the minimum padding buffer, we should dynamically alter based on the input.

Rather than automatically choosing a padding length it can now be specified via #14.
Automatic padding could add significant extra processing and network usage without actually providing much security benefit. The "correct" padding to use for a message is probably application specific.


Is fakejson.com just an ad page for a paid tool?

It only contains one link to another page and lacks documentation or instructions related to generating fake JSONs.

Removed, thank you for reporting it.


Fixing admonition title CSS

Nested admonitions don't have their styles inherited properly, this makes the CSS rule a bit more restrictive to avoid this.
I also added a section to our admonitions to make sure it works:

Looks good!


when my dataset is  single sentence abstract.

Dear Chen
I train this model in othe dataset of  single sentence abstract. but  in the process of implementation, i find that the model(abstractor) build an channel by single sentence to single abstract.
If i try to intelligently select K sentence by rouge in extractor stage, than i flatten this sentence to train in abstractor and full_rl, do you think  this is feasible？
Does the model of fast_abs_rl  apply to  single sentence abstract? I would be very grateful  for your reply and advices.

Thanks for your interest in using our code. Please read the full paper for the rationale on why we select K sentences then output abstract.
In short, we extract K sentences and then decode K abstract sentences independently. In the experiment we found this is beneficial for multi-sentence summary task. I'm not sure about your task/dataset so it's difficult for me to give advice.
Feel free to fork the repository and then build upon our model for your own experiments.

closing this due to no further discussion

@BIGKUANG

If i try to intelligently select K sentence by rouge in extractor stage, than i flatten this sentence to train in abstractor and full_rl

Did you try this approach ? How are the results ?


A problem occurred evaluating root project 'android-maps-utils'. > Could not find method android() for arguments ...

Hi,
Have tried to build but am getting the following error message :-
FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\Aaron\GitHub\android-maps-utils\build.gradle' line: 1

* What went wrong:
A problem occurred evaluating root project 'android-maps-utils'.
> Could not find method android() for arguments [build_1o0aldwai93z6yqcovlikc1yi
$_run_closure1@73d3e555] on root project 'android-maps-utils'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

BUILD FAILED

I updated the build.gradle :-
android {
    compileSdkVersion 20
    buildToolsVersion "23.0.2"
}

and demo/build.gradle :-
android {
    compileSdkVersion rootProject.ext.compileSdkVersion
    buildToolsVersion rootProject.ext.buildToolsVersion
    ...

I am relatively new to Android development, I have got several apps built and running okay by making mods. I am not sure if its a versioning problem or a problem with my environment or whether its an actual bug either with the build system or with the app.

These have since been updated.

Error: /Volumes/Working/Development/Cordova/plugin/opcv/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

Where:
Build file '/Volumes/Working/Development/Cordova/plugin/opcv/platforms/android/build.gradle' line: 253

What went wrong:
A problem occurred evaluating root project 'android'.

Project with path ':androidOpenCVExample' could not be found in root project 'android'.

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.


upgrade terraform to 0.13.5

What this PR does / why we need it:
E2E tests are broken due to some conflicts in api versions which terraform is using.
Special notes for your reviewer:
Optional Release Note:

None

/test pull-machine-controller-e2e-aws

/test pull-machine-controller-e2e-aws


"An existing connection was forcibly closed by the remote  host."

Everytime I attempt to update the program when given this prompt I am always given this error and I'm not sure what the fix is as I can't find anything relating to the issue, here is the log it gives me. I downloaded today and tried using all of the studio branches if that changes anything.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.BeginReceive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, AsyncCallback callback, Object state)
at System.Net.Sockets.NetworkStream.BeginRead(Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state)
************** Loaded Assemblies **************
mscorlib
Assembly Version: <IP_ADDRESS>
Win32 Version: 4.8.4420.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
RobloxStudioModManager
Assembly Version: <IP_ADDRESS>
Win32 Version: <IP_ADDRESS>
CodeBase: file:///C:/Users/Deskt/Desktop/w0w/STUDIOMODMANAGAER/RobloxStudioModManager.exe
System
Assembly Version: <IP_ADDRESS>
Win32 Version: 4.8.4360.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_<IP_ADDRESS>__b77a5c561934e089/System.dll
Newtonsoft.Json
Assembly Version: <IP_ADDRESS>
Win32 Version: <IP_ADDRESS>
CodeBase: file:///C:/Users/Deskt/Desktop/w0w/STUDIOMODMANAGAER/RobloxStudioModManager.exe
System.Windows.Forms
Assembly Version: <IP_ADDRESS>
Win32 Version: 4.8.4400.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_<IP_ADDRESS>__b77a5c561934e089/System.Windows.Forms.dll
System.Drawing
Assembly Version: <IP_ADDRESS>
Win32 Version: 4.8.4390.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_<IP_ADDRESS>__b03f5f7f11d50a3a/System.Drawing.dll
System.Core
Assembly Version: <IP_ADDRESS>
Win32 Version: 4.8.4455.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_<IP_ADDRESS>__b77a5c561934e089/System.Core.dll
System.Numerics
Assembly Version: <IP_ADDRESS>
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_<IP_ADDRESS>__b77a5c561934e089/System.Numerics.dll
System.Runtime.Serialization
Assembly Version: <IP_ADDRESS>
Win32 Version: 4.8.4455.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_<IP_ADDRESS>__b77a5c561934e089/System.Runtime.Serialization.dll
System.Data
Assembly Version: <IP_ADDRESS>
Win32 Version: 4.8.4455.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_<IP_ADDRESS>__b77a5c561934e089/System.Data.dll
System.Xml
Assembly Version: <IP_ADDRESS>
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_<IP_ADDRESS>__b77a5c561934e089/System.Xml.dll
System.Configuration
Assembly Version: <IP_ADDRESS>
Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_<IP_ADDRESS>__b03f5f7f11d50a3a/System.Configuration.dll
RobloxDeployHistory
Assembly Version: <IP_ADDRESS>
Win32 Version: <IP_ADDRESS>
CodeBase: file:///C:/Users/Deskt/Desktop/w0w/STUDIOMODMANAGAER/RobloxStudioModManager.exe
Accessibility
Assembly Version: <IP_ADDRESS>
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_<IP_ADDRESS>__b03f5f7f11d50a3a/Accessibility.dll
System.IO.Compression
Assembly Version: <IP_ADDRESS>
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.IO.Compression/v4.0_<IP_ADDRESS>__b77a5c561934e089/System.IO.Compression.dll
System.IO.Compression.FileSystem
Assembly Version: <IP_ADDRESS>
Win32 Version: 4.8.4084.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.IO.Compression.FileSystem/v4.0_<IP_ADDRESS>__b77a5c561934e089/System.IO.Compression.FileSystem.dll
Konscious.Security.Cryptography.Blake2
Assembly Version: <IP_ADDRESS>
Win32 Version: <IP_ADDRESS>
CodeBase: file:///C:/Users/Deskt/Desktop/w0w/STUDIOMODMANAGAER/RobloxStudioModManager.exe
System.Numerics.Vectors
Assembly Version: <IP_ADDRESS>
Win32 Version: <IP_ADDRESS>
CodeBase: file:///C:/Users/Deskt/Desktop/w0w/STUDIOMODMANAGAER/RobloxStudioModManager.exe
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

same here

same here


[3.x] Update documentation for Control rect_pivot_offset to include rotation

#57095 included an update to the documentation for pivot_offset to include rotation. This PR is a backport of that documentation update.

Cherry-picked for 3.4.4.


Reproducible example
See the latest r-package (debian, R-devel, clang) CI job run on master (build link).
That can be reproduced using this configuration:
https://github.com/microsoft/LightGBM/blob/2ee3ec84b70df1a9e249d3b3bff9458fe3726cd4/.github/workflows/r_package.yml#L260-L265
Environment info
LightGBM version or commit hash: https://github.com/microsoft/LightGBM/commit/2ee3ec84b70df1a9e249d3b3bff9458fe3726cd4
Additional Comments
This would likely lead to a rejection of a new submission on CRAN.
It will also cause CI failures in this repo until it's either fixed or until we temporarily allow that WARNING in CI.
All of the lines noted in warnings are uses of the R_API_END() preprocessor macro
https://github.com/microsoft/LightGBM/blob/2ee3ec84b70df1a9e249d3b3bff9458fe3726cd4/R-package/src/lightgbm_R.cpp#L159
which looks like this:
https://github.com/microsoft/LightGBM/blob/2ee3ec84b70df1a9e249d3b3bff9458fe3726cd4/R-package/src/lightgbm_R.cpp#L38-L44

This is now being reported as a WARNING on the project's CRAN page as well.

https://cran.r-project.org/web/checks/check_results_lightgbm.html
I will try to put up a PR this week. @shiyu1994 if you get any emails from CRAN about this, please post them here.

Running R CMD INSTALL instead of R CMD CHECK, I saw more traceback information:
lightgbm_R.cpp:1191:3: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
  R_API_END();
  ^~~~~~~~~~~
lightgbm_R.cpp:43:12: note: expanded from macro 'R_API_END'
  Rf_error(R_errmsg_buffer); \
           ^~~~~~~~~~~~~~~
lightgbm_R.cpp:1191:3: note: treat the string as an argument to avoid this
lightgbm_R.cpp:43:12: note: expanded from macro 'R_API_END'
  Rf_error(R_errmsg_buffer); \

That helped to narrow down where the issue was. It appears to be what's discussed over in https://github.com/llvm/llvm-project/issues/56583.
As described in https://github.com/llvm/llvm-project/issues/56583#issuecomment-1194387229 specifically, something like printf("%d%d%d") could cause an overflow and the resulting stability and security issues that come with that.
clang is raising a warning here because there's no guarantee that Rf_error() won't be passed some string with formatting stuff like %s in it.
https://github.com/microsoft/LightGBM/blob/2ee3ec84b70df1a9e249d3b3bff9458fe3726cd4/R-package/src/lightgbm_R.cpp#L31
https://github.com/microsoft/LightGBM/blob/2ee3ec84b70df1a9e249d3b3bff9458fe3726cd4/R-package/src/lightgbm_R.cpp#L43
I put up #6216 with changes that'll hopefully fix that. I'll move it out of draft if CI passes.


Support Windows in CUDA version

Right now CUDA version can be built only on Linux. The main blocker of making CUDA working on Windows is

Unfortunately the CUDA changes for LightGBM require pthreads, as of now, and Windows doesn't (easily) support pthreads.
https://github.com/microsoft/LightGBM/pull/3160#issuecomment-669258806

Source code references:
https://github.com/microsoft/LightGBM/blob/a15a37046f53514d36091854b9711f7b4c9e452a/src/treelearner/cuda_tree_learner.h#L243
https://github.com/microsoft/LightGBM/blob/045ffd9aacc2fc048951b42754b2d00618825fe5/src/treelearner/cuda_tree_learner.cpp#L207-L218
https://github.com/microsoft/LightGBM/blob/e31244cf33c4ede884307963a33dee0945cf6789/src/treelearner/cuda_tree_learner.cpp#L490-L494
Code blocks listed above should be rewritten in a cross-platform manner.
Or if it is impossible, pthread's port for Windows can be properly added in source files tree to make code above works with Visual Studio. For example,

https://github.com/coapp-packages/pthreads,
https://github.com/GerHobbelt/pthread-win32,
https://nachtimwald.com/2019/04/05/cross-platform-thread-wrapper/,
https://demin.ws/blog/russian/2009/01/26/universal-threads-for-windows-and-unix/.

Closed in favor of being in #2302. We decided to keep all feature requests in one place.
Welcome to contribute this feature! Please re-open this issue (or post a comment if you are not a topic starter) if you are actively working on implementing this feature.

Closed in favor of being in #2302. We decided to keep all feature requests in one place.
Welcome to contribute this feature! Please re-open this issue (or post a comment if you are not a topic starter) if you are actively working on implementing this feature.

@shiyu1994
Are there any plans for supporting new CUDA implementation on Windows? #4528

@StrikerRUS Thanks for proposing this, and thanks for the investigation! Definitely, we have plan for CUDA version on Windows, but not necessarily in 4.0.0. If the changes for windows require only minor revision, we may try to include it in 4.0.0. I think by now we'd better focus on make the new CUDA version stable on Linux. And then we can head for Windows. WDYT?

@shiyu1994 Yeah, totally fine! I just wanted to hear your opinion on this issue and further plans. Thanks!

Sorry, this was locked accidentally. Just unlocked it. We'd still love help with this feature!


Broken github action for latest ?

Hello there,
I maintain the LaluBuntu linux distro (offensive work), and it's relying on packer & github actions for daily builds (docker mostly). We live on latest as it's a rolling distro, and this morning, things broke in the latest github action, any chance you could have a look ? :)
Cheers ! 🌹
Expected Behavior
packer version should work :)
Current Behavior
packer version doesn't work anymore :(

Steps to Reproduce
Simply add the packer setup workflow
[...]
      - name: Checkout
        uses: actions/checkout@v4

      - name: Setup `packer`
        uses: hashicorp/setup-packer@main
        id: setup
        env:
          PACKER_LOG: "0"
          PRODUCT_VERSION: latest

Environment

Lalubuntu packer workflow: https://github.com/laluka/lalubuntu/blob/master/.github/workflows/packer.yml#L35
Failing job logs: https://github.com/laluka/lalubuntu/actions/runs/10176077646/job/28146434543

Have a nice day ! 🌈

Well, that's... Unexpected!
So, my report wasn't full, I thought the command failed as packer wasn't in the current PATH, but it actually is, the missing part was...

Now I wonder why github-action broke this behavior, as writing to stdout isn't too scary.. 🤷
It works on my end with a regular file, would you mind trying with /dev/stdout to see if this can still be reproduced ?
Thanks for the quick response, and have a nice day ! 🌹


I do not know how to  Run the service with action:install and it will install the service.

hi
i can not understande the document which Run the service with action:install and it will install the service.
first ,how to use this libriry to install windows service

tks ,i see


Remove hash feature declaration

The hash feature is no longer recognised by the compiler. It would seem this declaration is no longer needed.

Thanks :heart: merged 99ad14f6ed4f1ddb87523d646af18947b68f8297


Fat-Jar version of detekt-generator module

To finalize https://github.com/detekt/detekt/pull/5080
To be able to call detekt-generator through java -jar detek-generator.jar --other-options shadowJar plugin was used in build.gradle.kts.
Docs on usage were also added.

I think we need to add the .jar also here:
https://github.com/detekt/detekt/blob/15c19aaf07f19b180180fe5344815d9dca13fada/build-logic/src/main/kotlin/releasing.gradle.kts#L38-L44


Fix issues in advanceNonDurableCursors

Motivation
There are a couple of issues in advanceNonDurableCursors

Durable cursors unnecessarily run through this logic
For Non-durable and durable cursors that are caught up reading the topic.  The following warning message can be printed

message: [public/default/persistent/test] Failed to mark delete while trimming data ledgers: Invalid mark deleted position

This happens because highestPositionToDelete calculated when the reader/consumer is caught up is going to be higher than the last confirmed for the of the managed ledger.  There is also no point in trying to advance the mark delete position if the reader/consumer is caught up.

Do we have tests that exercise explicitly this code?

@eolivelli yes in general but don't have a test to replicate this specific issue. Attempted to replicate issue in test but no a clear way how to


CORE-4364 CPK verification during Sandbox creation

I understand we brought this check close to Sandbox creation to prevent Cpks tampering on disk when creating sandboxes. The way it currently is there is I think there is a tiny window but still there between verifyCpks(cpks) and sandboxes creation below it within SandboxServiceImpl.createSandboxes. Would it make sense to read all Cpk content data in memory one Cpk at the time when installing main/library bundles and calculate checksum and verify just before installing it in memory?

I understand we brought this check close to Sandbox creation to prevent Cpks tampering on disk when creating sandboxes. The way it currently is there is, I think, a tiny window but still there between verifyCpks(cpks) and sandboxes creation below it within SandboxServiceImpl.createSandboxes. Would it make sense to read all Cpk content data in memory one Cpk at the time when installing main/library bundles and calculate checksum and verify just before installing it in memory?

That's an interesting point, but "all Cpk content data" could be really BIG! Perhaps it would be cheaper to open a file descriptor for verifying a CPK and then keep it open so that we re-use it when installing that CPK? And then close it, of course. This would guarantee that both verification and installation step would use the exact same data. However, I don't know how easy it would be to implement... :thinking:.

Edit: Does the Cpk metadata contain the SHA-256 of each of its component bundles, i.e. "main" bundle and each "library" bundle? Because it seems that the best way to guard against a corrupted filesystem is for this inputStream to be wrapped inside a DigestInputStream so that you can compute the bundle's hash "on the fly" and compare the result with an expected value:
class SandboxServiceImpl {

    private fun installBundle(
        bundleSource: String,
        inputStream: InputStream,
        expectedHash: SecureHash,
        sandboxId: UUID,
        securityDomain: String
    ): Bundle {
        ...
            val digest = // get MessageDigest from somewhere
            DigestInputStream(inputStream, digest).use {
                bundleContext.installBundle(sandboxLocation.toString(), it)
            }

            // check that digest.digest() matches expectedHash
        ...
    }

}

Although having said all this, I cannot see how to ask net.corda.v5.crypto.DigestService for a suitable DigestInputStream shrug.

I don't see we have hashes of component bundles. We do have hash of the CPK though (cpk.metadata.fileChecksum), so maybe we don't need to go to CpkReadService, but validate against that?
Still there remains question how to after that safely read component bundles without storing validated CPK in memory.

DigestInputStream isn't going to help here. The example where we wrap installBundle puts the checksum check after we have already installed the bundle. We shouldn't even have Cpk objects when we do the check, it should be done before any processing of the stream.
If we want to close the window where someone could modify the file between check and loading, then we need it fully loaded into memory and used for both tasks.
CpkChunksFileManagerImpl.assembleCpk is missing a check to see if the complete file matches the checksum it has been given. It has a cpkChecksum parameter but only uses it to build folder and file names. Adding a check here would be a good step forward.
assembleCpk builds the file with its final name, without checking the file matched the checksum expected of it. This allows an attacker with access to the message bus to feed a bad file into the system giving it any checksum they want. They can overwrite valid CPKs. Then when we come to create sandboxes for them we will load the unwanted file. This method needs to build the file under a temporary filename and only rename the file to the final filename once it has passed the checksum check.
When it comes to building a sandbox, we get a CPK from CpkReadServiceImpl.get by passing in the file hash. We know the caller is asking for that particular hash so it would be enough to check the hash passed as a parameter matches the file loaded from disk. To close that window mentioned earlier, we'd need to load the file into memory at this point. We could build a different implementation of CpkImpl with the file in memory and the checksum checked, then return that from get. We'd want to check code paths to make sure references to such an object don't last long.

DigestInputStream isn't going to help here. The example where we wrap installBundle puts the checksum check after we have already installed the bundle. We shouldn't even have Cpk objects when we do the check, it should be done before any processing of the stream.

The bundle may have been installed, but it has not yet been started. OSGi describes the "install" phase here, but the bottom line is that the returned bundle is INSTALLED and possibly RESOLVED, but certainly not ACTIVE. You will also notice in SandboxServiceImpl.createSandbox() that we start the bundles together, and only after they have all been installed successfully.
I don't think that loading all sandbox bundles into memory is a good idea because we don't set a limit on the size of CPKs.

I suppose and since @chrisr3 hasn't flagged it, it does not matter much that we might have installed some bundles to osgi only to find out that cpk actual checksum is not the expected, since we are not creating the Sandbox.

I suppose and since @chrisr3 hasn't flagged it, it does not matter much that we might have installed some bundles to osgi only to find out later that cpk actual checksum is not the expected, since we are not creating and exposing the Sandbox.

If the checksum doesn't match then we must not start any of the sandbox bundles. I am assuming that we also uninstall any bundles we have already installed if we cannot create the sandbox, but haven't checked.

Approving based on internal communication that we decided to go in with first version which has the above issue. Maybe it would be worth registering a JIRA describing the above issue which still remains to be tackled later?

Approving based on internal communication that we decided to go with first version which has the above described issue. Maybe it would be worth registering a JIRA describing the above issue which still remains to be tackled later/ have it recorded?

Created CORE-6257

LGTM, but we do need to set explicit file permissions for these cache files.

That should be done with another JIRA ticket


No "Go Back" Button

After you go to the mod logs, you cant go back without editing the url.
As far i can see there is no current "Go Back" button.

Ok after looking into it. There should be a button with "Reports" But somehow it isnt visible.

Very true... Though, for non-community mods, the only page available would be the modlog...
Probably worth making it more obvious that that's all you get - I am gonna add some kind of instance overview page as the homepage soon, so users will also get access to that.


python311Packages.fyta-cli: init at 0.3.4

Module to access the FYTA API
https://github.com/dontinelli/fyta_cli
Description of changes

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 301334 run on x86_64-linux 1

4 packages built:

python311Packages.fyta-cli
python311Packages.fyta-cli.dist
python312Packages.fyta-cli
python312Packages.fyta-cli.dist


Update /aqua-quickstart/Chart.yaml#L1 from apiVersion: v2 to apiVersion: v1

Update https://github.com/aquasecurity/aqua-helm/blob/cc7851c24e6b95dc6ac9bb364fa13cb895e09c01/aqua-quickstart/Chart.yaml#L1 from apiVersion: v2 to apiVersion: v1. v2 is still not supported in several implementation.

@sanjay-shah - the current charts working fine with v2. Can you explain what are the issues you come across with v2 version compared to v1 so we can try it out and fix them.

Please re-open this ticket for any related issues.


Update LICENSE

Thankyou for this PR!

Can you make me defrift an example of someone else's link

Hey, what did you mean by defrift?


Database structure for recommendations.

Design the tables to represent recommendations. key columns will include

name : name of the resource
url: Where the resource lives
type : blog  / github / dashboard etc
submitor : person who submitted the resource
approved: if the resource was approved or not
automatic: is this an automatically generated resource or a user submitted one.

Then we prob need a a many to one join column between datasets and resources.

Blocked until recommendations feature is scoped

Switching to "frozen" because there are no imminent plans on scoping, but this is in the roadmap.


"Mogoș" is listed in the dropdown menu when searched.

Description : When you will type "Mogoș" in the search bar you should see it in the dropdown menu correctly spelled and with locality information.
Precondition : The website is up and running

Step 2 : Observe "Mogoș" from the dropdown menu.
Expected result : "Mogoș" should be correctly spelled, it should have locality information and should be selectable from the dropdown menu.


Welcome to Study Groups!

Hello @jepa  !
Thanks for your interest in the Mozilla Science Lab, it's great to hear you're building a Study Group.
My name is Aurelia and I work at the Mozilla Science Lab, a group building projects/programs globally to support open research and citizen science, including the Study Groups project. Just wanted to introduce myself as a resource, and answer any questions you might have.
Feel free to:

review our new Study Group Orientation Guide developed by @zee-moz
sign up for our Orientation in January, where we mentor you through the early development of your Study Group
build out a site for your Study Group and cull from our library of lessons for early sessions
join our monthly study group call (first Fridays, 11AM EST), subscribe to our mailing list to be notified of those calls
follow our #mozstudy hashtag on twitter, or our list, ping @auremoser to be added

Join us on our next Study Group Learning call, Friday February 3rd, 11am EST.
Email me at<EMAIL_ADDRESS>with questions, or contact/social media information to join our twitter community and Study Group email listserv. Would love to learn about your lessons, challenges, topic of interest, and events.
Thanks for reading!
Aurelia
Mozilla Science Lab
@MozillaScience

Thank you @auremoser, will do!


Expanded NMZ notifications

Is your feature request related to a problem? Please describe.
Recently I've discovered a Push Notifications plugin for RL (push-notifs). It's great but it doesn't help at all in NMZ when I'm trying to AFK.
In the Idle Notifications plugin there is no option to trigger a notification when the HP is above set value (only below).
In the NMZ plugin there is no trigger for range/mage boost only the overload and absorb effects.
Describe the solution you'd like
I'd like to be able to set a trigger for notification when my range level/boost falls below set value in the NMZ pluging
and/or
be able to select a trigger for when my HP is above set value in the Idle Notifications plugin.
Describe alternatives you've considered
Two alternatives explained in the point above.

Check out NMZ Utilities on the plugin hub

Check out NMZ Utilities on the plugin hub

Huh, I've completely missed that when looking through the plugin hub, thanks for that.
That somewhat solves the issue but still it would also be very useful to expand NMZ Utilities for another types of notifications (range/mage).

Boosts information can notify when your boosted stats are below a threshold.

Boosts information can notify when your boosted stats are below a threshold.

Just verified this. It also works perfectly together with the push notification plugin. The options were very scattered and I honestly overlooked them.
Thanks for help guys.


Unexpected zsh-syntax-highlighting warning when running sudo

As described in this issue I am reporting an issue with zsh-syntax-highlighting. When I run sudo -s I get the following warning and I have no clue on how to fix it properly:

zsh-syntax-highlighting: 'README.md' highlighter should define both required functions '_zsh_highlight_highlighter_README.md_paint' and '_zsh_highlight_highlighter_README.md_predicate' in '/Users/near/.oh-my-zsh/plugins/zsh-syntax-highlighting/highlighters/README.md//README.md-highlighter.zsh'.

There is no zsh-syntax-highlighting code in our repository, you're probably bundling it as a custom plugin. But you're probably having a $ZSH_HIGHLIGHT_HIGHLIGHTERS setup in your zshrc file that causes this problem, as they said in the other issue. What is your zshrc file?

My current zshrc is as follows:
export PATH=$HOME/bin:/usr/local/bin:$PATH
export ZSH=/Users/near/.oh-my-zsh
ZSH_THEME="agnoster"
DISABLE_AUTO_TITLE="true"
plugins=(zsh-syntax-highlighting gulp)
source $ZSH/oh-my-zsh.sh
export DEFAULT_USER="near"

# Override auto-title when static titles are desired ($ title My new title)
title() { export TITLE_OVERRIDDEN=1; echo -en "\e]0;$*\a"}
# Turn off static titles ($ autotitle)
autotitle() { export TITLE_OVERRIDDEN=0 }; autotitle
# Condition checking if title is overridden
overridden() { [[ $TITLE_OVERRIDDEN == 1 ]]; }
# Echo asterisk if git state is dirty
gitDirty() { [[ $(git status 2> /dev/null | grep -o '\w\+' | tail -n1) != ("clean"|"") ]] && echo "*" }

# Show cwd when shell prompts for input.
tabtitle_precmd() {
   if overridden; then return; fi
   pwd=$(pwd) # Store full path as variable
   cwd=${pwd##*/} # Extract current working dir only
   print -Pn "\e]0;${cwd//$DEFAULT_USER/~}$(gitDirty)\a" # Replace with $pwd to show full path
}
[[ -z $precmd_functions ]] && precmd_functions=()
precmd_functions=($precmd_functions tabtitle_precmd)

# Prepend command (w/o arguments) to cwd while waiting for command to complete.
tabtitle_preexec() {
   if overridden; then return; fi
   printf "\033]0;%s\a" "${1%% *} | ${cwd//$DEFAULT_USER/~}$(gitDirty)" # Omit construct from $1 to show args
}
[[ -z $preexec_functions ]] && preexec_functions=()
preexec_functions=($preexec_functions tabtitle_preexec)

Do you have it installed as root? It might be in your root zshrc file...

No, since there are no root config files under macOS - at least none that I can find.

Run this: sudo -s exec zsh -xv 2>~/zsh.log, then type exit and post the resulting zsh.log file as a private gist.

Here is the dump: https://gist.github.com/NearAutomata/d8a34e0cdb3b1a6b2f2791e3186381b3

Ok you can delete the gist now.

The culprit is this part of zsh-syntax-highlighting:
_zsh_highlight_load_highlighters() {
  # ...

  # Load highlighters from highlighters directory and check they define required functions.
  for highlighter_dir ($1/*/); do
    # ...
  done

where the _zsh_highlight_load_highlighters looks for highlighters (i.e. directories) in the passed folder. For some reason that I haven't yet found, zsh sees highlighters/README.md as a directory, and tries to load "its highlighters" therefore giving you the error:
+/Users/near/.oh-my-zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh:374> _zsh_highlight_load_highlighters /Users/near/.oh-my-zsh/plugins/zsh-syntax-highlighting/highlighters
+_zsh_highlight_load_highlighters:2> setopt localoptions noksharrays
+_zsh_highlight_load_highlighters:5> [[ -d /Users/near/.oh-my-zsh/plugins/zsh-syntax-highlighting/highlighters ]]
+_zsh_highlight_load_highlighters:11> local highlighter highlighter_dir
+_zsh_highlight_load_highlighters:12> highlighter_dir=/Users/near/.oh-my-zsh/plugins/zsh-syntax-highlighting/highlighters/README.md/
+...
zsh-syntax-highlighting: 'README.md' highlighter should define both required functions '_zsh_highlight_highlighter_README.md_paint' and '_zsh_highlight_highlighter_README.md_predicate' in '/Users/near/.oh-my-zsh/plugins/zsh-syntax-highlighting/highlighters/README.md//README.md-highlighter.zsh'.

You don't see that error under your normal user, but you do under root, which is strange. A couple of tests you can run to try to narrow down the issue further:
$ print -l $ZSH/plugins/zsh-syntax-highlighting/highlighters/*/
$ print -l $ZSH/plugins/zsh-syntax-highlighting/highlighters/*(/)
$ for f ($ZSH/plugins/zsh-syntax-highlighting/highlighters/*/); do echo $f; done

all ran both with your normal user and under sudo.

What about another directory, say print -l $ZSH/*/ (with root).

 ~  print -l $ZSH/*/
/Users/near/.oh-my-zsh/cache/
/Users/near/.oh-my-zsh/custom/
/Users/near/.oh-my-zsh/lib/
/Users/near/.oh-my-zsh/log/
/Users/near/.oh-my-zsh/plugins/
/Users/near/.oh-my-zsh/templates/
/Users/near/.oh-my-zsh/themes/
/Users/near/.oh-my-zsh/tools/
 ⚡ root@MBP  ~  print -l $ZSH/*/
/Users/near/.oh-my-zsh/CONTRIBUTING.md/
/Users/near/.oh-my-zsh/LICENSE.txt/
/Users/near/.oh-my-zsh/README.md/
/Users/near/.oh-my-zsh/cache/
/Users/near/.oh-my-zsh/custom/
/Users/near/.oh-my-zsh/lib/
/Users/near/.oh-my-zsh/log/
/Users/near/.oh-my-zsh/oh-my-zsh.sh/
/Users/near/.oh-my-zsh/plugins/
/Users/near/.oh-my-zsh/templates/
/Users/near/.oh-my-zsh/themes/
/Users/near/.oh-my-zsh/tools/

I haven't been able to find why your zsh binary (version 5.3) behaves this way. I'm currently looking if there is a bug in that version, but I'd suggest updating to a newer version in the meantime.

I haven't been able to reproduce your problem with zsh 5.3, so it must be a system bug. I've seen that echo */ runs access(), while echo *(/) runs lstat(). In my system, the call to access() returns an ENOTDIR error on files which aren't directories, so in your case it must not work like that.
Make a test suite by running the following:
mkdir -p test/{a..d}
touch test/{e..g}
cd test

Then run strace zsh -fic 'echo */' both with your normal user and with root. This is what I get with both:
...
open(".", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
brk(0x56297e6d7000)                     = 0x56297e6d7000
getdents(3, /* 9 entries */, 32768)     = 216
getdents(3, /* 0 entries */, 32768)     = 0
brk(0x56297e6cf000)                     = 0x56297e6cf000
close(3)                                = 0
access("f/.", F_OK)                     = -1 ENOTDIR (Not a directory)
access("b/.", F_OK)                     = 0
access("g/.", F_OK)                     = -1 ENOTDIR (Not a directory)
access("e/.", F_OK)                     = -1 ENOTDIR (Not a directory)
access("c/.", F_OK)                     = 0
access("d/.", F_OK)                     = 0
access("a/.", F_OK)                     = 0
write(1, "a/ b/ c/ d/\n", 12a/ b/ c/ d/
)           = 12
...

So zsh discards the filenames of those that returned ENOTDIR, and then outputs the rest. Let me know what you get.


Working iotreview

Sorry for the big PR - I was working from the latest version of the Azure/azure-rest-api-specs. There is only a single new commit in here with my recommendations.
If you accept this PR and push the changes through to Azure/azure-rest-api-specs, I think we're in good shape for 11/14 with the following provisos:

I don't know if the Swagger spec is completely up to date with the REST API that will be available on 11/14. However, it looks more up to date and complete than the current MSDN content.
We need an overwrite page for the information about headers and etags currently here.

We've taken the decision not to include the API docs generated from Swagger in the 11/14 docs release. Instead we'll be converting the existing MSDN content as a stop-gap measure. However, we do want to start using the Swagger spec asap, so please review my suggestions in this PR.


Add support to default config files

This PR tries to load the tox.ini file for loading linting rules.
The order of precedence is:

Tries to load projectConfigFile if set
Tries to load tox.ini if it exists
Loads default configurations

The idea behind this is that if a project already has a tox.ini
file, it should try to use unless overriden. This works similar
to when flake8 is run in the command line.

I don't really get the error message, seems unrelated to the changes.
Local runs of npm run lint and npm run test work fine, is there
anything else that I should look out for?

Bizarre, the projectConfigFile setting already exists to handle this, however it looks like the defaults were left blank. If I remember correctly flake8 at least used to run it's own config search if you didn't specify a --config option, if that is no longer the case then the default for projectConfigFile should just be updated to the names of config files that flake8 will load on it's own instead of introducing a hidden search.

@Arcanemagus currently, if the projectConfigFile is not explicitly set in the package settings page, the package does not apply the rules specified in tox.ini.
I'll update the PR to default projectConfigFile to the files that flake8 uses when running it from the command line.

@Arcanemagus So, I updated the PR with the suggested changes.
Now it checks if the projectConfigFile is set, if it isn't, it looks for the patterns that flake8 looks for (tox.ini, .flake8 and setup.cfg, according to the docs).
I tested it out using all three different default config files, it works for all of them.
If the user sets the projectConfigFile, in the package settings, it overrides every other rule and uses that one.
If no config file is set and no default config file is found, it uses the default rules.

Sorry, I literally meant change the default value here, that way instead of having a hidden default users can see explicitely what is being searched for and add/remove from it as they desire.

Oh, okay :)
First time dealing with atom packages, didn't even think of looking there :)

Okay, this should do the trick now :)
Tested it locally and worked out.

Marked this as fixing #124, since it likely will.

Published in v2.3.0 🎉


Allow dict config for zmk_keycode_map and qmk_keycode_map

Hi,
First of all, thank you so much for creating this. It works really well and is super useful.
I have one small feature request:
The raw_binding_map allows you to specify a dict that draws multiple symbols for a key, such as
  raw_binding_map:
     &mm_grescm_gui': {t: ESC, h: ⌘, s: '` ~'}

Since default &kp keys can also have multiple binding, such as / ?, it would be great if we could assign multiple values to those too, like:
  zmk_keycode_map:
    SLASH: {t: "/", s: '?'}

But currently this raises an error:
❯ keymap -c chocofi_keymap_config.yaml parse -c 10 -z ../config/corne.keymap > chocofi_keymap.yaml && keymap -c chocofi_keymap_config.yaml draw -k crkbd/rev1 chocofi_keymap.yaml > chocofi_keymap.svg
Traceback (most recent call last):
  File "/Users/Kim/.local/bin/keymap", line 8, in <module>
    sys.exit(main())
  File "/Users/Kim/.local/pipx/venvs/keymap-drawer/lib/python3.10/site-packages/keymap_drawer/__main__.py", line 147, in main
    config = Config.parse_obj(yaml.safe_load(f))
  File "pydantic/main.py", line 527, in pydantic.main.BaseModel.parse_obj
  File "pydantic/env_settings.py", line 39, in pydantic.env_settings.BaseSettings.__init__
  File "pydantic/main.py", line 342, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 5 validation errors for Config
parse_config -> qmk_keycode_map -> COMMA
  str type expected (type=type_error.str)
parse_config -> qmk_keycode_map -> DOT
  str type expected (type=type_error.str)
parse_config -> qmk_keycode_map -> SLASH
  str type expected (type=type_error.str)
parse_config -> qmk_keycode_map -> SLSH
  str type expected (type=type_error.str)
parse_config -> zmk_keycode_map -> SINGLE_QUOTE
  str type expected (type=type_error.str)

Thank you for taking the time to consider this.

Good idea, thanks! Please give the new version a shot and see if that works for you.
In the future I'll add shifted fields to the default qmk/zmk_keycode_map values and probably add a config to disable emitting them during parsing in case a user prefers not to.

Wow that was fast. Thank you.
I installed the new version, but unfortunately, it's not working:
❯ keymap -c chocofi_keymap_config.yaml parse -c 10 -z ../config/corne.keymap > chocofi_keymap.yaml && keymap -c chocofi_keymap_config.yaml draw -k crkbd/rev1 chocofi_keymap.yaml > chocofi_keymap.svg
Traceback (most recent call last):
  File "/Users/Kim/.local/bin/keymap", line 8, in <module>
    sys.exit(main())
  File "/Users/Kim/.local/pipx/venvs/keymap-drawer/lib/python3.10/site-packages/keymap_drawer/__main__.py", line 155, in main
    parse(args, config.parse_config)
  File "/Users/Kim/.local/pipx/venvs/keymap-drawer/lib/python3.10/site-packages/keymap_drawer/__main__.py", line 64, in parse
    parsed = ZmkKeymapParser(config, args.columns).parse(args.zmk_keymap)
  File "/Users/Kim/.local/pipx/venvs/keymap-drawer/lib/python3.10/site-packages/keymap_drawer/parse.py", line 43, in parse
    return self._parse(f)
  File "/Users/Kim/.local/pipx/venvs/keymap-drawer/lib/python3.10/site-packages/keymap_drawer/parse.py", line 254, in _parse
    layers = self._get_layers(parsed)
  File "/Users/Kim/.local/pipx/venvs/keymap-drawer/lib/python3.10/site-packages/keymap_drawer/parse.py", line 210, in _get_layers
    layers[layer_name] = [
  File "/Users/Kim/.local/pipx/venvs/keymap-drawer/lib/python3.10/site-packages/keymap_drawer/parse.py", line 211, in <listcomp>
    self._str_to_key("&" + stripped)
  File "/Users/Kim/.local/pipx/venvs/keymap-drawer/lib/python3.10/site-packages/keymap_drawer/parse.py", line 137, in _str_to_key
    return LayoutKey(tap=mapped(par))
  File "pydantic/main.py", line 342, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for LayoutKey
t
  str type expected (type=type_error.str)

I think keymap might still be pointing to the version that you installed through pipx since the stack trace lines don't match the current main. I think you might be able to force it via python -m keymap_drawer in the keymap-drawer folder but it would be good to figure out the path issues.

You were right, I did a forced install from github over my existing install and I guess it didn't take. I uninstalled and installed it again and now it's working.
Thank you!
But I found a new small problem... Now the macro labels also contain the shifted versions, which is probably not the intended behavior.
Here's a screenshot:

For me this not a big deal, so don't bother if this is something you also don't mind.
I don't think a config option is the way to go though. When someone defines a combo, I doubt their intention is to also use the shifted version of the combo, since that would require using a lot of contortion. They probably only have the combo for the unshifted version.
At least that's my thinking and perhaps other people don't think that way. So, I would just disable rendering the shifted text on the combos.

I think there is value in hold fields in combos, since e.g. Miryoku uses them for layer activations with two thumb keys. Since I thought that made sense I had also added shifted support, although I admit there is less justification for that. I do use my combos with shift but I probably don't need it drawn since it makes the combo box unnecessarily busy.
I'll disable adding the shifted field during parsing, so they will still be drawn if they are in the YAML but parsing won't add them if they are in zmk_binding_map etc.


Fix FORCED attribute improper quotation

The FORCED attribute is not a quoted-string. From the RFC:

The value is an enumerated-string; valid strings are YES and NO.

Coverage increased (+0.06%) to 75.421% when pulling dcf7b4a0077ba76fea73de3ddd80b26efae86705 on rkollar:fix/forced-quotation into 036100c52a87e26c62be56df85450e9c703201a6 on grafov:master.

Coverage increased (+0.06%) to 75.421% when pulling dcf7b4a0077ba76fea73de3ddd80b26efae86705 on rkollar:fix/forced-quotation into 036100c52a87e26c62be56df85450e9c703201a6 on grafov:master.

Coverage increased (+0.06%) to 75.421% when pulling dcf7b4a0077ba76fea73de3ddd80b26efae86705 on rkollar:fix/forced-quotation into 036100c52a87e26c62be56df85450e9c703201a6 on grafov:master.

Coverage increased (+0.06%) to 75.421% when pulling dcf7b4a0077ba76fea73de3ddd80b26efae86705 on rkollar:fix/forced-quotation into 036100c52a87e26c62be56df85450e9c703201a6 on grafov:master.


Element border panel

Feature Description
As an editor, I want to be able to make a border around a text, image, video, or shape element.

New section in design panel according to design in Figma
All elements (image, video, text, and shape) can have a border
a. However, only the default rectangular shape can have a border. All other shapes cannot.
If an image(video is dropped into another shape/image/video drop target, the current border of the drop target persists, regardless of the dropped element border.
The border is located on the inside of the element edge.

QA/implementation instructions

Add an image at (50,50) coordinate with a size of 300x300.
Add a 10px 50% transparent black solid border
Observe that the element is in the same position and has the same size
Observe that the actual image inside the element is still 300x300
Observe that 10px inside the image will cover the image with a 50% black border
Observe that in all aspects, the element is still located at (50,50) and is sized 300x300. This goes for snapping while dragging, alignment buttons, etc

Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance Criteria

I should be able to show or hide a border around an element
I should be able to choose the color of the border with a color picker

QA Instructions

@samitron7 I think UX is complete for the borders, but I'm looking at this Figma where you have the expanded sections next to Text.
Is that design final and ready to go to eng? Or should we be looking somewhere else?

Design is there, just realized it's linked at the top.
@barklund can you add here any open questions that you'd want addressed (in a product brief or otherwise) that are unclear from the design? I can answer here and/or add to a brief, just want to focus on what's needed.

I just confirmed with @barklund that the designed is locked for this

@o-fernandez FYI
Can images and videos have a border?
Yes. I would also extend this to bg images/video
If so, what happens when an image with a border is dropped into another image/shape with a border - which border takes precedence?
The image acting as the mask takes precedence
If not, what happens when an image is dropped into a shape with a border? Do we just remove it?
Retain the border
Is the border located inside, outside, or centered on an element edge? E.g. if a 2px border is added to an image does the image element size grow by 2px all around (so the full image is still visible), is the border covering 1px of the image all around while the element grows 1 px, or does the border cover 2px of the image all around and the element stays the same size?
Centered and I don't think we need to expose options for the other
How do bordered elements snap to guidelines? By the outside edge of the border or by the center of the border?
Outside of the edge of border

@samitron7, can you please check the above description of the desired implementation under QA/Implementation instructions? Do you agree with this definition of behavior?
@miina, please ask any follow-up questions that you may have.

@barklund I had not accounted for the opacity. Let's go with 'inside' instead of center. This will solve the split border effect when opacity is applied. If we see complaints we can change this later. Right now, I really want to keep this UI basic and simple.

@samitron7 Some more details to confirm:

The lock for the border: does this just lock the ratio (as with width/height) or does it lock all the border widths to be the same value (as with padding)?
Where in the design panel is the Border panel positioned for each element?
If an image has a border and then it's dropped into a shape that's non-rectangular -- will the border panel be just hidden and the border removed (as opposed to showing disabled fields)?

I can give my input on two of those:

If an image has a border and then it's dropped into a shape that's non-rectangular -- will the border panel be just hidden and the border removed (as opposed to showing disabled fields)?

According to the above definition, when dropping a media element into any other, the drop target border takes precedence. If the drop target cannot have a border, no border is always the result.

If the border is 'inside' the element, does it mean that it covers the content? E.g. if there is a text element with width 100, height 50 and the user assigned 25px border from each side, then this would basically cover all the content of the text, is that correct?

Hm, for text fields, border should work as padding, and be added to the text element - so on text fields, border is on the "outside", except that the text field background also extends to cover the entire border. I think. @samitron7 to confirm.
@miina, I have just updated the ticket regarding the information that the border is on the inside. However, when you have all these questions clarified

The lock for the border: does this just lock the ratio (as with width/height) or does it lock all the border widths to be the same value (as with padding)?

Similar to padding, it locks all value

Where in the design panel is the Border panel positioned for each element?

It should be below corner radius (Figma) if that option is available to the element otherwise, below Style

If an image has a border and then it's dropped into a shape that's non-rectangular -- will the border panel be just hidden and the border removed (as opposed to showing disabled fields)?

Yes, remove it to remove clutter in the design panel

Are there max values for the fields?

In most design tool, a setting a value of 100 on all corners gives you a circle. I do notice that when you scale, the border requires you to manually increase pass 100 if you want to maintain the perfect circle edges. Not sure how this would work on our system.

If the border is 'inside' the element, does it mean that it covers the content? E.g. if there is a text element with width 100, height 50 and the user assigned 25px border from each side, then this would basically cover all the content of the text, is that correct?

Let's add options for inside, center and out. These options aren't exposed till you make an intent to add borders anyways so might as well give users the full option. Then we don't have to deal with some of these weird behavior

In most design tool, a setting a value of 100 on all corners gives you a circle. I do notice that when you scale, the border requires you to manually increase pass 100 if you want to maintain the perfect circle edges. Not sure how this would work on our system.

What about the border-width, dash and gap -- do these have set max values?

Running into some issues when implementing the border panel, adding together all the features is getting quite complex.
We need to support the following features:

Different border radius on each side
Different border width on each side
Dash length and gap length
Border responsiveness (border width is less on smaller screens and wider on larger screens -- the width related to the element is kept the same -- e.g. 5% of the element width)

There are different ways how to add the border to element but no one option supports all the features. Here is an overview of what the different approaches support:

Feature
Using the default CSS border
Using SVG
Using background-image

Supports dashes and gaps
NO, only the default dashed border
YES
YES

Support different border-width on each side
YES
NO
YES

Responsiveness
NO, the border would be in pixels
YES
YES

Border-radius
YES
YES
NO

Here is an example of how a dashed and rounded border could look like using SVG. However, it's not possible to assign different border width in this case and it's not clear how it could look like either since a dash can be on two sides at the same time:

An example of how a dashed border looks like with all border widths differing on each side, using background-image (does not work together with border-radius):

An example of using just the default border which is not responsive:
Editor (the border is 10px):

Front-end (the border is still 10px but since the image is larger, the border seems thinner):

Default dashed border (without the user being able to assign the dash/gap size):

@samitron7 / @o-fernandez Is there a way how to make this a bit simpler or restricting using features together that aren't supported together by any of the approaches.
Thoughts?

@samitron7 to me, I'd prioritize as P0 the following and ship that when ready:

P0: simple border with same width on all sides
P0: border radius support (on non-bg elements)

The rest, I can live without (e.g., multiple border widths, dashes and gaps, etc.)
Thoughts?

Good call out Miina. +1 to just using CSS borders.
We could set border-width in em but I don't think responsiveness is actually desirable in terms of actual design intent.

Thanks for the input, sounds good, reworked the PR to use CSS border only, we can follow up separately for further improvements.

+1 to css border and no intent for responsiveness.

Verified in QA
Tested according to 4895


cast between incompatible function types

Linux-4.14.74, gcc-8.2, native build:
CC [M]  /home/def/omap5-sgx-ddk-linux/eurasia_km/eurasiacon/binary2_omap_linux_release/target/kbuild/services4/srvkm/env/linux/osfunc.o In file included from ./include/linux/workqueue.h:9,                  from ./include/linux/srcu.h:34,                  from ./include/linux/notifier.h:16,                  from ./include/linux/memory_hotplug.h:7,                  from ./include/linux/mmzone.h:781,                  from ./include/linux/gfp.h:6,                  from ./include/linux/mm.h:10,                  from ./arch/arm/include/asm/cacheflush.h:13,                  from /home/def/omap5-sgx-ddk-linux/eurasia_km/eurasiacon/binary2_omap_linux_release/target/kbuild/services4/srvkm/env/linux/osfunc.c:55: ./include/linux/timer.h: In function ‘timer_setup’: ./include/linux/timer.h:179:23: error: cast between incompatible function types from ‘void (*)(struct timer_list *)’ to ‘void (*)(long unsigned int)’ [-Werror=cast-function-type]   __setup_timer(timer, (TIMER_FUNC_TYPE)callback,                        ^ ./include/linux/timer.h:144:25: note: in definition of macro ‘__setup_timer’    (_timer)->function = (_fn);    \                          ^~~ /home/def/omap5-sgx-ddk-linux/eurasia_km/eurasiacon/binary2_omap_linux_release/target/kbuild/services4/srvkm/env/linux/osfunc.c: In function ‘OSEventObjectCreateKM’: /home/def/omap5-sgx-ddk-linux/eurasia_km/eurasiacon/binary2_omap_linux_release/target/kbuild/services4/srvkm/env/linux/osfunc.c:3051:13: error: ‘strncpy’ specified bound 50 equals destination size [-Werror=stringop-truncation]              strncpy(psEventObject->szName, pszName, EVENTOBJNAME_MAXLENGTH);              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[3]: *** [scripts/Makefile.build:329: /home/def/omap5-sgx-ddk-linux/eurasia_km/eurasiacon/binary2_omap_linux_release/target/kbuild/services4/srvkm/env/linux/osfunc.o] Error 1 make[2]: *** [Makefile:1527: _module_/home/def/omap5-sgx-ddk-linux/eurasia_km/eurasiacon/binary2_omap_linux_release/target/kbuild] Error 2 make[1]: *** [eurasiacon/build/linux2/kbuild/kbuild.mk:56: kbuild] Error 2 make: *** [../config/core.mk:679: build] Error 2

Builds fine for me with v4.14.71, cross compiling with gcc-linaro-7.2.1-2017.11-x86_64_armv8l-linux-gnueabihf.
I'll close this as this issue is not about dri3wsegl.


Update definitions.py correcting the Flowrate Mode Topic

corrected the topic name for flowrate mode
Fix #195

Thanks for the fix! I've submitted a patch on heishamon repo to fix the documentation since it was there where I got the wrong capitalization


#1612 prevent applying scientific notation and rounding to big numbers

prevent applying scientific notation and rounding to big numbers by ObjectMapper

Thanks!


delete incorrect "mdi:brightness-3"

delete incorrect "mdi:brightness-3" in final
def icon(self):
        """Icon to use in the frontend, if any."""
        return MOON_ICONS.get(self.state, "mdi:brightness-3")

which still shows in the sensors attributes
Breaking Change:

Description:
Related issue (if applicable): fixes #
Pull request with documentation for home-assistant.io (if applicable): home-assistant/home-assistant.io#<home-assistant.io PR number goes here>
Example entry for configuration.yaml (if applicable):

Checklist:

[ ] The code change is tested and works locally.
[ ] Local tests pass with tox. Your PR cannot be merged unless tests pass
[ ] There is no commented out code in this PR.
[ ] I have followed the development checklist

If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated in home-assistant.io

If the code communicates with devices, web services, or third-party tools:

[ ] The manifest file has all fields filled out correctly. Update and include derived files by running python3 -m script.hassfest.
[ ] New or updated dependencies have been added to requirements_all.txt by running python3 -m script.gen_requirements_all.
[ ] Untested files have been added to .coveragerc.

If the code does not interact with devices:

[ ] Tests have been added to verify that the new code works.

while the icon is correct:

the developer-tools/state still shows:


Cherry-pick PR #7039 into release-1.1: Add constructor and getters for GeneralMetadataV0 as inner fields are private

Justification and breaking nature (who does it affect? validators, full nodes, tooling, operators, AOS, etc.)
Without this change, rust clients are unable to create a GeneralMetadataV0 struct, which is critical for subaddressing within transactions. This should not be a breaking change (only adding a constructor).

Comprehensive test results that demonstrate the fix working and not breaking existing workflows.
Added unit test on constructor to verify its functionality and existing tests were not affected.

Why we must have it for V1 launch.
Enable rust clients who vendor this code to create GeneralMetadataV0

What workarounds and alternative we have if we do not push the PR.
Rust clients can fork diem's release branch and edit this file themselves, or use master branch but risk future breaking changes

Motivation
I was following along with the DIP-4 source snippets and realized that the samples as-written do not work because the inner fields for the metadata structs are private. From discussion with @sblackshear and @n4ss, we agreed that a constructor for this data (and perhaps we should also consider the same for Travel Rule metadata, etc) would be useful. An alternative that I'm fine with is to make the fields pub, but I defer to the maintainers if they have a preference :)
Have you read the Contributing Guidelines on pull requests?
✅
Test Plan
Added simple unit test, and ran:
cargo x lint && cargo xfmt && cargo xclippy --all-targets

cc @riyazdf

The pick is rejected; please see the review note posted on Workplace.

The pick is rejected; please see the review note posted on Workplace.


[23.11] python311Packages.aiohttp: add patch for CVE-2024-27306

Description of changes
https://nvd.nist.gov/vuln/detail/CVE-2024-27306
Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

@ofborg eval


Fully port Depth and Size passes to Rust

Summary
This has a bit of a click-bait title since they're techically already ported (the calls to DAGCircuit::depth and DAGCircuit::size made by the Python passes are already in Rust). But, this PR avoids an isinstance call that was being done for every node in the DAG on calls to these methods when the recurse parameter was specified as true, which should resolve the performance issues we were seeing with these passes.
Details
Resolves #12272, #12273

Pull Request Test Coverage Report for Build<PHONE_NUMBER>5
Details

25 of 29 (86.21%)  changed or added relevant lines in 1 file are covered.
39 unchanged lines in 3 files lost coverage.
Overall coverage decreased (-0.04%) to 89.176%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

crates/circuit/src/dag_circuit.rs
25
29
86.21%

Files with Coverage Reduction
New Missed Lines
%

crates/qasm2/src/lex.rs
5
92.23%

crates/circuit/src/dag_circuit.rs
16
88.89%

crates/qasm2/src/parse.rs
18
96.69%

Totals

Change from base Build<PHONE_NUMBER>6:
-0.04%

Covered Lines:
71618

Relevant Lines:
80311

💛  - Coveralls


Question: what TLS protocol version used by ghostunnel by default?

Hi,
Question: what TLS protocol version used by ghostunnel by default?
TLS 1.2?
Is it possible to configure it?
I was able to find only the cipher-suites setting to control set of cipher suite.

Ghostunnel sets a minimum TLS version of 1.2.  1.3 is also supported (though there are some debug flags in Go you can use to disable 1.3 support if needed, for example for interop with Java 11's buggy implementation).
Lower versions of TLS are not supported, and there is no option to enable them.

Thanks!
TLS version of 1.2 is fine!
It is minimal requirement for us :)


Static linux builds

when trying to get BMAI running in docker and in lambda I found it really nice to have a static linux build. some people in the button men online community would also like to tinker with BMAI without having to compile.
I added this line to create static builds that work for my linux needs. When I added -static to ALL OSes the Mac build failed and the windows build did not change size. I would like to know what you think @pappde is this not too intrusive?

if you do accept be sure to SQUASH so that all my random commits dont make it to main


Support schedule configuration like CronJob

What you want to add
Add schedule node count schedule configuration like this
spec:
  scaleTargetRef:
    projectId: your-gcp-project-id
    instanceId: your-spanner-instance-id
  minNodes: 1
  maxNodes: 4
  cron:
    schedule: "*/1 * * * *"
    period: 1H
    minNodes: 4

Why this is needed
We sometimes want to increase node num before starting a batch job.

Precedents:

Google Cloud Game Server Service

https://cloud.google.com/game-servers/docs/how-to/configuring-cluster-scaling-behavior?hl=en#creating_multiple_scaling_schedules
It is not Kubernetes CRD but it is enhancement of Agones controller and based on Kubernetes resource model.
It supports multiple default/fixed(startTime-endTime)/recurring(cron based) settings.

https://github.com/d-kuro/scheduled-pod-autoscaler

It supports multiple settings via separated custom resource(ScheduledPodAutoscaler/Schedule)
Article: https://zenn.dev/d_kuro/articles/bb75adeba67d60

Currently, SpannerAutoscaler CRD has two responsibility.

Scale

scale compute capacity of Cloud Spanner instance from concrete value(PU/node count)
analogous to ReplicaSet/Deployment

Autoscaler

compute and modify current desired scale within the scale config
analogous to HPA

We want to add new functionality.

Schedule

individual schedule

time spec

fixed(start time/end time or duration)
recurring(cron with duration)
(We want TZ support)

scale constraints within the period

analogous to Schedule of https://github.com/d-kuro/scheduled-pod-autoscaler
If it is separated CRD, non IoC-style on-demand schedules may be possible.

Should we do garbage collection?
end time or duration deterministic is not deterministic so on-demand "done" is needed.

delete the resource?
patch some field?

end time or some flags

How to link the Autoscaler and the Schedule?

Use another CRD

analogous to ScheduledPodAutoscaler of https://github.com/d-kuro/scheduled-pod-autoscaler

Write reference

(For reference) Relationships in d-kuro/scheduled-pod-autoscaler

Schedule .spec.scaleTargetRefreferences to ScheduledPodAutoscaler
ScheduledPodAutoscaler .spec.horizontalPodAutoscalerSpec.scaleTargetRef references to HorizontalPodAutoscaler
HorizontalPodAutoscaler is updated by the autoscaler

schema of draft design in CUE.
import "time"

#ScheduledSpannerAutoscaler: {
	apiVersion: "spanner.mercari.com/v1alpha1"
	kind:       "ScheduledSpannerAutoscaler"
	metadata: {
		name:      string
		namespace: string
	}
	spec: {
		// SpannerAutoscaler without {min,max}{Nodes,ProcessingUnits}
		spannerAutoscalerTemplate: {
			scaleTargetRef: {
				projectId:  string
				instanceId: string
			}
			{
				serviceAccountSecretRef: {
					namespace: string
					name:      string
					key:       string
				}
			} | {
				impersonateConfig: targetServiceAccount: string
			}
			maxScaleDownNodes: int
			targetCPUUtilization: {
				highPriority: int
			}
		}
		defaultScaleConfig: #ScaleConfig
	}
}

#Schedule: {
	apiVersion: "spanner.mercari.com/v1alpha1"
	kind:       "Schedule"
	metadata: {
		name:      string
		namespace: string
	}
	spec: {
		ScheduledSpannerAutoscalerRef: {
			name: string
		}
		scaleConfig: #ScaleConfig
		{
			manual: {
				// RFC3339
				startTime: time.Time
				// RFC3339
				endTime?: time.Time
			}
		} | {
			cron: {
				// in github.com/robfig/cron compatible format
				spec:      string
				duration:  time.Duration
				timeZone?: string | *"UTC"
			}
		}
	}
}

#ScaleConfig: {
	// Only supports processing units
	min: int
	max: int
}


Create a view for ambassadors

Is your feature request related to a problem? Please describe.

Currently, we can't see the added student ambassadors so we need to view them just like viewing the universities.

Describe the solution you'd like

Create a view for ambassadors under multiverse

I'm working on this


Unable to run it on colab

I’m using a colab
Error loading script: test_persistent.py
Traceback (most recent call last):
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/scripts.py", line 382, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_loading.py", line 10, in load_module
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/animatediff-cli-prompt-travel/scripts/test_persistent.py", line 3, in
from animatediff import get_dir
ModuleNotFoundError: No module named 'animatediff'

this is not webui extension

Oh shoot, ok.thanks for response.
Is it possible to download it on colab ? What’s the method ?

I haven't tried it though, I found a colab that someone made.
I heard this one works.
https://colab.research.google.com/drive/1QVxBjAamxOIAAlSohQklZltRPx8WsxEN


Filename Date

Hi, thank you so much for this export possibly.
Could you have a look at the name of the GPX files. It seems they are now on Unix timestamp format. For example:<PHONE_NUMBER>881.gpx
However in the screenshots they are in a readable Date/Time format.
How do I achieve that, like in the screenshot?
Thanks.

Yep, I changed the time format...
Because of its easy for running_page but because of  DCMA it has been deleted.
you can easily write a script for change all the name.
like
import os

file_list = os.listdir('file_dir')
for f in file_list:
    change_name(f)


ModuleNotFoundError: No module named 'agents.SOP'

cd example
python run.py --agent Multi_Agent/debate/config.json
File "run.py", line 3, in
from agents.SOP import SOP
ModuleNotFoundError: No module named 'agents.SOP'

hi @serendipity-t , did you pip our latest version package?
you can refer to https://github.com/aiwaves-cn/agents#-installation.


barrier=cycle_barrier is possible, but option is not shown in iD editor dropdown options

When editing a barrier, the options shown in the dropdown menu do not match the complete list shown in the OSM wiki key. It's not clear if this is intentional, so an issue is being submitted.

The options listed in the dropdown is randomly generated based on the most common values used for that tag.

I think the dropdown is based on the most common values (with over 0.01% usage) found here: https://taginfo.openstreetmap.org/keys/barrier#values
Seems like some values are removed depending on whether or not it is a node or way you are editing. For example, fence is not shown for nodes.
If that doesn't answer your issue, then could you list what is shown versus what you expect to be shown?

@boothym Hmm. Cycle_barrier is the one I was looking for and according to the linked website, it accounts for 0.59% of barrier values, but it wasn't shown in the drop-down options. Any ideas?

It seems like that is only shown when editing a node, not a way/area - there's an element column in the wiki indicating this for each value.

@boothym That might be the cause. I'll have to keep an eye out for this next time to see if I was using a node or way. I think this can be closed for now.


Vickel: Blacklist zeep.ly

Vickel requests the blacklist of the website zeep\.ly. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

zeep\.ly has been seen in 6 true positives, 0 false positives, and 0 NAAs.

Approved by Jeff Schaller in Charcoal HQ


fix inconsistent trace output

@jwiegley not sure why tests are failing

Do the tests run locally?

The output fix propagated into the remote test. Test passes now.


Multicast class B timing issue on ping slot calculation

In chirpstack v4.4.3, there appears to be a problem with estimating the opening of ping slots for multicast class B downlinks.
In the image below, you can see the consumption of my device at the top, with each peak corresponding to the opening of an Rx window.
At the bottom, you can see the downlinks sent by my gateway. The leftmost peak corresponds to the beacon, and the rightmost peak is a multicast class B downlink. We can observe that the downlink does not align with the Rx window opening on the modem side.

To verify whether the error originates from my device or the Network Server (NS), I took the liberty to calculate the ping slot offset:
Key: 0x00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Beacon Time: 0x80 BB F3 51
Group Addr: 0xE2 18 84 C7
Rand = aes_128_encrypt(00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00, 80 BB F3 51 E2 18 84 C7 00 00 00 00 00 00 00 00 00) = 0xBE 9D D6 90 C9 D7 90 93 C1 59 3D 80 B8 DA 3E 57
PingOffset = (Rand[0] + Rand[1]*256) % PingPeriod = (190 + 157*256) % 128 = 62
First ping slot opening since starts of beacon = PingOffset * SlotLen + BeaconReserved = 3.98s

These calculations appear to confirm that my device is opening its ping slots at the correct timing since the first ping slot opening happens at exactly 3.98s after the beacon start.
I did the same work for unicast class B, and here I have no issues, and the calculations appear to be the same for both the device and the Network Server (NS).

Could you run the following DB query for me and share the output?
select mc_addr, class_b_ping_slot_period from multicast_group;

Hello Orne,
I get this:
chirpstack=# select mc_addr, class_b_ping_slot_period from multicast_group;

   mc_addr   | class_b_ping_slot_period
------------ +--------------------------
 \x084a35df  |                        4

The mc_addr is not the same than in my previous message, because this is part of a testing campaign, where the multicast group is dynamically created during the test execution (and then deleted afterward).

I think I have found your issue. I assume you are using the API. There is a difference between the device-profile value and multicast-group periodicity option values. I will align them (with a backwards compatibility option):
https://github.com/chirpstack/chirpstack/blob/master/ui/src/views/multicast-groups/MulticastGroupForm.tsx#L143


Update infisical-secrets-check.yml

Summary by CodeRabbit

Chores

Updated the version of the github-file-reader-action-v2 used in the workflow for enhanced stability and performance.

:white_check_mark: Build POC-dotnet-Asterisk 1.0.356 completed (commit https://github.com/GuilhermeStracini/POC-dotnet-Asterisk/commit/2b680a0086 by @guibranco)


Poorly written and extremely confusing

What a poorly written article. The workflow diagram is blurry and zooming in makes it worse. The section under User sign-in frequency and device identities makes absolutely no sense whatsover and is extremely confusing. After reading it over 3x I still can't make sense of it. It could not have been written any worse. Are these tech articles written by the lowest bidder?

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 9561a367-20d8-62e9-57e5-694bab4c0878
Version Independent ID: a7c757e0-052b-fc42-70c5-030081baa573
Content: Configure authentication session management - Microsoft Entra ID
Content Source: docs/identity/conditional-access/howto-conditional-access-session-lifetime.md
Service: active-directory
Sub-service: conditional-access
GitHub Login: @MicrosoftGuyJFlo
Microsoft Alias: joflore

@ltjones12
Thanks for your feedback! We will investigate and update as appropriate.

@MicrosoftGuyJFlo
Can you please check and add your comments on this doc update request as applicable.


Not compatible with v4.1 version of selenium and v115 version of Chrome

This library is not compatible with v4.1 version of selenium and v115 version of Chrome. I'm getting attached error while running the below script.
PATH = "./chromedriver"
    URL = "https://github.com/RoastSea8/chromedriver-autoinstaller"

    chromedriver_autoinstall.install()
    # os.chmod('./chromedriver', 0o755) # MacOS only
    driver = webdriver.Chrome(PATH)
    driver.get(URL)
    time.sleep(1000)

@nitinkumar30 The issue is fixed. The README example has been updated. You can update the pip package to get the recent changes.

@nitinkumar30 Wanted to follow up. I've released a new version of the package to fix another issue, so you can update your pip package to get the fixes. Does the package work for you?


Mappings

Please use the following questions as a guideline to help me answer
your issue/question without further inquiry. Thank you.
Which version of Elastic are you using?
[ ] elastic.v2 (for Elasticsearch 1.x)
[ ] elastic.v3 (for Elasticsearch 2.x)
[x ] elastic.v5 (for Elasticsearch 5.x)
Please describe the expected behavior
when I set a mapping it should stay.
Please describe the actual behavior
I am not sure if it is a local elasticsearch setting or this module.
But I created a mapping with a field type "date" format : "epoch_second" then set time.Time.Unix() to that field. Then after submission elastic search changes it to type long.
Any steps to reproduce the behavior?

Can you please post the complete mapping so that I can reproduce? Thanks.

Am 06.10.2016 um 00:03 schrieb Tory Adams<EMAIL_ADDRESS>Please use the following questions as a guideline to help me answer
your issue/question without further inquiry. Thank you.
Which version of Elastic are you using?
[ ] elastic.v2 (for Elasticsearch 1.x)
[ ] elastic.v3 (for Elasticsearch 2.x)
[x ] elastic.v5 (for Elasticsearch 5.x)
Please describe the expected behavior
when I set a mapping it should stay.
Please describe the actual behavior
I am not sure if it is a local elasticsearch setting or this module.
But I created a mapping with a field type "date" format : "epoch_second" then set time.Time.Unix() to that field. Then after submission elastic search changes it to type long.
Any steps to reproduce the behavior?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Friendly ping.

https://gist.github.com/BafFlynN/1acd6b76756cf782507c4518be3becf8
@olivere  sorry about that delay.

I don't see a problem anywhere. Here's a test program.
There was a missing comma in your mapping in line 18 though.
Can you check again.

I actually found the issue being new to ES I messed up my mapping. I was pushing a mapping with an index name in the mapping to a url with the index name in it. I was ending up with two mappings. Sorry that was my misunderstanding of how the mappings in ES worked.


Warn ignored keep attrs

[x] Part of #4513
[x] Tests added
[x] Passes pre-commit run --all-files
[x] User visible changes (including notable bug fixes) are documented in whats-new.rst

This PR warns when passing  keep_attrs to resample(..., keep_attrs=True) and rolling_exp(..., keep_attrs=True) as they have no effect (rightfully). Also removes keep_attrs from the docstring of resample.

Thanks @mathause


Custom colors

Hi, thanks for writing this plugin!  I was wondering if you had any plans on adding the ability to customize the coloring?

In fact, you already can customize colors and symbols :)
If you run gitstatus -printcfg you'll get the current config (the default one), save this to a new file.
$ gitstatus -printcfg > gitstatus.yml
$ cat gitstatus.yml
tmux:
  symbols:
    branch: '⎇ '
    hashprefix: ':'
    ahead: ↑·
    behind: ↓·
    staged: ●
    conflict: '✖ '
    modified: '✚ '
    untracked: …
    stashed: '⚑ '
    clean: ✔
  styles:
    state: '#[fg=red,bold]'
    branch: '#[fg=white,bold]'
    remote: '#[fg=cyan]'
    staged: '#[fg=green,bold]'
    conflict: '#[fg=red,bold]'
    modified: '#[fg=red,bold]'
    untracked: '#[fg=magenta,bold]'
    stashed: '#[fg=cyan,bold]'
    clean: '#[fg=green,bold]'

Edit the styles section with tmux style strings, for more info on the format, look up message-command-style in man tmux.
I admit that this tool needs a README :D

Ah I see now and then add the -cfg /path/to/gitstatus.yml to the status config in tmux. Thanks!

Yup exactly that's it.
By the way you should switch to github.com/arl/gitmux as gitstatus is in fact a library.
Gitmux has binary releases for all supported platforms and an actual documentation ;-)


Update Posts “a-post-with-code-samples”

Automatically generated by Netlify CMS

👷 Deploy Preview for strong-beijinho-c4d917 processing.

Name
Link

🔨 Latest commit
b80d31ffcc069048149259c474490e72afa62a1c

🔍 Latest deploy log
https://app.netlify.com/sites/strong-beijinho-c4d917/deploys/65eaaa29c9f4f70009393c76


[WIP] Improve conversion script

A much needed overhaul of the PY → ONNX conversion script. I've still got many updates on local branches, which I will slowly integrate into this PR. Opening it up early for testing and comments from the community.
TODOs:

[ ] Separate conversion and quantization
[ ] Improve handling of models > 2GB
[ ] Automatic evaluation and quantization setting selection
[ ] Improve docs
[ ] --push_to_hub functionality
[ ] Create HF space

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.