Which modules will be in a (cross-platform) script language?

Which of the modules that make up Readium-2 will be in a script language (e.g. JavaScript or TypeScript - as opposed to a native-language implementation.  I.e. what modules will be the equivalent of readium-shared-js in Readium-1?

One comment I have about TypeScript is a concern about how 'typings' are required for the non-typescript javascript modules that npm installs as a part of Readium.js
I am not suggesting that we not use TypeScript, only voicing a concern and hopefully starting a conversation.
I have found that many npm modules require typings to be used with a TypeScript project and that these definitions are often missing or created by parties other than those responsible of the original module.  This leads to version conflicts or bad or missing definitions which is problematic as it causes a build failure when attempting compilation.
Is anyone else concerned about this?  Do we have a strategy for this issue.  Or manybe it is not a concern and I can learn something.

Well, assuming a total codebase rewrite, and therefore a migration from Readium-1's current build system (which ; despite the rather convoluted NodeJS scripts that drive the submodule integration ; essentially boils down to simple AMD + RequireJS optimizer / bundler) to a more sophisticated TypeScript / Babel setup (language transpiler + module bundler): then, ancillary code dependencies ; such as NPM packages defined outside of Readium's source tree ; should indeed include type definitions, to ensure a smooth and uncluttered build process (or you say, to prevent outright build failure).
However, the emerging pragmatic consensus is that incremental refactoring is the only viable path forward, given the current development resources. This would indeed allow existing contributors to address Readium-1's shortcomings within a realistic timeframe, and in the longer-term to encourage wider open-source participation. In this case, any TypeScript-defined components ; such as the proposed "publication fetcher + resource pre-processor + content parser" ; would need to be adapted in order to fit within Readium-1's build infrastructure. This would mean wrapping the transpiled Javascript components (probably originally organised as CommonJS or other kind module definition) with AMD signatures.
Note that regardless of the programming language and build system used, integrating new "publication fetcher + resource pre-processor + content parser" functionality into Readium-1 will be a non-trivial architectural task. We already talked about eliminating redundant data models, and we mentioned the need to harmonize the asynchronous methods used to access publication resources (abstraction layers for content streams, filesystem, packed EPUBs, online assets, etc.). Ideally, ReadiumSDK and native "launcher" apps would continue to work without any significant code changes, thanks to the minimal readium-shared-js interface, and the interchange JSON format used to pass publication data. However the repercussions on ReadiumJS apps (such as the cloud reader / Chrome app) would naturally be more substantial.
In closing, I think that a TypeScript "pilot" project focusing only on core "fetcher + pre-processor + parser" functionality would be beneficial on multiple levels. This could become a blueprint for future Readium API/component development, with a required emphasis on continuous integration and automated tests. This would promote Javascript as a default, portable implementation (client and server side, desktop and mobile hybrid apps, and of course browser-based apps / SDKs). Concrete implementations for specific platforms (e.g. Java for Android, Swift for iOS, etc.) could also be contributed, for example as alternative to parts of the C++ ReadiumSDK that are hard to integrate and/or costly to maintain (JNI and RDServices, I'm looking at you ;)

TypeScript 2.0 added shorthand ambient module declarations which is supposed to make it easier to use modules without typings. If you can't find good typings for a module and don't want to write them yourself, you just say declare module "foo"; and it will treat the entire module as type any.

Thank you for the replies.  I agree, Daniel, with the approach you have outlined in your last paragraph.  A pilot project that is free from the tethers of integrating into the current Readium.js-1 would be much more valuable, in my opinion, as reading systems are evolving into open-web, browser-based solutions that make use of web services for publication fetching instead of a zip archive format.  I think that the pilot project you mention should be the underpinnings of a project that addresses just that.
And thank you, Amy for you suggestion regarding my typings concern; I will take a look at ambient module declarations.

In closing, I think that a TypeScript "pilot" project focusing only on core "fetcher + pre-processor + parser" functionality would be beneficial on multiple levels. This could become a blueprint for future Readium API/component development, with a required emphasis on continuous integration and automated tests. This would promote Javascript as a default, portable implementation (client and server side, desktop and mobile hybrid apps, and of course browser-based apps / SDKs). Concrete implementations for specific platforms (e.g. Java for Android, Swift for iOS, etc.) could also be contributed, for example as alternative to parts of the C++ ReadiumSDK that are hard to integrate and/or costly to maintain (JNI and RDServices, I'm looking at you ;)

I'm going to repeat myself (already said something similar in https://github.com/readium/readium-2/issues/20) but this feels like a weird choice for our first priority.
Since Readium-2 prioritizes mobile apps over the web app, it's a strange decision to start our efforts by developing something that won't be used by mobile apps on iOS/Android.
I know that people are excited about potentially using Typescript, but in our discussions so far we haven't really made good progress on the JS part, or more precisely which modules we absolutely expect to be written in JS.
I mostly agree with what the first steps for the project should be (focus on parser, JSON manifest & HTTP server), but it feels like Readium-1 all over again if we actually start with the Web App use case before the mobile one.
I'm also not sold on the server side benefits of this, I would much rather use Go-lang for it, and I know that other companies involved in this effort would rather use Python, Ruby or Java. With the push towards Swift on the server and Java still being a very popular choice for back-end development, I could argue that starting with either iOS (Swift) or Android (Java) brings pretty much the same benefits.

Let's not be confused, and please let's separate the notion of using JS/Typescript with the notion of targeting a Cloud Reader or not.
We are not targeting a Cloud Reader in this phase -> This is not doing R1 Cloud Reader again.
We need a simple reference language of interface definition.
Typescript can be used as a simple reference language of interface definition.
iOS, Android, Go, PHP ... implementations can be made in quasi-parallel
The EDRLab Electron based desktop prototype is based of JS, and it needs a parser; a Typescript/JS based parser will be very useful for the app.
Note: EDRLab will be happy to participate to the Typescript and Android implementations of this parser (I have to check with Daniel about iOS).

If we start by doing the parser in JS, we're not putting mobile first, instead we focus on desktop which goes against the principles that we've established for R2.
I'm not saying that we should not do it at all, but doing it first is a very strange choice and sounds far away from our official position (mobile & agile).

to avoid xross-posting:
https://github.com/readium/readium-2/issues/20#issuecomment-259699327


Added check if the device is a keyboard

Hi,
I hope I got forking, branching and generating pull requests right now.
I would like to introduce my fix for the issue#231.
The KKMOON RFID Reader appears twice in the devices list as HID 413d:2107. One device is a mouse device and the other one is the keyboard device (we are interested in that).
Unfortunately the current reader code will pick the mouse device which cannot work.
My fix will additionally check if the device is a keyboard.
Any thoughts on my solution?
Best regards
Christoph
p.s.: I just could test the code against the KKMOON reader. Can anyone check the code with other usb readers as well?

HI @cgnmause
I added one question to your pull request. Otherwise it looks good. I will test it. But that might take some time - just started a new job :)

Hi Micz,
I am sorry. I have not checked my mail for a couple of days. Surely you can remove one existance of ecodes. I must have overseen the exisrting one when I added it.

Best regards
Christoph

Gesendet: Samstag, 24. November 2018 um 23:24 Uhr
Von: "Micz Flor"<EMAIL_ADDRESS>An: MiczFlor/RPi-Jukebox-RFID<EMAIL_ADDRESS>Cc: cgnmause<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Betreff: Re: [MiczFlor/RPi-Jukebox-RFID] Added check if the device is a keyboard (#327)
@MiczFlor commented on this pull request.
Hi @cgnmause
Thanks for you addition to the code. I added a question in the file a few days ago: https://github.com/MiczFlor/RPi-Jukebox-RFID/pull/327/files
could you please take a look?
All the best, micz
In scripts/Reader.py:

@@ -5,20 +5,31 @@
import os.path
import sys

-from evdev import InputDevice, categorize, ecodes, list_devices
+from evdev import InputDevice, categorize, ecodes, list_devices, ecodes
@cgnmause
does it matter that ecodes is twice in this list?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

HI @cgnmause
I added one question to your pull request. Otherwise it looks good. I will test it. But that might take some time - just started a new job :)

Good luck on your new job! Thank you very much for that project. It helped me lot.

Hi @cgnmause
I am wondering what's the best thing to do. Possibly add your solution as a special KKMOON script? And add good documentation in the wiki?
The reason I am hesitating with this request is because it solves one problem for one device for one person. And the last time I merged changes to the Reader.py, the bug reporting exploded, because the solution created more havoc than solve problems.
What - other than the keyboard issue - is solved with your pull request?

Hi @cgnmause
merging this with the develop branch. Please check if this works, if you find the time.
Thanks for the contribution, I keep my fingers crossed that it does not crash on other Readers :)


Build fails on code only used in development

I have some code which I only use locally in development. I have content on a CMS and rather than calling the API every time to retrieve the content I store it locally on a file and retrieve it that way.
Even if I surround the code in try/catch AND if(false) the build still complains Error: Can't resolve './translations/index.json'. I don't really want to commit the json as it's only needed when running locally.
export default async function loadTranslations() {
  if (false) {
  try {
  const translations = await import(
  `./translations/index.json`)
  } catch (error) {
    console.log("foo")
  }
  }
}

How can I get the build to ignore this error?

@chrissyast You should be able to get that to work with require rather than import.

@danielroe thanks!  require worked. I used await import based on some code I'd seen on another project, not quite sure why it was used and how it didn't fail but don't really care as this works for me!

Actually no, it worked because I had the file present at the time 🤦


[BUG]: PowerShell Task 2.227.0 throws an exception

Task name
PowerShell
Task version
2.227.0
Environment type (Please select at least one enviroment where you face this issue)

[X] Self-Hosted
[ ] Microsoft Hosted
[ ] VMSS Pool
[ ] Container

Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Windows Server 2012
Task log
Starting: Generate build and revision
==============================================================================
Task         : PowerShell
Description  : Run a PowerShell script on Linux, macOS, or Windows
Version      : 2.227.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
==============================================================================
##[error]At C:\vsts-agent\_work\_tasks\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\2.227.0\errors.ps1:1 char:1
+ class ArgsSanitizingException : Exception {
+ ~~~~~
The 'class' keyword is not supported in this version of the language.

Finishing: Generate build and revision

Relevant log output
##[debug]Evaluating condition for step: 'Generate build and revision'
##[debug]Evaluating: SucceededNode()
##[debug]Evaluating SucceededNode:
##[debug]=> True
##[debug]Result: True
Starting: Generate build and revision
==============================================================================
Task         : PowerShell
Description  : Run a PowerShell script on Linux, macOS, or Windows
Version      : 2.227.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
==============================================================================
##[debug]VstsTaskSdk 0.11.0 commit 7ff27a3e0bdd6f7b06690ae5f5b63cb84d0f23f4
##[debug]Caught exception from task script.
##[debug]Error record:
##[debug]C:\vsts-agent\_work\_tasks\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\2.227.0\powershell.ps1 : At C:\vsts-agent\_work\_tasks\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\2.227.0\errors.ps1:1 char:1
##[debug]+ class ArgsSanitizingException : Exception {
##[debug]+ ~~~~~
##[debug]The 'class' keyword is not supported in this version of the language.
##[debug]
##[debug]
##[debug]At line:1 char:1
##[debug]+ . 'C:\vsts-agent\_work\_tasks\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\2. ...
##[debug]+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##[debug]    + CategoryInfo          : ParserError: (:) [powershell.ps1], ParseExceptio    n
##[debug]    + FullyQualifiedErrorId : ReservedKeywordNotAllowed,powershell.ps1
##[debug]
##[debug]Script stack trace:
##[debug]at <ScriptBlock>, C:\vsts-agent\_work\_tasks\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\2.227.0\helpers.ps1: line 1
##[debug]at <ScriptBlock>, C:\vsts-agent\_work\_tasks\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\2.227.0\powershell.ps1: line 4
##[debug]at <ScriptBlock>, <No file>: line 1
##[debug]at <ScriptBlock>, <No file>: line 22
##[debug]at <ScriptBlock>, <No file>: line 18
##[debug]at <ScriptBlock>, <No file>: line 1
##[debug]Exception:
##[debug]System.Management.Automation.ParseException: At C:\vsts-agent\_work\_tasks\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\2.227.0\errors.ps1:1 char:1
##[debug]+ class ArgsSanitizingException : Exception {
##[debug]+ ~~~~~
##[debug]The 'class' keyword is not supported in this version of the language.
##[debug]
##[debug]
##[debug]   at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
##[debug]   at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
##[debug]   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
##[debug]   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
##[debug]   at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)
##[debug]   at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
##[debug]   at System.Management.Automation.PSScriptCmdlet.RunClause(Action`1 clause, Object dollarUnderbar, Object inputToProcess)
##[debug]   at System.Management.Automation.PSScriptCmdlet.DoEndProcessing()
##[debug]   at System.Management.Automation.CommandProcessorBase.Complete()
##[error]At C:\vsts-agent\_work\_tasks\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\2.227.0\errors.ps1:1 char:1
+ class ArgsSanitizingException : Exception {
+ ~~~~~
The 'class' keyword is not supported in this version of the language.

Aditional info
This task started to fail after today's update to the 2.227.0 version.
I've found a workaround to restore our CI/CD process by replacing files in C:\vsts-agent_work_tasks\PowerShell_XXX\2.227.0 with a content of a previous version.

Here is a $psversiontable output:
Name                           Value
----                           -----
PSVersion                      4.0
WSManStackVersion              3.0
SerializationVersion           <IP_ADDRESS>
CLRVersion                     4.0.30319.42000
BuildVersion                   6.3.9600.20719
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0}
PSRemotingProtocolVersion      2.2

Here is a task:
- task: PowerShell@2
  displayName: 'Generate build and revision'
  inputs:
    targetType: 'inline'
    script: |
      cd $(Build.SourcesDirectory)
      $commitDate = git show --no-patch --no-notes --pretty=%cI $(Build.SourceVersion)
      $commitDate = & "$(Build.SourcesDirectory)\Tools\timeconverter.exe" $commitDate
      $cDate,$cTime = $commitDate.split('.')
      echo "##vso[task.setvariable variable=CommitDate;]$cDate"
      echo "##vso[task.setvariable variable=CommitTime;]$cTime"

This has broken our builds today, too.

This has broken our builds today, too.

The good news is that there is a temporary workaround

Same as #18895

This has broken our builds today, too.

The good news is that there is a temporary workaround

Turns out the workaround doesn't work if you use the classic editor (like we do) and not YAML for the pipelines. I can only specify the task should use 1.* or 2.* but not 2.226.2 specifically.

Turns out the workaround doesn't work if you use the classic editor (like we do) and not YAML for the pipelines. I can only specify the task should use 1.* or 2.* but not 2.226.2 specifically.

Exactly, this need to be fixed ASAP

This has broken our builds today, too.

The good news is that there is a temporary workaround

Turns out the workaround doesn't work if you use the classic editor (like we do) and not YAML for the pipelines. I can only specify the task should use 1.* or 2.* but not 2.226.2 specifically.

Have you tried to replace the content of the 2.227.0 folder with the content of the 2.226.2 folder?

We apologize for the issue caused. We have restored the previous version of the task. Could you please check if the problem persists?
Thank you

We apologize for the issue caused. We have restored the previous version of the task. Could you please check if the problem persists? Thank you

The problem persists!

At this time, no change. The agent always use 2.227.0 version.

It is currently running 2.226.2 fine for us using classic pipelines on a self-hosted agent.
==============================================================================
Task         : PowerShell
Description  : Run a PowerShell script on Linux, macOS, or Windows
Version      : 2.226.2
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell

@verback2308 @alexandrelugand @nanny07 @Kyle-270 the issue should not exist at this time.
Please let me know if you are still facing with this problem

@KonstantinTyukalov now it works again as I said in the other thread. Thanks again

Fixed here: https://github.com/microsoft/azure-pipelines-tasks/pull/18904

Closing this as fixed. Please ping me if someone still have this issue


[WIP] RHDH pre-submit and post-submit job for 1.2.x

Description
Please explain the changes you made here.
Which issue(s) does this PR fix

Fixes #?

PR acceptance criteria
Please make sure that the following steps are complete:

[ ] GitHub Actions are completed and successful
[ ] Unit Tests are updated and passing
[ ] E2E Tests are updated and passing
[ ] Documentation is updated if necessary (requirement for new features)
[ ] Add a screenshot if the change is UX/UI related

How to test changes / Special notes to the reviewer

/test e2e-tests

/cherry-pick 1.2.x


[Expo] iOS Notification Controls Missing

Describe the Bug
Audio plays in the background just fine, but playback controls do not appear on the lock screen.
Steps To Reproduce
I only know how to reproduce this with my setup.
Code To Reproduce
I don't know if there is a simple way to reproduce this.
Replicable on Example App?
Can you replicate this bug in the React Native Track Player Example App?
The example app doesn't use Expo, which I think might be part of the problem.
Environment Info:
System:
OS: macOS 13.2.1
CPU: (8) arm64 Apple M1 Pro
Memory: 3.31 GB / 32.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 19.5.0 - ~/.nvm/versions/node/v19.5.0/bin/node
Yarn: Not Found
npm: 9.3.1 - ~/.nvm/versions/node/v19.5.0/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: 18.1.0 => 18.1.0
react-native: 0.70.5 => 0.70.5
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Paste the exact react-native-track-player version you are using
react-native-track-player: ^3.2.0
Real device? Or simulator?
Real device
What OS are you running?
iOS
How I can Help
What can you do to help resolve this?
Have you investigated the underlying JS or Swift/Android code causing this bug?
Can you create a Pull Request with a fix?

@jcksncllwy as I've mentioned here and a few other places (linked below for additional context). None of the maintainers use Expo and we don't really officially support it given the lack of expertise in it on the team.
I'd recommend you reach out to the community in Discord. I'll leave this open for a bit, but will close it if it doesn't gain any traction.

https://discord.com/channels/567636850513018880/997063127730495538/1025124965701394452
https://github.com/doublesymmetry/react-native-track-player/issues/1675#issuecomment-1229154827
https://github.com/doublesymmetry/react-native-track-player/issues/1444#issuecomment-1232032821
https://github.com/doublesymmetry/react-native-track-player/issues/1745#issuecomment-1255071864


Components don't expand on Mobile Safari

Had a report from a customer this morning that they were unable to expand the nested components when browsing the status page on Mobile Safari, on iPhone.
I'm going to carry out some browser testing of my own, see if I can confirm the issue in that scenario or any other browser combination.

I ran some tests in BrowserStack and confirm this is an issue, seemingly only with WebKit based browsers on iOS. - Webkit browsers on Windows and Android are both fine, as are Gecko browsers on iOS.
Going to look at what might be causing this - I'm pretty sure we use the default 'dropdown' plugin from Bootstrap to power this stuff, maybe there's a patch available.

I think I've found the crux of the issue after Googling. https://github.com/twbs/bootstrap/issues/16213
Seems that Webkit doesn't like the use of the <a> tags for these buttons without an href attribute, it doesn't allow it to be clickable without. Looking at updates to the Bootstrap docs they suggest that you use href instead of data-target with the collapse plugin - something I must have overlooked at the time.
I'm going to drop this in and see if it solves the issue.

Bingo. This worked a treat. I'm going to port the truncate method over to the same mechanism as that suffers from the same issue. I'll then wrap this up.


Extracts - Phytoplasma as an attribute

Feature or enhancement
When I am in New Extracts, I want to be able to associate the extract with a  possible Phytoplasma. I want a box that allows me to click on it to say yes or no a phytoplasma was associated with this extract. Also will need to be able to input an exact value. Perhaps two seperate enhancements.
Location
New Extracts
Screenshot, napkin sketch of interface, or conceptual description
No response
Your role
No response

@mmkohler when you say you want to input an exact value (in addition to a boolean y/n flag) what would be examples of some values you would want to store?

Valeria and her group would like to put a numerical value associated with the Phytoplasma occurance
From: Debbie Paul @.>
Sent: Friday, June 21, 2024 11:53 AM
To: SpeciesFileGroup/taxonworks @.>
Cc: Kohler, Michelle Marie @.>; Mention @.>
Subject: Re: [SpeciesFileGroup/taxonworks] Extracts - Phytoplasma as an attribute (Issue #3976)
@mmkohlerhttps://urldefense.com/v3/__https:/github.com/mmkohler__;!!DZ3fjg!5cbF9VsZqEGlE_QHrQwD44KzjXV2Bve2sK8pd4gIqF-nAfCI2303kI2a0uBnmkqYVyAWNQoz_HZqH93Fb5Gbhk8bgQ0$ when you say you want to input an exact value (in addition to a boolean y/n flag) what would be examples of some values you would want to store?
—
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/SpeciesFileGroup/taxonworks/issues/3976*issuecomment-2183103973__;Iw!!DZ3fjg!5cbF9VsZqEGlE_QHrQwD44KzjXV2Bve2sK8pd4gIqF-nAfCI2303kI2a0uBnmkqYVyAWNQoz_HZqH93Fb5Gbwx9Yf6I$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AGCPMOHA2M33KPDYOFH4DHLZIRK7XAVCNFSM6AAAAABJWLPN7CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBTGEYDGOJXGM__;!!DZ3fjg!5cbF9VsZqEGlE_QHrQwD44KzjXV2Bve2sK8pd4gIqF-nAfCI2303kI2a0uBnmkqYVyAWNQoz_HZqH93Fb5Gb3eyn45U$.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>

Yes, we need to understand the semantics of the "value" to best recommend a modelling approach.

my guess they may want to create a new key word for the data attribute and add this to the extract form. But I could be wrong...

The group would like to input decimal number associated with the phytoplasma. It might be easier to do an Associate category, similar to the Biological Associations in the comprehensive.


2229/ra report updates

What's included?
Numerous changes to the RA report;

Display shows IA details for current exercise
On screen fields given clear labels
Additional drop down to allocate RA given as a %
Fixed search functionality
Candidate Email and Telephone number displayed next to name to contact
Facility to flag candidates as actioned and filter actioned candidates from the view

Who should test?
✅ Product owner
✅ Developers
✅ UTG
How to test?
Not ready for pass/fail testing.
Please advise testers to interact with the page and give feedback for improvements and changes to make the feature more useful
Risk - how likely is this to impact other areas?
🟠 Medium risk - this does change code that is shared with other areas
Closes #2229
PREVIEW:DEVELOP
can be OFF, DEVELOP or STAGING

@tomlovesgithub Can you pls factor in these outputs from last week's UT/myself:

[ ] When you click the application hyperlink it takes you directly to the issues tab, it be more beneficial to go to the full information tab
[ ] Add labels to the dropdown filters - Status and RA Approval Status

[ ] Resolve the alignment at the top - is it possible to have the filters and the checkbox all on the same row?

Further feedback to implement:

[ ] Selecting an option from the Application Status dropdown causes another dropdown to appear, which is misaligned, and a Loading timer – the page then freezes as shown:

[ ] From a UI perspective, there should be more whitespace between the 3 dropdown menus at the top of the page; they are currently all squashed together with the result that they’re not easy to read

[ ] Candidate names in column A of download should be in format Lastname, Firstname

[ ] Approval status, RA allocated and RA description data is not appearing in the download

[ ] RA applies to column needs to be included in download

@nickaddy
Could you help me to confirm the RA report format when having multiple RA items ? Thanks
Is following format ok?


Some of the entities do not show any data on Stream Deck 6.0.1

Battery indicator does not work:

Same story for weather:

Hmm, i just updated and have the same issues with the same entity types. Others work as expected.
Interesting...

Looks like a bug in StreamDeck:

Works without "unit_of_measurement"

Does not work with "unit_of_measurement" ("%")

I'm also having this problem even in the new version <IP_ADDRESS>22, any ideas on how to solve it or any feature updates that can solve it?

@cgiesche For what it's worth, I'm on 6.0.17722 with plugin version 2.0.1 and I'm not able to see any attributes or variables on any entities.

Stream Deck version 6.0.2 (17735) issue is still present

I was not (yet) able to determine, where and why the "%" character crashes the plugin, but i will dive into this if i find time...

FYI

Hi, I've been reading up on the %-issue and found a workaround: using % which references the numerical unicode-notation in an HTML-safe way. For some reason this, but not the HTML code (%).
I hope this helps others having to deal with this issue and you in finding the root of the problem.

Closing this isssue (not fixed :( ) as duplicate of https://github.com/cgiesche/streamdeck-homeassistant/issues/139.


Why i can not set breakpoints on a fromApp?

Dear Sir:
I used your project as a test tools for my Fix job. It works very well, but when i want to debug program.I found i can set breakpoints on toapp method but can not get pause on fromapp. It also have stranger situation such as client can not log in . There is no error showed under console. The client login then logout many times. I do not know why.
I used vscode as my develop IDE. Thansk for your help!

Hi, I have been away from this project for quite a while. Is this still an issue ? Let me know and I will have a look. Apologies for the late reply.


Atom failing to run Python after Script program download

Project
Notes Python
Hello.py
test.py
Settings
Hello.py
1
2
print "Hello, World!"
Python - test.py:1
'python' is not recognized as an internal or external command,
operable program or batch file.
[Finished in 0.1s]

have you downloaded python?
if so, have you made it executable? try checking in bash/powershell


Removed deprecated parameters in bsg_manycore_wrapper

This may be superseded by Max's work

This fixes compilation issues in the F1 build flow

Passes cosimulation regression


test: Unit Test Optimization

What's changed and what's your intention?
PLEASE DO NOT LEAVE THIS EMPTY !!!
Please explain IN DETAIL what the changes are in this PR and why they are needed:

Summarize your change (mandatory)
How does this PR work? Need a brief introduction for the changed logic (optional)
Describe clearly one logical change and avoid lazy messages (optional)
Describe any limitations of the current code (optional)

Checklist

[ ]  I have written the necessary rustdoc comments.
[ ]  I have added the necessary unit tests and integration tests.
[ ]  This PR does not require documentation updates.

Refer to a related PR or issue link (optional)

Hello, I tried to solve the issue.
This is what I did:
This PR adds a new test file for MQTT v5 user properties to ensure proper handling and functionality. The changes include:

Creating a new test file user_properties_test.rs in the tests/tests/mqtt_client/mqtt/ directory.
Implementing test cases for user properties in MQTT v5 connections, publish, and subscribe operations.
Updating the mod.rs file to include the new test module.

These changes are needed to improve test coverage for MQTT v5 features and ensure that user properties are correctly handled by the broker.
You can review changes in this commit: https://github.com/lattaai9/robustmq-robustmq-618/commit/cd46691170e2ab466982dab19fe5708ca72c3375.

[!CAUTION]
Disclaimer: The commit was created by Latta AI and you should never copy paste this code before you check the correctness of generated code. Solution might not be complete, you should use this code as an inspiration only.

This issue was tried to solve for free by Latta AI - https://latta.ai/ourmission
If you no longer want Latta AI to attempt solving issues on your repository, you can block this account.


Account settings never shows up

Issue Type: Bug
I have downloaded the zip file for visual studio available on the microsoft website official . so why cannot i login to  visual studio . The sign in option doesnot show up anywhere .Neither in file menu nor in the accounts icon on the side bar. Can you please help me solve the issue.
 What does the accounts menu in the side bar look like, can you include a screen shot?

Yes it shows only two things:

you are not signed in to any account(no options anywhere to sign in)
turn on sync settings (this is clickable ,clicking which shows msg "this
is preview feature ,read documentation before turning on".
There is no option for account settings also anywhere neither in menus or
in any side bars.Attaching screenshot for reference.

So I thought to drop this standalone version and went on to use the
community version setup from the Microsoft site which gave me an option to
login to an account on first startup/installation.But even in this also
when I tried to push and commit it showed success on VS code ide however
when cross verifying on within account there was not new commits shown.
Hence due to time constraints I dropped diagnosing the issue and have
started using cmd prompt old school way and committing to github.
Thanks,
Sivnarayan
On Fri, Feb 19, 2021, 04:25 Rachel Macfarlane<EMAIL_ADDRESS>wrote:

@Sivnarayan-Ka https://github.com/Sivnarayan-Ka Are you trying to sign
in to settings sync? What does the accounts menu in the side bar look like,
can you include a screen shot?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode/issues/116586#issuecomment-781688942,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASQTVXLOU3CJ7NYOANC76XTS7WLE3ANCNFSM4XRJ635Q
.


Allow filtering occurrences per Area

Request mentioned by Emma.
#36 is a prerequisite for this

Implemented.


ORM-ify

[ ] Remove the need to pass company_id in to every single function. It should get set once at some higher level.
[ ] Make methods more django-like (i.e. .all(), .filter(), etc). This may require a bit more sophistication in the layout of the endpoints.py file.
[ ] Consider parsing responses a little, to return objects rather than raw JSON (not that JSON is that horrible)

I wholeheartedly agree, I do believe ormification is imperative here. If only more developers understood the gravity of the situation like you do. Perhaps with a little work we could succesfully ormify every repository on this blessed version control website.

Since the credentials object currently stores the authentication credentials for a given company file, it is already specific to the given company_id, and hence I feel the two should be together.
However I feel the better solution would be introducing a third object, which takes both the company_id and userpass and stores them somewhere separately. This would be useful in cases where a single set of PartnerCredentials gives access to multiple company files, which each need their own company_id and userpass stored somewhere.


fixing text to match code changes in certauth.md

Fix incorrect text to match code. Thumbprint is used to validate certificate, and not subject or issuer. fix from @blowdart

:) Someone pointed out stringtobytearray is a helper function you've written and they're confused. So might address that as well?
https://github.com/aspnet/AspNetCore.Docs/issues/15601

@damienbod, address #15601 if you like on a new PR for more GH issue credit. :tada:


sct_dmri_separate_b0_and_dwi: Output shape changes depending on verbose setting

Description
While working on #2676, I noticed this bug. Modiying this line here to use the -v option:
https://github.com/neuropoly/spinalcordtoolbox/blob/bf3de687c20ac86717de3584296af1931e247784/testing/test_sct_dmri_separate_b0_and_dwi.py#L24
With True, 1, 2, etc. tests pass successfully:
Will run through the following tests:
- in parallel with 1 jobs: sct_dmri_separate_b0_and_dwi
Checking sct_dmri_separate_b0_and_dwi...............[OK]
status: [0]
Finished! Elapsed time: 3s

With False/0, tests give a warning because of an extra dimension in the output image:
Checking sct_dmri_separate_b0_and_dwi...............[WARNING]

   ====================================================================================================
   sct_dmri_separate_b0_and_dwi -i dmri/dmri.nii.gz -bvec dmri/bvecs.txt -a 1 -r 0
   ====================================================================================================

   --
   Spinal Cord Toolbox (git-jn/2676-change-verbosity-c8d4c656f96f9c9b3627381cd09285d22b0d1b61*)

   sct_convert -i /home/joshua/Repos/spinalcordtoolbox/sct_testing_data/dmri/dmri.nii.gz -o /tmp/sct-20200818101936.565183-dmri_separate-h4ctjg0v/dmri.nii

   WARNING: File /home/joshua/Repos/spinalcordtoolbox/sct_testing_data/dmri_b0.nii.gz already exists. Deleting it...
   File created: /home/joshua/Repos/spinalcordtoolbox/sct_testing_data/dmri_b0.nii.gz
   WARNING: File /home/joshua/Repos/spinalcordtoolbox/sct_testing_data/dmri_dwi.nii.gz already exists. Deleting it...
   File created: /home/joshua/Repos/spinalcordtoolbox/sct_testing_data/dmri_dwi.nii.gz
   WARNING: File /home/joshua/Repos/spinalcordtoolbox/sct_testing_data/dmri_b0_mean.nii.gz already exists. Deleting it...
   File created: /home/joshua/Repos/spinalcordtoolbox/sct_testing_data/dmri_b0_mean.nii.gz
   WARNING: File /home/joshua/Repos/spinalcordtoolbox/sct_testing_data/dmri_dwi_mean.nii.gz already exists. Deleting it...
   File created: /home/joshua/Repos/spinalcordtoolbox/sct_testing_data/dmri_dwi_mean.nii.gz

   ====================================================================================================
   INTEGRITY TESTING
   ====================================================================================================

   Checking DWI
   --> PASSED

   Checking b=0
   operands could not be broadcast together with shapes (40,42,5) (40,42,5,1)
status: [99]
Failures: sct_dmri_separate_b0_and_dwi
Finished! Elapsed time: 3s

I'm not sure why verbosity would have an effect like this, but I am investigating the cause.

I've narrowed down the issue to this line:

I've narrowed down the issue to this line:
https://github.com/neuropoly/spinalcordtoolbox/blob/bf3de687c20ac86717de3584296af1931e247784/scripts/sct_dmri_separate_b0_and_dwi.py#L210
Manually setting verbose=True here fixes the issue. So, it looks like the problem lies with sct.generate_output_files and not sct_dmri_separate_b0_and_dwi. I'll see if I can narrow it down further.

Aha! The issue is, verbose wasn't actually setting verbose here. Take a look at the function signature:
https://github.com/neuropoly/spinalcordtoolbox/blob/bf3de687c20ac86717de3584296af1931e247784/scripts/sct_utils.py#L708
4 input arguments, but only 3 were passed (see above). So, verbose was actually setting squeeze_data, which makes given that the output shape changes.
I'll create a quick PR for this so that verbosity is explicitly set as a kwarg in these calls.

It looks like many scripts are also accidentally setting squeeze_data with their verbosity parameter. I'll make sure my PR fixes all instances of this.

wow! great catch @joshuacwnewton 🎉
that reinforces the idea of

getting rid of the verbose flag #2853
try to use explicit argument names (e.g. key=value instead of value) whenever possible


Keyframe rule ignored due to bad selector.

Hello,
I'm getting a Keyframe rule ignored due to bad selector. warning in Firefox 95.0.1. Is it something to worry? I tried in Chrome 96.0.4664.110  and it doesn't appear.

Hi @bejucoo, could you please provide a reproducible demo that would throw this warning? That would help us look into it.

Hey there @bejucoo,
Since there hasn't been any movement recently on this issue I'm going to go ahead and close it. If you still have an issue/questions please comment and I'll be happy to re-open it.


[BUG] Training Step Time Increases after Function Call

Describe the bug
I wrote a model and a training step function.
First function call takes 8 seconds, and the second takes 1 minute. Not sure why that happens.
To Reproduce
Code is in this repo
To reproduce the issue, execute
pip install -r requirements.txt
python reproduce_bug.py

Expected behavior
I expect the first call to take longer because of compilation, but didn't expect the second one to take that long.
Desktop (please complete the following information):

OS Version: macOS Sonoma 14.4.1
Version:

mlx==0.9.1
mlx-lm==0.7.0
sentencepiece==0.2.0
notebook==7.1.2
ipywidgets==8.1.2
datasets==2.18.0
asitop==0.0.24

Hardware: M1 MacBook Air / 16GB Memory

Additional context

May be caused by memory swapping, but I don't know how to verify.

Your code runs fine on an M1 Max with 32 GB.
It requires about 25 GB peak memory which definitely suggests that it is swapping.
Also it's good practice to evaluate the state. The reason the first iteration seems fast is because you only evaluate the forward pass to get the loss (not the full forward/backward).
Here's how I modified your loop slightly to log the memory use and evaluate the state:
    for _ in range(100):
        tic = time.perf_counter()
        loss = train_step(input_idxs, label_idxs)
        mx.eval(state)
        print(f"Peak memory {mx.metal.get_peak_memory() / 2**30} (GB)")
        print(f'{loss.item()=:.4f}')
        toc = time.perf_counter()
        print(f'{(toc-tic):.4f} s')

It's working now, thank you!


Enhance hash table syntax

Runtime Construct and Populate
At design-time the syntax of an array and a dictionary (hash table) may look quiet consistent:
$Array = @(1, 4, 9) # or just $a = 1, 4, 9
$Hashtable = @{1 = 1; 2 = 3; 3 = 9}

But at runtime there is quiet a difference; it is possible to construct and populate a array in ones:
$Array = @(1..3 | %{ $_ * $_ })

but it is not possible to construct and populate a dictionary in ones. AFAIK, I always need to construct it first and then populate it:
$Hashtable = @{}
1..3 | %{ $Hashtable[$_] = $_ * $_ }

Basically, it is not possible to put a function in a hash table syntax, like: @{ MyFunction }, as there is no way to get out of argument mode, in comparison with an array syntax, where it is easy to jump to expression mode @( MyFunction ). For the same reason it is not possible to initiate and populate the hash table from within @{...} during runtime.
The same limitation counts for using a .Net constructor. I can populate an array within an array constructor:
$Array = [array](1..3 | %{ $_ * $_ })

But it is not possible to something similar from within a hash table constructor:
$Hashtable = [hashtable](1..3 | %{ @{ $_ = $_ * $_ } })

Or to invoke a function like:
$Hashtable = [hashtable]MyKeyValuePairs

InvalidArgument: Cannot convert the "System.Object[]" value of type "System.Object[]" to type "System.Collections.Hashtable".

Purpose
It would be nice if the hash table constructor accepts a list KeyValuePair (hash table) objects (Object[]]) to better support the Single-responsibility principle.
Caveats

A single item (anything but a key value pair, e.g.:@{ 1 = 'One' }, 2, @{ 3 = 'Three' }) probably needs to be considered as a key with a $Null value.
Duplicate keys need to be handled, e.g.: overwrite by default and throw an error when Set-StrictMode is set or put the related values of the duplicated keys in an array: [hashtable]@{ 1 = 'One' }, @{2 = 'Two' }, @{ 1 = 'Also One' } 🡆 [hashtable]@{ 1 = 'One', 'Also One'; 2 = 'Two' }

The same goes for a [PSCustomObject], it isn't possible to construct and populate a new PSCustomObject in once at runtime. Meaning,  to construct a [PSCustomObject] and populate it with custom properties at runtime, it is required to construct the [PSCustomObject] first, and than populate it, using Add-Member. See e.g. StackOverflow question Is it possible to do an for “for” in an PSObject?.
$Object = [PSCustomObject](1..3 | %{ @{ "Name$_" = $_ * $_ } })

There is no error, but instead, I get a list of hash table objects ([hashtable[]]) rather than a single PSCustomObject  with 3 properties:
PS C:\> $Object.Count
3
PS C:\> $Object[0].GetType()
IsPublic IsSerial Name                                     BaseType
-------- -------- ----                                     --------
True     True     Hashtable                                System.Object

There is probably a good explanation for this but I would expect a single [PSCustomObject] with three properties, like:
Name1 Name2 Name3
----- ----- -----
    1     4     9

Presuming that for a [PSCustomObject] it would mean a breaking change, a [Hashtable] constructor as purposed would still allow to do something like this:
$Object = [PSCustomObject][Hashtable]MyPropertyFunction

Or directly:
$Object = [PSCustomObject][Hashtable](1..3 | %{ @{ "Name$_" = $_ * $_ } })

This purpose is related to #5643.
In addition to the shortcut purpose from @iSazonov, for the object @[] shortcut accelerator,  @{} could also be an shortcut for the hash table accelerator (wishful thinking?):
$Hashtable = @{}MyPropertyFunction
$Object = @[]$Hashtable

Design-time Construct and Populate
I am not sure whether this part makes sense in a way it is a more a less intuitive/consistent with the current syntax, but I like to mention it anyways as it has at least some consistency with the runtime purpose above:
To assign an array, it is possible to just supply a list of items separated with a comma:
$Array = 1, 2, 3

It would be nice to also be able to do that for creating a list of key-value pairs, e.g.:
$KeyValues = 1 = 'One', 2 = 'Two', 3 = 'Three'

Knowing that this currently this has no meaning and returns an error:
Line |
   1 |  $KeyValues = 1 = 'One', 2 = 'Two', 3 = 'Three'
     |               ~
     | The assignment expression is not valid. The input to an assignment operator must be an object that is able to accept assignments, such as a variable or a property.

But is could return a list of  [hashtable] items, similar to:
$KeyValues = @{ 1 = 'One' }, @{ 2 = 'Two' }, @{ 3 = 'Three' }

Which on its own could be used for simple enumerations (even there is no binary index and requires to enumerate twice):
$KeyValues.GetEnumerator().GetEnumerator() | Foreach-Object { Write-Host ('{0} = {1}' -f $_.Key, $_.Value) }

Which than could than be casted to a single hash table as suggested in the above Runtime section, like:
$Hashtable = [hashtable](1 = 'One', 2 = 'Two', 3 = 'Three')

Caveats

String keys always required to be quoted: $Hashtable = [hashtable]('One' = 1, 'Two' = 2, 'Three' = 3)
Variable keys need to be double quoted: $Hashtable = [hashtable](1..3 | %{ "$_" = $_ * $_ }), which is probably unsafe.

but it is not possible to construct and populate a dictionary in ones. AFAIK, I always need to construct it first and then populate it:
$Hashtable = @{}
1..3 | %{ $Hashtable[$_] = $_ * $_ }

In PSv7 you can do this:
1..3 | % { ($h ??= @{})[$_] = $_ * $_ }

and prior you can do
1..3 | % -b { $h = @{} } -pr { $h[$_] = $_ * $_ }

Personally if something were to be added I'd rather it be a command like:
0..10 | ConvertTo-Hashtable { $_ } { $_ * $_ }

at runtime there is quiet a difference; it is possible to construct and populate a array in ones:
$Array = @(1..3 | %{ $_ * $_ })
but it is not possible to construct and populate a dictionary in ones. AFAIK, I always need to construct it first and then populate it:

$Hashtable = @{}
1..3 | %{ $Hashtable[$] = $ * $_ }

Yes this is normal.  You don't need the @()  array-subexpression operator in the first one. $Array = 1..3 | %{ $_ * $_ } gives the same result.  FF . Multiple things naturally become [object[]] in PowerShell if you want a string array or a int array or you have to define it up front. So that's a special behaviour.
You can concatenate hash tables.
$h=@{} ; 1..3 | %{ $h+= @{$_ = $_* $_}}
Also works, although it is no better.
@{ "Name$_" = $_ * $_ }  Says make a one item hash table. so  1..3 | %{ @{ "Name$_" = $_ * $_ } } Says make 3 one item hash tables,  which is why it's not so great with [PsCustomObject].

$Array = [array](1..3 | %{ $_ * $_ })

Says take 1,4,9  (already an array) and cast it to array. Simple

$H = [hashtable](1..3 | %{ @{ $_ = $_ * $_ } })

Says take an array of 3 hash tables and cast them to a hash table.  Which is unwieldy. As as a way of saying "initialize a hash table and put this in it" is longer than where you started.
 $H = @{}; 1..3 | %{ $H[$_] = $_ * $_ }

To assign an array, it is possible to just supply a list of items separated with a comma:
$Array = 1, 2, 3

Well yes but if you were consistent with what you first wrote you'd use   $Array = @(1, 2, 3)

It would be nice to also be able to do that for creating a list of key-value pairs, e.g.:
$KeyValues = 1 = 'One', 2 = 'Two', 3 = 'Three'

Well if we were being consistent  that would be $KeyValues = @{1 = 'One', 2 = 'Two', 3 = 'Three'}
Don't forget you can write   $KeyValues = @{$won = 'One',}  but this
$KeyValues = $won = 'One'
already has a meaning, so I don't think it would be nice at all.
Incidentally

$KeyValues = 1 = 'One', 2 = 'Two', 3 = 'Three'
Are value pairs until we take take them somewhere where one becomes a key. We might have

$KeyValues = @{One = 1
               Two = 2}

Without needing the quotes

$Hashtable = [hashtable](1 = 'One', 2 = 'Two', 3 = 'Three')
So what you've done is you've replaced @ with [hashtable]   {} with () and ";" or linebreak with "," and made a requirement for string literal keys to be quoted.

I'm not seeing an improvement here.  @SeeminglyScience `s last suggestion is a good one and could support lots of ways of passing in the keys and values.

I also like @SeeminglyScience's idea, but the command should probably be named differently (and probably needs an option to create an ordered hashtable or, better yet, do so by default):
0..10 | New-Hashtable { $_ } { $_ * $_ }

You could then do [pscustomobject] (New-Hashtable ...) if you wanted a custom object.
I suppose another option would be to add a new parameter set to New-Object (with the two script blocks) to construct as [pscustomobject] instance by default and give it an -AsHashtable switch.
(A ConvertTo-Hashtable might be nice for converting [pscustomobject]s to hash tables, though you could argue that syntactic sugar [hashtable] $customObject is called for, to complement [pscustomobject] $hashTable; as usual, fitting the [ordered] in there would be awkward; it is too late, but I really wish that PowerShell would simply always use ordered hashtables; sigh).

@iRon7:

I get a list of hash table objects ([hashtable[]])
There is probably a good explanation for this

The explanation is that PowerShell only implements the [pscustomobject] syntactic sugar for a single operand of type  (ordered) [hashtable] (but sadly not for a generic Dictionary`2, though #13727 may change that).
The unfortunate part is that for non-supported operands the cast is the same as casting to [psobject], which is a virtual no-op: it simply wraps the operand in a - largely invisible, except when not (#5579) - [psobject] instance.
See #13836 and #13838

@mklement0, Thanks for the comments and the interesting linked issues.
The idea from @SeeminglyScience's:
0..10 | New-Hashtable { $_ } { $_ * $_ }

Is indeed nice, although it is a little confusing with input process blocks as with the Foreach-Object cmdlet (unless you use (but  named parameters):
0..10 | Foreach-Object { $_ } { $_ * $_ }

Because the first script block has a different meaning.
You could also consider:
0..10 | New-Hashtable { @{ $_ = $_ * $_ } }

But that causes embedded curly brackets (which is not so nice but quiet common in PowerShell, think of calculated properties)

it is too late, but I really wish that PowerShell would simply always use ordered hashtables; sigh

I completely agree, I was thinking: what would a change for this actually break?, Enumerations will be similar and you can't index on an unordered hashtable anyways (it will be very fragile as it will likely immediately break anyways when you add something). But the the problem is all the explicit (parameter) definitions.
One step to this direction can be taken anyways without breaking anything yet: Encourage using IDirectory interface for parameters #13852

unless you use (but named parameters)

I think the separate script blocks are preferable, and using named arguments would bring the necessary clarity, along the lines of:
0..10 | New-Hashtable -KeyScriptBlock { $_ } -ValueScriptBlock { $_ * $_ }

what would a change for this actually break?

Probably not too much overall, but think of cases where someone uses a "polymorphic" (untyped, implicitly [object]) parameter and then reflects on its type: $param -is [hashtable].
(By the way, there's a typo in your comment: you meant IDictionary, not IDirectory.)
It is similar to the idea of making PowerShell use System.Collections.Generic.List`1 instead of arrays by default (see  see https://github.com/PowerShell/PowerShell/issues/5643#issuecomment-349811857): again, most scripts wouldn't notice, but some could break.
Both ideas - switching to default use of ordered hashtables and lists rather than arrays - are  prime candidates for #6745.
(As an aside: System.Collections.Generic.Dictionary``2 is not ordered, and from what I can tell there is currently no generic counterpart to System.Collections.Specialized.OrderedDictionary - see https://stackoverflow.com/q/2629027/45375)

As an aside:

you can't index on an unordered hashtable anyways (it will be very fragile

You fundamentally cannot numerically index into a [hashtable], that only works with [ordered].
With [ordered], there is a risk of ambiguity with numeric keys:
([ordered] @{ 1 = 'one'; 2 = 'two' })[1]
two # !! `1` was interpreted as *numeric* index, not a key.
# Workarounds: `.1` or `[[object] key]`

what would a change for this actually break?

Probably not too much overall, but, in addition to [hashtable]-typed parameters you mention, think of cases where someone uses a "polymorphic" (untyped, implicitly [object]) parameter and then reflects on its type: $param -is [hashtable].

Yeah that's a good example.  Another is a map of ints:
$h = @{
    1 = 2
}

# Check if the key `0` exists.
if (-not $h[0]) { do something }

Also worth noting that it would probably double (or at least add one third) of the allocation size since it's basically a hashtable and also an ArrayList. I've seen hashtables get pretty big in PS scripts too, might push some OOM (but probably unlikely).

0..10 | New-Hashtable -KeyScriptBlock { $_ } -ValueScriptBlock { $_ * $_ }

In relation to Encourage using IDictionary interface for parameters #13852, I might be preferable to create an ordered dictionary by default:
0..10 | New-Dictionary -KeyScriptBlock { $_ } -ValueScriptBlock { $_ * $_ }

and have mutual switches like -AsHashTable (default ordered) and -Sorted along with a -CaseSensitive switch.
(Would it make sense to introduce a new PowerShell specific type, something like: [PSDictionary]/[PSCustomDictionary] with PowerShell specific features and defaults. Or is this way out of line?)
By the way, a common use case for runtime construction and populating, is (binary) indexing a collection of PSCustomObjects for a fast join with another PSCustomObjects collection, where I would like to use a syntax like this:
$IndexByName = $PSObjectCollection | New-Dictionary -KeyScriptBlock { $_.Name } -ValueScriptBlock { $_ }

I definitely like the idea of naming the cmdlet New-Dictionary, defaulting to an ordered hashtable (System.Collections.Specialized.OrderedDictionary), and the -CaseSensitive switch.
When you say -Sorted, did you mean -Ordered or were you thinking of  sorted dictionaries (sorted by keys, as opposed to ordered, which maintain definition order): SortedList`2 and SortedDictionary`2 (they fundamentally behave the same, but are optimized for different things).
Instead of having multiple switches, I suggest a single -As or perhaps better -Kind parameter that accepts an enumeration value; e.g.:
New-Dictionary -Kind { Unordered | Ordered | Sorted | SortedList }

I don't see the need for a custom, PS-specific dictionary type, but perhaps you can elaborate on why you think it would be a good idea.

@mklement0,

did you mean -Ordered or were you thinking of sorted dictionaries

I really meant Sorted (needless to say, I am not known with most dictionary types -except from Unordered | Ordered | Sorted and do not quiet understand the hierarchy and which type/interface is derived from which type/interface)

Instead of having multiple switches, I suggest a single -As

A single -As parameter is indeed better than multiple (mutually excluded) switches, except for the Unordered value, as Unordered would also mean that the dictionary is "Unsorted", so far I can tell, the common type name for this is in fact the well known [Hashtable]:
New-Dictionary -As{ Hashtable | Ordered | Sorted | SortedList }

a custom, PS-specific dictionary type, but perhaps you can elaborate

This is partly related to Encourage using IDictionary interface for parameters #13852 and your new Support hashtable initializers for all IDictionary types #13873 issues. I can't oversee this, but using the IDictionary and a paramater type might be a too large filter for dictionaries that might fail when iterated further down into a script. A specific PowerShell dictionary type (with can also be used for a parameter type) might give more control over directory types that supposed to iterate well in a PowerShell script.
Get a consistent set of members, as e.g. a [Hashtable] has ContainsKey and ContainsValue methods and an [Ordered] type not.
(btw, I don't understand why the .Net get_key() method is hided as using the Keys property could potentially conflict with keys based on a custom list during runtime)
To also allow for a [PSDictionary]@{ 1 = 'a'; 2 = 'b'; 3 = 'c' } syntax with (runtime) features like [PSDictionary]{ $PSObjectCollection | % { $_.Name = $_ } } as initially purposed
A new common PS-specific dictionary type might be easier to understand for a novice programmer (than dealing with all the directory types/interfaces) and with that, could be an easier way to move away from the unordered hash table

Re Hashtable as the enum value: yes, that'll be more familiar to users.
Re custom PS dictionary type:
What you're describing is the purpose that the IDictionary interface already fulfills.
Your ContainsKey / ContainsValue example is a manifestation of the challenges of working with interfaces I've tried to summarize in the linked issue: by only working with types as themselves as opposed to through interfaces, interfaces are all but invisible in PowerShell, though implementing  #13865 should help a bit.
VSCode already helps you with IntelliSense, but absent that you must simply know what members the interface itself supports - as opposed to a given type implementing it, which has additional members, which differs across implementing types.
Rather than trying to solve with this a custom type that in effect would emulate an interface, the better solution would be for PowerShell to support interface-typed variables, so that only the interface members are accessible through them, as in C#.
Come to think of it, this may be exactly what @SeeminglyScience may have been advocating in his comment (I didn't see it at the time) - though it sounds like a nontrivial undertaking,
Correct, @SeeminglyScience? Do you see the potential for breaking changes if that were to be introduced? Also, casting back to an implementing type would for symmetry also have to be supported (though -as may do in a pinch).

Using a hashtable (dictionary) for indexing properties is often suggested as a lookup table to speed up object searches therefore a New-Dictionary cmdlet with a "ValueFromPipeLine" -InputObject parameter and a -Index (or  -Property) string parameter might allow to create an easy idiomatic way to create a lookup table as suggested by @IISResetMe in the stackoverflow answer Initialize hashtable from array of objects?:
<psobject>  |New-Dictionary [-KeyScriptBlock <ScriptBlock>] [-ValueScriptBlock <ScriptBlock>] ...
<psobject>  |New-Dictionary [-Index <string>] ...

Example
$ADUser = Get-ADUser |New-Dictionary -Index SAMAccountName
$ADUser[`JohnDoe`].SID

I like the idea, @iRon7, though I would call the parameter -Key[Property] rather than -Index for clarity.

This issue Needs-Triage (removed) and either marked with something like Resolution-Declined or put it on a kind of wishlist "Issue we would like to prioritize, but we can't commit we will get to it yet"


Don't try to shrink submariner image

The DNF layer adds about 50MB (out of which several are due to
distrosync).
Removing stuff actually doesn't clean much since most of these packages
were already there in the base image, so it saves around 7MB but makes
the whole thing needlessly complicated.
We can live with a few extra MB but a much simpler Dockerfile

FYI I also tried UPX and it saved a measly few MB (since I also had to install find and upx itself) so it wasn't worth it either in this case.
The base image is 192MB, if we can use a smaller one then our overall image size will be smaller also.


Compound foreign keys need compound unique index for Postgres backend

Current ORM branch works against SQLite backend, but not Postgres. Postgres says:
ERROR:  there is no unique constraint matching given keys for referenced table "candidate"

Should be fixable by explicitly creating a compound unique index on id and candidate_set_id in candidate table if snorkel_postgres is True.

It's not just compound foreign keys, any foreign key in a table that is reused as a foreign key must be explicitly marked unique to keep Postgres happy.
For example, in the document table, corpus_id is a foreign key on corpus.id, which is itself a foreign key on context.id (due to polymorphism).
So, we fix it in this case by changing the corpus.id declaration to
id = Column(Integer, ForeignKey('context.id'), unique=True, nullable=False)

regardless of whether snorkel_postgres is True. Technically, this is a constraint that should always be enforced. We wouldn't want to create two corpus records with different names but the same context id. Assuming it's bug free, SQLAlchemy wouldn't let this happen, but we might as well make the constraint explicit.
Returning to the original question of compound foreign keys, an explicit unique compound index is redundant, because in our case the columns are a superset of the primary key columns. Therefore, I'll make it a Postgres-only index since it's a quirk of Postgres that it's necessary.


Enable tile+distribute+vectorize for unpack ops.

Test case:
    %result = iree_linalg_ext.unpack %result_4d inner_dims_pos = [0, 1] inner_tiles = [8, 8] into %result_init
       : (tensor<32x32x8x8xi32> tensor<256x256xi32>) -> tensor<256x256xi32>

The commit gives us 1.86x improvements (93.63 us -> 49.44 us).

@bjacob @MaheshRavishankar this chain enables the tile+distribution for VMVX, and tile+distribution+vectorization for llvm-cpu. There is a runtime crash in microkernel path. I'll file an issue for it.
17: iree/tools/iree-check-module-main.cc:68: Failure
17: Value of: iree_vm_invoke(context_, function_, IREE_VM_INVOCATION_FLAG_NONE, nullptr, nullptr, nullptr, iree_vm_instance_allocator(instance_))
17: Expected: error code OK
17:   Actual: 0x55b2c15de3ea, whose error code is ABORTED: ABORTED; while invoking native function hal.fence.await; while calling import;

@chelini FYI that this enables tile+distribute and vectorization for unpack op in IREE


Fix for Linux compilation

I've ran into some problems with compiling on Linux with clang. I've found some issues in the build and the source and fixed them (the commit messages explain the rationale of the changes.).
Also, I'm not sure about the error branch when defining FORCEINLINE. Does the library really need the forced inline feature that its absence would make it build erroneously? If not, I'd suggest defining FORCEINLINE to be simply inline as a graceful fallback (perhaps while also emitting a warning). With these two commits I was able to successfully build with clang 3.6.0 on Arch Linux x64.

Inlining is essential for the compile time string hashes. If the compiler does not resolve it during compile time, the performance plus is gone. In case of doubt, check the resulting assembly (should be integer instead of the string).


Pretrained weights for ResNet[18, 34, 50, 101] are incorrect

🐛 Describe the bug
Hi,
I have been trying to run the pretrained ResNet models. The model weights seem to be incorrect. Below is a code to reproduce the erroneous results:
import torch
from torchvision.models import resnet18, ResNet18_Weights
from PIL import Image

resnet = resnet18(weights=ResNet18_Weights.IMAGENET1K_V1)
preprocess = ResNet18_Weights.IMAGENET1K_V1.transforms()

# !wget "https://github.com/pytorch/hub/raw/master/images/dog.jpg"
input_image = Image.open('dog.jpg')

# !wget https://upload.wikimedia.org/wikipedia/commons/b/b6/Felis_catus-cat_on_snow.jpg -O cat.jpg
# input_image = Image.open('cat.jpg')

input_tensor = preprocess(input_image)
input_batch = input_tensor.unsqueeze(0) # create a mini-batch as expected by the model

with torch.no_grad():
    output = resnet(input_batch)

probabilities = torch.nn.functional.softmax(output[0], dim=0)
# !wget https://raw.githubusercontent.com/pytorch/hub/master/imagenet_classes.txt
with open("imagenet_classes.txt", "r") as f:
    categories = [s.strip() for s in f.readlines()]

# Show top categories per image
top5_prob, top5_catid = torch.topk(probabilities, 5)
for i in range(top5_prob.size(0)):
    print(categories[top5_catid[i]], top5_prob[i].item())

Output is the same for both "cat.jpg" and "dog.jpg" for ResNet18:
bucket 0.008743884041905403
plunger 0.006772771943360567
hook 0.005883160978555679
paper towel 0.005243286956101656
ashcan 0.005110109690576792

These predictions are clearly incorrect. Through a noncomprehensive testing, the garbage output occurs for the model weights:
ResNet18_Weights.IMAGENET1K_V1
ResNet34_Weights.IMAGENET1K_V1
ResNet50_Weights.IMAGENET1K_V1
ResNet101_Weights.IMAGENET1K_V1

while the output for the following model weights are correct:
ResNet50_Weights.IMAGENET1K_V2
ResNet101_Weights.IMAGENET1K_V2

My guess is that the pretrained weight files are linked incorrectly for the V1 models.
Versions
Collecting environment information...
PyTorch version: 2.5.1
Is debug build: False
CUDA used to build PyTorch: 12.4
ROCM used to build PyTorch: N/A
OS: Rocky Linux 9.4 (Blue Onyx) (x86_64)
GCC version: (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3)
Clang version: Could not collect
CMake version: Could not collect
Libc version: glibc-2.34
Python version: 3.12.3 | packaged by conda-forge | (main, Apr 15 2024, 18:38:13) [GCC 12.3.0] (64-bit runtime)
Python platform: Linux-5.14.0-427.42.1.el9_4.x86_64-x86_64-with-glibc2.34
Is CUDA available: True
CUDA runtime version: 12.4.131
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration:
GPU 0: NVIDIA A10
GPU 1: NVIDIA A10
Nvidia driver version: 550.54.15
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True
CPU:
Architecture:                         x86_64
CPU op-mode(s):                       32-bit, 64-bit
Address sizes:                        46 bits physical, 57 bits virtual
Byte Order:                           Little Endian
CPU(s):                               96
On-line CPU(s) list:                  0-95
Vendor ID:                            GenuineIntel
Model name:                           Intel(R) Xeon(R) Gold 6342 CPU @ 2.80GHz
CPU family:                           6
Model:                                106
Thread(s) per core:                   2
Core(s) per socket:                   24
Socket(s):                            2
Stepping:                             6
CPU(s) scaling MHz:                   98%
CPU max MHz:                          3500.0000
CPU min MHz:                          800.0000
BogoMIPS:                             5600.00
Flags:                                fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 intel_ppin ssbd mba ibrs ibpb stibp ibrs_enhanced tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local split_lock_detect wbnoinvd dtherm ida arat pln pts vnmi avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg tme avx512_vpopcntdq la57 rdpid fsrm md_clear pconfig flush_l1d arch_capabilities
Virtualization:                       VT-x
L1d cache:                            2.3 MiB (48 instances)
L1i cache:                            1.5 MiB (48 instances)
L2 cache:                             60 MiB (48 instances)
L3 cache:                             72 MiB (2 instances)
NUMA node(s):                         2
NUMA node0 CPU(s):                    0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94
NUMA node1 CPU(s):                    1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,79,81,83,85,87,89,91,93,95
Vulnerability Gather data sampling:   Mitigation; Microcode
Vulnerability Itlb multihit:          Not affected
Vulnerability L1tf:                   Not affected
Vulnerability Mds:                    Not affected
Vulnerability Meltdown:               Not affected
Vulnerability Mmio stale data:        Mitigation; Clear CPU buffers; SMT vulnerable
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed:               Not affected
Vulnerability Spec rstack overflow:   Not affected
Vulnerability Spec store bypass:      Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:             Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:             Mitigation; Enhanced / Automatic IBRS; IBPB conditional; RSB filling; PBRSB-eIBRS SW sequence; BHI SW loop, KVM SW loop
Vulnerability Srbds:                  Not affected
Vulnerability Tsx async abort:        Not affected
Versions of relevant libraries:
[pip3] numpy==2.1.3
[pip3] torch==2.5.1
[pip3] torchaudio==2.5.1
[pip3] torchvision==0.20.1
[pip3] triton==3.1.0
[conda] blas                      2.116                       mkl    conda-forge
[conda] blas-devel                3.9.0            16_linux64_mkl    conda-forge
[conda] cuda-cudart               12.4.127                      0    nvidia
[conda] cuda-cupti                12.4.127                      0    nvidia
[conda] cuda-libraries            12.4.1                        0    nvidia
[conda] cuda-nvrtc                12.4.127                      0    nvidia
[conda] cuda-nvtx                 12.4.127                      0    nvidia
[conda] cuda-opencl               12.6.77                       0    nvidia
[conda] cuda-runtime              12.4.1                        0    nvidia
[conda] libblas                   3.9.0            16_linux64_mkl    conda-forge
[conda] libcblas                  3.9.0            16_linux64_mkl    conda-forge
[conda] libcublas                 <IP_ADDRESS>                      0    nvidia
[conda] libcufft                  <IP_ADDRESS>                      0    nvidia
[conda] libcurand                 <IP_ADDRESS>                     0    nvidia
[conda] libcusolver               <IP_ADDRESS>                      0    nvidia
[conda] libcusparse               <IP_ADDRESS>                    0    nvidia
[conda] liblapack                 3.9.0            16_linux64_mkl    conda-forge
[conda] liblapacke                3.9.0            16_linux64_mkl    conda-forge
[conda] libnvjitlink              12.4.127                      0    nvidia
[conda] mkl                       2022.1.0           h84fe81f_915    conda-forge
[conda] mkl-devel                 2022.1.0           ha770c72_916    conda-forge
[conda] mkl-include               2022.1.0           h84fe81f_915    conda-forge
[conda] numpy                     2.1.3           py312h58c1407_0    conda-forge
[conda] pytorch                   2.5.1           py3.12_cuda12.4_cudnn9.1.0_0    pytorch
[conda] pytorch-cuda              12.4                 hc786d27_7    pytorch
[conda] pytorch-mutex             1.0                        cuda    pytorch
[conda] torchaudio                2.5.1               py312_cu124    pytorch
[conda] torchtriton               3.1.0                     py312    pytorch
[conda] torchvision               0.20.1              py312_cu124    pytorch

For convenience, here's the code showing that the weights for ResNet50_Weights.IMAGENET1K_V2 are correct:
import torch
from torchvision.models import resnet50, ResNet50_Weights
from PIL import Image

resnet = resnet50(weights=ResNet50_Weights.IMAGENET1K_V2)
preprocess = ResNet50_Weights.IMAGENET1K_V2.transforms()

# !wget "https://github.com/pytorch/hub/raw/master/images/dog.jpg"
input_image = Image.open('dog.jpg')

# !wget https://upload.wikimedia.org/wikipedia/commons/b/b6/Felis_catus-cat_on_snow.jpg -O cat.jpg
# input_image = Image.open('cat.jpg')

input_tensor = preprocess(input_image)
input_batch = input_tensor.unsqueeze(0) # create a mini-batch as expected by the model

with torch.no_grad():
    output = resnet(input_batch)

probabilities = torch.nn.functional.softmax(output[0], dim=0)
# !wget https://raw.githubusercontent.com/pytorch/hub/master/imagenet_classes.txt
with open("imagenet_classes.txt", "r") as f:
    categories = [s.strip() for s in f.readlines()]

# Show top categories per image
top5_prob, top5_catid = torch.topk(probabilities, 5)
for i in range(top5_prob.size(0)):
    print(categories[top5_catid[i]], top5_prob[i].item())

Output:
Eskimo dog 0.003977478947490454
Samoyed 0.003522714599967003
Siberian husky 0.0031752213835716248
West Highland white terrier 0.00291797099635005
white wolf 0.0022370663937181234

Thanks for the report @longyuxi .
That gave me a little heart attack, but the problem is that eval() wasn't called in your snippet above. Calling no_grad() is not enough, partially because of the BatchNorm layers.
With resnet.eval() called on the resnet50 v1 weights:
Samoyed 0.8732956051826477
Pomeranian 0.030270902439951897
white wolf 0.019671238958835602
keeshond 0.011073538102209568
Eskimo dog 0.00920429639518261

@NicolasHug Ah, thank you very much!


[flutter_tools] flutter update-packages --force upgrade thinks transitive deps are not transitive

I am trying to bump a particular pub dependency on a branch by pinning all other packages and running flutter update-packages --force-upgrade. However, when doing so, I pin source_span, however, the tool thinks that source_span is NOT transitive, although it is, and upgrades it:
~/git/flutter/packages/flutter_tools$ flutter update-packages --force-upgrade
Upgrading packages...
WARNING: the following packages use hard-coded version constraints:
  - flutter_gallery_assets: 1.0.2
  - flutter_template_images: 4.0.0
  - shelf: 1.1.4
  - video_player: 2.1.1
  - dwds: 11.5.2
Skipping analyzer because it was not transitive
  - analyzer: 3.4.1
  - archive: 3.1.6
  - async: 2.8.2
  - camera: 0.9.4+5
Skipping camera_platform_interface because it was not transitive
  - camera_platform_interface: 2.1.1
Skipping camera_web because it was not transitive
  - camera_web: 0.2.1+1
  - collection: 1.15.0
  - fake_async: 1.2.0
  - google_fonts: 2.1.0
  - http_multi_server: 3.0.1
  - js: 0.6.3
  - material_color_utilities: 0.1.3
  - metrics_center: 1.0.3
  - path: 1.8.0
  - path_provider: 2.0.8
Skipping path_provider_android because it was not transitive
  - path_provider_android: 2.0.9
Skipping path_provider_ios because it was not transitive
  - path_provider_ios: 2.0.7
Skipping path_provider_linux because it was not transitive
  - path_provider_linux: 2.1.4
Skipping path_provider_macos because it was not transitive
  - path_provider_macos: 2.0.4
Skipping path_provider_platform_interface because it was not transitive
  - path_provider_platform_interface: 2.0.1
Skipping path_provider_windows because it was not transitive
  - path_provider_windows: 2.0.4
Skipping plugin_platform_interface because it was not transitive
  - plugin_platform_interface: 2.0.2
  - pub_semver: 2.1.0
Skipping source_span because it was not transitive
  - source_span: 1.8.1
  - test: 1.19.5
  - url_launcher: 6.0.17
  - vector_math: 2.1.1
Skipping video_player_web because it was not transitive
  - video_player_web: 2.0.4
  - vm_snapshot_analysis: 0.7.0
Skipping win32 because it was not transitive
  - win32: 2.3.1
Skipping xdg_directories because it was not transitive
  - xdg_directories: 0.2.0

[✓] Flutter (Channel unknown, 2.10.5-0.0.pre.1, on Debian GNU/Linux rodete 5.15.15-1rodete2-amd64, locale en_US.UTF-8)
    • Flutter version 2.10.5-0.0.pre.1 at /home/fujino/git/flutter
    • Upstream repository unknown
    • Framework revision b3d5be28d9 (51 minutes ago), 2022-04-07 10:14:49 -0700
    • Engine revision 57d3bac3dd
    • Dart version 2.16.2
    • DevTools version 2.9.2

[!] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /home/fujino/Android/Sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/linux#android-setup for more details.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • Debian clang version 13.0.1-3
    • cmake version 3.22.1
    • ninja version 1.8.2
    • pkg-config version 0.29.2

[✓] Android Studio (version 2020.3)
    • Android Studio at /home/fujino/android-studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] VS Code (version 1.66.0)
    • VS Code at /usr/share/code
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • Debian GNU/Linux rodete 5.15.15-1rodete2-amd64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 100.0.4896.75

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

I think the log message is wrong, and this is skipping source_span because it IS transitive, and the tool doesn't support pinning transitive deps.


Feature Request: Hide icon

Would be nice to have a hide icon feature

What do you think about Issue #18 ? Would be the two features go along with each other well?

fixed with 21a57de530eabebf655458a0b8059e59c3451c26


GithubSearchTool in Agent / Task configuration

Has anyone got an example of how to use this tool in an agent / task setup? eg how do I tell the LLM to search a specific repo, using a specific github token?
I see in the tool Readme.md an example, but, the LLM I am using mostly ignores the repo and token.
I'm new to CrewAI and would really appreciate it if someone has a working example of how this could be used.
Thanks

frontend_developer.tools.append(GithubSearchTool(gh_token=GITHUB_API_KEY, content_types=['code', 'repo'], github_repo="sveltejs/svelte"))

I found to make sure you don't have "https://github.com/" in the github_repo parameter, just the ower and repo name part of the link.

sorry we will add this to docs as we are building new ones


add support for arbitrary partition keys in the go api

The Go API currently only support U64 keys. We should add support for arbitrary keys to make it easier for users to write programs.

Now that keys can only be byte slices we no longer need this.


GIF-LIB error: Image EOF detected before image complete.

hey man, can u just updated into lib/webp/linux for libwebp-1.1.0-rc2-linux-x86-64.tar.gz ? just download here http://downloads.webmproject.org/releases/webp/index.html
this current architecture x32 is not working between the two architectures and is causing this title error

#53

#53

@SergioMatheus
Hi, Sergio!
Thank you for your alert.
Can you download this library and check it?
https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.1.0-linux-x86-64.tar.gz

I want to notice that I saw your pull request.
I just want to add binaries myself. But I will approve your pull request.

@SergioMatheus
Hi, Sergio!
Thank you for your alert.
Can you download this library and check it?
https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.1.0-linux-x86-64.tar.gz

I want to notice that I saw your pull request.
I just want to add binaries myself. But I will approve your pull request.

this library is also working, I tested it and so far everything without a problem

this library is also working, I tested it and so far everything without a problem

@SergioMatheus
Thank you very much for your alert and work.
Have a nice day and good work.

@SergioMatheus
Thank you very much for your alert and work.
Have a nice day and good work.


[@lit-labs/router] Use new version of URLPattern polyfill

Fixes issue https://github.com/lit/lit/issues/2697

I broke everything. Needs types to be fixed.

Resolved the updated types. Updated description with why the types were updated.


<EMAIL_ADDRESS>incompatible engine Node 16

Hi,
As of 3.14.x, it's not possible to install @slack/bolt on Node 16 with yarn v1. Perhaps this is intended that @slack/logger 4 has enginge >= 18, but this should be mentioned in the release notes
Commit that broke it:
https://github.com/slackapi/bolt-js/commit/d42c0182b12e5aaa76025428dad3927af005184b
The culprit (logger v4 requires Node 18): https://github.com/slackapi/node-slack-sdk/blob/2649398d61c39349f9c9b6c734d4d7a3a4cfdcc2/packages/logger/package.json#L17
Repro one liner:

Make sure your node version is 16 - node --version
Run this one liner (on UNIX-like systems):
cd $(mktemp -d) && yarn init -y && yarn install<EMAIL_ADDRESS>See error:

rt@rts-MacBook-Pro tmp.aNRLJ1RzM2 % yarn add<EMAIL_ADDRESS>yarn add v1.21.1
info No lockfile found.
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
error<EMAIL_ADDRESS>The engine "node" is incompatible with this module. Expected version ">= 18". Got "16.20.2"
error Found incompatible module.

Hi @sethidden, thanks for taking the time to share this feedback and we're sorry for the lack of information in release notes. It seems that the change was made in v3.14, which was released on September 22, 2023.
I've updated its release notes to cover the Node.js requirement changes: https://github.com/slackapi/bolt-js/releases/tag/%40slack%2Fbolt%403.14.0
Thank you again for the feedback. We'll improve the process not to miss such important notice for future releases.

Another option is to roll back logger to v3. There are no API breaking changes if I understand correctly between those major versions (just major node version requirement changes).
Bolt v4 will also EOL node prior to 18, FYI.


grandpa: bump version to v0.16.1

New version changes log targets from afg to grandpa. Related https://github.com/paritytech/substrate/pull/12875.

bot merge


fix: populate DB is broken after upgrading SQLAlchemy to 2.x version

Summary:
SQLAlchemy 2.x added support for many-to-many relations mapping. This is handy for querying the entities as it reduces the amount of independent queries, joins, and columns within the code. While updating and creating entities, it is also possible to leave most of the heavy work to the ORM. However, this comes with some restrictions on the entity types to be used as part of the relationship arrays. This PR refactored the populate script, fixing the incompatibility with 2.x version and using the create/update capabilities offered by SqlAchemy
Successful execution on DEV
Fixes #402
Expected behavior:
Populate script executes, creates, and updates without issues.
Testing tips:
On clean DB(locally)

Execute:

 ./scripts/docker-localdb-rebuild-data.sh --populate-db

Connect to the local DB and verify that entities are added correctly

Create a new Feed

Clean DB and populate data

 ./scripts/docker-localdb-rebuild-data.sh --populate-db

Open the {your project dir}/data/catalogs.csv file and add a new feed(row). Change the first column, increasing the mdb_source_id by one
Execute populate DB script

./scripts/populate-db.sh {your project dir}/data/catalogs.csv

Verify that the new feed is created

Update existent Feed

Clean DB and populate data

 ./scripts/docker-localdb-rebuild-data.sh --populate-db

Open the {your project dir}/data/catalogs.csv file and edit an existing feed feed(row).
Execute populate DB script

./scripts/populate-db.sh {your project dir}/data/catalogs.csv

Verify that the feed's properties were updated accordingly

Please make sure these boxes are checked before submitting your pull request - thanks!

[x] Run the unit tests with ./scripts/api-tests.sh to make sure you didn't break anything
[x] Add or update any needed documentation to the repo
[x] Format the title like "feat: [new feature short description]". Title must follow the Conventional Commit Specification(https://www.conventionalcommits.org/en/v1.0.0/).
[x] Linked all relevant issues
[ ] Include screenshot(s) showing how this pull request works and fixes the issue(s)

I'm planning to add test coverage in a separate PR as this bug is blocking at leat two other issues,


{Monitor} az monitor: remove deprecated commands and parameters

Related command

Description

Testing Guide

History Notes

[Monitor] BREAKING CHANGE: az monitor alert: deprecate whole command group, please use monitor metrics alert
[Monitor] BREAKING CHANGE: az monitor autoscale-settings: deprecate whole command group, please use az monitor autoscale
[Monitor] BREAKING CHANGE: az monitor activity-log list: deprecate parameter --filters.
[Monitor] BREAKING CHANGE: az monitor activity-log list: deprecate parameter flag --resource-provider, please use --namespace

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR title and description has followed the guideline in Submitting Pull Requests.

[ ] I adhere to the Command Guidelines.

[ ] I adhere to the Error Handling Guidelines.

Monitor


TracingFilter in the Documentation

Hi team,
In the ReadMe file I saw this line
SpanContext serverContext = TracingFilter.serverSpanContext(routingContext);
Could you please tell me where can I get TracingFilter ? I was not able to import it from anywhere even after the dependency was included in the project correctly.
Thanks!

Hi it should be this:
https://github.com/opentracing-contrib/java-vertx-web/blob/master/opentracing-vertx-
web/src/main/java/io/opentracing/contrib/vertx/ext/web/TracingHandler.java#L108
I will update the docs.
Thanks for reporting!

Actually the readme is correct https://github.com/opentracing-contrib/java-vertx-web#configuration


Do best effort to download the experiments and use it in the first session itself

Only for the first session, try downloading the experiments before activating the extension.

If the download completes under 2 seconds, we use the downloaded experiments for the first session.
If the download fails within 2 seconds, log error and use the existing experiments.json to get the experiments.
If the download does not complete within 2 seconds, fallback to what we were doing. That is, use the existing experiments.json to get the experiments.

Log telemetry for each of the 3 options. Activating the extension for the first time will take 2 more seconds as a consequence.
It will benefit us in case we want to change experiments mid-session, and want to make sure that the first session captures the new experiments. For instance,
In case of LS - enabled, for the users new to intellisense, we want to make sure the first experience (which could be the only experience) is Language server. Right now, what could happen is the first session will activate with Jedi, and LS will only be activated from the second session onwards.

cc/ @qubitron @luabud @brettcannon


combobox: add support for custom item objects

Also add shortcut props for selectedItem, defaultSelectedItem and itemToString and fix the propTypes.

Will open issue for standardizing items nomenclature into options for v3


outputcore: remove unused SamplingConfig

Test Plan: go test

Codecov Report

Merging #48 (8b78820) into main (8b7619b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #48   +/-   ##
=======================================
  Coverage   55.24%   55.24%
=======================================
  Files          15       15
  Lines         581      581
=======================================
  Hits          321      321
  Misses        246      246
  Partials       14       14

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


Spawn unknown error

Type: Bug
I can't link salesforce Cli to vs code . I need to authorize my org but there is some issue.
Extension version: 58.14.2
VS Code version: Code 1.82.2 (abd2f3db4bdb28f9e95536dfa84d8479f1eb312d, 2023-09-14T05:55:25.390Z)
OS version: Windows_NT x64 10.0.22621
Modes:

System Info

Item
Value

CPUs
AMD Ryzen 5 7520U with Radeon Graphics          (8 x 2795)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
undefined

Memory (System)
7.25GB (0.84GB free)

Process Argv
--crash-reporter-id 6998b177-9bc6-4490-ac19-2d1c7e374425

Screen Reader
yes

VM
0%

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
vsccc:30803844
2e4cg342:30602488
89544117:30613380
vscrp:30673768
2i9eh265:30646982
showlangstatbar:30737416
0bi6i642:30835152
03d35959:30757346
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxpt:30805730
pythonnoceb:30805159
dsvsc013:30795093
dsvsc014:30804076
diffeditorv2:30821572
dsvsc015cf:30829746

@Prashantsoni25 Can you show me the contents of C:\Program Files\sf\bin? Also could you try running sf instead of sfdx? I ask because sfdx is really just an alias to sf so it's possible that something has gone wrong when the installer creates that alias

@git

Hello @Prashantsoni25 👋 It looks like you didn't include the full Salesforce CLI version information in your issue. Please provide the output of version --verbose --json for the CLI you're using (sf or sfdx).
A few more things to check:

Make sure you've provided detailed steps to reproduce your issue.

A repository that clearly demonstrates the bug is ideal.

Make sure you've installed the latest version of Salesforce CLI. (docs)

Better yet, try the rc or nightly versions. (docs)

Try running the doctor command to diagnose common issues.

Search GitHub for existing related issues.

Thank you!

@mdonnalley

@git
This the  output for sf version --verbose --json :

This error im facing now :

@daphne-sfdc
@git
Its working now I have reset my pc and installed everything again now i can authorize my  org .


Window placement and zones messed up on secondary monitor state change (but not even used for the desktop)

Microsoft PowerToys version
0.79.0
Installation method
PowerToys auto-update
Running as admin
Yes
Area(s) with issue?
FancyZones
Steps to reproduce
Main monitor connected and only one in actual use by the OS.
Secondary monitor (TV with an HDMI ARC AV receiver) connected but not in use with by the OS.
TV out of stand by (thus turning the receiver on), secondary monitor handshakes as usual with the PC.
Same goes if putting TV in standby (thus turning the receiver off), secondary monitor handshaking again.
✔ Expected Behavior
Windows and zones not to be messed up at all, just like prior to 0.79.0
❌ Actual Behavior
Since 0.79.0, On this very event window placement (+ size and zoom levels) and zones then get all messed up despite no actual OS level desktop settings changes.. (nor any changeq in NVCP)
By messed up regarding the zones themselves, I mean moving the windows back to their targeted zones (win+left/right) isn't always effective (maybe depending on the selected layout - didn't test further than that).
PowerToysReport_2024-03-05-16-14-27.zip
Other Software
No response

I have been having this issue since moving to Windows 11 as well.
When my left screen (4k screen that serves 2k resolution) goes on standby or gets disconnected and comes back after, the taskbar in windows no longer functions as expected, in a way that it does not count as reserved space anymore.
This results in the zones spanning the entire screen and going behind the taskbar.

Oh thanks for the tip with the workaround. That's much better than rebooting.
Generally speaking: The going standby of a monitor, enabling another monitor, going from extend to duplicate and the reverse, and other screen/resolution related events aren't exactly smooth in the current state of Windows 11. This kind of thing sounds like something that's perfect for automated tests.