How can an MvvmComponent implement IAsyncDisposable?

Question
I want my MvvmComponent to implement IAsyncDisposable, and do some cleanup in a DisposeAsync() method.
But it appears the source generator automatically adds a DisposeAsync() to MvvmComponents, so I get:
error CS0111: Type 'MyComponent' already defines a member called 'DisposeAsync' with the same parameter types

What's the recommended way around this?
Code sample
No response
Version
6.0.6
Are you using Blazor WASM or Blazor Server?
Blazor WASM

Suggestion: make the generated DisposeAsync() a partial method to create an extensibility point.

Another related concern.. According to Microsoft docs, "Components shouldn't need to implement IDisposable and IAsyncDisposable simultaneously. If both are implemented, the framework only executes the asynchronous overload."
What I gather from this is that because of the DisposeAsync() method added to MVVM components, if the developer creates a component that implements IDisposable, their Dispose() method will be ignored. Is this the case?

Suggestion: make the generated DisposeAsync() a partial method to create an extensibility point.

There is a protected virtual method named DisposeAsyncCore that can be overriden for this purpose.

What I gather from this is that because of the DisposeAsync() method added to MVVM components by the code generator, if the developer creates a component that implements IDisposable, their Dispose() method will be ignored. Is this the case?

The DisposeAsync Method calls both, DiposesAsyncCore and Dispose. So even when you're only overriding the sync Dispose method your resources will be disposed properly.

Thanks @klemmchr, appreciated as always.


Error Request failed with status code 400

Hi!
First of all thanks for sharing this code.
I am having an issue I cant solve when I use the command "yarn start". It says "Error Request failed with status code 400".
Can you please help me to sort that issue?
Thanks in advance.

Hi !
No problem !
That message might be come from 1inch API, and for most part, that wouldn't be a problem.
Did you add your deployed contract address ?
see https://github.com/yuichiroaoki/poly-flashloan-bot#3-add-your-deployed-smart-contract-address
Sorry that I haven't elaborate the docs that much.  I have added this one just now.

Thank you very much for your quick reply.
yes I  add the deployed contract from mumbai testnet. This might be the problem dont you think?

Yes, I think that's the one.
This code doesn't work on mumbai testnet because all these addresses are polygon mainnet addresses.
Maybe there's no dodo lending pools on mumbai where you can borrow tokens, if you find one, you need to change the addresses below into mumbai ones.
https://github.com/yuichiroaoki/poly-flashloan-bot/blob/main/src/constrants/addresses.ts
Also, alchemy api url too.
https://github.com/yuichiroaoki/poly-flashloan-bot/blob/138c0b16ced81b5ca2984e3eddafc010de887554/src/flashloan.ts#L9

Thank you very much for your help. Sorry my late reply.
I think I will try it in the mainnet the fees are not that high.
I can live with that
thanks for sharing the code.
Have a good day.

No problem !  It took me 0.19 MATIC to deploy the contract.
Have a good one.


format/parameter order error in errx usage.

Thanks for the BREAD! :-)
In the usages below the command buf is provided first in the errx macro usage, but the printf format is expecting the size to be first.
gdb.c: In function ‘handle_gdb_state_cmd’: gdb.c:1014:22: warning: format ‘%zu’ expects argument of type ‘size_t’, but argument 3 has type ‘char *’ [-Wformat=]  1014 |                 errx("Command exceeds buffer size (%zu): %s\n",       |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  1015 |                         gh->cmd_buff, sizeof gh->cmd_buff);       |                         ~~~~~~~~~~~~       |                           |       |                           char * util.h:93:41: note: in definition of macro ‘errx’    93 |                         fprintf(stderr, __VA_ARGS__); \       |                                         ^~~~~~~~~~~ gdb.c:1014:54: note: format string is defined here  1014 |                 errx("Command exceeds buffer size (%zu): %s\n",       |                                                    ~~^       |                                                      |       |                                                      long unsigned int       |                                                    %s In file included from gdb.c:31: gdb.c:1014:22: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘long unsigned int’ [-Wformat=]  1014 |                 errx("Command exceeds buffer size (%zu): %s\n",       |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  1015 |                         gh->cmd_buff, sizeof gh->cmd_buff);       |                                       ~~~~~~~~~~~~~~~~~~~       |                                       |       |                                       long unsigned int util.h:93:41: note: in definition of macro ‘errx’    93 |                         fprintf(stderr, __VA_ARGS__); \       |                                         ^~~~~~~~~~~ gdb.c:1014:59: note: format string is defined here  1014 |                 errx("Command exceeds buffer size (%zu): %s\n",       |                                                          ~^       |                                                           |       |                                                           char *       |                                                          %ld

Hi @eboregelna,
Thanks for noticing this, and also for giving BREAD a try.
Fixed.
Actually I forgot to add '-Wall -Wextra' to the Makefile, and there are several warnings that need to be addressed, I will fix them ASAP.


Fix for error #11801

This commit fixes error #11801. If  fontSize text input is invalid, then
show default 12px value in textBlock.

Hi @jerrak0s, you'll need to sign the Brackets CLA http://dev.brackets.io/brackets-contributor-license-agreement.html

@petetnt done. Must i do anything else?

Why was this pr closed?

@abose My commit isn't working. Compile errors

ok.
Raise another PR when the issue gets resolved :+1:


Rewrite in Java, drop Scala dependencies

Resolves #160  Tests pass. This has the same behavior as 1.0.39, with fix to #152.
Most of the changes are straight conversions from Scala to Java. Use of Option and endless map and foreach has been eliminated in favor of simple if(... != null). A few things were refactored such as moved into separate files, but not much. The Java code actually ended up being more concise and definitely a lot clearer than Scala.
EDIT: I realized I should have made a separate branch with original groupId, etc. If there's interest, I'll recreate this PR.

Please consider this PR seriously. The Scala collection dependencies really hurt.

Why is nobody merging this?

@mbknor who is the active maintainer?

@muliyul @kyale Thank you for the support. Expecting a project to switch languages and accept a rewrite pull request is a tall order. Feel free to just switch to my fork. It's on Maven, I've been updating it with features/fixes (see the master 1.1.2 branch), and will take PRs.
Beside, this project brags in the README "Benefits: Simple implementation - Just one file" The file is 1500 lines. So idk what you can expect from the maintainer.


[QA] Incomplete Dogebuster scene at (-40, -59)

Explorer Alpha build versions:

v0.13.0

Issue Description:
In the Dogebuster scene at coordinates (-40, -59), only some assets are visible while the rest of the scene fails to render.
STR:

Launch the explorer
Write /goto -40,-59 in the chat
Observe the scene for missing elements.

Expected behavior:
https://github.com/user-attachments/assets/d986d0c0-7f84-42a7-b797-b85906935af7
Current behavior:

Additional Notes:
Windows 11. 12th Gen Intel(R) Core(TM) i7-12650H 2.30 GHz. nvidia geforce RTX

Currently working on v0.16


Created by & last edited by

did it all by myself

Can one of the admins verify this patch?

Good


Make drivers thread-safe

Ultimately, we would like to return to multi-threaded access to rasters and metadata. For this we would need to use SQLalchemy's threading mechanism.

Since all of the potential gains from multi-threaded access lie in I/O operations, I'm wondering if it would not make more sense to move towards asyncio and async / await, instead of multi-threading?
I have some experience with SQLAlchemy's new async interface together with asyncpg, so I could be of help here.
Even async with MySQL is slowly maturing with https://github.com/aio-libs/aiomysql though it's not officially supported by SQLAlchemy yet.

The main motivation for this is to have multi-threaded raster access; database queries are never the bottleneck in Terracotta, so no need to optimize here. So unless rasterio / GDAL goes through some serious paradigm shift (i.e., starts supporting non-blocking IO) I don't see much value in this over threading.

Right, GDAL would be the blocker here. Seems very unlikely that they would decide to make an async interface.

I could still see some combination of asyncio and threading that would be beneficial.
For example, using an ASGI framework for handling requests, then doing raster access in an external thread which is then awaited. This would mean that Terracotta could serve multiple requests asynchronously.
This would probably not do anything for single-request latency, but it should, in theory, mean that Terracotta would be able to handle many more requests per second. Might also improve single-request latency when under heavy load.
It's a big refactor and I'm not 100% sure if it can be done in a backwards compatible way, though at first glance it should.

I'm not against async in principle, but in this case the work should start with async raster retrieval, not database accesses. Also we'd need to dump flask? Seems like a huge undertaking to me, and given that GDAL still seems to have issues with multithreading this is hypothetical anyway.

I'm not against async in principle, but in this case the work should start with async raster retrieval, not database accesses.

Yes that's also what I'm suggesting, but to wrap the multithreading inside an async interface, so that it would work within an ASGI web framework. I'm just saying that for async raster retrieval to really pay off, requests should be handled async as well.

Also we'd need to dump flask? Seems like a huge undertaking to me, and given that GDAL still seems to have issues with multithreading this is hypothetical anyway.

Yes, it would be a lot of work, I'm not saying this is something we should definitely do. I'm just thinking out loud and airing ideas :slightly_smiling_face:
And yes, it would hinge on GDAL fixing the issues with multithreading. As I understand the issue, GDAL is supposed to handle multi-threaded reading, but there is a race-condition bug somewhere which means that this doesn't work in practice?

As I understand the issue, GDAL is supposed to handle multi-threaded reading, but there is a race-condition bug somewhere which means that this doesn't work in practice?

Yes, or we don't know. Since the bug is so elusive you only notice it in heavy use (i.e. a production setting), so it may actually be fixed already...


Possible to specify "icon sets" in Theme, so that they appear in Style drop-down menu?

Is it possible to specify "icon sets" in the Theme so that they appear as a group in the "Style" menu in the Condition Formatting - Icon dialog box?
I couldn't find this anywhere in the current schema, but could it be added in future (if it's even possible)?

It's possible using the top-level icons property.   If you're talkin' about grouping items together, I'll need to ask around :)

https://hatfullofdata.blog/svg-in-power-bi-part-7-using-theme-svg-icons/
https://powerbi.tips/2019/07/icons-upon-icons/

Thanks @yelper :)
Yes, actually I am familiar with how to add individual icons, but I'm wanting to group them so that they appear as a pre-defined set in the "Style" drop-down menu in the Conditional Formatting dialog box.
Any info you can find would be great!


head off monitor plugin interference (via filter induced session crea…

…tion) with login plugin bearer token support
@openshift/sig-developer-experience fyi
@scoheb discovered this interference to our login plugin's bearer token support recently while building his team's extension to our image
With my ever increasing disdain for more tuning knobs for this image, we are always setting this.  If users want the image to play nice with this monitor plugin and allow the feature we have turned off, they can extend out image.

@bparees comment addressed, fixed bash parsing error

/lgtm


Correct psar trade signal

@vsaveris It looks like the trade signal is reversed here.

Thanks @haphan, I will take a look of your change soon.

Great catch, according the Technical Analysis from A to Z book, where the implementation is based, the interpretation for the PSAR indicator is:
Close Long when price falls below the indicator
Close Short when price rises above the indicator
Fix is accepted.


USB printer not detected within CUPS

USB Printer Samsung SL-M2026
with CUPS 2.1.3
on Gentoo Linux (amd64, no multilib)
At first, everything looks fine:
kernel usb_printer support is disabled (to not interfere with libusb)
# zcat /proc/config.gz |grep USB_PRINTER
# CONFIG_USB_PRINTER is not set

lsusb:
Bus 001 Device 003: ID 04e8:3321 Samsung Electronics Co., Ltd

# ls -la /dev/bus/usb/001/003
crw-rw-r-- 1 root lp 189, 2 27. Apr 22:08 /dev/bus/usb/001/003

running the backend as root seems to detect the printer
# /usr/libexec/cups/backend/usb
DEBUG: Loading USB quirks from "/usr/share/cups/usb".
DEBUG: Loaded 77 quirks.
DEBUG: list_devices
DEBUG: libusb_get_device_list=12
DEBUG2: Printer found with device ID: MFG:Samsung;CMD:SPL,URF,FWV,PIC,EXT;MDL:M2020 Series;CLS:PRINTER;CID:SA_SPLV3_BW;MODE:SPL3,R000105;STATUS:BUSY; Device URI: usb://Samsung/M2020%20Series?serial=08HVB8GGCF013HK
direct usb://Samsung/M2020%20Series?serial=08HVB8GGCF013HK "Samsung M2020 Series" "Samsung M2020 Series" "MFG:Samsung;CMD:SPL,URF,FWV,PIC,EXT;MDL:M2020 Series;CLS:PRINTER;CID:SA_SPLV3_BW;MODE:SPL3,R000105;STATUS:BUSY;" ""

However, no printer is detected in the Interface and also not with lpinfo:
# lpinfo -v
network beh
network ipp
network lpd
network socket
network ipps
network https
network http

and running the backend as user lp does not show any printer:
# sudo -u lp /usr/libexec/cups/backend/usb
DEBUG: Loading USB quirks from "/usr/share/cups/usb".
DEBUG: Loaded 77 quirks.
DEBUG: list_devices
DEBUG: libusb_get_device_list=0

So my question would be:
Is there any other location that the usb backend needs the correct rights to?
even changing /dev/bus/usb/001/003 to 777 does not help here.
Is the "usb" backend supposed to be run as root or as user lp?
How can I make cups detect and use the printer?

The USB backend should run as the "lp" user, and your Linux distribution should be setting things up to properly set the permissions on the USB device files and directories. It sounds like the latter is not the case - please contact Gentoo to find out if something has changed to prevent USB permissions from being set properly...

Yes, sorry, the culprit was a grsec-enabled kernel with the option CONFIG_GRKERNSEC_SYSFS_RESTRICT
(just posting this here in case someone else fails into the same trap..)


[QUESTION] v12 Support for Java 17

We are implementing Java applications on Azure Kubernetes Service (AKS) with Java 17 and looking to add Azure Workload Identity (AWI) to authenticate the Azure SQL Server. We have encountered some limitations with Microsoft's SDK and their support for AWI token refresh.
Based on our research and testing, we discovered that Microsoft's only supports automatic AWI token refresh with the version 12, but its production version is not yet available for Java 17. Instead, it's only available as a preview version. Additionally, production versions for v12 are available only for Java 8 and 11.
https://mvnrepository.com/artifact/com.microsoft.sqlserver/mssql-jdbc
Microsoft SDK v11 & below supports setting the AWI token only once which expires after a set duration resulting in application failure.. We tested the preview version (12.3.0.jre17-preview) in our application and it is working as expected..
Can you please advise on when we can expect the stable v12 compatible with Java 17 or any other recommendation to handle it..

@no-1ankush Moving forward, the team decided to release a JDK 11+ version of driver that supports JDK versions >= JDK 11. But, prior to this decision, all older driver versions labeled jre11 also works with JDK 17 as these were tested against JDK 17 (if the driver was released after the JDK 17 release).
As for AWI, the driver should indirectly support this. AWI should be possible through authentication=ActiveDirectoryDefault, which uses the credential chain from the azure-identity library. I've never personally set this up myself, but if you add the above connection string property and configure "...environment variables set by the workload identity webhook, DefaultAzureCredential will authenticate the configured identity" as mentioned in the azure-identity doc here.
You can also use AWI through the driver's accessToken callback feature. This feature lets you implement a callback that the driver uses to fetch the token for authentication. When implementing the accessToken callback, you'll need to use the AWI credential from azure-identity. Examples of accessToken callback implementations can be found here.

Thank you @tkyc for answering the question.. Validated the Java 17 application with version 12.4.2.jre11, utilizing the accessToken call back feature and is working as expected..


Error in source ~/.zplug/init.zsh

Describe the bug
When I do the source ~/.zplug/init.zsh, there has a error:
source ~/.zplug/init.zsh
/home/aruix/.zplug/init.zsh:2: command not found: ^M
/home/aruix/.zplug/init.zsh:typeset:4: not valid in this context: zplugs^M

I have no idea about this. I am the newest zsh and the newest zplug. Both of them are I just downloaded.

The init.zsh is nice.

I am currently experiencing the exact same issue. Your issue is still pretty recent on the list. I'm currently trying to figure out what I can.


Alpine containers leftovers

When using Gefyra commands some alpine based containers are spawned, but then, they are being behind.

This has been fixed in version 0.6.7

Hi, I keep getting this on version 0.6.15


wget oberloads website/CPU/apache while crawling

there needs to be a throttling of the wget requests as without it you basically initiate a DDoS attack on your own webserver.

Good point. I am thinking about adding a fixed --limit-rate parameter.

I added an option called --limit which will be passed to wget's --limit-rate option. Please use version 1.3 to use this new option.


merge package template from arlac77/npm-package-template

package.json

chore(devDependencies): update<EMAIL_ADDRESS>from template

.travis.yml

chore(travis): merge from template .travis.yml

Coverage remained the same at 97.143% when pulling 25126f6177f52a39020dbfff14246cfc3bf844de on template-sync-1 into 1cac695b6126148497ea3018f662105bb658642c on master.

Coverage remained the same at 97.143% when pulling 25126f6177f52a39020dbfff14246cfc3bf844de on template-sync-1 into 1cac695b6126148497ea3018f662105bb658642c on master.

Codecov Report

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

@@          Coverage Diff          @@
##           master    #40   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           2      2
  Lines          29     29
=====================================
  Hits           29     29

Continue to review full report at Codecov.

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

Coverage remained the same at 97.143% when pulling 605a01fffe972ab609717a58aa5e2b0d6023941b on template-sync-1 into 1cac695b6126148497ea3018f662105bb658642c on master.


[BUG]  Unable to build against aws-xray-sdk-go package

When attempting to build using orchestrion my package will not build due to this error:
github.com/aws/aws-xray-sdk-go@v1.8.5/xray/sql_context.go:62: driver.Driver is not a type
This does not occur when building without the Orchestrion toolchain / package.
Using latest version of Go, along with whatever is most recently pulled via the go get -u and go mod tidy process.

👋 Thanks for bringing this up. We just released<EMAIL_ADDRESS>to tag #449 fixing this.


[4.0][Feature] Implement reorderButtons

Local branch for PR https://github.com/Laravel-Backpack/CRUD/pull/2446 so we can add unit tests

A new inspection was created.

The inspection completed: 1 new issues, 1 updated code elements

@pxpm This looks great upon review, but it needs a unit test since it's a new CrudPanel method. So... I think it's a great opportunity for you to get familiar with how unit test are set up in Backpack, I know you haven't contributed with any unit tests so far.
My thinking:

we'll need to add unit tests to the features for 4.1 you've contributed;

Can you please do this unit test for me? Let me know if you need help with anything.
To set up Backpack for unit testing & run the unit tests:
cd yourproject
cd vendor/backpack/crud
composer install
composer test

Then it should just be a matter of adding the new test method to the right file, in this case tests/Unit/CrudPanel/CrudPanelButtonsTest.php
Let me know if you stumble anywhere - I know this testing part in Backpack isn't documented at all, but my tips above should help.
Cheers!

Hey @tabacitu
While testing this, I think I found an issue. If I add 3 fields, and reorder only two, the reorder operation will remove the field that I did not order from the buttons array.
public function testReorderButtons() {
        $this->crudPanel->addButton('line', 'update', 'view', 'crud::buttons.update', 'end');
        $this->crudPanel->addButton('line', 'show', 'view', 'crud::buttons.show', 'end');
        $this->crudPanel->addButton('line', 'test', 'view', 'crud::buttons.update', 'end');

        $this->crudPanel->reorderButtons('line', ['show', 'test']);

        $this->assertEquals(['show', 'test', 'update'], $this->crudPanel->buttons()->pluck('name')->toArray());
    }

Is this expected behaviour, or the buttons that are not reordered should be pushed to the end instead of removed ?
Best,
Pedro

Wow nice catch @pxpm ! Good question.
I think we should do the same thing we do for fields and columns. Even if it's a bad behaviour there, at least it should be consistently bad between Fields, Columns and Buttons. Right? 😄 I've tried to see how it works for Fields and Columns, but the docblocks aren't very specific on whether they get pushed at the start/end.
    /**
     * Order the CRUD fields. If certain fields are missing from the given order array, they will be
     * pushed to the new fields array in the original order.
     *
     * @param array $order An array of field names in the desired order.
     */
    public function orderFields($order)
    {
        $this->transformFields(function ($fields) use ($order) {
            return $this->applyOrderToFields($fields, $order);
        });
    }

    /**
     * Order the CRUD columns. If certain columns are missing from the given order array, they will be pushed to the
     * new columns array in the original order.
     *
     * @param array $order An array of column names in the desired order.
     */
    public function orderColumns($order)
    {
        $orderedColumns = [];
        foreach ($order as $columnName) {
            if (array_key_exists($columnName, $this->columns())) {
                $orderedColumns[$columnName] = $this->columns()[$columnName];
            }
        }

        if (empty($orderedColumns)) {
            return;
        }

        $remaining = array_diff_key($this->columns(), $orderedColumns);
        $this->setOperationSetting('columns', array_merge($orderedColumns, $remaining));
    }

To be honest, I have no idea how orderFields() and orderColumns() work - I don't think I've ever used them outside of testing.
From my point of view, for this PR to be ready to merge we need to:

[ ] see what happens when using orderFields() and orderColumns() and do the same for reorderButtons()
[ ] rename reorderButtons() to orderButtons() for consistency between Fields, Columns, Buttons;
[ ] create a unit test that specificly tests this use case you discovered, testOrderButtonsTwoOutOfThree();
[ ] if you discover this use case (order 2 out of 3 items) isn't covered by unit tests in Fields or Columns either, please also create testOrderFieldsTwoOutOfThree() and testOrderColumnsTwoOutOfThree();

Cheers!

A new inspection was created.

A new inspection was created.

Hey @tabacitu
Refactored this to behave like fields and columns:

If button is not ordered by developer is added at the end of the ordered.

I think this is good, please give it a try.
Best,
Pedro

A new inspection was created.

Works as expected! Good job @pxpm ! Merging this into master. It'll be available in 4.0 with the next patch release.


Added a simpler bad word checker in on_message

No need for a complicated one.
Feel free to add more bad words KEK

The current version works, is more efficient, goes along perfectly well with the current code architecture.


[tl_classifier] Add 2 models and classifier finally

[tl_classifier] Update class to include Tensorflow and 2 models file
[tl_detector] replace simple light.state with classifier

Addressed some of the comment from @yangchunluo  and I'll go ahead and merge


package.xml version was not bumped to latest version 1.4.0

The latest version 1.4.0 was released recently, but the package.xml file still points to the previous version 1.3.1
https://github.com/norlab-ulaval/libpointmatcher/blob/master/package.xml#L3

Fixed in PR 550
Thanks for flagging it @cvina


Controller-manager should retry upon a connection lost to the api-server

It appears that controller manager never retries, if it lost the connection to the api server.
-- Logs begin at Thu 2014-12-11 18:37:57 UTC. --
Dec 11 18:38:17 master systemd[1]: Starting Kubernetes Controller Manager...
Dec 11 18:38:17 master systemd[1]: Started Kubernetes Controller Manager.
Dec 11 18:38:17 master kube-controller-manager[1172]: I1211 18:38:17.294687    1172 plugins.go:70] No cloud provider specified.
Dec 11 18:38:17 master kube-controller-manager[1172]: E1211 18:38:17.303476    1172 replication_controller.go:109] Unexpected failure to watch: Get http://<IP_ADDRESS>:8080/api/v1beta1/watch/replicationControllers?fields=&labels=&resourceVersion=: dial tcp <IP_ADDRESS>:8080: connection refused
Dec 11 18:38:17 master kube-controller-manager[1172]: E1211 18:38:17.306522    1172 endpoints_controller.go:49] Failed to list services: Get http://<IP_ADDRESS>:8080/api/v1beta1/services?labels=: dial tcp <IP_ADDRESS>:8080: connection refused

I don't think this is a problem in practice, at least not any longer.


The simple example runs to completion, but does not output a plot

Description
I ran the simple example from GitHub and it didn't output graphical results, is this normal?
To Reproduce
import pandas as pd
import matplotlib.pyplot as plt

from gluonts.dataset.pandas import PandasDataset
from gluonts.dataset.split import split
from gluonts.torch.model.deepar import DeepAREstimator

# Load data from a CSV file into a PandasDataset
df = pd.read_csv(
    "./AirPassengers.csv",
    index_col=0,
    parse_dates=True,
)
dataset = PandasDataset(df, target="#Passengers")

# Split the data for training and testing
training_data, test_gen = split(dataset, offset=-36)
test_data = test_gen.generate_instances(prediction_length=12, windows=3)

# Train the model and make predictions
model = DeepAREstimator(
    prediction_length=12, freq="M", trainer_kwargs={"max_epochs": 5}
).train(training_data)

forecasts = list(model.predict(test_data.input))

# Plot predictions
plt.plot(df["1954":], color="black")
for forecast in forecasts:
    forecast.plot()
plt.legend(["True values"], loc="upper left", fontsize="xx-large")

Error message or code output
No errors are reported, but the run completes without outputting the plot, it seems that the following code has lost their purpose
# Plot predictions
plt.plot(df["1954":], color="black")
for forecast in forecasts.
    forecast.plot()
plt.legend(["True values"], loc="upper left", fontsize="xx-large")

This is what are shown in the terminal
D:\anaconda\envs\GluonTS\python.exe D:\pythonProject\ForecastPassenger.py
GPU available: False, used: False
TPU available: False, using: 0 TPU cores
IPU available: False, using: 0 IPUs
HPU available: False, using: 0 HPUs
D:\anaconda\envs\GluonTS\lib\site-packages\pytorch_lightning\trainer\connectors\logger_connector\logger_connector.py:67: UserWarning: Starting from v1.9.0, `tensorboardX` has been removed as a dependency of the `pytorch_lightning` package, due to potential conflicts with other packages in the ML ecosystem. For this reason, `logger=True` will use `CSVLogger` as the default logger, unless the `tensorboard` or `tensorboardX` packages are found. Please `pip install lightning[extra]` or one of them to enable TensorBoard support by default
  warning_cache.warn(
D:\anaconda\envs\GluonTS\lib\site-packages\pytorch_lightning\trainer\configuration_validator.py:70: PossibleUserWarning: You defined a `validation_step` but have no `val_dataloader`. Skipping val loop.
  rank_zero_warn(

  | Name  | Type        | Params | In sizes | Out sizes
----------------------------------------------------------------
0 | model | DeepARModel | 23.3 K | ?        | [1, 100, 12]
----------------------------------------------------------------
23.3 K    Trainable params
0         Non-trainable params
23.3 K    Total params
0.093     Total estimated model params size (MB)
Epoch 0: : 50it [00:05,  9.23it/s, v_num=7, train_loss=5.860]Epoch 0, global step 50: 'train_loss' reached 5.85503 (best 5.85503), saving model to 'D:\\pythonProject\\lightning_logs\\version_7\\checkpoints\\epoch=0-step=50.ckpt' as top 1
Epoch 1: : 50it [00:04, 10.66it/s, v_num=7, train_loss=4.780]Epoch 1, global step 100: 'train_loss' reached 4.78271 (best 4.78271), saving model to 'D:\\pythonProject\\lightning_logs\\version_7\\checkpoints\\epoch=1-step=100.ckpt' as top 1
Epoch 2: : 50it [00:04, 10.94it/s, v_num=7, train_loss=4.570]Epoch 2, global step 150: 'train_loss' reached 4.57120 (best 4.57120), saving model to 'D:\\pythonProject\\lightning_logs\\version_7\\checkpoints\\epoch=2-step=150.ckpt' as top 1
Epoch 3: : 50it [00:04, 11.07it/s, v_num=7, train_loss=4.360]Epoch 3, global step 200: 'train_loss' reached 4.35962 (best 4.35962), saving model to 'D:\\pythonProject\\lightning_logs\\version_7\\checkpoints\\epoch=3-step=200.ckpt' as top 1
Epoch 4: : 50it [00:05,  9.95it/s, v_num=7, train_loss=4.290]Epoch 4, global step 250: 'train_loss' reached 4.28682 (best 4.28682), saving model to 'D:\\pythonProject\\lightning_logs\\version_7\\checkpoints\\epoch=4-step=250.ckpt' as top 1
`Trainer.fit` stopped: `max_epochs=5` reached.
Epoch 4: : 50it [00:05,  9.89it/s, v_num=7, train_loss=4.290]

Process finished with exit code 0

Environment

Operating system: Windows
Python version: 3.8.0
GluonTS version: 0.14.0

plt.show()


Message posting with File URL isn't working....

Not sure if it is on my end, but when I pass a URL the script bombs.  Tried both as a string and a string in a list....
test_url="https://upload.wikimedia.org/wikipedia/commons/thumb/6/64/Cisco_logo.svg/375px-Cisco_logo.svg.png"
Traceback (most recent call last):
  File "testapi.py", line 37, in <module>
    message = api.messages.create(room.id,None,None,None,None,test_url)
  File "/usr/local/lib/python2.7/dist-packages/ciscosparkapi/api/messages.py", line 217, in create
    assert files is None or isinstance(files, list)
AssertionError

test_url=["https://upload.wikimedia.org/wikipedia/commons/thumb/6/64/Cisco_logo.svg/375px-Cisco_logo.svg.png"]
Traceback (most recent call last):
  File "testapi.py", line 37, in <module>
    message = api.messages.create(room.id,None,None,None,None,test_url)
  File "/usr/local/lib/python2.7/dist-packages/ciscosparkapi/api/messages.py", line 239, in create
    post_data[u'files'] = utf8(files)
  File "/usr/local/lib/python2.7/dist-packages/ciscosparkapi/helper.py", line 98, in utf8
    assert isinstance(string, basestring)
AssertionError

Brad, thank you for reporting this.  I have fixed the issue.  It was simply a matter of the 'files' parameter not being treated as a list as it should be.  It is fixed in v0.1.2, which has been posted to PyPI.


change clickhouse driver & airflow version

Tested with Airflow 2.0.0, 2.0.1 and 2.1.0.
Not sure about apache-airflow~=2.1.0, probably apache-airflow>=2.0.0, <2.2.0 suits better.

Will update requirement to apache-airflow>=2.0.0,<2.2.0 on master, this is the more correct one.


 deviceID isn't defined

The <AuPlugin> deviceID isn't defined yet in Reference.html
The id constists of 3 32 bit numbers (componentType / componentSubType / componentManufacturer), so it would probably make sense to use a 24 digit hex string.

Looks to me that deviceID  is already there:
https://htmlpreview.github.io/?https://github.com/bitwig/dawproject/blob/main/Reference.html#AuPlugin

It describes IDs that are UUID, integer or text. But AU isn't any of those I think? It's 3 integers.

Technically deviceID it is only a string, so we can put anything in it. I tried to check with Studio One but I only have the Demo and it did not output any data for AU plugins. Not sure if this is a restriction of the demo or if it is not implement currently since Bitwig does not support AU plugins.


stopApp() function for iOS

cf. #36 for Android

Since we're currently relying on Frida to get the PID for a running app anyway, I'll also use Frida's killing capabilities.


Make None default for exclude fields

Closes #549
@jackton1 That's all I had in mind. I had a quick scan over get_fields_and_unique_fields_from_cls which seems to be the only other place the excluded fields are used but I don't see anything obvious where this could break things.

@saschahofmann other than changing the default type ([] -> None) are there any cases where the excluded fields would result in skipping fields?
Arguably the use of any should evaluate to True even if the field isn’t excluded.

Not sure I understand the question? The point of changing the behavior is that I expected all fields to be included when I provide an empty list for excluded fields. Maybe there are more explicit solutions to achieve this (e.g. another flag) but I thought this would already be quite good.

Arguably the use of any should evaluate to True even if the field isn’t excluded.

I didnt change the behaviour of the any clause except that now if you provide an empty list the clause will actually return True . If you don't change the exclude default but use an include the first part of any can of course still return True?
Sorry if I am overexplaining not sure I got it 😅

The design of the CloneMixin is to only copy over all local model fields by default and require explicit list of fields in the case of a related field i.e o2o, m2m etc.
One way to get around copying all fields would be to provide and excluded field i.e all except this field.
If your looking to get around declaring an excluded or included list of fields this change wouldn’t support copying related data from non declared fields since we also check for the field name existing in list.

I think I'm not trying to get around declaring a list of excluded fields. I think this change has two effects: one it allows for a method to clone all fields of a model (by providing an empty list as the excluded fields) . I'm actually going to comment on the other issue I have open with some more suggestions!

I think it's the more logical behaviour. I think the default should be as you have it right now. If the developer doesn't provide any lists (include or exclude) none of the related fields are copied. This behaviour is maintained with the current changes.

But if I provide a list with one field suddenly all fields except that field are copied. Ok that makes sense but if I provide an empty list I think the logical behaviour would be that all fields are cloned!

And I think your last point isn't true? If I now provide an empty list for an exclude the first part of the any will still return false but second part now returns true.
That being said maybe I should write a test for that.

After taking a look seems your right using an empty list should get around the issue.
Though I’m still thinking that there should be a better way instead of having a user declare an empty list to get the same default behaviour of copying all related fields.
A separate class property can be use to google on the default copy all functionality as opposed to an empty list and we can always assume the excluded fields to be a list and check for membership of the field as opposed to two checks right now that would be falsy.

I think it'd definitely be an option to create another flag but do you disagree that the naive expectation of providing an empty list (not knowing that it's the default already) would be that it includes are all fields?

Giving that the presence of a list would create two side effects ie. Don’t copy field ‘x’ in the list but also copy all fields if the list is empty. I’ll prefer using a more explicit flag to distinguish between the later.

Interesting, for me that is a single side-effect 😄 and exactly what I expected to happen but I guess we have to agree to disagree here then.


how to run test with peerDependencies

My project like this:
package.json:{
...
"peerDependencies": {
  "b":"^1.0.0"
}
...
}

a.js:
import b from "b";
b.sayHi();

a.test.js:
import a from a;
describe('xxxxxxx', ()=>{
  it('ssssss', ()=>{
   expect(true).toBe(true);
  }
}

It report error with: Cannot find module 'b' from 'a.test.js'
my question is how to resolve test with peerDependencies

Add it to your devDependencies.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions. You'll find more on Jest docs help page. Thank you :)


Update monitoring e2e test coverage

What type of PR is this?
/kind enhancement
What does this PR do / why we need it:
https://issues.redhat.com/browse/GITOPS-1007
Have you updated the necessary documentation?

[ ] Documentation update is required by this PR.
[ ] Documentation has been updated.

Which issue(s) this PR fixes:
Fixes - https://issues.redhat.com/browse/GITOPS-1007
Test acceptance criteria:

[ ] Unit Test
[x] E2E Test

How to test changes / Special notes to the reviewer:
make test-e2e should pass

/retest

/lgtm .. please look at the failed test

/LGTM
/approve

/retest

/retest

/lgtm

platform issue
/retest

/test v4.8-e2e

/lgtm


How can i extract keypoints into  json file ?

Hi I am using mediapipe holistic pose in python ? I was wondering if there is a flag or parameter that one can use to dump the 33 keypoints to a json file ?

Hi @timtensor, You can convert the landmarks into the dictionary and save them into a file using json.dump().

@sgowroji thank you , is there an example that you might have used , that can be checked for reference ?

Hi @timtensor, Right i don't have any examples, But you can give a try with above comment and let me know if you face any error. Thanks!

Followup .. ive made a small script that extracts the Mediapipe keypoints and exports them as OpenPose compatible JSON format.
Hopefully this helps others aswell.
Mediapipe to Openpose JSON


Add diff test

Add a diff test using a few light curves to ensure that performance does not change. Since the algorithm uses randomized sampling, we should check that the result approximately matches (instead of doing a direct diff on the input files).

Fixed in #125


Bug: connected all points but not win

Hi. For first, big thanks for great game!
I found a small bug. I was able to connect all points, without using all wires (see screenshot). Can you look at this small bug and just smash it? Thanks a lot :)

Update: after reading app description in FZ store, no fix needed, but, a message "All wires must be used" when you connect all lamps will be fine :)

Hi Toni,
Thanks a lot for your bug report! It's a pleasure to know that someone is playing this game on flipper :)
Yes, I agree that this situation when not all wires are used but all lamps are turned in - is non-obvious one. It's a rare case, but I agree it should be handled somehow.
I think I will add a message to a game or smth to tell the player that all wires must be used. Or.. just show "you win" message.
Sorry for a long response, I'm on a long vacation without flipper device for about a month or two, but I'll try to fix it soon when I come back :)
Thanks again for this bug report!!

@AlexTaran, I'm playing this game everytime when I can. Me as a electrician/IT guy love it, because it's good for training to fast scematics reading.
So, I'm not sure about correct fix. In app description is written "The game ends when all the wires are used and deliver power to all lamps.". After a long thinking about, my idea about best fix is:
For Easy mode: after all lamps connected, but not all wires used, once per game show message "All wires must be used". Easy mode is really easy to rebuild scheme. Then user can training brain in a different way.
For medium and hard mode: if all lamps are connected, then show a win message.
After fix, please consider to change app description in FZ App list. Important it's that one sentence "The game ends when all the wires are used and deliver power to all lamps.". In app is written "Turn field cells and connect all lamps to the power source".
Maybe some additional ideas for future:
On win, it's possible to add a "Save screenshot"? On win, message "Press OK to save screen shot".
This game is about lamps/electricity. It's possible, to add a micro easter egg? So, as we know, classic light bulbs are broken sometimes, after a switch it's turned on. Maybe in case 1:100 000 app can just blow random light, and show a message "Sorry, bulb exploded, start again". Maybe only in easy mode.
About "All wires" - maybe a new mode can be added. This new mode will make a hard map, but for example only half of wires will be used. Rest of wires can be used to confuse player, and make brain training better.
Don't worry about time. Enjoy vacation :) I'm looking forward for next co-op :)


're-loko.php' not write results (Sites Wordpress)

Hello M.GoogleX
this scipt php didn't write sites in file . but in cmd show my loko86596585.txt
Why ?
and great thanks for your job you are the best .
continuous <3

I have removed this project, but I have the latest version that I have not uploaded here. maybe this latest version will help you => https://drive.google.com/file/d/0B5Y69UUUpLHGV0szSlNNMkJnbHM/view?usp=sharing


vmware cks: Guard k8s cluster root disk resize if no root disk size passed

Description
This PR prevents k8s cluster nodes' root disks from being resized on VMware if root disk size isn't provided and addresses a test regression on scale vm.
2021-04-27 06:26:28,971 ERROR [c.c.k.c.a.KubernetesClusterActionWorker] (API-Job-Executor-8:ctx-8126598d job-803 ctx-9a6a3ae2) (logid:f9bfd370) Provisioning the master VM failed in the Kubernetes cluster : k8s
com.cloud.exception.InvalidParameterValueException: Going from existing size of<PHONE_NUMBER> to size of 0 would shrink the volume.Need to sign off by supplying the shrinkok parameter with value of true.
	at com.cloud.storage.VolumeApiServiceImpl.resizeVolume(VolumeApiServiceImpl.java:1077)
	at com.cloud.storage.VolumeApiServiceImpl.resizeVolume(VolumeApiServiceImpl.java:192)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[X] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity
Bug Severity

[ ] BLOCKER
[ ] Critical
[X] Major
[ ] Minor
[ ] Trivial

Screenshots (if appropriate):
How Has This Been Tested?
Deployed a Kubernetes cluster without passing any root disk size - and it deployed successfully

@blueorangutan package

@Pearl1594 a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

Packaging result: :heavy_check_mark: centos7 :heavy_check_mark: centos8 :heavy_check_mark: debian. SL-JID 478

@blueorangutan test centos7 vmware-67u3

@Pearl1594 a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests

Trillian test result (tid-541)
Environment: vmware-67u3 (x2), Advanced Networking with Mgmt server 7
Total time taken: 37829 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4957-t541-vmware-67u3.zip
Intermittent failure detected: /marvin/tests/smoke/test_scale_vm.py
Smoke tests completed. 86 look OK, 1 have error(s)
Only failed tests results shown below:

Test
Result
Time (s)
Test File

ContextSuite context=TestScaleVm>:setup
Error
0.00
test_scale_vm.py

@Pearl1594 test_scale_vm will need some fixing for vmw

@blueorangutan package

@Pearl1594 a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

Packaging result: :heavy_check_mark: centos7 :heavy_check_mark: centos8 :heavy_check_mark: debian. SL-JID 479

@blueorangutan test matrix

@Pearl1594 a Trillian-Jenkins matrix job (centos7 mgmt + xs71, centos7 mgmt + vmware65, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests

Trillian test result (tid-548)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 32586 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4957-t548-kvm-centos7.zip
Smoke tests completed. 87 look OK, 0 have error(s)
Only failed tests results shown below:

Test
Result
Time (s)
Test File

Trillian test result (tid-549)
Environment: vmware-65u2 (x2), Advanced Networking with Mgmt server 7
Total time taken: 35190 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4957-t549-vmware-65u2.zip
Smoke tests completed. 87 look OK, 0 have error(s)
Only failed tests results shown below:

Test
Result
Time (s)
Test File

Trillian test result (tid-547)
Environment: xenserver-71 (x2), Advanced Networking with Mgmt server 7
Total time taken: 35381 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4957-t547-xenserver-71.zip
Intermittent failure detected: /marvin/tests/smoke/test_domain_service_offerings.py
Intermittent failure detected: /marvin/tests/smoke/test_internal_lb.py
Intermittent failure detected: /marvin/tests/smoke/test_iso.py
Intermittent failure detected: /marvin/tests/smoke/test_list_ids_parameter.py
Smoke tests completed. 85 look OK, 2 have error(s)
Only failed tests results shown below:

Test
Result
Time (s)
Test File

ContextSuite context=TestDomainsServiceOfferings>:setup
Error
3.41
test_domain_service_offerings.py

ContextSuite context=TestInternalLb>:setup
Error
0.00
test_internal_lb.py


Corrected references for equations. Changed likelihood names.

@a-tahmid are these changed to your code ok? If yes let me know and i can merge these trivial changes directly

The changes should not alter the functionality in any way. It's a correction to the references as neither of these likelihoods are actually described in arxiv:1712.01293. What I have labelled now as mcllh_mean is described in arxiv:1901.04645 and provides a good numerical approximation to eq. 26 of arxiv:1712.01293. Eq. 20 of arxiv:1712.01293 is another likelihood entirely and does not provide a good numerical approximation to eq. 26 of arxiv:1712.01293. Additionally, since both of the likelihoods were first described in arxiv:1901.04645 I have changed the labeling to more closely reflect the notation used in the paper. This is sort of a subtle issue as the derivation of eq. 20 in arxiv:1712.01293 is a little hard to follow with the chosen notation of that paper, but in fact the discovery of LMean as described in arxiv:1901.04645 was the motivation for writing arxiv:1901.04645.

I can provide some code for eq. 20 in arxiv:1712.01293 if there is interest, but it seems to perform worse than other methods.

@austinschneider Yes I saw the changes are only about naming / reference.....just as a courtesy I'd like to give @a-tahmid a chance to acknowledge these as he is the one who wrote the PISA implementation.
If we won't hear back soon I'll go ahead and merge it as is

I've taken a look at the changes, and they make sense. I had some suggestions:
Since we're changing the names to reflect the nature of the equation, instead of mcllh_mean and mcllh_eff we should perhaps name it pgllh_mean and pgllh_eff where 'pg' stands for 'poisson-gamma'. Also, under the reference for LMean, I think it'd be a good idea to add that LMean is a good analytic approximation to eq 26 from arxiv:1712.01293.


Hide fragments with Navigation

Hi,
I took some time to check out the new Navigation lib. I like the clean implementation of app-in navigating. Unfortunately there is no option to hide/show fragments instead of replacing them. Is there a deeper reason behind this decision?
I think hiding fragments is useful especially for top-level (i.e. drawer) navigation because these are fragments that will be opened often.
Some fragments are expensive to instatiate again and again and what about if I have a "ScannerFragment" showing a list with ble devices or state in general. I would lose the content every time I switch the fragment. Or is there a solution for this problem?
Thanks in advance

The same question

This question has been in my mind since I first started using this library.

Has anyone found a solution to this yet? Do I have to give up on the Navigation Component if I just want to show and hide a particular fragment?

Hello Guys Any one find the solution please let me know

Please file feature requests for Navigation on the issue tracker explaining your use case.

Hi guys please let me know if you find a solution for this, i would really appreciate it.

@ianhanniballake is there any update about hide fragment for navigation components?

@HoomanAbedi
Just to remove app:destination attribute from navigation action .
https://medium.com/@programmerr47/navigate-back-with-navigation-component-6cec37ba6964

Hi guys please let me know if you find a solution for this, i would really appreciate it.


I swear Keen never tests anything.
For starters, the form we need to submit cannot accept JSONs despite them asking for JSON files.
Secondly, some ships won't even evolve past the first generation.
Thirdly, the render window stops working if you are in another tab for long enough.

Marek, resign already. You're alienating your community and ruining a game we love by giving us ZERO significant updates in the last 5 years.
  I have a decently powerful computer...and they are expecting the fanbase to go through 4-6 iterations per generation?
Keen, 90% of the userbase is running like, a 1060 6GB.

*Switching to windows fixes it
And yeah, I bet you there are a bunch that are much like yourself hardware wise, but as for myself I have a 1050Ti 4Gb and a i5-9600K, so I fit more in the 90% part

I mean the 1050 Ti isn't a bad card. The game runs well on low end hardware if you turn settings down.
But the process here was not considered for most users. This is what happens when there is 0 QA/Testing. I can't believe that someone actually published this thinking "yes let's let users sit here for multiple hours for a single test run".
Either Keen's QA is dogshit or they didn't QA it at all.

Unaffiliated developer here.
This repo is a fork of the actual project by Araya Research, not Keen.  The project was supported by a Good AI grant.  Good AI is technically also not Keen.  This project cannot be conceived to be in competition for resources with any development priority for Space Engineers.
If it isn't already obvious, I'll say it outright. Your license for Space Engineers in no way entitles you to have any expectation whatsoever regarding the state of this project.  Even if it did, this "issue", is 1% information and 99% vitriol.  Do the creative world a favor, delete the misspelled GitHub account you made purely to post this drek, and stick to consumption.  Alternatively, do better.

 So what I made a typo.

This definitely wasn't QA tested before release, given the fact that the program runs as a server with a BROWSER AS THE RENDER WINDOW.
It's Python, you could have used OpenGL or Vulkan within the program itself.
In fact if a browser wasn't used, the program could operate 65% more efficiently.
99% high, 1% horse. Kite down, loser.

@pogue-mahoney Has a very good point, it isn't keen, they are just using it because it was designed to AI generate ships for their game Space Engineers. Though I think Keen did kinda overlook the how long it takes to run on most peoples hardware, not everyone has highend stuff, but as for the general running of it, it runs fine (Just not via WINE)
@WhtieTigerOfTheNorth
The AI part runs in the python executable, the browser is simply a way of displaying the generated model, (Probably using WebGL, something similar to OpenGL but for web) and providing settings. As for the python part using OpenGL or Vulkan, these would be wrong for the use case of AI computation, OpenCL or CUDA would be (From my understanding) used for the computation as they provide the GPU accleration needed.

Another issue is that pogue baloney here specializes in C++, not Python so he clearly doesn't understand the issues with the program.
webGL is notoriously slower than opengl as well, another huge issue with the program.
Everything about this project screams rushed and half-assed.

Another issue is that pogue baloney here specializes in C++, not Python so he clearly doesn't understand the issues with the program.
webGL is notoriously slower than opengl as well, another huge issue with the program.
Everything about this project screams rushed and half-assed.

If you have anything to contribute to GitHub with your recently created account, then feel free to do so.
This is not a Forum board, go complain about the development of this project somewhere else and do not clog up the issues tab with your half-assed whining.
Fork, make your own version and prove your points if you'd like.

It's not half-assed you're just mad that I'm right

Dear @WhtieTigerOfTheNorth , I would kindly ask you to refrain from using offensive language here. This is an issues section where you are supposed to report issues you found with the program/code. There is no reason not to act kindly to each other here, we're all human beings. If you keep using offensive language, I will block you from this repository. Please consider this as the only and final warning.
As mentioned by others, this is a result of a research project, whose primary outcomes are algorithms for improved evolutionary search and for interactive user+machine evolution. Another outcome is this application which allows you to generate new spaceships for Space Engineers using these algorithms. The application has received a lot of attention from the researchers who developed the method, but it is to be expected, despite a QA round, that some issues may remain. It is for this reason we have the Issues section and invite everyone to submit their issues.
If you would like to see the issues you mention in your original post resolved, please file separate Issues for each problem you listed, along with details that the Issue template invites you to specify (your system spec, browser, any log files collected etc.)

  How this ever was approved for a grant is way beyond my understanding.
I can take you out without profanity, but I prefer to be direct.

Please create separate Issues if you want any of the points you described in your original post to receive further attention.

 Fuck, you're dense.


[feat] Heavily simplify MiniLMEmbedder; add SentenceTransformersEmbedder + new models

Hello!
Pull Request overview

Heavily simplify MiniLMEmbedder; no more manual chunking; tokenizing; pooling, etc.

Fixes a bug with the max_seq_length of 256 being ignored; likely leading to worse embedding performance.

Introduce a new SentenceTransformersEmbedder: Initializes and uses any of the 6000 Sentence Transformer models.

Meant to be subclassed for now; eventually you might want to allow your users to pick and choose their own vectorizer with a UI element?

Add new embedders:

AllMPNetEmbedder based on https://huggingface.co/sentence-transformers/all-mpnet-base-v2
MixedbreadEmbedder based on https://huggingface.co/mixedbread-ai/mxbai-embed-large-v1

Details
I've abstracted away a lot of the inference steps for embedding models via transformers by relying on sentence-transformers instead. This simplifies the code a lot, while introducing a lot more flexibility in your embedders - a new model can be added with ~4 real lines of code. I've done exactly that for all-mpnet-base-v2 and mxbai-embed-large-v1.
I didn't want to add too many embedders immediately, but you might also want to consider:

https://huggingface.co/BAAI/bge-m3
https://huggingface.co/intfloat/multilingual-e5-large
https://huggingface.co/nomic-ai/nomic-embed-text-v1.5
https://huggingface.co/jinaai/jina-embeddings-v2-base-en

Or even better: introducing a UI element that allows users to select from the Sentence Transformer models.
Note
It looks like Weaviate does not work on Windows, as I get the following error:
Click to view
[sic]\envs\verba\lib\site-packages\PyPDF2\__init__.py:21: DeprecationWarning: PyPDF2 is deprecated. Please move to the pypdf library instead.
  warnings.warn(
INFO:     Will watch for changes in these directories: ['C:\\code\\Verba']
INFO:     Uvicorn running on http://<IP_ADDRESS>:8000 (Press CTRL+C to quit)
INFO:     Started reloader process [21072] using WatchFiles
[sic]\envs\verba\lib\site-packages\PyPDF2\__init__.py:21: DeprecationWarning: PyPDF2 is deprecated. Please move to the pypdf library instead.
  warnings.warn(
[sic]\envs\verba\lib\site-packages\huggingface_hub\file_download.py:1132: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
  warnings.warn(
[sic]\envs\verba\lib\site-packages\huggingface_hub\file_download.py:1132: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
  warnings.warn(
ℹ Setting up client
ℹ Using Weaviate Embedded
Process SpawnProcess-1:
Traceback (most recent call last):
  File "[sic]\envs\verba\lib\multiprocessing\process.py", line 314, in _bootstrap
    self.run()
  File "[sic]\envs\verba\lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\tom\AppData\Roaming\Python\Python310\site-packages\uvicorn\_subprocess.py", line 76, in subprocess_started
    target(sockets=sockets)
  File "C:\Users\tom\AppData\Roaming\Python\Python310\site-packages\uvicorn\server.py", line 60, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "[sic]\envs\verba\lib\asyncio\runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "[sic]\envs\verba\lib\asyncio\base_events.py", line 649, in run_until_complete
    return future.result()
  File "C:\Users\tom\AppData\Roaming\Python\Python310\site-packages\uvicorn\server.py", line 67, in serve
    config.load()
  File "C:\Users\tom\AppData\Roaming\Python\Python310\site-packages\uvicorn\config.py", line 477, in load
    self.loaded_app = import_from_string(self.app)
  File "C:\Users\tom\AppData\Roaming\Python\Python310\site-packages\uvicorn\importer.py", line 21, in import_from_string
    module = importlib.import_module(module_str)
  File "[sic]\envs\verba\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "c:\code\verba\goldenverba\server\api.py", line 33, in <module>
    manager = verba_manager.VerbaManager()
  File "c:\code\verba\goldenverba\verba_manager.py", line 41, in __init__
    self.client = self.setup_client()
  File "c:\code\verba\goldenverba\verba_manager.py", line 229, in setup_client
    client = weaviate.Client(
  File "[sic]\envs\verba\lib\site-packages\weaviate\client.py", line 147, in __init__
    url, embedded_db = self.__parse_url_and_embedded_db(url, embedded_options)
  File "[sic]\envs\verba\lib\site-packages\weaviate\client.py", line 287, in __parse_url_and_embedded_db
    embedded_db = EmbeddedDB(options=embedded_options)
  File "[sic]\envs\verba\lib\site-packages\weaviate\embedded.py", line 52, in __init__
    self.check_supported_platform()
  File "[sic]\envs\verba\lib\site-packages\weaviate\embedded.py", line 175, in check_supported_platform
    raise WeaviateStartUpError(
weaviate.exceptions.WeaviateStartUpError: Windows is not supported with EmbeddedDB. Please upvote the feature request if you want this: https://github.com/weaviate/weaviate-python-client/issues/239

As a result, I wrote this code "blind". With other words, be sure to test it out a bit!

Tom Aarsen

This is amazing! Thanks a lot, I'll have a look

Sorry for the delay! I'll look into this around next week (when I'm back from vacation) ❤

Merged your commit here https://github.com/weaviate/Verba/pull/234 🚀
Thanks a lot again for the amazing work 🥳


calling beautify clones the code at the end

in my cordova js app, in the index.html file, when I call beautify it copies the entire content from the index.html to the end of file again.
I attached the file with the cloned content
index.html.zip

Hi @cristiandan, update your beautify extension. This issue came about with a change in VS Code 1.1 and has been addressed. The current extension version is 0.1.5.


Implement data validation for API requests season

Duck season

| Flaky Test | Failure Summary | Quarantined? | Logs |
| --- | --- | --- |
| [chromium] should display user profile information correctly. | The test timed out waiting for the element 'User ID: eli3cruz' to become visible. |   | Logs ↗ |
| [chromium] should return list of users correctly. | The API call to get the list of users failed with a 404 Not Found error. |   | Logs ↗ |
| [chromium] should display error message for invalid login correctly. | The expected status code 401 was not received, instead a function was returned. |   | Logs ↗ |
| [chromium] should login with credentials correctly correctly. | The login request to the server failed with a 404 Not Found error. |   | Logs ↗ |

View Full Report ↗


Disabling LEDs (e.g. bottom row) - flicker bug?

So i need a way to disable an entire row of LEDs, specifically the bottom row as the light is reflecting off my TV stand :/
I've changed the whitelevel and valuegain to 0 for all the LEDs on the bottom row, but they seem to still flicker white rapidly every so often. Is there another way to permanently disable specific LEDs from coming on?

@KingScooty can be closed or need help?

Closed due to age. Please open a new one, if problems still exists.
Thank you


Added new option: multidateAutoRemove

Added a new option where when using the multidate option as a number, you can enable/disable the automatic dropping of the oldest selected dates. The option defaults to true so that unless the option is explicitly set, the current functionality (without the option) is used.
New option: multidateAutoRemove
Type: Boolean
Default value: true

Q
A

Bug fix?
no

New feature?
yes

multidate: Number?

Yes, it's used in conjunction with multidate: Number
Example:
$("#my-input").datepicker({   multidate: 5,   multidateAutoRemove: false });

@flamewave Could you please provide a use case? Why should someone use { multidate: 5, multidateAutoRemove: false } and not { multidate: true }?

When you use { multidate: true }, it allows you to select an unlimited number of dates.
When you use { multidate: 5 }, it allows you to select up to 5 dates, and if you select a 6th date, it unselects the first date you had selected and selects the new date instead. As the docs say:

If a number is given, the picker will limit how many dates can be selected to that number, dropping the oldest dates from the list when the number is exceeded.

When you use { multidate: 5, multidateAutoRemove: false }, it allows you to select up to 5 dates, and if you try to select a 6th date it will not allow you. In other words, it disables the "dropping the oldest dates from the list when the number is exceeded" functionality.
Let me know if you need anything further.

That sounds reasonable. Would be nice if you also update documentation and add tests in your PR.

Docs updated, might be awhile before I get to the tests, I've been quite busy lately.


search

想问一下该工程是这篇论文Grafted Network for Person Re-Identification的复现吗？在论文中看到这个链接不确定是不是。

I don't speak chinese, but from Google translate, I got

Would you like to ask whether the project is a reproduction of the paper Grafted Network for Person Re-Identification? Seeing this link in the paper is not sure.

We have not implemented Grafted Network for Person Re-Identification in torchvision


The printer(s) cannot be loaded from the state file again after restart pappl

Describe the bug
The printer(s) cannot be loaded from the state file again after restart pappl
To Reproduce
Steps to reproduce the behavior:

Build and run legacy-printer-app
And several printers on the web page
Shutdown the legacy-printer-app
Run the legacy-printer-app again, the pappl cannot load the printers from the state file again.

Expected behavior
The pappl can load the printers from the state file again.
System Information:

OS: Ubuntu22.10
Browser: Firefox
Version: pappl-1.4-x branch

Additional context
In the papplSystemSaveState() file, 6 options are saved for a printer.
num_options = cupsAddIntegerOption("id", printer->printer_id, num_options, &options);
num_options = cupsAddOption("name", printer->name, num_options, &options);
num_options = cupsAddOption("did", printer->device_id ? printer->device_id : "", num_options, &options);
num_options = cupsAddOption("uri", printer->device_uri, num_options, &options);
num_options = cupsAddOption("driver", printer->driver_name, num_options, &options);

if (system->options & PAPPL_SOPTIONS_MULTI_QUEUE)
	num_options = cupsAddIntegerOption("state", (int)printer->state, num_options, &options);

But in the papplSystemLoadState(), the printer is skipped when it's option number is not equal to 5.
if ((num_options = cupsParseOptions(value, 0, &options)) != 5 ||
    (printer_id = cupsGetOption("id", num_options, options)) == NULL ||  strtol(printer_id, NULL, 10) <= 0 ||
    (printer_name = cupsGetOption("name", num_options, options)) == NULL ||
    (device_id = cupsGetOption("did", num_options, options)) == NULL ||
    (device_uri = cupsGetOption("uri", num_options, options)) == NULL ||
    (driver_name = cupsGetOption("driver", num_options, options)) == NULL)
    {
	 papplLog(system, PAPPL_LOGLEVEL_ERROR, "Bad printer definition on line %d of '%s'.", linenum, filename);
	break;
    }

[master dc8e97b] Fix loading of previous state (Issue #298)
[v1.4.x 3a3c1e9] Fix loading of previous state (Issue #298)


pull request for e2e test at 11/19/2016 22:26:06

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

optest/docs/updated_at.md
:white_check_mark:Succeeded

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


Add .eslintrc -- add eslint and babel-eslint to devDependencies?

If add an appropriate .eslintrc and add eslint and babel-eslint to devDependencies, project will get correct linting behaviour in text editors like atom by default.  Want a pull request for this?

Please, yes. I'm a fan of AirBnB's. If it could mimic that, great.


python311Packages.nuitka: 1.8.4 -> 2.1.4

Diff: https://github.com/Nuitka/Nuitka/compare/1.8.4...2.1.4
Description of changes

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[x] sandbox = true

[x] 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

[x] Fits CONTRIBUTING.md.

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

Result of nixpkgs-review pr 300970 run on aarch64-darwin 1

4 packages built:

python311Packages.nuitka
python311Packages.nuitka.dist
python312Packages.nuitka
python312Packages.nuitka.dist


Followed Readme, binary still contains GLIBC_2.33 funcs

Just messing around with trying to learn how to compile compatible binaries. I'm working with socat for now:
$ unzip socat-master.zip
$ cd socat-master
$ ./configure
$ make
$ objdump -T socat | grep GLIBC_ | grep 2\.33
0000000000000000      DF *UND*<PHONE_NUMBER>000000 (GLIBC_2.33) lstat64
0000000000000000      DF *UND*<PHONE_NUMBER>000000 (GLIBC_2.33) stat64
0000000000000000      DF *UND*<PHONE_NUMBER>000000 (GLIBC_2.33) lstat
0000000000000000      DF *UND*<PHONE_NUMBER>000000 (GLIBC_2.33) stat
0000000000000000      DF *UND*<PHONE_NUMBER>000000 (GLIBC_2.33) mknod
0000000000000000      DF *UND*<PHONE_NUMBER>000000 (GLIBC_2.33) fstat64
0000000000000000      DF *UND*<PHONE_NUMBER>000000 (GLIBC_2.33) fstat

And if I take the binary from my 22.04 system to an other 18.04 I get the error:
/tmp/socat: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /tmp/socat)

So I build with the provided header:
$ make clean
$ cp ../glibc_version_header-master/version_headers/x64/force_link_glibc_2.19.h .
$ export CFLAGS="-include force_link_glibc_2.19.h -static-libgcc"
$ ./configure
$ make
...
gcc -include force_link_glibc_2.19.h -static-libgcc -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-udp.o xio-udp.c
gcc -include force_link_glibc_2.19.h -static-libgcc -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-progcall.o xio-progcall.c
gcc -include force_link_glibc_2.19.h -static-libgcc -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-exec.o xio-exec.c
gcc -include force_link_glibc_2.19.h -static-libgcc -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-system.o xio-system.c
...

But my produced binary still has 2.33 symbols in it:
$ objdump -T socat | grep GLIBC_ | grep 2\.33
0000000000000000      DF *UND*<PHONE_NUMBER>000000 (GLIBC_2.33) lstat64
0000000000000000      DF *UND*<PHONE_NUMBER>000000 (GLIBC_2.33) stat64
0000000000000000      DF *UND*<PHONE_NUMBER>000000 (GLIBC_2.33) lstat
0000000000000000      DF *UND*<PHONE_NUMBER>000000 (GLIBC_2.33) stat
0000000000000000      DF *UND*<PHONE_NUMBER>000000 (GLIBC_2.33) mknod
0000000000000000      DF *UND*<PHONE_NUMBER>000000 (GLIBC_2.33) fstat64
0000000000000000      DF *UND*<PHONE_NUMBER>000000 (GLIBC_2.33) fstat

What am I doing wrong?

Until glibc 2.32, stat64 etc. were redirected to __xstat64 etc. by inline
functions or macros; glibc 2.33 changed them to true functions. As a result,
code compiled against glibc 2.32 or older will get the old __xstat64 etc.
implementation that is still present, whereas code compiled against glibc
2.33 will get the new stat64 etc. implementation.

Maybe a workaround might be:
#define _GNU_SOURCE

#include <dlfcn.h>
#include <fcntl.h>

#define REDIRECT(RET, NAME, T2) \
RET \
NAME (const char *path, T2 A2) \
{ \
    RET (*_NAME) (const char *path, T2 A2); \
    RET result; \
    _NAME = (RET (*)(const char *path, T2 A2)) dlsym (RTLD_NEXT, #NAME); \
    result = _NAME (path, A2); \
    return result; \
}

REDIRECT(int, stat, struct stat *)
REDIRECT(int, stat64, struct stat64 *)
REDIRECT(int, lstat, struct stat *)
REDIRECT(int, lstat64, struct stat64 *)
REDIRECT(int, fstat, struct stat *)
REDIRECT(int, fstat64, struct stat64 *)

Hmm I see what you are saying. Sounds like an older glibc on my host might fix it, I'll have to spin up a VM to try that. I tried adding the workaround to the force_link_glibc_2.19.h
Then I reconfigured with ./configure and attempted to make
First there are a ton of errors about redefining _GNU_SOURCE
<command-line>: note: this is the location of the previous definition
gcc -include force_link_glibc_2.19.h -static-libgcc -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.  -I.   -c -o xio-readline.o xio-readline.c
In file included from <command-line>:
./force_link_glibc_2.19.h:3729: warning: "_GNU_SOURCE" redefined
 3729 | #define _GNU_SOURCE

But its just a warning, so I pressed on. Unfortunately the workaround doesn't quite work:
...
gcc -include force_link_glibc_2.19.h -static-libgcc -D_GNU_SOURCE -Wall -Wno-parentheses  -DHAVE_CONFIG_H -I.   -o socat socat.o libxio.a -lrt -lutil
/usr/bin/ld: libxio.a(xioinitialize.o): in function `stat':
xioinitialize.c:(.text+0x0): multiple definition of `stat'; socat.o:socat.c:(.text+0x0): first defined here
/usr/bin/ld: libxio.a(xioinitialize.o): in function `stat64':
xioinitialize.c:(.text+0x4a): multiple definition of `stat64'; socat.o:socat.c:(.text+0x4a): first defined here
/usr/bin/ld: libxio.a(xioinitialize.o): in function `lstat':
xioinitialize.c:(.text+0x94): multiple definition of `lstat'; socat.o:socat.c:(.text+0x94): first defined here
/usr/bin/ld: libxio.a(xioinitialize.o): in function `lstat64':
xioinitialize.c:(.text+0xde): multiple definition of `lstat64'; socat.o:socat.c:(.text+0xde): first defined here
/usr/bin/ld: libxio.a(xioinitialize.o): in function `fstat':
xioinitialize.c:(.text+0x128): multiple definition of `fstat'; socat.o:socat.c:(.text+0x128): first defined here
/usr/bin/ld: libxio.a(xioinitialize.o): in function `fstat64':
xioinitialize.c:(.text+0x172): multiple definition of `fstat64'; socat.o:socat.c:(.text+0x172): first defined here
   ... repeat for all the .c files that use these functions ...
collect2: error: ld returned 1 exit status
make: *** [Makefile:115: socat] Error 1

I tried adding the workaround to the force_link_glibc_2.19.h

You have to embed the snippet into your own source code - somewhere at the very beginning. I tried it and it seemed to work. However I am not using it because with glibc_2.34 and newer the approach in general does not work anymore because of the new __libc_start_main symbol.
I would say don't waste your time trying to get it working with glibc_2.33 ;)

Any update on this? This looked among the most promising approaches.

I was having problem with stat() not being found in the older glibc. It seems that stat() was implemented as a C preprocessor macro, redirecting to __xlstat(), which is present in the older glibc. I'll keep trying to find a way around this issue.

Update: I gave up and am now setting up compilation in a Docker container based on ubuntu:18.04, to get an old glibc. I'm using llvm with clang-17 to get a modern compiler. The LLVM compiler suite is godsent here, thanks to their ubuntu:18.04 apt repository for the latest clang version.

I managed to redirect the *stat functions (this example is only for stat() and fstat()):
__asm__(".symver __fxstat, __fxstat@GLIBC_2.0");
__asm__(".symver __xstat, __xstat@GLIBC_2.0");

struct stat;
extern int __xstat(int, const char *, struct stat *);
static inline int stat(const char *path, struct stat *statbuf)
{ return __xstat(3, path, statbuf); }
extern int __fxstat(int, int, struct stat *);
static inline int fstat(int fd, struct stat *statbuf)
{ return __fxstat(3, fd, statbuf); }

But I'm indeed stuck on redirecting the __libc_start_main symbol to its older version. I could link in my own startfile, but I'd really rather not do that.
I wish you could influence .symver logic from the linker script.

Actually, figured out that part as well. This is now a program using stat(), compiled on a glibc 2.39 system, referencing only symbols in GLIBC_2.0:
// Needs to be included in every file that uses stat()
// May also be defined only once, but in such a case "static inline" must be removed
__asm__(".symver __xstat, __xstat@GLIBC_2.0");
struct stat;
extern int __xstat(int, const char *, struct stat *);
static inline int stat(const char *path, struct stat *statbuf)
{ return __xstat(3, path, statbuf); }

// Must be defined once in the entire program
__asm__(".symver old__libc_start_main, __libc_start_main@GLIBC_2.0");
__asm__(".symver new__libc_start_main, __libc_start_main@@_NEW");
__asm__(".global new__libc_start_main");
__asm__("new__libc_start_main: jmp old__libc_start_main@PLT");

#include <stdio.h>
#include <sys/stat.h>

int main(int argc, char *argv[])
{
    struct stat buf;
    stat(argv[0], &buf);
    printf("%lu\n", buf.st_ino);
}

Compile with: gcc -m32 -Os -U_FORTIFY_SOURCE -no-pie -o test test.c
$ objdump -x test | grep GLIBC
    0x0d696910 0x00 03 GLIBC_2.0
00000000       F *UND*	00000000<EMAIL_ADDRESS>00000000       F *UND*	00000000<EMAIL_ADDRESS>00000000       F *UND*	00000000<EMAIL_ADDRESS>


Initializing GridEditorBase default values

I have a GridBaseEditor list embedded in a dialog and listed in xyzRow.cs
I would like to set some initial default values in the Editor form when clicking on AddButton.
how is that possible ? I tried several ways with no luck.
These default values are important to be set at init as they are used on CascadeFrom fields in the form.

I think you should overide retrieve function in repository or make new retreve request to get default value of your entity and pass it to your dialog.
Sorry because my english is so bad.
I have init some example for u. Hope it work
In ordergrid.ts
`        protected initEntityDialog(itemType: string, dlg: OrderDialog) {
super.initEntityDialog(itemType, dlg);
        var details: OrderDetailRow[] = [];

        var orderEntity: OrderRow;
        //Your service. this is just example about how to get data of list
        OrderService.Retrieve({
            EntityId: ''
        }, resp => {
            orderEntity = resp.Entity;
        },
            { async: false });

        //init sample data
        details.push({ DetailID: 1, OrderID: 1, LineTotal: 100 });
        details.push({ DetailID: 2, OrderID: 1, LineTotal: 100 });
        details.push({ DetailID: 3, OrderID: 1, LineTotal: 100 });

        //set data to property in dlg
        dlg.OrderDetails = details;
    }`

In OrderDialog.ts
`   private orderDetails: OrderDetailRow[];
set OrderDetails(value: OrderDetailRow[]) {
this.orderDetails = value;
        console.log(value);
        this.form.DetailList.value = value;

    }`

Order is one of modules in Serenity NorthWind example.

well, could not make it work.
I think it's pretty common scenario.
The main idea is that i have a property from master xyzRow (named ReferenceID).
I also have a CustomerEditor in this class.
In the Detail dialog, i would like to get this value and use them in the CascadeFrom based on this field.

Looks like my answer is in : http://serenity.is/demo/BasicSamples/FilteredLookupInDetailDialog#


Multiple Datasources using R2DBC does not work

Task List

[ x] Steps to reproduce provided
[ x] Stacktrace (if present) provided
[ x] Example that reproduces the problem uploaded to Github
[ x] Full description of the issue provided (see below)

Steps to Reproduce

Create two r2dbc.datasources (dataSourceOne and dataSourceTwo)
Annotate your Repository interface:

    @Repository(value = "dataSourceOne")
    @R2dbcRepository

Try to query things

Expected Behaviour
Should be able to point a repository to a named datasource, but the @Named datasource is not actually getting created by the DataR2dbcConfiguration class
Actual Behaviour
Query fails because the application does not know how to talk to the database.
Environment Information

Operating System: OSX
Micronaut Version: 2.2.2
Micronaut Data Version: 2.2.1
Micronaut R2DBC Version: 1.0.0.M2
JDK Version: Corretto 11

Example Application

https://github.com/charlie-harvey/micronaut-r2dbc-multiple-datasources

I added a test for this and it is working fine https://github.com/micronaut-projects/micronaut-r2dbc/commit/cb58b17a4ffde41827316fd3a3e7042b5287f367#diff-accccf316133ff84c264b53d595a90f6068e0a8d182e420be46945ba4f9bd566
I believe your issue is because as with bean name you have to reference the kebab case name when referencing datasource names. You can see this is the logs:
11:24:34.041 [main] INFO  i.m.flyway.AbstractFlywayMigration - Running migrations for database with qualifier [data-source-one]

So @Repository(value = "dataSourceOne") should be @Repository(value = "data-source-one")

I added a test for this and it is working fine https://github.com/micronaut-projects/micronaut-r2dbc/commit/cb58b17a4ffde41827316fd3a3e7042b5287f367#diff-accccf316133ff84c264b53d595a90f6068e0a8d182e420be46945ba4f9bd566
I believe your issue is because as with bean name you have to reference the kebab case name when referencing datasource names. You can see this is the logs:
11:24:34.041 [main] INFO  i.m.flyway.AbstractFlywayMigration - Running migrations for database with qualifier [data-source-one]

So @Repository(value = "dataSourceOne") should be @Repository(value = "data-source-one")

Thank you so much for taking the time to sort this out. Can't believe I blew so much time on that. Keep up the great work.

Thank you so much for taking the time to sort this out. Can't believe I blew so much time on that. Keep up the great work.


python312Packages.pgmpy: patch assert in test suite for Python 3.12

Description of changes

Fixes:

https://hydra.nixos.org/build/260887493

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.11 Release Notes (or backporting 23.11 and 24.05 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 314705 run on x86_64-linux 1

8 packages built:

python311Packages.flyingsquid
python311Packages.flyingsquid.dist
python311Packages.pgmpy
python311Packages.pgmpy.dist
python312Packages.flyingsquid
python312Packages.flyingsquid.dist
python312Packages.pgmpy
python312Packages.pgmpy.dist

Result of nixpkgs-review pr 314705 run on x86_64-darwin 1

8 packages marked as broken and skipped:

python311Packages.flyingsquid
python311Packages.flyingsquid.dist
python311Packages.pgmpy
python311Packages.pgmpy.dist
python312Packages.flyingsquid
python312Packages.flyingsquid.dist
python312Packages.pgmpy
python312Packages.pgmpy.dist

Result of nixpkgs-review pr 314705 run on aarch64-darwin 1

8 packages marked as broken and skipped:

python311Packages.flyingsquid
python311Packages.flyingsquid.dist
python311Packages.pgmpy
python311Packages.pgmpy.dist
python312Packages.flyingsquid
python312Packages.flyingsquid.dist
python312Packages.pgmpy
python312Packages.pgmpy.dist

This looks good, did you forget to take it out of draft ?

@happysalada usually I wait for all the nixpkgs-review runs to finish... but I got impatient waiting for my aarch64-linux run to finish.

Result of nixpkgs-review pr 314705 run on aarch64-linux 1

8 packages built:

python311Packages.flyingsquid
python311Packages.flyingsquid.dist
python311Packages.pgmpy
python311Packages.pgmpy.dist
python312Packages.flyingsquid
python312Packages.flyingsquid.dist
python312Packages.pgmpy
python312Packages.pgmpy.dist


[Network] LoadBalancer inbound NAT rule CLI/portal discrepancies

[ ] The portal allows you to select a service from a dropdown to immediately populate the protocol and
frontend-port fields. This seems like a pure convenience.
[ ] The portal allows you to select the target backendIpConfiguration (target VM) but the CLI does not.
[x] The portal allows you to use "default" port mapping, which basically means the the backend-port is the same as the frontend-port.

Note that currently, to hook up the rule to the VM, you would need to do the following:
network lb create ...
network lb inbound-nat-rule create ...
network nic ip-config inbound-nat-rule add ...

It's very unintuitive.

@tjprescott When you are saying
network nic ip-config inbound-nat-rule add ...
I've tried with this kind of command:
az network nic ip-config inbound-nat-rule add --inbound-nat-rule RULE_NAME --lb-name LB_NAME --ip-config-name ipConfigNode --resource-group GROUP_NAME --nic-name NIC_NAME
I'm getting this kind of error:
Resource /subscriptions/S/resourceGroups/G/providers/Microsoft.Network/loadBalancers/LB/inboundNatRules/R referenced by resource /subscriptions/S/resourceGroups/G/providers/Microsoft.Network/networkInterfaces/NIC was not found. Please make sure that the referenced resource exists, and that both resources are in the same region.
They are in the same region... Also, when asking details about my inbound-rule, I'm getting backendIpConfiguration: null.
I have to set the backend configuration through the Azure portal... What am I missing!? :)
Az Cli version: 2.0.12+dev

Got it!
I've changed the --inbound-nat-rule  by --inbound-nat-rule .
But, it is not quite clear in the docs provided here: https://docs.microsoft.com/en-us/cli/azure/network/nic/ip-config/inbound-nat-rule#add
It says, The name or ID of an existing inbound NAT rule.

2 cents here for getting the command signature closer to people's mental model

For az network lb inbound-nat-rule create command, suggest expose --vm or --backend-ip-configuration argument, so executing one command will set up all. Currently, having to run az network nic ip-config inbound-nat-rule add to get the backend ip configuration plugged in is rather hard for people to figure out. I guess --vm would be used more often, --backend-ip-configuration will only be useful when the VM has more nics or more than one ip-config per nic, which would be rare under the scale-out context
At high level, suggest stronger support for adding a VM/AV-Set into a LB, say az network lb add-vm, which should eliminate more boiler-plate scripts including adding VMs to the BE pool.

Once the knack stuff is done (pray it is soon!) I would like to continue this project.

@christiankuhtz, please check out this item and input here any other suggestions you have.
I shall work on it this week.

@yugangw-msft thank you.  reading ;-)

This would be a really nice feature if added.  Spent a couple hours figuring this out today as it's not intuitive to have the TARGET available in portal but not in the CLI.
Wrote this shell script to handle this in our automation.
resrouce_group="yourResourceGroupName"
loadbalancer_name="YourLBname"
natrule_name="yourNATruleName"
nic_name="yourNICname"
ipconfig_name="this part was trickier since I didn't know where to find this.  I ended up using this.
ipconfig_name=$(echo $nic_name | sed -e 's/VNIC/IIP/g')
az network lb inbound-nat-rule create -g $resrouce_group --lb-name $loadbalancer_name -n $natrule_name --protocol Tcp --frontend-port 80 --backend-port 8080
az network nic ip-config inbound-nat-rule add -g $resrouce_group --nic-name $nic_name --inbound-nat-rule $natrule_name --lb-name $loadbalancer_name --ip-config-name $ipconfig_name

Due to the perceived amount of engineering effort needed to simplify these scenarios balanced against the lack of customer asks in this area, we have decided to not pursue these changes.

Does the load balancer and the virtual machine have to be in the same resource group?


Result reproduction

Hello! I tried to reproduce the result in your paper. I didn't train the model from scratch. Instead I download the trained model from gooogle drive. Other step are just like that described in ReadMe, but I found that my result is quite different from yours.

My readimmission AUC is around 0.78, and the marks on the plot are much fewer than yours:

I'm very confused. Could you tell me how can I solve the problem? I would appreciate it very much!

Hey @jocelyn2002, you need to repeat the inference several times since the model is zero-shot. In our paper, we use 20 repetitions to generate each outcome, and the ROC AUC is approximated based on the "marks." You can check the original results we published, where there are files with the suffix _repN, where N is the repetition number.
From the paper:

The chance of inpatient mortality was assessed at the time of admission for all inpatient stays for patients in the test set unless the discharge day was unknown. This was performed by the generative process that began with the admission token and ended upon generating a discharge or death token, repeating this cycle 20 times. The ‘N’, representing the number of times a death token was generated first, was divided by 20 to estimate the chance of inpatient mortality.

Thank you so much! I'll try to repeat the experiment.


Update interaction config

Codecov Report

Merging #846 (aacf33e) into main (4f47365) will increase coverage by 0.06%.
The diff coverage is 87.23%.

@@            Coverage Diff             @@
##             main     #846      +/-   ##
==========================================
+ Coverage   64.66%   64.72%   +0.06%
==========================================
  Files         141      141
  Lines        6811     6834      +23
  Branches     1318     1318
==========================================
+ Hits         4404     4423      +19
- Misses       1527     1532       +5
+ Partials      880      879       -1

Impacted Files
Coverage Δ

...anyo/composelife/ui/app/InteractiveCellUniverse.kt
68.00% <0.00%> (ø)

...composelife/ui/app/cells/MutableCellWindowState.kt
66.66% <0.00%> (-4.45%)
:arrow_down:

...m/alexvanyo/composelife/ui/app/cells/CellWindow.kt
82.07% <93.33%> (+0.99%)
:arrow_up:

...omposelife/ui/app/cells/TrackingCellWindowState.kt
93.54% <100.00%> (-0.74%)
:arrow_down:

...poselife/ui/app/cells/ViewportInteractionConfig.kt
100.00% <100.00%> (ø)

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


Bug report:Failed to add SpeziFirebase And SpeziAccount package

Description
I was trying to add "SpeziFirebase" to my project using the link:https://github.com/StanfordSpezi/Spezifirebase, But it says Package resolution Failed.

Reproduction
Just try to add the SpeziFirebase package from a GitHub Link and click on the add, It will  prompt the bug.
Expected behavior
SpeziFirebase should be added as a dependency without any errors
Additional context
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct and Contributing Guidelines

This may be the same issue from https://github.com/StanfordSpezi/SpeziTemplateApplication/issues/87. There is a temporary solution mentioned in the thread there, and a permanent fix in process. Sorry for the inconvenience!
cc: @PSchmiedmayer

Thanks for the Response, I have tried adding the Pre-Release version of "SpeziFirebase" and I was able to add the package But Now I am facing this issue " No such module "FirebaseFirestore " in the SpeziFirebase->SpeziFirestore->

Resources-> DocumentReference+AsyncWait File. Can you please help where I need to change things to fix this issue.

@Shaikmasaqhlain888 The package should incorporate the Firestore Package; I am wondering if this is an Xcode caching error. Can you reset your package caches, update the dependencies to the latest versions, and clear your build folder + build issues and try it again with a clean build?

I have tried Cleaning the build, Derived Data, Cache and also updated all the dependencies to the latest versions but I am Still facing this error

Can you share a link to the project on GitHub so we can take a look at it and see if we can replicate the issue?

Here is my project link: https://github.com/Shaikmasaqhlain888/HealthDataMonitor

@Shaikmasaqhlain888 Thank you for sharing the setup!
I don't see SpeziFirebase in the current project setup; it seems to build fine for now. Can you share your state that is failing, e.g., in a feature branch to check it out and replicate the build error?
If we can't quickly identify the error might might also be helpful to replicate elements with a simple GitHub action demonstrating the error on a newly created runner.

It's not in the project yet as I have deleted it before adding it again to  see if that helps. I can direct to replicate the issue, You can add "SpeziFirebase" package and try to run the project you will find that error in the console in the file that I have mentioned earlier.

https://github.com/Shaikmasaqhlain888/HealthDataMonitor.
Hello @PSchmiedmayer , I have added the SpeziFirebase in the current Repository and You should be able to see it. I am still getting the same error. Also, If I use any older versions would that help me get my project working? until this error is solved in newer version.

@Shaikmasaqhlain888 I just took a look at the issue: It seems like the issue originates from you aiming to utilize SpeziFirebase and SpeziAccount on a watchOS target. Both targets currently don't support watchOS, and Firebase also doesn't support some of the elements that SpeziFirebase is using, such as Firebase Datastore: https://firebase.google.com/docs/ios/learn-more.
I think the solution would be to add both targets to your iOS application while communicating anything between the watch and the iOS application using watch connectivity. It is important to note that you don't need to run an app on the Apple Watch to collect data using HealthKit (even elements collected on the Apple Watch are synced to the phone).
Therefore, I would suggest positioning the data collection, authentication/authorization, as well as Firebase interaction right on the phone. If you need a watchOS application, I would suggest watch connectivity to communicate with the iOS application and render your relevant UI on there.


pythonic list splicing

test to see if it is possible to achieve list splicing
mylist[:3]
mylist[2:5]
mylist[-2]

mylist[:] to copy
Currently using list.slice() since no list copy function


Accessibility:[MAS4.2.12]:Screen reader is not announcing about the search results in Welcome page.

Repro Steps:

Navigate to the search field in the left nav and type something.
Now listen to the screen reader announcement.

Actual Result
Screen reader is not announcing about the search results in Welcome page. It is simply staying mute after typing anything in the search field.
Expected Result:
Screen reader should announce as “Search results available” and the number of search results.
User Impact:
Users with visual impairment who are dependent on screen readers will not get to know whether search results are available or not.

I checked out the current storybook demo and it appears to be fixed. will look into updating storybook