server versions: automatic reboot on security advisories for new package versions

i feel like an automatic reboot is a terrible idea for a server os?

i feel like an automatic reboot is a terrible idea for a server os?

I was imagining multiple hosts behind a load balancer, but you're right that this is too opinionated.


feat: Strings with Unicode Escapes

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

-7 of 45 (84.44%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.02%) to 89.472%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/ast/value.rs
0
1
0.0%

src/parser.rs
1
4
25.0%

src/tokenizer.rs
37
40
92.5%

Totals

Change from base Build<PHONE_NUMBER>:
-0.02%

Covered Lines:
8983

Relevant Lines:
10040

💛  - Coveralls


fix: handle Drupal 10.1 asset aggregation URLs.

The Issue
Drupal 10.1 asset aggregation uses a similar mechanism to image derivatives/image styles. These directories don't fall through to PHP in the default ddev nginx config which leads to 404s
How This PR Solves The Issue
Allow more directories
Manual Testing Instructions
Install Drupal 10.1 and enable js/css aggregation
Automated Testing Overview
Just a default config change, would need to install Drupal to really test that it fixes what it says it does.
Related Issue Link(s)
Release/Deployment Notes

Thanks for the contribution!

You say

Install Drupal 10.1 and enable js/css aggregation

But how do you tell whether it's working?
We do in fact install Drupal10 in tests, in TestDdevFullSiteSetup. I don't know if there's a way to validate this properly or not?

I realised this already works... was a different local issue causing it not to. There is a wildcard rule further down this file that matches any .js or .css file anyway. However, it might be worth making the change regardless since it matches the Drupal.org ngnix recommendation and updates the docs a bit anyway?
Also realised we already discussed this a bit in https://github.com/ddev/ddev/issues/4972

Since it already works, and has already been discussed and solved, I'm going to go ahead and close this for now, but happy to continue the conversation, and I so much appreciate you looking out for things like this.
Happy to reopen if you think that's best.


doc/stdenv: document meson variables

Motivation for this change
Before:

After:

Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

:sparkling_heart: For @grahamc for helping me in IRC really quickly.

Oh, there's mesonBuildType :-)  I've been doing this via the usual mesonFlags, though I suppose it can be slightly confusing when the same option is supplied multiple times.

uhh, auto formatting is soo annoying.

backported in c8c01e2a9566008055a6374e5795f90c3b090898
without auto formatting.


VANotify UI Log Out

Value Statement
As VANotify user
I want to logout from the UI
So that security measures are observed
Acceptance Criteria
GIVEN a user is logged in
THEN they open the menu on the top right of the page
WHEN they click logout
THEN they are logged out and their user information is no longer visible
AND the login with Github button is visible
Checklist

[ ] Checklist item here

Assumptions

Clear local storage and cookie in browser
Can't invalidate tokens

Additional Info/Resources

Out of Scope

Open Questions

@toddstanich to attach design


Error: Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server"

With Next13, when trying to follow https://ui.shadcn.com/docs/components/data-table#cell-formatting, the developer gets this error.
Error: Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".
  {accessorKey: "amount", header: function, cell: ...}

It seems shad-cn may not play nicely with NextJS13.

I tried making columns.txt (from the tutorial) a server component, passing down header and cell as async functions, forcing page.tsx to become a client component, results in a spin-off error

error TypeError: columnDefs.map is not a function
    at DataTable (./src/components/ui/table.tsx:116:37)

I tried making an API GET route that serves columns as data, but the header/cell functions are lost due to serialization. Sad panda.

Same here. :cry:

Ensure that you include the directive "use client" at the top of your columns file. I encountered the same error, but it was resolved after adding it.

Ensure that you include the directive "use client" at the top of your columns file. I encountered the same error, but it was resolved after adding it.

this worked for me!

This is very limiting. Is there no way to modify the cell on server-side?

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.


feat(structure): create initial prefab and user guides

The structure of the repository has been created with all the required
files for the package, the prefab and the installation guide.

:tada: This PR is included in version 1.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
v1.0.0
GitHub release

Your semantic-release bot :package::rocket:


feat: add Dependabot

Why
To manage the dependencies.
It is hard to track all the dependencies' updates and update this project by ourselves. Let's automate it 🚀
Ref

Keep all your packages up to date with Dependabot, GitHub / Blog

Thanks, I'll merge this 🚀 :rock


In a new version we have crash related with avformat-59.dll

Describe the bug
In a new version we have crash related with avformat-59.dll. Crash after starting UE client/server
Expected Behavior
no crash
Minimalistic code (recommended)
Specifications

OS: Windows 10
Version:

1.2.4

Do you have the dll in the location from which it is trying to be loaded?

Cannot reproduce locally with latest plugin. Dll is found in the required location in package.


Use auto savepoint for transactions

Port of original PR to main database_cleaner repo: https://github.com/DatabaseCleaner/database_cleaner/pull/577
Adding auto_savepoint: true to transaction call makes inner transactions to use savepoint, therefore they can be rolled back independently.

Additionally, I updated specs shared examples references as there were recently changed in database_cleaner main repo.

Hi @barthez ! Thanks for porting this over, and thank you for updating the tests to work with the changes on database_cleaner-core master!
This all looks good, and if its possible, I'd like to see one more thing: I'd love to see a test that fails before auto_savepoint: true is added, and passes afterwards. Hopefully something involving the nested transactions described in the original PR? Do you think this is doable?

@botandrose Yeah, sure, I will try to figure something out.

@botandrose I went a little bit further. I added docker-compose.yml with test databases setup as I don't have mysql installed locally and postgres wasn't working with defaults as well. I found it easier to just create docker-compose file. I believe it might be useful for other adapter gems as well, don't now how to share it without too much of copy-pasting.

@etagwerker Would you mind releasing a new version? Thanks!


fix: Retry status updates

Status updates should retry if the error is recoverable, especially if it's just a ResourceVersion conflict, as long as the generation hasn't changed. This should reduce unnecessary reconcile loops and API calls in the reconciler-manager and reconciler finalizer.

/retest


RFC: End to End Functional testing

We might want to add End to End functional tests in the future. (Possibly using cypress so that we can run it in CICD? )

Although I think for ease of implementation & testing, it'll be better to split this up into individual tests. I'll try and make a start on something soon enough.


Error: The getter 'children' isn't defined for the class 'InlineSpan'. when running Flutter run

I got this error when running flutter run --verbose
What did I miss here? I ran on Macbook.
./../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/builder.dart:326:49: Error: The getter 'children' isn't defined for the class
'InlineSpan'.
[        ]  - 'InlineSpan' is from 'package:flutter/src/painting/inline_span.dart' ('../../flutter/packages/flutter/lib/src/painting/inline_span.dart').
[        ] Try correcting the name to the name of an existing getter, or defining a getter or field named 'children'.
[        ]         List<TextSpan> children = previous.text.children != null
[        ]                                                 ^^^^^^^^

I had the same problem. I fixed it by replacing old flutter_markdown: ^0.2.0 by new flutter_markdown: ^0.6.1 in the pubspec.yaml file.
Then in ./lib/article/article_widget.dart file replace old blockquotePadding: 20.0 by new blockquotePadding: EdgeInsets.all (20.0) (line 92)
I build success on Macbook M1.


Extra space before comma in address column

Noticed during webinar.  There is an additional space before the comma after the city name.
Example
SELECT address
    FROM osm_co.shop_point
    WHERE address <> ''
;

Example
NN 9th Street, Greeley , CO

Moved this field calculation to helpers.lua. Fixed this bug and made other improvements at the same time.


terraform shell should drop you into the correct working directory

Describe the Bug
The command atmos terraform shell launches a shell in the component base directory, not the directory of the selected component, but terraform commands only work when the current directory is the directory of the component.
Expected Behavior
atmos terraform shell <component> should launch a shell in the directory of the component, specifically .component_info.terraform_config.path as determined by atmos describe component <component>.
Steps to Reproduce
Run atmos terraform shell <component> -s <stack> for any valid stack and component, and note that your current working directory is Atmos-configured components.terraform.base_path and not the component's Terraform directory
Screenshots
No response
Environment

Atmos v1.63.0
Geodesic 2.9.1-debian

Additional Context
The premise of atmos terraform shell is that it prepares you to use unadorned Terraform commands at the command line that operate on the designated component with the designated stack configuration. Without being in the proper working directory, terraform does not work and the premise is not fulfilled.

@nuru this is not the behavior I experience, I DO get dropped into the component's directory, not my parent directory of all components.
config:
# See full configuration options @ https://github.com/cloudposse/atmos/blob/master/examples/complete/atmos.yaml

base_path: ""

components:
  terraform:
    base_path: "components"
    auto_generate_backend_file: true

stacks:
  base_path: "stacks"
  included_paths:
    - "org/**/*"
  name_pattern: "{stage}"
  excluded_paths:
    - "**/_*.yaml" # Do not consider any file beginning with "_" as a stack file

logs:
  verbose: true
  colors: true

commands:
  - name: up
    description: Run terraform `init -upgrade` for a given component instance
    arguments:
      - name: component
        description: Name of the component
    flags:
      - name: stack
        shorthand: s
        description: Name of the stack
        required: true
    steps:
      - atmos terraform init {{ .Arguments.component }} -s {{ .Flags.stack }} -upgrade

My apologies. This was caused by a customization I have configured.


Fix the path for the node-update-controller

This will fix the path for the node-update-controller command.
depends on https://github.com/openshift/ibm-powervs-block-csi-driver/pull/14

/lgtm


limitiations - global vnet peering - internal mode

Please check if the last bullet under 'Limitations' is still valid ->
"Connectivity from a resource in a globally peered VNET in another region to API Management service in Internal mode will not work due to platform limitation. For more information, see Resources in one virtual network cannot communicate with Azure internal load balancer in peered virtual network"
Recently the following was announced;  https://azure.microsoft.com/en-us/updates/global-vnet-peering-now-supports-standard-load-balancer/
With that this limitation seems to be removed.

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

ID: 8d854b3c-f9f9-7f6a-f889-e19acac2961c
Version Independent ID: ed544e54-d24b-2f37-05b6-8b60eacd2026
Content: How to use Azure API Management with virtual networks
Content Source: articles/api-management/api-management-using-with-vnet.md
Service: api-management
GitHub Login: @vlvinogr
Microsoft Alias: apimpm

@dvherk Thanks for your query! We will investigate and get back to you on this.

@vladvino Can you please confirm this?

@solankisamir please comment.

We use PAAS V1 - CloudService and the default Basic Load Balancer that comes with it. Standard Load Balancer is ResourceManager resource and cannot be integrated with CloudService. So the limitation stands until we replat to the new ResourceManager model.

@dvherk Since there is no doc update required at the moment, we will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


Adopt latest proxy framework

Pull Request Test Coverage Report for Build 159

0 of 6 (0.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.8%) to 89.728%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

main.go
0
6
0.0%

Totals

Change from base Build 154:
-0.8%

Covered Lines:
297

Relevant Lines:
331

💛  - Coveralls

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: KirilKabakchiev:x: pankratorYou have signed the CLA already but the status is still pending? Let us recheck it.


Can this frame take 10fps and I want  see you raspimjpeg.c ?

I have two question:
1、I want use this frame's timelapse to take picture 10fps, but it only can 2fps.
2、I want change the preview resolution, but the highest limit is 1024 (Width (128...1024)),I want can't find the pv command from RaspiMJPEG.c https://github.com/silvanmelchior/userland/blob/master/host_applications/linux/apps/raspicam/RaspiMJPEG.c
so, I think you have owne RaspiMJPEG.c ， I want it
my english is not very well, hope you can understand，Expect your reply，  thank you！

Hi, do you mean this?  https://github.com/roberttidey/userland/blob/master/host_applications/linux/apps/raspicam/RaspiMJPEG.c

Time lapse uses the still image facility and it is difficult to take these at a high rate. I would suggest using the video facility set to 10 fps.
The preview width is limited to the video width.
The source for the raspimjeg executable is given in a link in the wiki. It is NOT the silvanmelchior github; that is a very old original one.
https://github.com/roberttidey/userland/tree/master/host_applications/linux/apps/raspicam
The files of interest start with RaspiM


Add object tree view support for logstore.

Codecov Report

Merging #120 (ee568a6) into stable/v3.x (5e40322) will increase coverage by 0.14%.
The diff coverage is 51.85%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@               Coverage Diff               @@
##           stable/v3.x     #120      +/-   ##
===============================================
+ Coverage        45.72%   45.87%   +0.14%
===============================================
  Files              126      126
  Lines            16147    16117      -30
  Branches          1910     1902       -8
===============================================
+ Hits              7384     7394      +10
+ Misses            8056     8017      -39
+ Partials           707      706       -1

Impacted Files
Coverage Δ

src/homeblks/homeblks_http_server.cpp
20.00% <ø> (+1.67%)
:arrow_up:

src/homelogstore/log_store.cpp
38.02% <25.00%> (-0.66%)
:arrow_down:

src/homelogstore/log_store_family.cpp
46.19% <66.66%> (+2.84%)
:arrow_up:

src/homelogstore/log_store_mgr.cpp
68.04% <75.00%> (+2.73%)
:arrow_up:

src/homelogstore/log_store.hpp
75.75% <100.00%> (+0.75%)
:arrow_up:

src/homelogstore/log_store_family.hpp
75.00% <100.00%> (+8.33%)
:arrow_up:

... and 4 files with indirect coverage changes


Mixing colours

I've noticed that when overlaying colours with alpha < 1.0, the result depends on the order in which the colours are added.  For example, green on red produces a dark green, whereas red on green gives brown.
The attached bit of code shows what I mean: it shows that rgba(1, 0, 0, 0.5) covered by rgba(0, 1, 0, 0.5) gives rgba(0.33, 0.67, 0, 0.75), but rgba(0, 1, 0, 0.5) covered by rgba(1, 0, 0, 0.5) gives rgba(0.67, 0.33, 0, 0.75).
This is probably done for a good reason, but I'd like to be able to mix colours evenly, so that, for example, rgba(1,0,0,0.5) plus rgba(0,1,0,0.5) always gives rgba(0.5, 0.5, 0, 0.75), irrespective of which is drawn first.
Is there a way of doing that?  I couldn't find the bit in the code that sets the one-third/two thirds ratio.
Here's my code:
package main

import (
    "github.com/fogleman/gg"
)

func main() {
    dc := gg.NewContext(500, 500)

    dc.SetRGBA(0.0, 0.0, 0.0, 1.0)
    dc.DrawString("Green over Red:", 100, 90)
    dc.SetRGBA(1.0, 0.0, 0.0, 0.5)
    dc.DrawRectangle(100, 100, 200, 50)
    dc.Fill()
    dc.SetRGBA(0.0, 1.0, 0.0, 0.5)
    dc.DrawRectangle(200, 100, 200, 50)
    dc.Fill()

    dc.SetRGBA(0.0, 0.0, 0.0, 1.0)
    dc.DrawString("Red over Green:", 100, 240)
    dc.SetRGBA(0.0, 1.0, 0.0, 0.5)
    dc.DrawRectangle(100, 250, 200, 50)
    dc.Fill()
    dc.SetRGBA(1.0, 0.0, 0.0, 0.5)
    dc.DrawRectangle(200, 250, 200, 50)
    dc.Fill()

    dc.SavePNG("ggmixing.png")
}

Further investigation reveals that other packages (e.g. draw2d) do the same thing.
In fact the formula given in Wikipedia does too, so I obviously need a different approach to get the effect I want.


django is causing diskcache to be disabled in Python

Describe the bug
On master for this derivation: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/diskcache/default.nix
If you try to build it:
nix-repl ./default.nix
:b pkgs.python3Packages.diskcache

It complains about.
error: diskcache-4.1.0 not supported for interpreter python3.8

This doesn't make sense.
In particular the line that causes this is: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/diskcache/default.nix#L31
It disables the packages if the django version is at least 2.0.
Now the current django version is in fact 2.2.14.
Trying to build without the disabled gives us:
nix-repl> :b pkgs.python3Packages.diskcache
builder for '/nix/store/gir31jm96lqki917kl94yfaq7p1d3ah3-python3.8-diskcache-4.1.0.drv' failed with exit code 1; last 10 log lines:
  __________________ ERROR collecting tests/test_djangocache.py __________________
  ImportError while importing test module '/build/source/tests/test_djangocache.py'.
  Hint: make sure your test modules/packages have valid Python names.
  Traceback:
  tests/test_djangocache.py:38: in <module>
      from django.test import (
  E   ImportError: cannot import name 'mock' from 'django.test' (/nix/store/gjbcgjww9nx7cp018can0g7ddmkcmhgd-python3.8-Django-2.2.14/lib/python3.8/site-packages/django/test/__init__.py)
  =========================== short test summary info ============================
  ERROR tests/test_djangocache.py
  ========================= 180 passed, 1 error in 8.90s =========================
[0 built (1 failed), 13 copied (27.1 MiB), 4.5 MiB DL]
error: build of '/nix/store/gir31jm96lqki917kl94yfaq7p1d3ah3-python3.8-diskcache-4.1.0.drv' failed

Therefore I believe it is important to override the pytest-django package that is passed in to use django_1_11. So that way diskcache continues to work in the latest python.
This may be affecting other packages that also rely on django.

Given that pytest-django also relies on django. That package also relies on django-configurations which also relies on django... etc.
What is the best way to override all mentions of django in the closure to be set to django_1_11?

The diskcache people have already changed their code to support django 2: https://github.com/grantjenks/python-diskcache/issues/136
So alternatively we can get the later diskcache version released and packaged up so it can start to be worked.
In the mean time, we can disable the tests with doCheck = false;.

Also I believe that the tox should be in the checkInputs as well. @lsix

Is there a way to override the diskcache disabled property? It seems like I can't set disabled to false because overriding the derivation evaluates the disabledness of the derivation.

For Django, you always need to override the entire Python package set, and set it to the Django version you want.

@FRidh do you mean to override django itself and all packages that rely on django will automatically work?

@CMCDragonkai you need to override the python package set itself:
python3 = pkgs.python3.override {
  packageOverrides = self: super: {
    django = super.django_1_11;
  };
};

Doing this, you end up with a package set where django means django_1_11 and therefore all packages built around django use 1.11. You might have to adapt it slightly to your situation, but this is the overall idea.


Rebase the branch / clean up commit history

I'm trying to clean the commit history, hoping this helps get your PR merged. Since issues are not enabled in this repo, and I don't want to spam the main dendrite repo, I had to create a PR. Keep in mind that I will need to force-push a few times.
Anyway, can you confirm you did not actually need the gomatrixserverlib submodule and that it can be safely removed ? (If you do need it, there's a missing .gitmodules in the repo)

This should be easier to review. Since I'm not running Dendrite myself, I will not open a PR on the official Dendrite repo, but feel free to update your PR / create a new one using this commit history.
Below is the output of git diff jendrite from this branch :
diff --git a/gomatrixserverlib b/gomatrixserverlib
deleted file mode 160000
index dd56185f..00000000
--- a/gomatrixserverlib
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit dd56185f075de0a1c24e7ed1adf60ce42323d21e

(I assumed the submodule is not needed, since there were no new imports in your commits)


cannot get all list of topics

When I use this method to get topicList
client.loadMetadataForTopics([], function (error, results) {
console.log('%j', _.get(results, '1.metadata'));
});
It return me a undefined,why is this happened?
and I am sure my Kafka indeed has topics

What does the value of the error parameter ?

{ [BrokerNotAvailableError: Broker not available] message: 'Broker not available' } @hyperlink

{ [BrokerNotAvailableError: Broker not available] message: 'Broker not available' } @hyperlink
kafka是按照官网的教程启动的，只有一个broker，broker.id = 0

Most of the time this means the client has no socket connection to the kafka broker.
Did you receive a ready event from the client?
What is the value of client.ready ?

client.ready is false,but I still can get the message

Try calling loadMetadataForTopics after the connect event has been emitted.

that worked! thank you


Set default values for data_names and label_names of Module's constructor

This PR will set default values for the data_names and label_names parameters of the constructor of the Module class as 'data' and 'softmax_label', respectively.
This change is to follow the python implementation and is useful for actual use cases.
The python implementation is here:
https://github.com/apache/incubator-mxnet/blob/1.5.1/python/mxnet/module/module.py#L72

Awesome awesome


Handle TEXT type

This will allow TEXT fields to be used in the seed generator. Currently these will fail.

closing, will remake in a moment targeting correct branch


build: fix cares build

#11149 broke CentOS/RHEL build, force lib install dir to lib rather than lib64 in those distro, so rules_foreign_cc can find built static libraries.
Signed-off-by: Lizan Zhou<EMAIL_ADDRESS>

LGTM. Thanks for the fast turn around.


fill clipped objects properly

Clipping the model and then using viewer.filler.create to 'fill' the clipped objects results in a rather ugly visualization (see image). Is there something I'm doing wrong?

IfcJsViewer.viewer.clipper.createPlane();

let testMaterial2 = new THREE.MeshBasicMaterial({
  color: 0x2596be,
  side: THREE.BackSide,
  clippingPlanes: IfcJsViewer.viewer.context.getClippingPlanes(),
  polygonOffset: true,
  polygonOffsetFactor: -1,
  polygonOffsetUnits: 1})

IfcJsViewer.viewer.filler.create("vukas", 0 ,IfcJsViewer.allIDs,testMaterial2);

https://stackoverflow.com/questions/74782950/how-to-fill-clipped-objects-with-ifc-js

Hi, yeah, this tool simply creates a copy of the model and renders the backfaces with a solid color. In your case that might look like that because it's also being applied to IfcSpaces. It's a cheap hack that looks good in some cases, but not all. We are working to implement this, but first we need to fix geometry generation in web-ifc. We plan to solve this next year!

Hi @agviegas , any luck with this issue? Can I help with anything?

Hey @DanielSBoba thanks for asking! We are moving now to this new library, which is very similar but has a way better structure (component-based), is tested, documented, etc, before the end of the summer. If you want to provide a solution for this, I suggest you try it there directly!


added rejection by channel to base.get_data

Regarding the enhancement proposed by myself in #10914.
I added the the option to rejection_by_annotation to support ch_names as well. The changes proposed only affect the output when rejection_by_annotation="NaN" and instead of forcing all values (across all channels) of bad_ annotations to nan, it only forces the specified channels in annotations.ch_names.

Why did you close ? We can iterate here together

There were some careless indentation issues, I'll do it again.

No need to create a new pull request just keep pushing on this branch and reopen the PR


For text, allow x and y to be specified as constant numbers

For manual labels, it’d be nice if you could specify x and y as constant numbers. Currently they can either be a channel or null; in the latter case the labels are placed in the center of the chart.
Related, it might also be nice to have an anchor option which allows the text to be positioned somewhere else relative to the surrounding frame; this would eliminate the need to hard-code dx and dy (e.g., in the geofacet example). The anchor option could accept values such as top, top-left, top-right, right, etc.

Related https://github.com/observablehq/plot/issues/153

Related multi-line text #677 #313 #327. Specifically #677 introduces a lineAnchor property which controls vertical position of lines relative to the anchor point.

I don’t think we want to introduce this convention of literal positioning, and especially that we’d want x and y to behave differently for text marks. But I could see a frameAnchor option that controls the position for otherwise position-less marks; it would default to middle for the current behavior.


Better Discord broken (for me) in Linux (Ubuntu LTS 20.04)

Hello,
I'm using the Discord snap installed off the Terminal (Version 0.0.14)
The Snap works just fine as the normal discord should do.
As i'm installing Better Discord via the terminal this output is displayed.
After the Install of Better Discord it is apparently in the "Web-mode" and then there is a button for the "App-download".
There is also no Better Discord Menu.
Screenshots: https://imgur.com/a/ww9t9z6
Have a nice day :)

Same problem on Arch!

Duplicate of #98.


Upgrade to use Lucene 5.3.0

This updates a few places to let Luke use Lucene 5.3.0. Thanks for keeping Luke current and for considering this PR!

Closing now since https://github.com/DmitryKey/luke/pull/38 is merged.

thank you, @lukhnos !


Export Syllabus to PDF

Feature description
Users want to be able to export a syllabus to PDF to distribute it via their own LMS system etc. This request has come up multiple times across Syllabus v1 and v2
Additional context
I think we do need a way to attribute links from exported syllabi. For example:

Instrument the Export button
Add UTM codes to the end of links, like &source=syllabus&code=ABC-DEF?

This repository is no longer maintained. It has been superseded by IBM Quantum Learning.


I'd like to join this project's community

Your public repo
https://github.com/bioregionaltracy/gov4git-identity-public.git
Your public branch
main

Have you contributed to this project?

Yes.  I supported Kaliya (Identity Woman) on the Deliberation section.
Tracy Kunkler
Co-Director
https://circleforward.us/
828-242-8199
Or schedule time:
https://calendly.com/tracykunkler
￼

On Mar 13, 2024, at 7:48 AM, Glen Weyl @.***> wrote:
Have you contributed to this project?
—
Reply to this email directly, view it on GitHub https://github.com/pluralitybook/plurality/issues/537#issuecomment-1994197697, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGWQAN3Q6GG6KI2R62UPOILYYA4KDAVCNFSM6AAAAABESKEWLSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJUGE4TONRZG4.
You are receiving this because you authored the thread.

Approved.

 Follow up
On Wednesday, 13-Mar-24 16:26:16 UTC by Gov4Git dev
@bioregionaltracy was added to the community.


Iterate on Unknown Batch Size with Custom Layer

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): OS X 10.14.6
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A
TensorFlow installed from (source or binary): Binary
TensorFlow version (use command below): 1.14.0
Python version: 3.6.6
Bazel version (if compiling from source): N/A
GCC/Compiler version (if compiling from source): N/A
CUDA/cuDNN version: N/A
GPU model and memory: N/A

Describe the current behavior
I am attempting to build a custom TensorFlow Layer to perform K-Means clustering across channels of a given image. I am having difficulty creating this new layer to add to the model, as it seems that fundamentally, I don't have the ability to iterate over the batch size, which is unknown until runtime. I have tried a few alternatives such as the @tf.function function decorator and the tf.scan function, which have both been unsuccessful.
Describe the expected behavior
I was expecting that since the batch size is unknown until runtime, that TensorFlow would be able to handle this error, similar to how TensorFlow can accept an unknown dimension and generate a matrix/tensor with the unknown shape.
Code to reproduce the issue
import numpy as np
import tensorflow as tf
from sklearn.cluster import KMeans

class KMeansLayer(tf.keras.layers.Layer):
    def __init__(self, num_clusters=8, n_init=5, trainable=False):
        super(KMeansLayer, self).__init__()
        self.clusters = num_clusters
        self.n_init = n_init
        self.trainable = trainable

    def build(self, input_shape):
        print('Input shape:', input_shape)
        self.output_s = (input_shape[0], input_shape[1], input_shape[2], 1)
        self.built = True

    def call(self, input):

        @tf.function
        def KMeansBase(input_mat, clusters, n_init):
            base_mat = tf.zeros((input_mat.shape[0], input_mat.shape[1] * input_mat.shape[2]))
            for frame in range(input_mat.shape[0]):
                init_mat = np.zeros((input_mat.shape[1] * input_mat.shape[2]))
                reshape_mat = tf.reshape(input_mat[frame], shape=(input_mat.shape[1] * input_mat.shape[2], input_mat.shape[3]))
                kmeans_init = KMeans(n_clusters=clusters, n_init=n_init)
                class_pred = kmeans_init.fit_predict(reshape_mat.numpy())

                for clust in range(clusters):
                    init_mat[class_pred == clust] = tf.keras.backend.mean(tf.boolean_mask(reshape_mat, class_pred == clust), axis=1).numpy()
                    init_mat[class_pred == clust] = np.mean(init_mat[class_pred == clust], axis=None)
                base_mat = tf.compat.v1.scatter_update(base_mat, frame, tf.convert_to_tensor(init_mat))
            base_mat = tf.reshape(base_mat, (input_mat.shape[0], input_mat.shape[1], input_mat.shape[2]))

            return tf.expand_dims(base_mat, axis=-1)

        return KMeansBase(input, clusters=self.clusters, n_init=self.n_init)

input_1 = tf.keras.Input(shape=(28, 28, 1), name='input_1', dtype='float32')
conv_1 = tf.keras.layers.Conv2D(filters=3, kernel_size=3, strides=1, padding='same', data_format='channels_last', activation='elu', kernel_initializer='glorot_uniform')(input_1)
kmeans_out = KMeansLayer(num_clusters=8, n_init=5)(conv_1)

model = tf.keras.Model(inputs=[input_1], outputs=kmeans_out)
tf.keras.utils.plot_model(model, show_shapes=True)
model.compile(optimizer='adam', loss='mse', metrics=['mse'])

The error that I get from running the above code is as follows:
Traceback (most recent call last):
  File "example_error_file.py", line 44, in <module>
    kmeans_out = KMeansLayer(num_clusters=8, n_init=5)(conv_1)
  File "~/fluoro/fenv/lib/python3.6/site-packages/tensorflow/python/keras/engine/base_layer.py", line 634, in __call__
    outputs = call_fn(inputs, *args, **kwargs)
  File "~/fluoro/fenv/lib/python3.6/site-packages/tensorflow/python/autograph/impl/api.py", line 149, in wrapper
    raise e.ag_error_metadata.to_exception(type(e))
TypeError: in converted code:

    example_error_file.py:38 call *
        return KMeansBase(input, clusters=self.clusters, n_init=self.n_init)
    ~/fluoro/fenv/lib/python3.6/site-packages/tensorflow/python/eager/def_function.py:414 __call__
        self._initialize(args, kwds, add_initializers_to=initializer_map)
    /var/folders/6p/0r05_kf55273nh_nftm5q9tw0000gn/T/tmp0zjq0l_w.py:14 KMeansBase *
        base_mat = ag__.converted_call('zeros', tf, ag__.ConversionOptions(recursive=True, force_conversion=False, optional_features=(), internal_convert_user_code=True), ((input_mat.shape[0], input_mat.shape[1] * input_mat.shape[2]),), None)
    ~/fluoro/fenv/lib/python3.6/site-packages/tensorflow/python/ops/array_ops.py:1880 zeros
        shape = ops.convert_to_tensor(shape, dtype=dtypes.int32)
    ~/fluoro/fenv/lib/python3.6/site-packages/tensorflow/python/framework/ops.py:1087 convert_to_tensor
        return convert_to_tensor_v2(value, dtype, preferred_dtype, name)
    ~/fluoro/fenv/lib/python3.6/site-packages/tensorflow/python/framework/ops.py:1145 convert_to_tensor_v2
        as_ref=False)
    ~/fluoro/fenv/lib/python3.6/site-packages/tensorflow/python/framework/ops.py:1224 internal_convert_to_tensor
        ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
    ~/fluoro/fenv/lib/python3.6/site-packages/tensorflow/python/framework/constant_op.py:305 _constant_tensor_conversion_function
        return constant(v, dtype=dtype, name=name)
    ~/fluoro/fenv/lib/python3.6/site-packages/tensorflow/python/framework/constant_op.py:246 constant
        allow_broadcast=True)
    ~/fluoro/fenv/lib/python3.6/site-packages/tensorflow/python/framework/constant_op.py:284 _constant_impl
        allow_broadcast=allow_broadcast))
    ~/fluoro/fenv/lib/python3.6/site-packages/tensorflow/python/framework/tensor_util.py:467 make_tensor_proto
        nparray = np.array(values, dtype=np_dt)

    TypeError: __int__ returned non-int (type NoneType)

My main question is: can TensorFlow not handle iterating over an unknown batch size, or am I missing some functionality?
Thank you for the help!

Hi, I tested in 2.0-rc0 (with Eager disabled) instead of 1.14 but intuitively the results should be similar.
In TF2, an issue would come from using input_mat.shape[0], which will return None, when you probably should use tf.shape(input_map)[0], which will return a dynamic scalar tensor pointing to inputs' actual batch size. But this might not be the case in 1.14, and at any rate, to answer your question, in general, it is possible to handle dynamic batch_size, typically with a tf.while_loop (in your case, AutoGraph is generating one based on your code).
That being said, I think in your case the core failure reason is that you are attempting to feed a (symbolic) tensor to a scikit-learn object suited to use numpy arrays. This would perhaps work with Eager enabled on EagerTensors (which will implicitly be transformed back-and-forth into numpy arrays), but not (I think) on symbolic ones.
In my humble opinion, you probably should implement (or find) a tensorflow version of the KMeans algorithm and use it (or, possibly, find an alternative clustering layer that is easier to write and might have some learnable weights). At any rate, I hope that this helps a bit, and that you will find a suiting solution soon!

@jmd-0 Did @pandrey-fr answer solve your problem. Can I close the issue?

Hi @pandrey-fr, thank you for your response! I tried to experiment with the different TF functions you suggested and was unable to do exactly what I wanted, so it seems that I should just try to use the TF implementation of the KMeans algorithm, as you suggested.
Also, thank you for the interesting tidbit about how TF generates the symbolic tensors for unknown dataset sizes. I need to be aware of that in the future.
Thanks again, @pandrey-fr

You are very welcome ; good luck with the follow-up work :-)

I'm facing same problem. Any one solve this kind of problem ?

Any updates on this? I need a custom layer that does a for loop.

@Andreasksalk
Layer does not support iteration. you have to perform operation on entire batch

So it is a completely no go to use packages that is not keras? I have to perform optimal transport on a set of tensors in a keras model. i have found a way to do this on a single input but cannot seem to find a way to implement this into the keras model.

@Andreasksalk It depends on what you want to perform, and more specifically when you want it to happen. The overall issue is very simple: in order to train your model through backpropagation, tensorflow needs to be able to track what happens to the data, and hence to compute the gradients of the loss function relative to the model's trainable weights. But if you want to operate on your input data (before any trainable weights are being used), you should be able to do it - probably using a Lambda layer, and setting it to run eagerly.

I am trying to implement a custom Keras layer which does random shear.
I am trying to use tf.keras.preprocessing.image.random_shear which implements random_shear per image.
So, I have to iterate over the tensor and call this method for each input.
However, the input is of the shape (None, 32,32,3), thus I can't know the number of rows. I tried to use tf.shape(inputs)[0] but it did not help.
Any other way can we do this?

I am trying to implement a custom Keras layer which does random shear.
I am trying to use tf.keras.preprocessing.image.random_shear which implements random_shear per image.
So, I have to iterate over the tensor and call this method for each input.
However, the input is of the shape (None, 32,32,3), thus I can't know the number of rows. I tried to use tf.shape(inputs)[0] but it did not help.
Any other way can we do this?

Hello @ashwanikumar04 ,
I think you are looking for tf.map_fn
(sheared = tf.map_fn(tf.keras.preprocessing.image.random_shear, inputs))

Hello @ashwanikumar04 ,
I think you are looking for tf.map_fn
(sheared = tf.map_fn(tf.keras.preprocessing.image.random_shear, inputs))


Additional option of unlimited number of skill levels?

Hello. Thanks for your mod, it's really good. Can you add to this mod an option to get unlimited (or say 999) number of levels of skill? With no benefits after 5th lvl, just a number on stats screen. Endgame is boring most of the time, but earning more skill levels could keep player interested.
I downloaded your source code in hope I could modify it to get this feature, but seems it's way harder, then I expected.

Hi,
Thanks for the feedback. This is something that has been requested before but I haven't been able to implement currently. I can't make any promises, but I will look into it in more depth when I have some free time.

Great!


find_object_2d: 0.7.1-2 in 'jazzy/distribution.yaml' [bloom]

Increasing version of package(s) in repository find_object_2d to 0.7.1-2:

upstream repository: https://github.com/introlab/find-object.git
release repository: https://github.com/ros2-gbp/find_object_2d-release.git
distro file: jazzy/distribution.yaml
bloom version: 0.12.0
previous version for package: 0.7.0-6

Holding for Jazzy sync


Visually align items on a global grid

Issue 12 https://github.com/near-daos/astro-ui/issues/91
When no grid is followed the page looks janky and difficult to scan.

We will align the search bar with the rest of the elements. The text within elements should not be aligned since all UI elements have a completely different context.

Please bring the header into alignment with the page content.
Overall, the context doesn't matter. If there is not a global grid the page layout looks sloppy. Subconsciously it's distracting (like a cluttered room) and prevents users from being able to quickly scan content.

Another example where elements are lacking alignment.
The flag is much too big and blurry. Decrease it's size so it fits inside the card.


Shuffle epel

Signed-off-by: Michael Pankov<EMAIL_ADDRESS>

This change is

Seems this is not necessary in the end


try to fix some NDFs

This PR is meant to fix NDFs to prevent tests from failing for no apparent reason which is very annoying and probably irritating for new contributors.

prefer rebasing to merging, unless the branches have diverged a lot and the rebase becomes unmanageable.

Looks good to me if the travis build passes.


fixed swift 3 switch error

Fixed a switch error with Swift 3.0

Hi, I am getting lot of errors while using pod installation with swift 3.0. Can you please merge this branch?


Using Enhanced Disables Playback

🧐 Have you read the FAQ and viewed similar issues?

[X] I have read the FAQ
[X] I have checked older issues, open and closed
[X] I did a clean install of SpotX as described in the FAQ

Сountry of your account
Canada
What is your Spotify Plan?
Free
Do you have Spicetify installed?
No
ℹ Computer information
- Spotify: <IP_ADDRESS>5.gd61a8f5c
- Windows: Windows 10 22H2 19045.2486
- PowerShell: 5.1.19041.2364

📝 Description

Go in to playlist of choice
Enable Enhanced
Spotify disables playback of that playlist until Enhanced is disabled
...

📸 Screenshots

The old problem with improving your own playlists and favorite songs mostly works fine for most users, but sometimes there are crashes. It was not possible to find out why. You can try logging out of all devices and performing a clean installation as described in the FAQ. I had the same problem for about a month and it went away on its own. I did nothing. Maybe these are temporary problems on the server.


fix: small errors

Background

I only fixed two small typo errors
Checklist

[ ] Git commit messages conform to community standards.
[ ] Each Git commit represents meaningful milestones or atomic units of work.
[ ] Changed or added code is covered by appropriate tests.

Merged in 097d2c4f8aec8fa154b0dea5015e2ef318d7ad45


Copy latest common io changes to master

Description

Copy latest common io changes to master:

no other changes except formatting iot_uart.h

Checklist:

[x] I have tested my changes. No regression in existing tests.
[x] My code is Linted.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/bot run checks

Need to address comments from Dan. Will do that on feature/common-io branch


Cvr loader (don't merge)

assertion fails for test_undervote(). I ran the same example in the profile.py file and it returned True, which contradicts the result in the test file.

ready for review

👍


[5.5] [Refactoring] Support async for function extraction

5.5 cherry-pick of https://github.com/apple/swift/pull/37651

Adapt the ThrowingEntityAnalyzer to pick up any await keywords and add an async to the extracted function if necessary along with an await for its call.
rdar://72199949

@swift-ci please test


Library name change request

Library repository URL
https://github.com/NodeppOficial/nodepp-arduino

Hi @EDBCREPO. You submitted this request in December: https://github.com/arduino/library-registry/issues/3780. The name was already updated at that time.
So I will close this as a duplicate.
If you were hoping to accomplish something other than changing the library name to nodepp, then you can comment here on the issue thread and I'll provide assistance.

Hello per1234, Yeah, I've duplicated it, but I want to report something:
I've recently changed the name from uNodepp -> Nodepp, and so far so good, it even appears to be downloaded in the Arduino IDE, but I've recently updated the library, and it just doesn't update, it just let me download the version 0.0.1. I've checked the Arduino repository FAQ, and it tells me to go to the following link, to check if there's any problem:
https://downloads.arduino.cc/libraries/logs/github.com/NodeppOficial/nodepp-arduino/
I've checked the link, and it shows me that the latest version (0.0.5) has already been loaded. Also, when I try to search for the library (Nodepp) from the Arduino page, it does not appear, and when I try to search for it with the old name (uNodepp), It appears on the following page as a 404 error:
https://www.arduino.cc/reference/en/libraries/unodepp
I know I'm really annoying, but could you check that for me?
thanks 👍

when I try to search for the library (Nodepp) from the Arduino page, it does not appear

I can see it here:
https://www.arduino.cc/reference/en/libraries/nodepp/
So I think everything is fine.
Although the Arduino Library Reference is built from the data in the Arduino Library Manager index, which is in turn built from the data in this repository, I don't have any involvement in the closed source system that generates and publishes the Arduino Library Reference project so I can't be of much assistance when it comes to the library reference itself (beyond the contents of the index file from which it is generated).


How to find the key pair that can claim your project token?

Including virtual machines and remote servers, 7 of my computers are associated with my github account. Currently, the version of the ssh key that exists on my github account is not sure whether it contains a claimable key, so I now need to enumerate each computer. Each key to try to claim your token?

I hope you won’t waste too much of everyone’s time. It’s an honor for your project that developers are willing to claim your tokens. We can check the qualifications on the official website, but is it really appropriate for the application process to be so troublesome?

It’s so funny, I briefly looked at the python code they wrote. It will download the file called metadata.json to the local, and then traverse and compare it with the entered key. . . . This is what they call a snapshot. . .
Does this mean that every developer with many key pairs needs to analyze your "Bad Smell Code" like me?

The snapshot link is
If you have the same situation, you don’t need to read "bad smell" anymore.
hhh

As you mentioned above, you can find eligible public keys for claiming in metadata.json file. Simple file search will do the trick. Closing as there is no particular issue now.


[Bug] dbt unit test does not work without external package

Is this a new bug in dbt-core?

[X] I believe this is a new bug in dbt-core
[X] I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior
I am trying to implement dbt unit tests without using any of the external package being installed. But the native dbt unit tests does not work and while executing it using the command dbt test --select test_name , it just not picking up the test and executing it. It says, the selection criterion does not match any node.
Expected Behavior
The test should be get picked up and executed successfully against the model using the dbt test command
Steps To Reproduce
tests/test_properties.yml

unit_tests:
  - name: current_student_view_data
    description: "stores students data"
    model: curr_raw_student_view
    given:
    - input: ref('hub_raw_student')
      rows:
        - {student_users_pk: '83E71047', student_id: '3063542d005f'}

    - input: ref('sat_raw_student_details')
      rows:
        - {student_users_pk: '83E71047', student_id: '3063542d005f', email<EMAIL_ADDRESS>first_name: 'Hello1', last_name: 'Guest'}

    expect:
      rows:
        - {student_id: '3063542d005f', email<EMAIL_ADDRESS>first_name: 'Hello1', last_name: 'Guest'}

Run: dbt test --select current_student_view_data
Outcome:
root@**********:/usr/app/dbt# dbt test --select current_ajo_view_data
06:54:23  Running with dbt=1.7.3
06:54:24  Registered adapter: snowflake=1.7.1
06:54:34  Found 67 models, 1 snapshot, 5 tests, 87 sources, 0 exposures, 0 metrics, 1017 macros, 0 groups, 0 semantic models
06:54:34  The selection criterion 'current_student_view_data' does not match any nodes
06:54:34
06:54:34  Nothing to do. Try checking your model configs and model specification args

Relevant log output
root@**********:/usr/app/dbt# dbt test --select current_ajo_view_data
06:54:23  Running with dbt=1.7.3
06:54:24  Registered adapter: snowflake=1.7.1
06:54:34  Found 67 models, 1 snapshot, 5 tests, 87 sources, 0 exposures, 0 metrics, 1017 macros, 0 groups, 0 semantic models
06:54:34  The selection criterion 'current_student_view_data' does not match any nodes
06:54:34
06:54:34  Nothing to do. Try checking your model configs and model specification args

### Environment

```markdown
- OS: Windows 10
- Python:
- dbt:1.7.3

Which database adapter are you using with dbt?
snowflake
Additional Context
No response

Hey @sangee14 - dbt unit tests were introduced in dbt Core v1.8, so you need to upgrade your version of dbt:

https://docs.getdbt.com/docs/dbt-versions/core-upgrade/upgrading-to-v1.8#unit-tests

Glad you want to make use of unit tests in your project! I'm going to close this issue, because the resolution is to use a newer version of dbt.

Please re-open this issue. Even after upgrading, it does not work.
dbt-core : 1.8.9
dbt-snowflake: 1.8.3


fix: sign up flow on instances with google recaptcha site key

Description
The sign up form action URL had multiple "?" making it invalid. Fix is to check if there is a "?" already and append query params with "&" when necessary.
Fixes #15103
Type of change

Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Manual

Checklist:

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

hey i have a pr for this https://github.com/appsmithorg/appsmith/pull/15074

Closing this PR. Duplicate of 15074.


Feature Request: RGB for setGroupLightState

Currently only setLightState has RGB.

The reason for that is that the rgb value has to be converted for each type of colour gamut for each light.
If you were to try to do this on a group, then you have to retrieve all the lights in the group, perform the conversion of rgb to hsl on each light, and then set that on each light, not via the grouping, so would creating a staggered effect as the lights in the group change as the bridge gets the request.
The hue API itself does not support rgb directly and the library provides it for individual lights as it can do this calculation and set the state with minimal noticeable issues. This would not apply in a group.
If you desire this type of thing, then a scene may be more appropriate, as you can set the rgb values in advance, save the scene and then recall it later using the group state with the scene id.

Ah, okay. Thanks for the response.


Added SVN support

Added support for version control with SVN (partially fixes #88)
New code added to record repository URI, commit number and local diffs and to display them in the CLI and the GUI.
Added a dependency on PySVN, although the currently released version of this doesn't support local diffs, so I had to hack that in manually with subprocess...

@jvdzwaan: This is a PR from one of the new guys sprinting with me at PyConUK 2016. Very sensibly, he's added some extra examples to the GUI tests - but neither he nor I are sure how to run them.
Can you see whether what he has added makes sense? And tell us how to run them?

pip install nosetests and to run the tests just nosetests.
After a very quick look, the changes and tests seem to make sense. To be honest, I'm not sure all existing tests still work...

You're right - it seems like lots of tests that are there already currently fail anyway. Oh well, I'll merge this, and we can deal with testing with the SSI once they've done the basics.


discussion should gzip be activated by default?

Have been thinking that even if have gzip compression is great, we should not activate it by default?
nanohttpd runs on very small devices with next to no performance needed, gzip changed this... Never forget that in many cases nanohttpd is running on a many times slower machine as the "client" / browser.
Opinions please!

Agreed. Android seems especially important platform, including very low end
devices.

ok, set to false now.
I leave the issue open for a while to see if there is someone with an other opinion?

A sensible but slightly more complicated default policy might be to compress generated status-200 text responses (e.g. JSON) by default, but leave all binary stuff untouched. See the graphs here, the bandwidth savings can be substantial: http://web-resource-optimization.blogspot.fi/2011/06/json-compression-algorithms.html

I think gzip can be default for text files. It can save a lot of bandwidth comparing with its extra CPU usage.

I am still not sure, a per request decision seems reasonable but a micro device hase more trouble compressing than sending 1k bytes. The more I think about it the more I think it should be very flexible...

On the other hand, nanohttpd will be used in 99% for a single task (correct me if I am wrong) so if there is a json request it is highly probable that all requests will be json. So it is likely the option will be allways on or off. With the exception of binary data like images where it just does not make sense to gzip them at all. So I think we should have two options, one general on/off with the default off (and on in the simple-webserver). and one option depending on the mine type of the response? or we give the mime type as a parameter to the method (or even the response itself)?

great, thanks!

Hi,
My 2 cents: I'd compress everything by default.
Usually, the smartphone's bottleneck is more the low bandwidth, rather than the CPU. By not compressing the stream, I think you'd be doing more harm than good. Also, the CPU consumption for decompressing the stream is probably rather negligible compared to the time it requires for layouting the page.

Not really true for jpeg/videos and other already compressed stuff. There is can cost a lot of cpu with no (or even negative) result.

And a few years later, somebody came along and said: Shouldn't there be a mime-type-list for files to auto-compress? And for extra-good-measure, only compress over-the-internet streams... You can even get really smart, and have a compressed-file-cache that auto-updates when the source is modified. Every cached file should have a last-access-timestamp. There should be an auto-trim (post-request) function to dequeue files that are not being requested during the latency period.
[just-a-comment for your thinking of a suitable-solution]


Running Geckodriver in headless mode

Geckodriver can be used in headless mode to improve user experience.

Hi. Please Check my pull request (PR #12) solving this issue.

Hi. Please Check my pull request (PR #12) solving this issue.
@Deathrow77 You can add Closes #N in your PR message and information of PR will be reflected on the issue page, i.e. here.

Solved by #12


chore(main): release 0.0.39

:robot: I have created a release beep boop
0.0.39 (2024-05-16)
Other

bump validator-plugin-oci to v0.0.9 (#250) (432e35f)
migrate from spectrocloud-labs to validator-labs (#251) (0386d7e)
update kubescape version (#248) (7a0dcd4)
update release.yaml (5178e67)
update release.yaml (e4d65ae)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/validator-labs/validator/releases/tag/v0.0.39 :sunflower:


Window size not working properly

Hi! Awesome library!
I don't know how the libui-node works properly, so please help.
If I render a <Window /> element on the tree, without any children, the Window get the right size. But, as soon as I insert the children, the window fits to the children and ignore the specified width and height. Is it expected?
Also, it looks like updating the height of the window via state doesn't work as well. My code is the following:
import React, { Component } from 'react'

import { render, Window, App, Button } from 'proton-native'

class Example extends Component {
  state = {
    height: 300,
  }

  componentWillMount() {
    this.handleResize = this._handleResize.bind(this)
  }

  _handleResize() {
    this.setState({
      height: 400,
    })
  }

  render() {
    console.log(this.state.height)

    return (
      <App>
        <Window
          title="Example"
          margined
          size={{
            w: 300,
            h: this.state.height
          }}
        >
          <Button onClicked={this.handleResize}>
            Change my size!
          </Button>
        </Window>
      </App>
    )
  }
}

render(<Example />)

Is this on Mac?

Yes.

I think that's just how Mac works. I don't think it has stretchy components. There's nothing I can do about that.

But I don't want stretchy components... I want the Window to be with the size I defined, and that's not what's happening.

Try adding a box and then the button inside the box.

Yes, buttons on macOS have a fixed height, and by default are programmed to resist growing vertically. Sorry about that. If you set the contentHuggingPriority in NSUserInterfaceLayoutOrientationVertical to NSLayoutPriorityDefaultLow you'll be able to grow the window vertically, but the button will stay somewhat centered in the window; it won't grow vertically (and that's a thing with AppKit that I can't do anything about).

I think this should be opened back up, it certainly seems like a bug when it happens. If it really can't be fixed then a note should be put in the docs.

There are a lot of other issues with resizing on Mac that I need to fix as well (and these are issues on my end due to probably not using Auto Layout correctly), so the answer to these questions will likely be a case-by-case thing until I fix them.

@zaguiini I was also looking for the same and found that adding box tag outside the window component will render the screen exact on the same size of given height and width of window.
import { render, Window, App, Button, Box } from 'proton-native'
return (       <App>         <Window           title="Example"           margined           size={{             w: 300,             h: this.state.height           }}         >           <Box>                <Button onClicked={this.handleResize}>                     Change my size!                </Button>           </Box>         </Window>       </App>     )


Misleading not found output

Currently kubectl get $KIND for non-namespaced resource returns an output like No resources found in default namespace. which I found misleading because the resource I get is not namespaced.
Example:
$ k get nodes
No resources found in default namespace.

$ k version
Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.1", GitCommit:"d647ddbd755faf07169599a625faf302ffc34458", GitTreeState:"clean", BuildDate:"2019-10-02T17:01:15Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"darwin/amd64"}

/kind bug

I can't reproduce this bug. The code is done in :

Sorry I can't reproduce this bug in my k8s 1.16.0. The code is written in:
https://github.com/kubernetes/kubernetes/blob/f23dd405f18f23dda4d00820ab20ec49852e5727/staging/src/k8s.io/cli-runtime/pkg/resource/builder.go#L957
if mapping.Scope.Name() != meta.RESTScopeNameNamespace {
        selectorNamespace = ""

The node is scope of root so it won't have namespace.
I tested it and it works well.

The bug really exists.
➜  ~ kubectl version
Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.2", GitCommit:"c97fe5036ef3df2967d086711e6c0c405941e14b", GitTreeState:"clean", BuildDate:"2019-10-15T19:18:23Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"linux/amd64"}
~ kubectl get mutatingwebhookconfigurations
No resources found in default namespace.

The v<IP_ADDRESS> version kubectl has no such problem.and i will resolve this bug.
➜  ~ kubectl version
Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.1", GitCommit:"4485c6f18cee9a5d3c3b4e523bd27972b1b53892", GitTreeState:"clean", BuildDate:"2019-07-18T14:25:20Z", GoVersion:"go1.12.7", Compiler:"gc", Platform:"darwin/amd64"}
➜  ~ kubectl get mutatingwebhookconfigurations
No resources found.

@donggangcj, should I assign to you (i.e are you willing to work on this issue)?

I‘m very happy to fix this bug . 😀

/assign @donggangcj

/remove-lifecycle stale


Change average length of song

Impressive project! My congratulations! The generated music is very good. I have a question, is it possible that the average duration is 3 minutes instead of 1:30? I have downloaded the code but I can't figure out where to modify to achieve that. I clarify I do not program in python. Thank you!

Increasing the duration will only increase the number of loops, not generate longer chord or melody sequences. You can change the number of loops here:
https://github.com/jacbz/Lofi/blob/a379facc79972ed573cb317640abbb0e600f5586/client/src/producer.ts#L175


Docker images for each service, docker config for iroh cli

We should be providing docker images for each cloud service. Doing rust + containers the right way should lead to super small production images in a multi-stage build with a much more full-featured build image.
Not having these is blocking contributions like #440.

[ ] decide on a multi-stage build / prod image that'll work for each service, start with the store service as an example
[ ] build out each service image
[ ] make sure the iroh CLI can be configured to talk to those images
[ ] do a one-off for iroh-one that puts everything in one image

Thanks for thinking this through @b5  !
I think adding a check box for making these images not root user configurable is also an important addition
I like the idea that someone from the team takes this on.

I like the idea that someone from the team takes this on.

Roger that. I'll assign to myself as a start 😄 .

I think adding a check box for making these images not root user configurable is also an important addition

Just to confirm what you mean by this, I'm assuming you mean any iroh service binaries within production images should only have execute permissions for a non-root user, correct? I'd make an iroh user and iroh group that can execute. Sound good?

update on this, we now have a working docker-compose example on main: https://github.com/n0-computer/iroh/blob/main/docker/docker-compose.yaml
PR that landed the work: https://github.com/n0-computer/iroh/pull/501
@gotjoshua, I'd love it if you could take a look at the dockerfiles, and ideally give that docker-compose setup a try. It's working will for me locally, but would be great to confirm. I'd also like to get your input on the prod image user. It doesn't have all the flexibility of uid/gid build options, but does follow idiomatic patterns for running as nonroot on distroless.
I'm marking this as closed, please feel free to open new issues as we work on our docker story

@b5 Just in case, does the docker-compose file make sure not to expose any API to the public? (it's hard to tell if this is an issue for grpc or not) This was a previous issue with Kubo's docker-compose file and caused it's API to be publicly accessible: https://github.com/ipfs/kubo/pull/8773
Kubo's current docker-compose file: https://github.com/ipfs/kubo/blob/master/docker-compose.yaml

oh this is a very good idea. We don't currently do this, and should. I'll open an issue. Thanks @Winterhuman!


New ms-validate-signing microservice

Validate the signature for a package

Hi @sbtaylor15, I would like to work on this story.


Using custom scalar types fails in isTypeSubTypeOf

I think I found a bug, related to the workaround in https://github.com/webonyx/graphql-php/issues/681#issuecomment-650187470.
What I'm doing? Executing this query:
query q($input: TestScalarType) {
      fieldWithScalarInput(input: $input)
}

TestScalarType is a class TestScalarType extends ScalarType that is registered according to the workaround in the comment linked above. Schema is below.
scalar TestScalarType @scalar(class: "ModelariumTests\\TestScalarType")

schema {
  query: TestType
}

input TestInputObject {
  t: TestScalarType
}

type TestType {
  fieldWithObjectInput(input: TestInputObject): String
  fieldWithNullableStringInput(input: String): String
  fieldWithNonNullableStringInput(input: String!): String
  fieldWithScalarInput(input: TestScalarType): TestScalarType
}

Running:
GraphQL::executeQuery($schema, $query, null, null, 'input' => 'valid');

Returns an error:
class GraphQL\Error\Error#692 (15) {
  public $message =>
  string(92) "Variable "$input" of type "TestScalarType" used in position expecting type "TestScalarType"."

apparently this is caused by this:
    public static function isTypeSubTypeOf(Schema $schema, $maybeSubType, $superType)
    {
        // Equivalent type is a valid subtype
        if ($maybeSubType === $superType) {
            return true;
        }

$maybeSubType is a MyOwnScalar and $superType is a CustomScalarType. Perhaps the comparison should be instanceof instead of equality? Or am I missing something?
I can submit the entire testcase if desired.

Yeah, the full test case would be great, thanks!

Reproduced here: https://github.com/Corollarium/modelarium/blob/d965a19468cf7aad8dd623041f1fa57a64a3daba/tests/Unit/ScalarExtendTest.php#L101
If you want me to isolate in a PR here let me know. I can send the fix too -- instanceof comparison works.

This means that there are two different instances of the same type in the schema which shouldn't happen. Using instanceof would be a workaround for this but not a fix. A good fix should guarantee the only instance (so that === works there).

Well, but your suggestion leads to multiple instances, since it will call new:
$schema->getConfig()->typeLoader = function($typeName) use ($originalTypeLoader) {
    $type = $originalTypeLoader($typeName);
    if ($type instanceof \GraphQL\Type\Definition\CustomScalarType) {
        $directives = $type->astNode->directives;
        // Look for your `@scalar` directive in $directives and return your custom class instead
        $customClass = findMyScalarClassName($directives);
        return new $customClass($type->config);
    }
    return $type;
}

I mean there shouldn't be two instances of the same type within one schema (of course you can create multiple instances of a type as long as they are not both added to the same schema).


Android Agent doesn't seem to handle User Consent/Notification (yet?)

Testing out the Android Agent, I noticed several issues relating to user consent/notification that I think need to be addressed.

When connecting to an Android device via the Desktop tab, it doesn't tell you that you're "Waiting for user to grant access..." like it does when connecting to a desktop PC, it just shows a "Connected" status with nothing showing in the area where the remote view should be.
If you tap "Cancel" to deny the request to capture the screen, it doesn't disconnect, it still shows the "Connected" status and a blank remote view.
If when connecting, you allow the screen capture, then in the Android Agent's menu tap "Stop Screen Sharing" (on a side note, I think this should not be hidden in a menu, it should be on the main screen, just like the connect/disconnect button) it continues to show that it's "Connected" and the remote view freezes (presumably because the agent isn't sending new data for it).
[I'd guess this is related to the previous issue.]

The above issues with consent/notification when viewing the Android device's display remotely are things that I think should be fixed to improve the user experience, but next there are some bigger issues, because of their potential for remote actions to go unseen when MeshCentral's settings are set to notify or require consent from the user:

If the user checked the "Don't show again" box during a previous remote viewing of their display, they will never again receive a request for their consent to view their display.
[The Agent should pop to the front, but it doesn't tell them why.]
Using the Files tab to remotely view/modify the file system doesn't notify or request the consent of the user in any way, no matter what the User Consent/Notification settings are set to.

ive added i have added the 'waiting for consent' message here, download the repo build apk and give it a go!
https://github.com/Ylianst/MeshCentralAndroidAgent/commit/bdec54d9c422bdf6c313ef7f8acae77c274875e5


[Enhancement] Implement std::error::Error for Error Types

Just for completeness:  the error enums should rather implement the std::error::Error trait.  That helps throwing them in another crate which uses this one as dependency.

Hmm, yeah, I think that would be alright, if we allow usage as a library. But since there are a lot of errors, I think it would be bad to implement the needed Display trait by hand. There is surely a crate which would allow to use the documentation or something similar for this. 😅

I think that implementing the trait manually is the faster way.

Probably, but I fear, that it bloats the code a lot, without adding anything currently..


Crash due to missing logw() argument

I triggered a simple oversight in master, in src/conn.c it says
#ifdef DEBUG
    logw(5, "conn[%s]: request data len changed from %d to %d",
         MB_FRAME(conn->buf, MB_LENGTH_L), len);
#endif

There should be 3 arguments after the logw() format string, not 2.  The crashing stopped when I changed [%s] to [%%s].
I may have been doing something wrong —I am starting a project and am may be sending invalid packets— but your dæmon might want to stick around to tell me off :-)

@vanrein
please try with adding conn->remote_addr in the logw of conn_fix_request_header_len
void
conn_fix_request_header_len(conn_t *conn, unsigned char len)
{
  if (MB_FRAME(conn->buf, MB_LENGTH_L) != len)
  {
#ifdef DEBUG
    logw(5, "conn[%s]: request data len changed from %d to %d",
         conn->remote_addr,MB_FRAME(conn->buf, MB_LENGTH_L), len);
#endif
    MB_FRAME(conn->buf, MB_LENGTH_L) = len;
  }
}

That fixes the problem, indeed.  Thanks.
To test, I reconstructed the situation because it was originally my bug triggering yours; my bug has since been fixed.  So I added an else branch printing to also produce this error, I saw that crash in the same manner, and then applied your fix to see the crash gone.

Thanks, guys. Indeed conn->remote_addr argument was missing. Will fix it.


Vesktop Flatpak support

Description
Vesktop (at least the Flatpak version) doesn't seem to be supported, as the pipe path seems to hard-coded to look for Discord specifically.
This was a bit confusing as the command to find if the pipe exists in the Troubleshooting guide found it, but the RPC plugin didn't.
Operating system
Fedora 41
Neovim version
NVIM v0.10.2
Build type: RelWithDebInfo
LuaJIT 2.1.1720049189

Steps to reproduce

Download the Flatpak version of Vesktop.
Ensure Rich Presence support is enabled under Vencord > Vesktop Settings > Miscellaneous.
Launch Neovim with cord installed

Expected behavior
The connection to the pipe.is established.
Actual behavior
The connection times out after sixty seconds.
Minimal configuration
local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
if not (vim.uv or vim.loop).fs_stat(lazypath) then
  vim.fn.system({
    'git',
    'clone',
    '--filter=blob:none',
    'https://github.com/folke/lazy.nvim.git',
    '--branch=stable',
    lazypath,
  })
end
vim.opt.rtp:prepend(lazypath)

require('lazy').setup({
  {
    'vyfor/cord.nvim',
    build = './build',
    opts = {},
  },
}, {})

Testing out the client-server branch, it still doesn't seem to be able to find the pipe. I installed it following the instructions here.

Hello, it looks like the custom client exposes the pipe under a different path. You should create a symlink from $XDG_RUNTIME_DIR/discord-ipc-0 to the correct path. In my case, it was in /run/user/1000/.flatpak/dev.vencord.Vesktop/xdg-run/discord-ipc-0. The ArchWiki has a more detailed guide on this.

I had followed the instructions here before opening the issue, but it seems like I needed to restart before it had any effect. Apologies for the mistake!
I hope this issue helps others who have the same problem as I did.


Design and build executor prototype

Design and build task executor that operates on monthly model data and recreates diagnostics as new data is submitted and tracks any failures. This includes maintaining a database of input datasets used by metrics and generated files.
Definition of done

[x] Can ingest a input dataset
[x] Can solve for any missing metrics (Requires #10 and some algo development)
[x] Track metric result

This requires some additional work on tracking which datasets are used for which metric execution.
We have implemented a naive solver which solves for every possible execution that should be run before checking which should be run. This is far from ideal if we need to solve for a single new dataset, but fine for now


Corrected Ukrainian translation

Category:

One of: Bugfix / Feature / Code style update / Refactoring Only / Build related changes /  Documentation / Other (please specify)
Translation

Overview

Briefly outline your new changes...

The translation into Ukrainian has been corrected.
Issue Number (if applicable) #00
New Vars (if applicable)

If you've added any new build scripts, environmental variables, config file options, dependency or devDependency, please outline here

Changed country code to uk, according to ISO 639-1 code.
Screenshot (if applicable)

If you've introduced any significant UI changes, please include a screenshot

Code Quality Checklist (Please complete)

[x] All changes are backwards compatible
[x] All lint checks and tests are passing
[x] There are no (new) build warnings or errors
[ ] (If a new config option is added) Attribute is outlined in the schema and documented
[ ] (If a new dependency is added) Package is essential, and has been checked out for security or performance
[ ] (If significant change) Bumps version in package.json

Up.


feat: React Hydration adds SSR element to uCredit

React Hydration

React by default performs client-side-rendering, meaning that React builds all the html on the browser.
This has some drawbacks, which include flashing a blank screen on first load as shown in the image below.

By hydrating the app rather than rendering, ReactDOMServer sends a server-side-rendered prepared html file to the frontend, instantly giving users their website.
However, overall loading may take a big longer, as React is effectively rendering the html twice: once for a quick SSR version, and the actual site after.
This isn't too great of an issue for us, as our website isn't pretty heavy to render to begin with, and is also an interesting addition to the app.
(Shown below, right is SSR and left is CSR)

@madooei This could be a quick and interesting topic to talk about in Fullstack Javascript, if you don't already have it prepared! ^.^


Using incorrect serviceId when calling service to get used service template of service

When click the ‘details’ of a deployed service, always called the API /xpanse/services/{serviceId}/service_template two times. one used the correct serviceId, but the other used a unknown id, which always get a error response from backend.

Error response caused by using the serviceTemplateId as the serviceId to call the service getOrderableServiceDetailsByServiceId.

I'll take this.


Security issues in dependency jackson-databind

There are several CVEs for com.fasterxml.jackson.core:jackson-databind used in nitrite.
https://www.cvedetails.com/version/288511/Fasterxml-Jackson-databind-2.9.8.html

If you add latest version of Jackson library in your project, nitrite will take the latest library only. If not, you can always exclude these version from nitrite and add latest dependencies in your project.


Not showing all list form command

List all currently configured remote repositories:
$ git remote -v

@chinmaydd please help here! I can't solve this!

@salman-bhai This command did you find anywhere?

Yeah sorry I forgot about this! Take a look here

@salman-bhai  Thanks.


(include the error message: 'No data; observed has size 0.')   correlation_name=correlation_name, error=error

Identical issue as #417.


Reading back (some) Parquet int96 timestamps provides wrong round-trip results

Describe the bug, including details regarding any error messages, version, and platform.
PyArrow version: 13.0.0
Python version: 3.10.9
OS: MacOSX, arm64
Some Timestamp values cannot be successfully round-tripped through PyArrow-Parquet[INT96 types]-PyArrow, even though they are within the expressible range of the timeunit ("milliseconds" in the example below).

To reproduce:
In [1]: import datetime

In [2]: import pyarrow as pa

In [3]: import pyarrow.parquet as papq

In [4]: ts = pa.array([datetime.datetime(1200, 1, 1, 0, 0, 59), datetime.datetime(2000, 1, 1), datetime.datetime(2400, 1, 1)], pa.timestamp("ms"))

In [5]: table = pa.table({"ts": ts})

In [6]: papq.write_table(table, "test.pq", use_deprecated_int96_timestamps=True)

In [7]: papq.read_table("test.pq", coerce_int96_timestamp_unit="ms")
Out[7]:
pyarrow.Table
ts: timestamp[ms]
----
ts: [[1784-07-20 23:35:32.709,2000-01-01 00:00:00.000,2400-01-01 00:00:00.000]]

Note that the first timestamp is received as 1784-07-20 23:35:32.709 instead of the expected 1200-01-01 00:00:59.000.
However, if we change the timestamp from datetime.datetime(1200, 1, 1, 0, 0, 59) to datetime.datetime(1200, 1, 1, 0, 0, 00) it now seems to work.
In [9]: ts = pa.array([datetime.datetime(1200, 1, 1, 0, 0, 00), datetime.datetime(2000, 1, 1), datetime.datetime(2400, 1, 1)], pa.timestamp("ms"))

In [10]: table = pa.table({"ts": ts})

In [11]: papq.write_table(table, "test.pq", use_deprecated_int96_timestamps=True)

In [12]: papq.read_table("test.pq", coerce_int96_timestamp_unit="ms")
Out[12]:
pyarrow.Table
ts: timestamp[ms]
----
ts: [[1200-01-01 00:00:00.000,2000-01-01 00:00:00.000,2400-01-01 00:00:00.000]]

Component(s)
C++, Parquet,Python

With coerce_int96_timestamp_unit, I think it's regard as some deprecated timezone syntax: https://github.com/apache/parquet-format/blob/master/LogicalTypes.md#timestamp
Also cc @wgtmac , have you seen this before?

I am not familiar with how does python datetime library deal with timestamp. I doubt it is  not related to parquet as the deprecated INT96 does not deal with timezone. Could you please print the integer value of datetime.datetime(1200, 1, 1, 0, 0, 59) and then check if the parquet reader returns the same integer value?


Support for TestCafé Live

Hello, is it possible to run TestCafé Live with gherkin-testcafé?

Hi @JakeTheSnake!
Unfortunately, it is not possible to use TestCafé Live with gherkin-testcafe at the moment.
And as of now, I do not plan to add support myself.
It seems to be a nice feature however. Please feel free to submit a PR to add support! :)

Beginning from version 2, testcafe live is supported via CLI and programming interface.