Remove hardcoded year value 2017

@natemcmaster
It would be great to replace the hardcoded copyright year value 2017 - Company.WebApplication1 from RazorPagesWeb-CSharp\Pages_Layout.cshtml with @DateTime.Now.Year.
Though it has no functional implications, it would make the application better moving forward (2018+ ..)
Expected

@DateTime.Now.Year - Company.WebApplication1

I've heard both, and most recently that you don't need it, but also that it should be hard coded to the date of publish, not auto-set to whatever today is. Oh and the templates used to emit it as @DateTime.Now.Year but we removed it. Also, not using DateTime.UtcNow on a server makes me sad, which is another reason not to change this :smile:

Some references...
From https://www.copyrightlaws.com/copyright-notice-year/

For constantly evolving websites and blogs that contain works published over several years, the notice may include a range of years (e.g., 2009–2018), starting from the date of the oldest published elements and ending with the date of the newest published elements.

From https://stackoverflow.com/questions/2390230/do-copyright-dates-need-to-be-updated:

The copyright notice on a work establishes a claim to copyright. The date on the notice establishes how far back the claim is made. This means if you update the date, you are no longer claiming the copyright for the original date and that means if somebody has copied the work in the meantime and they claim its theirs on the ground that their publishing the copy was before your claim, then it will be difficult to establish who is the originator of the work.
Therefore, if the claim is based on common law copyright (not formally registered), then the date should be the date of first publication. If the claim is a registered copyright, then the date should be the date claimed in the registration. In cases where the work was substantially revised you may establish a new copyright claim to the revised work by adding another copyright notice with a newer date or by adding an additional date to the existing notice as in "© 2000, 2010". Again, the added date establishes how far back the claim is made on the revision.

From https://www.nolo.com/legal-encyclopedia/when-do-you-need-copyright-notice-websites-and-where-do-you-place-it.html:

The copyright notice must also state the year the work was published. It has yet to be decided exactly when a website is "published" for copyright purposes, since many websites are updated daily. You should assume that any website that can be accessed has been "published" as soon as it launches, and include a copyright notice on it to reflect the original date.
However, if an update contains a substantial amount of new material, it is considered to be a separate work of authorship in its own right. The notice for such a derivative work should contain the date the new work was published. The notice need not contain the date or dates of the prior version or versions; however, it is common practice to include such dates in the copyright notice. (Some websites will indicate a series of years in the footer, e.g., "© 2017, 2016, 2015").

Certainly the template source itself shouldn't be hard coded: it should be printing into the output project the current year (which is perhaps what the original @ljnotes intended in the first place). I could possibly be convinced it should be changed to emit something like &copy<EMAIL_ADDRESS>- Company.WebApplication1

Certainly the template source itself shouldn't be hard coded: it should be printing into the output project the current year

Not hard to do. cref https://github.com/dotnet/templating/wiki/Available-Parameter-Generators#now

@DamianEdwards

it should be printing into the output project the current year (which is perhaps what the original @ljnotes intended in the first place).

Yes, exactly.

I could possibly be convinced it should be changed to emit something like &copy<EMAIL_ADDRESS>- Company.WebApplication1

If we output 2017-2018, we would be talking about the copyright of the template source right. The generated output can be kept simple by using the current year I presume?

Yeah I meant we could have it output a range (given it seems that's common for web properties) with the starting year being when the project was created (dynamically generated by the template) and the ending year be dynamically generated by the app. But to make it super correct, it'd have to ensure it only prints a range when the diff is actually more than a full year, so I think we can leave that to app devs if they want to go to that much trouble.
Let's just fix the template to dynamically emit the current year (it will be static in the app).

We closed the related PR because we want to use the tech that @natemcmaster showed because we want the year to be burned into the project at the time the template is executed.


Companion to detect if REM is on

Companion to detect if REM is on the hyper deck if not then inform user.
This could be build into the button presets for REM in Red when hitting record.

I'm pretty sure there is a feedback for this already.
But perhaps it should be possible to tell the module to affect the status of the module if it is not enabled. The status of the module could be put into the 'warning' state when remote isn't enabled.
This would need to be opt-out in the config as I can imagine some scenarios where this is expected or intended.

You are right. the feedback is there. It just does not show on the instance.

I don't believe that this should affect the instance status, which is there to convey the status of the module's connection to the end device. In this case the connection is established and has no issues, so the status should show OK.
Whether REM is on or off is a function of the Hyperdeck's state, not the Companion module's state. If that is something you want to know about, there is feedback and a variable for that purpose (and even an action to change it).

But isn't REM not being enabled the same thing as failing authentication? It essentially puts the connection into readonly mode until corrected.
And it would definitely help some users if the status was a warning, rather than relying on them knowing that they need to enable REM. This can be done with an action, or on the hardware, but it still requires the user to be aware that they might need to fix this.
I have forgotten to check whether REM is enabled on some hired hyperdecks before, I only realised once an action didn't work.
So I do think it should by default make the status a warning, with a toggle to opt out.

No, not at all the same thing at all. Even with REM disabled, Companion is still able to make a fully functional connection to the deck. There is nothing at all wrong with the instance connection that would warrant a Warning state.
Having REM disabled on a Hyperdeck is not really any different to having FTB enabled on an ATEM–'nothing else works' until it is disabled–or Mute All on a sound desk. The fact that REM can be turned on or off by Companion means that you don't even need physical access to the deck to change state (and further reinforces the fact that the Companion connection is just fine).
True, a user may be tripped up if they don't know about REM, but that's part of the learning curve for every piece of production hardware out there, and it is not the place of the instance page to convey the device status; it is only for connection status, and should only show a warning if there is a legitimate fault with the module's connection to the device, which in this case there isn't.
There isn't even a suitable status enum value that would apply here. It is certainly none of BadConfig, Connecting, ConnectionFailure, Disconnected, Ok, UnknownError, UnknownWarning


Added Feature/linked list

This pull request introduces three linked list implementations in Python: Singly Linked List, Doubly Linked List, and Circular Linked List. The Singly Linked List supports insertion at the end, deletion of nodes, and display of elements. The Doubly Linked List enhances functionality with bidirectional traversal, allowing for insertion, deletion, and display in both directions. The Circular Linked List forms a loop by connecting the last node back to the first, enabling continuous traversal while supporting similar operations. These implementations provide essential data structure functionalities for efficient dynamic data management.

ISSUE #288

@UTSAVS26 Added the files. Please do check and let me know if any changes to be needed.

@UTSAVS26 can you add hacktoberfest label to this issue.
, just needed one to finish the challenge .

@UTSAVS26 can you add hacktoberfest label to this issue.
, just needed one to finish the challenge .

I am adding the label because this PR is raise under the timeline of Hacktoberfest.


Set indeterminate state manually

Hello @leovo2708 ,
I know with latest update we get indeterminate state of checkbox by default, but what if I want to set it manually from my code? Or is there any function which can refresh my tree manually?
My scenario:
In my project, I'm using two tree-view parallel on change of T1(TreeView1) item I have to update T2(TreeView2) Item manually from my code. I can set checked property of T2 item to true but I dont get reflection in state of parent node chaeckbox. (It also should be set to indeterminate state). Can you please help me out?

Please upload your demo, and I will help you.


[Bug]: Softmax dimensions in microbenchmark script

Issue Type
Others
Modules Involved
Others
Have you reproduced the bug with SPU HEAD?
Yes
Have you searched existing issues?
Yes
SPU Version
most recent (3931bbb)
OS Platform and Distribution
Linux Ubuntu 22.04
Python Version
3.10
Compiler Version
11.4.0
Current Behavior?
Regarding the benchmark script for softmax, could you explain the reasoning/context behind the dimensions of the input matrix x to softmax?
The paper describes softmax as being applied to each row of the input 2D matrix (QK^T + M, which would be a square matrix), but the script has dimensions 128 x 32. Is it modelling the total computation across heads with H = 32?
Standalone code to reproduce the issue
x = np.random.randn(128, 32) * 8.0

Relevant log output
No response

It just simply models the softmax computation on a 128x32 matrix.


Pagination dropdown callbacks

This PR will add callbacks to the pagination dropdowns.
This will fix #1153
Also note that I added the jquery as a plugin for webpack (and import jquery and bootstrap js files inside the bootstrap table). This way we don't need to use the <script> files in the html file and everything is within the package.
Thanks!

@AllenFang can you please explain why? There are many questions/issues opened regarding dropdown doesn't work because the need to include the jquery/bootstrap explicitly. If we add this directly inside the package it will solve all of these issues (and we already have this in the package dependencies).

@AllenFang you said that after v3.0.0 you removed jquery and bootstrap but it's not correct. For the pagination dropdown to work you must have both jquery and bootstrap.
If we remove both of them it's great, but currently we need them for the package to work.

an you please explain why? There are many questions/issues opened regarding dropdown doesn't work because the need to include the jquery/bootstrap explicitly.

I control the dropdown open/close via React state instead of jq and bootstrap.js.

Before `v3.0.0`, many people said dropdown is not work, due to they forgot to include the `jquery` and `bootstrap.js` and **I dont include this both dependency explicitly in this project**.  But now it work well.

Fix this problem, you can have two options

add jquery and bootstrap.js explicitly
controll by react

I just options two, due options one have following cons:

make this lib bigger
it only solve dropdown, not very worth it
the user may load duplicate bootstrap.js or jquery

my question is why you still want to choose option one even if there're some drawback??

it's not correct. For the pagination dropdown to work you must have both jquery and bootstrap.

you mean there still have bug that dropdown broken? I think it's impossible in v3.0.0

I'm also experiencing issues with the dropdown. I have to explicitly reqiure jQuery and Bootstrap.js for it to work properly.

@robbieyng, impossible, in v3.0.0 shouldn't need jquery and bootstrap.js anymore, check your version.

@AllenFang sorry for the late response, it took some time to get back to this pr.
Regarding your comment - this is not correct.
Here is an example of ver3.3.8 without jquery and without bootstrap.js: http://jsfiddle.net/r3poLmmq/
As you can see - the dropdown can only open but you can't close it (only if you click on the dropdown itself, not if you click outside the dropdown).
Here is gif showing the problem:

Here is exactly the same code, but with jquery & bootstrap.js: http://jsfiddle.net/3rj65dt1/
Here is a gif showing what the dropdown close when you click outside of it:

(Note that there is still some problem that you need to double-click on the dropdown to open it, but it's another issue).


Fix find commands in Makefile.

I run make build command in Mac OS. But it is failed with errors below:
find: illegal option -- t
usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
       find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]

I install gnu find and try again. It also doesn't work and the output is:
find -type f paths must precede expression

So I move [path] in front of -type f of find command in Makefile to solve this problem.

cc @mxinden


Failure to create/deploy Heroku App

Simply followed the instructions on the Fastlane Boarding page and clicked https://www.heroku.com/deploy?template=https://github.com/fastlane/boarding
Entered App name, ITC_USER, ITC_PASSWORD and ITC_APP_ID. Then clicked deploy. Keep getting build fail.
Here is what I get. Same deal if I delete and try starting from Heroku instead and pulling fastlane and pushing to heroku master. Thanks for help. Fastlane has been amazing and been saving days of manual work for us!
Here is the build output:
-----> Ruby app detected -----> Compiling Ruby/Rails -----> Using Ruby version: ruby-2.3.4 -----> Installing dependencies using bundler 1.13.7        Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment        Warning: the running version of Bundler (1.13.7) is older than the version that created the lockfile (1.14.6). We suggest you upgrade to the latest version of Bundler by runninggem install bundler.        Fetching gem metadata from https://rubygems.org/........        Fetching version metadata from https://rubygems.org/..        Fetching dependency metadata from https://rubygems.org/.                Make sure that gem install thor -v '0.19.4'succeeds before bundling.        Bundler Output: Warning: the running version of Bundler (1.13.7) is older than the version that created the lockfile (1.14.6). We suggest you upgrade to the latest version of Bundler by runninggem install bundler.        Fetching gem metadata from https://rubygems.org/........        Fetching version metadata from https://rubygems.org/..        Fetching dependency metadata from https://rubygems.org/.                Make sure that gem install thor -v '0.19.4'` succeeds before bundling.
!
!     Failed to install gems via Bundler.
!
!     Push rejected, failed to compile Ruby app.
!     Push failed
`

Tried today again. It worked.


"An unhandled exception occurred while processing the request" when creating an event

Repro steps:

Login as org admin<EMAIL_ADDRESS>Create a new campaign
From the new campaign, create a new Event
Expected result: the new event is displayed
Actual result: An error page appears, with the details mentioned below and in the attached image.

Note: I was able to fix this problem easily by changing Task to VolunteerTask at Details.cshtml:125, but then I reached as similar error when adding a task, which I couldn't find the root cause so easily.
Error details:
An unhandled exception occurred while processing the request.

InvalidOperationException: The partial view '~/Areas/Admin/Views/Task/_List.cshtml' was not found. The following locations were searched:
~/Areas/Admin/Views/Task/_List.cshtml
Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper+<RenderPartialCoreAsync>d__60.MoveNext()

I think renaming TaskController to VolunteerTaskController and update all "asp-area="Admin" asp-controller="Task"" to "asp-area="Admin" asp-controller="VolunteerTask"" should solve it.

I've just been found this bug and was going to log it. Happy to jump in if no one else has claimed it.

@jamesatgreymetis Feel free, it's up for grabs.

@jamesatgreymetis Sorry, I've ended up grabbing this as it was fairly blocking for some other bits I wanted to review / work on today.


Set default selected for Variant with one item in stock

1. Why is this change necessary?
User friendlier in the frontend
2. What does this change do, exactly?
When an Item with Variants only has 1 item in Stock set it to be the default Selected
3. Describe each step to reproduce the issue or behaviour.
n/a
4. Please link to the relevant issues (if any).
n/a
5. Which documentation changes (if any) need to be made because of this PR?
n/a
6. Checklist

[ ] I have written tests and verified that they fail without my change
[x] I have squashed any insignificant commits
[x] This change has comments for package types, values, functions, and non-obvious lines of code
[x] I have read the contribution requirements and fulfil them.

 They differ in the default selection of variants on the detail page of a product.

Hey @terwey,
this PR was closed due to inactivity. If this change is still important to you, feel free to create a new pull request.
For more information about our contribution guidelines, see https://developers.shopware.com/contributing/contribution-guideline/.


Adding duration to the map generated by VideoAttributes.asMap

Adding duration to the map generated by VideoAttributes.asMap.  This is a fix for #300

thanks @evanhalley


File move failures are ignore, prior image at path will be loaded if any

Fixed in https://github.com/timonus/TJImageCache/commit/98a4d7ecd98a525392c4aeda0391bbf11efcf571.


'ISDEV'  is not recognized as an internal or external command

ISDEV=true electron-forge start

'ISDEV'  is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>start: ISDEV=true electron-forge start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR!      C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2022-11-22T05_00_45_766Z-debug.log

Try updating to the v2.0.0-beta2 release if you are running v1.2.0.


Created Pinata and NFTstorage classes

#6
Changes

Created FileStorage Abstract class
Created Pinata and NFTstorage classes implementing FileStorage class
Added tests for Pinata and NFTstorage classes
Added example script for Upload functionality

Please check the comments!


ci: add support for e2e token rotation

Description of changes

Currently we use long-lived, manually generated access tokens to set up AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables allowing our tests to run. This is a bad practice - authorization tokens should be automatically rotated to minimize risk of the tokens landing in the wrong hands.
This PR sets up the Amplify CLI codebase to use temporary credentials during CI. Temporary STS credentials use an additional parameter, AWS_SESSION_TOKEN, to authorize the requests.
The token rotator itself is a lambda that runs every hour:
https://github.com/johnpc/amplify-e2e-token-rotation-lambda
Description of how you validated changes
This has been tested in CI on my fork and all tests pass:
https://app.circleci.com/pipelines/github/johnpc/amplify-cli/144/workflows/fb12f075-d881-4c92-8cf7-f8647afb909e
Checklist

[x] PR description included
[x] yarn test passes
[x] Tests are changed or added

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Looks like injectSessionToken() is called in the chain.run() callback which will actually execute after the CLI run completes. Not sure if this is intentional or not.

This is intentional. What happens is amplify init creates the profile and sets the access key id / secret key, then the session token is injected after. I know for sure it works and is needed because if the contents of injectSessionToken() are commented out most tests fail.

Depending on the timeout on the session token, maybe it makes sense to only call injectSessionToken in the beforeAll function for each test suite? I also worry about authors of future tests that now have to remember to add this function call. If there was a way to get this functionality "automatically" that would be ideal.

I think it makes more sense to only add it to the init methods already existing in amplify-e2e-core so that it does not have to be duplicated by each test. Instead the injection occurs during execution of shared code and is therefore more automatic.


bug: aapt finished with non-zero exit value 2

Type: bug
Ionic Version: 1.x
Platform: android 6.0 webview
When I build the android with command.
What I do wrong?
The log:
root@Andre-notebook:/home/andre/Pessoal/Devlopment/todo# ionic build android
Running command: /home/andre/Pessoal/Devlopment/todo/hooks/after_prepare/010_add_platform_class.js /home/andre/Pessoal/Devlopment/todo
add to body class: platform-android
ANDROID_HOME=/root/Android/Sdk
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386
:preBuild UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles UP-TO-DATE
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugRenderscript UP-TO-DATE
:CordovaLib:generateDebugResValues UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources UP-TO-DATE
:CordovaLib:compileDebugAidl UP-TO-DATE
:CordovaLib:generateDebugBuildConfig UP-TO-DATE
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:CordovaLib:processDebugResources FAILED
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':CordovaLib:processDebugResources'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/root/Android/Sdk/build-tools/24.0.0/aapt'' finished with non-zero exit value 2

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED
Total time: 7.659 secs
Error: Error code 1 for command: /home/andre/Pessoal/Devlopment/todo/platforms/android/gradlew with args: cdvBuildDebug,-b,/home/andre/Pessoal/Devlopment/todo/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true

This issue was moved to driftyco/ionic-cli#1179

Hello, as this was an issue with the ionic-cli i have moved this issue to that repo. Thanks for using Ionic!


If docker.CheckDockerImageVersion fails, send an event to analytics

When you are creating a database, controller validates its version. If it fails to validate, it will push an event.
  1m          1m         1         Postgres operator   Warning    Failed               Fail to be ready Postgres: "postgres-demo". Reason: Image kubedb/postgres:9.6-db not found
  1m          1m         1         Postgres operator   Warning    Invalid              Image kubedb/postgres:9.6-db not found

But at the very beginning, when controller is starting, It checks some Images whose versions are pass in flags. If operator fails to validate, It will not move forward. It gives error with log.Fatalf

But at the very beginning, when controller is starting, It checks some Images whose versions are provided as flags. If operator fails to validate, It will not move forward. It gives error with log.Fatalf because operator will not actually work properly

That sounds good. But we should still collect analytics for these events.

This issue was moved to kubedb/project#72


soroban-rpc: Automate our API docs using something like swagger

What problem does your feature solve?
Manually-maintaining our API docs means they will get out of sync.
What would you like to see?
We should auto-generate them from comments in the code and update them automatically when we do a new release.
Unfortunately swagger only supports rest APIs. The closest equivalent tool I have seen is https://open-rpc.org/, so we could emit that.
Question:
I (@paulbellamy) did a prototype on our docusaurus https://github.com/stellar/soroban-docs repo, which ingested an openrpc file, and generated the docusaurus docs. But we didn't have any example docs to output at that point. As part of this ticket, should we dust that off, and implement it? Or is this just to emit the openrpc file from the soroban-rpc?
What alternatives are there?

Yes it is a REST API, in the sense that everything which uses http is a REST API. But probably might not be a super useful way of thinking about it or generating the docs. Maybe an openapi spec could be GoodEnough and other tooling could pick up the slack.
On the second point I mean to generate the openapi/openrpc/whatever spec from comments in soroban-rpc (or from code would be better) and generate docs from that (step 1) then generate clients as well (step 2, maybe). I think we agree?

@Shaptic wrote:

Regarding "auto-generate them from comments in the code," I actually want to argue that we should generate the code from the spec, instead. Then we can have unified-yet-specific libraries automatically built for any language from the spec.

@paulbellamy responded:

then generate clients as well (step 2, maybe)

Yes, Step2 suggestion may lead to separate scope we could carve out as a new ticket related to api docs but dependent on this one to identify the api docs format to use. A new capability 'contract first' - we identify a solution for codegen tooling that can build client/server side stubs from an api doc file(format tbd from Step 1)?
Wanted to mention for consideration on api docs generation for Step 1, if feasible to derive 'examples' sections of generated api docs content from unit test executions, that way can insert request/response snippets captured from tests in there, so, the content never goes stale vs. the current code. test2doc is one tool demonstrating this pattern, not sure on what else is available, don't want to build that from scratch. Thought would be to concat the markdown output from the tests into api doc example sections, etc.

generate the openapi/openrpc/whatever spec from comments in soroban-rpc (or from code would be better)

So, @paulbellamy, I'm saying I disagree: imo the code itself w/in Soroban RPC should come from the spec. As a specific example, this portion of get_events.go could come from a generator. In other words, the OpenAPI spec becomes the one and only source of truth.

if feasible to derive 'examples' sections of generated api docs content from unit test executions

@sreuland that's a great idea, and it's something we already do for the Go SDK (cc @ire-and-curses who pointed it out to me way back): starting from here in the godoc, there are executable snippets that act as both tests and example documentation (these live in examples_test.go). It sounds like you'd want to take it a step further and generate the examples themselves, too, which is a great idea.


[PP-1158] Remove deferredtasks.

Description
The deferredtasks table is no longer being used: therefore, let it be removed.
DO NOT MERGE UNTIL https://github.com/ThePalaceProject/circulation/pull/1794 has been added to a release.
The tests won't pass on this PR until the above PR is merged and this PR is rebased on it.
Motivation and Context
https://ebce-lyrasis.atlassian.net/browse/PP-1158

How Has This Been Tested?

Checklist

[x] I have updated the documentation accordingly.
[x] All new and existing tests passed.

@dbernstein I marked this one as a draft until its ready to go in


Add cluster-autoscaler.kubernetes.io/safe-to-evict

Pull Request Motivation
This should make cert-manager installs on GKE friendlier to node autoscaling.
fixes #5267
Kind
bug
Release Note
acme-challenge-solver-http01 will get a default annotation of `"cluster-autoscaler.kubernetes.io/safe-to-evict": "true"`. You can provide an annotation of `"cluster-autoscaler.kubernetes.io/safe-to-evict": "false"` in your `podTemplate` if you don't like this.

I think @munnerz mentioned that using the pod template option, we should be able to disable the flag again. Could you add tests for that usecase?

/kind feature


Failed to do setup

Describe the bug
Connection lost
To Reproduce
No response
Expected behavior
No response
Diagnostic report (REQUIRED)
OrbStack info:
Version: 1.6.1
Commit: bfaddc6839de8b00b7aff767dbd673ac6ad4259e (v1.6.1)
System info:
macOS: 12.7.4 (21H1123)
CPU: amd64, 4 cores
CPU model: Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
Model: MacBookPro12,1
Memory: 16 GiB
Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2024-06-02T06-21-43.326551Z.zip

Screenshots and additional context (optional)
No response

Duplicate of #1229


Changing the option source from input -> static values does not bring back the "default value" option in forms

Describe the bug
While we create forms and make use of a field that has option source say Radio and change the option source  from input value->static we could see that the default one "value" that comes by choosing static option is not displayed and we need to manually add the static value by clicking on the "+" button in the static option field
Steps to reproduce

create a form with radio button
We could see a default "value" under the radio button
in the properties panel goto options source and change it from "static" -> "Input data"
we could see that the deafult value is not available since the option source is changed to input data
Changing back the source from input data->static does not bring the default vale back to the Radio button field.

https://user-images.githubusercontent.com/85225325/199750570-a95844ea-8cd6-4174-80bf-523e07ce87e7.mp4
Expected behavior
changing back to static option source must bring back the default value for the field
Environment

OS: [ Windows 10]
Camunda Modeler Version: [5.0.0]
Execution Platform: [e.g. Camunda Platform, Camunda Cloud]

Additional context
No response

Uploading d438bf4583567c3044c3efd89fc0ca41.mp4…

@GeethaParthasarathy it seems like the screencast didn't finish uploading in time. 😄

https://user-images.githubusercontent.com/85225325/199750570-a95844ea-8cd6-4174-80bf-523e07ce87e7.mp4
@philippfromme my bad I did not notice that . Hopefully it works now

I can reproduce it. Thanks for the report.

Fixed upstream via https://github.com/bpmn-io/form-js/pull/514

Closed via https://github.com/camunda/camunda-modeler/commit/41d2d9bed5c426d2a07dba4064ea668682160d18


Question: chaining tagged_with with a OR scope query

My model has 2 columns which are category which is a normal string and then tags through this gem.
I want to run a search where the user can input a category and a tag and have posts with that category OR tag show up; is there a way to do this? Or should I just merge the ActiveRecord objects?

I needed to do pretty much the same and ultimately a thread on Stack Overflow pointed me to active_record_union, which worked for me.


UMLS nodes not resolving to human-readable names

The TRAPI query below (for diseases related to benzene) currently returns 222 nodes in the response.  Of these, there are 20 nodes for which the MeSH IDs do not resolve to human-readable names in the name field, 66 nodes for which the UMLS IDs do not resolve to human-readable names.  Desired behavior would be that human-readable names would be shown in the name field.  Examples below.  I suspect the solution has to do with loading more MeSH xrefs to mydisease.info.
This issue tracks the resolution of the the UMLS issue.  The MeSH issue is tracked at: https://github.com/biothings/BioThings_Explorer_TRAPI/issues/246
Query:
{
    "message": {
        "query_graph": {
            "nodes": {
                "n0": {
                    "ids": [
                        "PUBCHEM.COMPOUND:241"
                    ],
                    "categories": [
                        "biolink:SmallMolecule"
                    ]
                },
                "n1": {
                    "categories": [
                        "biolink:Disease"
                    ]
                }
            },
            "edges": {
                "e0": {
                    "subject": "n0",
                    "object": "n1",
                    "predicates": [
                        "biolink:related_to"
                    ]
                }
            }
        }
    }
}

Desired behavior:
                "MONDO:0018881": {
                    "categories": [
                        "biolink:Disease"
                    ],
                    "name": "myelodysplastic syndrome",
                    "attributes": [

UMLS not resolving
                "UMLS:C0016658": {
                    "categories": [
                        "biolink:Disease"
                    ],
                    "name": "UMLS:C0016658",

MeSH not resolving
                "MESH:D009336": {
                    "categories": [
                        "biolink:Disease"
                    ],
                    "name": "MESH:D009336",
                    "attributes": [

BTE should be able to handle this (or would push the issue to SRI node normalization team..) after migrating to use Eric's SRI-based ID resolver.
Example with the IDs in the opening comment: https://nodenormalization-sri-dev.renci.org/1.1/get_normalized_nodes?curie=UMLS%3AC0016658
https://nodenormalization-sri-dev.renci.org/1.1/get_normalized_nodes?curie=MESH%3AD009336

Note: I no longer find the example UMLS ID (C0016658) in the TRAPI response.
However, with the new SRI-based ID resolver, this query no longer returns nodes with "name": "MESH..." or "name": "UMLS..." based on my quick search of the response.
However, the SRI-based ID resolver will have issues with finding equivalent IDs or names for some IDs.


[HxInputDate] The CalendarIcon overlaps with validation icon

cc @crdo @Harvey1214

Should be fixed. Tested with all input sizes.


Mainly solving latest installation problem

By changing the name of the module to current convention. Other changes are mostly cosmetic. Closes #36 when accepted.

Closing since now obsolete and associated issue is also closed


Translate To ID

_posts.zip

Thanks for the effort. However, we have decided not to officially support more translations. You're welcome to create and maintain your own fork of the documentation, of course :)


When will be v4 be released?

I saw that v. 3.2.0 is newer than v. <IP_ADDRESS>-beta. Will v4 get out of beta some day? When? Or is Xamarin.Essential the only thing we should ever use? Is the feature set the same?

i recommend just using Xamarin.Essentials as it has basically all of the features and officially supported. I need to setup Ci and such again, been a while since I looked at things.


Convertion from bz1 to tsm doesn't work as described

When following instruction from https://github.com/influxdata/influxdb/blob/master/cmd/influx_tsm/README.md to convert database from <IP_ADDRESS> to 0.10.0-beta2 / bz1 to tsm, the new server still use bz1 storage for .bak file.
If the .bak file are removed it works, but by default .bak file are used.
Step to reproduce:
Grab both influxdb <IP_ADDRESS> & 0.10.0-beta2:
$ wget https://s3.amazonaws.com/influxdb/influxdb_<IP_ADDRESS>_x86_64.tar.gz
$ wget https://influxdb.s3.amazonaws.com/influxdb-v0.10.0-beta2_linux_amd64.tar.gz
$ tar xvfz influxdb_<IP_ADDRESS>_x86_64.tar.gz
$ tar xvfz influxdb-v0.10.0-beta2_linux_amd64.tar.gz

Start <IP_ADDRESS> with default on empty database:
$ rm -fr ~/.influxdb/*
$ ./influxdb_<IP_ADDRESS>_x86_64/usr/bin/influxd
2016/01/28 09:42:15 InfluxDB starting, version <IP_ADDRESS>, branch 0.9.6, commit 6d3a8603cfdaf1a141779ed88b093dcc5c528e5e, built 2015-12-10T23:40:23+0000
2016/01/28 09:42:15 Go version go1.4.2, GOMAXPROCS set to 4
2016/01/28 09:42:15 no configuration provided, using default settings

Using CLI, create a database and insert data:
$ ./influxdb_<IP_ADDRESS>_x86_64/usr/bin/influx
Connected to http://localhost:8086 version <IP_ADDRESS>
InfluxDB shell <IP_ADDRESS>
> create database test
> use test
Using database test
> insert metric value=42
> exit

As said in https://github.com/influxdata/influxdb/blob/master/cmd/influx_tsm/README.md :

Stop influxdb
Restart influxdb 0.9
Wait until it respond to query
Stop server and run

$ ./usr/bin/influx_tsm -parallel ~/.influxdb/data/
b1 and bz1 shard conversion.                                                                                [1/9025]
-----------------------------------
Data directory is:        /root/.influxdb/data/
Databases specified:      all
Database backups enabled: yes
Parallel mode enabled:    yes

2 shard(s) detected, 2 non-TSM shards detected.

Database        Retention       Path                                            Engine  Size
_internal       monitor         /root/.influxdb/data/_internal/monitor/1        bz1     131072
test            default         /root/.influxdb/data/test/default/2             bz1     32768

These shards will be converted. Proceed? y/N: y
Conversion starting....
Backing up 2 databases...
Database _internal backed up (341.687µs)
Database test backed up (136.496µs)
Conversion of /root/.influxdb/data/_internal/monitor/1 successful (4.079804ms)
Conversion of /root/.influxdb/data/test/default/2 successful (521.546µs)

Summary statistics
========================================
Databases converted:                 2
Shards converted:                    2
TSM files created:                   2
Points read:                         694
Points written:                      694
NaN filtered:                        0
Inf filtered:                        0
Points without fields filtered:      0
Disk usage pre-conversion (bytes):   163840
Disk usage post-conversion (bytes):  12506
Reduction factor:                    99%
Bytes per TSM point:                 18.02
Total conversion time:               5.209903ms

Start new verion of server

$ ./usr/bin/influxd

2016/01/28 09:43:44 InfluxDB starting, version v0.10.0-beta2, branch 0.10.0, commit 58e0eed9cb166e0b004e6b41a4d64c39d24b40f4, built 2016-01-23T02:41:00.429242
2016/01/28 09:43:44 Go version go1.4.3, GOMAXPROCS set to 4
2016/01/28 09:43:44 no configuration provided, using default settings
[meta] 2016/01/28 09:43:44 Starting meta service
[meta] 2016/01/28 09:43:44 Listening on HTTP: <IP_ADDRESS>:8091
[metastore] 2016/01/28 09:43:44 Using data dir: /root/.influxdb/meta
[metastore] 2016/01/28 09:43:44 Node at localhost:8088 [Follower]
[metastore] 2016/01/28 09:43:46 Node at localhost:8088 [Leader]. peers=[localhost:8088]
[meta] 2016/01/28 09:43:46 <IP_ADDRESS> - - [28/Jan/2016:09:43:46 +0000] GET /?index=0 HTTP/1.1 200 209 - Go 1.1 package http a08b1129-c5a3-11e5-8001-000000000000 992.248µs
[meta] 2016/01/28 09:43:46 <IP_ADDRESS> - - [28/Jan/2016:09:43:46 +0000] POST /execute HTTP/1.1 200 28 - Go 1.1 package http a08b4f4e-c5a3-11e5-8003-000000000000 3.41668ms
[meta] 2016/01/28 09:43:46 <IP_ADDRESS> - - [28/Jan/2016:09:43:46 +0000] GET /?index=18 HTTP/1.1 200 217 - Go 1.1 package http a08b4337-c5a3-11e5-8002-000000000000 4.939432ms
[store] 2016/01/28 09:43:46 Using data dir: /root/.influxdb/data
[tsm1wal] 2016/01/28 09:43:46 tsm1 WAL starting with 10485760 segment size
[tsm1wal] 2016/01/28 09:43:46 tsm1 WAL writing to /root/.influxdb/wal/_internal/monitor/1
[filestore]2016/01/28 09:43:46 /root/.influxdb/data/_internal/monitor/1/000000001-000000001.tsm (#0) opened in 73.712µs
[wal] 2016/01/28 09:43:46 WAL starting with 30720 ready series size, 0.50 compaction threshold, and 52428800 partition size threshold
[wal] 2016/01/28 09:43:46 WAL writing to /root/.influxdb/wal/_internal.bak/monitor/1
[tsm1wal] 2016/01/28 09:43:46 tsm1 WAL starting with 10485760 segment size
[tsm1wal] 2016/01/28 09:43:46 tsm1 WAL writing to /root/.influxdb/wal/test/default/2
[filestore]2016/01/28 09:43:46 /root/.influxdb/data/test/default/2/000000001-000000001.tsm (#0) opened in 44.93µs
[wal] 2016/01/28 09:43:46 WAL starting with 30720 ready series size, 0.50 compaction threshold, and 52428800 partition size threshold
[wal] 2016/01/28 09:43:46 WAL writing to /root/.influxdb/wal/test.bak/default/2
[handoff] 2016/01/28 09:43:46 Starting hinted handoff service

Check for data & insert one new value:
$ ./usr/bin/influx
Connected to http://localhost:8086 version v0.10.0-beta2
InfluxDB shell v0.10.0-beta2
> use test
Using database test
> select * from metric;
name: metric
------------
time                    value
1453974167488955239     42
> insert metric value=43

Backup is not possible:
$ ./usr/bin/influxd backup -database test /tmp/backup1
2016/01/28 09:45:10 backing up db=test since 0001-01-01 00:00:00 +0000 UTC
2016/01/28 09:45:10 backing up metastore to /tmp/backup1/meta.00
2016/01/28 09:45:10 backing up db=test rp=default shard=2 to /tmp/backup1/test.default.00002.00 since 0001-01-01 00:00:00 +0000 UTC
2016/01/28 09:45:10 backup complete
$ ls -l /tmp/backup1
total 4
-rw-r--r-- 1 root root 289 Jan 28 09:45 meta.00
-rw-r--r-- 1 root root   0 Jan 28 09:45 test.default.00002.00

On server console:
[snapshot] 2016/01/28 09:45:10 backup not implemented on bz1 engine

See that it still use .bak file (.bak file are openned, .bak are modified after convertion/new server start):
$ lsof -p `pgrep influxd`|grep ~/.influxdb/
influxd 457 root  mem-W  REG     252,2<PHONE_NUMBER>86 /root/.influxdb/data/_internal.bak/monitor/1
influxd 457 root  mem-W  REG     252,2    65536 461887 /root/.influxdb/data/test.bak/default/2
influxd 457 root  mem-W  REG     252,2    65536 461643 /root/.influxdb/meta/raft.db
influxd 457 root  mem    REG     252,2       95 461891 /root/.influxdb/data/test/default/2/000000001-000000001.tsm
influxd 457 root  mem    REG     252,2     7396 461888 /root/.influxdb/data/_internal/monitor/1/000000001-000000001.tsm
influxd 457 root    6uW  REG     252,2    65536 461643 /root/.influxdb/meta/raft.db
influxd 457 root   11r   REG     252,2     7396 461888 /root/.influxdb/data/_internal/monitor/1/000000001-000000001.tsm
influxd 457 root   12uW  REG     252,2<PHONE_NUMBER>86 /root/.influxdb/data/_internal.bak/monitor/1
influxd 457 root   13u   REG     252,2     1898 461884 /root/.influxdb/wal/_internal.bak/monitor/1/000000.meta
influxd 457 root   14r   REG     252,2       95 461891 /root/.influxdb/data/test/default/2/000000001-000000001.tsm
influxd 457 root   15uW  REG     252,2    65536 461887 /root/.influxdb/data/test.bak/default/2
influxd 457 root   16u   REG     252,2       72 461893 /root/.influxdb/wal/test.bak/default/2/000000.meta

$ ls -l /root/.influxdb/data/test.bak/default/2 /root/.influxdb/data/test/default/2/000000001-000000001.tsm
-rw-r--r-- 1 root root 65536 Jan 28 09:44 /root/.influxdb/data/test.bak/default/2
-rw-r--r-- 1 root root    95 Jan 28 09:43 /root/.influxdb/data/test/default/2/000000001-000000001.tsm

Stop server. remove .bak file and restart it:

$ kill `pgrep influxd`
$ rm -fr ~/.influxdb/data/*.bak
$ ./usr/bin/influxd

New inserted value is lost:

$ ./usr/bin/influx
Connected to http://localhost:8086 version v0.10.0-beta2
InfluxDB shell v0.10.0-beta2
> use test
Using database test
> select * from metric
name: metric
------------
time                    value
1453974167488955239     42

Backup now works:
$ ./usr/bin/influxd backup -database test /tmp/backup2
2016/01/28 09:48:33 backing up db=test since 0001-01-01 00:00:00 +0000 UTC
2016/01/28 09:48:33 backing up metastore to /tmp/backup2/meta.00
2016/01/28 09:48:33 backing up db=test rp=default shard=2 to /tmp/backup2/test.default.00002.00 since 0001-01-01 00:00:00 +0000 UTC
2016/01/28 09:48:33 backup complete

$ ls -l /tmp/backup2
total 8
-rw-r--r-- 1 root root  289 Jan 28 09:48 meta.00
-rw-r--r-- 1 root root 2048 Jan 28 09:48 test.default.00002.00

@PierreF Thank you for reporting this with the amount of detail that you did. We've updated the conversion tool to backup the databases to a separate directory.
The problem was the backed-up directories were not being ignored because foo.bak could be a valid name for a database. The shard data then reported itself as belonging to the original database name. That's  why your new points were getting written to the "backup" directory.
The tool will no longer allow databases to be backed up underneath the data directory, and the instructions/examples have been updated accordingly.


Volume encryption

What
Encrypt volumes provisioned by topolvm
How
eg. LUKS
Generate per-PVC encryption keys, stored as Kubernetes secrets.
The threat this would mitigate is physical theft of server (as keys are only kept in memory)

It looks nice. However, my teams uses encrypted disks as topolvm's backend devices and no  strong motivation to support this feature for now.
If you send PR to support volume encryption feature, we'd like to review it!

It looks nice. However, my teams uses encrypted disks as topolvm's backend devices and no  strong motivation to support this feature for now.
If you send PR to support volume encryption feature, we'd like to review it!

Can you please add a short example on how to achieve the above? Also many thanks for writing Topolovm ! 🙏


Add iPhone X Frame

Please add a iPhone X frame.

@kennethweber I just added it in version 0.6. It has been on my list, but I had reservations regarding the notch and if I should deal with it or not.
The issue is, if someone enables the background color of an artboard framed with this device, the notch and rounded corners will be lost. So to use this device properly, the background color needs to be off, or if enabled, you would need to place your own notch and corners within each artboard with this frame. I am exploring a way to do that last bit programmatically for the iPhone X and other devices, because notches and rounded corners are not going away.
Thanks for using Artboard Framer!

@sonburn Thank you very much for the update. I have an idea for the problem: Is there a way to insert and lock the frames at the very top? So you could use a PNG with rounded corners and notch like this one:

I second this ^ . The iphone x frame has to have a transparent screen or else it won't work with artboards.


[BUG]:

What version of drizzle-orm are you using?
0.29.3
What version of drizzle-kit are you using?
n/a
Describe the Bug
Conditional helper functions such as isNull, isNotNull, exists, notExists cannot be used within a query select, without returning an unknown type.
const results = await db
    .select({
      id: table.id,
      has_title_orm: isNotNull(table.name),
      has_title_sql: sql<boolean>`${table.name} IS NOT NULL`,
    })
    .from(table);

  results[0].has_title_orm; // unknown type
  results[0].has_title_sql; // boolean type

Expected behavior
The sql wrapper used should be able to be typed for these boolean returns. I can imagine that there's a circumstance where you might not want to, given the fact these query helpers can be used in other places?
Environment & setup
Example Stackblitz: https://stackblitz.com/edit/typescript-5bbctn?file=index.ts

Thanks a lot! I'll mark it as improvement and we will implement this

Any update on this one?

+1


[Sprint 51]Xd 3151b

Reorganized and corrected Modules material re. build and version management. Incorporated Available Modules as a section.

Awesome.
Merged as f1764196929967a249ac1fa13f024ffff17425e4


Add some examples for rust.

As a developer, it's really helpful to run specified example. Maybe it's also a good startup for newbie.

I'd suggest starting with add doc testing examples in rust first, to show usage example from https://docs.rs directly. Similarly we're doing this in https://github.com/apache/hudi-rs/issues/82


fix(windows): fix flow path

What: windowsのflowのbinのパスを修正

Why: windows対応のため

How: platformの判別をやめた

Checklist:

[ ] Documentation
[x] Tests
[x] Ready to be merged
[x] Added myself to contributors table

Coverage remained the same at 100.0% when pulling 33360aa0e54f64ca79af780d85dfce78ababa2df on flow-bin into 0fe1cba4ee90924ce15144861497eae30b7a2729 on master.


Crash when launching traffic sandbox

When I launch ./play_abstreet.sh and click Traffic simulation sandbox, my game closes. I was able to replicate this twice but on the third time it worked. Here is a log from the second time it crashed.

My specs
OS: Fedora Linux 39 (Workstation Edition) x86_64
Kernel: 6.6.7-200.fc39.x86_64
Uptime: 25 mins
Packages: 3364 (rpm), 176 (flatpak)
Shell: bash 5.2.21
Resolution: 1920x1080
DE: GNOME 45.2
WM: Mutter
WM Theme: Dracula
Theme: Adwaita-dark [GTK2/3]
Icons: Adwaita [GTK2/3]
Terminal: gnome-terminal
CPU: AMD Ryzen 5 1600X (12) @ 3.600GHz
GPU: AMD ATI Radeon RX 470/480/570/570X/580/580X/590
Memory: 7678MiB / 15917MiB

 Log
[2024-01-17T14:09:49Z WARN  map_gui::options] Couldn't restore settings, so using defaults. data/player/settings.json
setup widgetry...
[2024-01-17T14:09:49Z WARN  widgetry::runner] Monitor scale factor is 1, screen window is 800, but the application requires 1500. Overriding the scale factor to 1.
setup app...
load default texture...
[2024-01-17T14:09:49Z INFO  widgetry::backend_glow] img_size: 896x896px (802816 px), sprite_size: 64x64px, sprites: 14x14 (196 sprites)
load default texture took 0.0156s
create blank sim...
create blank sim took 0.0012s
[2024-01-17T14:09:49Z INFO  abstutil::time] - create blank sim took 0.0012s
[2024-01-17T14:09:49Z INFO  map_gui::render::map] static DrawMap consumes 0 MB on the GPU
setup app... plus 0.0017s
setup app took 0.0173s
setup widgetry... plus 0.1026s
setup widgetry took 0.1199s
[2024-01-17T14:09:49Z INFO  abstutil::time] - setup widgetry took 0.1199s
[2024-01-17T14:09:49Z INFO  abstutil::time]   - setup app took 0.0173s
[2024-01-17T14:09:49Z INFO  abstutil::time]     - load default texture took 0.0156s
[2024-01-17T14:09:49Z INFO  abstutil::time]     - ... plus 0.0017s
[2024-01-17T14:09:49Z INFO  abstutil::time]   - ... plus 0.1026s
load data/system/zz/oneshot/maps/Bury_St_Edmunds.bin...

Reading data/system/zz/oneshot/maps/Bury_St_Edmunds.bin: 0/17 MB... 0.0000s
Reading data/system/zz/oneshot/maps/Bury_St_Edmunds.bin: 13/17 MB... 0.2000s
Read data/system/zz/oneshot/maps/Bury_St_Edmunds.bin (17)... 0.2625s
[2024-01-17T14:09:50Z WARN  map_model::objects::movement] Weird movement geometry at Intersection #145: PL with total length 0.8655m and 6 pts has dupe non-adjacent pts

generate movements (5,788)... 0.0137s
create blank sim...

setup offstreet parking (5,987)... 0.0010s
create blank sim... plus 0.0248s
create blank sim took 0.0258s
[2024-01-17T14:09:50Z INFO  abstutil::time] - create blank sim took 0.0258s
[2024-01-17T14:09:50Z INFO  abstutil::time]   - setup offstreet parking (5,987)... 0.0010s
[2024-01-17T14:09:50Z INFO  abstutil::time]   - ... plus 0.0248s
draw_map...

make DrawRoads (7,515)... 0.0573s

make DrawIntersections (5,788)... 0.0017s
generate unzoomed roads and intersections...
generate unzoomed roads and intersections took 0.2454s

make DrawBuildings (5,987)... 0.0378s
upload all buildings...
upload all buildings took 0.0040s
make DrawParkingLot...
make DrawParkingLot took 0.0060s

make DrawAreas (679)... 0.0024s
upload all areas...
upload all areas took 0.0003s
create quadtree...
create quadtree took 0.0229s
[2024-01-17T14:09:50Z INFO  map_gui::render::map] static DrawMap consumes 0 MB on the GPU
draw_map... plus 0.0241s
draw_map took 0.4019s
load data/system/zz/oneshot/maps/Bury_St_Edmunds.bin... plus 0.0593s
load data/system/zz/oneshot/maps/Bury_St_Edmunds.bin took 0.7374s
[2024-01-17T14:09:50Z INFO  abstutil::time] - load data/system/zz/oneshot/maps/Bury_St_Edmunds.bin took 0.7374s
[2024-01-17T14:09:50Z INFO  abstutil::time]   - Read data/system/zz/oneshot/maps/Bury_St_Edmunds.bin (17)... 0.2625s
[2024-01-17T14:09:50Z INFO  abstutil::time]   - generate movements (5,788)... 0.0137s
[2024-01-17T14:09:50Z INFO  abstutil::time]   - draw_map took 0.4019s
[2024-01-17T14:09:50Z INFO  abstutil::time]     - make DrawRoads (7,515)... 0.0573s
[2024-01-17T14:09:50Z INFO  abstutil::time]     - make DrawIntersections (5,788)... 0.0017s
[2024-01-17T14:09:50Z INFO  abstutil::time]     - generate unzoomed roads and intersections took 0.2454s
[2024-01-17T14:09:50Z INFO  abstutil::time]     - make DrawBuildings (5,987)... 0.0378s
[2024-01-17T14:09:50Z INFO  abstutil::time]     - upload all buildings took 0.0040s
[2024-01-17T14:09:50Z INFO  abstutil::time]     - make DrawParkingLot took 0.0060s
[2024-01-17T14:09:50Z INFO  abstutil::time]     - make DrawAreas (679)... 0.0024s
[2024-01-17T14:09:50Z INFO  abstutil::time]     - upload all areas took 0.0003s
[2024-01-17T14:09:50Z INFO  abstutil::time]     - create quadtree took 0.0229s
[2024-01-17T14:09:50Z INFO  abstutil::time]     - ... plus 0.0241s
[2024-01-17T14:09:50Z INFO  abstutil::time]   - ... plus 0.0593s
Unknown winit key LWin
create blank sim...

setup offstreet parking (5,987)... 0.0012s
create blank sim... plus 0.0249s
create blank sim took 0.0261s
[2024-01-17T14:09:54Z INFO  abstutil::time] - create blank sim took 0.0261s
[2024-01-17T14:09:54Z INFO  abstutil::time]   - setup offstreet parking (5,987)... 0.0012s
[2024-01-17T14:09:54Z INFO  abstutil::time]   - ... plus 0.0249s
load scenario...
create people...

create people: making PersonSpec from endpoints (29,246)... 0.0402s
create people... plus 0.0066s
create people took 0.0468s
[2024-01-17T14:09:54Z INFO  synthpop::make::activity_model] TRIPS - total: 29,246, local: 4,227, commuting_in: 3,003, commuting_out: 12,852, passthru: 9,164, errored: 205, leftover_resident_capacity: 63, leftover_worker_capacity: 0
load scenario... plus 0.0005s
load scenario took 0.0473s
[2024-01-17T14:09:54Z INFO  abstutil::time] - load scenario took 0.0473s
[2024-01-17T14:09:54Z INFO  abstutil::time]   - create people took 0.0468s
[2024-01-17T14:09:54Z INFO  abstutil::time]     - create people: making PersonSpec from endpoints (29,246)... 0.0402s
[2024-01-17T14:09:54Z INFO  abstutil::time]     - ... plus 0.0066s
[2024-01-17T14:09:54Z INFO  abstutil::time]   - ... plus 0.0005s
instantiate scenario...
Instantiating random people going to and from work...

trips for People (29,041)... 0.0198s

seed parked cars: 1,904/14,804... 0.2001s
seed parked cars: 2,600/14,804... 0.4007s
seed parked cars: 3,197/14,804... 0.6012s
seed parked cars: 3,549/14,804... 0.8013s
seed parked cars: 3,887/14,804... 1.0018s
seed parked cars: 4,179/14,804... 1.2021s
seed parked cars: 4,360/14,804... 1.4030s
seed parked cars: 4,561/14,804... 1.6056s
seed parked cars: 4,706/14,804... 1.8068s
seed parked cars: 4,816/14,804... 2.0073s
seed parked cars: 4,903/14,804... 2.2083s
seed parked cars: 4,998/14,804... 2.4095s
seed parked cars: 5,079/14,804... 2.6112s
seed parked cars: 5,169/14,804... 2.8117s
seed parked cars: 5,255/14,804... 3.0148s
seed parked cars: 5,344/14,804... 3.2150s
seed parked cars: 5,430/14,804... 3.4165s
seed parked cars: 5,521/14,804... 3.6180s[2024-01-17T14:09:58Z WARN  sim::sim::scenario] Not enough room to seed parked cars. Only found spots for 5,525 of 14,804

seed parked cars (14,804)... 3.6490s

spawn trips (58,082)... 0.1104s
Instantiating random people going to and from work... plus 0.0034s
Instantiating random people going to and from work took 3.7826s
instantiate scenario... plus 0.0038s
instantiate scenario took 3.7864s
[2024-01-17T14:09:58Z INFO  abstutil::time] - instantiate scenario took 3.7864s
[2024-01-17T14:09:58Z INFO  abstutil::time]   - Instantiating random people going to and from work took 3.7826s
[2024-01-17T14:09:58Z INFO  abstutil::time]     - trips for People (29,041)... 0.0198s
[2024-01-17T14:09:58Z INFO  abstutil::time]     - seed parked cars (14,804)... 3.6490s
[2024-01-17T14:09:58Z INFO  abstutil::time]     - spawn trips (58,082)... 0.1104s
[2024-01-17T14:09:58Z INFO  abstutil::time]     - ... plus 0.0034s
[2024-01-17T14:09:58Z INFO  abstutil::time]   - ... plus 0.0038s
load data/system/zz/oneshot/prebaked_results/Bury_St_Edmunds/random people going to and from work.bin...
load data/system/zz/oneshot/prebaked_results/Bury_St_Edmunds/random people going to and from work.bin took 0.0000s
[2024-01-17T14:09:58Z INFO  abstutil::time] - load data/system/zz/oneshot/prebaked_results/Bury_St_Edmunds/random people going to and from work.bin took 0.0000s
[2024-01-17T14:09:58Z WARN  game::sandbox] No prebaked simulation results for "random people going to and from work" scenario on Bury_St_Edmunds (in oneshot (zz)) map. This means trip dashboards can't compare current times to any kind of baseline: data/system/zz/oneshot/prebaked_results/Bury_St_Edmunds/random people going to and from work.bin
rerendering map colors...

make DrawRoads (7,515)... 0.0518s

make DrawIntersections (5,788)... 0.0011s
generate unzoomed roads and intersections...
generate unzoomed roads and intersections took 0.0427s

make DrawBuildings (5,987)... 0.0365s
upload all buildings...
upload all buildings took 0.0052s
make DrawParkingLot...
make DrawParkingLot took 0.0062s

make DrawAreas (679)... 0.0029s
upload all areas...
upload all areas took 0.0003s
create quadtree...
create quadtree took 0.0229s
[2024-01-17T14:09:58Z INFO  map_gui::render::map] static DrawMap consumes 0 MB on the GPU
rerendering map colors... plus 0.0091s
rerendering map colors took 0.1787s
[2024-01-17T14:09:58Z INFO  abstutil::time] - rerendering map colors took 0.1787s
[2024-01-17T14:09:58Z INFO  abstutil::time]   - make DrawRoads (7,515)... 0.0518s
[2024-01-17T14:09:58Z INFO  abstutil::time]   - make DrawIntersections (5,788)... 0.0011s
[2024-01-17T14:09:58Z INFO  abstutil::time]   - generate unzoomed roads and intersections took 0.0427s
[2024-01-17T14:09:58Z INFO  abstutil::time]   - make DrawBuildings (5,987)... 0.0365s
[2024-01-17T14:09:58Z INFO  abstutil::time]   - upload all buildings took 0.0052s
[2024-01-17T14:09:58Z INFO  abstutil::time]   - make DrawParkingLot took 0.0062s
[2024-01-17T14:09:58Z INFO  abstutil::time]   - make DrawAreas (679)... 0.0029s
[2024-01-17T14:09:58Z INFO  abstutil::time]   - upload all areas took 0.0003s
[2024-01-17T14:09:58Z INFO  abstutil::time]   - create quadtree took 0.0229s
[2024-01-17T14:09:58Z INFO  abstutil::time]   - ... plus 0.0091s

Hmm, no errors or stack trace from that log.
Also, #996 to set expectations about time to get to this


cmd/asm: document -p option in help text

What version of Go are you using (go version)?
Go v1.19
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (go env)?
Not relevant since issue is with help text.
What did you do?
go doc cmd/asm
What did you expect to see?
I expected to see help text for the new -p option.
What did you see instead?
The help text does not include the new -p option.

Hopefully not too many folks are manually invoking "go tool asm" (as opposed to running "go build").

Hopefully not too many folks are manually invoking "go tool asm" (as opposed to running "go build").

Hopefully not, but I am because I maintain the Go backend for the Pants build tool.


Cannot build on Mac Mini M1

Project made with Android Studio, had no issues until used this lib.
When use Xcode run button:
fatal error: module map file '/Users/suser/Library/Developer/Xcode/DerivedData/Runner-apowyhreykdokqgcyelbhhgqjexu/Build/Products/Debug-iphonesimulator/flutter_custom_tabs/flutter_custom_tabs.modulemap' not found
1 error generated.
When use Android Studio run button:
error: the following command failed with exit code 0 but produced no further output
CompileC /Users/suser/Library/Developer/Xcode/DerivedData/Runner-apowyhreykdokqgcyelbhhgqjexu/Build/Intermediates.noindex/Pods.build/Release-iphoneos/FMDB.build/Objects-normal/arm64/FMDatabaseQueue.o
/Users/suser/StudioProjects/Mobin/Sources/trunk/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'FMDB' from project 'Pods')
and some warnings
Tried tons of solutions with no luck.
After disabling lib, project run with no problem.

Solved issue creating new project and coping ios folder from it.


fix(chat): disable new conversation on click when HideNewConversation is enabled (Issue #2792)

Description:
Need to forbid the creation of a new conversation on DIAL Logo click if HideNewConversation feature is enabled
Issues:

Issue #2792

Checklist:

[x] the pull request name complies with Conventional Commits
[x] the pull request name starts with fix(<scope>):, feat(<scope>):, feature(<scope>):, chore(<scope>):, hotfix(<scope>): or e2e(<scope>):. If contains breaking changes then the pull request name must start with fix(<scope>)!:, feat(<scope>)!:, feature(<scope>)!:, chore(<scope>)!:, hotfix(<scope>)!: or e2e(<scope>)!: where <scope> is name of affected project: chat, chat-e2e, overlay, shared, sandbox-overlay, etc.
[x] the pull request name ends with (Issue #<TICKET_ID>) (comma-separated list of issues)
[x] I confirm that do not share any confidential information like API keys or any other secrets and private URLs

/deploy-review


CloudFront Function objects should be PUBLISHED or provide a field to transition their stage

Describe the bug
https://github.com/aws-controllers-k8s/cloudfront-controller/blob/c4173425a03d539642c1bb8817998f49df9248fe/test/e2e/tests/test_function.py#L95
Without a way to publish the function from the resource, users will have to reconcile it manually.
Steps to reproduce
Create a function
Observe there is no way to publish it
Expected outcome
Add a stage field or similar; or, always make it published (preferred) so that it can be associated with the origin.
Environment

Kubernetes version 1.26
Using EKS (yes/no), if so version? 1.23
AWS service targeted (S3, RDS, etc.) CloudFront

Hey @doctorpangloss, this is something we purposely left unimplemented, for now. The issue lies in the API not allowing us to unpublish functions. And (correct me if I'm wrong) when you update a function, it switches back to unpublished state? This API behaviour/options are not compatible with kubernetes declarative model.
Maybe we could consider supporting an annotation like cloudfront.services.k8s.aws/auto-publish: "true" which would instruct the controller to automatically publish functions after creation or updates. What do you think?

And (correct me if I'm wrong) when you update a function, it switches back to unpublished state

Yes this appears to be the case

Maybe we could consider supporting an annotation like cloudfront.services.k8s.aws/auto-publish: "true"

Excellent choice, that would suit my purposes perfectly

@doctorpangloss Do you know how this change might impact the Get/Describe calls? If a function is published should do the controller get the function from Live or Development stage?


Support for local databases

Great project. Would be nice to get support for a local DB, without having to rely on a third party.  Maybe a local PostgreSQL or local SQLite?

Great project. Would be nice to get support for a local DB, without having to rely on a third party. Maybe a local PostgreSQL or local SQLite?

@umaar  Interesting, could you elaborate on the use case for this, please 😄 ?

Great project. Would be nice to get support for a local DB, without having to rely on a third party. Maybe a local PostgreSQL or local SQLite?

I think that makes ton of sense. Eventually I'd even want a fully local deployment!

For example with pinecone, supabase etc. they're great but it's easy to quickly eat into your free tier which is tricky when doing hobby projects. Being able to use local databases means things can be set up very cheaply, or even free where the only costs are from OpenAI. My personal use case is ingesting some content I've written, being able to do semantic searching over my own content!
Thank you for this excellent project!

@umaar interesting... There is a hosted version which is free, you can try at https://app.embedbase.xyz. It's useful to try out Embedbase, then you can self-host later if you want! 😃

Oh no, what I mean is the supabase portion. Right now, embedbase relies on supabase I believe? This GitHub issue to suggest not tying embedbase to supabase, but rather, allowing embedbase to work with other vector DBs. In fact, I just noticed this on the home page!

So i think that was the plan anyway?

I could add a local db with FAISS eventually, should be done in ~20 minutes I have done this in the past here https://github.com/langa-me/langame-worker/blob/27bf899d485948c9635a76b8f91deb3c19e2d46d/langame/conversation_starters.py#L121

Thank you!


x-www-form-urlencoded post requests

I could not find a good reference to send x-www-form-urlencoded post requests using HTTP connector.  Is there a documentation on how to configure HTTP Post with x-www-form-urlencoded  ?

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

ID: 8a18a5a6-0630-17aa-a2d1-686e575d7e22
Version Independent ID: 02b19cbb-7ff3-4f3f-06d1-8a0ccb4ad707
Content: Call, trigger, or nest workflows with HTTP endpoints - Azure Logic Apps
Content Source: articles/logic-apps/logic-apps-http-endpoint.md
Service: logic-apps
GitHub Login: @jeffhollan
Microsoft Alias: klam; LADocs

@rahulbagal Thank you for the feedback. We are reviewing your feedback and will get back to you shortly.

Hi @rahulbagal - Have you tried using the connector by adding a content-type record as a header with specific type you're looking to use with (screenshot below)?

Hey @rahulbagal - just checking in for updates. Please let us know if the above was helpful and if you have further questions regarding this matter.

Hi @mike-urnun-msft ,
Thank you for the reply.
I am trying to make a call equivalent to
curl -XPOST https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Calls.json \
    --data-urlencode "Url=http://demo.twilio.com/docs/voice.xml" \
    --data-urlencode "To=+14155551212" \
    --data-urlencode "From=+14158675310" \
    -u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'

I tried setting ContentType to application/x-www-form-urlencoded
but now the question is how to create a body that needs Url Encoding.  Also, the body expects a JSON.
I tried following two payload formation but did not work.

Try 1 - Set parameters in JSON  - Did not work

Try 2 -  Send content in $content tag - Did not work

What is the correct way of forming the body for x-www-form-urlencoded requests?

@rahulbagal Sorry for delay in response. I tested this today and think It's actually quite simple to do this:

We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.

Hi @mike-urnun-msft ,
reviving this old thread. I'm really struggling with the Call HTTP implementation on logic apps. As soon as it gets slightly more complex the body "auto-conversion" does something and my calls fails...

as soon as I use the same encoded values with curl I'm successful. I guess the auto conversion of the body parameters is doing something strange...

in the body is something like this which isn't properly handled by the logic app:
From=+49...&To=+49...&Url=https://handler.twilio.com/twiml/myAccount?Customer=myCustomer&Alert=myAlert
where my alert is a slightly more complex string with whitespaces and ' and something like: we have a alert 'high' with a component 'xyz'
I would be very happy for some guidance or just a simple it is not possible, then I will implement my own http call (sadly)...
best,
Oliver

This post should not be closed.
I have the same issue. I want to do a post request with x-www-form-urlencoded  using a complex object.
{
  "f": "json",
  "features": [
    {
      "geometry": {
        "x": -11.000001,
        "y": 17.000001
      },
      "attributes": {
       "something": "value",
     ....
      }
    }
  ],
  "rollbackOnFailure": "true"
}

Right now, I don't see any way or documentation that help me create this post request. Manually creating a URL is quite complex for big a deep objects.
How can I achieve this task?

Similar issue here: How do we handle the body of a complex x-www-form-urlencoded request?


MultiAgentWrapper raises AssertionError during call to step

Expected Behavior
When running train_pcgrl multiagent.n_agents=2, the MultiAgentWrapper step method should execute without error.
Actual Behavior
When running train_pcgrl multiagent.n_agents=2, the environment is wrapped in a MultiAgentWrapper. When calling the step function of the wrapper, we call the step method of the parent class.
def step(self, action):
    obs, rew, done, info = {}, {}, {}, {}
    for k, v in action.items():
        self.unwrapped._rep.set_active_agent(k)
        obs_k, rew[k], done[k], info[k] = super().step(action={k: v}). # THIS LINE HERE
        obs.update(obs_k)
    done['__all__'] = np.all(list(done.values()))
    return obs, rew, done, info

The step method is expected to return the observations for a single agent, however, the parent's class observation space contains both agents. This raises the following exception:
AssertionError: The obs returned by the `step()` method observation keys is not same as the observation space keys, obs keys: ['agent_0'], space keys: ['agent_0', 'agent_1']

Environment
Ray 2.1.0
gym 0.26.2
Potential Fix
This implementation of the MultiAgentWrapper calls the step method of the parent class. Instead, we could call the step method of the unwrapped class. Note that this is not the base environment, this would just be one layer deeper:
    def step(self, action):
        obs, rew, done, info = {}, {}, {}, {}
        for k, v in action.items():
            self.unwrapped._rep.set_active_agent(k)
            obs_k, rew[k], done[k], info[k] = self.unwrapped.step(action={k: v}) ## CHANGED THIS LINE
            obs.update(obs_k)

        done['__all__'] = np.all(list(done.values()))

        return obs, rew, done, info

Note that since the representation is also wrapped, we can still pass in a action dictionary to the environment.

unwrapped does seem to return the base environment:
>>> self
<MultiAgentWrapper<ControlWrapper<CroppedImagePCGRLWrapper<ToImage<OneHotEncoding<Cropped<OrderEnforcing<PassiveEnvChecker<PcgrlCtrlEnv<binary-turtle-v0>>>>>>>>>>
>>> self.unwrapped
<control_pcgrl.envs.pcgrl_ctrl_env.PcgrlCtrlEnv object at 0x28f728940>

Calling self.unwrapped.step in your fix above works because now you're bypassing PassiveEnvChecker, and none of the wrappers in between seem to modify the action, but I worry it could lead to trouble later on.
Maybe have the env return dummy observations for other agents?

That would require changes to the base environment, correct? Another hack I found:
def step(self, action):
    obs, rew, done, info = {}, {}, {}, {}

    try:
        sample_action = self.action_space.sample()
        action = {'agent_0': sample_action['agent_0']}
        super().step(action)
    except AssertionError:
        pass

    for k, v in action.items():
        self.unwrapped._rep.set_active_agent(k)
        obs_k, rew[k], done[k], info[k] = super().step(action={k: v})
        obs.update(obs_k)
    done['__all__'] = np.all(list(done.values()))
    return obs, rew, done, info

It looks like the assertion is only raised during the first execution of the step method. So this solution catches it and then pretends like it never happened, effectively bypassing the PassiveEnvChecker. Definitely not the best solution, but it maintains the wrappers around the environment

Can you share the exact command you were running for your multiagent runs?  Maybe there was a flag that was set that I'm missing or something.

Ah, after messing around for a bit, I found the problem. It looks like it was loading the old checkpoint that was generated from a single agent run. I added in the load=False flag and everything seems to be working now. Closing the issue now.

Sorry, made a mistake, the error is actually still raised with the load=False flag set. I was able to get it working with this fix though:
def disable_passive_env_checker(env):
    # remove the passive environment checker wrapper from the env attribute of an env
    # base case -> the environment is not a wrapper
    if not hasattr(env, 'env'):
        return env

    root = env
    prev = env
    while hasattr(prev, 'env'):
        next_ = prev.env
        if isinstance(next_, gym.wrappers.env_checker.PassiveEnvChecker):
            prev.env = next_.env
        prev = next_

    return root

class MultiAgentWrapper(gym.Wrapper, MultiAgentEnv):
    def __init__(self, game, **kwargs):
        multiagent_args = kwargs.get('multiagent')
        self.env = disable_passive_env_checker(game) # DISABLE ENVIRIONMENT CHECKING
        gym.Wrapper.__init__(self, self.env)
        MultiAgentEnv.__init__(self.env)
        self.n_agents = multiagent_args.get('n_agents', 2)
        self.observation_space = gym.spaces.Dict({})
        self.action_space = gym.spaces.Dict({})
        for i in range(self.n_agents):
            self.observation_space.spaces[f'agent_{i}'] = self.env.observation_space
            self.action_space.spaces[f'agent_{i}'] = self.env.action_space
        # otherwise gym utils throws an error???
        self.unwrapped.observation_space = self.observation_space
        self.unwrapped.action_space = self.action_space

    def reset(self):
        obs = super().reset()
        return obs

    def step(self, action):
        obs, rew, done, info = {}, {}, {}, {}

        for k, v in action.items():
            self.unwrapped._rep.set_active_agent(k)
            obs_k, rew[k], done[k], info[k] = super().step(action={k: v})
            obs.update(obs_k)

        done['__all__'] = np.all(list(done.values()))

        return obs, rew, done, info

Implemented a function to remove the passive environment checker wrapper. Everything seems to be working now, but likely not a long term solution.
Here's the command the reproduces the error on Echidna:
python bin/train_pcgrl multiagent.n_agents=2 load=False

After adding in the disable_passive_env_checker function, training proceeds as expected, but there is a warning raised that mentions that the passive environment checker wrapper is missing.

Sorry, made a mistake, the error is actually still raised with the load=False flag set. I was able to get it working with this fix though:
def disable_passive_env_checker(env):
    # remove the passive environment checker wrapper from the env attribute of an env
    # base case -> the environment is not a wrapper
    if not hasattr(env, 'env'):
        return env

    root = env
    prev = env
    while hasattr(prev, 'env'):
        next_ = prev.env
        if isinstance(next_, gym.wrappers.env_checker.PassiveEnvChecker):
            prev.env = next_.env
        prev = next_

    return root

class MultiAgentWrapper(gym.Wrapper, MultiAgentEnv):
    def __init__(self, game, **kwargs):
        multiagent_args = kwargs.get('multiagent')
        self.env = disable_passive_env_checker(game) # DISABLE ENVIRIONMENT CHECKING
        gym.Wrapper.__init__(self, self.env)
        MultiAgentEnv.__init__(self.env)
        self.n_agents = multiagent_args.get('n_agents', 2)
        self.observation_space = gym.spaces.Dict({})
        self.action_space = gym.spaces.Dict({})
        for i in range(self.n_agents):
            self.observation_space.spaces[f'agent_{i}'] = self.env.observation_space
            self.action_space.spaces[f'agent_{i}'] = self.env.action_space
        # otherwise gym utils throws an error???
        self.unwrapped.observation_space = self.observation_space
        self.unwrapped.action_space = self.action_space

    def reset(self):
        obs = super().reset()
        return obs

    def step(self, action):
        obs, rew, done, info = {}, {}, {}, {}

        for k, v in action.items():
            self.unwrapped._rep.set_active_agent(k)
            obs_k, rew[k], done[k], info[k] = super().step(action={k: v})
            obs.update(obs_k)

        done['__all__'] = np.all(list(done.values()))

        return obs, rew, done, info

Implemented a function to remove the passive environment checker wrapper. Everything seems to be working now, but likely not a long term solution.
Here's the command the reproduces the error on Echidna:
python bin/train_pcgrl multiagent.n_agents=2 load=False

After adding in the disable_passive_env_checker function, training proceeds as expected, but there is a warning raised that mentions that the passive environment checker wrapper is missing.

That sounds ok for now. (And you're right that we don't want to modify the underlying env or we'd break the single-agent setting.) Maybe the most proper thing to do would be to have PassiveEnvChacker as the outermost wrapper.

Alternatively, we could do gym.make(env, disable_env_checker=True).

Ah, didn't realize that parameter existed. Good call. I'll test it out and make a PR in a bit


fix warmup lr when using deepspeed

What does this PR do?
Fixes #2124
Current DeepSpeedEngineWrapper.backwards() calls DeepSpeedEngine._take_model_step(), which performs optimizer step first, followed by lr_scheduler step. https://github.com/huggingface/accelerate/blob/4f100318f499cff48b62555ca7d96ad97d7cb9be/src/accelerate/utils/deepspeed.py#L176
However, the DS optimizer will be initialized with the maximum learning rate in the prepare function, the optimizer will update model parameters with the maximum learning rate at the first step, which will cause an unexpected behavior. https://github.com/huggingface/accelerate/blob/4f100318f499cff48b62555ca7d96ad97d7cb9be/src/accelerate/accelerator.py#L1665
This PR solves this problem by initializing the optimizer with warmup_min_lr if the warmup lr scheduler is activated.
@pacman100

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

@Eikor can you please do pip install -e .[quality]; make style; make quality? This should fix the failing test, thanks!

I don't think this should be the case. Let me deep dive into this.

Was there a reason this was never merged, @pacman100 and @muellerzr?


[Enhancement] Create dummy storage descriptor for iceberg/deltalake table from glue

Otherwise getTable throws exception
public Table getTable(String dbName, String tableName) {
    org.apache.hadoop.hive.metastore.api.Table table = client.getTable(dbName, tableName);
    StorageDescriptor sd = table.getSd();
    if (sd == null) {
        throw new StarRocksConnectorException("Table is missing storage descriptor");
    }

    ...
}

What type of PR is this:

[x] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Does this PR entail a change in behavior?

[ ] Yes, this PR will result in a change in behavior.
[x] No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

[ ] Interface/UI changes: syntax, type conversion, expression evaluation, display information
[ ] Parameter changes: default values, similar parameters but with different default values
[ ] Policy changes: use new policy to replace old one, functionality automatically enabled
[ ] Feature removed
[ ] Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto-backported to the target branch

[x] 3.2
[ ] 3.1
[ ] 3.0
[ ] 2.5

[FE Incremental Coverage Report]
:disappointed: fail : 0 / 1 (00.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/connector/hive/glue/converters/CatalogToHiveConverter.java
0
1
00.00%
[155]

[BE Incremental Coverage Report]
:heart_eyes: pass : 0 / 0 (0%)

[FE Incremental Coverage Report]
:disappointed: fail : 0 / 1 (00.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/connector/hive/glue/converters/CatalogToHiveConverter.java
0
1
00.00%
[155]

[FE Incremental Coverage Report]
:heart_eyes: pass : 11 / 12 (91.67%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/connector/unified/UnifiedMetadata.java
0
1
00.00%
[65]

:large_blue_circle:
com/starrocks/connector/hive/glue/converters/CatalogToHiveConverter.java
11
11
100.00%
[]

[BE Incremental Coverage Report]
:heart_eyes: pass : 0 / 0 (0%)

@Mergifyio backport branch-3.2


Consider adding a public API for depdenencies

I have code (see https://github.com/JuliaPy/pyjuliapkg/issues/20) that uses Julia to check package versions match up with juliapkg expectations. I use it with juliapkg in "offline" mode to avoid calls to Pkg.add where dependencies are already installed. I only switch to online mode if julia doesn't load, or if there is a version mismatch. This speeds up launch time considerably.
Assuming this code can't go into juliapkg itself (since it doesn't link in julia), it would be nice to have a public API to get the dependencies from juliapkg. Something like the current find_requirements(). @cjdoris Do you think we could just make that public?
I guess an alternative is to add such functionality to juliacall.

c.f. https://github.com/JuliaPy/pyjuliapkg/issues/20#issuecomment-2113196448 if you are seeing the packages being frequently reinstalled, then something is wrong
I'm not opposed to exposing more of the dependency finding functionality as API, but it sounds like you have a deeper issue.


Improve environment variable handling

Is there an existing issue for this?

[X] I have searched the existing issues

Run a Diagnostic and Paste Link Here
No response
Expected Behavior
Have a syntactically correct YAML configfile
Actual Behavior
 aaron  ~  ddev
FATA[0000] unable to read global config: yaml: line 13: did not find expected '-' indicator

Steps To Reproduce
echo 'text with , comma inside
and multiline' > message.txt
VAR=`cat message.txt`
/tmp/ddev config global --web-environment-add="TRAVIS_COMMIT_MESSAGE=$VAR"

Anything else?
The YAML file would look like this:
web_environment:
    - |4-
       comma inside
      and multiline
    - 'TRAVIS_COMMIT_MESSAGE=text with '
....

@rfay I am happy to touch some Go code if you have some hints on where to start to tackle it correctly.

Could you please test this with current HEAD, and please give a practical example? I'm quite sure you had something happen that made you bring this up, but if you could give a more real-world example, like what happened to you, it would be easier to understand what we're up against.
It looks like you're talking about global environment variables. Does the problem also happen with project environment variables?
Maybe you can give an example of an invalid config file? Or a simple way to get the invalid config file?
Please edit the OP to give simpler and more direct details, thanks!

@rfay
So we use Travis to deploy to QA, TEST and LIVE. We also would like to post an issue comment when something gets deployed to QA, see this in action: https://github.com/Gizra/drupal-starter/issues/427#issuecomment-1433189754
Everything happens inside DDEV for us inside the CI.
We need to pass the TRAVIS_COMMIT_MESSAGE to DDEV properly, we imagined we use environment variables for this, as we get it in this form from Travis. The commit message is needed to detect the issue number.
I'll test it with HEAD and simplify the instructions a bit soon.

 aaron  /  tmp  ./ddev --version
ddev version v1.21.6-30-g4a9cc3c1

Then:
 aaron  ~  /tmp/ddev
FATA[0000] unable to read global config: yaml: line 13: did not find expected '-' indicator
 aaron  ~  1  /tmp/ddev config global --web-environment-add="TRAVIS_COMMIT_MESSAGE=$VAR"

I have the same error.
Simplifying the instructions in OP now.

https://github.com/ddev/ddev/blob/master/cmd/ddev/cmd/config-global.go#L68
https://github.com/ddev/ddev/blob/master/cmd/ddev/cmd/config.go#L553
That's why commas are problematic in environment variables.

The documentation at https://ddev.readthedocs.io/en/latest/users/extend/customization-extendibility/ does not talk about commas, what if we support only adding one environment variable at once?
However it would change the behavior, that others might rely on already...

The other way could be to properly handle double quotes for specifying the content of the variable.

There's still nowhere near enough context here to solve this.
Please note that there are dozens of ways to do yaml multiline strings, https://yaml-multiline.info/
I recommend that we start with a discussion about how you can accomplish your objective, which is still unclear.  Why don't you come over to Discord and let's have a conversation about what you're trying to accomplish?
In the meantime, if you can update this issue to make it actionable that will be good. You'll have to edit the title to explain what it is that's your problem (I think you're complaining about ddev config --web-environment-add or ddev config global --web-environment-add where the content contains commas or newlines, but I'm not sure. I'm not sure whether you've tried to escape the commas, etc, and not sure why you haven't done it with two commands to add two environment variables.)

You should know that you could use yq to add content to any yaml file as well...

@rfay I'll open another issue later on with much more specific report, actually multi-line value is not part of the problem at all. Sorry for the noise.


Is there any sample implementation or documentation for custom component?

I am currently prototyping a SPA application at my workplace using Fimga and vue-low-code.
I have a feature that I want to control detailed interactions myself, and I was thinking of using a custom component, but I'm not sure how to implement it.
Do you have any documentation or sample code?
I checked the following documentation, but could not understand it very well.

KlausSchaefers/vue-low-code: Quant-UX standalone
Luisa.Cloud - The Low-Code JavaScript Framework

I am mainly interested in the following topics

How to pass parameters from a parent component to a child custom component.
Method binding to custom components.

Hi,
thanks for reaching out. I just created a small sample project:
https://github.com/KlausSchaefers/luisa-custom-component
The Figma file looks like:

the main code is here:
https://github.com/KlausSchaefers/luisa-custom-component/blob/main/src/components/ComplexCustomComponent.vue
Does this help?

Thank you for your answer.
I think I can solve what I wanted to know by referring to the sample project you provided.
I will close this Issue.


[DO NOT MERGE] PP 11681 Replace 'request' library with 'axios'

WHAT
Replace request library with axios
https://payments-platform.atlassian.net/browse/PP-11681
HOW

Use latest version of pay-js-commons library containing axios-base-client code
Add clients/base files for use with axios-base-clientcalls
Change  client methods to use ‘axios-base-client’ library.
Refactor call parameters initialisation.
Use async/await syntax.

No longer required - this PR was broken down into lot's of little PRs that have merged in.


Error when executing cargo run main.ts

When I try to solve the first problem, this error comes out:
Running your code against Problem #1: "Hello World"...
thread 'main' panicked at src\checker.rs:50:10:
failed to execute process: Error { kind: NotFound, message: "program not found" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: process didn't exit successfully: `target\debug\subterfuge.exe main.ts` (exit code: 101)

I have installed bun and rust. Tried running it in administrator mode and normal user mode, same error appears.

Could you open the command line and try running "bun"? It might be missing from the path variable.
If that's not the case, something is blocking the program from running code in the command line

Well that's super weird. Could you try refreshing the terminal you're running the rust program from?

Refrreshed env using chocolately, still the same error.

I'm getting exactly same error. Maybe this is because I use windows..? Running bun main.ts works fine.


GitHub Actions: Use static MSVC runtime

See https://github.com/ninja-build/ninja/pull/1705#issuecomment-562972980
Fixes #1692.

MSVC_RUNTIME_LIBRARY is a target property, not a global variable one can set via -D.


Implement concrete classes before rename

@simonteozw can you review this commit then merge it for me so that the next PR won't be so huge

Actually "commons" in the name of one of the current module too! (seedu.address.commons)

Ah that checkstyle, I think it can be disabled for now, later on when I merge the later pull request I can enable it back again!


atlas-provider-django install fails due to mysqlclient: Cannot find valid pkg-config name.

I'm using Ubuntu 24.04 and python 3.12.3 on WSL2, without mysql installed on the system.
Anyway, when installing atlas-provider-django, it fails with the following pkg-config error below.
I've installed atlas via brew (brew install ariga/tap/atlas). I've also installed the following dependencies in an attempt to fix the below, which is commonly quoted as being the solution online to getting mysqlclient to install using pip:
sudo apt install libmysqlclient-dev default-libmysqlclient-dev python3-dev pkg-config
This made no difference.
I did however get it to work by doing:
brew install pkg-config mysql-client
The caveat is that I had to do add this env var afterward for pip install to work:
export PKG_CONFIG_PATH="$(brew --prefix)/opt/mysql-client/lib/pkgconfig"

This is clunky and people shouldn't need to manually install mysql-client like this for them to be able to install atlas-provider-django.
I believe the root cause of this is because I do not have mysql installed in my system already. If I brew install mysql, pip will install mysqlclient without any errors. However, this shouldn't be a requirement to install atlas-provider-django, because the user may be using it with a different database.
Is there anything that can be done to remove the requirement on mysql server to install this package?
pip install mysqlclient
Collecting mysqlclient
  Using cached mysqlclient-2.2.4.tar.gz (90 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [27 lines of output]
      Trying pkg-config --exists mysqlclient
      Command 'pkg-config --exists mysqlclient' returned non-zero exit status 1.
      Trying pkg-config --exists mariadb
      Command 'pkg-config --exists mariadb' returned non-zero exit status 1.
      Trying pkg-config --exists libmariadb
      Command 'pkg-config --exists libmariadb' returned non-zero exit status 1.
      Traceback (most recent call last):
        File "~/projects/junkyard/piptest/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "~/projects/junkyard/piptest/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "~/projects/junkyard/piptest/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-kekdbj__/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-kekdbj__/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-kekdbj__/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 311, in run_setup
          exec(code, locals())
        File "<string>", line 155, in <module>
        File "<string>", line 49, in get_config_posix
        File "<string>", line 28, in find_package_name
      Exception: Can not find valid pkg-config name.
      Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.

Django and Atlas are used with other databases. Would a Postgres user would be happy to see MySQL deps forced upon them?

@nullbio Thank you for raising the issue!
We released a new version of atlas-provider-django that don't have specific database dependency.
You can try it by running: pip install atlas-provider-django

@nullbio thank you for raising the issue!
We fixed the issue, and released a new version, you can install it by running:
pip install atlas-provider-django


fastroute won't run if fewer than 3 metal layers

My technology has only two routing layers. To get fastroute to run, I had to create a third dummy metal layer and the associated tracks, then set -max_routing_layer 2.
% fastroute -max_routing_layer 2
WARNING: Default output guide name: out.guide
WARNING: Default capacity adjustment: 0.0 (no adjustment)
WARNING: Default minimum layer: 1
Initializing grid...
[ERROR] Layer3 not found! Exiting...

Hi, @teadotjay.
Please, check the commit d836a4a160b6feeb46d5c9db40cbc5d887f94582 of the OpenROAD app. I believe it should solves your issue.

I tried building this version, but there are some new dependencies that are not handled by the Dockerfile, and I couldn't find any instructions for installing them on CentOS 7.

Those are all optional dependencies; they should not be required to successfully build the tools and run through the flow.

I'm closing this issue since it was tested.
@teadotjay, please let me know if you still have issues regarding metal layers


VIM-780: Multicaret motions

This issue fixes VIM-780.

Thank you for the review! I've fixed all of the notices in which we have come to the agreement. I also have added change.insert and change.shift actions support for multiple carets case. @vlasovskikh could you please check them?

@vasalf Thanks for your fixes! I've created multiple-carets branch with your changes and identified the commands that don't work correctly with multiple carets. Could you please fix the list for the commands marked with E? I would really like to get most of them fixed before I merge this PR into master.

Please don't let this PR die! <3

@tbrisbane We keep working on it in https://github.com/JetBrains/ideavim/tree/multiple-carets.

I'm closing this review for now since I've merged all the commits into https://github.com/JetBrains/ideavim/tree/multiple-carets. Please follow that branch as it contains extra fixes for multiple carets support. We'll handle new changes to this branch as separate pull requests.
The current status of multiple-carets is that almost all commands work, but we still need an emulated plugin for vim-multiple-cursors that provides commands for selecting the next / previous occurrence and putting a caret there. @karavaevitalii will work on that. A code review for any of new pull requests is welcome.