chore: upgrade checkout action

Thanks @maksadbek - i know of https://github.com/NeuraLegion/bright-cli/pull/615.
Please notice that in https://github.com/NeuraLegion/bright-cli/pull/615 - we handle upload+download from v3 to v4.
In this PR i am addressing checkout v3 to v4 (and a bit of upload-release-action) - looks similar - but it is not.

there is already a similar PR with an upgrade #615
if we want to merge this PR and abondon #615 we need to include these changes as well:

(I wasn't able to suggest these changes in this PR)

Thanks @maksadbek - i know of https://github.com/NeuraLegion/bright-cli/pull/615.
Please notice that in https://github.com/NeuraLegion/bright-cli/pull/615 - we handle upload+download from v3 to v4.
In this PR i am addressing checkout v3 to v4 (and a bit of upload-release-action) - looks similar - but it is not.

got it, thanks! ✅


Add ability to mark read on scroll

I went ahead and implemented #6 to see how performance is. With about 500 items in my All feed, I can't see a difference in scrolling behavior.

Actually hold off on this for now. I need to modify this so it's only marking unread items read. As it stands it's absolutely hammering my database.

Ok, much better with df3cbc1fba47e19bce8d037e3d0fda0f165f37f7

Thanks a lot, it looks good! I'll use it for a couple of days and get back to you.


package for conda

We need to build a package for conda as well.

I made a PR on conda-forge, the issue remaining is that our tests are failing on Windows OS. Once it's fixed, it will be ready for review and merged. @vijayvarma392

This is the error when building on Windows

Also please confirm by commenting on the PR that you are willing to be listed as a maintainer @vijayvarma392
And then check this box

All checks are now passing for https://github.com/conda-forge/staged-recipes/pull/23113. Once @vijayvarma392 comments on the PR, I will ping for it to be reviewed.

The PR https://github.com/conda-forge/staged-recipes/pull/23113 is ready to be merged once @vijayvarma392 confirms to be listed as a maintainer by commenting under the PR

addressed in #195


[bug 1202647] Update dev requirements

Update the dependencies listed in the bug 1202647.
Get rid of flake8 and its dependencies since we no longer use it
directly. pre-commit installs flake8 from its dependencies in its
own virtualenv and does not use the one we have been installing till
now.

Looks great! Thank you!


Update sbt-scoverage to 1.7.1

Updates org.scoverage:sbt-scoverage from 1.7.0 to 1.7.1.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scoverage", artifactId = "sbt-scoverage" } ]

labels: sbt-plugin-update, semver-patch

Pull Request Test Coverage Report for Build 124

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

Totals

Change from base Build 123:
0.0%

Covered Lines:
28

Relevant Lines:
41

💛  - Coveralls

Pull Request Test Coverage Report for Build 124

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

Totals

Change from base Build 123:
0.0%

Covered Lines:
28

Relevant Lines:
41

💛  - Coveralls


upgrade polkadot sdk

Pull Request
Checklist

[x] Have you read Digital Catapult's Code of Conduct?
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.
[x] I have added tests that prove my fix is effective or that my feature works.
[x] New and existing unit tests pass locally with my changes.

PR Type
Please delete options that are irrelevant.

[ ] Bug Fix
[x] Chore
[ ] Feature
[ ] Documentation Update
[ ] Code style update (formatting, local variables)
[ ] Breaking Change (fix or feature that would cause existing functionality to change)

Linked tickets
https://digicatapult.atlassian.net/browse/SQNC-40
High level description
Upgrade polkadot-sdk to  stable2409-2
Detailed description
This upgrade includes the following changes:

[x] upgrades sdk components to stable2409-2 using https://github.com/paritytech/psvm
[x] documents future upgrade procedure
[x] adds storage version to all pallets that use storage. Explicitly labels those without as such
[x] upgrades usage of the schedulerpallet to latest v3 api (the one we were using is deprecated)
[x] adds a migration for the SymmetricKey pallet to update the schedule id. This was changed in a previous release but never upgraded in this pallet
[x] renames sqnc-node-runtime to sqnc-runtime
[x] explicitly labels our rust edition to match the polkadot sdk (2021)
[x] updates to sqnc-node and sqnc-runtime in line with changes to solochain template at this version of the sdk
[x] refactor weights for runtime
[ ] ~updates weights for all pallets~ (done but run locally. See SQNC-69)

I've also performed the following manual tests:

[x] verified that migration works in a local dev environment
[x] verified that code upgrade works for process validation pallet
[x] verified that code upgrade works for utxo-nft pallet
[x] verified that sqnc-matchmaker-api onchain tests pass with this node
[x] verified that benchmarks compile and run

Describe alternatives you've considered
None
Operational impact
This update is a significant update to the Sequence node and runtime. Release will require first updating the node in produciton to this version and then the performing of a runtime upgrade. I would recommend a procudure like:

Upgrade a single validator node instance and ensure it is both validating blocks and serving API requests from matchmaker
Upgrade the remaining nodes ensuring the network remains healthy
Perform the runtime upgrade using the technical committee

Note step 3 is irreversible except by rolling back the PVs to a backup.
Additional context
N/A

need to check version that is deployed is 1120 version

I've verified that the deployed version for prod is 1120 and the pallet-utxo-nft has been renamed there as expected


Fix "forceAndroidLocationManager" feature for getLastKnownPosition

:sparkles: What kind of change does this PR introduce? (Bug fix, feature, docs update...)
On the dart side the parameter is still called "forceAndroidLocationManager". The native side expects it to be called "forceLocationManager"
:arrow_heading_down: What is the current behavior?
The paramter can not be used anymore.
:new: What is the new behavior (if this is a feature change)?

:boom: Does this PR introduce a breaking change?
No
:bug: Recommendations for testing
None
:memo: Links to relevant issues/docs
None
:thinking: Checklist before submitting

[ ] I made sure all projects build.
[x] I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy.
[x] I updated CHANGELOG.md to add a description of the change.
[x] I followed the style guide lines (code style guide).
[x] I updated the relevant documentation.
[x] I rebased onto current master.

There are multiple ways on how to fix this. I tried to follow the way how for example getCurrentLocation is handling the forceAndroidLocationManager parameter

@mvanbeusekom It seems like I can not trivially upgrade geolocator_platform_interface. How is this usually done?

@maxammann thank you for helping out with this bug.
The best way would be to create two separate pull-requests:

The first pull request would update only the geolocator_platform_interface;
Once the first pull request is merged and published submit a second pull request updating the app-facing package (geolocator in this case).

the problem here is that the app-facing has a pub.dev dependency on the geolocator_platform_interface package. This means that updates to this package first need to be published before they are available to the geolocator package.

@mvanbeusekom alright, this PR only contains the platform changes. Here are the other changes: https://github.com/Baseflow/flutter-geolocator/pull/919/files

I'm not sure why the analyze step is failing. I think I did not change anything relevant.

The analyse step is failing with the following warnings:
   info • The import of 'enums/enums.dart' is unnecessary because all of the used elements are also provided by the import of '../geolocator_platform_interface.dart' • lib/src/geolocator_platform_interface.dart:8:8 • unnecessary_import
   info • The import of 'models/models.dart' is unnecessary because all of the used elements are also provided by the import of '../geolocator_platform_interface.dart' • lib/src/geolocator_platform_interface.dart:10:8 • unnecessary_import
   info • The import of '../enums/enums.dart' is unnecessary because all of the used elements are also provided by the import of '../../geolocator_platform_interface.dart' • lib/src/implementations/method_channel_geolocator.dart:6:8 • unnecessary_import
   info • The import of '../errors/errors.dart' is unnecessary because all of the used elements are also provided by the import of '../../geolocator_platform_interface.dart' • lib/src/implementations/method_channel_geolocator.dart:7:8 • unnecessary_import
   info • The import of '../geolocator_platform_interface.dart' is unnecessary because all of the used elements are also provided by the import of '../../geolocator_platform_interface.dart' • lib/src/implementations/method_channel_geolocator.dart:9:8 • unnecessary_import
   info • The import of '../models/position.dart' is unnecessary because all of the used elements are also provided by the import of '../../geolocator_platform_interface.dart' • lib/src/implementations/method_channel_geolocator.dart:10:8 • unnecessary_import
   info • The import of 'package:geolocator_platform_interface/src/enums/enums.dart' is unnecessary because all of the used elements are also provided by the import of 'package:geolocator_platform_interface/geolocator_platform_interface.dart' • test/src/extensions/integer_extensions_test.dart:3:8 • unnecessary_import
   info • The import of 'package:geolocator_platform_interface/src/enums/location_service.dart' is unnecessary because all of the used elements are also provided by the import of 'package:geolocator_platform_interface/geolocator_platform_interface.dart' • test/src/implementations/method_channel_geolocator_test.dart:7:8 • unnecessary_import

This is a result of an earlier merge where I missed it. I have just merged #920 which should fix these warnings. However this does mean you will have to merge locally.
If you do so maybe good to update the version number as this is a bug fix we can consider it a patch (it is not a new feature). So update the version to 3.0.1

The analyse step is failing with the following warnings:
   info • The import of 'enums/enums.dart' is unnecessary because all of the used elements are also provided by the import of '../geolocator_platform_interface.dart' • lib/src/geolocator_platform_interface.dart:8:8 • unnecessary_import
   info • The import of 'models/models.dart' is unnecessary because all of the used elements are also provided by the import of '../geolocator_platform_interface.dart' • lib/src/geolocator_platform_interface.dart:10:8 • unnecessary_import
   info • The import of '../enums/enums.dart' is unnecessary because all of the used elements are also provided by the import of '../../geolocator_platform_interface.dart' • lib/src/implementations/method_channel_geolocator.dart:6:8 • unnecessary_import
   info • The import of '../errors/errors.dart' is unnecessary because all of the used elements are also provided by the import of '../../geolocator_platform_interface.dart' • lib/src/implementations/method_channel_geolocator.dart:7:8 • unnecessary_import
   info • The import of '../geolocator_platform_interface.dart' is unnecessary because all of the used elements are also provided by the import of '../../geolocator_platform_interface.dart' • lib/src/implementations/method_channel_geolocator.dart:9:8 • unnecessary_import
   info • The import of '../models/position.dart' is unnecessary because all of the used elements are also provided by the import of '../../geolocator_platform_interface.dart' • lib/src/implementations/method_channel_geolocator.dart:10:8 • unnecessary_import
   info • The import of 'package:geolocator_platform_interface/src/enums/enums.dart' is unnecessary because all of the used elements are also provided by the import of 'package:geolocator_platform_interface/geolocator_platform_interface.dart' • test/src/extensions/integer_extensions_test.dart:3:8 • unnecessary_import
   info • The import of 'package:geolocator_platform_interface/src/enums/location_service.dart' is unnecessary because all of the used elements are also provided by the import of 'package:geolocator_platform_interface/geolocator_platform_interface.dart' • test/src/implementations/method_channel_geolocator_test.dart:7:8 • unnecessary_import

This is a result of an earlier merge where I missed it. I have just merged #920 which should fix these warnings. However this does mean you will have to merge locally.
If you do so maybe good to update the version number as this is a bug fix we can consider it a patch (it is not a new feature). So update the version to 3.0.1

But it introduces a breaking change (parameter was renamed). So I think we need to use a major version.

That is a bit of a conflict indeed. Actually we recently released version 3.0.0 which was the breaking change for the parameter rename. Unfortunately the getLastKnownLocation was missed here, so I consider this a bug fix.
Also one unit test is failing on the parameter rename and should probably be fixed as wel.

I set the version now to 3.0.1. I also updated some docs.


Creates too many processes and crashes my Mac

When running my Rails app on a Macbook Air with about 0 ghz of cpu (I know... getting a new computer when they release the new Pro's), I have been getting a "System ran out of resources, can't fork any processes" error in all of my applications (or, they just quietly failed). Finally, I opened Activity Monitor and was able to find more then 500 fsevent_watch processes running (my computer has a maximum of 700 processes total). Doing a Google Search, I stumbled upon the rb-fsevent gem. Looking at my Gemfile.lock, I was able to track it down to this gem (as you depend on listen which depends on rb-fsevent).
I have removed the gem from my gemfile for the time being. This solved the problem, even though Active Support uses the listen gem as well. I believe that it might be because the processes are not properly closed when spring is stopped.
Please let me know if a fix is found.
I also reported this directly to the rails project on GitHub: https://github.com/rails/rails/issues/26158

If you're talking about development mode, then maybe you have multiple
servers running on multiple folders. This increase the amount of
services, though they shouldn't be running.
There are some patches pending to fix maybe some of these issue (they
are a lot of work, so I'll need to find time - there are patches in
one of the recent issues).
On Sat, Aug 13, 2016 at 07:58:20PM -0700, Ben A wrote:

When running my Rails app on a Macbook Air with about 0 ghz of cpu (I know... getting a new computer when they release the new Pro's), I have been getting a "System ran out of resources, can't fork any processes" error in all of my applications (or, they just quietly failed). Finally, I opened Activity Monitor and was able to find more then 500 fsevent_watch processes running (my computer has a maximum of 700 processes total). Doing a Google Search, I stumbled upon the rb-fsevent gem. Looking at my Gemfile.lock, I was able to track it down to this gem (as you depend on listen which depends on rb-fsevent).
I have removed the gem from my gemfile for the time being. Please let me know if a fix is found.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jonleighton/spring-watcher-listen/issues/13

@e2 I am only running a single server, although it has multiple modules. I also am using Resque and Clockwork (and often times the Rails console), all of which load my environment.

+1

Sorry about the late reply, but it looks like it's not this gem which breaks my laptop, but either ActiveSupport's implementation, or the listen gem itself.


Minor issue of the HR feature map size

In section 3.1 of the paper, Should "N`=H/4*W/4" be adjusted to "N`*N`=H/4*W/4"?

Sorry for the confusion. The N here indicates the total query count of LR visual embedding, and N' denotes the total region count of HR sub-regions. So, the original $X'_H\in\mathbb{R}^{N'\times N'\times C}$ should be changed to $X'_H\in\mathbb{R}^{N' \times C}$.
Thanks for your report! We will correct this typo in the next version.


Catch thethingsnetwork TypeError

Description:
Strings can't be rounded.
Related issue (if applicable): fixes #23097
Example entry for configuration.yaml (if applicable):
thethingsnetwork:
  app_id: ha-connector
  access_key: ttn-account-v2.0W_xxxxxxxxxxxxxxxxx

sensor:
  - platform: thethingsnetwork
    device_id: sensor
    values:
      value: T
      voltage: V
      tempC: '°C'
      tDewC: '°C'
      rh: "%"
      p: mb
      lux: lx
      vBat: V
      vBus: V
      alpha: V

Checklist:

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

Thanks


Errors implementing code to use DTO

When following this tutorial  (modified to represent a user registration model), everything worked great until I implemented the DTO. Using the code in the tutorial I am getting error CS1955: Non-invocable member 'UserDTO' cannot be used like a method.
From my controller:
 // GET: api/Users
        [HttpGet]
        public async Task<ActionResult<IEnumerable<UserDTO>>> GetUsers()
        {
          if (_context.Users == null)
          {
              return NotFound();
          }
            return await _context.Users.Select(x => UserDTO(x)).ToListAsync();
        }

From my UserDTO:
namespace SymptomTrackAPI.Models
{
    public class UserDTO
    {
        public long Id { get; set; }
        public string? Fname { get; set; }
        public string? Lname { get; set; }
        public string? Email { get; set; }
        public string? username { get; set; }
    }
}

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

ID: 583ae3e7-5915-f22b-e54c-6c100cf2a7da
Version Independent ID: 95f2549e-29f9-e31a-b4d0-432b971643ff
Content: Tutorial: Create a web API with ASP.NET Core
Content Source: aspnetcore/tutorials/first-web-api.md
Product: aspnet-core
Technology: aspnetcore-tutorials
GitHub Login: @wadepickett
Microsoft Alias: wpickett

There is a great discussion for understanding the error you are running into with your own code to check out here:

[stackoverflow: Count cannot be used like a method in an ASP.NET MVC controller] (https://stackoverflow.com/questions/54254383/count-cannot-be-used-like-a-method-in-an-asp-net-mvc-controller).
This one on the compiler error itself is also helpful: Compiler Error CS1955

CS1955 occurs when you try to use a property, field, variable or dynamic type as a method and append brackets to call it: Such as myObject.MyProperty();  instead of myObject.MyProperty.
Your own code provided is different from the topic's code which works.


Dma Transfer

As we now use StableDeref from embedded-dma, shall DMA still take owned values of buffer and peripheral?
Or we can change API to take & mut PAYLOAD?

This seems like a good change, unless there are any soundness issues.
CC: @thalesfragoso

This is unsound, unfortunately.
StableDeref by itself isn't enough to make this API safe, the user can still safely mem::forget the Transfer and then re-use the buffer (or pop its stack) before the transfer is finished, causing memory corruption.

Alright, glad I asked :). In that case I'll go ahead and close this

the user can still safely mem::forget the Transfer and then re-use the buffer (or pop its stack) before the transfer is finished, causing memory corruption

If that's the only problem, maybe it makes sence just to add blocking_read()/blocking_write() (or read_and_wait()/write_and_wait()) functions to DmaRead/DmaWrite traits, that take &mut self, run transfer and wait complete instead of return Transfer struct?

Oh yea, that might be a good idea for when you want high speed transfer but don't care about asyncronous transfers


Add "status" column to User Commands table

Closes #885

@robinbb same as the others. We can merge whenever.


Fixing NPE rendering jbpm-form-modeler forms.

Fixing NPE rendering jbpm-form-modeler forms.

@psiroky @cristianonicolai Can you take a look?
The changes on this PR where part of a bigger PR (https://github.com/droolsjbpm/jbpm-console-ng/pull/578) that was depending on other changes on kie-wb-common. Since the original PR on kie-wb-common is not going to be merged for Beta4, I moved the ones that where fixing a big issue into this new PR.


Water meter not working; Advice on migrating

Describe the bug
I have 1 issue and other is more a general question.

QUESTION: Was just recommended this add-on coming from RTLAMR to MQTT. Was curious what the best approach to changing from RTLAMR to MQTT to this would be. I tried doing a "rip and replace", substituting the new sensors for their MQTT counterparts, which worked, but it threw all my readings off, so ended up restoring a backup. Any recommendations would be appreciated, as I am kind of stumped at the moment on the best way to approach this.

BUG: Working so far for my electric and gas meters, but no my water meter. It picks it up and returns the JSON in the debug log but says "Sending null..." and a sensor is never created for it.

To Reproduce
Steps to reproduce the behavior:

Run the add-on
Watch the debug log

Expected behavior
Pull in the data and create the sensor like electric and gas.
Screenshots
NA
Desktop (please complete the following information):
NA
Smartphone (please complete the following information):
NA
Additional context
Here is what the debug logs shows for the water meter:
{"Time":"2022-05-11T11:44:19.672941168-05:00","Offset":0,"Length":0,"Type":"SCM","Message":{"ID":31500996,"Type":13,"TamperPhy":0,"TamperEnc":0,"Consumption":44805,"ChecksumVal":58702}}
Sending  null  to http://supervisor/core/api/states/sensor.31500996 -- 500

My config:
debug: true
msgType: scm
ids: 32642547,31500996,56916660
duration: 0
pause_time: 0
gas_unit_of_measurement: m³
electric_unit_of_measurement: kWh
water_unit_of_measurement: gal
scm_plus_gas_divisor: 1

Thank you!

It looks like there was a missing space where we generate the REST data for SCM water meters. It should be all good now

As for the question, this should generate new sensors for you, and i have some basic support for adjusting units and values in place without needing to use a template sensor.
Do you have any more specifics on what sensors were messing up, and what values were output vs what should have been output?

Awesome, thanks for the quick work!
It's basically all three. My current setup creates sensors from the MQTT message from RTLAMR2MQTT and then from there I have a dozen or more templates sensors that take that data to create hourly, daily, monthly sensors as well as some others that use math to estimate daily and monthly cost (it's probably overkill, but I'm a data nerd)
I tried just swapping out the MQTT sensors for these new sensors which worked, but HA reads them as 0 and then when the first reading comes in all the sensors jump by whatever the reading is. Although, now that I am typing it out and thinking about it. I have not added the new sensors to Record, Logbook, History files so there is no history on them.  I'll give it a go tonight and post back if it works to hopefully help others in the same boat.
Thanks!

Sorry, I just tried the "rebuild" on the add-on but it's still showing NULL; should there be an update?

You can also "check for updates" in the menu of the addon store

So all the data is pulling fine, just need to figure out how to make the switch without my values jumping. My idea didn't work. Will need to look into it more and will share what I find.

Yep, no luck. I thought I could manually update the main sensor and then start the add-on to avoid the jump but didn't work. I'll probably just bite the bullet and make the switch at the end of the month to avoid upsetting all of my stats. Thanks again!


Modified readme file : PR

Description

Modified readme and my reservation

STATUS: APPROVED!
Great Job! Let's merge it!


Add A Place Were If A Channel Is Down We Can Add A Video

Add if a Channel is down it will present to the viewer on the server side you can add mp4 video. So the channel just doesn't skip over.

Found a Solution


Add ability to sync upload to FTP

I am currently using ftp-sync to backup the content of one FTP server to a local folder.
It would be great if we could use it to backup a local folder to a remote FTP server.
I have not yet digged deeper into the script, but I am hoping that replacing wget by wput would allow to do that easily.
What do you think?

This improvement requires lot of refactoring and for the moment i don't have time for this.
But your are welcome to open a PR if you want to work on it ;)

OK. I will take a look at what I can propose.
But I will probably have some questions in order to make the right decisions.
First question, how would you see this being configured?
We could use the DL_METHOD parameter and set it to "wput", for example?
Or would you prefer to use a totally new parameter?

Yep that's sounds good, i'm working on the 4.0 milestone for now so if you have time i can include this improvement.

This issue has been closed because it has been inactive for a long time.
But we can always reopen it though!


Bug: Qualtrics content can include an etra single quote at start

Describe the bug (REQUIRED)
For one specific deposit, I noticed that the Qualtrics files input that it started with a single quote ('). This was not there with the original content. I migrated contents around for this section and it started with a hyphen. I suspect that might be a problem here.
Reproduction Steps (REQUIRED)
Steps to reproduce the behavior:

Using ReadmeClass examine the qualtrics_readme_dict attribute. You should see:

'contrib': 'nan',
'files': "'- Summary systems experiment ...

(Truncated for privacy)
Note the "'" in front of hyphen
Version information (please complete the following, default in brackets): (REQUIRED)

LD_Cool-P version: 0.17.1
ReQUIAM branch info: master

Expected behavior (Optional)
No extra single quote

I suspect the issue is not associated with the code but how Qualtrics parses hyphens as the first character in a text input. I believe replacing this will fix the issue; however, it may be worthwhile to have a fix in place. Namely to check if the first character is as single quote.

I suspect the issue is not associated with the code but how Qualtrics parses hyphens as the first character in a text input. I believe replacing this will fix the issue; however, it may be worthwhile to have a fix in place. Namely to check if the first character is as single quote.


New Managing Application Networks section

Preview available here: https://nadine.preview.docs.r3.com/en/platform/corda/5.0-beta.html
Content outside the "Managing Application Networks" section is NOT part of this review cycle. (Changes to any of those files are just fixes to cross-ref, etc to enable builds.)

Closing this PR as this content (with updates) has been added to the new GA release branch.


how to implement non-invertible user-defined aggregates?

In addition to Trill’s built-in aggregates (i.e., Count, Sum, Average, Max, Min, TopK), Trill provides a
framework for users to create their own custom aggregates by implementing the IAggregate interface.
public interface IAggregate<TInput, TState, TResult>
{
    Expression<Func<TState>> InitialState();
    Expression<Func<TState, long, TInput, TState>> Accumulate();
    Expression<Func<TState, long, TInput, TState>> Deaccumulate();
    Expression<Func<TState, TState, TState>> Difference();
    Expression<Func<TState, TResult>> ComputeResult();
}

However, it looks to me that Trill assumes the user-defined aggregates are invertible and associative, as it requires users to specify the Deaccumulate and the Difference methods.
My question is "Is there a way to implement an aggregate that is meant to be non-invertible in Trill?"
More specifically, how can we implement an operator such as finite impulse response (FIR) filtering that follows the computation as below:

input: a stream of signal measurements of the format {val: double, ts: int}, where for simplicity, ts = 1,2,3,4,... that represents the timestamp of the measurement, and val_{t} is the value of the measurement at the time t.
FIR parameters: [f1, f2, f3, f4, f5] (an array of doubles)
output: a stream of double values that are obtained by out_{t} = f1*val_{t-2} + f2*val_{t-1} + f3*val_{t} + f4*val_{t+1} + f5*val_{t+2}.

In general, the FIR filtering computes the dot product of FIR parameters and every five elements in the stream. As the first step, I think a hopping window shall be applied to the input stream. But I am stuck at designing a user-defined aggregate to address the remaining computations.
Can anyone help me to get through this problem? I will really appreciate it.

You can start with a simple approach like this:

Keep state as Deque < (ts, val) > (deque of tuple of ts, val)
Accumulate : Add the entry  to the state (or merge if same timestamp)
optionally, optimize memory by removing older elements that would not contribute to the result.
De-accumulate : Remove the entry from deque/state
If you have optimized in Accumulate by reducing elements, you need to appropriately handle here.
Difference : Difference the two deques/states.
ComputeResult :
a.	Select K most recent items from the State/deque (where k is the required items for the FIR product).
b.	Compute out_{t} = f1*val_{t-2} + f2*val_{t-1} + f3*val_{t} with values obtained as above

Then check if you can optimize further by representing the state in a more concise (less memory) form.

You can start with a simple approach like this:

Keep state as Deque < (ts, val) > (deque of tuple of ts, val)
Accumulate : Add the entry  to the state (or merge if same timestamp)
optionally, optimize memory by removing older elements that would not contribute to the result.
De-accumulate : Remove the entry from deque/state
If you have optimized in Accumulate by reducing elements, you need to appropriately handle here.
Difference : Difference the two deques/states.
ComputeResult :
a.	Select K most recent items from the State/deque (where k is the required items for the FIR product).
b.	Compute out_{t} = f1*val_{t-2} + f2*val_{t-1} + f3*val_{t} with values obtained as above

Then check if you can optimize further by representing the state in a more concise (less memory) form.

Thanks for the reply, and it is very helpful, and I successfully implement the FIR operator according to your suggestion.
May I ask is there any other way to implement customized operators?
I find actually it is arduous to implement aggregators when the deaccumulate and the difference methods are not easy or "unnatural" to be implemented.


Bevy 0.15

Targeting the wgpu 23 branch instead of bevy main for perf reasons.
Drops bevy 0.13/0.14 support as there's too many breaking changes.

Looks like random-materials and texture-count are broken it's because my very silly UNIQUE_MESH_QTY check isn't matching up anymore. (2 more mesh assets for some reason?). I need to figure out a not ridiculous way to consistently detect when the assets are fully loaded that wont trigger randomly on PCs that load things slowly. (I had done something with change detection before but it was inconsistent) iirc bevy has stuff built in for this, just need to take a look.


Extend camelcase option to support 'dashes' value

See https://github.com/webpack/css-loader/pull/149#issuecomment-150118653

Ping

Thanks


AC-21(b) automated mechanism or manual process

employs mechanism or manual process to assist users or manual process to assist users in making information sharing/collaboration decisions.

💡 Summary
As a system architect, I need to ensure support for updated integration requirements. Instructions are contained within the ATO document folder under the above Control ID.
Motivation and context
Employs to assist users in making information sharing / collaboration decisions.
Implementation notes

information sharing circumstances
sharing partners may be defined as individual groups  or Organizational levels
Crossfeed is designed for information sharing
information that is shared is limited
data only pertains to necessary internal teams with DHS that have a need to know

Acceptance criteria

[ ] automate or create a manual process for limited information sharing
[ ] organization specific for data sharing pertaining to the necessary team DHS internal teams.

The solution for this requirement isn't handle with code. Closing as it is out of scope for the team.


Improved blocking of scrolling when swiping

Highly recommend this feature. Now the sliding when i scroll the page is so annoying.


pkg/ipam: Don't let ENI IPAM override native-routing-cidr

When using VPC Peering or similar, the L2 domain can be larger than the VPC CIDR from the ec2 instance's primary ENI.
The cilium agent has the --native-routing-cidr flag which can be used to manually configure this. However, when using ENI for IPAM, it always overwrites the configured value.
This PR changes this behavior, deferring to what the configured value for native-routing-cidr, and verifies that the native-routing-cidr is valid by checking that the VPC CIDR is a subnet of it.
 I wrote this against the v1.7 branch originally. Let me fix it up.

Coverage decreased (-0.04%) to 46.601% when pulling 1018a4a1e5da8a16efa005aee81ebf6d6b5ff20a on planetscale:jw-override-vpc-cir into 7e5f30dfc1b89c1ace10c37774247a7ab2c7d8f0 on cilium:master.

test-me-please

test-me-please


recently the site takes like a 3-4seconds to load rather than 0.5s

Can you open the network tab and see what is taking up the time?
I'm assuming you are talking about initial load and not just for the rooms to show up.

Yeah sure

main page

a room

looks like something took 32 seconds on the room page, wow
can you scroll down in the network tab until you see a large time

@benawad today we hosted a room, and there were 44 speakers. we tried to speak at the same time. and there were 20+ listeners too. I think that's when it happened. not sure

it might just be all the profile pics loading

Yeah we also tried we were like 40 people and the server crashed
On Sat, 27 Feb 2021, 12:22 am Nadir Abbas<EMAIL_ADDRESS>wrote:

@benawad https://github.com/benawad today we hosted a room, and there
were 44 speakers. we tried to speak at the same time. and there were 20+
listeners too. I think that's when it happened. not sure
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/benawad/dogehouse/issues/431#issuecomment-786830800,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQWKQNGQ3GEODWSOI5S6IR3TA7UYHANCNFSM4YIVEY5Q
.

it did not ccrash btw

it didn't crash but it was slow?

not slow, it worked like a charm

there were a couple of users tho, whose voices were breaking when we all spoke at the same time.

it didn't crash but it was slow?

Yes I think but for me everything foze for few seconds

you had a different problem, you had to leave and rejoin the room to get it fixed, right?

you had a different problem, you had to leave and rejoin the room to get it fixed, right?
Yeah

so is the 3-4 second load time when you load the website for the first time or try to join a room?

yes I think

@benawad @nadirabbas  should this issue be closed?


Allow disabling autoFocus on sidenav/drawer

Bug, feature request, or proposal:
Feature Request
What is the expected behavior?
Automatic focus of initial element in sidenav is controllable
What is the current behavior?
Initial element in sidenav is focused when it opens
What is the use-case or motivation for changing an existing behavior?
Hacks are required to override this behaviour. It's visually distracting when something like a toolbar is in the sidenav and the close button is the first thing focused when it's opened.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Latest
Is there anything else we should know?
API already exists in MatDialog: https://material.angular.io/components/dialog/api#MatDialogConfig

Care to disclose what hack you are using to disable that behavior? Very annoying as you stated.

Will you let me under which version this fix is available?


Django 1.9 bug

I decided to give Django 1.9 a try, but I was met with the following exception:
Traceback (most recent call last):
  File "/app/.heroku/python/lib/python3.5/site-packages/django/core/handlers/base.py", line 149, in get_response
    response = self.process_exception_by_middleware(e, request)
  File "/app/.heroku/python/lib/python3.5/site-packages/django/core/handlers/base.py", line 147, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/app/.heroku/python/lib/python3.5/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
    return func(*args, **kwargs)
  File "/app/.heroku/python/lib/python3.5/site-packages/django/contrib/admin/sites.py", line 407, in login
    return login(request, **defaults)
  File "/app/.heroku/python/lib/python3.5/site-packages/django/contrib/auth/views.py", line 49, in inner
    return view(request, *args, **kwargs)
  File "/app/.heroku/python/lib/python3.5/site-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
  File "/app/.heroku/python/lib/python3.5/site-packages/django/utils/decorators.py", line 149, in _wrapped_view
    response = view_func(request, *args, **kwargs)
    response = view_func(request, *args, **kwargs)
  File "/app/.heroku/python/lib/python3.5/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
    request.session.cycle_key()
  File "/app/.heroku/python/lib/python3.5/site-packages/django/contrib/sessions/backends/db.py", line 53, in create
AttributeError: 'super' object has no attribute '_get_memcache_timeout'

This is fixed in master. I've been so spoiled by pypi lately that I didn't stop to check when the latest release was (the bugfix was 4 days after the last release).


DCOS-10490: ServiceSuspendModal: Properly handling error responses

This PR fixes the error handling on the ServiceSuspendModal. Previously, when a service/pod was in a deploying state and a user clicks Suspend, the UI was just greying-out.
Taking the opportunity to fix the same issue with the ServiceRestartModal on the services

Any update on this one? Would love to if we could land this fix sooner than later.

I fixed up my feedback with https://github.com/dcos/dcos-ui/pull/1296/commits/fb987ab35cadd19003e3df1d7c6283185542b5c5, please feel free to remove it if you don't agree @wavesoft :)

mesosphere-ci retest this please

Sorry for my late reaction @philipnrmn . Yes, I am totally fine with your suggestions! (for some reason integration tests are failing now)

mesosphere-ci retest this please

mesosphere-ci retest this please

mesosphere-ci stop failing the tests please

I think the integration tests needs the latest master branch. This is a bit too old. Shall we merge?

Yeah, we should be ok to merge this even with failing test ...


Unable to Load Cartridge

Hello,
I've just compiled and installed this on a workstation running Ubuntu 18.04 LTS, which is connected to the following tape drives:
Quantum LTO-6 Half-Height Drive B
Quantum LTO-6 Half-Height Drive C
It seemed to install without any issues, but it doesn't seem to list the tape drives:

maceadmin@amacewrk05:~$ ltfs -o device_list
3118 LTFS14000I LTFS starting, LTFS version <IP_ADDRESS> (Prelim), log level 2.
3118 LTFS14058I LTFS Format Specification version 2.4.0.
3118 LTFS14104I Launched by "ltfs -o device_list".
3118 LTFS14105I This binary is built for Linux (x86_64).
3118 LTFS14106I GCC version is 7.5.0.
3118 LTFS17087I Kernel version: Linux version 5.4.0-70-generic (buildd@lgw01-amd64-039) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #78~18.04.1-Ubuntu SMP Sat Mar 20 14:10:07 UTC 2021 i386.
3118 LTFS17089I Distribution: NAME="Ubuntu".
3118 LTFS17089I Distribution: DISTRIB_ID=Ubuntu.
3118 LTFS17085I Plugin: Loading "sg" tape backend.
Tape Device list:.

However, I can list the tape drives using lshw:

maceadmin@amacewrk05:~$ sudo lshw -class tape
*-tape:0
description: SCSI Tape
product: ULTRIUM 6
vendor: QUANTUM
physical id: 0.2.0
bus info: scsi@6:0.2.0
logical name: /dev/nst0
version: 4142
serial: HU14171HYL
capabilities: removable
configuration: ansiversion=6
*-tape:1
description: SCSI Tape
product: ULTRIUM-HH6
vendor: QUANTUM
physical id: 0.3.0
bus info: scsi@6:0.3.0
logical name: /dev/nst1
version: J451
serial: 91WT082810
capabilities: removable
configuration: ansiversion=6

If I try to load a tape in the model B drive, I get this:

maceadmin@amacewrk05:~$ sudo ltfs -o devname=HU14171HYL /media/lto1
3274 LTFS14000I LTFS starting, LTFS version <IP_ADDRESS> (Prelim), log level 2.
3274 LTFS14058I LTFS Format Specification version 2.4.0.
3274 LTFS14104I Launched by "ltfs -o devname=HU14171HYL /media/lto1".
3274 LTFS14105I This binary is built for Linux (x86_64).
3274 LTFS14106I GCC version is 7.5.0.
3274 LTFS17087I Kernel version: Linux version 5.4.0-70-generic (buildd@lgw01-amd64-039) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #78~18.04.1-Ubuntu SMP Sat Mar 20 14:10:07 UTC 2021 i386.
3274 LTFS17089I Distribution: NAME="Ubuntu".
3274 LTFS17089I Distribution: DISTRIB_ID=Ubuntu.
3274 LTFS14063I Sync type is "time", Sync time is 300 sec.
3274 LTFS17085I Plugin: Loading "sg" tape backend.
3274 LTFS17085I Plugin: Loading "unified" iosched backend.
3274 LTFS14095I Set the tape device write-anywhere mode to avoid cartridge ejection.
3274 LTFS30209I Opening a device through sg-ibmtape driver (HU14171HYL).
3274 LTFS30288I Opening a tape device for drive serial HU14171HYL.
3274 LTFS30250I Opened the SCSI tape device <IP_ADDRESS> (/dev/sg6).
3274 LTFS30207I Vendor ID is QUANTUM .
3274 LTFS30208I Product ID is ULTRIUM 6       .
3274 LTFS30214I Firmware revision is 4142.
3274 LTFS30215I Drive serial is HU14171HYL.
3274 LTFS30290I Changer /dev/sg6 isn't reserved from any nodes.
3274 LTFS30285I The reserved buffer size of HU14171HYL is 1048576.
3274 LTFS30294I Setting up timeout values from RSOC.
3274 LTFS17160I Maximum device block size is 1048576.
3274 LTFS11330I Loading cartridge.
3274 LTFS30232I Cannot get remaining capacity: failed to parse the log page.
3274 LTFS12030E Cannot get capacity data: backend call failed (-21700).
3274 LTFS11999E Cannot load the medium: failed to get capacity data (-21700).
3274 LTFS11331E Failed to load the cartridge (ltfs_load_tape).
3274 LTFS30232I Cannot get remaining capacity: failed to parse the log page.
3274 LTFS12030E Cannot get capacity data: backend call failed (-21700).
3274 LTFS11999E Cannot load the medium: failed to get capacity data (-21700).
3274 LTFS14075E Cannot set up tape drive.
3274 LTFS30205I MODESELECT (0x55) returns -20500.
3274 LTFS30263I MODESELECT returns Invalid Field in Parameter List (-20500) /dev/sg6.

If I try to load a tape in the model C drive, I get this:

maceadmin@amacewrk05:~$ sudo ltfs -o devname=91WT082810 /media/lto2
329a LTFS14000I LTFS starting, LTFS version <IP_ADDRESS> (Prelim), log level 2.
329a LTFS14058I LTFS Format Specification version 2.4.0.
329a LTFS14104I Launched by "ltfs -o devname=91WT082810 /media/lto2".
329a LTFS14105I This binary is built for Linux (x86_64).
329a LTFS14106I GCC version is 7.5.0.
329a LTFS17087I Kernel version: Linux version 5.4.0-70-generic (buildd@lgw01-amd64-039) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #78~18.04.1-Ubuntu SMP Sat Mar 20 14:10:07 UTC 2021 i386.
329a LTFS17089I Distribution: NAME="Ubuntu".
329a LTFS17089I Distribution: DISTRIB_ID=Ubuntu.
329a LTFS14063I Sync type is "time", Sync time is 300 sec.
329a LTFS17085I Plugin: Loading "sg" tape backend.
329a LTFS17085I Plugin: Loading "unified" iosched backend.
329a LTFS14095I Set the tape device write-anywhere mode to avoid cartridge ejection.
329a LTFS30209I Opening a device through sg-ibmtape driver (91WT082810).
329a LTFS30288I Opening a tape device for drive serial 91WT082810.
329a LTFS30250I Opened the SCSI tape device <IP_ADDRESS> (/dev/sg7).
329a LTFS30207I Vendor ID is QUANTUM .
329a LTFS30208I Product ID is ULTRIUM-HH6     .
329a LTFS30214I Firmware revision is J451.
329a LTFS30215I Drive serial is 91WT082810.
329a LTFS30205I TEST_UNIT_READY (0x00) returns -20601.
329a LTFS30290I Changer /dev/sg7 isn't reserved from any nodes.
329a LTFS30285I The reserved buffer size of 91WT082810 is 1048576.
329a LTFS30294I Setting up timeout values from RSOC.
329a LTFS17160I Maximum device block size is 1048576.
329a LTFS11330I Loading cartridge.
329a LTFS11332I Load successful.
329a LTFS17157I Changing the drive setting to write-anywhere mode.
329a LTFS11005I Mounting the volume.
329a LTFS30205I READ_ATTR (0x8c) returns -20501.
329a LTFS30263I READ_ATTR returns Invalid Field in CDB (-20501) /dev/sg7.
329a LTFS30233I Cannot read attribute (-20501).
329a LTFS11336I The attribute does not exist. Ignore the expected error.
329a LTFS30216W Length mismatch is detected. (Act = 524288, resid = 0, resid_sense = 484063).
329a LTFS30216W Length mismatch is detected. (Act = 524288, resid = 0, resid_sense = 484063).
329a LTFS12049E Cannot read: backend call failed (-21716).
329a LTFS17039E XML parser: failed to read a block from the medium (-21716).
329a LTFS17037E XML parser: failed to read from XML stream.
329a LTFS17273E XML parser: Detected an I/O error on reading an index from the tape (-21716).
329a LTFS17016E Cannot parse index direct from medium (-21716).
329a LTFS11194W Cannot read index: failed to read and parse XML data (-21716).
329a LTFS11024E Cannot mount volume: read index failed on the index partition.
329a LTFS14013E Cannot mount the volume.
329a LTFS30252I Logical block protection is disabled.

I'm not sure what's going wrong. So any advice would be greatly appreciated.

Hi @alexhabgood , have you tried to run ltfs with sudo? Mine requires sudo powers to run properly. Give it a try and let's see what happens. Cheers.

Sorry, I mean running sudo ltfs -o device_list, to get the proper sg devices, which is the default backend.

Hi @TulioLazarini
That seems to be recognising the model C drive now, still no model B though:

maceadmin@amacewrk05:~$ sudo ltfs -o device_list
[sudo] password for maceadmin:
344f LTFS14000I LTFS starting, LTFS version <IP_ADDRESS> (Prelim), log level 2.
344f LTFS14058I LTFS Format Specification version 2.4.0.
344f LTFS14104I Launched by "ltfs -o device_list".
344f LTFS14105I This binary is built for Linux (x86_64).
344f LTFS14106I GCC version is 7.5.0.
344f LTFS17087I Kernel version: Linux version 5.4.0-70-generic (buildd@lgw01-amd64-039) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #78~18.04.1-Ubuntu SMP Sat Mar 20 14:10:07 UTC 2021 i386.
344f LTFS17089I Distribution: NAME="Ubuntu".
344f LTFS17089I Distribution: DISTRIB_ID=Ubuntu.
344f LTFS17085I Plugin: Loading "sg" tape backend.
Tape Device list:.
Device Name = /dev/sg7 (<IP_ADDRESS>), Vendor ID = QUANTUM , Product ID = ULTRIUM-HH6     , Serial Number = 91WT082810, Product Name =[ULTRIUM-HH6].

Also, still not able to mount a tape using the /dev/sg7:

maceadmin@amacewrk05:~$ sudo ltfs -o devname=/dev/sg7 /media/lto1
3453 LTFS14000I LTFS starting, LTFS version <IP_ADDRESS> (Prelim), log level 2.
3453 LTFS14058I LTFS Format Specification version 2.4.0.
3453 LTFS14104I Launched by "ltfs -o devname=/dev/sg7 /media/lto1".
3453 LTFS14105I This binary is built for Linux (x86_64).
3453 LTFS14106I GCC version is 7.5.0.
3453 LTFS17087I Kernel version: Linux version 5.4.0-70-generic (buildd@lgw01-amd64-039) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #78~18.04.1-Ubuntu SMP Sat Mar 20 14:10:07 UTC 2021 i386.
3453 LTFS17089I Distribution: NAME="Ubuntu".
3453 LTFS17089I Distribution: DISTRIB_ID=Ubuntu.
3453 LTFS14063I Sync type is "time", Sync time is 300 sec.
3453 LTFS17085I Plugin: Loading "sg" tape backend.
3453 LTFS17085I Plugin: Loading "unified" iosched backend.
3453 LTFS14095I Set the tape device write-anywhere mode to avoid cartridge ejection.
3453 LTFS30209I Opening a device through sg-ibmtape driver (/dev/sg7).
3453 LTFS30250I Opened the SCSI tape device <IP_ADDRESS> (/dev/sg7).
3453 LTFS30207I Vendor ID is QUANTUM .
3453 LTFS30208I Product ID is ULTRIUM-HH6     .
3453 LTFS30214I Firmware revision is J451.
3453 LTFS30215I Drive serial is 91WT082810.
3453 LTFS30285I The reserved buffer size of /dev/sg7 is 1048576.
3453 LTFS30205I RSOC (0xa3) returns -20601.
3453 LTFS30263I RSOC returns Not Ready to Ready Transition, Medium May Have Changed (-20601) /dev/sg7.
3453 LTFS30294I Setting up timeout values from vendor and device.
3453 LTFS17160I Maximum device block size is 1048576.
3453 LTFS11330I Loading cartridge.
3453 LTFS11332I Load successful.
3453 LTFS17157I Changing the drive setting to write-anywhere mode.
3453 LTFS11005I Mounting the volume.
3453 LTFS30205I READ_ATTR (0x8c) returns -20501.
3453 LTFS30263I READ_ATTR returns Invalid Field in CDB (-20501) /dev/sg7.
3453 LTFS30233I Cannot read attribute (-20501).
3453 LTFS11336I The attribute does not exist. Ignore the expected error.
3453 LTFS30216W Length mismatch is detected. (Act = 524288, resid = 0, resid_sense = 242970).
3453 LTFS30216W Length mismatch is detected. (Act = 524288, resid = 0, resid_sense = 242970).
3453 LTFS12049E Cannot read: backend call failed (-21716).
3453 LTFS17039E XML parser: failed to read a block from the medium (-21716).
3453 LTFS17037E XML parser: failed to read from XML stream.
3453 LTFS17273E XML parser: Detected an I/O error on reading an index from the tape (-21716).
3453 LTFS17016E Cannot parse index direct from medium (-21716).
3453 LTFS11194W Cannot read index: failed to read and parse XML data (-21716).
3453 LTFS11024E Cannot mount volume: read index failed on the index partition.
3453 LTFS14013E Cannot mount the volume.
3453 LTFS30252I Logical block protection is disabled.

For the model C drive, I think you can try the --enable-buggy-ifs option in the configure script.
https://github.com/LinearTapeFileSystem/ltfs/wiki/HBA-info#note-for-buggy-hbas

Hi @piste2750,
Yep that seems to have got the model C drive able to load tapes. The HBA being used is an ATTO ExpressSAS H680. Not sure I've fully understood this explanation:

LTFS doesn't support the HBAs which doesn't handle the transfer length of SCSI data by default. The reason is because the safety of the data but LTFS provides a option to relax this limitation.

Does this mean that I'm at risk of dodgy file transfer if I continue to use this HBA. I only ask because I've got different model of HBA which I could replace it with, if that would be preferable.
The Model B drive has still got the same issue it had before.

Basically, HBA shall return residual length returned from tape drive to the caller to have actual transfer length correctly. But the driver of this HBA doesn't do this.
--enable-buggy-ifs option makes the code to fetch the actual transfer length detected by HBA. I don't know it is actually at risk or not, but HBA drops some information from the tape drive. I don't recommend to use such kind of HBA.
For the model B drive, it looks some log sense page is not implemented. I believe it would be supported easily if I can have the SCSI specs of both model B and model C.
3274 LTFS30232I Cannot get remaining capacity: failed to parse the log page.
3274 LTFS12030E Cannot get capacity data: backend call failed (-21700).
3274 LTFS11999E Cannot load the medium: failed to get capacity data (-21700).
3274 LTFS11331E Failed to load the cartridge (ltfs_load_tape).
3274 LTFS30232I Cannot get remaining capacity: failed to parse the log page.
3274 LTFS12030E Cannot get capacity data: backend call failed (-21700).
3274 LTFS11999E Cannot load the medium: failed to get capacity data (-21700).
3274 LTFS14075E Cannot set up tape drive.

Does this mean that I'm at risk of dodgy file transfers if I continue to use this HBA? I only ask because I've got a different model of HBA which I could replace it with, if that would be preferable?

I also have a Quantum internal HH drive (LTO-8), and using a LSI SAS 9207-8i controller with it, flashed in IT mode. Works like a charm with Bacula, and started to run tests with LTFS recently - so far, so good.

I made a quick hack for the model B. Please feel free to try. (But I didn't confirm any build on this patch...)
diff --git a/src/tape_drivers/linux/sg/sg_tape.c b/src/tape_drivers/linux/sg/sg_tape.c
index f583079..1169e44 100644
--- a/src/tape_drivers/linux/sg/sg_tape.c
+++ b/src/tape_drivers/linux/sg/sg_tape.c
@@ -513,6 +513,12 @@ static int _raw_open(struct sg_data *priv)
                return -EDEV_DEVICE_UNSUPPORTABLE; /* Unsupported device */
        }

+       /* Special care about Quantum model B */
+       if (priv->vendor == VENDOR_QUANTUM) {
+               if (id_data.product_id[7] == ' ')
+                       priv->vendor = VENDOR_QUANTUM_B;
+       }
+
        if (priv->drive_serial[0]) {
                /* if serial number is already set, compare it */
                if (strcmp(priv->drive_serial, id_data.unit_serial)) {
@@ -2969,7 +2975,8 @@ int sg_remaining_capacity(void *device, struct tc_remaining_cap *cap)
        memset(buffer, 0, LOGSENSEPAGE);

        if ((IS_LTO(priv->drive_type) && (DRIVE_GEN(priv->drive_type) == 0x05)) ||
-               (priv->vendor == VENDOR_HP && IS_LTO(priv->drive_type) && (DRIVE_GEN(priv->drive_type) == 0x06))) {
+               (priv->vendor == VENDOR_HP && IS_LTO(priv->drive_type) && (DRIVE_GEN(priv->drive_type) == 0x06))
+               (priv->vendor == VENDOR_QUANTUM_B && IS_LTO(priv->drive_type))) {

                /* Use LogPage 0x31 */
                ret = sg_logsense(device, (uint8_t)LOG_TAPECAPACITY, (uint8_t)0, (void *)buffer, LOGSENSEPAGE);
diff --git a/src/tape_drivers/tape_drivers.h b/src/tape_drivers/tape_drivers.h
index a9d7bf5..6e11771 100644
--- a/src/tape_drivers/tape_drivers.h
+++ b/src/tape_drivers/tape_drivers.h
@@ -178,6 +178,7 @@ enum {
        VENDOR_IBM,
        VENDOR_HP,
        VENDOR_QUANTUM,
+       VENDOR_QUANTUM_B,
 };

Thanks for the patch!
However, it failed when configuring:
sg_tape.c:2978:58: error: called object is not a function or function pointer
   (priv->vendor == VENDOR_HP && IS_LTO(priv->drive_type) && (DRIVE_GEN(priv->drive_type) == 0x06))
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Makefile:511: recipe for target 'libtape_sg_la-sg_tape.lo' failed
make[3]: *** [libtape_sg_la-sg_tape.lo] Error 1

Sorry for that.
You are right. it is just missing OR ||. I made a tiny and easy mistake because I used a poor editor...

Just tested, and it's working for me. Thanks so much!
So, would be great if we could get that committed. :D

Good to hear that.
Sure, I will create a PR. But let me have a time.
I would like to integrate vendor code, like VENDOR_QUANTUM_B, into the supported drive lists.

Super. Will close the issue. Thanks again!


mention deprecation in README

/cc @xiang90 @philips @jonboulle

How actively do we want to dissuade people from using this? We could replace the entire README with this notice.

@jonboulle I would like to deprecate it step by step. It is not friendly to force people to move from it immediately.


addTags not working

Hi, the addTags method doesn't work when trying to add new tags with addAfterCurrentStep option.
Indeed, there is a bug in the code on line 5262 where
this.tags.concat(tags);
should be
this.tags = this.tags.concat(tags);
Thanks

@al2spark thanks for the report. I will update NPM, Bower, CDN asap, can you use the source from master for now?

Yep, no problem. Thanks


Unable to build Gradle 7.1.1 bin distribution from source on Arm64 due to selected nodejs architecture

Expected Behavior
./gradlew :distributionsFull:binDistributionZip on an Arm64 box should produce the binary zip
Current Behavior
./gradlew :distributionsFull:binDistributionZip  fails on Task :kotlinNpmInstall.
More info:
...
> Task :distributions-full:emptyClasspathManifest FROM-CACHE
> Task :ear:processResources
> Task :rootPackageJson
Download https://github.com/yarnpkg/yarn/releases/download/v1.22.4/yarn-v1.22.4.tar.gz
> Task :enterprise:processResources
> Task :scala:processResources
Error while receiving file changes
net.rubygrapefruit.platform.NativeException: wstring_convert::from_bytes
	at net.rubygrapefruit.platform.internal.jni.AbstractFileEventFunctions$NativeFileWatcher.executeRunLoop0(Native Method)
	at net.rubygrapefruit.platform.internal.jni.AbstractFileEventFunctions$NativeFileWatcher.access$100(AbstractFileEventFunctions.java:157)
	at net.rubygrapefruit.platform.internal.jni.AbstractFileEventFunctions$NativeFileWatcher$1.run(AbstractFileEventFunctions.java:171)
Stopping file watching and invalidating VFS after an error happened
> Task :kotlinNpmInstall FAILED
> Task :ide:processResources
/root/.gradle/nodejs/node-v12.16.1-linux-x64/bin/node: 1: /root/.gradle/nodejs/node-v12.16.1-linux-x64/bin/node: ELF: not found
/root/.gradle/nodejs/node-v12.16.1-linux-x64/bin/node: 12: /root/.gradle/nodejs/node-v12.16.1-linux-x64/bin/node: Syntax error: word unexpected (expecting ")")
> Task :messaging:classpathManifest
> Task :distributions-full:dslMetaData
Parsed 1535 classes in 10.734 seconds
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':kotlinNpmInstall'.
> Process 'Resolving NPM dependencies using yarn' returns 2

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 35m 4s
...

Context
This issue prevents recent Gradle versions bins from building on Arm64
Steps to Reproduce
I am using this GitLab CI / Jenkins-ish build file:
stages:
    - build
    - release

variables:
    GRADLE_VERSION: "7.1.1"

build:
    stage: build
    image: registry.gitlab.com/therackio/base-images/openjdk-zulu-arm64:buster-11
    tags:
        - arm64-aws-xlarge
    script:
        - apt update
        - export DEBIAN_FRONTEND=noninteractive && apt install -y --no-install-recommends git unzip
        - apt -y full-upgrade
        - git clone https://github.com/gradle/gradle.git
        - cd gradle
        - git fetch
        - git checkout tags/v$GRADLE_VERSION
        - sed -i "s/dev12\.gradle\.org\/artifactory\/gradle-plugins/repo\.grdev\.net\/artifactory\/gradle-plugin-portal-prod/i" ./gradle/shared-with-buildSrc/mirrors.settings.gradle.kts
        - chmod +x ./gradlew
        - ./gradlew :distributionsFull:binDistributionZip
        - ls -al ./subprojects/distributions-full/build/distributions/
        - mkdir -p ./dist
        - cp ./subprojects/distributions-full/build/distributions/gradle-$GRADLE_VERSION-bin.zip ./dist
    artifacts:
        paths:
            - gradle/dist/gradle-$GRADLE_VERSION-bin.zip
        expire_in: 1 hour

The base image here is just a recent zulu/buster/ Java 11 container and the sed monkey patch is to handle whats working its way  into a release from: https://github.com/gradle/gradle/pull/17597/files
Specifically, then ELF: not found and Syntax error: word unexpected (expecting ")") errors look like C arch mismatch type wonkyness.
This isn't surprising since /root/.gradle/nodejs/node-v12.16.1-linux-x64/bin/node: shows Gradle picked the x64 version of nodejs to cache, which I suspect is the root of the issue
Your Environment
Arm64v8 host (AWS ARM64 EC2)
Alpine docker build/ci container

the issue also applies to Gradle 7.2

The code that determines NodeJS' architecture in the Kotlin plugin was a bit suspicious. I don't have access to the Arm64 machine right now to check though. @duntonr, could you please check what System.getProperty("os.arch") returns in this Docker image?

@mlopatkin - sorry for the delay in responding, I was out last week.
the value is: aarch64
I set up an extremely basic test build project here: https://gitlab.com/therackio/build-tools/helper-images/java-buildtools-diagnostic-arm64 and build output here: https://gitlab.com/therackio/build-tools/helper-images/java-buildtools-diagnostic-arm64/-/pipelines to be able to run additional tests if needed

Thanks for the reply! The aarch64 is indeed breaking the Kotlin plugin which is responsible for downloading NodeJS. The fix for this has already landed on master but I don't know when it will make it into the release (it already missed 1.5.30).
I'll reply there when we update the Kotlin plugin to the fixed version but I cannot give any estimation of when it happens.

Thank you for the update!
On Tue, Aug 31, 2021 at 7:21 AM Mikhail Lopatkin @.***>
wrote:

Thanks for the reply! The aarch64 is indeed breaking the Kotlin plugin
which is responsible for downloading NodeJS. The fix for this
https://github.com/JetBrains/kotlin/commit/021d053cfe3881634e81a1133d7f7e2ea505ce4f
has already landed on master but I don't know when it will make it into the
release (it already missed 1.5.30).
I'll reply there when we update the Kotlin plugin to the fixed version but
I cannot give any estimation of when it happens.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/gradle/gradle/issues/18053#issuecomment-909144699,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABK36RZ3SF46BULDJUDAHXTT7S3KRANCNFSM5CI7NYJQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

@mlopatkin That patch landed in 1.6.0. Any update on this?

For what its worth, I did try with Gradle 7.3.3...same issue with kotlin so hasnt made it to Gradle yet
> Task :kotlinNpmInstall FAILED> Task :kotlinNpmInstall FAILED

Most likely, we'll update to Kotlin 1.6 in Gradle 7.5.


How to find out the NuGet version?

I am having an issue, posted here:
https://github.com/AutoMapper/AutoMapper/issues/1499
And I need to figure out which version of NuGet is running.

Posted to community board: https://social.msdn.microsoft.com/Forums/en-US/2a954c61-8b67-40c2-a28b-0784517555e2/when-running-the-nuget-pack-command-i-get-the-error-automapper-already-has-a-dependency-defined?forum=tfsbuild

If you call nuget.exe without any arguments, it prints the version number at the top of the usage info.

@jascam, @IvyMH  - fyi

Looks like the Hosted Build Server is running NuGet <IP_ADDRESS>

I was able to fix/workaround the issue by putting a PowerShell script in to download the latest NuGet. Then I pointed all of the NuGet tasks to this new nuget.exe. Pros: builds are working again, Cons: each build downloads NuGet again, causing unnecessary load on NuGet,org.
Here is my PowerShell:
$sourceNugetExe = "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe"
$targetNugetExe = "$(build.sourcesdirectory)/nuget.exe"
Invoke-WebRequest $sourceNugetExe -OutFile $targetNugetExe
Set-Alias nuget $targetNugetExe -Scope Global -Verbose
nuget

There are two options (1) use the one on the image (2) acquire what you want JIT.  You are correct that acquiring JIT has the downside of acquiring.


Preprocess tables metadata

When PlatformaticDB starts, it loads all the tables metadata from teh DB
If the Database is big (hundreds of tables) this might take quite a lot of time (and we should have to increase the plugin setup timeout for that purpose).
We could 'preprocess' these info and save them in some form so that we don't have to query all the tables metadata every time.

This was done, we know have a schema.lock


Checkboxes created with fixRowDataValidation() do not work (ridenoco-trip-request)

In api_provider.js, the receiveTripRequest() method now uses createRow() to append new trips to the Outside Trips sheet. The "Claim" and "Decline" columns are defined now in constants.js and when creating a new row, the validation rules there are used to format the columns as checkboxes.
It initially appears to work; however, clicking on a checkbox changes the cell content to "TRUE" and breaks the validation rule.

I think this might be a clash between formatting and data validation. Check out this on Google's forum for Sheets: https://support.google.com/docs/thread/104768094?hl=en&msgid=104776121

This could possibly be fixed in the "repair sheets" process by defining both formatting and data validation for the appropriate columns in defaultDocumentProperties.

@keviniano tagging you to look at this. In my end, the offending code is running during createRow() in the fixRowDataValidation() function. This occurs in outside trips, when creating a new trip request.

OK, after a bunch of testing of difference scenarios, here's what I've found:

One way, the way I think Google intended things to work, is to not use custom cell values (that is, not specify checked or unchecked values) and have formatting set to Automatic (range.setNumberFormat('General')). This will set the cell format to boolean TRUE on the first click and then boolean FALSE on the next click. There is no way to set the cell to blank after that, except by going up to the formula bar and clearing out the value. Reading cells formatted this way in Apps Script will give you boolean-type values.
Another way is to set custom checked and unchecked values, e.g., Yes and No, or just Yes, with blank for unchecked. This will also work with formatting set to Automatic. Reading cells formatted this way in Apps Script will give you string-type values. This includes blank for unchecked, which will return a zero-length string. You can coerce values to booleans via the standard JS !! idiom, though having an unchecked value of No would get coerced to true.
The problems comes when you want use the words true or false with custom cell values. This can be done, but under some circumstances (I don't know exactly which ones) it will only work if the cell is formatted as plain text (range.setNumberFormat('@')). Attempting to use the words true or false with automatic formatting breaks Google's Intended Way of Doing Checkboxes by introducing values that sheets wants to convert to boolean when the checkbox data validation code is expecting string types only when using custom cell values. The fix of specifying plain text formatting results in Apps Script giving you string-type values.

In another RideSheet instance, I have cells formatted the "wrong way" (custom checked value = TRUE with formatting set to Automatic) without any issue. I don't know why your test environment is different, but at least we have three ways of getting things to work.
Reference: See this helpful Stack Overload conversation for more information about how to set number formatting using GAS.


Resnet50 returning wrong label prediction with .tflite and .tflite quantized

I have the following code, where I load Resnet50 with ai-edge-torch, then I quantize the model to make inference.
However, differently from the tutorial with efficiendnet (224,224,3), the data format accepted is (batch, channels, height, width), like (16,3,224,224).
The code runs successfully, but the predicted labels are wrong. I am wondering if this just a reshape issue, or something more serious, like model conversion to tflite. Both tflite and tflite quantized return the same wrong label.
I'm running the code in an Anaconda environment, Ubuntu 22.04, Python 3.10.
imagenet_class_index.json was obtained from Kaggle.
Libraries versions:
ai-edge-torch                 0.1.1
torch                         2.4.0.dev20240429+cpu
torch-xla                     2.4.0+git174f407
torchaudio                    2.2.0.dev20240429+cpu
torchvision                   0.19.0.dev20240429+cpu
tensorflow-io-gcs-filesystem  0.37.1
#THE CODE:
`
import torch
import torchvision
import ai_edge_torch
from PIL import Image
import torchvision.transforms as transforms
import tensorflow as tf
import numpy as np
from torch.ao.quantization.quantize_pt2e import prepare_pt2e, convert_pt2e
from torch._export import capture_pre_autograd_graph
from ai_edge_torch.quantize.pt2e_quantizer import get_symmetric_quantization_config
from ai_edge_torch.quantize.pt2e_quantizer import PT2EQuantizer
from ai_edge_torch.quantize.quant_config import QuantConfig
import json
Initialize model
resnet50 = torchvision.models.resnet50().eval()
Convert to tflite
sample_input = (torch.randint(0,256,(1, 3, 224, 224),dtype=torch.float32),)
edge_model = ai_edge_torch.convert(resnet50, sample_input)
edge_model.export("/home/ai-edge/resnet50.tflite")
imported_edge_model = ai_edge_torch.load("/home/ai-edge/resnet50.tflite")
QUANTIZE TFLITE MODEL
pt2e_quantizer = PT2EQuantizer().set_global(
get_symmetric_quantization_config(is_per_channel=True, is_dynamic=True)
)
pt2e_torch_model = capture_pre_autograd_graph(resnet50,sample_input)
pt2e_torch_model = prepare_pt2e(pt2e_torch_model, pt2e_quantizer)
Run the prepared model with sample input data to ensure that internal observers are populated with correct values
pt2e_torch_model(sample_input)
Convert the prepared model to a quantized model
pt2e_torch_model = convert_pt2e(pt2e_torch_model, fold_quantize=False)
Convert to an ai_edge_torch model
pt2e_drq_model = ai_edge_torch.convert(pt2e_torch_model, sample_input, quant_config=QuantConfig(pt2e_quantizer=pt2e_quantizer))
edge_model.export("/home/ai-edge/resnet50_quantized.tflite")
quantizeded_edge_model = ai_edge_torch.load("/home/ai-edge/resnet50_quantized.tflite")
########################################## INFERENCE ############################################
Load the TFLite model and allocate tensors
interpreter = tf.lite.Interpreter(model_path="/home/ai-edge/resnet50_quantized.tflite")
interpreter.allocate_tensors()
Get input and output tensors
input_details = interpreter.get_input_details()
output_details = interpreter.get_output_details()
Get input shape
input_shape = input_details[0]['shape']
Load and preprocess the image
image = Image.open('/home/ai-edge/car.jpeg')
preprocess = transforms.Compose([
transforms.Resize(256),
transforms.CenterCrop(224),
transforms.ToTensor(),  # Converts to float32 and scales to [0, 1]
transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])
])
img_tensor = preprocess(image)  # img_tensor is now a FloatTensor with shape (3, 224, 224)
img_tensor = img_tensor.unsqueeze(0)  # Shape: (1, 3, 224, 224)
Convert img_tensor to numpy array and ensure it matches the expected dtype (uint8)
img_numpy = img_tensor.numpy()
img_numpy = (img_numpy * 255).astype(np.uint8)
Set the tensor to the interpreter
interpreter.set_tensor(input_details[0]['index'], img_numpy)
Run inference
interpreter.invoke()
Get the output tensor
output_data = interpreter.get_tensor(output_details[0]['index'])
Print the output
print("Output:", output_data)
Apply softmax to the output data
probabilities = tf.nn.softmax(output_data[0])
Find the index of the highest probability
predicted_class = np.argmax(probabilities)
Load class labels
with open('/home/ai-edge/imagenet_class_index.json') as f:
class_idx = json.load(f)
Now class_idx is a dictionary of class names
print(class_idx[str(predicted_class)][1])
`

I solved the problem, I was loading the torchvision model the wrong way:
resnet18 = torchvision.models.resnet50(torchvision.models.ResNet50_Weights.IMAGENET1K_V1).eval()


Remove duplicated isNode.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 90.93%. Comparing base (25a9a33) to head (5e397a9).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #416   +/-   ##
=======================================
  Coverage   90.93%   90.93%
=======================================
  Files          54       54
  Lines        3906     3906
  Branches      360      360
=======================================
  Hits         3552     3552
  Misses        353      353
  Partials        1        1

Flag
Coverage Δ

unittests
90.93% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


whenever I try to play it give me this error message

could someone help?

Do you still have this issue?
This does not look like it's related to this mod at all and the only thing I could find online is this reddit thread.
I can only assume you are trying to connect to a server that doesn't have the same mods installed or you are connecting to something which isn't actually a Minecraft server?
Sorry, that's all I can get from this.
Since it's not related to this mod, I'm gonna close this issue now but if you want you can still comment here.

Do you still have this issue?
This does not look like it's related to this mod at all and the only thing I could find online is this reddit thread.
I can only assume you are trying to connect to a server that doesn't have the same mods installed or you are connecting to something which isn't actually a Minecraft server?
Sorry, that's all I can get from this.
Since it's not related to this mod, I'm gonna close this issue now but if you want you can still comment here.

Thank you for your email, but I was able to fix the issue. Turns out I had
to uninstall Minecraft completely and reinstall it. I think it was an issue
with my files. It’s fixed now. Thank you.
On Tue, Jan 5, 2021 at 5:06 PM Fourmisain<EMAIL_ADDRESS>wrote:

Do you still have this issue?
This does not look like it's related to this mod at all and the only thing
I could find online is this reddit thread
https://reddit.com/r/ModdedMinecraft/comments/kbxcs8/cant_connect_to_lan_world_with_friend/
.
I can only assume you are trying to connect to a server that doesn't have
the same mods installed or you are connecting to something which isn't
actually a Minecraft server?
Sorry, that's all I can get from this.
Since it's not related to this mod, I'm gonna close this issue now but if
you want you can still comment here.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/RandomMcSomethin/fallingleaves/issues/5#issuecomment-754976434,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARZ2HV7SN2SMIXOSFMF3OUTSYOSRZANCNFSM4T2ULQ6Q
.

Thank you for your email, but I was able to fix the issue. Turns out I had
to uninstall Minecraft completely and reinstall it. I think it was an issue
with my files. It’s fixed now. Thank you.
On Tue, Jan 5, 2021 at 5:06 PM Fourmisain<EMAIL_ADDRESS>wrote:

Do you still have this issue?
This does not look like it's related to this mod at all and the only thing
I could find online is this reddit thread
https://reddit.com/r/ModdedMinecraft/comments/kbxcs8/cant_connect_to_lan_world_with_friend/
.
I can only assume you are trying to connect to a server that doesn't have
the same mods installed or you are connecting to something which isn't
actually a Minecraft server?
Sorry, that's all I can get from this.
Since it's not related to this mod, I'm gonna close this issue now but if
you want you can still comment here.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/RandomMcSomethin/fallingleaves/issues/5#issuecomment-754976434,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARZ2HV7SN2SMIXOSFMF3OUTSYOSRZANCNFSM4T2ULQ6Q
.


hvplot using groupby with active legend is flickering

I am running a hvplot() on a xarray in a Jupyter Notebook in VSCode and the figure is flickering if it has a legend.

The changing size of the figure with the legend is unwanted and makes is hard to focus on the shown data. To me it looks like the figure is updated twice, once without the legend and then the total available space is used, and a second time with the legend.
If this is right, there is somewhere in the process a unneeded calculation.
All software version info
Python, HvPlot, Panel, Bokeh

Python version        :  3.12.4 (tags/v3.12.4:8e8a4ba, Jun  6 2024, 19:30:16) [MSC v.1940 64 bit (AMD64)]
IPython version       :  8.25.0
Tornado version       :  6.4.1
Bokeh version         :  3.4.2
BokehJS static path   :  [~\Envs\fbpinn\Lib\site-packages\bokeh\server\static](file:///C:/Users/mosc/Envs/fbpinn/Lib/site-packages/bokeh/server/static)
node.js version       :  (not installed)
npm version           :  (not installed)
jupyter_bokeh version :  4.0.5
hvplot version        :  0.10.0
panel version         :  1.4.4
Operating system      :  Windows-10-10.0.19045-SP0

VSCode

Version: 1.91.1 (user setup)
Commit: f1e16e1e6214d7c44d078b1f0607b2388f29d729
Date: 2024-07-09T22:06:49.809Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT x64 10.0.19045

import hvplot.xarray  # noqa
import numpy as np
from xarray import Dataset

x = np.arange(-np.pi,np.pi,0.1)
t = np.arange(0,10,0.1)
u = np.array([k*np.sin(x) for k in t]).T
v = np.array([k*np.cos(x) for k in t]).T

ds = Dataset({"u": (["x", "time"], u), "v": (["x", "time"], v)}, coords={"x": x, "time": t})

a = ds[["u", "v"]].hvplot(groupby="time", legend=False).opts(ylim=(-10.2,10.2))
b = ds[["u", "v"]].hvplot(groupby="time").opts(ylim=(-10.2,10.2))

a+b

Comment
I was trying to reproduce this in a browser in JupyterLab and JupyterNotebook but there was no flickering. I don't know why. I guess the update frequency can be different, which could explain the different visual observations.

[x] I may be interested in making a pull request to address this

I can reproduce, but not sure why; perhaps something wrong with jupyter-bokeh; maybe you can submit an issue there too https://github.com/bokeh/jupyter_bokeh


miagrate pr [LLM Runtime] Add Whisper Example and Python API

Type of Change
feature or bug fix or documentation or others
API changed or not
Description
detail description
Issues: xxx
Expected Behavior & Potential Risk
the expected behavior that triggered by this PR
How has this PR been tested?
how to reproduce the test (including hardware information)
Dependency Change?
any library dependency introduced or removed

https://inteltf-jenk.sh.intel.com/job/neural_speed_extension/17/

consider uncommenting this if you are free
https://github.com/intel/neural-speed/blob/749caca6e94b88a8e105f9f4f6ab036acf2d87a0/.clang-tidy#L3

consider uncommenting this if you are free
https://github.com/intel/neural-speed/blob/749caca6e94b88a8e105f9f4f6ab036acf2d87a0/.clang-tidy#L3

I fix some format error, but some error ，however, some variables need to be modified in sync with bestla.

Ok for me,  you can list the bestla issues here

consider uncommenting this if you are free
https://github.com/intel/neural-speed/blob/749caca6e94b88a8e105f9f4f6ab036acf2d87a0/.clang-tidy#L3

I fix some format error, but some error ，however, some variables need to be modified in sync with bestla.

Ok for me, you can list the bestla issues here
Can you please fix this error? This is related to bestla，there is some variables in bestla
/neural-speed/neural_speed/core/layers/mha_dense.cpp:315:10: warning: invalid case style for struct 'Param' [readability-identifier-naming]
struct Param {
^~~~~
param_t

https://inteltf-jenk.sh.intel.com/job/neural_speed_extension/29/artifact/

https://inteltf-jenk.sh.intel.com/blue/rest/organizations/jenkins/pipelines/neural_speed_cpp_graph_test/runs/215/nodes/77/steps/80/log/?start=0


Make tests run on Travis

Looks like it's breaking because Zuul wants to be executed in the browser?

@planemad do you want to have a look at this again? tests also don't work for me locally with:
$npm test

><EMAIL_ADDRESS>test mapbox-match.js
> zuul --local -- test/test.js

open the following url in a browser:
http://localhost:51252/__zuul
module.js:338
    throw err;
          ^
Error: Cannot find module 'st'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (mapbox-match.js/test/server.js:1:72)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:501:10)

@freenerd don't think I can look into this till next week. Just got back from vacation and have my hands full with priority work. Can this wait?


How to you check / verify that the user has clicked the verification

How do you programmatically check to see that the verification email has been clicked on.  I want to use this for registration and not allow a user to log in unless they have verified their email address through the link in the sent email.

sorry I did not see the verify flag.  Now I just need to figure how to resend the verify if the user did not get the link


Hash StorageKey slot for Admin library

Type of change

Improvement (refactoring, restructuring repository, cleaning tech debt, ...)

Changes
The following changes have been made:

Adds the string "admin" and hashes with the bits of an Identity when creating the storage slot to storage an admin.

Notes

Reported in the Fuel Attackathon

Checklist

[x] I have linked to any relevant issues.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I have updated the documentation where relevant (API docs, the reference, and the Sway book).

[ ] If my change requires substantial documentation changes, I have requested support from the DevRel team

[x] I have added tests that prove my fix is effective or that my feature works.
[x] I have added (or requested a maintainer to add) the necessary Breaking* or New Feature labels where relevant.
[x] I have done my best to ensure that my PR adheres to the Fuel Labs Code Review Standards.
[x] I have requested a review from the relevant team or maintainers.
[x] I have updated the changelog to reflect the changes on this PR.

Id prefer a longer and more specific string for the digest, to avoid the possibility of collisions more (something like "sway_libs_owner"), but ill leave that to your discretion


🚧 Improved frontend playlist portability

Two main features are added to frontend portability:
Purpose
Sharing a playlist will share all his resources.
Maybe this isn't obvious.
Proposal
This PS comes on top of #1067
It adds two mail features:

Display the list of playlists from which current playlist is reachable
Display the list of resources that will be shared

[ ] Make sure API permissions are safe
[ ] Fix and add tests

@sampaccoud @lunika If you feel that this PR is interesting, we need to make sure permissions are safe.
Also it seems like API permissions for videos and documents are not equivalents, so maybe it's something we need to discuss.

It can be interesting yes. Adding tests is a good solution to be sure that the permissions are ok.


Disable listing of images to  users who are not administrators

Portainer is an awesome tool for containers management however not being able to hide images from other users is a limitation for us.
Is it possible to change the "user's role" in order to hide images from users so it can not be exported? Looks like it is not possible even in the business version.

This has been asked for before (https://github.com/portainer/portainer/issues/3858) and I believe there are issues with implementing this in the current access control system. I will flag this with the product team however to see if anything has changed there.

Users that can deploy certain images can export them as well yes.
And controlling which images a user has access to can be implemented by using private registries (e.g. using ProGet or others).

The scenario I think of is: I have two non-admin users that share access to an environment. They setup separate registry configurations, and can use images that the other cannot access from those registries.
Once one of those images is running in their shared environment, do we have code that tracks where the images came from, and thus prevents them from exporting each other's images from the environment's version?
I do want these two users to be able to see the running container, as they're on separate Ops teams, and the container depend on each other - but its important that while they can help each other run, they should not have full open access (ie, even exec would hopefully be restricted)
welcome to "enterprise collaboration" :)

Hi @arrfou99 - can you go into more detail on this issue? We've been discussing potential changes around this but need to fully understand what your desired implementation might be here. Would we need to identify the "source" of the image (the user that pulled it, the repo it came from, etc) and apply restrictions based on that? Would a simple "this role doesn't have access to the Images section" suit your needs?
We also need to consider how Docker does things, and the risk of changes potentially breaking other users' workflows.

Hi, I have replied  here (#1088)


API docs for user preferences

Towards getodk/central-backend#1211
I've hauled it through the sphinx circus to make sure it gets rendered.

I feel like this shouldn't be a top level section of the Central API, but should be nested under the Accounts and Users section, probably after Users > initiating a password reset, and before the App Users subsection.
You could also mention this in the 2024.3 section of the changelog. There is already one bullet point there.


version-extractor-android 0.0.3

New Pull Request Checklist
Please mark the points which you did / accept.

[x] I will not move an already shared step version's tag to another commit
[x] I read the Step Development Guideline
[ ] I have a test for my Step, which can be run with bitrise run test (in the step's repository)
[x] I did run bitrise run audit-this-step (in the step's repository - note, if you don't have this workflow in your bitrise.yml, you can copy it from the step template.)
[x] I read and accept the Abandoned Step policy

New Step
Thank you for the new Step share! The CI check might will fail due to our extended validation engine. Nothing to worry about yet, we will get back to you shortly.

@vladimirpetrovski Thanks for the contribution. Please merge this change to allow the CI to pass: https://github.com/vladimirpetrovski/bitrise-steplib/pull/1.

@lpusok I've created a new pull request on the latest changes 👉  #2485 . I'm closing this one.


Display state of Google credentials on New page

This is an early coding pass at an attempt to display the current state of the Google credentials associated with the account on the /new page.
Checklist:

[x] Add Google Drive icon to /new
[x] Add error message window with link to login page
[ ] test for the current state of credentials (poss. GoogleActions.authCheck() ???)

After looking at this, it seems like we're ending up with almost exact duplication of the edit page. Why don't we work on just merging the two pages at this point?

Thinking about it, isn't /new really just /edit that isn't saved? So /edit (as opposed to /edit/:id) could/should work just the same as /new does now. Although this then raises the issue of how to maintain the "Clone to New" functionality...
I'll think on it some more before pushing ahead in either direction.

Closing in favour of continuing with #1423.


Encrypt ssh key

Add the -p flag to the ssh-keygen command (in qaz.modules.git.Git.install_action) to add a pass phrase to the key.

This already happens; no need for the extra flag.


efm-langserver:  Error while opening a new .cc file

Spawning language server with cmd: efm-langserver failed with error message:  EACCES:  permission denied

Could you give me some suggestiones?
After LspInfo it report efm-langserver unable to find executable? Should I install efm-langserver manmualy, or it will be installed automatically?

I have illustrated it in here: https://github.com/ayamir/nvimdots/wiki/Prerequisites

Thanks you for your fast response. I'm new to nvim, yuo did such a great job which is key for me to enter into nvim world.

instead of using go to install that, use yay -S efm-langserver


Refactor max samples into average max spp for interactive mode

Intended to be a first step towards exposing samples, samples per pixel, and time-based rendering constraints https://github.com/appleseedhq/appleseed/issues/1508.

A default of 10,000 was chosen because this is the point at which the Cornell box begins to materialize. That said, we may want to bump it higher still.

I've pushed a commit to refactor this param into max average samples per pixel, based on the fact that
max average samples per pixel * total pixels = max total number of samples

as discussed briefly above.

PTAL
Also, one thing I noticed is that this doesn't account for whether a crop window is set in studio. One way to account for this it seems is to expose a method on the frame to return total sample-able pixels and applying it here: https://github.com/appleseedhq/appleseed/pull/2471/files#diff-22f25c5c4f9bab4b8f5e8ec516306321R109.

Also, one thing I noticed is that this doesn't account for whether a crop window is set in studio. One way to account for this it seems is to expose a method on the frame to return total sample-able pixels

Oh yeah, another good catch!
You can use Frame::get_crop_window()::volume() to get the number of pixels in the crop window. Please double-check that this does return exactly the number of pixels to render, I quickly checked and it seems fine, but you know :)

PR will need to be rebased.

Thanks!
You should read up about rebasing. The appropriate procedure here is to fetch (and not pull) the master branch, then rebase your branch on top.
What you just did is that you merged master into your branch. The result is similar and in that case it doesn't matter because I'll squash and rebase your PR on top of master anyway, but it's useful to know how these things work :)

I don't mind rebasing, and I actually do it daily; I'm curious what is incorrect in this particular case by not rebasing.

Well, that's my point, you didn't rebase, you merged master into your branch.

Ah maybe I misunderstood what you mean, are you asking what's wrong with merging? It forces me to squash your PR into a single commit in order to get rid of the merge commit.

Ahh, I see, I think I mistakenly thought this was going to be squashed regardless, in which case rebase + squash and merge + squash would both add only 1 commit to master.
Sorry for the confusion >.< ...

Ahh, I see, I think I mistakenly thought this was going to be squashed regardless, in which case rebase + squash and merge + squash would both add only 1 commit to master.

Sorry for the confusion >.< ...

No prob! In that case it's no big deal because I would squash the PR into a single commit anyway since all commits are related to the same feature. But other PRs might have a bunch of unrelated commits, or several commits that implement a feature in small pieces without ever going back to fix bugs, address review comments, etc. For those PRs, I would rebase the PR on top of master when merging instead of squashing it (which would loose the individual commits). And in that case, merge commits are problematic and need to be avoided or removed by the PR's author.
Hope that clarifies somewhat the process!

The PR looks good. I realized yesterday that there's one last thing missing: we need to automatically update existing project files to the new progressive frame renderer parameter:

Bump the project file format revision in modeling/project/projectformatrevision.h.
Add a migration step in modeling/project/projectfileupdater.cpp.
Test by loading * - lt.appleseed scenes in sandbox/tests/test scenes/light tracing/`.

It seems that you changes from your commit "Mark panel ctors explicit" got somehow lost? Only one constructor is still marked as explicit, although you did at some point mark them all as explicit.

I did but then pulled it because it wasn't relevant to the changes in this PR, and since this is getting squashed because I failed to rebase, it seemed like opening a new PR for it would be correct. I don't mind re-adding it here though if it's no big deal.

Yep! The light tests seem to run as expected now :) The max average spp value is picked up from the existing project file for the final mode.


⚠ Bofrost.be has degraded performance

In b422c8e, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1645 ms

Resolved: Bofrost.be performance has improved in 8c2f7c6.


Class blade.compiler does not exist

Hi there. I'm trying to migrate to Laravel 5.8 from 5.7, and I've also switched to the new version of datatable 9 but after upgrading I get an error:
Class blade.compiler does not exist
And i see you using that in C:\SlotSys\www\aplicatie\vendor\yajra\laravel-datatables-oracle\src\Utilities\Helper.php at compileBlade method.
Any ideea what happened?
Thanks.

Maybe some cache issues? Just updated an app today and all seems to work fine.
Are you still having this issue?

Just upgraded to Laravel 5.8.8 and got the same error. vendor\yajra\laravel-datatables-oracle\src\Utilities\Helper.php was the first file I found that mentioned the issue, but wasn't the cause.
I my case, I tracked the error down to a custome blade service provider, where I registered some unused blade directives, from within the service providers boot method. Removing them resolved the issue and allowed the @php artisan package:discover --ansi command to complete.


fix: validation data and ranker preprocessing

fixes issue https://github.com/Azure/mmlspark/issues/703
specifically, filters the training data if validation index column is present, and adds preprocessing to validation data for ranking

/azp run


Converted to .Net Standard 2.0

This project converted from .Net Framework 4.5.2 to .Net Standard 2.0.

thanks for the pull, but i can merge it as there is a CI process that fails, it cannot be converted it needs to supot multiple targets, see here: https://docs.microsoft.com/en-us/nuget/create-packages/supporting-multiple-target-frameworks

Hi @arthurvaverko,
I added .Net Framework 4.7 to target frameworks. But CI has failed. What is AppVeyor MSBuild version?

@arthurvaverko When will it be merged?

this is what i get in AppVeyor
uild started
git clone -q https://github.com/arthurvaverko/ConsoleMenu.git C:\projects\consolemenu
git fetch -q origin +refs/pull/2/merge:
git checkout -qf FETCH_HEAD
Patching AssemblyInfo
No AssemblyInfo files found matching '**\AssemblyInfo.*'
msbuild "C:\projects\consolemenu\ConsoleMenu.sln" /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.
C:\projects\consolemenu\ConsoleMenu\ConsoleMenu.csproj(1,1): error MSB4041: The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the <Project> element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format.
C:\projects\consolemenu\ConsoleMenuTest\ConsoleMenuTest.csproj(1,1): error MSB4041: The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the <Project> element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format.
Command exited with code 1