extension may stuck in activating state if dispose are never ending

Bug description
Reading carefully the logs in https://github.com/containers/podman-desktop/issues/9370#issuecomment-2419499871 we have the following
Activating extension podman-desktop.podman failed error:Error: Extension podman-desktop.podman activation timed out after 20 seconds

which correspond to the following console.log
https://github.com/containers/podman-desktop/blob/6c8c434fa61f175288c33e9b0ae043119166783a/packages/main/src/plugin/extension-loader.ts#L1639
However; a per the user state: we never the extension state to failed, still on activate, meaning something went wrong in those lines
https://github.com/containers/podman-desktop/blob/6c8c434fa61f175288c33e9b0ae043119166783a/packages/main/src/plugin/extension-loader.ts#L1639-L1650
We are iterating in the subscriptions, and disposing them in a try catch, but here is the catch... we do not set timeout to them, but... they are not promises, they should not take too much time ??
Podman is adding tons of disposales, some of them very heavy
https://github.com/containers/podman-desktop/blob/d11a6f91b4f950430d11a6cfe6b29d1cad42dc64/extensions/podman/packages/extension/src/extension.ts#L1561-L1563
Operating system
Windows 11
Installation Method
Other
Version
next (development version)
Steps to reproduce
https://github.com/containers/podman-desktop/issues/9370
Relevant log output
No response
Additional context
No response

If the problem is coming from disposal never ending, this is tricky, and bad. But we could work around by appliying a race condition between a setTimeout and the disposals, or moving the setState error above, but we could have a state where some resources are yet not disposed, and the extension may restarted.
IMO the timeout race is an acceptable solution :/

I have a reproducer:

have 2 podman machine started
start podman desktop
the podman extension will display a dialog about the podman default connection not in sync with the podman machine
wait at least 20 seconds to answer to the dialog --> extension start elapsed

I have a reproducer:
* have 2 podman machine started

* start podman desktop

* the podman extension will display a dialog about the podman default connection not in sync with the podman machine

* wait at least 20 seconds to answer to the dialog --> extension start elapsed

Moreover, in this state extension cannot be activated anymore in running Podman Desktop. The error says:
Activating extension podman-desktop.podman failed error:Error: command 'podman.onboarding.checkInstalledCommand' already exists

closing as activate method of podman extension has been changed.
(in any case the issue comes from the extension)


Does not produce working QR Codes for vCards

Type of issue
[x] Bug
[ ] Question (e.g. about handling/usage)
[ ] Request for new feature/improvement
Expected Behavior
Working QR Codes generated from vCard files
Current Behavior
Produces QR Code that is not readable by any QR Reader (does nothing)
Steps to Reproduce (for bugs)
Using this vCard:
BEGIN:VCARD
VERSION:2.1
N;LANGUAGE=en:Doe;John
FN:John Doe
ORG:Contoso
TITLE:Software Engineer
TEL;WORK;VOICE:+11 12345678
TEL;CELL;VOICE:+11 4567890
ADR;WORK;PREF:;;Work St 1;Anaheim;;123456;USA
LABEL;WORK;PREF;ENCODING=QUOTED-PRINTABLE:Work St 1=0D=0A=
=0D=0A=
123456  Anaheim
X-MS-OL-DEFAULT-POSTAL-ADDRESS:2
URL;WORK:www.contoso.com
<EMAIL_ADDRESS>
X-MS-OL-DESIGN;CHARSET=utf-8:<card xmlns="http://schemas.microsoft.com/office/outlook/12/electronicbusinesscards" ver="1.0" layout="left" bgcolor="ffffff"><fld xmlns="" prop="name" align="left" dir="ltr" style="b" color="000000" size="10"/><fld xmlns="" prop="org" align="left" dir="ltr" color="000000" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="telcell" align="left" dir="ltr" color="d48d2a" size="8">Mobile</fld><fld xmlns="" prop="email" align="left" dir="ltr" color="d48d2a" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="addrwork" align="left" dir="ltr" color="000000" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/></card>
REV:20190220T153736Z
END:VCARD

Using this code to generate an SVG file:
var qrGenerator = new QRCodeGenerator();
var vcardContents = File.ReadAllText(vcardFile);
var qrCodeData = qrGenerator.CreateQrCode(vcardContents, QRCodeGenerator.ECCLevel.H, requestedVersion: 2);
var qrCode = new SvgQRCode(qrCodeData);
var svg = qrCode.GetGraphic(20);

Additional Note: crashes when not providing requestedVersion parameter.

Hi @JunkyXL86 ,
the QR code gets corrupted, because of the requestedVersion: 2. This says that the QR code should get a fixed size whereby requestedVersion=2 is too small to hold all data of your input string. So the first step is to remove the requestedVersion parameter and let QRCoder decide the correct version.
As you have realized, without the parameter QRCode crashes. This is the result of the given payload (your VCard string) and the choosen error correction level H. The higher the error correction level, the more space is needed, which results in a higher QR Code version. The maximum QR code version is 40 (which means 40 black/white dots per row). The combination of high error correction (QRCodeGenerator.ECCLevel.H) and your relatively long payload results in a theoretical QR code version > 40. Since this is not allowed by QR definition the QRCoder throws an exception. To avoid this problem, lower the error correction level. (By using the next smallest ecc level QRCodeGenerator.ECCLevel.Q the resulting QR code version is 38 and you should get a working result.)
For more information about capacity of QR codes for different ECC levels, please consult the following table: https://www.qrcode.com/en/about/version.html
If the above didn't solve your problems, let me know and feel free to re-open this issue.


Topic/k1ch/ Admin GET:/personas

feat: topics/k1ch/Admin GET:/personas?filter=tenantname:DMGT&sort=sub_claim&order=asc
chore: topics/k1ch/Admin GET:/personas - API and DB tests
chore: topics/k1ch/admin-get-personas/simplify filter logic

OAS changes:

Added tests:

Overview

Your PR Checklist 🚨
❤ Please review the guidelines for contributing to this repository. Our goal is to merge PRs fast 💨 .

[x] Check your code additions will fail neither code linting checks nor unit tests.
[x] Additional units tests have been added to prove code updates work and fixes are effective
[x] Additional documentation has been added (if appropriate)
[x] Update Assignee field to yourself

Issue Reference

Relates to #59
Open Questions or Items to Callout

@mikelax do we need pagination functionality for this version, or can it be implemented as a minor update later? Also, assuming each persona object is approximately 1KB, do we even need pagination functionality? If the answer is yes, should the response be an object instead of an array to include metadata?

{
    "metadata": {
        "limit": 100,
        "total": 5000,
        "offset": 1,
    },
    "data": [
        {}
    ]
}

@k1ch looks good, I left a couple of small questions.

@mikelax please review the latest changes and let me have your thoughts on the open question.


.where() haven't strict parameters types

Several methods (such as add or put) have strict types for parameters
https://github.com/dexie/Dexie.js/blob/b027b1bdb28fc32cc2d1ff8b95a3de4ba8798207/src/public/types/table.d.ts#L45
Because of this, Typescript provides hints when typing, and highlights errors

But several methods like where doesn't provide strict parameter types
https://github.com/dexie/Dexie.js/blob/b027b1bdb28fc32cc2d1ff8b95a3de4ba8798207/src/public/types/table.d.ts#L24-L25
As the result, you do not receive any autocomplete suggestions or error messages:

playground

I created a package trying to fix this here https://github.com/spion/dexie-better-types
A separate package should make it easier to progressively polish the types in case I got something wrong
Feel free to try them out and report in case something is missing. Once all potential issues are ironed out, I'd be happy to send a PR in this repo.

Thanks for this nice iniative! I hope it can help input to how we could incorporate better typings in dexie's where clauses. I did perform a step in this direction with Table.update() in dexie@4, expecting an UpdateSpec using a map between KeyPaths and KeyPathValue types.
When the repo feels solid, we could incorporate it into dexie again. Any feedback on this project from other users are much welcome!

Hi @dfahlander Was a pull request ever created or accepted which adds strict parameter types to .Where? Lack of this is the only thing holding me back from using the very nice package Dexie.

There was no PR created. A PR would be much welcome in the src/public/types/table.d.ts.
The where-clause must support the following:

Support loose typing if the table is untyped (Table<any, any>)
Support for the following formats:

db.table.where('prop').equals(x)
db.table.where('prop.subprop').equals(x)
db.table.where({prop: x})
db.table.where({"prop.subprop": x})

Have a look at how UpdateSpec is declared using the KeyPaths<T> generic that uncollapses all possible keypaths given an object tree.

Thanks, @dfahlander!
@spion Were you going to submit a pull request based on your nice dexie-better-types repo?

@posterhoudt I've not had much fedeback on the types so far. They work pretty great for me. I can try and check if they need some updates for anything new that has been added since and if not create the PR.
Will need to try and find some time for this though - possibly next week.
Note that its very easy to try that package out. The README outlines the instructions. Just installing the package and swapping the Table type should be sufficient and give you instant feedback if anything in your app breaks in terms of typechecking doing the wrong thing. Would appreciate any feedback.

Thanks, @spion. I will try out your new types and post my feedback here.


Spacing between buttons and filter box is brokend

There used to be spacing like this:

Now its like this:

We need to fix this back to how it was.

I have validated this issue on v2.7-17e5bb595bc7d6d9280dd40280b4e82b21903790-head . This issue got fixed and I m closing this card.
Validation details as below:
Rancher Version : v2.7-17e5bb595bc7d6d9280dd40280b4e82b21903790-head
Browsers : Chrome and Firefox
Users : Admin and Standard Users
Modes : Auto and Dark
Steps to Reproduce:

Provision Rancher
Create RKE cluster
Check for the Cluster Management page and check for the Space before the Cluster

Actual:


Access to the source rootData from the custom keyword validator

Can I get access to the source rootData (that not changed by rules) from the custom keyword validator?
addKeyword('myKey', {
      modifying: true,
      compile: (sch, parentSchema) => {
        return (data, dataPath, parentObject, propName, rootData) => {
             console.log(rootData); // <<--- rootData is already changed
             return true;
        };
      }

Ajv does not clone the original data in any way, see https://github.com/epoberezkin/ajv/issues/549 for the reasons. The rootData is always passed by the reference.
If your custom keywords modifies the data then all the keywords that execute after will have access to the modified data.
You can work around by passing both the original and the clone as two properties of the same object and either re-define your schemas accordingly or just construct the modified schema in code.
Data:
{
  data: {/* your data */},
  original: {/* the deep-clone of your data */}
}

Schema:
{
  type: 'object',
  properties: {
    data: {/* your schema */}
    original: {}
  },
  additionalProperties: false
}

Nice idea, but I applied a closure. Thanks!


I am getting "multiple command produce gRPCCertificates.bundle" error in Firestore when archiving

[REQUIRED] Step 2: Describe your environment

Xcode version: 10.0  (10A255)
Firebase SDK version:  Firebase 5.13.0, FirebaseFirestore (0.15.0)
Firebase Component: FirebaseFirestore (0.15.0)
Component version: 0.15.0

[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
install firestore through pod
pod 'Firebase/Firestore'  and archive
Relevant Code:
 platform :ios, '11.0'

target 'FireCheck' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for FireCheck

 pod 'Firebase/Firestore'

end

It produce following error in archiving
Multiple commands produce '...iphoneos/gRPCCertificates.bundle':

Target 'gRPC-C++-gRPCCertificates' has create directory command with output '.../iphoneos/gRPCCertificates.bundle'

Target 'FirebaseFirestore-gRPCCertificates' has create directory command with output '....iphoneos/gRPCCertificates.bundle'

I have already tried clean, deleting derive data, de-integrating and reintegrating pods , nothing works I am using XCode 10.
Any help is appreciated
It only happens when i do build and archive ... normal run/debug works
It also only happens in MacOS 10.14 (18A391) not in previous version of the macOS High Sierra

The difference is between Pods-WhereRU-resources.sh
if [[ "$CONFIGURATION" == "Debug" ]]; then
  install_resource "${PODS_CONFIGURATION_BUILD_DIR}/FirebaseFirestore/gRPCCertificates.bundle"

if [[ "$CONFIGURATION" == "Release" ]]; then
  install_resource "${PODS_CONFIGURATION_BUILD_DIR}/FirebaseFirestore/gRPCCertificates.bundle"

If i build and archive with previous version of MacOS High Sierra with same XCode version same CocoaPods version these lines are not generated in Pods-WhereRU-resources.sh file

Dupe question at https://stackoverflow.com/questions/53406947/xcode10-ios-firebase-firestore-sdk-multiple-command-produce-grpccertificates

Hi
in Firestore version  0.14.0 (pod 'Firebase/Firestore', '5.12.0') Everything works fine. This problem starts in version 0.15.0 only... Also in XCode if i build using Legacy build system it works in 0.15.0 ... but if i use new build system which is default, this error comes ....

Ok, it seems the issue has nothing to do with the macOS version.
I reproduced on macOS 10.13 with the Firestore quickstart and CocoaPods 1.5.3. I successfully archived with 0.14.0 and ran pod update installing 0.15.0 and gRPC-Core 1.17.0-pre1 and then got the build failure.

@mihirpmehta Can you please post contents of your Podfile.lock file?

Here is other lockfile, if it helps. Will update this with more info if I find anything.
Mac: 10.14.1
Xcode: 10.1
Build System: New
Podfile.txt

The gRPC-C++ latest official release has a hard dependency to a gRPC-Core pre-release - https://github.com/CocoaPods/Specs/blob/master/Specs/c/8/7/gRPC-C++/0.0.4/gRPC-C++.podspec.json#L147

@simonbengtsson Thanks!
I see from your Podfile.lock that gRPC-C++ version 0.0.4 is used. The issue is triggered by the combination of the latest Firestore and gRPC-C++ 0.0.4. As a quick measure, if you could force CocoaPods to use gRPC-C++ 0.0.3, it should resolve the archiving issue.

The gRPC team just pushed version 0.0.5 of gRPC-C++.
I did a pod update and now the quickstart successfully archives.

ive with previous version of MacOS High Sierra with same XCode version same CocoaPods version these lines are not generated in Pods-resources.sh file

Where can I find the Pods-resource.sh file? I'm experiencing the same issue and in the Podlock file, I'm at <gRPC-C++ (= 0.0.6)> and its still an issue for me.

I am getting a similar error, any ideas?
ejected-calendar/ios/gRPCCertificates.bundle: No such file or directory
My podfile is:
target 'rgcalendar' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  use_frameworks!

  # Pods for rgcalendar

 pod 'Firebase/Core'
 pod 'Firebase/Firestore', '5.12.0'

end

@grehce If you have multiple targets, CocoaPods may generate a file named Pods-target-resources.sh. From the root of your project you can run find . -name Pods\*resources.sh to find them all. In general if you're having this kind of problem, you may benefit from deleting your Pods directory and ~/Library/Developer/Xcode/DerivedData and installing again.

@mharrisweb, similar advice applies.
Additionally, is there any reason you're pinning yourself to the Firebase 5.12.0 version of Firestore?

@wilhuff reinstalled and working thanks! Now using latest and not, 5.12.0

For whatever reason, this problem has popped up again. I seem to remember commenting out one of the duplicate bundles but I can't seem to find where it is referenced. I found the resources.sh files but I don't recall making the edits here. Any help would be much appreciated.

Showing Recent Messages
:-1: Multiple commands produce '/Users/gracechang/Library/Developer/Xcode/DerivedData/Kintsugi_Mindful_Wellness-gnzvsjmujxysuheltofpllhobbun/Build/Intermediates.noindex/ArchiveIntermediates/Kintsugi Mindful Wellness/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/gRPCCertificates.bundle':

Target 'gRPC-C++-gRPCCertificates' has create directory command with output '/Users/gracechang/Library/Developer/Xcode/DerivedData/Kintsugi_Mindful_Wellness-gnzvsjmujxysuheltofpllhobbun/Build/Intermediates.noindex/ArchiveIntermediates/Kintsugi Mindful Wellness/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/gRPCCertificates.bundle'
Target 'gRPC-gRPCCertificates' has create directory command with output '/Users/gracechang/Library/Developer/Xcode/DerivedData/Kintsugi_Mindful_Wellness-gnzvsjmujxysuheltofpllhobbun/Build/Intermediates.noindex/ArchiveIntermediates/Kintsugi Mindful Wellness/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/gRPCCertificates.bundle'

If you're using the latest versions this shouldn't be happening because gRPC-C++ now creates a bundle with a different name (note that in your error message it's still the old, conflicting name). Make sure you've got FirebaseFirestore 1.3.2 and gRPC-C++ 0.0.9 or later.
If you're already on those versions and reinstalling doesn't help (i.e. deleting Pods and ~/Library/Developer/Xcode/DerivedData doesn't help, please open a new issue with your Podfile.lock and any details you have about how this may have come about.

The only challenge with the pod update 'Firebase/Firestore' is that it creates 20 new errors across updated files, and this is the last blocker to shipping :/

Well, I can't really help unless you share something concrete. Please do open a new issue with your details.

Updated Cocoapods and had to update Firebase and this blocking archiving issue comes up again.

Target in the root folder only points to one resources.sh file (not multiple targets)
I've deleted the derived data and still on archive, come up with the following Multiple commands produce.../Build/Intermediates.noindex/ArchiveIntermediates/.../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/gRPCCertificates.bundle

Hi grehce,
Can you please open a new issue, with more information about installed version of Firestore and gRPC, basically the output of your pod install? It might also help us reproducing it if you tell us your environment as well, OS version, XCode version, etc.
Thanks

I've taken your set of pods, with the exception of pod 'googleapis', :path=> "." which I don't have, and I'm able to archive the project. It seems likely that you have some combination of things in your project that aren't playing well together.
Please open a new new issue--this isn't related to the one fixed in gRPC-C++ 0.0.5.

Thanks everyone, will open a new issue. Just didn't want to create a duplicate.


Silicon Laws

About the PR
Laws menu for silicons. @EmoGarbage404 said he would help me make the UI look nicer. I tried with Julian but we couldn't figure out how to get a background for the laws' containers to help separate them a bit or anything.
Right now this has:

Laws UI that automatically displays the laws when you first are transferred to an entity with laws.
Admin tools to edit laws.
Ability to 'state laws' with a modern cooldown based off of relative game timing stuff.

Media

[x] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Changelog

As implemented this basically pretends the AI or other sources of lawsets don't/won't exist. There should be an event for trying to get the list of laws/law-related information (i.e. who's providing the laws) for an entity and it should be fired off on multiple potential sources of laws (in order of entity looking for laws, station, grid, map).

this is sounding a bit different from SS13 reqs so can you send me exactly what you are planning

As implemented this basically pretends the AI or other sources of lawsets don't/won't exist. There should be an event for trying to get the list of laws/law-related information (i.e. who's providing the laws) for an entity and it should be fired off on multiple potential sources of laws (in order of entity looking for laws, station, grid, map).

this is sounding a bit different from SS13 reqs (where everything is provided from a law board of some sort), so can you send me exactly what you are planning

basically, raise events from low to high in order to have more intelligent law handling.

On the UI side, I see the comment "I cannot for the life of me get a background to display on these" - I was able to get a texture* to display in 5e7b902, but maybe the preferred way to do that would be to create some style properties for Robust.Client.UserInterface.RichTextLabel? If there's more I can help out with on the UI side, let me know. Would like some excuses to dig into it a bit more.

Very nice. I'm on break until Jan 4 or Jan 5. If people can figure out some of the UI problems I can get the rest of the stuff Moony requested when I get back.

I did a little bit of experimenting with the UI. Not sure if any of these are similar to what you have in mind? For the last one, I needed to make a change to StyleNano.cs (and, I'd probably like if the corners were clipped a little bit more)

i think the third one looks the best. Maybe adjust the margins along the top, but otherwise it looks really good.

If you want it, https://github.com/eoineoineoin/space-station-14/tree/lawsui should merge into Elijahrane:laws - it's pretty much the third screenshot, with a few minor tweaks and some code cleanup. Happy to help some more here, but will also be away for a while.

very nice, merged
I'll get to the moony part later

Are you coming back to this?

it's functional now if I fixed the merge conflict
is the moony part required or can I ignore it and just open the pr for review

I'll keep working on this, it's looking like it'll need an engine PR now
a few responses to the reviews:

I disagree there shouldn't be defaults for adding or removing laws. If an entity has law 1, 2, and 3, then the vast majority of operations are going to involve removing law 3 or adding law 4
Having the ability to state laws is meaningless if you do not have laws to state. I don't see the point in decoupling those, especially when it adds overhead. If you applied that standard to everything we'd have thousands more components and entity systems than we do now

I'll keep working on this whenever I have some extra time, it's looking like it'll need an engine PR now so laws can stay synced
a few responses to the reviews:
1. I disagree there shouldn't be defaults for adding or removing laws. If an entity has law 1, 2, and 3, then the vast majority of operations are going to involve removing law 3 or adding law 4.  Having the ability to state laws is completely meaningless if you do not have laws to state, and the state laws function is basically only going to be used by the Law UI and AI UI. I don't see the point in decoupling those, especially when it adds overhead. If you applied that standard to everything we'd have thousands more components and entity systems than we do now

also even after making sure the setup is analogous to a serializable sorted dict that works (mob thresholds), it doesn't currently build because it can't be serialized due to
[FATL] unhandled: System.NotSupportedException: Cannot serialize System.Collections.Generic.TreeSet`1[[System.Collections.Generic.KeyValuePair`2[[System.Int32, System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.ValueTuple`2[[System.String, System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Content.Shared.Borgs.LawProperties, Content.Shared, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]: ISerializable not supported
   at NetSerializer.GenericSerializer.Handles(Type type) in /home/rane/Develop/space-station-14/RobustToolbox/NetSerializer/NetSerializer/TypeSerializers/GenericSerializer.cs:line 28
   at NetSerializer.Serializer.<>c__DisplayClass30_0.<GetTypeSerializer>b__1(ITypeSerializer h) in /home/rane/Develop/space-station-14/RobustToolbox/NetSerializer/NetSerializer/Serializer.cs:line 386
   at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Func`2 predicate, Boolean& found)
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
   at NetSerializer.Serializer.GetTypeSerializer(Type type) in /home/rane/Develop/space-station-14/RobustToolbox/NetSerializer/NetSerializer/Serializer.cs:line 386
   at NetSerializer.Serializer.AddTypesInternal(IEnumerable`1 roots) in /home/rane/Develop/space-station-14/RobustToolbox/NetSerializer/NetSerializer/Serializer.cs:line 139
   at NetSerializer.Serializer..ctor(IEnumerable`1 rootTypes, Settings settings) in /home/rane/Develop/space-station-14/RobustToolbox/NetSerializer/NetSerializer/Serializer.cs:line 69
   at Robust.Shared.Serialization.RobustSerializer.Initialize() in /home/rane/Develop/space-station-14/RobustToolbox/Robust.Shared/Serialization/RobustSerializer.cs:line 85
   at Robust.Server.BaseServer.Start(ServerOptions options, Func`1 logHandlerFactory) in /home/rane/Develop/space-station-14/RobustToolbox/Robust.Server/BaseServer.cs:line 316
   at Robust.Server.Program.ParsedMain(CommandLineArgs args, Boolean contentStart, ServerOptions options) in /home/rane/Develop/space-station-14/RobustToolbox/Robust.Server/Program.cs:line 68
   at Robust.Server.Program.Start(String[] args, ServerOptions options, Boolean contentStart) in /home/rane/Develop/space-station-14/RobustToolbox/Robust.Server/Program.cs:line 46
   at Robust.Server.ContentStart.Start(String[] args) in /home/rane/Develop/space-station-14/RobustToolbox/Robust.Server/ContentStart.cs:line 10
   at Content.Server.Program.Main(String[] args) in /home/rane/Develop/space-station-14/Content.Server/Program.cs:line 9

Reviews are non-negotiable.
State laws is a secondary behavior, it is perfectly fine for it to be separate. Components are not required to function standalone, and the defaults are a footgun.
If we did true ECS more often we would indeed have many more components and systems, and that is entirely okay.


sphinx-version-warning might require write permissions in /usr/local/lib

Exception occurred:
  File "/usr/local/lib/python3.6/site-packages/versionwarning/signals.py", line 66, in generate_versionwarning_data_json
    os.mkdir(data_path)
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.6/site-packages/versionwarning/_static/data'

@humitos let me know if you need more info

Yes. Please.
How are you installing it?
How are you executing it?
Is that local or at read the docs?

@humitos in a container.
If you want, the "easiest" way to replicate it is to clone
$ git clone --single-branch -b pr/add-warning-in-docs https://github.com/cilium/cilium.git
$ git reset --hard HEAD~1
$ make render-docs

you will see something like:
docker container run --rm -ti -u $(id -u):$(id -g aanm) -v $(pwd):/srv/ cilium/docs-builder /bin/bash -c 'make html'
! (sphinx-build -b spelling -d "_build/doctrees" "." "_build/spelling" -q -E  && touch check-build.ok) \
        | grep -v -e "tabs assets" -e "misspelled words"
/usr/local/lib/python3.6/site-packages/sphinx/application.py:402: RemovedInSphinx20Warning: app.info() is now deprecated. Use sphinx.util.logging instead.
  RemovedInSphinx20Warning)

Exception occurred:
  File "/usr/local/lib/python3.6/site-packages/versionwarning/signals.py", line 66, in generate_versionwarning_data_json
    os.mkdir(data_path)
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.6/site-packages/versionwarning/_static/data'
The full traceback has been saved in /tmp/sphinx-err-5wajn1p1.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
make: *** [Makefile:56: check-build] Error 1
make: *** [Makefile:279: render-docs] Error 2

make render-docs will create a image with the dependencies already installed, after that it will run 'make html inside that container as a non-root user. That's where it fails.

I know the issue. I'll fix it this week. Thanks for the report

@humitos any updates ?

Hi! I had no time to take a look at this yet :disappointed:. I'm sorry.

This happens to me too while building python-marshmallow (as non-root user).

@pgajdos how are you installing the extension? are you also using docker? are you building under Read the Docs?

I am installing it in minimal change root (automated build of python-marshmallow).
Here is the log.

(If I should perform some tests on the change root, let me know.)


Add useInteractions to the documentation website

I tried to clarify this part a bit compared to the README:

I used svelte as the CodeBlock language instead of html to improve highlighting
#60

Opened a new PR to fix the branch name
https://github.com/skeletonlabs/floating-ui-svelte/pull/67


'transforms.json' file

When I drag a folder of images into the bat file I get the following error while running:
"transforms.json' does not exist"
Shouldn't the code generate the 'transforms.json' file by itself?

It happens to me too. Is the file maybe in some other folder in the drive?
running on w11, colmap 3.7


Updated  jenkins/README.md

What is this PR About?
Fixed a broken link to containers-quickstarts
Updated formatting to pass markdownlint
How do we test this?
Review the changes.
cc: @redhat-cop/day-in-the-life

hey @maxboyer many thanks for the PR! Can you please bump the version in Chart.yaml to make the linter happy? 😄

You're welcome! 😄 I bumped the version.

LGTM 🤖


Nuxt generate suddenly serving wrong files while developing locally.

First of all I love working with Nuxt.
But in my recent project I am facing a peculiar difficulty. I have a nuxt project which was working fine, but suddenly i ran npm run dev and the site served locally had totally wrong markup.
The layout was displaying two header components, the pages were working but the displayed page was an older version of the pages and the pages themselves had gone through many changes after.
I am not able to solve this problem and I am not sure if this problem is in my local machine only.
Please help I need it for an upcoming client project which I have to finish fast.
i am using nuxt 2.12.2. The project is a universal app and is running in development mode.
nuxt-config.pdf

This question is available on Nuxt community (#c10569)

See #7273


Correct levelized_cost calculation

As explained in issue #652, this PR aims to adjust the calculation of levelized_costs, so that these are not only calculated when investment costs are parametrized for a technology, but also when variable costs only have been defined.
How to review

Read the diff and note that the CI checks all pass.
A Specific test cannot be written because it is not possible to retrieve the parameter "levelized_cost" from the scenario object.

PR checklist

[ ] Continuous integration checks all ✅
~- [ ] Add or expand tests; coverage checks both ✅~
[x] Add, expand, or update documentation.
[x] Update release notes.

@behnam-zakeri as discussed yesterday, let us extend the calculation of the levelized costs to include the relation-related costs as well. Also, the issues raised on @khaeru can also be addressed in this PR:

This PR resulted in a line (the one for https://github.com/iiasa/message_ix/pull/645) appearing twice in the release notes.
Some of the edits to doc/macro.rst result in a sentence appearing in all bold here.

This seems like a key update that should be tested if at all possible. I wonder if it's possible to use the existing dantzig problem to test levelized cost values with

inv_cost only
fix_cost only
both inv_cost and fix_cost

@gidden I agree, and also to test the 'var_cost' as well as the additions to the formulation related to relations. I believe by solving using the command solve(var_list=["levelized_cost"]) we will hopefully be able to retrieve the levelized_cost from the scenario object.

In order to address the issues associated with creating tests for this PR, an issue has been started, see #661

@behnam-zakeri , my proposal would be to merge this PR first and then change the PR for #658 to main. The reason is that while here we are only just changing "when" the levelized_cost are being calculated, the changes in #658 change how these are calculated. I would therefore propose to add tests for the other PR, but for some changes on the java end are required to allow doing this. I therefore propose to merge this PR as is and continue work on #658 thereafter.

The failed test here is from a test timeout, e.g.,
FAILED message_ix/tests/test_tutorials.py::test_tutorial[westeros_addon_technologies] - nbclient.exceptions.CellTimeoutError: A cell timed out while it was being executed, after 10 seconds.

Will merge now.

Noting previous tests passed except the noted failures, merging.


Cannot compile after updating to 130b0d4 from 6a74584

We integrate into Xcode by dragging the .xcodeproj file into XCode into a group we named TestFrameworks. This is how we've always done it.  Today after updating to 130b0d4 we can no longer compile.
We import into a given test case using:
#import <OHHTTPStubs/OHHTTPStubs.h>

If we have a line of code in a stub that uses responseWithJSONObject the compiler complains with, "No Known class method for selector 'responseWithJSONObject:statusCode:headers"
return [[OHHTTPStubsResponse responseWithJSONObject:@{}
												 statusCode:200
												headers:@{@"Content-Type":@"text/json"}]

Furthermore, in other stubs I've been using responseWithFileAtPath:OHPathForFile
we see "Implicit declaration of function 'OHPathForFile is invalid in C99.
    return [[OHHTTPStubsResponse<EMAIL_ADDRESS>self.class)
												 statusCode:200
												headers:@{@"Content-Type":@"text/json"}]

My code still matches the examples you've posted so I don't suspect that my existing code is wrong.
What then could be the cause? Perhaps my integration?
Please advise....
Thanks in advance

Hello,
Try this :  #import <OHHTTPStubs/OHHTTPStubsResponse+JSON.h>

Thank you.
That helps with the first issue.
The second issue,
return [[OHHTTPStubsResponse responseWithFileAtPath:OHPathForFile
is not solved.

I got it.
#import <OHHTTPStubs/OHPathHelpers.h>
Thanks again @samirGuerdah for your answer.

Trying again.
#import <OHHTTPStubs/OHPathHelpers.h>


Flex has now-incorrect 'known issue' listed

https://caniuse.com/#search=flex

"The space-evenly value of the justify-content property, as described in the CSS Box Alignment Module Level 3 is only supported by Firefox."

Looks like it's working fine in Chrome as well.

PR Started


There are no have 'generate_gt_info.py' file in DetZero project.

Dear authors, i am grateful you open acces to DetZero, it's have significance impact in Auto Labeling. When I wanna to run it on Waymo Open Dataset, i have found the problem, can you give some solutions about this question. Thanks.

If you successfully execute the data processing,
cd detection
python -m detzero_det.datasets.waymo.waymo_preprocess --cfg_file tools/cfgs/det_dataset_cfgs/waymo_one_sweep.yaml --func create_waymo_infos

you will find DetZero/data/waymo/waymo_infos_train.pkl  , DetZero/data/waymo/waymo_infos_val.pkl,
DetZero/data/waymo/waymo_infos_test.pkl
there are ground-truth files witch tracking needed

If you successfully execute the data processing,
cd detection
python -m detzero_det.datasets.waymo.waymo_preprocess --cfg_file tools/cfgs/det_dataset_cfgs/waymo_one_sweep.yaml --func create_waymo_infos

you will find DetZero/data/waymo/waymo_infos_train.pkl  , DetZero/data/waymo/waymo_infos_val.pkl, DetZero/data/waymo/waymo_infos_test.pkl there are ground-truth files witch tracking needed. So there's no need for 'generate_gt_info.py' file.

Thank you sincerely, i got it.


Few questions

If I’m pass the empty /dev/sda into that docker I can mange it like typical disk in storage manager?

Yes...

And if I pass two disk I can create raid?

No, you cannot create RAID between multiple volumes.

Or better create raid1 on my debian machine and just use that storage for that docker?

Its better to use RAID on the host, and place the disk images (/storage) on this RAID partition. But the disk image is in BTRFS format, so even without RAID it already has some (limited) protection for corruptions.

I can use there media extender and transcode video use my i915?

No, I do not think transcoding is fully working, but I never tried myself, so you can always give it a try with GPU=Y.

So every /dev/sdX will be managed like other volumes yes?
and last question, if I’m start that docker and I create volumes with my private data, there is a easy way to copy it to another devices? Ex, if my mayor J4125 will be broken, I will install docker on other J4125 and just put disk with /storage and everything should works like before?

Thx for answer :) now everything is clear and I can play a little :)


Exception: Syntax error about italian letters. Triggers may only contain lowercase letters, numbers, and these symbols:

I would like to use the common italian letters è,é,ò,à,ì,ù .. but I get
Exception: Syntax error in test/z_last.rive line 14: Triggers may only contain lowercase letters, numbers, and these symbols: ( | ) [ ] * _ # @ { } < > = (near: + è il cap di xxxx)

It should work in UTF-8 mode by using the utf8=True param to the constructor.

It works, thanks


Slightly strange names

To use JUHPC I need to set it up first. That step uses a script called juhpc.
Later, when I want to use JUHPC to start Julia, then I have to activate it, and you suggest the name juhpc_setup for this.
Isn't that reversed? Shouldn't the first step be called juhpc_setup (or juhpc_install), and later, when I'm using juhpc, shouldn't that live in a directory called juhpc?

Your comments in the other issue have shown that it has not been completely clear to you what JUHPC does. Please look at my replies and tell me if you still think that something could be improved in that direction

@eschnett any more comments on this? If so please check against the documentation we should make clear why things are called the way they're called.

I believe it is important to pay attention to the difference between (to) "set up" (verb) and (a) "setup" (noun). Considering this, the names were chosen given the following logic:

the project and the script are called juhpc
using juhpc we can install multiple HPC setups (however, we do not install juhpc, we only download and use it)
to use a HPC setup, we activate it


Allow "within?" for different shapes

Currently, a rectangle is used to detect if a coordinate is within a given widget. But a widget could as well be in shape of a circle or a triangle, etc. ... . Maybe I should allow a within? or intersect? function in the widget protocol to determine if a given coordinate is within the widget.

Probably a bit over the top for now


Android: bleglattexception 133 & Chrome Debugger

I have been working with your library for the past couple of weeks now, and it works great. Although sometimes (seemingly inexplicable), I consistently get bleglattexception 133 on my Android device (HTC M9 running Android 6.0.0).
Answers on other issues mentioned using timeouts in between various connects / calls, which did not change anything in my particular case.

After not being able to pinpoint the issue and just letting it be for now, I have found out that this occurs when I am using Chrome as debugger.
The solutions proposed in other issues did not help in my case (at least the ones I could apply without editing dependencies).
I do not know whether that is something that can be fixed, but I thought sharing my findings would still be worthwhile for anyone else experiencing similar issues.

Error 133 often happens during connection problems and most of the time the only solution is to try establish it once again. In worst cases you have to reset BLE stack on your phone. I'm closing this issue as it is not directly related to this library.


doc: introduce a page for CI best practices

Most CI scripts and defaults do just the basics: go test ./...
There are many more commands that likely make sense for a majority of projects, and some are well known, but we don't have a single place to document and maintain them well. For example:

Enforce gofmt from a specific version of Go, e.g. test -z $(gofmt -l .)
Use go test -race ./... to catch data races in tests
Use go vet ./..., since go test only runs a subset of go vet
Use go mod tidy and ensure that there aren't changes to go.mod or go.sum (via go mod tidy -mod=readonly maybe?)
Use go mod verify to ensure that go.sum agrees with what's in the module cache
Use go test -run=- -bench=. -benchtime=1x ./... to catch stale benchmarks (see https://github.com/golang/go/issues/41824)

And potentially staticcheck ./... too, since it's now sort of recommended by gopls as an extension to go vet. Though note that this should be a small set of recommendations that most projects should follow, so it shouldn't include an endless list of linters that might be interesting to some users.
We should include a ready-to-use script containing all of the recommended steps, for example in POSIX Shell. We could document each step directly via script comments, meaning that the entire thing could be copy-pasted and self-documenting.
I'm happy to kickstart this work during the freeze. /cc @bcmills @jayconrod @myitcv @jadekler

The reason I want this to be a doc on the main site or the main repo is two-fold: so that it's code reviewed (so the wiki doesn't work), and so that it can be maintained and updated over time (so a blog post doesn't work).

CC @stevetraut

Friendly bump - who should I get the green light from for this document? I think the freeze is probably the best time to work on docs, so I'd like to start writing this doc before the end of the year.
If no green light is needed I can just start writing and send a CL, but I'd rather not do that if the decision will likely be "we don't want this doc in the website" :)

Our tech writer @stevetraut would be the best person to coordinate with. He's in the process of writing a programmer's guide to Go with many different topics. I think CI best practices would fit into that nicely.

Sorry for the late response, folks.
@mvdan Thanks for the idea! I think it could be useful content. I'm not sure it's within the "programming with Go" focus that the programmer's guide Jay mentioned has, but content aimed at team development would be useful. Currently, though, the guide is still taking shape and we're not sure yet what's in and what's out.
May I suggest that you add it to the wiki?  And I'm sure I'll be collecting other content and ideas from the wiki along the way, and may add a topic on CI.
@rsc

Thanks for the response. I honestly don't think the wiki is the best place, because it's not code-reviewed and anyone can edit it, so it's not a good place to document best practices. That is the reason why I opened https://github.com/golang/go/issues/34038 last year, though unfortunately the process is taking a long time. That's why I was hoping this new document could be added directly to a git repository or the main site.
I could always start writing it while we decide where it goes, but I still think it has relatively less value (and can't be properly maintained) if it ends up in the wiki.

@mvdan, you're right that the wiki isn't the right long-term place, and we agree. But we have limited attention, and right now this specific page is not at the top of our list. We don't even have the framework set up for where the page would properly go. So if you want to publish something now, the wiki is still the best place. Long term, we'll have a better answer.

Use go mod tidy and ensure that there aren't changes to go.mod or go.sum (via go mod tidy -mod=readonly maybe?)

Unfortunately go mod tidy -mod=readonly doesn't work, so the current workarounds are either assuming git diff works, or using a bit of cp and diff. So I think https://github.com/golang/go/issues/27005 should be given some priority for the sake of CI best practices.

Given that we'll get go mod tidy -check, gofmt will remain as the only command that needs extra machinery (e.g. shell code) to do the right thing here. So I've raised https://github.com/golang/go/issues/46289 as an attempt to reconsider some mode for gofmt to tell us, directly, if any files require changes.

Another interesting point is 1.17's go test -shuffle. I think we should recommend its use in CI, similar to -race.

Yet another idea, as a bonus: ensure that go test module-path/... works even when the module in question is not the main module. For example, using a temporary go.mod file that simply requires our module and replaces it to the right directory. This would ensure that the module works as a dependency too, i.e. without directives like replace or exclude.

A question/suggestion (depending whether it's in scope or not): would this guide also provide guidance on how to work with multi-module repositories? In particular, dealing with the fact that go test ./... does not cross module boundaries, and therefore how to work with that?

Probably, yes, though I think the first version should aim to tackle the common case: a single module.
Ideally all of this would be "best practices for testing a module in CI", but since most CI systems work at the VCS repository level, I think we'll need to bridge the gap a little with extra recommendations.

Judging by Steve's Gerrit profile, it seems like he's left Google. Who is the next tech writer, or whomever I should coordinate these efforts with? I'd like to contribute documentation which is sorely needed in my opinion, like this thread and https://github.com/golang/go/issues/48539, and for the past few years I haven't been able to find anyone to help make that happen.

Another one that pops to mind: using -trimpath in CI is probably a good idea as well. Full paths are usually not useful when looking at CI logs, because it's not a filesystem one can typically access directly. And using -trimpath helps with reproducible builds, which should help with keeping build and test caches more reusable between CI runs.

One more idea: for monorepos with checked in go.work files, one likely wants to ensure that:

go work sync results in zero changes
All the usual checks (go test ./..., go vet ./..., go mod tidy, ...) are happy on each of the modules, e.g. via a loop using -C moddir
For each module that's meant to be used externally (e.g. not internal), GOWORK=off go test ./... is happy, to check that the module still works without the workspace mode

It would be great to know what good practice is. I usually run go mod tidy and go mod verify as part of any PR. Also what is the effect of not keeping go.mod up to date? I recently started working with a repo where the go.mod files did not reflect reality but this appeared to do no harm. Why and when cmds like go mod tidy/verify are executed would be useful

great to know what good practice is. I usually run go mod tidy and go mod verify as part of any PR. Also what is the effect of not keeping go.mod up to date? I recently started working with a repo where the go.mod files did not reflect reality but this appeared to do no harm. Why and when cmds like go mod tidy/verify are executed would be useful

When explicitly testing multiple Go versions via a matrix, set GOTOOLCHAIN=local to ensure old versions do not automatically download and use newer toolchains

I have just added this item, as @myitcv correctly pointed out that https://go.dev/doc/toolchain can be a rather surprising behavior in a CI environment where one explicitly wants to test a matrix of Go versions. If an old version is unexpectedly too old or would break, we want CI to fail and alert us of that, not to automatically download a newer toolchain and silently succeed.

I also updated the original post about the newly proposed -check flags in go mod tidy and gofmt, which would remove the last places where any shell logic is needed.


Questions about dataset files and baselines

Hi, much thanks for the open-resourced codebase. I would like to ask several questions about the dataset files and segmentation baselines:

I notice that the dataset PADv2 seems to contain several ref files, i.e., there exists refs and refs_2 folders under each train\divide_x folder, and several test_ref_x.txt file under each test\divide_x folder. This makes me very confused because I don't know which file paths I should enter as hyperparameters. Can you please explain the differences between these files and which one should I use if I want to reproduce the experimental results in the paper? Moreover, I suggest providing a README for your proposed datasets to explain the role of each file contained in them, so as to effectively increase the influence of this work.

I want to ask how you adapted conventional segmentation methods (UNet, PSPNet, DeepLabV3+) to the one-shot affordance detection task, as they need segmentation masks as supervision for each category, and these ground-truth masks are not provided for novel affordance categories in this task. I guess that you just ignore the categories and use all ground-truth masks of base affordance categories to train the model, and also ignore the support images and bounding boxes when predicting the masks for query samples of novel affordance categories. However, I am not sure whether my guess is correct, because I did not find the relevant details in the paper.

Hello, thank you very much for your suggestion, the test process just uses the default path in run_osad.py as input directly, ref and ref_2 are annotations for bounding box and mask respectively. I will provide a readme file later to explain the difference between each txt file. Regarding the segmentation network, we output the binarized mask directly, ignoring the affordance category.

Hello, thank you very much for your suggestion, the test process just uses the default path in run_osad.py as input directly, ref and ref_2 are annotations for bounding box and mask respectively. I will provide a readme file later to explain the difference between each txt file. Regarding the segmentation network, we output the binarized mask directly, ignoring the affordance category.

The difference between the different txt files is the number of query images. This is the txt file I generated when I did the hyperparameter comparison experiment. The first path corresponds to the support image and the following paths to the query images.


What inherits from what? (StanDoc / ISO)

Working on docs for Metanorma, and this is a passage currently appearing on metanorma.com in FAQ for StanDoc:

Because of the richness of the ISO standards model, most Standoc standards to date (including the sample gem https://github.com/riboseinc/metanorma-sample) inherit from the ISO Standards model, which itself inherits from Standoc.

What purpose does it carry? Does it mean to suggest to the reader something along the lines of “Don’t use Standoc, use ISO, it has more features you will probably need”?

That paragraph is extremely important for programmers, and probably irrelevant for uses. The basic code is in standoc, and all standards classes customise that code. But you are not meant to use that code uncustomized, you are meant to always use a child gem. And that includes the Acme gem, in case you want to use default styling.

if you are writing an ISO standard, use the ISO gem. If you are you writing a Chinese standard comma use the GB gem. if a predefined gem is available for your standards class, that is what you are meant to be using. If one is not available, you should make one, or use the Acme gem as a skeleton.

I’m keeping this open until I’m sure metanorma.com reflects this well. I am relatively sure our primary visitors will be Metanorma end-users and we should move Standoc further under the hood.

I agree with @strogonoff -- we should separate the site content per audience -- developers (whose organizations wants to adopt) vs users (whose organization already has an adoption). The latter is surely not interested in the content for the former, they only want to know how to use the syntax/toolchain relevant to their own documents.

As an update, the site now does separate the docs (/author and /builder). Builder documentation has ways to go, the plan is to document more low-level details, including the StanDoc inheritance chain.


High level graph pack/unpack for Distributed

This PR introduce packing and unpacking of HLG layer:
    def distributed_pack(self) -> Optional[Any]:
        """Pack the layer for scheduler communication in Distributed

        This method should pack its current state and is called by the Client when
        communicating with the Scheduler.
        The Scheduler will then use .distributed_unpack(data, ...) to unpack the
        state, materialize the layer, and merge it into the global task graph.

        The returned state must be compatible with Distributed's scheduler, which
        means it must obey the following:
          - Serializable by msgpack
          - All remote data must be unpacked (see unpack_remotedata())
          - All keys must be converted to strings now or when unpacking
          - All tasks must be serialized (see dumps_task())

        Alternatively, the method can return None, which will make Distributed
        materialize the layer and use a default packing method.

        Returns
        -------
        state: Object serializable by msgpack
            Scheduler compatible state of the layer
        """
        return None

    @classmethod
    def distributed_unpack(
        cls, state: Any, dsk: Dict[str, Any], dependencies: Mapping[Hashable, Set]
    ) -> None:
        """Unpack the state of a layer previously packed by .distributed_pack()

        This method is called by the scheduler in Distributed in order to unpack
        the state of a layer and merge it into its global task graph. The method
        should update `dsk` and `dependencies`, which are the already materialized
        state of the preceding layers in the high level graph. The layers of the
        high level graph are unpacked in topological order.

        See Layer.distributed_pack() for packing detail.

        Parameters
        ----------
        state: Any
            The state returned by Layer.distributed_pack()
        dsk: dict
            The materialized low level graph of the already unpacked layers
        dependencies: Mapping
            The dependencies of each key in `dsk`
        """
        raise NotImplementedError(f"{type(cls)} doesn't implement distributed_unpack()")

[x] Tests added / passed
[x] Passes black dask / flake8 dask

@jrbourbeau @mrocklin, this is ready for review (and merge). We might have to add some extra arguments to distributed_pack() in order to implement blockwise but this should be sufficient for shuffle.

Everything passes when running the new Distributed test: https://github.com/dask/distributed/blob/9a0504981ef14cf5cd2b804497ec4d4c301359ec/distributed/protocol/tests/test_highlevelgraph.py

In [1]: import dask.array as da
In [2]: x = da.ones(10)
In [3]: y = x + 1
In [4]: y.__dask_graph__().layers[y.name]
Out[4]: Blockwise<(('ones-a7883aa065f53e381957f6940baaf48b', ('.0',)), (1, None)) -> add-a701e8a9322af8d1565010d507adf66a>

In [5]: y.__dask_graph__().layers[y.name].__dask_distributed_pack__()

Whoops, misfire on the comment.   Should we be concerned that for some layers this returns None?  Or is the plan that if this returns None we materialize?

Ah, I see that that is indeed the case:
https://github.com/dask/distributed/pull/4140/files#diff-c71878c6c1a8b7d02cc8543c78209e35c0a4b14d051eb9bcdeaaec233512dab2R66-R67

This is in.  Thanks @madsbk !


Seems the services are not available

Seems like the freechatgpt is not available, do you consider adding more limited rules to increase availability?
{
"error": {
"message": "You exceeded your current quota, please check your plan and billing details.",
"type": "insufficient_quota",
"param": null,
"code": null
}
}
Message from freechatgpt.chat:
Too many request! We recommend changing your API endpoint or API key

yeah i got it but ididnt surpass my quota limit


IndexError: list index out of range

C:\Users\Bob\Downloads>infoq_downloader.exe http://www.infoq.com/presentations/testng-groovy-spock

Downloading HTML file
Traceback (most recent call last):
  File "<string>", line 35, in <module>
IndexError: list index out of range

I get the same error

Same for https://www.infoq.com/presentations/broken-performance-tools

Same for https://www.infoq.com/presentations/category-theory-propositions-principle

I recommend youtube-dl, in the meantime.

@crazy4groovy most conferences videos on InfoQ are not available on youtube ... hence the interest for this infoq-downloader ...

Check out youtube-dl supported sites, you can find it listed there. I've tried it, and it works fab.

Oh thats good to know, thanks for the info

@crazy4groovy hi, yes it downloads videos, but without the presentation it's quite useless. Is there maybe a way to download also the timed slides?

@invasionofsmallcubes It depends on the video how useful youtube-dl is, I suppose. I haven't found a way to download the slides as well..

Same error but different stacktrace. Note that I'm using Python3 (and pip3 to install dependencies)
~/src/infoq-downloader$ python3 infoq_downloader.py https://www.infoq.com/presentations/Simple-Made-Easy
Downloading HTML file
Traceback (most recent call last):
  File "infoq_downloader.py", line 51, in <module>
    video_url = html_doc.cssselect('video > source')[0].attrib['src']
IndexError: list index out of range


Support Functions ASP.NET Core Integration

ASP.NET Core Integration for Azure Functions .NET Isolated has just come out of beta.
A few changes needed to support it:

Another .UseThrottlingTroll() overload, without HostBuilderContext parameter.
Use HttpContext and FunctionContext.GetHttpContext() to access it (instead of HttpRequestData/HttpResponseData).
Maybe something else.

Most likely, it should be a separate NuGet package (to avoid unwanted dependencies).

Done


Charlie/final n v1

Added FinalN recipe
Added monoT5 agent for paragraph classification

I'd like to get ice/nn/weights out of this repo so that people can get started with a smaller download.

I'm not saying you shouldn't do this, but if you're concerned about this when the model weights are 238KB, then I think I should point out that I ran out of disk space because the Python dependencies take up 4.5 GB, of which 3.3 GB is torch.

Ah, I see you're probably talking more about the existing 6.4 MB than what's in this PR, that changes things.

Looks like when I force-pushed main, it caused this PR to close(!). I'm going to reopen it tomorrow or Sunday based on the new main.


Using Google Chrome or Internet Explorer, the Node-RED menu does not always close

What are the steps to reproduce?

start Node-RED and open its menu
Click on different places inside the browser window

What happens?

Clicking on a empty place of the flow keeps the menu open
Clicking on a node or in the palette closes the menu

What do you expect to happen?

The behavior should be the same everywhere (IMO menu should be closed)

Please tell us about your environment:

Node-RED version: 0.19.5 and 0.18.7
node.js version: 8.12.0
npm version: 3.8.5
Platform/OS: (X)Ubuntu 16.04
Browser: Google Chrome 70.0.3538.110 (64 Bit) and Internet Explorer 11.0.9600

When using Firefox 63.0.3 the menu closes when clicking on empty space in flow.

I can't reproduce any cases of the menu staying open when the mouse clicks elsewhere. Going to close this issue.
If you can still recreate it on latest, then please do reopen with details.


VelocityTransitionGroup animation issue

Hi,
Any idea about what I'm doing wrong?
` render() {
var enterAnimation = {
           animation: 'fadeIn',//{opacity: 1},
           duration: 600
       }

var leaveAnimation = {
           animation: 'fadeOut',//{opacity: 0},
           duration: 400,
           style: {display: 'none'}
       }

return (

                <VelocityTransitionGroup enter={enterAnimation} leave={leaveAnimation}>
                  <Image data={this.state.data} />
                </VelocityTransitionGroup >

);

}`
Every second the data attribute on the Image component changes, no animation.
If I add runOnMount={true} only enter animation runs ones.

React is reconciling that to be the same <Image> component. Use a different key to force React to treat the Image as distinct.


Improvement idea: add choice prop to features giving a subclass

Just like the title says. There are feautres, where you choose something form an array of opitons, be it expertise, eldritch invocation or fighting style. Why not treat subclasses the same way?
Proposed structure:
{
    "index": "otherworldly-patron",
    "class": {
        "index": "warlock",
        "name": "Warlock",
        "url": "/api/classes/warlock"
    },
    "name": "Otherworldly Patron",
    "level": 1,
    "desc": [
        "At 1st level [yada yada]."
    ],
   "choice: {
        "choose": 1,
        "type": subclass
        from: "api/classes/warlock/subclasses"
    }
    "url": "/api/features/otherworldly-patron"
}

I know there is only one subclass in the SRD, but as y'all mentioned before, if something comes from a feature, you like to keep it within that feature, so why not add information about subclass choices to the feature giving you a subclass?

I like this, but I think it would be nice if the choice property was nested under some kind of feature_specific attribute.
This would just keep the Feature model organised a bit more as we go through and add structures like this to all features. Rather than giving each different kind of feature (of which there are many) a different structure, we would be giving all features the same structure, where one of the attributes has an arbitrary shape (within reason).
{
    ...
    "feature_specific": {
        "subclass_option": { Choice<subclass> }
    }
}

Hmmm
Maybe put subclass giving features in feature_choices' prop in data from classes/${class)/levels/${level}' endpoint? This way, IMO there is even more consistency

I dislike that, personally. The SRD doesn't read as allowing the character to choose between multiple features; it grants one feature that allows a choice of subclass.
If you allow a choice of subclass in feature_choices, then you're introducing an inconsistency where otherwise all the choices would be for features.

When you put it that way, ye, my propositon would stir some disinformation. feature_specific approach is cleaner. It indicates that this feature has some logic/complexity behind it and allows the api cosnumer to deal with it the way it needs to. Just like class_specific data

As I work on my app, I am having more and more ideas.
Given there will be feature_specific prop, how about putting there data about bonuses? For example, in Fighitng style: archery
...
feature_specific: {
    bonus: {
        type: "damage"
        amount: 2
        for: ["ranged"]
    }
}

or something among those lines. To make features more computer friendly

Yeah, this is exactly what I meant when I was talking about how the feature_specific property would help keep things organised as we expand on all the features in this way.


Placements should be returned as a whole IEnumerable and be placed all at once

Placements are placed individually right now as they are scouted. PlaceItem() is called per item and then PlaceItem() registers the placement with ItemChanger. This could change so that PlaceItem() is replaced with a method which returns all item placements and then registers them with ItemChanger all at once.

Fixed in 0.0.3


Test - Please ignore this

This is a test for clang-tidy's reporting mechanism.  Please ignore.

This would be the data to add

This would be the data to add

This would be the data to add

This would be the data to add

This would be the data to add


Column alias does not work when rows are returned

Configuration information
"ehrbase_version": "0.20.0-SNAPSHOT",
"openehr_sdk_version": "1.18.0-SNAPSHOT",
"archie_version": "2.0.1",
"jvm_version": "Oracle Corporation <IP_ADDRESS>+1",
"os_version": "Linux amd64 5.10.76-linuxkit",
"postgres_version": "PostgreSQL 13.4 on x86_64-pc-linux-musl, compiled by gcc (Alpine 10.3.1_git20210424) 10.3.1 20210424, 64-bit"

Steps to reproduce
Column aliases are not returned when executing an ad-hoc AQL query that returns rows, eg:
 "q": "SELECT c as COMPOSITION FROM EHR e CONTAINS composition c"
Column aliases are set correctly when no rows are returned. This can be verified by filtering on a bogus ehr_id
 "q": "SELECT c as COMPOSITION FROM EHR e CONTAINS composition c where e/ehr_id/value='00000000-0000-0000-0000-000000000000'"
Actual result
"columns": [         {             "path": "c",             "name": "#0"         }     ],
Expected result (Acceptance Criteria)
 "columns": [         {             "path": "c",             "name": "COMPOSITION"         }     ],
Definition of Done

[ ] The defect is checked by an unit or an integration test (Robot)
[ ] Merge Request approved
[ ] Unit tests passed
[ ] Build without errors
[ ] Release notes prepared
[ ] No additional runtime warnings

Even though "COMPOSITION is not a reserved worf in AQL (https://specifications.openehr.org/releases/QUERY/latest/AQL.html#_reserved_words_and_characters) I could imagine it might confuse an AQL engine implementations trying to resolve queries based on the openEHR RM where it is a class. Do other variable names, e.g. "comp" give the same error?

Yes, I get the same behavior using different names too.

Covered by Robot Test Case.
Artifact: https://output.circle-artifacts.com/output/job/0cf48c30-0c75-43d2-bed2-2856a90ba016/artifacts/0/~/projects/tests/results/COMPOSITION_2/log-20220513-070155.html

Pull request: https://github.com/ehrbase/ehrbase/pull/860
Merged to develop.


[RESTEASY-2012] Getting rid of old Apache HttpClient 4.0 support, def…

…aulting to closing httpclient when the engine is closed
Documentation changes still todo

Do we have migration guide from 3.x to 4.x series ?
Time to write down some noteworthy items ;)

There's something on the doc regarding migration already, I need to update that too (will do before merging this pr)

Apache HTTP client engine documentation updated; as for the migration guide, I've created https://issues.jboss.org/browse/RESTEASY-2014 .


Implement like/ilike etc for StringViewArray

Which issue does this PR close?

Part of https://github.com/apache/datafusion/issues/11024 and https://github.com/apache/arrow-rs/issues/5374
Rationale for this change
Currently, the arrow-string crate does not support ops (like, ilike, etc.) against string view types. This pr implements them in a generic way.

What changes are included in this PR?
(1) Added a StringArrayType (could have a better name, or placed at a better location) trait
https://github.com/apache/arrow-rs/compare/master...XiangpengHao:string-view-like?expand=1#diff-14974bf6baecb88fa03010ef05c5927627a26bdeb74c3fe186ac2f9527bdca45R151
Arrays (currently, StringArray, LargeStringArray, StringViewArray) implement this trait will automatically gain the ability to all kinds of string operations (like, ilike, nilike, contains, starts_with, ends_with)
This also means that we did not try to be smart when handling StringViewArray, i.e., does not leverage the inlined 4 bytes to shortcut some comparison. I plan to leave this as a future work as it can significantly complicate the code. (I also doubt that we can gain any benefit)
(2) Overhauled the related test so that they no longer use the depreciated kernels and I believe now they look easier to reason.
(3) Since we are not smart at handling view types, I didn't make special test cases for StringViewArray, i.e., I did not deliberately include test cases with long/short strings. We rely on the correctness of the StringViewArray iterator, which has already been tested elsewhere.

Are there any user-facing changes?

I made a PR with some benchmarks for like here: https://github.com/apache/arrow-rs/pull/5936
What I suggest we do is get this PR in with good test coverage, and ensure no performance regressions, and then file at ticket to continue to improve the performance

Benchmarks show no change:
++ critcmp master string-view-like
group                                              master                                 string-view-like
-----                                              ------                                 ----------------
ilike_utf8 scalar complex                          1.00    313.1±0.89µs        ? ?/sec    1.06    331.9±1.14µs        ? ?/sec
ilike_utf8 scalar contains                         1.02   1503.1±5.61µs        ? ?/sec    1.00   1473.2±4.67µs        ? ?/sec
ilike_utf8 scalar ends with                        1.00    234.0±0.47µs        ? ?/sec    1.13    264.2±0.74µs        ? ?/sec
ilike_utf8 scalar equals                           1.00    248.8±0.64µs        ? ?/sec    1.00    248.3±0.47µs        ? ?/sec
ilike_utf8 scalar starts with                      1.00    238.6±0.42µs        ? ?/sec    1.40    333.5±0.92µs        ? ?/sec
ilike_utf8_scalar_dyn dictionary[10] string[4])    1.00     49.1±0.14µs        ? ?/sec    1.00     49.1±0.08µs        ? ?/sec
like_utf8 scalar complex                           1.00    294.0±1.01µs        ? ?/sec    1.06    311.6±0.89µs        ? ?/sec
like_utf8 scalar contains                          1.02    357.5±1.27µs        ? ?/sec    1.00    350.2±2.50µs        ? ?/sec
like_utf8 scalar ends with                         1.00    209.1±0.35µs        ? ?/sec    1.00    209.3±0.44µs        ? ?/sec
like_utf8 scalar equals                            1.00    218.7±0.26µs        ? ?/sec    1.01    221.1±0.73µs        ? ?/sec
like_utf8 scalar starts with                       1.01    233.0±1.51µs        ? ?/sec    1.00    230.8±0.32µs        ? ?/sec
like_utf8_scalar_dyn dictionary[10] string[4])     1.00     49.0±0.11µs        ? ?/sec    1.00     49.0±0.11µs        ? ?/sec
nilike_utf8 scalar complex                         1.00    312.4±1.07µs        ? ?/sec    1.06    331.2±1.59µs        ? ?/sec
nilike_utf8 scalar contains                        1.02   1501.0±5.94µs        ? ?/sec    1.00   1477.4±8.60µs        ? ?/sec
nilike_utf8 scalar ends with                       1.00    234.2±1.02µs        ? ?/sec    1.13    264.0±0.25µs        ? ?/sec
nilike_utf8 scalar equals                          1.00    248.6±0.69µs        ? ?/sec    1.00    248.3±0.36µs        ? ?/sec
nilike_utf8 scalar starts with                     1.00    239.0±0.48µs        ? ?/sec    1.40    334.4±6.81µs        ? ?/sec
nlike_utf8 scalar complex                          1.00    294.7±1.31µs        ? ?/sec    1.06    312.0±1.26µs        ? ?/sec
nlike_utf8 scalar contains                         1.00    348.2±0.85µs        ? ?/sec    1.03    357.5±0.74µs        ? ?/sec
nlike_utf8 scalar ends with                        1.00    209.3±0.40µs        ? ?/sec    1.00    209.2±0.29µs        ? ?/sec
nlike_utf8 scalar equals                           1.00    218.9±0.67µs        ? ?/sec    1.01    222.0±0.93µs        ? ?/sec
nlike_utf8 scalar starts with                      1.01    232.8±0.39µs        ? ?/sec    1.00    230.8±0.32µs        ? ?/sec

ilike_utf8 scalar starts with                      1.00    238.6±0.42µs        ? ?/sec    1.40    333.5±0.92µs        ? ?/sec
nilike_utf8 scalar starts with                     1.00    239.0±0.48µs        ? ?/sec    1.40    334.4±6.81µs        ? ?/sec

Looks like two starts with get much slower... I'll take closer look 👀

I can't reproduce the results (I get many fluctuations on my machine). Looking at the code changes, there's no reason the new code could be slower. Can you benchmark them again? @alamb

Added more tests to cover longer string cases

I think the regression is related to the inline art discussed (and fixed) in https://github.com/apache/arrow-rs/pull/5922#issuecomment-2184628390
We can wait that pr to merge and see if anything changes.

I've updated the pr to include the changes from #5922.
I benchmarked again and find some performance increase some decrease, but they all within 10%.

I agree -- I reran the benchmarks and see some report got faster / slower
++ critcmp master string-view-like
group                                              master                                 string-view-like
-----                                              ------                                 ----------------
ilike_utf8 scalar complex                          1.03    310.6±1.65µs        ? ?/sec    1.00    300.1±1.33µs        ? ?/sec
ilike_utf8 scalar contains                         1.00  1562.6±22.82µs        ? ?/sec    1.05   1648.0±5.32µs        ? ?/sec
ilike_utf8 scalar ends with                        1.00   238.4±26.45µs        ? ?/sec    1.04    247.3±0.47µs        ? ?/sec
ilike_utf8 scalar equals                           1.08    214.3±0.73µs        ? ?/sec    1.00    197.6±0.34µs        ? ?/sec
ilike_utf8 scalar starts with                      1.02   256.9±26.49µs        ? ?/sec    1.00    252.8±0.65µs        ? ?/sec
ilike_utf8_scalar_dyn dictionary[10] string[4])    1.00     49.1±0.18µs        ? ?/sec    1.00     49.0±0.19µs        ? ?/sec
like_utf8 scalar complex                           1.04    291.6±0.74µs        ? ?/sec    1.00    280.9±0.94µs        ? ?/sec
like_utf8 scalar contains                          1.00    347.0±0.46µs        ? ?/sec    1.00    347.8±1.66µs        ? ?/sec
like_utf8 scalar ends with                         1.00    209.1±0.84µs        ? ?/sec    1.05    218.7±0.92µs        ? ?/sec
like_utf8 scalar equals                            1.00    194.6±0.36µs        ? ?/sec    1.00    195.3±1.36µs        ? ?/sec
like_utf8 scalar starts with                       1.00    232.7±0.32µs        ? ?/sec    1.00    231.9±0.63µs        ? ?/sec
like_utf8_scalar_dyn dictionary[10] string[4])     1.00     49.1±0.32µs        ? ?/sec    1.00     48.9±0.09µs        ? ?/sec
nilike_utf8 scalar complex                         1.04    311.1±1.24µs        ? ?/sec    1.00    299.4±0.96µs        ? ?/sec
nilike_utf8 scalar contains                        1.00   1552.6±5.49µs        ? ?/sec    1.06   1645.1±4.68µs        ? ?/sec
nilike_utf8 scalar ends with                       1.00    235.9±8.61µs        ? ?/sec    1.05    247.1±0.44µs        ? ?/sec
nilike_utf8 scalar equals                          1.09    214.2±0.86µs        ? ?/sec    1.00    197.4±0.40µs        ? ?/sec
nilike_utf8 scalar starts with                     1.00    253.8±6.14µs        ? ?/sec    1.00    252.7±0.33µs        ? ?/sec
nlike_utf8 scalar complex                          1.04    290.7±0.90µs        ? ?/sec    1.00    280.5±0.71µs        ? ?/sec
nlike_utf8 scalar contains                         1.00    346.9±0.52µs        ? ?/sec    1.00    347.4±0.58µs        ? ?/sec
nlike_utf8 scalar ends with                        1.00    209.1±0.40µs        ? ?/sec    1.05    218.5±0.36µs        ? ?/sec
nlike_utf8 scalar equals                           1.00    194.6±0.38µs        ? ?/sec    1.00    194.7±0.42µs        ? ?/sec
nlike_utf8 scalar starts with                      1.00    232.8±1.20µs        ? ?/sec    1.00    231.8±0.33µs        ? ?/sec

does not leverage the inlined 4 bytes to shortcut some comparison. I plan to leave this as a future work as it can significantly complicate the code. (I also doubt that we can gain any benefit)

I agree we should only start adding specialized paths if we determine it is worth it. starts_with might be, especially if the parameter is short enough to always be able to use the prefix. We can decide based on benchmarks which are appropriate.

I filed https://github.com/apache/arrow-rs/issues/5951 to track potentially improving the performance

Thanks again everyone for all the help


Update enterprise-scale-landing-zone.md

@hartou : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@alexbuckgit : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Chrome tab content feature

Hi look after the chrome browser tabs. The content of the tab takes full width and other tab contents not visible. Also the contents not overlapping with another tab contents when close the tabs. Only the current tab or active tab contents only visible to the user.
I request you to enhance the plugin feature.

Duplicate https://github.com/adamschwartz/chrome-tabs/issues/27


Persisting roomMessage listeners

Hi @an-sh ,
I am trying to implement slack like chat application where an user will have multiple chatrooms created. As far as I understand, the client needs to be joined in a room to be able to listen for event inside the room.
My question is what is the best way to let a client know that a new message was received in any of the rooms the client is a part of?
In order to achieve this, do I join each room while initializing the client web app by looping over the roomId(s) from dB, or is there a standard way to achieve this.
There can a lot of rooms (~100) a client will be a part of at a given moment. So, Is there a hard limit to the number of room a client can join?

Hi @iamshouvikmitra
My name is Serhii from Ukraine and I am a Software Engineer. Do you know "Eric Dominic" by any chance? https://www.linkedin.com/in/eric-di-domenico/
Eric (@qwertme) hired me on Upwork and I worked on "RV Care" and "Virtual Briefing Center" project with Ruby on Rails. Recently, I was not able to dedicate much time to these projects because of personal problems. Due to this simple reason, he pressed to refund $2350 on Upwork. How he is a thief! I cannot tolerate him.
I am an old person and have families so I am working hard. If possible, I would like you to judge this problem.
Thank you,
Serhii


Email template

Pull Request Checklist:

[ ] Positive Test Case Written by Dev

[ ] Automated Testing

[ ] Sufficient User and Developer Documentation

[ ] Passing Jenkins Build

[ ] Peer Code review and approval

Positive Test Case

[Enter positive test case here]

Confirmed most recent at top now


Storage refactor

Hi @chuwy - okay great - can you patch this release and ping me when done?

Hey @alexanderdean - it's done!

@alexanderdean fixed.

Closing this as working on the release branch now


Update icon only button size to match regular button

While testing the buttons I noticed that the icon only button size doesn't match with the regular buttons.

This PR updates the icon only button size to match to others.

@atakantepe, that makes sense. Thanks for the update.


Example of complete model with covariate, outcomes and missing values

We should document the most complex model StepMix can estimate. Users could start from this example and reduce it to their use case. Here's an example of a complete model on an expanded version of the Iris Dataset. The data does not really make any sense, but the model definition is useful. The example includes

Continuous and categorical measurements with missing values;
Continuous and categorical outcomes with missing values;
A  covariate.

import pandas as pd
from sklearn.datasets import load_iris
from sklearn.metrics import rand_score

from stepmix.stepmix import StepMix
from stepmix.utils import get_mixed_descriptor

# Load dataset in a Dataframe
data, target = load_iris(return_X_y=True, as_frame=True)

# Create categorical and binary data based on the Iris data quantiles
for c in data:
  # Create new column name
  c_categorical = c.replace("cm", "cat")
  data[c_categorical] = pd.qcut(data[c], q=3).cat.codes
  c_binary = c.replace("cm", "binary")
  data[c_binary] = pd.qcut(data[c], q=2).cat.codes

# Create a fake covariate
data['Total length (cm)'] = data["sepal length (cm)"] + data["petal length (cm)"]

# Add missing values in all variables, except the covariate
# Replace 50% of values with missing values
for i, c in enumerate(data.columns):
  if c != 'Total length (cm)':
    data[c] = data[c].sample(frac=.5, random_state=42*i)

# StepMix Model
# Use Sepal features as measurements
# Use Petal features as Outcomes
# Use Total Length as a Covariate

# Measurement model definition
mm_data, mm_descriptor = get_mixed_descriptor(
    dataframe=data,
    continuous_nan=['sepal length (cm)', 'sepal width (cm)'],
    binary_nan=['sepal length (binary)', 'sepal width (binary)'],
    categorical_nan=['sepal length (cat)', 'sepal width (cat)'],
)

# Structural model definition
sm_data, sm_descriptor = get_mixed_descriptor(
    dataframe=data,
    # Covariate
    covariate=['Total length (cm)'],
    # Outcomes
    continuous_nan=['petal length (cm)', 'petal width (cm)'],
    binary_nan=['petal length (binary)', 'petal width (binary)'],
    categorical_nan=['petal length (cat)', 'petal width (cat)'],
)

# Pass descriptors to StepMix and fit model
model = StepMix(n_components=3, measurement=mm_descriptor, structural=sm_descriptor, verbose=1, random_state=123)

# Fit model
model.fit(mm_data, sm_data)

preds = model.predict(mm_data, sm_data)

print(f"Rand Score: {rand_score(preds, target)}")

We know have a tutorial on this. See the end of this tutorial. I'll close this issue for now, but feel free to reopen if something comes up.


dev: update sample env name

[ ] I have considered whether this PR needs review, and requested a review if necessary.

Fixes issue #
Notes for reviewers
Reviewers can skip X, but should pay attention to Y.

Current dependencies on/for this PR:

#51  👈
main

This stack of pull requests is managed by Graphite.

Merge activity

Feb 26, 8:58 AM GMT+1: @MartinBernstorff merged this pull request with Graphite.


Pass through width and height attributes

This makes this plugin compatible with the markdown-it-imsize plugin, as long as the imsize plugin is used before this linkify-images.

@crookedneighbor I'm unsure as to how to properly test this.
It looks like existing tests use the full markdown-it render pipeline, Given that there's no standard way to introduce width and height attributes without using a plugin like markdown-it-imsize, do you think it's okay to add it to the list of devDependencies for testing this particular bit of functionality?

Sure.

The point of this PR is to provide support for a specific plugin. My proposal is instead, let any attribute set by any plugin pass through, rather than just allowing the specific attributes set by this one plugin.

My proposal is instead, let any attribute set by any plugin pass through, rather than just allowing the specific attributes set by this one plugin.

Do you have any suggestions on how to do that?

It's been a while since I've worked in the markdown-it ecosystem, but can'y you loop over token.attrs ?

@crookedneighbor Is there anything left to fix here?

Oops. I’ll try to get it released tonight. Ping me tomorrow if I haven’t responded here.

Released in v2.0.0


Improve One to one relations

Prevent Add more than  one record in 1-1 relations

Hi @phpMuhammed,
Thank you for reporting. I will think about it.


fix: release merge back

Description
This PR introduces a fix for dependencies and package-lock files, ensuring that the project uses the correct versions and resolves from the appropriate registries.
Motivation and Context
This change is required to maintain consistency and correctness in our dependencies. It solves the problem of potential discrepancies and conflicts in package versions and their sources, which can lead to unexpected behavior or errors in the application.
Changes

Updated the license field in apps/backend/package-lock.json for the @isaacs/ttlcache dependency.
Modified the resolved field for ansi-styles and concurrently dependencies in yarn.lock to point to the npm registry.
Split the ansi-styles dependency into two entries in yarn.lock to accurately represent different resolved versions.

How Has This Been Tested?

Fixes Jira Issue
https://jira.esss.lu.se/browse/
Depends On

Tests included/Docs Updated?

[ ] I have added tests to cover my changes.
[ ] All relevant doc has been updated

there is a conflict, i have the same conflict in my release->master PR. If you resolve this, I will update the PR with the up-to-date develop branch.

Hopefully have resolved them


Module 1.1 Assignment

Given what you have learned about Git, why would you want to use Git in your classroom?

👋 Hi you are missing your answer for the question above. Please post it here in this thread.

Given what you have learned about Git, why would you want to use Git in your classroom?
Git allows saving different versions of projects at various stages over the duration of the project. At any point of time, we can revert back to the earlier version in case there are issues in the current version since Git is a version control system. Also, since it is distributed version control system, it does not depend on a centralised server. This ensures that failure of one server does not result in loss of your repository. I believe my students will benefit a lot from Git since it is a systematic approach to develop different projects.

@arelia


Question about copy_image_to_buffer_dimensions()

Is there any reason this:
https://github.com/vulkano-rs/vulkano/blob/c60265c67b59d1ee59f324b63f9472b98482cd1a/vulkano/src/command_buffer/auto.rs#L733-L741
can't be this?
image_aspect: UnsafeCommandBufferBuilderImageAspect {
    color: source.has_color(),
    depth: source.has_depth(),
    stencil: source.has_stencil()
}

I ran into this as I was trying to read the depth buffer to get a world position of the center of the screen. I replaced it with that I suggested and it seems to work as intended. I do however do not have a stencil, so I am not sure about that part. It seems to work as intended so is there a reason for the unimplemented!()?

If I remember correctly, it's because there are additional validity restrictions when it comes to depth/stencil copies which vulkano would have to check.

I haven't used vulkan at all so my knowledge is very limited in that regard, but from what I read from the spec your checks seem valid. The only concern is that the source image needs to have linear tiling if I am correct. I read that you need to copy the non-linear tiling image to a temporary image with linear tiling and then copy that to a buffer.
Currently I am reading the depth from an attachment image, those seem to be created with non-linear tiling. So from what I read that shouldn't work or at least should be illegal. It does however produce the result I would expect. It works both on Linux and Windows using my amd card.
Is there a more proper way to read the depth using the current state of vulkano?

I haven't used vulkan at all so my knowledge is very limited in that regard, but from what I read from the spec your checks seem valid. The only concern is that the source image needs to have linear tiling if I am correct. I read that you need to copy the non-linear tiling image to a temporary image with linear tiling and then copy that to a buffer.

Indeed it looks like the code you proposed is correct. This unimplemented!() was probably meaning something more like "need to check the specs before allowing that".


Is it possible to Property Set to a nil value for an optional property?

I'm setting a property but it seems that property.set doesn't accept nil values. In this case it's an Int?. What would I need to do to make Runtime support this?

The problem is that the underlying value type is not known. So when you do try property.set(value: nil, on: &value) the wrapped type in Optional<?> is ambiguous, and not all nils are the same. e.g. Optional<Int64?>.none has a different size than Optional<Int32?>.
You could just do try property.set(value: Optional<Int>.none, on: &value) to clear it up.


Make my own 3d dataset

Hey sshaoshuai, I was looking for more information on how the KITTI 3d dataset was made.
Found good information regarding all of the parameters and data needed to train the network here;
https://github.com/yanii/kitti-pcl/blob/master/KITTI_README.TXT
http://www.cvlibs.net/publications/Geiger2013IJRR.pdf
I wonder if you know of any repository that could have the codes to generate the parameters to the calibration file.
Regarding annotations (bounding box) do I need to annotate both the 2d rgb img and the 3d point cloud?

Sorry, I could not help much for these questions. Maybe you could find more related materials under the repo of other 3D detection datasets like NuScenes and Waymo.

@nicholasguimaraes have you found any methods for this? It'll be so nice if you can share this.

hello i also want to use my own datasat .Do you have used your own dataset for the model? could you please give some suggestions for me ？


Notification Template Page - Issue in key while edit notification template

Describe the bug
https://www.berrycast.com/conversations/d687ff39-c4d9-52d8-832a-8cd75d6135b0

https://www.berrycast.com/conversations/5c503142-57c9-5f75-bac1-7b825d2cebf5


[Bug] Fix Monerium signature decoding on the Demo app

Monerium feature on the Onramp kit does not look to work at the moment, clicking on Login on goerli does nothing for me with message: execution reverted: Hash not approved

Merged & deployed in the Demo App:
https://safe-account-abstraction-demo.netlify.app/

Mi pana! I am getting this warning when accessing the feature:

Which might be the cause of why I am stuck here:

Looks like this Monerium widget should be opening on a new browser tab for me but no bueno, replaces the demo app on the current one preventing any signing pop up 😞

Working nicely now after some minor changes. Thank you señor Dani for the help too.
Closing this señor ticket and moving it to done on the sprint board as well 😄


Add Gear Requirements

Require users to have specific gear types to join a party

This could be done off of a pre-determined list


fix: add missing pallet-proxy in std feature

cargo check -p basilisk-runtime was failing when trying to compile pallet-proxy and I noticed it was missing in the std feature list for the runtime.

should I bump impl_version? shouldn't need a spec_version bump AFAICT

should I bump impl_version? shouldn't need a spec_version bump AFAICT

yes, we use simple runtime versioning, any PR that changes runtime in any way has to increment spec version to ensure that we dont have 2 different runtimes with same spec

so I will bump spec, then

so I will bump spec, then

we also keep the cargo version in sync with spec version and testing runtime spec version as well


No module named "yolov5_deepsort"

Traceback (most recent call last):
File "/home/abc/catkin_ws/src/yolov5_deepsort_ros/scripts/detector.py", line 16, in
from yolov5_deepsort.msg import BoundingBox, BoundingBoxes
ModuleNotFoundError: No module named 'yolov5_deepsort'
What is the reason to this error?

@jungsuyun


test rm ukr_water_needs id

I to works in dev without the id, so I guess it's better not to have this error.

Btw, found exactly this issue discussed on github: https://github.com/visgl/react-map-gl/issues/707
Apparently it was fixed years ago, but the problem resurrected.

I think that it's clear that we will need the ID of layer props. What do you think about closing this PR without merge (obsolete it)

Now that we have proper layer id names, this PR is indeed pointless.


hachoir: init at 3.0a5

Motivation for this change
This module provides the hachoir, a Python library to view and edit a binary stream field by field.
Things done

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

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

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

Notify maintainers
cc @vstinner

Also the tests (both runtests.py and tox) seem to fail, but only when building with nix. During the checkPhase, some files can not be accessed? I'm not sure what the tests do, though.

This is still relevant to me. Marking as WIP, because I vaguely remember that the hachoir package also pulls in the hachoir-wx and hachoir-urwid scripts that don't work without the additional dependencies.

I don't see a way of excluding some dependencies without breaking parts of the library and some user-facing scripts. You can still override the package options if you want to use hachoir in a headless scenario.
self: super:
{
  hachoir-headless = super.hachoir.override {
    urwidSupport = false;
    wxPythonSupport = false;
    gtkSupport = false;
    qtSupport = false;
  };
}

This will result in parts of the package being broken, though.


dotfile display error for multiple windows

Describe the bug
when multiple panels exist, toggle showing dotfiles is ill-behaved.
To Reproduce
Steps to reproduce the behavior:

open spf by spf
open another panel by n
toggle showing dotfiles by . multiple times

Expected behavior
The active panel should show/hide dotfiles while other inactive panels should stay the same.
Screenshots
If applicable, add screenshots to help explain your problem.
System information (please complete the following information):

OS: [macOS Sonoma]
Version [14.6.1]
Superfile Version [1.1.4]

This setting is a global setting, so it is expected that other panels will change together.

The actual behavior on my end is random: sometimes they change together, sometimes the active panel changes while the others stay unchanged, sometimes they all stay unchanged.


feat(community): replace vectordb package with new @lancedb/lancedb

We will soon be deprecating the vectordb package in favor of the @lancedb/lancedb package.
✅ ~I will make this ready for review once we release 0.13.0, which includes an important bug fix.~

Thank you!


Fetch upstream

Merge upstream at https://github.com/mfem/mfem/commit/b77b608d21b891f14bda5ca8387fdbf99ee15c6a and omegah-dev at https://github.com/SCOREC/mfem/commit/772b4142ca25010e4ef9d809fc640df6feb0a6b6 to create https://github.com/SCOREC/mfem/tree/omegah-dev-071922

cc'ing
@mortezah , @cwsmith


RPi with RaspBee and NUC with Conbee on the same network, Phoscon confused?

I am using a RaspBee on a RPi 3B+ and want to migrate to a NUC with Conbee.
http://<IP_ADDRESS> = NUC
http://<IP_ADDRESS> = Raspberry Pi
After installing the HASS and DeCONZ dockers on the NUC and opening the Phoscon app on the NUC @ http://<IP_ADDRESS>:8383/pwa/ it shows two gateways: https://i.imgur.com/kZgX4kU.png
When logging on the to Phoscon app on the NUC (http://<IP_ADDRESS>:8383), it shows the RaspBee as connected product: https://i.imgur.com/q6UkLqX.png (But: no lights, switches, sensors are visible)
Is the Phocon app confused because there are two gateways on the same network?
The Conbee is on ttyUSB1 because another USB device (USB/P1 port for DSMR smart meter) is using ttyUSB0.
My docker compose to start the DeCONZ docker on the NUC:
  deconz:
    image: marthoc/deconz
    container_name: deconz
    network_mode: host
    restart: always
    volumes:
      - /opt/deconz:/root/.local/share/dresden-elektronik/deCONZ
    devices:
      - /dev/ttyUSB1
    environment:
      - DEBUG_INFO=1
      - DEBUG_APS=0
      - DEBUG_ZCL=0
      - DEBUG_ZDP=0
      - DEBUG_OTAU=0
      - DECONZ_DEVICE=/dev/ttyUSB1
      - DECONZ_WEB_PORT=8383
      - DECONZ_WS_PORT=8444

DeCONZ on HASS.io on the Raspberry Pi is using other ports: https://i.imgur.com/RZ00FYG.png
Also after shutting down the Raspberry Pi with RaspBee and resetting the gateway (Phoscon-GW) on the NUC, the Phoscon app on the NUC keeps telling me a RaspBee is connected..

I'm not sure that this is related to the Docker image specifically - I think if you ran deCONZ natively on your two devices using the Conbee and RaspBee, you'd see the same issue with Phoscon and I think it's down to how Phoscon autodetects the gateways on the network - in other words, one instance of Phoscon will detect multiple gateways on the network.
While I have you, though, is your NUC with the Conbee working with Conbee as ttyUSB1 (i.e. can you add and control lights) (of course, leaving the RaspBee issue out of the equation)? If so, I think you'd be the first confirmation I have that the new code for specifying the deconz device is working.

Just raised an issue here: https://github.com/dresden-elektronik/deconz-rest-plugin/issues/956
Not sure yet if the Conbee works fine, will get back later about that.

@marthoc I can confirm that the Conbee is working on the NUC connected to ttUSB1 👍
Not added a light yet, but several IKEA and Aqara sensors/buttons work.