Charset missing for esbuild results a lot of \uxxx

Describe the bug
None ascii characters will be tranformed to \uxxx,

As a example, you can see generate code by vitepress in vite cn docs at https://cn.vitejs.dev/.

I am not pretty sure if vite "Choosed" to do this, but this is heavily increasing outputsize if the source content contains lots of static content with none ascii characters.
For a quick review for esbuild and vite, I think that esbuild provide charset and with it set to utf-8, none assii character like CJK characters or emoji can be preserved as is in js output code. However, vite seems not providing such a option.
I thint that even if vite choose to do this for compatability reasons, users should have alibilty to not covert them. I understand that this is not having a great increasement under gzip, but it does slower the deployment speed.
Reproduction
https://stackblitz.com/edit/vitejs-vite-yftodz?file=main.js&terminal=dev
Steps to reproduce
No response
System Info
Test in stackblitz with links above.

Used Package Manager
npm
Logs
My demo results:
(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))n(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const s of t.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerpolicy&&(t.referrerPolicy=e.referrerpolicy),e.crossorigin==="use-credentials"?t.credentials="include":e.crossorigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function n(e){if(e.ep)return;e.ep=!0;const t=r(e);fetch(e.href,t)}})();const c="/assets/javascript.8dac5379.svg";function l(i){let o=0;const r=n=>{o=n,i.innerHTML=`count is ${o}`};i.addEventListener("click",()=>r(o+1)),r(0)}const a="\u4E00\u4E9B\u975E ASCII \u7684\u5B57\u7B26\u3002";document.querySelector("#app").innerHTML=`

Hello Vite!

      <button id="counter" type="button"></button>

      Click on the Vite logo to learn more

    ${a}

`;l(document.querySelector("#counter"));

And I don' think I should get const a="\u4E00\u4E9B\u975E ASCII \u7684\u5B57\u7B26\u3002" instead of const a= '一些非 ASCII 的字符。'
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

I am not pretty sure if vite "Choosed" to do this,

I guess Vite is just using the default behavior of esbuild.
The reason seems to be: https://github.com/evanw/esbuild/issues/773#issuecomment-775674438

vite seems not providing such a option.

You could set esbuild.charset option.
import { defineConfig } from "vite";

export default defineConfig({
  esbuild: {
    charset: 'utf8'
  }
})

I think we should explore changing the default in Vite 4. See https://github.com/vitejs/vite/pull/9870. Rollup ended up changing the markers so it isn't longer needed, but it still surprising to me.

Thanks for explaining.


Received first coordinates (not 0, 0), but values did not update afterward.

Hi there!
First of all, I would like to thank you for this awesome library. It does help me with my project, also I'm relatively new to Android programming. However, I'm having a small issue that maybe you could help me with. I've followed the instructions on the README file. Everything is running smoothly but then I realized that the first coordinates I received did not update afterward. It keeps giving the same exact coordinates every 10 seconds even when I go out for running.
Note: I've used a Runnable for this to save the coordinate values every 10 seconds into .csv file until I pressed a button to stop it.
In MainActivity file:
private SimpleLocation mLocation;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    Log.d("onCreate", "onCreate");

    if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {
        ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 123);
    }

    mLocation = new SimpleLocation(this);

    if (!mLocation.hasLocationEnabled()) {
        // ask the user to enable location access
        SimpleLocation.openSettings(this);
    }

}

private Runnable mGPSRunnable = new Runnable() {
    @Override
    public void run() {
        final double latitude = mLocation.getLatitude();
        final double longitude = mLocation.getLongitude();
        Log.d("GPS", "Lat: " + latitude + " Long: " + longitude);
        mHandler.postDelayed(this, 10000);
        saveGPSData(); // saves the values in .csv file
    }
};

The two methods below are assigned to one button each:
public void startGPS() {
    mGPSRunnable.run();
    mLocation.beginUpdates();
}

public void stopGPS() {
    mHandler.removeCallbacks(mGPSRunnable);
    mLocation.endUpdates();
}

Did I forget something here?
My apologies for the long post. I would really appreciate if you can help me with this :)

You have to configure the instance via the constructor:
https://github.com/delight-im/Android-SimpleLocation#extended-constructor-options
So you probably want requireFine to be set to true, interval set to something less than 10 minutes (in milliseconds), and requireNewLocation set to true.
By the way, perhaps you might also want to return after your call to ActivityCompat.requestPermissions.
Does that help?

Sorry for the late reply as I was swarmed with other things recently.
Now it returns 0,0. I've checked all the previous 0,0 issues, applied the changes, and still I get 0,0.  Check below.
    mLocation = new SimpleLocation(this, true, false, 5000, true);

    mLocation.setListener(new SimpleLocation.Listener() {
        public void onPositionChanged() {
            Log.d("Location", "There are changes");
            // new location data has been received and can be accessed
        }
    });

When you mentioned that the GPS will take some time to update its first location, how long would that be? I received no updates on the first location while waiting for nearly 10 minutes.

I did receive the Log.d("Location", "There are changes"); but only when I set requireFine to false. Otherwise, the location did not update and stays 0,0.

Do you think it would be possible that no (new) GPS signal has been available? Has this been tested inside or outside?
And is this something you’re running in the foreground (e.g. Activity) or in the background (e.g. background service)? It seems it’s the former right? That shouldn’t be a problem then.
Had the permission been granted for fine/GPS?
Finally, when not requiring fine/GPS, did it update (“There are changes”) just once, or multiple times? What was the duration between updates? Indeed about 5 seconds? Did the location data actually change?

Do you think it would be possible that no (new) GPS signal has been available? Has this been tested inside or outside?

I've tested this outside, had a 30mins walk today, but still the location is not updated. Could it be because of the device? I'm using Sony Xperia Z3.

And is this something you’re running in the foreground (e.g. Activity) or in the background (e.g. background service)? It seems it’s the former right? That shouldn’t be a problem then.

This shouldn't be the problem as I've implemented the background service to keep the app running all the time even when the phone is locked.

Had the permission been granted for fine/GPS?

It has been granted when I ran the app for the first time. I've included android.permission.ACCESS_FINE_LOCATION and android.permission.ACCESS_COARSE_LOCATION in the manifest file too.

Finally, when not requiring fine/GPS, did it update (“There are changes”) just once, or multiple times? What was the duration between updates? Indeed about 5 seconds? Did the location data actually change?

It updates (“There are changes”) multiple times every 5 seconds. The first value is always 0,0. When it updates, the location data changed, but only once. The next incoming coordinate values stay the same as the previous values even when (“There are changes”) happens. Check the image.

I hope these are not too confusing.

Testing outside and trying for 30 min sounds good. No problem there.
Declaring both permissions in the manifest sounds good as well.
If your device is running Android 6 or later, can you check in the app details in the device settings whether both have actually been granted?
The update interval of the coarse data looks good. So were you outside when testing this as well, and did you move?
And are you sure background processing is not a problem? Is your device running Android 8 or later or Android 10 perhaps? If so, keep the following in mind:

If your app targets Android 10 (API level 29) or higher, also check for the ACCESS_BACKGROUND_LOCATION permission. [1]

Look for use of location access APIs […] within your code such as in the following constructs [1]:

Background services
JobIntentService objects
WorkManager or JobScheduler tasks
AlarmManager operations
Pending intents that are invoked from an app widget

If background location access is essential for your app, keep in mind that Android preserves device battery life by setting background location limits on devices that run Android 8.0 (API level 26) and higher. On these versions of Android, if your app is running in the background, it can receive location updates only a few times each hour. [1]

When a foreground service is running, the system raises user awareness by showing a persistent notification. Your app retains access when it's placed in the background, such as when the user presses the Home button on their device or turns their device's display off.
Additionally, it's recommended that you declare a foreground service type of location, as shown in the following code snippet. On Android 10 (API level 29), you must declare this foreground service type. [2]

In an effort to reduce power consumption, Android 8.0 (API level 26) limits how frequently background apps can retrieve the user's current location. Apps can receive location updates only a few times each hour.
Note: These limitations apply to all apps used on devices running Android 8.0 (API level 26) or higher, regardless of an app's target SDK version. [3]

If your device is running Android 6 or later, can you check in the app details in the device settings whether both have actually been granted?

My device is running Android 6. I've checked the app's permission in the device settings and it shows that the location has been enabled. Or is there another way to check it?

The update interval of the coarse data looks good. So were you outside when testing this as well, and did you move?

Yes exactly. I started the GPS, locked the phone, and went for a walk.

And are you sure background processing is not a problem? Is your device running Android 8 or later or Android 10 perhaps? If so, keep the following in mind:

Yes I do realize this. Apart from GPS, I'm also collecting the accelerometer and gyroscope sensor values. The app is designed to run in the background, thus I've implemented the AlarmManager and a foreground service to avoid the system from killing the app even when the phone is locked. As a result, the app is capable of running for at least 4 hours (I've tested it), as long as it listens to the sensors. It works for the two sensors, which I received different readings every 10 seconds, but not the GPS. Since my device is Android 6, I don't think the limitation applies. Even if it does, the coordinate values should update a few times at least. The picture I sent you, it has the same values for 35 mins. I've also included ACCESS_BACKGROUND_LOCATION prior to that.
I haven't tried out leaving the app in the foreground while walking. Perhaps I should do that?
Maybe I should try longer than 35mins?
Or it could be the device is old or not supported? Is there such a case?
I'm sorry again about having this issue.

My device is running Android 6. I've checked the app's permission in the device settings and it shows that the location has been enabled. Or is there another way to check it?

No, that’s correct. If you go to “Settings” → ”Apps” → Your app → ”Permissions” or similar and check if the runtime permissions have been granted, that’s all you need to do.
By the way, you should check the “Location” settings in the device settings as well. It’s possible that the fine/GPS provider is disabled there.
Since you’re using a Sony, make sure to also disable the “Stamina” battery saver in “Settings” → “Battery” or similar.

Since my device is Android 6, I don't think the limitation applies.

Yes, correct.

I haven't tried out leaving the app in the foreground while walking. Perhaps I should do that?

In order to simplify debugging and help track down the problem, yes, I would do this.

Maybe I should try longer than 35mins?

I would try only five minutes. If after five minutes of being outside, you haven’t received any GPS location (or still exactly the same coarse location), something is wrong.

Or it could be the device is old or not supported? Is there such a case?

That’s unlikely. Though you could certainly use Google Maps, this, this or this to test if other apps get the location.

It seems to be working now! I received different values after a few minutes.
These are the things I did:

I haven't used Google Maps on this device for a long time, so when I opened it, the map location on the screen was updated.
I changed  compile into implementation when I declare the Gradle dependency in my app module's build.gradle since I received a warning that says compile is deprecated. (Not sure if this was the issue, but just a remark from my side).
After I did 1 and 2, I set the requireFineGranularity to true, then I received different readings when (“There are changes”).

I will test it out later or tomorrow when I go running, but since the values are changing slightly because I'm not outside and the device is idle, it should be working properly when I leave the house. I will keep you posted! :)

Thanks. That’s strange, since neither 1 nor 2 should have any effect on this. But it’s great to hear that it’s working now. Looking forward to hearing about your experience with this when you’re outside again.

Good news! Came back from running and plotted the coordinates, works like a charm. It updates the values every 10 seconds and they're very precise. I'm not sure what was the main issue prior to this. Regardless, I thank you for this awesome library and also your time for helping me out. Have a nice week ahead!

That’s great to hear – although we don’t know the exact reason.
Anyway, good luck with your project, and have a great week, too!


Support 'not found' routes

manually handle page.js callbacks array

Using a Route for 404
Debounced creating callbacks array

Using a Route for 404
Debounced creating callbacks array


How should the roadmap work?

We currently have an issue for our roadmap (#256). However this is a terrible medium for storing and communicating this information and as a consequence we've let it get totally out of date.
So how should we handle this?
We want a list of planned tasks and ideas, sorted into categories. Possibly some indication of estimated difficulty and priority would be useful. Per task topics can be kept in a github issue as now and linked to from the roadmap.
Is a text file in the repo good enough?
Should we just use a github issue per roadmap item and a "roadmap" tag, or does that get really unwieldy?
Are there good (free) tools on other sites we should use?
What approaches have you used in other projects that were good or bad?

I've seen some people use ZenHub as an augmentation for GitHub tickets, but I myself have not and cannot vouch for it.  Seems like it could make the one-ticket-per-roadmap-item strategy a bit less unwieldy.

Thanks @jemc. Unfortunately it looks like you have to pay for ZenHub, and per user as well, unless there's some free option I'm missing. So that's not really any use for us.

ZenHub offers free plan for open source

Ah yes, we can use ZenHub for free, thanks I didn't spot that. I've used Kanban style boards on other projects and they work fine for active works items, but are they a good approach for roadmaps? Maybe, not sure.

I think a text file in the repo is a fine place to start, is easy to keep updated, and is easy enough to shift to something fancier later if needed.

I believe organisational artifacts are noise and thus should be kept separate from the code (signal).
Currently, GitHub issues cover type (bug, enhancement, ?roadmap?) and difficulty (easy, medium, hard). I think there's still room for one more dimension (category?), but 4 dimensions would be unwieldy.
I've looked into several products: ZenHub (mentioned by @jemc), Waffle which could be used free and a few others: Kanban boards are everywhere! But I agree with @andymcn that Kanban board would not be the best fit for Pony.

Just my random 2c, this has nothing to do with programming per se, but the best tool for planning is Trello. Not sure if you can use it or not, but I agree that you shouldn't mix management with code (we had that at my current job, and it was horrendous).

I'm using the github milestones for my roadmap.
next minor and next majors. with date, issues and description.
I like it

Also see https://taiga.io

Any progress on this. Can you guy give an high level idea on the future direction of the language?

Some newer languages that I would consider well managed are using Github Milestones + Labels.
Elixir uses milestones for their roadmap. They use a combination of three labeling tags, essentially difficulty (ex. Difficulty:Hard), application/product (ex. Product:REPL), type (ex. Type:Enhancement).
Golang also seems to use milestones as well.

It will be great if you can consider the following features to be included in the road map. 1st the features can be discussed to see if they fit in the language. Once the feature does add value then they can be added. Some features perhaps can be added as libraries. Also I included some languages which either implement it or considering doing it:

Soundiness - http://soundiness.org/, https://cakeml.org/, http://www.spark-2014.org/, http://why3.lri.fr/, http://whiley.org/, https://www.pyret.org/, https://mercurylang.org/
Code contacts - http://why3.lri.fr/, http://whiley.org/, http://www.spark-2014.org/
Effects - http://www.eff-lang.org/, http://nim-lang.org/, http://dotty.epfl.ch/,
HList & HMaps/Record types - http://dotty.epfl.ch/, http://typedclojure.org/
Term rewriting - Scala/Dotty (https://github.com/dotty-linker/dotty), http://purelang.bitbucket.org/
Refined Types - https://github.com/fthomas/refined, http://nim-lang.org/ (Effect system)
Dimensions - http://www.squants.com/, F#
1st Class higher order pattern matching - F# (Partly in Active Patterns), https://bondi.it.uts.edu.au/, Scala (?)
Macros / meta programming - Scala, https://github.com/rsdn/nitra, https://github.com/rsdn/nemerle
Staging - https://scala-lms.github.io/
Declarative programming - https://mercurylang.org/, http://flix.github.io/
Rx - http://reactivex.io/, https://github.com/ponylang/reactive-streams (continue this and include in Standerd Library)
Type state / phantom types - Scala, http://www.cs.cmu.edu/~aldrich/plaid/
Constraint typing / depedent typing - http://x10-lang.org/, http://www.idris-lang.org/

I am adding this to a closed issue so it will not generate much noise. But I think a discussion should happen in light of developments in other languages what would add value to the end users if Pony had them.


Vengeful Spirit aghanims sometimes doesn't work

Have no clue why. Will have to do it from scratch I guess.

It doesn't work, ever.


Change to ArrayType(StringType)

If you pull this request, then the Stemmer will work with Seq[String], rather than merely String. This allows easy (easier?) use with Tokenizer and other transformers that work with arrays. I also updated to Spark 2.2 though it seemed to compile fine with the original Spark version as well.
This PR fixes an issue seen when using with Array(StringType): java.lang.IllegalArgumentException: requirement failed: Input type must be string type but got ArrayType(StringType,true). See e.g. the discussion at https://spark-packages.org/package/master/spark-stemming

Looks great, thanks!


About training the custom data!

Thanks for your great job! Can you please give the training stage in detail, as it will be huge support for others in their researches? My researches also is related to talking face generation and I would love to do cooperation research in this field!

about training, please see #33 .


Improve method matcher for AccessPathNullnessPropagation (#866)

Fix #866. AccessPathNullnessPropagation#isCallToMethod is not robust and causes java.lang.RuntimeException: expected call to iterator(), instead saw null. As a quick fix, leverage errorprone matchers. No new test case is added because I'm unable to reproduce it easily and NullAwayKeySetIteratorTests already covers the code pattern.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@msridhar Would you help to review the pull request? Thanks!

@g-jiannan see my comment on the issue you opened https://github.com/uber/NullAway/issues/866#issuecomment-1824798959


Update tvtv.us_us.channels.xml

Removed all sports event channels
Replaced Cable, Streaming and OTA
Added and Replace PBS Kids, Create and World
Added The Grio and The CW Plus (National Feed)

What's the reason for removing the sports channels?


Buttons dont open links

when i click on the button it doesnt open the link.

Hello! Can you provide Discord-RPC version and full code that you are using? So I can analyze your problem.

i checked its a discord bug thanks fot the help

Glad to hear it! Thank you for using Discord-RPC :)


Bug: idempotentLambdaHandler breaks when used with other decorators

Expected Behaviour
As a customer I should be able to use multiple class method decorators in conjunction with Idempotency's idempotentLambdaHandler decorator. The decorator should do its job and either allow other decorators to run or bail cleanly.
Current Behaviour
When using multiple decorators (i.e. idempotentLambdaHandler & logger.injectLambdaContext) with idempotentLambdaHandler being the first one, the function throws an error like this:

{"errorType":"TypeError","errorMessage":"Cannot read properties of undefined (reading 'invokedFunctionArn')","trace":["TypeError: Cannot read properties of undefined (reading 'invokedFunctionArn')","    at Logger.addContext (/var/task/index.js:3584:35)","    at Logger.injectLambdaContextBefore (/var/task/index.js:3662:13)","    at descriptor.value [as functionToMakeIdempotent] (/var/task/index.js:3643:16)","    at IdempotencyHandler.getFunctionResult (/var/task/index.js:1203:31)","    at IdempotencyHandler.processIdempotency (/var/task/index.js:1243:21)","    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","    at async IdempotencyHandler.handle (/var/task/index.js:1223:20)"]}

Code snippet
import type { Context } from "aws-lambda";
import type { LambdaInterface } from "@aws-lambda-powertools/commons";
import { Logger } from "@aws-lambda-powertools/logger";
import { idempotentLambdaHandler } from "@aws-lambda-powertools/idempotency";
import { DynamoDBPersistenceLayer } from "@aws-lambda-powertools/idempotency/dynamodb";
import { IdempotencyConfig } from "@aws-lambda-powertools/idempotency";

type EventRecord = {
  foo: string;
};

const logger = new Logger();

const dynamoDBPersistenceLayer = new DynamoDBPersistenceLayer({
  tableName:
    process.env.IDEMPOTENCY_TABLE_NAME || "lambda-powertools-playground-table",
});
const idempotencyConfig = new IdempotencyConfig({});

class Lambda implements LambdaInterface {
  @idempotentLambdaHandler({
    persistenceStore: dynamoDBPersistenceLayer,
  })
  @logger.injectLambdaContext({ logEvent: true })
  public async handler(event: EventRecord, _context: Context): Promise<string> {
    return "Processing done: " + event.foo;
  }
}

const defaultLambda = new Lambda();
export const handler = defaultLambda.handler.bind(defaultLambda);

Steps to Reproduce

Deploy the function above
Run it
Observe the error

Possible Solution
No response
Powertools for AWS Lambda (TypeScript) version
latest
AWS Lambda function runtime
18.x
Packaging format used
npm
Execution logs
No response

Need to look into it further, but the stack trace shows that the Logger decorator is not able to read info from the Lambda context object. This suggests that the idempotentLambdaHandler decorator is somehow mutating the decorated method preventing subsequent decorators to read the context.
Swapping the order of decorators (i.e. idempotentLambdaHandler last) works normally.

Since we have closed #1304 and #1306 and decided to not implement decorators for this utility, we are closing this issue for the time being.


carthage build faild for segmentation fault 11

*** Fetching SwiftyJSON
*** Fetching Alamofire
*** Checking out Alamofire at "1.2.2"
*** Checking out SwiftyJSON at "2.2.0"
*** xcodebuild output can be found in /var/folders/fz/rlgkcxdn54gcf9lj6t7jf3gm0000gn/T/carthage-xcodebuild.rCGG7b.log
*** Building scheme "Alamofire iOS" in Alamofire.xcworkspace
A shell task failed with exit code 65
Segmentation fault: 11

Xcode Version 6.3.2 (6D2105)
carthage version 0.7.3

And cartfile about Alamofire changed to be
github "Alamofire/Alamofire" >= 1.2

otherwise it will stuck in fetch alamofire

I have same question！
Error log:
Code Sign error: No code signing identities found: No valid signing identities (i.e. certificate and private key pair) matching the team ID “(null)” were found.
CodeSign error: code signing is required for product type 'Framework' in SDK 'iOS 8.3'

@IversonZL  Me too, did you fix it ?

Sorry guys, I am going to remove Carthage.
On 10 June 2015 at 19:44, lanrion<EMAIL_ADDRESS>wrote:

@IversonZL https://github.com/IversonZL Me too, did you fix it ?
—
Reply to this email directly or view it on GitHub
https://github.com/JakeLin/SwiftWeather/issues/19#issuecomment-110674207
.

Using CocoaPods? @JakeLin

Will be git submodules.
On 11 June 2015 at 11:30, 刘富东<EMAIL_ADDRESS>wrote:

Using CocoaPods? @JakeLin https://github.com/JakeLin
—
Reply to this email directly or view it on GitHub
https://github.com/JakeLin/SwiftWeather/issues/19#issuecomment-110962638
.

Thanks for reporting this issue. I have updated the app to not use Carthage any more. Please checkout the current version. https://github.com/JakeLin/SwiftWeather


"Stage 1 runs on Linux only." ./main/low/cargo.toml

In trying to run the bindgen process to create the binding for one of the newer functions released, I noticed that it seems like the config is set up so that stage one only runs on Linux.
Is this necessary for some reason, or can it be run on Windows/OSx? I don't have a problem using WSL but just curious why this is:

Please see the README.

Short answer: Generating the bindings on Linux generates the correct bindings, on Windows not necessarily (because the input headers are different). Exactly, on Windows I use WSL to generate the mappings.

Ahh got it, my bad @helgoboss. I think I have gravely misunderstood how bindings and C/C++ barriers work.
I tried to pull in these files, and the most recent SDK definitions, but nothing seemed to be generated in regards to the VST3 interface making plugins available to be embedded in the TCP/MCP UI:
https://github.com/justinfrankel/reaper-sdk/blob/main/sdk/reaper_vst3_interfaces.h
https://github.com/justinfrankel/reaper-sdk/blob/main/sdk/reaper_plugin_fx_embed.h
This was just released in pre-release today, and I wanted to try to make a dummy VST3 in Rust + reaper-rs to see if I could get it displayed in tcp.
https://forum.cockos.com/showthread.php?t=249561
+ VST3: support third-party embeddable UIs via new IReaperUIEmbedInterface interface
So I've pulled that in, the interfaces.h file made the bindgen explode (I think because it's C++ and not C? Why do they have the same file extension?), but with just the plugin_fx_embed.h it seemed to work fine:
namespace reaper_functions {
  #include "../lib/reaper/reaper_plugin_functions.h"
  #include "../lib/reaper/reaper_plugin_fx_embed.h"
  #include "../lib/reaper/more_reaper_plugin_functions.h"
  #include "../lib/reaper/coolscroll_reaper_plugin_functions.h"
}

But the only changes were this, and two other mostly-insignificant functions.
If you want I could PR it but it might be faster if you did it yourself, not sure (your call).

VST 3 would justify a whole new crate, that's not in the scope of reaper-rs. However, as mentioned in reaper_plugin_fx_embed.h, you can use the UI embedding also from VST 2 plug-ins, so using vst-rs is fine. Just using bindgen on reaper_plugin_fx_embed.h will not give usable results because it contains C++ virtual classes. Rust can't as easily interface with those as with C. I think that's not the best stuff to start with to be honest, it's really messy.

Ahhh, so that's why it didn't do anything. Thank you clarifying 😃

VST 3 would justify a whole new crate, that's not in the scope of reaper-rs. However, as mentioned in reaper_plugin_fx_embed.h, you can use the UI embedding also from VST 2 plug-ins, so using vst-rs is fine.

Makes sense, so from:
/*
 * to support via VST2: canDo("hasCockosEmbeddedUI") should return 0xbeef0000
 * dispatcher will be called with opcode=effVendorSpecific, index=effEditDraw, value=parm2, ptr=(void*)(INT_PTR)parm3, opt=message (REAPER_FXEMBED_WM_*)
 *

Then it would be using this:
https://docs.rs/vst/0.2.1/vst/plugin/enum.CanDo.html#variant.Other
But it looks like the implementation just returns the name of Other as a string in the response, and somehow need to return 0xbeef0000. I'll try to ask around on the Rust Audio Discord server I suppose, ty!


Installation issues for Ubuntu>=20.04

Instructed some changes in README.md that account for installation issues with Ruby, rubygems, and Bundler of specific version in Ubuntu>=20.04 machine.

Base Image for Dockerfile is Debian. We can easily use something like this for ubuntu
https://github.com/alshedivat/al-folio/blob/aca95e563bc6968fe8897d72013bfdd93a1d315f/Dockerfile#L13-L24
Would be have problems this way?
I see your method is somewhat complicated. I can't understand why we have to use such complex scenario.

Base Image for Dockerfile is Debian. We can easily use something like this for ubuntu
https://github.com/alshedivat/al-folio/blob/aca95e563bc6968fe8897d72013bfdd93a1d315f/Dockerfile#L13-L24
Would be have problems this way?
I see your method is somewhat complicated. I can't understand why we have to use such complex scenario.

Hi @pourmand1376 thanks for pointing this out. Genuinely, I haven't tried out installation via Dockerfile. Since, the method mentioned in Local setup section doesn't seem to work, I thought of adding this PR which may help if someone is going for pure local setup.

Plus, due to Ruby>=3.2.x onset, some of the gems (e.g., nokogiri) aren't installable via bundler, for which we are requiring rbenv.
So instead of surfing through rbenv documentation, I appended what all rbenv commands one need to run to get the job done.

Note: Since this PR is just for info, not any enhancement or solving bug, feel free to close this PR. And if any question arises regarding local steup for Ubuntu then as an answer we can put this PR link

Okay, I think it is not a good idea to have installation script just for Ubuntu.
But we should change the main standard way to reflect your changes also.

Okay, I think it is not a good idea to have installation script just for Ubuntu.
But we should change the main standard way to reflect your changes also.

What is your idea? @alshedivat @rohandebsarkar

Okay, I think it is not a good idea to have installation script just for Ubuntu.
But we should change the main standard way to reflect your changes also.

Thanks @pourmand1376 for your suggestions.

Maybe all this could be included in a wiki, like this one, or in the FAQ?

This addresses a very particular problem (and this guide should probably only be followed if the user encounters the problem). I think this should be addressed in an issue and a link could be added in the FAQ section.


About IEMOCAP sentence-level audio features

Hello,
Can you share the way you extract audio features in the work "Multi-level Multiple Attentions for Contextual Multimodal Sentiment Analysis"? I have no idea that how to extract 100 dimensions sentence-level audio features.
Thank you !

Hello，
I find your way to transformer 6373 dimensions to 100 dimensions by using FC layer. But I can't get appropriate matrix weights. Can you share the weights?
Thank you!

We used openSMILE and then fed that to an FC network with 100-dim output. This FC network can be trained using your training dataset's labels. Alternatively you can use other audio features as shown here: https://github.com/soujanyaporia/MUStARD

We used openSMILE and then fed that to an FC network with 100-dim output. This FC network can be trained using your training dataset's labels. Alternatively you can use other audio features as shown here: https://github.com/soujanyaporia/MUStARD

Hi, thanks for your clarification. Could you please share the scripts of dimension reduction process? I am trying to replicate the feature extraction but having trouble with the FC network settings for dimension reduction.
BTW, may I know why the librosa feature are with different size for each audio utterance? Thank you!


Feat/mangle dangle chain list

All work completed in this PR has been done as a hackathon project for Gitcoin Grants Round 9 Hackathon - specifically for Polygon hackathon bounty challenges (Utility and Open track).
At a high level, this PR adds support for Matic to expedition, but also makes matic the default network choice.
This PR removes:

service runner functionality

Changes:

adding custom node/chain

Adds:

populating list of chains from static  or fetched list.
default to using matic

:tada: This PR is included in version 1.11.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Support multiple cuda archs

Hi,
Is there a way to build a general lib that supports multiple cuda archs?
e.g., CMake has this
set(CMAKE_CUDA_ARCHITECTURES 60 70 80)

Thank you!

Never mind, found it:
--cuda_archs="compute_35:compute_35,sm_35;compute_80:compute_80,sm_80"


python3Packages.atomman: 1.2.8 -> 1.3.0

Motivation for this change
noticed it was broken while reviewing #74329
Things done

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

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

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

Notify maintainers
cc @
[1 built, 0.0 MiB DL]
https://github.com/NixOS/nixpkgs/pull/74400
1 package were built:
python37Packages.atomman

@GrahamcOfBorg build python37Packages.atomman


MatDialog mat-dialog-actions is not at the bottom of the dialog

Bug:
Angular Material is not placing md-dialog-actions at the bottom
What is the expected behavior?
Should be at the bottom
What is the current behavior?
Currently, it is placed just after md-dialog-content
What are the steps to reproduce?
Add md-dialog-actions
Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: https://plnkr.co/edit/S2D0g6NOPpVRYoc6KA7L?p=preview
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
angular 4, material ^2.0.0-beta.5, os ubuntu 16.04, typescript ~2.0.3, browser : chrome

@crisbeto looks like this happens when explicitly setting a height on the dialog

Oh this is for ng2, same is happening for me using material 1.1.3

I can confirm it indeed seems to occur the moment you set a specific height on the dialog.
The moment you specify an height (in my case 65%) the title and actions don't stay fixed in place and there are 2 scrollbars. See:
https://plnkr.co/edit/1Vn3D3E2ozdO80rLlleS?p=preview

Also duplicate of https://github.com/angular/material2/issues/4053

Is there any news about this issue?
thanks

The other ticket points to this ticket :D but I can't see any solution(?)

I found this hacky fix to work for now:
my-dialog.component.html:
`

`
my-dialog.component.css:
`
.hackyFix {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.spacer {
flex-grow: 1;
}
`

I have found this to work as a temporary fix when explicitly setting height on a MatDialog.
my-dialog.component.html:

my-dialog.component.css:
.fixActionRow {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.spacer {
  flex-grow: 1;
}

Is this a feature instead of a bug?  Are we intended to replicate this ourselves?  This issue has been opena  longgg time

not specifying the height worked for me.

Is there any update about this issue?

Material 2 is hopless

Please reopen the bug ticket, it was not implemented and to say moving to vue will not resolve the ticket. @ashishdoneriya if you are not interested anymore in it, fine, but leave it open for everyone else. Thx.

@Chris2011 ok chris

My experience:
Bug, feature request, or proposal:
Bug
What is the expected behavior?
Actions to be at the bottom of the dialog
What is the current behavior?
Actions right after content
What are the steps to reproduce?
StackBlitz starter: https://stackblitz.com/edit/angular-cuikyx
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
<EMAIL_ADDRESS><EMAIL_ADDRESS>any browser and any OS

@crisbeto I saw that you are working on dialog fixes. Could you please tell us if this issue will be fixed? It was opened more than a year ago and nothing has been done.
Thanks a lot!!!

There really really needs to be a better way to specify different dialog scaling strategies beyond the existing positioning strategies (such as full screen with an optional margin).
I expect the primary reason to set height on a dialog in the first pace is to make it stretch, or stop it overflowing the page. The number one thing a dialog control should do it take the burden of sizing away from me!

Any news or workaround for this? @atrombet's solution didn't work for me. =(

@dpolicastro
https://stackblitz.com/edit/angular-cuikyx-pnx9we

Thanks @manklu, I faced some issue trying to make it work on my project, and noticed that using minHeight property was not enought, you have to set the height. So the solution that @atrombet proposed works properly.
const dialogRef = this.dialog.open(MyDialog, {
      width: '80%',
-      minHeight: '500px',
+      height: '80%'
 });

This issue has happened when I set height explicitly !!
`const dialogConfig: MatDialogConfig = {
panelClass: 'my-panel',
maxWidth: '50vw',
maxHeight: '70vh',
  width: '30vw',
  height: '30vh'
}`

I have found this to work as a temporary fix when explicitly setting height on a MatDialog.
my-dialog.component.html:

my-dialog.component.css:
.fixActionRow {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.spacer {
  flex-grow: 1;
}

This worked very well. However, there was still a gap from the mat actions' top part between content and actions when I made height 95%. I resolved this with adding:
.mat-dialog-content {         max-height: 100%; }

I think problem is cause by mat-dialog-content max height set to 65vh...
Resolved with :
.mat-dialog-content {
    max-height: initial !important;
}

@JrmyDev this worked well.
you can see it in action here https://stackblitz.com/edit/angular-cuikyx-7vewfm

I think problem is cause by mat-dialog-content max height set to 65vh...
Resolved with :
.mat-dialog-content {
    max-height: initial !important;
}

Issue I am having with that is when I set encapsulation: ViewEncapsulation.None, it messes up. However max-height: 100%; works without an issue.

To sum up for everybody looking for a clean solution, that is maintainable and can be removed once this is fixed:
// app.module.ts
import {MAT_DIALOG_DEFAULT_OPTIONS} from '@angular/material';
...
providers: [
    {provide: MAT_DIALOG_DEFAULT_OPTIONS, useValue: {panelClass: 'mat-dialog-override'}}
]
...

// overrides.scss or styles.scss
// This fixes https://github.com/angular/components/issues/4609
.mat-dialog-override {
  mat-dialog-container {
    > :first-child {
      display: flex;
      flex-direction: column;
      height: 100%;
    }
    mat-dialog-content {
      flex-grow: 1;
    }
  }
}

For Debugging this Bug: It only appears if the height of the Dialog is explicitly set via minHeight or height.

two years talking about it and posting solutions in comments instead of fixing it... :(

Yes, please fix this. Workarounds are fine, but it is a lot more time saving if it comes placed correctly out of the box. :(

As @dpolicastro mentioned none of these solutions work if only minHeight (not height) is set.
The fix is to use the solution of @DanielHabenicht, and in addition add an explicit height to a dummy value on .mat-dialog-override. This solution then works whether height or minHeight are set.
app.module.ts as per @DanielHabenicht solution above
// overrides.scss or styles.scss
// This fixes https://github.com/angular/components/issues/4609
.mat-dialog-override {
  height: 0px;
  mat-dialog-container {
    > :first-child {
      display: flex;
      flex-direction: column;
      height: 100%;
    }
    mat-dialog-content,
    div[mat-dialog-content] {
      flex-grow: 1;
      max-height: unset;
    }
  }
}

Hey guys! Time to fix it! Every workaround makes my code just ugly...

Any news?
Definitely moving to react or vue, tired of this  WorkAroungular life

Utterly amazing you haven't deigned to fix this. Amazing. Loving dealing with this pos framework that this operation picked right before I came in the door or we'd be using vue like the rest of the civilized world.

@austinkulp It isn't a framework. It is only a lib and has nothing to compare with Vue.
But, it is really a shame they still didn't fix it.

@DanielHabenicht this is great, but it seems to remove my backdrop... 🤔 Upon removing the override the backdrop returns. Any idea how these are correlated?

For me,
.mat-dialog-content {
  height: 100%;
}

did the trick, when I have a set dialog height
const dialogConfig = new MatDialogConfig();
dialogConfig.height = '80%';

Hello,
is there any work on it from Angular developers? It is shown here that it is a known bug and a requested important feature.
Please help. Maybe with a good workaround... !?
Thanks!

.mat-dialog-actions {
  margin-top: auto;
}

The proposed fix didn't worked for me. Following code solved my case (when specifying height: '85vh' in this.dialog.open):
.mat-dialog-content {
  max-height: initial!important;
  height: calc(100% - 52px);
}

.mat-dialog-container {
  max-height: 90vh;
}

The bug is still present in Angular Material 13 😕

Leaving a comment to note that this is still a popular issue that devs want fixed please. Work-arounds are ugly.

Also jumping on here to say to be annoying this bug is still present

Using Angular 13. If I don't set the height of the dialog component then the dialog's action buttons are nicely positioned at the bottom of the dialog. However, when internal dialog's content changes size (say, tabs and each tab is different height) then the whole dialog window is resizing depending on the content. This is quite frustrating UX, so I'd have fixed the height of the dialog. With this, I get another issue, this time UI related, the action buttons sometimes end up in the middle of the dialog. The whole situation cannot be helped with the fact that styling dialogs without turning off viewEncapsulation isn't possible.

Also jumping on here to be annoying and say this bug is still present

Joining the queue. The proposed solutions in the comments are not satisfying at all.

It is now 5 years, and this is still an issue.

If you don't want to wait another 5 years to fix your issue here is what works for me with a fullscreen dialog:
open dialog config:
this.dialog.open(YourDialog, {
      maxWidth: '90vw',
      maxHeight: '90vh',
      width: '90vw',
      height: '90vh',
    });

modal style
      [mat-dialog-content] {
      // 32px is mat-dialog-title height
      // 68px is mat-dialog-actions height
        max-height: calc(100% - 32px - 68px);
      }

There is simpler css workaround for that, without adding additional html elements.
In your component html:

In your scss file for that component:
::ng-deep .mat-dialog-container {
  display: flex;
}
.dialog-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.dialog-container .mat-dialog-content {
  flex-grow: 1;
}

Who knew putting modal action buttons on the bottom of the page would be such a challenge? I guess I'll just use a bootstrap modal or something.

It works for me

Title

<mat-dialog-content></mat-dialog-content>
<mat-dialog-actions></mat-dialog-actions>

:host {
  height: 100%;
  display: flex;
  flex-direction: column;
}

mat-dialog-content {
  flex-grow: 1;
}

mat-dialog-actions {
  margin-top: auto;
}

stackblitz

It still happening at Angular 18?
Im with that error at Angular 15

Still hitting that bug with Angular 18...

It's still happened at Angular 19..


Add user_name to ConversationMessage and ConversationChatMessage

Description
Induce the user_name propertie in the types ConversationMessage and ConversationChatMessage
Type of change

[ ] Internal refactoring
[x] Bug fix (bugfix - non-breaking)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Code snippets
In case of new feature or breaking changes, please include code snippets.

0 files changed, @jpsantosbh

Good to close then, thanks.
Other PR probably added the changes to the main first


Installation Instructions [minor]

I just pulled and ran into some errors building:
~/BIDMat> ./sbt package
[info] Set current project to BIDMat (in build file:/home/kjameslubin/BIDMat/)
[warn] Credentials file /home/kjameslubin/.ivy2/.credentials does not exist
[info] Compiling 9 Scala sources to /home/kjameslubin/BIDMat/target/scala-2.11/classes...
[error] /home/kjameslubin/BIDMat/src/main/scala/BIDMat/JSON.scala:4: object cedarsoftware is not a member of package com
[error] import com.cedarsoftware.util.io.JsonWriter;
[error]            ^

etc...

It took me a minute to figure out that I needed to rerun ./getdevlibs.sh - and then it built without issue. Perhaps we should update INSTALLING.txt?
Something like:
Install from source:

Get requirements:
apt-get < reqs >

Clone repos:
git clone <repo name>

Get native libraries:
./getlibs.sh

Build:
./sbt package

Run:
cd scripts && bidmach workout.ssc

I have only installed from scratch on Ubuntu and OS X and could  produce instructions for them - though my OS X laptop is too old to "really" run the recent CUDA versions.

Sorry, this page is actually pretty thorough: https://github.com/BIDData/BIDMat/wiki/Installation but should be linked more prominently, I think.


Update create-use.md

Update per entity refresh limits,

Need to update docs ASAP on Dataflow limits (1 line)


Minor non functional changes

Jira
No need of JIRA. Just spelling fixes and .gitignore
Tests

[X] My PR does not need testing for this extremely good reason: Just spelling fixes and .gitignore

Cherry-picked to branch-1.11.  Thanks!


Tank class is getting too fat

We need to factor some of it out into new classes.
Some ideas for concepts that could be factored out:

Gamepad/movement vector ascertainment
Aspects of vehicular physics or movement.

Maybe the Tank entity should get its own folder, and we should at least split the concepts among multiple files.

I was looking into different patterns for this. I want to think about this carefully, as it will set a precedent for how we'll decompose large entities in the future.

TypeScript doesn't have syntax for traits or mixins. With an ugly utility function, mixins are added easily as a constructor step. Using the implements keyword against the mixed-in class should allow us to support proper typings even with DIY mixin syntax, which is good.

Another approach would be to avoid polymorphism or mixins for this, such that the class doesn't become bloated with members —we might want to prefer composition over inheritance here by cinching bloat off into little utility classes, which are instanced in the constructor.

I prefer approach 2 where it makes sense. Let's for example, factor the Tank code that deals with the KeyboardWatcher into a new class called something like a reusable Gamepad which itself utilizes a KeyboardWatcher and exposes intended directional vectors and the like. Then, other entities with similar controls — like a car — could feasibly utilize the same Gamepad as the tank. A helicopter however, might need its own Gamepad for gathering intended pitch/yaw rotations etc.

#22 depends on this ticket.


Failed to find config for scanner

Configuration
HA 2024.12.0 beta
Describe the bug
This error originated from a custom integration.
Logger: custom_components.bermuda
Source: custom_components/bermuda/log_spam_less.py:92
integration: Bermuda BLE Trilateration (documentation, issues)
First occurred: 10:57:03 (6 occurrences)
Last logged: 10:57:48
Failed to find config for scanner D8:3A:DD:E8:80:1C, this is probably a bug.
Failed to find scanner hci0 (D8:3A:DD:XXXXXX) (D8:3A:DD:XXXXXX) in Device Registry (1969 previous messages suppressed)
Failed to find config for scanner D8:3A:DD:XXXXXX, this is probably a bug. (1915 previous messages suppressed)
Failed to find scanner hci0 (D8:3A:DD:XXXXXX) (D8:3A:DD:XXXXXX) in Device Registry (433 previous messages suppressed)
Failed to find config for scanner D8:3A:DD:XXXXXX, this is probably a bug. (433 previous messages suppressed)
Diagnostics
Redacted

Thanks for the report!
I just tried this on my dev system and I'm not getting the error. Are you running Bermuda v0.7.2? There was an update to how the scanners are looked up in the device registry in that version.

Appears to have been fixed by https://github.com/agittins/bermuda/commit/8f905a4000b5632b6a3971463775bacbeeed624d


Custom ordering of items on the navigation table

As a user, I want to specify the order of items on the navigation table so that more important pages are displayed to the documentation reader first.
The user currently can't control the ordering of items on the navigation table. The current behaviour is fine for an alpha version and it will be interesting to see if there is user feedback on this ordering to indicate how important it is to users. The other reason a better way hasn't been implemented is because I haven't seen a good way of doing this. Sphinx relies on the user writing something similar to a navigation table, although it means that certain things need to match across different files which is not easy for the user. It is also easy to miss things and then documentation doesn't show up. The best I can think if is including optional files (like .priority or something like that) in directories to indicate ordering. If those files aren't present, revert back to the default behaviour and warn users if there are mismatches. Not clean as it requires a bunch of different files which are easy to forget about and also requires learning some syntax.

Couldn't we use a folder / file number prefix to enforce some ordering something like:
1.Tutorials
-> 1.bootstraping.md
-> 2.configuration.md
2.How to ?
-> 1.Maintenance
->->1.restart.md
->->2.upgrade.md
-> 2.Decomission
...

That is a possibility. The impact would be that, for directory names and for some file names (where the files are empty), the directory/ file name already is used as the name to display on the navigation table which ends up being what the user can see. This is not ideal (e.g., it means that it currently isn't possible to name something on the navigation table How-to ... because this would get replaced with How To ... which isn't a disaster although could still be improved.
The options and impact so far:

Have a file that can control the order of all the items on the navigation table.

This is how it works for sphinx so users may be familiar with this approach
Easy to see what the result of the ordering
It means the user has to match the file and directory names to something in another file. It is easy to make a mistake and forget something.

Include optional ordering information in the file name

Easy for the user to do
It isn't clear whether the user intended the ordering information to be part of the title the documentation reader should see or whether they intended it to be used for ordering items on the navigation table

Support an optional metadata file in each of the directories (including docs) with information about ordering

Similar to the approach that other documentation solutions use such as sphinx
User still has to match information in a separate file although it is closer to what they have to match to
Getting a wholistic view of the result of the ordering is not as easy
This is extensible to support other metadata such as picking the title on the navigation table

Well I fully agree with your analysis... now it's a matter of picking an option taking that pro and cons in concideration


Implementation of Record Lists

This is a fix for #407. Please note that this change is based on #411 so it will appear to contain somewhat unrelated changes actual changes related to only this feature are:
https://github.com/Gozala/immutable-js/compare/sub-records...Gozala:list-record

For now I just did some manual testing as I'm having issues with running tests locally (see #412 for details) and I need to crash. Will submit actual test for this feature tomorrow.

Considering that Record.List's constructor returns a List. I'm not convinced this warrants being a new type of collection. Instead what it looks like you want to do is build a smarter kind of fromJS which is aware of a schema of Records, Lists (and Maps, Sets).
I would recommend re-framing this as a standalone function which takes two arguments: the "shape" of the data to construct and the input js object data that returns a tree of Immutable collections in the appropriate shape.

Considering that Record.List's constructor returns a List. I'm not convinced this warrants being a new type of collection. Instead what it looks like you want to do is build a smarter kind of fromJS which is aware of a schema of Records, Lists (and Maps, Sets).

That is not entirely correct, RecordType.List() returns a subclass of the List, which is indeed a List but it's .push() .pop() etc have different behavior in that they do add instances of RecordType. This does enables you to define polymorphic operations over lists that don't need to be RecordType specific that this list consists of. In other words parsing JS at the construction is a part of it indeed, but there is more to this than just that.
I do agree though that other types (but Maps) should probably have it as well.

Thank you for reporting this issue and appreciate your patience. We've  notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.

Hey, I think this pull request has essentially timed out. Sorry! I am going to close it but if you are still interested in it enough to rebase and poke around to see if it still makes sense then please feel free to reopen.


check 27

lineares Glelichungssystem - again. A lot of cases, this is always taking some time

done


[Feature] Homescreen stack widgets

Hello, first of all I wanted to say that this is a really great app.
Perhaps this is out of the scopes for this app, but I realized something recently. The lockscreen widgets features allows multiple widgets by swiping left and right which is effectively stacked widgets. For homescreen/launchers this is a feature limited to iOS and a few Android OEMs. I think that, if possible, it would be really neat for the app to allow the stacked widgets feature that it already has but as a homescreen widget. It would offer the unique ability to expand this feature to many phones/launchers that don't support stack widgets.
One limitation I might see would be the launcher's limitation for widgets to take left/right swipes on widgets as inputs, but I think this could be fixed by making it an up/down swipe to change widgets. This would function sort of like a pseudo-scroll up/down since scrolling up/down is possible for widgets on pretty much any android phone launcher.
Again, I think this would be a useful extension to the app since it already has a bit of that functionality built up. But those are just my two cents.

I would absolutely love to see this. It's almost certainly out of the scope of this app, but I'd still use it!

+1!!
We've all been hoping the new Nova release would have stackable widgets but sadly the didn't do it maybe you should collaborate with them teach them how to code 🔥🤣 kidding of course Nova is the shit ✊

Proxying widgets through another widget isn't really possible to do, unfortunately.

I would echo the other views. Would be great to have a stackable widgets on the home screen.
Action Launcher, Samsung OneUI and Niagara Launcher have it. Does it need a launcher to enable such a feature ?

Widgets aren't like normal view layouts in Android. They use a different system for remotely defining layouts that a widget host can then instantiate. That means the app providing a widget has no direct control over how that widget is actually displayed or created. Launchers can show widgets in stacks if they want because they have direct control over the view hierarchy and can instantiate and group widget layouts.
Actions performed on the widgets are sent back to their respective providers to perform any logic and request any layout updates. There's just too much separation of logic for a widget proxy to be practical.


Question - Change the animation behavior

How do I change the animation behaviour? I don't want the items that are coming in our out of screen to be resized during but instead keep the same size.

The question has been answered numerous time.
You'll find your answer in the props documentation.

Yes, I have read that part again and again and I still don't understand how to change it from coming from behind to being the same size as the items.

inactiveSlideScale={1}


Eliminate duplication of field names

Eliminate duplication of field names.  Currently adding/modifying a field requires changes in multiple locations, and the code itself is lengthy (we have unrolled loops in various places).  The elimination would make it much easier to modify, as well as have more confidence that it's correct.
E.G., in the model's validator rules, switch to a simple loop to enforce all the validations, something like:
  [:beds, :baths].each do |column|
    validates column, allow_blank: true, length: { maximum: 25 }
  end

Credit for the loop: Ken Stipek, http://stackoverflow.com/questions/9794652/rails-3-apply-the-same-validation-rules-to-multiple-table-fields
Eliminate the Javascript duplication also.  We could do this by generating Javascript code via ERB, but I'm currently planning on just generating new classes and modifying the Javascript code to depend on the classes.
All of the field information should be in a single data structure. I'd suggest that the data structure be a hash of criteria names => [array of data about them], where the array is ["MUST|SHOULD|SUGGESTED" "N/A"-if-na].  The data structure would be in the model (since this describes the model).

We have essentially achieved this through a large number of specific commits, each of which focused on improving things just a little bit. I am sure that things can always be improved, but I think we met the essence of this, so I'm going to close this.


Unschedulable: 0/2 nodes are available: 2 pod has unbound immediate PersistentVolumeClaims.

After the Ubuntu OS format and Installed kuberentes and Argo,
when i run the pvc-related template provided by Argo, A message is coming out.
message : Unschedulable: 0/2 nodes are available: 2 pod has unbound immediate PersistentVolumeClaims.
I am attaching the log.
│ Events:                                                                                │
│   Type     Reason            Age   From               Message                                                                                │
│   ----     ------            ----  ----               -------                                                                                │
│   Warning  FailedScheduling  21m   default-scheduler  0/2 nodes are available: 2 pod has unbound immediate PersistentVolumeClaims.                                                                      │
│   Warning  FailedScheduling  20m   default-scheduler  0/2 nodes are available: 2 pod has unbound immediate PersistentVolumeClaims.
LOG
time="2022-08-02T02:05:43.612Z" level=info msg=healthz age=5m0s err="" instanceID= labelSelector="!workflows.argoproj.io/phase,!workflows.argoproj.io/controller-instanceid" managedNamespace=argo
time="2022-08-02T02:05:44.577Z" level=info msg="Alloc=9707 TotalAlloc=53703 Sys=35921 NumGC=19 Goroutines=166"
time="2022-08-02T02:05:44.809Z" level=info msg="Performing periodic workflow GC"
time="2022-08-02T02:05:44.810Z" level=info msg="Deleting old offloads that are not live" len_wfs=0
time="2022-08-02T02:05:44.810Z" level=info msg="Workflow GC finished"
time="2022-08-02T02:05:47.214Z" level=info msg="Get leases 200"
time="2022-08-02T02:05:47.218Z" level=info msg="Update leases 200"
time="2022-08-02T02:05:47.603Z" level=info msg="Processing workflow" namespace=argo workflow=volumes-pvc-tflk4
time="2022-08-02T02:05:47.603Z" level=info msg="Task-result reconciliation" namespace=argo numObjs=0 workflow=volumes-pvc-tflk4
time="2022-08-02T02:05:47.603Z" level=info msg="node changed" namespace=argo new.message="Unschedulable: 0/2 nodes are available: 2 pod has unbound immediate PersistentVolumeClaims." new.phase=Pending new.progress=0/1 nodeID=volumes-pvc-tflk4-339652589 old.message= old.phase=Pending old.progress=0/1 workflow=volumes-pvc-tflk4
time="2022-08-02T02:05:47.603Z" level=info msg="Workflow step group node volumes-pvc-tflk4-205260336 not yet completed" namespace=argo workflow=volumes-pvc-tflk4
time="2022-08-02T02:05:47.603Z" level=info msg="TaskSet Reconciliation" namespace=argo workflow=volumes-pvc-tflk4
time="2022-08-02T02:05:47.603Z" level=info msg=reconcileAgentPod namespace=argo workflow=volumes-pvc-tflk4
time="2022-08-02T02:05:47.603Z" level=info msg="Workflow to be dehydrated" Workflow Size=2257
time="2022-08-02T02:05:47.607Z" level=info msg="Update workflows 200"
time="2022-08-02T02:05:47.607Z" level=info msg="Workflow update successful" namespace=argo phase=Running resourceVersion=10835 workflow=volumes-pvc-tflk4
time="2022-08-02T02:05:52.222Z" level=info msg="Get leases 200"
time="2022-08-02T02:05:52.224Z" level=info msg="Update leases 200"
time="2022-08-02T02:05:57.233Z" level=info msg="Get leases 200"
time="2022-08-02T02:05:57.236Z" level=info msg="Update leases 200"
time="2022-08-02T02:06:02.240Z" level=info msg="Get leases 200"

Please fill out the issue template.

Please fill out the issue template.

https://github.com/argoproj/argo-workflows/blob/master/examples/volumes-pvc.yaml
In addition to this link, the volumeClaimTemplates related functions all output the same message

I use volumeClaimTemplates with AWS cloud and all works properly.
This is my workflow configuration:
volumeClaimTemplates:
  - metadata:
      name: workdir
    spec:
      accessModes: [ "ReadWriteOnce" ]
      resources:
        requests:
          storage: 5Gi

I use volumeClaimTemplates with AWS cloud and all works properly.
This is my workflow configuration:
volumeClaimTemplates:
  - metadata:
      name: workdir
    spec:
      accessModes: [ "ReadWriteOnce" ]
      resources:
        requests:
          storage: 5Gi

Thank you for your answer.
I also work well on AWS EKS.
However, in the bare metal environment, it comes out like the above message.
Is there an impact with the Kubernetes platform?


Allow custom colors for item backgrounds

Kinda like the "Save & Continue" item in the GTA Online Character Creator.


Exposing nap.uri

From @grancalavera on July 13, 2015 17:49
Allowing to interpolate values into uri patterns with a separate api.We are creating this API because in some cases we need to be able to interpolate patterns independently of the existing resources.
Copied from original issue: sammyt/nap#20

Hey @grancalavera, could you explain the use case a bit further?

From @grancalavera on Aug 10 20:41
Given you have a params object and a ptn uri pattern, with this change you can render a new uri independently of any existing web:
var myUri = nap.uri(aPattern, someParams)

There is some noise in the pull request generated by whitespace changes, which I can remove if necessary. Besides that, the main change consists in extracting web.uri to allow using uri when there is not a reference to a web available.
In our application, web is an internal detail, and can't be accessed using a public API. In some cases, we need to render uri patterns, and we want to ensure the same API is used everywhere an uri pattern needs to be rendered. As such, we want to expose nap's uri directly.

I have a gut feeling that this shouldn't actually be a feature that's part of nap, but touches on a larger discussion of nap and its responsibilities and whether or not some things should be broken out in to other modules. In the interest of progress I'll merge this once #22 is merged, not least of all since it's already in use.

From @grancalavera on Sep 18, 2015 20:05
I've been thinking the same myself. Should this be part of thumb?

On 18 Sep 2015, at 17:36, Marcus Stade<EMAIL_ADDRESS>wrote:
I have a gut feeling that this shouldn't actually be a feature that's part of nap, but touches on a larger discussion of nap and its responsibilities and whether or not some things should be broken out in to other modules. In the interest of progress I'll merge this once #22 is merged, not least of all since it's already in use.
—
Reply to this email directly or view it on GitHub.

Maybe, but actually I think rhumb is overreaching in its remit as well. I opened up an issue there about URI templates, which is probably related here. Feel free to look at it (sorry, on the phone now so can't look up the link) and comment. When I'm on my laptop again I'll write something a bit more reasoned. :o)

Closing because obsolete.


Add a cargo command for performing both packaging and a pack build

When developing a buildpack there are a few ways to iterate, that all have their place:

Via compiler + Clippy + unit test feedback
Via libcnb-test powered integration tests
Via cargo libcnb package followed by pack build with the correct arguments

Currently (3) requires quite a bit of boilerplate, for example:
cargo libcnb package && pack build --builder heroku/builder:22 --pull-policy if-not-present --path tests/fixtures/empty_procfile/ --buildpack target/buildpack/debug/heroku_procfile procfile-test

In addition, this is also error prone, since it's easy to accidentally point at the wrong compiled buildpack directory (for example release instead of debug), or a leftover previous build (as happened recently with @schneems).
One way to make this workflow easier would be to have a cargo libcnb run (or similar) command, that effectively performed both the cargo libcnb package followed by the pack build with suitable --buildpack arguments. For bonus points this command could clean up the old image (or not, depending on args).

As an added bonus, if we were to add a cargo libcnb run command, we could then perhaps make cargo libcnb package default to --release (given the primary use-case of that command would be for production), thereby fixing #359.


[Chore] Registers the TreeStore onto the bus

Description
tl;dr- a one-liner that registers the TreeStore submodule to the bus.
This was enabled by a change made in #855 after the TreeStore was modularized that creates a concrete Submodule implementation and allows them to be passed to the bus registration function like full modules. This PR updates the TreeStore to take full advantage of that submodule interface change and expose it on the bus for use in external modules, e.g. the IBC module.
Issue
References a discussion abodut submodules and bus registration brought up during #808
Updates the TreeStore submodule to register itself on the bus as a submodule which was enabled by #855
Type of change
Please mark the relevant option(s):

[ ] New feature, functionality or library
[ ] Bug fix
[x] Code health or cleanup
[ ] Major breaking change
[ ] Documentation
[ ] Other

List of changes

Registers the TreeStore submodule on the main bus

Testing

[x] make develop_test; if any code changes were made
[x] make test_e2e on k8s LocalNet; if any code changes were made
[ ] e2e-devnet-test passes tests on DevNet; if any code was changed
[ ] Docker Compose LocalNet; if any major functionality was changed or introduced
[ ] k8s LocalNet; if any infrastructure or configuration changes were made

Required Checklist

[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have added, or updated, godoc format comments on touched members (see: tip.golang.org/doc/comment)
[ ] I have tested my changes using the available tooling
[ ] I have updated the corresponding CHANGELOG

If Applicable Checklist

[ ] I have updated the corresponding README(s); local and/or global
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added, or updated, mermaid.js diagrams in the corresponding README(s)
[ ] I have added, or updated, documentation and mermaid.js diagrams in shared/docs/* if I updated shared/*README(s)

Superseded by


Improve Documentation

I am not to familiar with tool like this and I am not able to use it based on the current documentation. I want to observe the requests and responses between Postman and a simple RestController (want to fiddle around with OAUTH) and tried to configure the VM options you named as a Run/ Debug Configuration in IntelliJ - it does not work.
Questions:

Could you provide a simple step by step example
Screen shots not so much of the output but of the config would be helpful
You do not explain the meaning of the parameters one can configure. I presume the ProxyPort is the one I access to Postman, the http Port is the one, your plugin redirects to and my Rest Controller would listen on? What ist the meaning of NonProxyHosts and why is there a blank config in your example
All I ever get is "Bad Request to URI: /users/status/check"

Just talked to a colleague and he pointed out, I got the concept of a proxy wrong. I try to observe, what is coming into my application as a request - so I would have to configure Postman, not my app.


Built-in Exception Handling

This fork is using built-in exception handler aka "__C_specific_handler" by overriding it.

First, I thought it might brick the code like calling "__try" or "__except" from other areas but when there is no crt it made possible.
I know we can rebuild the original "__C_specific_handler" then adding our exception conditions is fully safe but we need to fight for other imports like "RtlUnwindEx" and it can be easily get detected.
Second, for the debug registers we can switch to page guard method but I do like to listen your opinion. And yes, I tested for this method and it worked.


Allow adding class to a template tag div

Adds class as a template tag parameter.
Additionally, unpinned Twisted to the latest version due to them fixing Django Channels issues. Version <21 was having install issues on Windows.

@rmorshea I'm getting exceptions on all tests, seemingly related to selenium. Do you have any input on this?

The issue you're reporting seems like a bug in channels? https://github.com/django/channels/issues/1207

Is there a known set of broken versions where we can just say !=x.y.z in hopes the next releases contain fixes? Alternatively, if a fix is not on the horizon, then just doing <x.y.z so we can keep things moving on our end.

I tested 3.0.0 to 3.0.4, all of which have the same issues. So looks like the issue may not be in the core channels repo. I'll begin testing different versions of ASGI-Ref to see if I can find a valid working build.

Was unsuccessful in finding a valid configuration. Tested the following
Django 3.2.4 - 3.2.7
Channels 3.0.0 - 3.0.4
asgiref 3.3.0 - 3.4.1

I'm not entirely sure what to do here. I wish I'd done a verbose pip install so I could see what versions of everything got installed. Perhaps I can do a pip freeze on my local machine to see what the state is there so we can tease out what's causing this.

Below is the state of my virtual environment as I think it was in the last successful CI run:

pip freeze

aiofiles==0.7.0
anyio==3.1.0
appdirs==1.4.4
argcomplete==1.12.3
asgiref==3.3.4
attrs==21.2.0
autobahn==21.3.1
Automat==20.2.0
black==21.6b0
bleach==4.0.0
certifi==2021.5.30
cffi==1.14.5
channels==3.0.3
chardet==3.0.4
click==7.1.2
click-spinner==0.1.10
colorama==0.4.4
colorlog==5.0.1
commonmark==0.9.1
constantly==15.1.0
cryptography==3.4.7
daphne==3.0.2
distlib==0.3.2
Django==3.2.5
-e git+ssh://git@github.com/idom-team/django-idom.git@5d611285c8e628ca2511139ef9b1b750e7a54c38#egg=django_idom
django-npm==1.0.0
docutils==0.17.1
fastjsonschema==2.15.1
filelock==3.0.12
flake8==3.9.2
h11==0.8.1
h2==3.2.0
hpack==3.0.0
httpcore==0.3.0
httptools==0.2.0
hyperframe==5.2.0
hyperlink==21.0.0
idna==2.10
idom==0.31.0
importlib-metadata==4.6.4
incremental==21.3.0
isort==5.8.0
jeepney==0.7.1
jsonpatch==1.32
jsonpointer==2.1
keyring==23.1.0
mccabe==0.6.1
multidict==4.7.6
mypy-extensions==0.4.3
nox==2021.6.6
packaging==20.9
pathspec==0.8.1
pkginfo==1.7.1
py==1.10.0
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycodestyle==2.7.0
pycparser==2.20
pyflakes==2.3.1
Pygments==2.9.0
PyHamcrest==2.0.2
pyOpenSSL==20.0.1
pyparsing==2.4.7
pytz==2021.1
readme-renderer==29.0
regex==2021.4.4
requests==2.25.1
requests-async==0.5.0
requests-toolbelt==0.9.1
rfc3986==1.5.0
rich==10.3.0
sanic==19.9.0
Sanic-Cors==0.10.0.post3
Sanic-Plugins-Framework==0.9.5
SecretStorage==3.3.1
selenium==3.141.0
service-identity==21.1.0
six==1.16.0
sniffio==1.2.0
sqlparse==0.4.1
toml==0.10.2
tqdm==4.62.1
twine==3.4.2
Twisted==20.3.0
txaio==21.2.1
typer==0.3.2
typing-extensions==<IP_ADDRESS>
ujson==4.0.2
urllib3==1.26.5
uvloop==0.15.2
virtualenv==20.4.7
webencodings==0.5.1
websockets==8.1
zipp==3.5.0
zope.interface==5.4.0

I'll go down that list and try to narrow down what package broke our tests.

I installed all of those versions, minus uvloops and twisted due to windows compatibility and still am getting the same errors when running python manage.py test.
Very odd bug 🤔

Here's the virtual env that I ran the tests in:

pip freeze

anyio==3.3.0
asgiref==3.4.1
attrs==21.2.0
autobahn==21.3.1
Automat==20.2.0
certifi==2021.5.30
cffi==1.14.6
channels==3.0.4
charset-normalizer==2.0.4
constantly==15.1.0
cryptography==3.4.7
daphne==3.0.2
Django==3.2.6
django-idom @ file:///home/ryan/Repositories/idom-team/django-idom
fastjsonschema==2.15.1
hyperlink==21.0.0
idna==3.2
idom==0.31.0
incremental==21.3.0
jsonpatch==1.32
jsonpointer==2.1
mypy-extensions==0.4.3
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycparser==2.20
PyHamcrest==2.0.2
pyOpenSSL==20.0.1
pytz==2021.1
requests==2.26.0
selenium==3.141.0
service-identity==21.1.0
six==1.16.0
sniffio==1.2.0
sqlparse==0.4.1
Twisted==20.3.0
txaio==21.2.1
typing-extensions==<IP_ADDRESS>
urllib3==1.26.6
zope.interface==5.4.0

Doesn't look significantly different though :confused:

I created a new environment and manually downgraded the packages specified above, same error was provided.
Might be two separate issues. one being Windows incompatibility of multiprocessing pickling operations.

@rmorshea I confirmed the issue.
IDOM v0.31 works, but v0.32 broke something critical that causes a django-idom timeout.
Separately, the django channels test suite is just generally broken on Windows (not our fault).

So idom-client-react changed on the JS side. Thankfully though, I've synchronized the versions for the JS client and the main IDOM library. I think what we'll want to do here is to pin the version of IDOM and the JS client or, at the very least, limit it to a specific range.

Do you think this case is a valid argument for moving the django-idom source into the main idom repo for the sake of continuous integration?
Would result in quicker detection of impacted builds.

It would do that, but I think this project, along with those for integrating with Jupyter/Dash/etc, are so different from the core library that it wouldn't make sense.
I created #11 to address this specific version issue.

Just roll back that last commit and rebase off of main and things should work again.

Still having some issues, might be related to Windows?
Here's the steps I went through:

Merged main into this branch
Recreated venv
Ran pip install -e . -r requirements.txt
cd tests
python manage.py runserver

Am currently getting console errors related to react.
<IP_ADDRESS>/:1 Uncaught TypeError: Failed to resolve module specifier "react". Relative references must start with either "/", "./", or "../".

Hmm. Rollup, as per this config should have resolved that import during the JS build process. I'm really unfamiliar with Rollup, so I don't know if there are Windows pitfalls that I didn't account for.

I don't think that needs to block the PR from merging though since it's something that should only occur for people trying to install a dev version on Windows. If it happened on other platforms then CI should have broken too.
Maybe as a separate PR we can try to get CI on windows working?

Feel free to merge whenever you're ready though (I think you should have permissions to do that).


Azure Functions error handling fixes

Proposed changes
This addresses a few issues in Azure Functions support related to error handling:

Any unhandled exception thrown by app or framework code would cause the function to hang, due to context.done not being called.
If the file persistence provider couldn't create db.json (which would happen when an Azure Function was run using Run From Package enabled, which makes the filesystem read-only), due to a bug in promise handling in Jovo.loadUserDataOnRequest the app would hang due to the promise never being resolved or rejected.
Added a warning as well as comments in the Azure Functions example around using file persistence in Azure Functions and how to disable it.

Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist

[x] My code follows the code style of this project
[ ] My change requires a change to the documentation
[ ] I have updated the documentation accordingly
[ ] I have added tests to cover my changes
[x] All new and existing tests passed

@ trevorwang, CC'ing you since it looks like you added the original support

@trevorwang, CC'ing you since it looks like you added the original support (thank you!!).

Thanks! We'll take a look today


huntr.dev - Command Injection - (CWE-77)

This issue has been generated on-behalf of Mik317 (https://huntr.dev/app/users/Mik317)
Vulnerability Description
I would like to report an RCE issue in the node-dig-dns module. It allows the execution of arbitrary commands remotely inside the victim's PC.
The issue occurs because a user input is formatted inside a command that will be executed without any check. The issue arises here: https://github.com/StephanGeorg/node-dig-dns/blob/master/src/index.js#L6
Steps To Reproduce:

Create the following PoC file:

// poc.js
var dig = require('node-dig-dns');

dig([],{'dig':'ls'})
  .then((result) => {
    console.log(result)
  })
  .catch((err) => {
    console.log('Error:', err);
  });

Execute the following commands in another terminal:

npm i node-dig-dns # Install affected module
node poc.js #  Run the PoC

The output will show you the result of the ls command {F605976}

Please, note the vulnerability occurs only with a mono command, making the commands to be executed more difficult and a little impactful. Anyway, Linux is a complex ecosystem, where commands like shutdown can be used in any way to make the PoC work and a bit better.
Bug Bounty
We have opened up a bounty for this issue on our bug bounty platform. Want to solve this vulnerability and get rewarded 💰? Go to https://huntr.dev/

Please see https://github.com/StephanGeorg/node-dig-dns/pull/7 for a suggested fix! 🍰


First Launch

How should i make the intro pages to appear only on first launch??

Basically what you need is some sort of persistent storage where you can check if the app has been opened before. One way is to set some value to true in AsyncStorage on first launch. If a key (e.g. 'hasBeenOpened') doesn't exist, if is the first time the app is launched, otherwise it is not.
You can check #18 to see an example of how to conditionally show the intro pages.
Since this is not an issue with the library I'm going to close it. If you need general help with React Native I would suggest StackOverflow.


Paprefs does not work

Issue description
Attempting to enable virtual output for all devices in paprefs does not work in KDE.
Steps to reproduce
See #47938
Technical details

system: "x86_64-linux"
host os: Linux 4.18.12, NixOS, 19.03pre154487.0a7e258012b (Koi)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.1.3
channels(root): "nixos-19.03pre154487.0a7e258012b, nixpkgs-19.03pre153206.f753852e11d"
channels(okina): ""
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Both the KDE audio settings and paprefs probably call gconf for this, so it might make sense that paprefs wouldn't work either if the KDE settings don't.

paprefs 1.0 use GSettings module (with dconf backend). Also, since it works in GNOME, and it only relies on the dconf service, there is no reason it should not work in Plasma.

Same here. I used this as a workaround:
programs.dconf.enable = true
environment.systemPackages = [
  gnome3.dconf
  ...
];

Workaround by @knedlsepp only enables "papref" to unlock the simultaneous inputs. The multimedia menu does not change (greyed out).
Here is perhaps some interesting output when opening the settings panel, going into multimedia -> audio volume -> advanced :
$ LC_ALL=C systemsettings5
QCoreApplication::arguments: Please instantiate the QApplication object first
org.kde.kcoreaddons: Error loading plugin "kcm_pulseaudio" "The shared library was not found."
Plugin search paths are ("/home/userp/lib/qt-5.11/plugins", "/run/wrappers/lib/qt-5.11/plugins", "/home/userp/.nix-profile/lib/qt-5.11/plugins", "/nix/var/nix/profiles/default/lib/qt-5.11/plugins", "/run/current-system/sw/lib/qt-5.11/plugins", "/etc/profiles/per-user/userp/lib/qt-5.11/plugins", "/nix/store/5cjn62rjzwwhnpdlklj3pk4is10k7pjb-phonon-backend-gstreamer-qt4-4.9.0/lib/kde4/plugins", "/nix/store/jn99ng2nmwrjamhljywfxx72qsh3iv52-systemsettings-5.13.4-bin/bin")
The environment variable QT_PLUGIN_PATH might be not correctly set
WARNING: Cannot find style "org.kde.desktop" - fallback: "/nix/store/4wx5hzkxyl79xnzrwcjvn1ax7gjyw697-system-path/lib/qt-5.11/qml/QtQuick/Controls/Styles/Desktop"
org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_03_02.0.analog-stereo.monitor"
GConf Error: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details -  1: GetIOR failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.GConf was not provided by any .service files)
GConf Error: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details -  1: GetIOR failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.GConf was not provided by any .service files)
GConf Error: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details -  1: GetIOR failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.GConf was not provided by any .service files)
Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details -  1: GetIOR failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.GConf was not provided by any .service files)
Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details -  1: GetIOR failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.GConf was not provided by any .service files)

Closing as there is not much we can do about dconf dependency.

Added a NixOS wiki reference: https://nixos.wiki/wiki/PulseAudio#Paprefs_doesn.27t_work_on_KDE


Add #[automatically_derived] to generated code

The #[automatically_derived] attribute is used to indicate that the code was generated by a derive macro and should not be checked by linters. See stackoverflow
Adding the attribute might also fix:

https://github.com/idanarye/rust-typed-builder/issues/112
https://github.com/idanarye/rust-typed-builder/issues/113

automatically

It doesn't fix them (I checked), but I'll add it anyway.


BUG: Multi-row insert not assigning generated id into property

MyBatis doesn't assign generated id into property on multi-row insert.
This mapping not working. id property is always null. But MyBatis doc tells that this mapping should work. So it's bug:
Method signature in mapper interface:
void insertTwitters(@Param("twitters") List<Twitter> twitters);
XML mapper:
<insert id="insertTwitters" keyColumn="id" keyProperty="id" useGeneratedKeys="true">
            INSERT INTO twitter.twitter (message_id, message_symbol_id)
            VALUES
            <foreach item="item" collection="twitters" separator=",">
                (#{item.message.id}, #{item.messageSymbol.id})
            </foreach>
    </insert>

I found workaround which works. Just need to remove Param annotations from mapper interface and set parameterType="list" in insert and collection="list" in foreach nodes in XML mapper.
Method signature in mapper interface (without param anotation):
void insertTwitters(List<Twitter> twitters);
XML mapper:
<insert id="insertTwitters" parameterType="list" keyColumn="id" keyProperty="id" useGeneratedKeys="true">
            INSERT INTO twitter.twitter (message_id, message_symbol_id)
            VALUES
            <foreach item="item" collection="list" separator=",">
                (#{item.message.id}, #{item.messageSymbol.id})
            </foreach>
    </insert>

So if I use old-fashioned way without Param annotations and named arguments then MyBatis assign generated id into property. But if I'm using modern way with named arguments then id property is always null.
I'm using PostgreSQL 10, JDK 9 and MyBatis 3.4.5

It is by design.
If you want to set the generated keys to a list parameter, the parameter name must be "list".
Adding @Param("list") works as well (this is mandatory when there are multiple parameters).
As we have received the same reports several times already, we should add a note on the document.

Seems it's bad design. I suggest to implement it as expected.

What would you expect when there are multiple parameters?
void insert(
  @Param("twitters") List<Twitter> twitters,
  @Param("twinkies") List<Twinkie> twinkies);

<insert id="insert" keyColumn="id" keyProperty="id" useGeneratedKeys="true">
...

Seems it's bad design. I suggest to implement it as expected.

I think so

@lovepoem ,
What I meant was, when there are multiple parameters, MyBatis cannot decide which parameter to set the generated keys to (i.e. is it Twitter.id? or Twinkie.id?).

What I meant was, when there are multiple parameters, MyBatis cannot decide which parameter to set the generated keys to (i.e. is it Twitter.id? or Twinkie.id?).

For this problem, your handling is reasonable. But new comers often do not know the "list" configuration, how to clearly mark it in the document？ @harawata

this problem is solved?

@harawata Answered here. https://github.com/mybatis/mybatis-3/pull/1196

Sorry about the lack of response.
I actually submitted a PR #1249 a while ago.
But there are a few backward incompatible changes and I'm not so sure if it's a good patch or not.
Comments and suggestions are welcome.

Sorry about the lack of response.

I actually submitted a PR #1249 a while ago.
But there are a few backward incompatible changes and I'm not so sure if it's a good patch or not.
Comments and suggestions are welcome.
I think it look good to me

Thank you @lovepoem for the feedback!
I have merged #1249 .
To all,
Please test the change with the latest 3.5.0-SNAPSHOT and let us know if there is any problem.

this issue had been solved


fix: disable value check

The last PR was merged, but we still don't have it enabled in indexer-agent. Disabling for now

Pull Request Test Coverage Report for Build<PHONE_NUMBER>2
Details

0 of 1 (0.0%)  changed or added relevant line in 1 file are covered.
11 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.01%) to 74.356%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

common/src/tap.rs
0
1
0.0%

Files with Coverage Reduction
New Missed Lines
%

common/src/tap.rs
1
0.0%

common/src/tap/checks/value_check.rs
10
90.95%

Totals

Change from base Build<PHONE_NUMBER>0:
-0.01%

Covered Lines:
5196

Relevant Lines:
6988

💛  - Coveralls


[RISCV] Implement C Extension

This PR adds support for the RISCV C Extension to Microprobe.
For this implementation to work it was necessary to remove two (unusued) sanity checks.

A masked value was tested to be different than 0, which is no longer true for some of the instructions in this extension of the architecture.
A check to make sure only one mnemonic could match the codification of an instruction. This was done before the different operands are tested. This check is removed because depending on the operands, one codification can be decoded to one instruction or another (e.g. if the register src being used is x2 then it is instruction A, otherwise it will be instruction B).

It also includes some minor improvements of RISCV instruction codification fixes.

It looks like there was a problem with the CI build system, it got stuck in one of the build steps. Is there a way to retry the CI steps?

It looks like there was a problem with the CI build system, it got stuck in one of the build steps. Is there a way to retry the CI steps?

@ArnauBigas I just restarted a new CI run

@ArnauBigas I just restarted a new CI run


DATA: Create an automated tool to regularly gather the equations from Equations.lean and AllEquations.lean and output them to a text file that is easy for machines to read

This would presumably already be a byproduct of #29, but is worth isolating separately.  The model here is that Equations.lean and AllEquations.lean represent the ground truth of the universe of equations/laws under consideration, so that new equations can be added to the universe by updating the lean files accordingly

Currently #126 only considers equations that appear in some implications, so this will require some change

It would also be nice to have a separate file that only lists the implications and anti implications on the equations defined just in Equations.lean

Recently, Equations 28393, 374794, and 5105 have appeared in the output of lake exe extract_implications breaking some of my tools as they expected all equations to be in AllEquations.lean (I parse out the ones that are commented there as well.) That's probably a fault of my tooling, but also a good reason to do this to make it easier. Everyone can load a JSON.

That also broke some of my tools. I could add a Lean script to extract the equations, what would be a good I/O for it?

If you mean an output format, just a JSON hash seems easy for everyone to consume. Are you thinking of including it in extract_implications or somewhere else?

I think extract_implications already does a lot of things, it's better to make another script.
By output format I meant how to describe the equations. Is something like {"Equation3": [0, [0, 0]], "Equation4": [0, [0, 1]]} good? Would it be better to have {"Equation3": "x = x ◇ x", "Equation4": "x = x ◇ y"}? Something else?

As a short term fix one can of course add these equations in commented form to AllEquations.lean, and also add a note sonewhere in CONTRIBUTING.md requesting that one add the commented equation to AllEquations.lean whenever adding a novel equation to Equation.lean as a courtesy.

I think extract_implications already does a lot of things, it's better to make another script. By output format I meant how to describe the equations. Is something like {"Equation3": [0, [0, 0]], "Equation4": [0, [0, 1]]} good? Would it be better to have {"Equation3": "x = x ◇ x", "Equation4": "x = x ◇ y"}? Something else?

Personally, I'd go for the simpler textual form since lots of tools just need to display them, but there's nothing stopping you from having it be "Equation3": { "text": "x = x", "ast": [0, [0, 0]] }

disclaim

claim

propose PR #429

I get the following build error on lake exe export_equations on main:
error: ././././scripts/export_equations.lean:27:39: application type mismatch
  Json.arr fun h ↦ Subtype.map (fun x ↦ ?m.281 x) h laws
argument
  fun h ↦ Subtype.map (fun x ↦ ?m.281 x) h laws
has type
  (∀ (a : RBNode Name fun x ↦ Unit), RBNode.WellFormed Name.quickCmp a → ?m.273 ((fun x ↦ ?m.281 x) a)) →
    Subtype ?m.273 : Sort (max 1 ?u.261)
but is expected to have type
  Array Json : Type
error: ././././scripts/export_equations.lean:27:52: invalid constructor ⟨...⟩, expected type must be an inductive type with only one constructor
  RBNode Name fun x ↦ Unit
error: Lean exited with code 1
Some required builds logged failures:
- scripts.export_equations
error: build failed


Provide a mechanism for general query of services state

Services need to be able to communicate state information for both monitoring and debugging state dumps.  Provide a mechanism for state dump of services and entities.

I am interested in hearing everyone's ideas for how this should work.
Personally, I think that state logging should probably be a serializable key-value put statement, potentially allowing for a transition into some kind of "sub-component state" (probably not exposed as an actual object, since then we would need to define ordering, but some kind of named "enter/exit" calls on the state dump interface).
That way, we could output structured data as either a logical tree of key-value pairs or as a human readable list of information.
We would then need to expose a way to accept this as a quasi-visitor on the high-level component interfaces (entity and service).
Ideally, this could not only solve the state dump problem but could be used for solving problems such as how to query state information from, for example, a passive's service, and then push this structured data into the monitoring tree.  Of course, that assumes that it is sufficient to collect this data only on-demand, and not whenever the service has new information, the way entities can relay this information.

Note that this item is effectively the implementation side of this:  https://github.com/Terracotta-OSS/terracotta-apis/issues/67

We are going to address this issue in multiple phases, so that we can build basic functionality needed to move system test framework to galvan quickly and enhance the functionality later.
Phase 1

Create a Platform built-in service to dump Server state in logs (like existing system test does) so that an entity (like M&M entity) can use this service to dump server state
Create an entity that can used by galvan framework to dump the server state

Phase 2

Extend Services/Entity API, so that platform can request Services/entity to dump their state into logs
Extend platform built-in service to dump Services/Entity state into logs

Phase 3

Add functionality to retrieve Server/Services/Entity state using built-in service instead of just dumping into logs, this can be used by M&M to show cluster state in the TMC/collect cluster state in single place

I think we can move system-test framework to Galvan after Phase 1, so we can combine Phase 2 & Phase 3 in order to reduce possible API changes. Although we need to discuss with M&M team whether they need functionality mentioned in Phase 3.

Phase 2 and Phase 3 are completed in #187. Currently we have LogBasedStateDumper which dumps state into logs. Implementing a StateDumper which can provide platform state to TMS/TMC doesn't need any API changes for Services/Entities.
Note that StateDumper is an optional API which can be implemented by Services/Entities.