Logo ideas

As the title suggests this issue is used to find a great logo for graphql-middleware.
The best idea I got so far, which would also somehow reflect the name, is a group or three cartoon animals with the middle one wearing a GraphQL T-Shirt - something like npm’s wombat.
I would love to hear all the ideas you’ve come up with! 😄

Thanks a lot for bringing this up! I really like the idea of @fabien0102. I think there should be a visual-only logo that works without "GraphQL Middleware" text part, therefore I'm rather a fan of the first suggestion.
Maybe @kuldar has some thoughts as well?

I like the direction of the first logo. 👍 I agree with @schickling though, that it would be great if the symbol could stand on its own. I can try iterating a bit on the first concept to see if I can come up with some improvements.

@kuldar Just in case that you need the sources (even if it's really simple to recreate ^^)
graphql-middleware-logo.zip

@kuldar Very nice iteration! Really like the ratio of yours propositions (mine was a little bit too rectangle ^^).  I think that my favorite is the Logo v1, simple and understable (and I also like the dash style for the idea of "flexibility" and "lightness" 😃 )

I agree, I think v1 & v3 have more potential than others. I think v1 feels bit more like a full "stack" vs. the v3 feels bit like it's crossing off the GraphQL logo.  But I agree, that with v1, there's less super direct connection to GraphQL.

Great work @kuldar! I'm actually a big fan of v2 since it clearly shows how you can split up your GraphQL server into layers, v1 is also great though.
Other thoughts? :)

I agree with @schickling, I don’t know why but v2 feels just very well put - maybe because it’s for some reason slightly similar to Prisma logo?
Truly great ideas!

What about something like this, which emphasizes the nature of middleware (sequential processing). The use of gradients, seamlessly transitioning between centers, with only two colors, is suggestive of the transformation of data between middleware (the center of the dots symbolizing individual pieces of middleware). This is just a rough concept. Let me know if y'all have ideas for its revision :) I'll continue to brainstorm.

Hey @kuldar, could you provide me with the files of your designs? I think we should try v2 first and see how it feels within the README - we can nevertheless still switch later on to v1 or v3 if needed, but I have high hopes for v2. What do you think?

#3 Please do keep the thread going! I like the appearance of v2 in README, but I would be more than happy to hear your thoughts as well!


Out of memory Error on a long running host game

After running a local game as host using the latest unstable exe,  I left it open for a few hours and came back to an out of memory error which actually caused a bunch of other stuff on my machine to also crash.  I was not around to see it happen,  or to know how much memory was actually being used.  Here is the log.
Terasology-Game_3.log.txt

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/31416151-out-of-memory-error-on-a-long-running-host-game?utm_campaign=plugin&utm_content=tracker%2F5279&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F5279&utm_medium=issues&utm_source=github).

Interesting note on the other stuff that crashed, which should mean it was a memory leak outside the JVM. We know @minnesotags has managed to keep a headless server online for days on Linux, even running a large module set like JS. Maybe something related to native code involving the Windows file system, like the auto-save system? I don't know if we've ever had any really long running servers on Windows.
Pinging @flo for reference
Snippet:
18:56:49.160 [main] INFO  o.t.p.i.ReadWriteStorageManager - Saving - Snapshot created: Writing phase starts
18:56:50.516 [Saving-0] INFO  o.t.p.internal.SaveTransaction - Save game finished
18:57:30.253 [main] WARN  o.t.engine.internal.TimeBase - Delta too great (37909), capping to 1000
18:57:49.001 [main] WARN  o.t.engine.internal.TimeBase - Delta too great (1103), capping to 1000
18:57:49.217 [main] INFO  o.t.p.i.ReadWriteStorageManager - Saving - Creating game snapshot
18:57:49.218 [main] INFO  o.t.p.i.ReadWriteStorageManager - Saving - Snapshot created: Writing phase starts
18:57:49.399 [main] ERROR o.terasology.engine.TerasologyEngine - Uncaught exception, attempting clean game shutdown
java.lang.OutOfMemoryError: null
	at java.util.zip.Deflater.init(Native Method) ~[na:1.8.0_71]
	at java.util.zip.Deflater.<init>(Unknown Source) ~[na:1.8.0_71]
	at java.util.zip.GZIPOutputStream.<init>(Unknown Source) ~[na:1.8.0_71]
	at java.util.zip.GZIPOutputStream.<init>(Unknown Source) ~[na:1.8.0_71]
	at org.terasology.persistence.internal.CompressedChunkBuilder.compressChunkStore(CompressedChunkBuilder.java:93) ~[engine-1.0.0-SNAPSHOT.jar:1641, develop, 1641, alpha]
	at org.terasology.persistence.internal.CompressedChunkBuilder.buildEncodedChunk(CompressedChunkBuilder.java:86) ~[engine-1.0.0-SNAPSHOT.jar:1641, develop, 1641, alpha]
	at org.terasology.persistence.internal.SaveTransaction.writeChunkStores(SaveTransaction.java:368) ~[engine-1.0.0-SNAPSHOT.jar:1641, develop, 1641, alpha]
	at org.terasology.persistence.internal.SaveTransaction.run(SaveTransaction.java:135) ~[engine-1.0.0-SNAPSHOT.jar:1641, develop, 1641, alpha]
	at org.terasology.utilities.concurrency.TaskProcessor.run(TaskProcessor.java:50) ~[engine-1.0.0-SNAPSHOT.jar:1641, develop, 1641, alpha]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:1.8.0_71]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[na:1.8.0_71]
	at java.lang.Thread.run(Unknown Source) ~[na:1.8.0_71]
18:57:49.400 [main] INFO  o.terasology.engine.TerasologyEngine - Shutting down Terasology...
18:57:49.444 [main] INFO  o.t.p.i.ReadWriteStorageManager - Saving - Creating game snapshot
18:57:49.445 [main] INFO  o.t.p.i.ReadWriteStorageManager - Saving - Snapshot created: Writing phase starts

The auto save allocates temporarly extra memory. Thus if there is to less memory it will crash during the autosave.
The log files are useless. What could be inspected is a memory dump. Java can automatically create one for you in an out of memory situation if you start it with the HeapDumpOnOutOfMemoryError option (https://docs.oracle.com/javase/7/docs/webnotes/tsg/TSG-VM/html/clopts.html)


RA/UM - build Slips Notices report query

https://issues.folio.org/browse/UXPROD-2032

Note: this has blockers and won't be possible until LDP 1.2

Should this issue be updated or closed?

I'm comfortable closing, since it's still retained in Jira


Depricate MIDDLEWARE_CLASSES

MIDDLEWARE_CLASSES is not supported in Django 2.

👍 I'll solve it in the next release @martinjobb

Fixed in a28e4213720bee9e441c26f07a0d2da406816b5f


Open segment limit reached error when writing data to InfluxDB 3

Describe Development Experience Issue:
Hi, i'm doing some testing on influxDB 3, but i'm encountering the following error when using the write_lp API
failed to write data: transactions,senderID="4cd3377d-2766-457e-88a3-7c345c544db0",receiverID="357d4b9d-d80f-48e1-938b-6639a8734af4",paymentType="CASH",currencyCode="USD" paymentAmount=1056.28,transactionID="8065cac3-2422-4a6d-a7a0-e7baf46fac63"<PHONE_NUMBER>684992846: ApiError { code: 500, message: "write buffer error: error from buffer segment: open segment limit reached: 100" }

What could be the possible cause, is it because of my test data or something else ? What is open segment limit ?

@anshul-raman - because the project is in an early development stage, my general advice would be to wait until an alpha or some form of release is announced before testing this as a viable time series database for your needs. The underlying architecture is still evolving and the root cause of errors like this may be addressed in the time leading up to such a release.
However, I can elaborate on your questions a bit: currently, when writes come in, they are written to a segment based on the timestamp of the line written. By default, segments are 1-hour in length, so if you write timestamps that are spread across many 1-hour windows, it will open a segment for each 1-hour window of time. There is a limit of 100 open segments at a time, as per the error, so if you are writing timestamps that are spread across more than 100 1-hour windows before the server has a chance to persist data and close the segments, then you will encounter this error.
You can change the segment duration on server start with the --segment-duration CLI argument, the same logic applies, but with whatever segment duration you provide. From influxdb3 serve --help valid segment durations are:

Valid values: 1m, 5m, 10m, 15m, 30m, 1h, 2h, 4h

I hope this is helpful, but I will reiterate: all of this may change in the coming months as the architecture evolves.


Allow app authors to force libraries into sideEffects: false`

Do you want to request a feature or report a bug?
Feature Request

What is the current behavior?
sideEffects: false is (or will be, in webpack 4) a library-level setting.
If the current behavior is a bug, please provide the steps to reproduce.
N/A

What is the expected behavior?
N/A
If this is a feature request, what is motivation or use case for changing the behavior?
It would be incredibly useful to have a way for app authors to opt libraries into this behavior, possibly for cases where library authors never added this setting themselves, for whatever reason.
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.

I suspect that in many cases the opposite will be desirable: instead of selectively opting certain libraries in as side effect-free, the builder of an app will want to blanket declare all libraries they use to be free of side effects unless explicitly stated otherwise. Innocent until proven guilty offers the least hassle for achieving maximal tree shaking potential. Perhaps an "include"/"exclude"-style pattern would be ideal to allow for a combination of whitelisting and blacklisting.

Surely if a third-party library declares that it's side-effect free, it can be trusted by default, no?  Do we really think we need to override lodash and force the whole library to be pulled down, even though it's declared as side-effect free?

Of course! The purpose of a blacklist wouldn’t be to override library authors who declared ”sideEffects”: false, although it could be used for that if it turned out they were mistaken. The main use case is so you can by default assume all packages to be side effect-free, then pick out the ones which turn out to have side effects.

This was my suggestion to the issue: https://github.com/webpack/webpack/pull/5435#issuecomment-320244895
I think ultimately more configurability will be needed for this feature than a blunt whole-project setting.

We'll add sideEffects: false to the rules:
module.rules: [
  {
    include: path.resolve("node_modules", "lodash"),
    sideEffects: false
  }
]

@sokra Adding it to rules only would give this configuration power and responsibility only to application developers (usually for libraries webpack is used only to generate UMD bundle ready for a browser and bundling is left for app devs), however it would be nice to give it also for libraries authors, as they are the ones who know the best which module causes side effects, and which doesn't.
For example, lets say I am creator or a library with this index.js:
export { x } from './x';
export { y } from './y'; // causes a side effect

A library consumer shouldn't be forced to dig into source code to search for side effects. And, because module ./y causes a side effect, me, the library author, cannot set sideEffects: false in the library's package.json. So, would you consider allowing sideEffects as object in package.json, like:
{
  "sideEffects": {
    "./x": false,
    "./y": true
  }
}

done
for more options regarding configuration in package.json see #6074


[feature] get subsections from usage string

Consider if you will,
docopt!(Args derive Debug, "
Naval Fate.

Usage:
  naval_fate ship new <name> <crewman>...
  naval_fate ship <name> move <x> <y> [--speed=<kn>]
  naval_fate ship shoot <x> <y>
  naval_fate mine (set|remove) <x> <y> [--moored|--drifting]
  naval_fate -h | --help
  naval_fate --version

Options:
  -h --help     Show this screen.
  --version     Show version.
  --speed=<kn>  Speed in cochranes [default: 10].
  --moored      Moored (anchored) mine.
  --drifting    Drifting mine.

Examples:
  naval_fate new 'USS Enterprise' Kirk Spock McCoy

Warnings:
  Flux and all other color-changing software must be off.
  The tactical GUI must be running and visible or naval_fate will trigger security shutdown.
   `naval_fate mine set 0 0` may cause self-destruction.

Non-bugs:
  `naval_fate ship shoot` requires command clearance per Starfleet General Order 1207A

Bugs:
  naval_fate may crash if a ship name contains Klingon characters.
");

static WARNINGS: &'static str = "
Warnings:
  Flux and all other color-changing software must be off.
  The tactical GUI must be running and visible or naval_fate will fail unpredictably.
   `naval_fate ship shoot 0 0` will cause self-destruction.
";

fn main() {
    let args: Args = Args::docopt().decode().unwrap_or_else(|e| e.exit());

    if args.cmd_mine {
        println_err!("{}", WARNINGS)
    };

    // do stuff
}

with some complexifications for production-level code.
It would be useful to be able to extract individual subsections from the usage string via the docopt!-generated struct, rather than have to duplicate these messages. In the case above there's a section that needs to be printed both with the full usage and with certain commands, but other cases are possible. I often run into this when using docopt for deliverable code.
I haven't given much thought regarding integration with the existing API/API plans, but there should be a place in struct docopt::Docopt for this, or for related/preferable behavior that @BurntSushi can think of.

I think I'd rather not add this to Docopt proper and instead stick to what the spec says.
With that said, I see two ways to fix your problem with a very small amount of work:

Use concat! to concatenate string constants. e.g., https://github.com/BurntSushi/xsv/blob/master/src/main.rs#L75-L85
Roll a custom regex to extract sections from your USAGE string. Something like:

fn get_section<'a>(usage: &'a str, name: &str) -> &'a str {
    let re = Regex::new(format!(r"(?sm)^{:?}:$.+?\n\n", name)).unwrap();
    re.captures(usage).unwrap().at(0).unwrap()
}


Get both nodes to re-render after connection made.

In my custom scenario, the appearance of the nodes/ports (can) change if a link is made between them. For example: the port either requires a number input or a link which provides the number. If the link is provided, the number input disappears. If the link is removed, the number input shows back up again.
However, the appearance of the nodes doesn't change until I select the node, at which case it updates, rather than when the link is added/removed.
Either this is a missing feature or I am doing something wrong; however, if this is a missing feature, I would like to have virtual methods for the Diagram itself which get invoked when links are added/removed (which the port/node of each side being shown and the option to re-render them).

I had the same scenario, my solution was to create a custom Behavior that listens to Diagram.PointerUp and then looks if the targeted model is a port. If so, it triggers an event on the port:
// Custom behavior listening to Diagram.PointerUp
private void HandlePointerUp(Model? model, PointerEventArgs e)
{
    // BasePortModel is a custom abstract class inheriting PortModel.
    if (model is BasePortModel basePortModel)
    {
        basePortModel.TriggerPointerUp();
    }
}

Then, in my blazor port component, I simply listen to the port's event and do a StateHasChanged().
I would also like to note I do not have snapping activated or any other special things related to ports, I do not know what the behavior would be like with anything like that.

Hello, are the events available to you not enough for this? For example Diagram.Links.Added? This tells you when a link was added, then you can use TargetAttached in that same link to know when it was linked to something, check if it's a node (maybe as specific type of nodes), then trigger a refresh on that node to remove the input.
What do you think?

For example Diagram.Links.Added?

That works for me, thank you!

I had expected these functionalities to be in the Diagram.Options area. Instead, the Diagram.Links.Added with the TargetAttached event (plus the Diagrams.Links.Removed if a link is deleted) did the job.
Diagram.Links.Added += OnLinkAdded;
Diagram.Links.Removed += OnLinkRemoved;

private static void OnLinkRemoved(BaseLinkModel obj)
{
	if (obj.Source.Model is PortModel sourceNode)
	{
		var node = sourceNode.GetParent<NodeModel>();
		node.Refresh();
	}

	if (obj.Target.Model is PortModel targetNode)
	{
		var node = targetNode.GetParent<NodeModel>();
		node.Refresh();
	}
}

private static void OnLinkAdded(BaseLinkModel obj)
{
	if (obj.Source.Model is PortModel port)
    {
        var node = port.GetParent<NodeModel>();
        node.Refresh();
    }

    obj.TargetAttached += OnTargetAttached;
}

private static void OnTargetAttached(BaseLinkModel obj)
{
	if (obj.Target.Model is PortModel port)
	{
		var node = port.GetParent<NodeModel>();
		node.Refresh();
	}
}


auth_headers not set

I think I'm missing something basic about using ng-token-auth.  I'm successfully logging in with submitLogin. The token is returned from a Grails service I wrote in the payload data and I'm using persistData to store the token in handleLoginResponse.
      $auth.persistData('auth_headers', {
        'Authorization': 'Bearer ' + resp['token'],
      });

I can see that the data is stored in the cookie.
%7B%22Authorization%22%3A%22Bearer%202jqr4mak9r0qnql3irh2hor9e8m58u61%22%2C%22expiry%22%3A1420608106877%7D

However, when I use $response to make a call to my service, the token is not in the header.

@rgstephens - have you set the tokenFormat config setting?
This module includes an $http interceptor that appends each property of the tokenFormat config setting to the headers of each request to the API (defined in the apiUrl param).
See the docs for more info on custom header formats.

Yes.  Here's the beginning of the config section:
app.config(function ($authProvider) {
  $authProvider.configure({
    apiUrl:                  serverRoot,
    emailSignInPath:         '/login',
    signOutUrl:              '/logout',
    tokenValidationPath:     '/auth/validate',
    emailRegistrationPath:   '/user',
    storage:                 'cookies',
    tokenFormat: {
      "Authorization": "Bearer {{ token }}"
    },

I have this same issue with my Ionic app I think. My http basic auth header is not being sent.
$authProvider.configure({
    apiUrl: 'https://myapiendpoint.com',
    tokenFormat: {
      'Authorization': 'Basic ' + btoa('myuser:mypassword')
    },
    validateOnPageLoad: false,
    storage: 'localStorage'
  });


Problem with request fitness data

With this (and previous) release i can't get fitness data, when i tap on it nothing happens. Can be useful a log generated by "adb logcat"?
Also Fit integration didn't work, maybe for fitness data problem...
And also... can't get weather update work...i've never seen in any release..

same here

Please provide a log, for both fitness and GPS, gps will occure on every hour so you'll have to wait for the cronjob

logcat.txt
ABOUT FITNESS DATA AND GOOGLE FIT INTEGRATION
Some update, it worked just one time. I tapped on request fitness data. after few seconds i got it, the tap on sync, then i got a waiting dialog... wait never ends... On fit.google.com i can see only some data uploaded.
Tried many other times, never worked. I hope logcat can help to see what happens.
WEATHER INFO
Logcat contains also weather info. I forgot to enable GPS and now i receive weather notification. Should i see some icon in home screen? I see only time and date.
On weather notification, it is possible to disable vibration?

based on the log provided, everything seems normal. I see the fitness data in the logs as well as the GPS. Sync can take very long, like 2-4 minutes for the first time (it send 2 weeks of data to google fit), after first sync, it should be only a few seconds. There are many data points that are being uploaded.
Weather seems to be working appropriately as well. It will send a notification and the weather for the clock style.

When i produced that log, no fitness dialog was shown. Do you need some other information?

sorry you are correct, I was looking at the raw data but it does appear like the fitness isn't being parsed. I will look into what conditions need to be met before parsing. thanks

Don't understand why but now seems to work! Fitness data dialog appears in few seconds and then GoogleFit sync is completed in a couple of minute...
Didn't change anything but seems ok...


how to set a bigger max_tokens

openai.BadRequestError: Error code: 400 - {'error': {'message': 'Invalid max_tokens value, the valid range of max_tokens is [1, 8192]', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_request_error'}}

8K limit is ridiculous

Hello, we tried to solve the issue.
This is what we did:
Add a check to ensure max_new_tokens is within the valid range of 1 to 8192 in the main function of generate.py
You can review changes in this commit: https://github.com/mark-addams001881/deepseek-ai-DeepSeek-V3-69/commit/2e50befd290fc3acb08c48a615d13324be7af4f7.

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

Latta AI seeks to solve problems in open source projects as part of its mission to support developers around the world. Learn more about our mission at https://latta.ai/ourmission . If you no longer want Latta AI to attempt solving issues on your repository, you can block this account.

oui je confirme


Pasting into nano removes line breaks

[x] I am on the latest Hyper.app version

[x] I have searched the issues of this repo and believe that this is not a duplicate

OS version and name: OSX 10.12.3

Hyper.app version: 1.1.0 (<IP_ADDRESS>8)

Link of a Gist with the contents of your .hyper.js: https://gist.github.com/pento/ec0a96a33be6fc98ec93559ba68ce7fb

Relevant information from devtools (CMD+SHIFT+I on Mac OS, CTRL+SHIFT+I elsewhere): N/A

The issue is reproducible in vanilla Hyper.app: Reproducible with plugins disabled, didn't try vanilla.

Issue
When pasting text into nano, newline characters are removed.
To reproduce:

Copy some text with line breaks in it. It doesn't matter where the text is copied from.
Open nano
Press Cmd+V

Im experiencing the same things

I'm experiencing the exact same issue when editing a text file using nano.
Pasting into Nano removes line-breaks (some times?) and also overwrites text (instead of inserting the pasted text and moving all the rest down like what happens if you use the built-in Terminal).
I'm on a Mac (MacOS Sierra 10.12.3), Hyper <IP_ADDRESS>8
Example text to copy/paste:  Podfile example under "get started" at https://cocoapods.org/
This issue does not happen in vi or vim.
Emacs gives strange indents to each line that you usually don't get when using the built-in terminal.

A good example of this is pasting a certificate (in PEM format). It seems it ignores newlines until the content would overflow and then it honours them.

This text is converted after paste in nano in one line:

1
2

but this text is pasted correctly:

1
 2

Paste work correctly, If new line has space at first position.
and this text is pasted correctly:

1
2

Paste work correctly, if copy without last line break (only for the last line).

I just experienced this as well.
If I change the files newline option from LF to CRLF I get a different result.
Let's use the following text as an example;
DB=true
DB_ADAPTER=mysql
DB_HOST=localhost
DB_USERNAME=vagrant
DB_PASSWORD=secret
DB_DATABASE=aware
DB_PORT=3306
DB_CHARSET=utf8
DB_COLLATION=utf8_swedish_ci

If the file is set with LF I get the following result when pasting my text;
DB=true DB_ADAPTER=mysql DB_HOST=localhost DB_USERNAME=vagrant DB_PASSWORD=secret DB_DATABASE=aware DB_PORT=3306 DB_CHARSET=utf8
DB_COLLATION=utf8_swedish_ci

If I then change to CRLF I get the following result;
DB=true

DB_ADAPTER=mysql

DB_HOST=localhost

DB_USERNAME=vagrant

DB_PASSWORD=secret

DB_DATABASE=aware

DB_PORT=3306

DB_CHARSET=utf8

DB_COLLATION=utf8_swedish_ci

None are correct. But this may point someone in the right direction when debugging this issue.

macOS El Capitan:
Menu --> Edit --> Paste seems to resolve this (not ideal, but hey it works)

@harryparkdotio Does not work for me. I get the same result by copying and pasting my previous example:
DB=true
DB_ADAPTER=mysql
DB_HOST=localhost
DB_USERNAME=vagrant
DB_PASSWORD=secret
DB_DATABASE=aware
DB_PORT=3306
DB_CHARSET=utf8
DB_COLLATION=utf8_swedish_ci

Everything except the last row, lines up on the same row.
But I'm also running MacOS Sierra.

Me too

same here

same here.

Same problem here, example pasting:
`# BR Config
ifcfg-br0
DEVICE=br0
TYPE=Bridge
BOOTPROTO=static`
MacOS High Sierra 10.13 (But happens on Windows 10 and macOS Sierra too).

Same problem here typing almost everything with multiple lines into nano
MacOS High Sierra 10.13.1

Same problem as well.
Mac OS 10.12.6 (16G29)
Hyper 1.4.8
Plugins: None (disabled all to test)

Does anyone care about this issue? We could celebrate a year of inactivity in a couple of months.

Can you try to reproduce on v2 available on canary update channel?
@Scukerman In any case, PRs are very welcome.

@chabou
OS: MacOS High Sierra 10.13.2 Beta
Hyper 2.0.4 (stable)
Plugins:
  hyper-snazzy (1.2.2)

Same issue.

Thank for your feedback 🙏

For me this issue still occurs on MacOS 10.12.6 - 2.0.0-canary.8. For some reason my system wants carriage returns for line breaks. My pastes only contain a \n char. After patching https://github.com/xtermjs/xterm.js/blob/master/src/handlers/Clipboard.ts#L23 and replacing \n with \r the pastes worked again.
I think a more permanent solution must be provided through upstream?

This is even weirder than just missing line breaks now. I copied the first section and pasted into nano over ssh and the second code block is the result.
  # mongodbexporter:
  #   image: mongodb_exporter
  #   container_name: mongodbexporter
  #   user: root
  #   privileged: true
  #   command:
  #       - '-mongo.uri=mongodb://$${netstat -nr | grep "^0\.0\.0\.0" | awk "{print $$2}"}:2017'
  #   restart: unless-stopped
  #   expose:
  #     - 9001
  #   networks:
  #       - monitor-net
  #   labels:
  #     org.label-schema.group: "monitoring"

  # mongodbexporter:
  #   image: mongodb_exporter container_name: mongodbexporter user: root privileged: true command:
  #       - '-mongo.uri=mongodb://$${netstat -nr | grep "^0\.0\.0\.0" | awk "{print $$2}"}:2017' restart: unless-stopped expose: - 9001 networks: - monitor-net labels: org.label-schema.group:
  #     "monitoring"

Still happening
It makes hyper basically unusable for me

Same issue, back to terminal it is

This is happening me too. I copied code written in Visual Studio Code over to nano and not only does it paste it in as one big line it also starts to eat other lines making a real mess.

@cclafferty @Kimmax @bryantAXS What is you Hyper version?
I can't reproduce on 2.0.0-canary.11

@chabou I just installed it to test. Still happening in nano.
Hyper 2.0.0-canary.11 (stable)
Plugins:
  hyper-snazzy (1.2.2)

OS: macOS High Sierra 10.13.3
Shell: zsh 5.3.1 (x86_64-apple-darwin16.6.0)

@Scukerman thank you for your feedback.
I'm using zsh too and I can't reproduce :(

Hyper 1.4.8 (stable)
Plugins:
  hyper-darkmatter (0.2.2),
  hyperterm-summon (2.0.5)

OS: macOS High Sierra 10.13.3
Shell: zsh 5.4.2 (x86_64-apple-darwin17.3.0)

@chabou I'm out of office till monday, gonna update you as soon as I can

This issue occurs in xterm.js' demo so I imagine it's unrelated to hyper.

@chabou I'm sorry, forgot you. I'm on 2.1.1 stable
@olsonpm I don't see the connection here, mind shining light on me?

I'm still working at debugging this via the xterm.js demo.  There are a decent amount of paste issues on both xterm.js and vscode (which forked xterm.js I believe).  It just seems like the issue is deeper than this client which is built on top of xterm and electron but hopefully I'll have it solved by tomorrow.

Alright - more reading and I finally understand the issue.
In short: The fix is to translate \n to \r as @menzow initially described. I will open a PR in xterm.js.
note Hyper uses a fork of xterm.js which will need to pull in the fix when it's merged.

In case you want to understand what's going on:
This seems to be a bug in any program which doesn't implement bracketed paste mode (or properly implement it in the case of joe).  As noted in this nano bug other editors which don't paste properly include joe and dit.  You'll notice when you paste with newlines, each editor interprets \n aka ^J to a function.  e.g. nano follows pico, and pico decided ^J should be used to justify content.

Finally some progress on this! Thanks so much for digging into this @olsonpm

@chabou - what branch of chabou/xterm.js should I create a PR for with the merged fix?

any news?

@Scukerman Thank you for your up :)
@olsonpm Sorry I haven't seen your question.
I will merge your xterm PR in my fork ASAP.

no worries - i saw the commit history when i first started using hyper.  You are very busy :)

It has already been merged in my used fork: https://github.com/chabou/xterm.js/commit/855964fbe10099410edb6dc85ed6b7940130649c
I tried to reproduce without any success.
Can anybody confirm me that it has been fixed in our last canary (v2.0.0-canary.16)?

Yay! It works!
@olsonpm @chabou thank you so much.

Thanks for confirming @Scukerman, I'm closing this now! 🎉 Open if you still have this issue in hyper v2.0.0-canary.16 or higher.


add script section in package.json file

Add a script section in package.json file so that we can use the node script feature. This allow to use the embedded version of gulp natively.
gulp is installed locally due to its mention in package.json file, it should be easy to use gulp without to type the whole path. Using the node script feature, it is now possible to use the following commands :

to run the build task of gulp

npm run build

to run the dev task of gulp

npm run dev

Do you think you will merge this pull request?

Why don't you want to merge this pull request?
Using npm script section is a good practice!

Could you please explain my why you choosed not to merge this pull request?
Thanks.

I do not thank you for not answering me.


Not working on Centos7

Hello,
I believe I followed all the instructions correctly.  I had this working properly on Centos6.  However, due to another software incompatibility I'm now switching to Centos7 and I can't get this to work.  Specifically, when I try to mount the folder the mount point ("uploads" in the list below)looks like this:
-rw-r--r--.  1 owner group   28 Jan  8  2012 index.php
drwxr-xr-x. 16 owner group 4096 Apr 27 04:28 plugins
drwxr-xr-x.  4 owner group 4096 Apr 14 00:21 themes
???????????  ? ?       ?          ?            ? uploads (with the background color black and the font red...which is traditionally what happens when you have a symlink to a non-existent file).
Before I try to mount it, it looks like this:
drwxr-xr-x.  5 owner group   63 May  6 19:27 .
drwxr-xr-x.  8 owner group 4096 Apr 27 18:15 ..
-rw-r--r--.  1 owner group   28 Jan  8  2012 index.php
drwxr-xr-x. 16 owner group 4096 Apr 27 04:28 plugins
drwxr-xr-x.  4 owner group 4096 Apr 14 00:21 themes
drwxr-xr-x.  2 root    root       6 May  6 19:27 uploads
I'm trying to use this to store my WordPress uploads folder.  Any advice as to what might be going wrong?  Here's the command I'm running and the output I'm getting:
[root@dev2 wp-content]# yas3fs s3://$BUCKET $MOUNTDIR --topic $TOPIC --queue $QUEUE --region $REGION --cache-on-disk $CACHEONDISK --cache-path $CACHEDIR --uid $UID --gid $GID
2016-05-06 22:13:07,160 INFO Version: 2.3.2
2016-05-06 22:13:07,160 INFO s3-retries: '3'
2016-05-06 22:13:07,160 INFO s3-retries-sleep: '1' seconds
2016-05-06 22:13:07,160 INFO S3 bucket: 'bucketname'
2016-05-06 22:13:07,160 INFO S3 prefix (can be empty): ''
2016-05-06 22:13:07,161 INFO AWS region for SNS and SQS: 'aws-region-num'
2016-05-06 22:13:07,161 INFO SNS topic ARN: 'aws-topic-arn'
2016-05-06 22:13:07,161 INFO SQS queue name: 'aws-queue-arn'
2016-05-06 22:13:07,161 INFO SQS queue wait time (in seconds): '20'
2016-05-06 22:13:07,161 INFO SQS queue polling interval (in seconds): '0'
2016-05-06 22:13:07,161 INFO Cache entries: '100000'
2016-05-06 22:13:07,161 INFO Cache memory size (in bytes): '134217728'
2016-05-06 22:13:07,161 INFO Cache disk size (in bytes): '1073741824'
2016-05-06 22:13:07,161 INFO Cache on disk if file size greater than (in bytes): '0'
2016-05-06 22:13:07,161 INFO Cache check interval (in seconds): '5'
2016-05-06 22:13:07,161 INFO Cache ENOENT rechecks S3: False
2016-05-06 22:13:07,161 INFO AWS Managed Encryption enabled: False
2016-05-06 22:13:07,161 INFO AWS Managed Encryption enabled: False
2016-05-06 22:13:07,161 INFO Number of parallel S3 threads (0 to disable writeback): '32'
2016-05-06 22:13:07,161 INFO Number of parallel downloading threads: '4'
2016-05-06 22:13:07,161 INFO Number download retry attempts: '60'
2016-05-06 22:13:07,161 INFO Download retry sleep time seconds: '1'
2016-05-06 22:13:07,162 INFO Number read retry attempts: '10'
2016-05-06 22:13:07,162 INFO Read retry sleep time seconds: '1'
2016-05-06 22:13:07,162 INFO Number of parallel prefetching threads: '2'
2016-05-06 22:13:07,162 INFO Download buffer size (in KB, 0 to disable buffering): '10485760'
2016-05-06 22:13:07,162 INFO Number of buffers to prefetch: '0'
2016-05-06 22:13:07,162 INFO Write metadata (file system attr/xattr) on S3: 'True'
2016-05-06 22:13:07,162 INFO Download prefetch: 'False'
2016-05-06 22:13:07,162 INFO Multipart size: '104857600'
2016-05-06 22:13:07,162 INFO Multipart maximum number of parallel threads: '4'
2016-05-06 22:13:07,162 INFO Multipart maximum number of retries per part: '3'
2016-05-06 22:13:07,162 INFO Default expiration for signed URLs via xattrs: '2592000'
2016-05-06 22:13:07,162 INFO S3 Request Payer: 'False'
2016-05-06 22:13:07,162 INFO Cache path (on disk): '/tmp/yas3fs-cache'
2016-05-06 22:13:07,215 INFO Unique node ID: 'unique-node-id'
2016-05-06 22:13:07,352 INFO SQS queue name (new): 'aws-queue-arn'
Any thoughts as to why this isn't working?  When I had it working under Centos6 it seemed like the perfect solution for storing wordpress uploads across multiple web servers in a load balanced situation.
Best,
Dave

Well, I just figured out a work-around because of this other issue:
https://github.com/danilop/yas3fs/issues/120
In my start script I issue
yas3fs --recheck-s3 s3://$BUCKET $MOUNTDIR before issuing the start command.  This seems to work. I'm not sure why the problem exists in the first place, though.  Let us know if you figure it out! :)  Also, thanks for all your hard work on an otherwise great tool!

Are you trying to mount a bucket over a folder that already has things in it?

Sorry, I posted  this 10 months ago and I didn't even remember the issue
until I reread the post.
I switched to RioFS instead and it works great.
Best,
Dave
On Mar 14, 2017 11:29 AM, "John Jones"<EMAIL_ADDRESS>wrote:

Are you trying to mount a bucket over a folder that already has things in
it?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/danilop/yas3fs/issues/127#issuecomment-286516690, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAFCrNcAsLwRFSiPkPiEK242Dzcg-A3lks5rltxrgaJpZM4IZQ20
.


iOS Channel sent a message from native to Flutter on a non-platform thread

Hi,
I have noticed there is a log line the first time I try to scan a tag in an IOS device.
[VERBOSE-2:shell.cc(1004)] The 'plugins.flutter.io/nfc_manager' channel sent a message from native to Flutter on a non-platform thread. Platform channel messages must be sent on the platform thread. Failure to do so may result in data loss or crashes, and must be fixed in the plugin or application code creating that channel. See https://docs.flutter.dev/platform-integration/platform-channels#channels-and-platform-threading for more information.
This looks like something that should be addressed to avoid app crashes?
Here is a self-contained example. I made it stateful to make sure I was not leaving a session open. The first time the NFC library is used after start will show the line above in the debug console.
import 'dart:convert';
import 'dart:developer';
import 'package:flutter/material.dart';
import 'package:nfc_manager/nfc_manager.dart';

class GetNFC extends StatefulWidget {
  const GetNFC({super.key});
  @override
  State<StatefulWidget> createState() {
    return GetNFCState();
  }
}

class GetNFCState extends State<GetNFC> {
  bool sessionOpen = false;
  bool success = false;
  String? value;
  @override
  void dispose() {
    if (sessionOpen) {
      NfcManager.instance.stopSession();
    }
    super.dispose();
  }

  String logNFCError(var error) {
    String logLine =
        'NFC Error: message ${error.message} type ${error.type} detrails ${error.details}';
    log(logLine);
    return logLine;
  }

  @override
  Widget build(BuildContext context) {
    if (value != null) {
      return Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          Text(value!),
          ElevatedButton(
              onPressed: () {
                setState(() {
                  value = null;
                  sessionOpen = false;
                  success = false;
                });
              },
              child: const Text('Restart'))
        ],
      );
    }
    return FutureBuilder<bool>(
      future: NfcManager.instance.isAvailable(),
      builder: (context, nfcAvailableSnapShot) {
        if (nfcAvailableSnapShot.hasData) {
          if (nfcAvailableSnapShot.data == true) {
            sessionOpen = false;
            NfcManager.instance.startSession(
              alertMessage: 'Scan the card now',
              onDiscovered: (NfcTag tag) async {
                try {
                  sessionOpen = true;
                  try {
                    Ndef? ndef = Ndef.from(tag);
                    final cachedMessage = ndef!.cachedMessage;
                    NdefRecord? record = cachedMessage!.records
                        .where((e) =>
                            e.typeNameFormat == NdefTypeNameFormat.nfcWellknown)
                        .firstOrNull;
                    if (record != null) {
                      final languageCodeLength = record.payload.first;
                      final textBytes =
                          record.payload.sublist(1 + languageCodeLength);
                      success = true;
                      NfcManager.instance.stopSession();
                      sessionOpen = false;
                      setState(() {
                        value = ascii.decode(textBytes);
                      });
                    }
                  } catch (e) {
                    if (sessionOpen) {
                      NfcManager.instance.stopSession();
                    }
                    setState(() {
                      value = logNFCError(e);
                    });
                  }
                } catch (e) {
                  if (sessionOpen) {
                    NfcManager.instance.stopSession();
                  }
                  setState(() {
                    value = logNFCError(e);
                  });
                }
              },
              onError: (error) async {
                if (success) return;
                if (sessionOpen) {
                  NfcManager.instance.stopSession();
                }
                setState(() {
                  value = logNFCError(error);
                });
              },
            );
          }
          return const Text('Please tap the card on your phone');
        } else {
          return const CircularProgressIndicator();
        }
      },
    );
  }
}

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  static GlobalKey mtAppKey = GlobalKey();

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        key: MyApp.mtAppKey,
        title: 'NfcTestApp',
        theme: ThemeData(
          useMaterial3: true,
        ),
        home: const Scaffold(body: Center(child: GetNFC())));
  }
}

Here is the output of my flutter --version:
Flutter 3.13.8 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 6c4930c4ac (6 days ago) • 2023-10-18 10:57:55 -0500
Engine • revision 767d8c75e8
Tools • Dart 3.1.4 • DevTools 2.25.0

Also, I can't say for certain this is related, but also sometimes I see the following messages show up in the debug logs, and some time after that I see an NfcErrorType.unknown after a second or so.
[CoreNFC] -[NFCHardwareManager queueReaderSession:sessionConfig:completionHandler:]:105 error=Error Domain=NFCError Code=203 "System resource unavailable"
[CoreNFC] -[NFCTagReaderSession beginSessionWithConfig:]:458 error:Error Domain=NFCError Code=203 "System resource unavailable" UserInfo={NSLocalizedDescription=System resource unavailable}, errorCode: 0xcb
I could not reproduce the previous two log entries reliably with the example (only the log line about the "non-related platform channel"), but if anyone has any pointers for me I would appreciate it.

Just wanted to provide an update. After using the profiling from XCode I noticed that in the case of my app I have Thermal State: serious after a while. So most likely the errors at the bottom are due to some performance error I have in my code.
That being said, the error about the non-platform thread is not related to my app and I expect it to be reproducible with any iOS device.

i have created a pull request to fix this problem.

i have created a pull request to fix this problem.

Hello, i am new on flutter. how can i use the plugin via github with your commit. I was adding the plugin to my project with pub.dev? Can you help how can i add the plugin ?

@okadan has merged it into the repository.
As long as @okadan has not published it to pub.dev, you can put the github project directly as dependency. Go to your pubspec.yaml and in dependencies you add:
flutter-nfc-manager:
  git:
    url: https://github.com/okadan/flutter-nfc-manager
    branch: master

instead of
flutter-nfc-manager: ^3.3.0

Please double check the correct tab in the yaml-file in case you copy&paste it. I could only do it with whitespaces here. So better not copy&paste.

@okadan has merged it into the repository.
As long as @okadan has not published it to pub.dev, you can put the github project directly as dependency. Go to your pubspec.yaml and in dependencies you add:
flutter-nfc-manager:
  git:
    url: https://github.com/okadan/flutter-nfc-manager
    branch: master

instead of
flutter-nfc-manager: ^3.3.0

Please double check the correct tab in the yaml-file in case you copy&paste it. I could only do it with whitespaces here. So better not copy&paste.

Thank you for your quick response. #113 can you look at also this problem ?

Thank you for your quick response. #113 can you look at also this problem ?

as it is written in the documentation, this plugin requires iOS 13+ to function. So it won't work with iOS12 and iPhones 4-6. I think later models have been provided with iOS13+.

Thank you for your quick response. #113 can you look at also this problem ?

as it is written in the documentation, this plugin requires iOS 13+ to function. So it won't work with iOS12 and iPhones 4-6. I think later models have been provided with iOS13+.

So, can i ignore this framework for these devices? So, nfc is only one part of my project. So if the device which is before iOS13, it will not need nfc. Can i make something like that ?, I need this because i cant launch the app on iOS12 :/

Best way is to make your App available for Devices with iOS13+ only. The only way to "ignore" a framework on iOS12 is this:
https://stackoverflow.com/questions/68818599/plugin-development-use-flutter-package-plugin-for-specific-platform-only-e-g
In this case you can exclude it, but you will have to ensure that you are not calling the Package in your Dart Code on Devices below iOS13. As you are a beginner, i do not recommend to do this.


Align splash screen vertically

The splash screen menu is aligned to the top of the page. I can't figure out how to get it to appear in the centre, vertically (or whether it's possible). Ideally the button would be in the dead centre, and the images directly above and below.
How it currently is:

How I would like it:

add to the login class in index.css the attribute
position: absolute;
or pad it from above by
top: XX% or XXpx;

On Jan 25, 2017, at 8:49 PM, HexTree<EMAIL_ADDRESS>wrote:
The splash screen menu is aligned to the top of the page. I can't figure out how to get it to appear in the centre, vertically (or whether it's possible). Ideally the button would be in the dead centre, and the images directly above and below.
How it currently is:
https://cloud.githubusercontent.com/assets/7933725/22302415/cad13bc2-e33f-11e6-8726-c1523023d7fc.png
How I would like it:
https://cloud.githubusercontent.com/assets/7933725/22302423/d07054dc-e33f-11e6-96db-fb02922a228c.png
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/HexTree/CoffeePoints/issues/33, or mute the thread https://github.com/notifications/unsubscribe-auth/AIKhQ14QrLKuJJodlF17CgQoS0xLN9Ngks5rV4tDgaJpZM4Ltyw2.

login class is already absolute
I'll try padding, by %. With px I figured it would not guarantee to be the same on devices of different sizes.

Then remove the top and bottom padding that already exists. on my phone the login page spans more than the whole page so if you pad it it will go down. Keep that in mind.

On Jan 25, 2017, at 10:07 PM, HexTree<EMAIL_ADDRESS>wrote:
login class is already absolute
I'll try padding, by %. With px I figured it would not guarantee to be the same on devices of different sizes.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/HexTree/CoffeePoints/issues/33#issuecomment-275202102, or mute the thread https://github.com/notifications/unsubscribe-auth/AIKhQ5eORv_3CleqhFMipomTi7Ohc2Otks5rV519gaJpZM4Ltyw2.

Maybe I also need to limit the heights of the images. I wanted it to be all in one page, so no need to scroll.

Don’t limit the images, leave them to be dynamic. I suggest padding from the sides if you feel that they’re big, otherwise the button below will grow bigger.

On Jan 25, 2017, at 10:11 PM, HexTree<EMAIL_ADDRESS>wrote:
Maybe I also need to limit the heights of the images. I wanted it to be all in one page, so no need to scroll.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/HexTree/CoffeePoints/issues/33#issuecomment-275203209, or mute the thread https://github.com/notifications/unsubscribe-auth/AIKhQ1G4PpeO-YF9fobD19iS3XNJwSUrks5rV553gaJpZM4Ltyw2.

Ah, I think I discovered the issue. I shouldn't be using attributes like height and width for svg images, instead viewbox as per this guide: https://css-tricks.com/scale-svg/

If you have so much time detailing, why don't you make the pages look like
the slides we agreed on if you haven't.
On Thu, Jan 26, 2017, 12:49 AM HexTree<EMAIL_ADDRESS>wrote:
Ah, I think I discovered the issue. I shouldn't be using attributes like
height and width for svg images, instead viewbox as per this guide:
https://css-tricks.com/scale-svg/
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/HexTree/CoffeePoints/issues/33#issuecomment-275243634,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIKhQ1z23DUqpJPlQvx-ThUp6h0wXSdSks5rV8N8gaJpZM4Ltyw2
.

That's what I'm doing, but the first step is to get the page to actually appear central.

Cool, make sure you're changing the right classes. I suggest header and
footer images with dynamic sizes.
On Thu, Jan 26, 2017, 12:59 AM HexTree<EMAIL_ADDRESS>wrote:

That's what I'm doing, but the first step is to get the page to actually
appear central.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/HexTree/CoffeePoints/issues/33#issuecomment-275246119,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIKhQ_OTwCx8Tqs0dL0TI-ldEz3yHUn0ks5rV8W8gaJpZM4Ltyw2
.


Blender: Set --python-use-system-env from PreLaunchHook

Changelog Description
Automatically add --python-use-system-env when running Blender when it's not pre-configured in the application settings for Blender (In Studio Settings > System Settings > Applications > Blender > {version} > arguments.
Additional info
It often happens that admins add a new Blender version in the applications but don't also apply the --python-use-system-env  arguments meaning OpenPype will not be loaded for Blender plus won't be available in Blender on PYTHONPATH.
This avoids that issue by always enforcing the argument is added on launch plus updates the defaults so that --python-use-system-env isn't there by default either.
@iLLiCiTiT I've set it to run on launch_types = set() so it always runs. I basically want it to run on ANY Blender launch where prior to this it'd have also been applied due to being in the arguments settings for the application. (I feel like that's likely more than just 'local', right?)

Before:

After:

See this reference discussion on Discord for somebody who was hitting this issue. Although there have also been reports that it should be working without the flag.
Note: For those who were already succsesfully launching blender without --python-use-system-env this PR might be giving unexpected results if - for whatever reason - they don't actually use the system env in Blender.
Testing notes:

Run blender without --python-use-system-env argument in settings
Run blender with --python-use-system-env argument in settings (this is just to ensure it's backwards compatible with any settings a studio might currently have for custom versions.)
Everything should load and run fine for both

Automatically add --python-use-system-env when running Blender when it's not pre-configured in the application settings for Blender (In Studio Settings > System Settings > Applications > Blender > {version} > arguments.

We didn't add it automatically because someone wanted to launch it using rez or script (.bat/.sh) where it caused issues... (not saying I'm against).

I've set it to run on launch_types = set() so it always runs. I basically want it to run on ANY Blender launch where prior to this it'd have also been applied due to being in the arguments settings for the application. (I feel like that's likely more than just 'local', right?)

It make sense only for {LaunchTypes.local, LaunchTypes.remote, LaunchTypes.automated}, the others are farm specific, where blender is not launched. But because remote and automated are not implemented for blender it could be just {LaunchTypes.local}.

We didn't add it automatically because someone wanted to launch it using rez or script (.bat/.sh) where it caused issues... (not saying I'm against).
EDITED: It would nice to have option to turn the prelaunch hook off.

Thanks - yes, then I suspect instead having a toggle somewhere in settings might be the decent other solution? But I was expecting this might've been the case. Any good place you think this could work? Should it somehow be a part of the Blender-specific application versions? or more globally?

It make sense only for {LaunchTypes.local, LaunchTypes.remote, LaunchTypes.automated}, the others are farm specific, where blender is not launched. But because remote and automated are not implemented for blender it could be just {LaunchTypes.local}.

Thanks - I'll just make it the first three just in preparation of what might come; will save some debugging for those cases maybe?

will save some debugging for those cases maybe?

Not needed, that's unrelated to the launch hook itself.

It would nice to have option to turn the prelaunch hook off.

Any pointers on where I could best put that?
Here's an example option:

@iLLiCiTiT any insight for aformentioned things? thx

Added a commit that added the toggle in settings:

About the UI, I'd move it right before the custom arguments list, before the executables, it is confusing.

@Tilix4 This unfortunately wasn't as trivial because it builds that section using a template which is the full environment section - so I've opted to just add it at the end.

@BigRoy This is fine for me!

Because we're splitting OpenPype into ayon-core and individual host addons, this PR would have to be re-created to target one of those. It will need to be AYON compatible for it to get merged.
We're closing it down, but we'll he happy for a new PRs to ynput/ayon-blender repository once it's up.


request: static libs compiled with dynamic CRT in SDK nugets

I tried to link AWS SDK statically on windows. It didn't work because static libs were compiled with "static CRT" (and all my projects use dynamic CRT). It would be really nice if you add these to nugets published on nuget.org.
Thank you.

Nuget is not supported anymore, since you have switched to vcpckg, I am closing it now.

lol... I was about to close it. Thank you, Andrew.


WIP: Shopify order countdown

This is still a Work In Progress, please do not accept yet.

Hi @jim-toth,
Let's revisit this PR and see what is required to finish it and deploy it.


Release 0.4.0

Changes:

better error on disconnect
removed all the REST
docs
release

@muroc, I will be releasing 0.4.0 to Maven Central once you ACK.
@wywialm, FYI.

:-)


Need improvement in Preloader

Preloader need to be more smother

Hey @lakshyatyagi24  I have tried this.
Please have a look at the below gif . It is smooth .
Shall I open a pr for the same .?

Yes please open a new PR

I have fixed this issue and created a PR as I was getting errors during pushing it using gitbash like fatal error remote access, I tried a lot to fix but I couldn't.
Therefore I have created a PR manually.
Please look and merge it

@akanksha-raghav please look into it

@saumyasrivastava08 you have opened a PR and reverted it back please create an another one.

I am facing a lot issue while pushing it using git bash. I will create pr but manually.
I don't know why this issue is coming while pushing it using git bash

Please try to create PR directly on github.

I have created the PR and github is more smoother


No option to enable flash nor torch when scanning

We were using the Xamarin version of his library. After migrating, we are now using Zxing.Net.Maui.Controls v 0.4.0. In the Xamarin version we could set the flash on programmatically-the library provided support for it. We don't see this option with the MAUI library. Even if we manually turn the torch on it is switched off when this app is launched. How can we work around this?

Managed to get this working with TorchOn option.

Same issue. I have set the IsTorchOn property to true and still does not work


Upgrade Mono.Cecil Dependency

Visual Studio Test Explorer integration benefits from our ability to tell VS the starting line numbers of each discovered test method. If a test framework provides line number information, then the right-click context menu for running tests in Test Explorer becomes enabled, and users can navigate from Test Explorer to the test method.
We have used the Mono.Cecil NuGet package to accomplish this.  We use Mono.Cecil to read through PDBs in order to calculate the line number of a test method.  Every so often, Microsoft changes the PDB format, and we have to upgrade Mono.Cecil to work with new PDB files.  With VS2017 and .NET Core, the PDB formats changed in a few ways, and Mono.Cecil's latest prerelease apparently supports them.
Unfortunately, this Mono.Cecil upgrade includes a few breaking changes that affect us, so it is a nontrivial upgrade.  We attempted to upgrade in branch upgrade-mono-cecil a while back, but that attempt ran into some issue with attempting to access a file that was in use by 'another process'.
We need someone to attempt again, using the latest Mono.Cecil (include prereleases in your version selection).  Branch off of develop and submit your PR back to develop.  This will require that you work with VS2017.
See http://cecil.pe/ (the Mono.Cecil development blog).  See especially the post http://cecil.pe/post/149243207656/mono-cecil-010-beta-1 which describes their breaking API changes, as these directly affect us.
See the current implementation in the develop branch:

https://github.com/fixie/fixie/blob/develop/src/Fixie.VisualStudio.TestAdapter/SourceLocationProvider.cs The class which uses Mono.Cecil to determine line numbers.
https://github.com/fixie/fixie/blob/develop/src/Fixie.Tests/VisualStudio/TestAdapter/SourceLocationProviderTests.cs Tests of that class - expect to change little if anything here!
https://github.com/fixie/fixie/blob/develop/src/Fixie.Tests/VisualStudio/TestAdapter/SourceLocationSamples.cs The sample code file used by the tests, illustrating several edge cases. Change this with extreme caution!

I think I got it to work. I will send a PR.

Closing this as fixed by @giggio in #171.


Return Innovation Covariance Matrices in Update Functions

Hi!
I am an MS student at CU Boulder working with Professor Zachary Sunberg. We recently wrote a paper on Rao-Blackwellized POMDPs (RB-POMDPs), which uses Gaussian filters for the linear state space. I used this package but had to modify some of the code because the current update functions do not return the innovation covariance matrices. I was wondering if I could help maintain this package. Professor Sunberg and I are working together to open-source our code so that others can easily use our model. Thank you in advance for your consideration!
Best,
Jiho

I just added @jihodori as a maintainer of this package so that he can work on it. I will help him learn how to maintain it in a sustainable way. Does anyone have any objections to him taking the lead on maintenance and improvements under my guidance?

This is resolved by #43.


feat(tier4_system_launch): add option to launch mrm handler (#6660)

Description
This PR adds the option to launch mrm handler.
Cherry-pick following PR.

https://github.com/autowarefoundation/autoware.universe/pull/6660
https://github.com/autowarefoundation/autoware.universe/pull/6700

Related links:

TIER IV INTERNAL JIRA
PR for launch: https://github.com/tier4/autoware_launch.x2/pull/605

Tests performed

planning simulator
I confirmed Emergency Stop and Comfortable Stop was performed when corresponding diagnostics was published.
Emergency Stop
https://github.com/tier4/autoware.universe/assets/11865769/29a58cef-7959-437f-8b0b-9682e0703795
Comfortable Stop
https://github.com/tier4/autoware.universe/assets/11865769/2ed2f526-7b9a-4e61-8f66-a556da8ac2eb
Effects on system behavior

Not applicable.
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[x] I've confirmed the contribution guidelines.
[x] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[ ] The PR follows the pull request guidelines.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

I confirmed Comfortable stop was performed when use_comfortable_stop is set to true in this PR. See "Tests Performed" for the details.


DOCS: "On This Page" sidebar not scrollable when bleeds off page

The "On This Page" sidebar is not scrollable even when its content bleeds off the page
https://github.com/shadcn-ui/ui/assets/5913254/9b977e47-0405-42b8-aaf0-da23dbc23973

I want to work on this issue. Can you please assign it to me


Fix docker cache image for dev

:rocket: What
Change docker image, to copy the user code after the installation of requirements.

Can you give some context why this is better or what problem this solves?


added partition equal subset sum

fixes #319

Remove the Combinational sum as it belongs to a different issue. So create a new PR linking to that issue. #320

I am sorry, I am actually new to Open Source
I will make the necessary changes

No problem, take your time.


[sailfish-secrets] Switch to password creation from operation(), and not from prompt texts.

As discussed in #144 it is not possible at the moment to request a password creation input window without overriding the default repeat message.
This PR is fixing this by defining a new operation in InteractionParameters and detecting the creation request from operation in password plugin instead of relying on the prompt texts.
IMHO, it's more semantic to switch action depending on operation than trying to infer it from context (here prompt texts). Prompt texts should be kept for what they are: overriding default text messages in the system window.

@chriadam what do you think?
@jpetrell this PR should solve one of the issues you reported about a missing string translation when creating a new GPG key and the passphrase window appears. Instead of supplying a string (that I forgot to add to translations) from the PGP plugin, we rely on the default ones.

LGTM.  Can you please add "Contributes to JB#36797" to the commit subject?

Just double checking: all unit tests still pass?  Wondering if we relied on this prompt text for something in any test - I assume not.

I ran the tests on my device, and everything still passes.
Regarding Joona's earlier comment, this Operation value is interesting in that (as far as I can tell) it's mostly specified by the Daemon when talking to the Plugin, as opposed to something which is specified directly by the client.  Is that correct, or am I misunderstanding?
If that is the case, what happens in the case where the user specifies that operation directly and performs an interaction request?

this Operation value is interesting in that (as far as I can tell) it's mostly specified by the Daemon when talking to the Plugin, as opposed to something which is specified directly by the client. Is that correct, or am I misunderstanding?

I agree, but there is no specific request to create a password (in which case the daemon would properly place the operation flag by itself)). And I don't think it's necessary to add one. As far as I understand, this Operation enum is a hint for the client of the interaction request. In my opinion, there should be a hint to say "I want an input from the user and will use the result as a new password", as we currently have for instance "i need input from the user and will use it to sign a document".
I think that up to now all operations were set from the daemon because we have a request for every operation and the daemon is responsible to do an interaction request based on the choice in the request to be system only… But since we are exposing the InteractionRequest as a public API, we have no choice but to allow the user to set the operation hint. But, I agree that it's difficult to see it can have unexpected consequences.

LGTM.  We can address the latter concern through documentation in the future (e.g. document that that enum value has no effect if set by client code).  Thanks!


Barrows sets in required items

🚀 Feature Proposal
It would be awesome if you could add barrows sets to work as required items for boss fights.
Example: to kill vetion you need to have all 4 pieces of verac's, but if you have 1 verac's armour set (in its box set form) it won't let you kill vetion as it dosent use the box set as a required item even though it contains all 4 required items
I hope I have worded this in a way that makes sense, but otherwise thanks for reading an I hope you have a good day.

you need the items in item form not a packaged box, how is you minion supposed to wear a box


[vm/ffi] Add Float16/Half

Currently, only Float (Float32) and Double (Float64) are introduced in dart:ffi.
However, the application of Float16 is becoming more and more widespread, especially for AI-releated computations, and it is very inconvenient when interacting to native libraries that supports Float16, developers have to access the fp16 pointers or values using Uint16 and write the convension menthods by themselves, even so, some methods like Uint8List.view() are not possible for fp16 if developers want to return a float16 view instead of a copy.
I have read #52250 and #51994, but both of them are talking about more specific primitive types for dart lang, however this issue just for dart:ffi.

It's also technically possible to support a Float16List in dart:typed_data, but if there are no operations to convert single 16-bit floats to double (a very quick check suggests that to be the case at least for intel/AMD CPUs), reading and writing would likely not be as efficient as expected. (A "clever" implementation may convert a number of values at a time, and cache the results, so consecutive reading can be optimized. Writing is harder.)

What about just make float16List as an alias of Uint16List, which means a float16List is actually stored as Uint8List, but convert to dart double when getting values and convert to Uint16 when setting values?

but if there are no operations to convert single 16-bit floats to double (a very quick check suggests that to be the case at least for intel/AMD CPUs), reading and writing would likely not be as efficient as expected.

I did find this:

https://www.intel.com/content/www/us/en/docs/cpp-compiler/developer-guide-reference/2021-8/mm-cvtps-ph.html
https://www.intel.com/content/www/us/en/docs/cpp-compiler/developer-guide-reference/2021-8/mm-cvtph-ps.html

I'm not sure if using machine instructions from float16->float32->float64 is slower or faster than going from float16->float64 manually.
If users need this and are going to manually use slow conversions to doubles anyway, then we might as well make their lives easier and add it in dart:ffi and dart:typed_data.
@rainyl do you want to use the float16's as doubles in Dart? or are your use cases only about efficiently shuffling bytes around?

What about just make float16List as an alias of Uint16List, which means a float16List is actually stored as Uint16List, but convert to dart double when getting values and convert to Uint16 when setting values?

Any XXXList is stored as bytes and only converted when reading/writing values! 😄
If you just want to shuffle bytes around, you don't want to do it via something that requires conversions when reading writing. So you'd want to use setRange on a TypedData with another TypedData that has the same element type, so that it can be a memcpy.
If we add Half as a valid float NativeType, then we also need to implement it in FFI calls. It looks like for not all ABIs this is well-defined:

for arm you need an extension https://gcc.gnu.org/onlinedocs/gcc/Half-Precision.html
And RISC-V does not have support for scalars yet https://github.com/riscv/riscv-v-spec/issues/349

So it might be tricky to fully add Half everywhere in dart:ffi. (Though I'd definitely be open to someone trying.)
cc @mraleph @mkustermann @rmacnak-google

do you want to use the float16's as doubles in Dart? or are your use cases only about efficiently shuffling bytes around?

Both, the ideal use cases are very similar to other native types, but the most important for my project now is creating a view of Float16List and providing a proper way to get/set values. Now I can regard Uint16List as Float16List, but it's not elegant if users want to get/set values.
// Currently I interact with native float16 using:
final ffi.Pointer<ffi.Uint16> ptr = ...;
final Uint16List view = ptr.asTypedList(length);
// Without Float16List, users have to set/get values via:
final double val = fp16_int_to_double(view[0]);
view[0] = fp16_double_to_int(val);
// `fp16_int_to_double` and `fp16_double_to_int` are implemented referring to https://github.com/opencv/opencv/blob/71d3237a093b60a27601c20e9ee6c3e52154e8b1/modules/core/include/opencv2/core/cvdef.h#L828-L917

// It will be user-friendly if users can set/get using dart double directly, maybe some thing like:
final ffi.Pointer<ffi.Float16> ptr = ...;
final Float16List view = ptr.asTypedList(length);
// With Float16List, users can set/get values via:
final double val = view[0];
view[0] = val;

Any XXXList is stored as bytes and only converted when reading/writing values! 😄

Sounds like easy to implement the above operations for Float16List, good news.

If we add Half as a valid float NativeType, then we also need to implement it in FFI calls. It looks like for not all ABIs this is well-defined:

Yes, but maybe the implementation of opencv can be a reference? It defined a hfloat and use it's own implementation if __fp16 is not defined, otherwise use __fp16 https://github.com/opencv/opencv/blob/71d3237a093b60a27601c20e9ee6c3e52154e8b1/modules/core/include/opencv2/core/cvdef.h#L384-L399

final ffi.Pointer<ffi.Float16> ptr = ...;
final Float16List view = ptr.asTypedList(length);
// With Float16List, users can set/get values via:
final double val = view[0];
view[0] = val;

Happy to receive a PR for this!
Should it be Half or Float16? We call the other thing Double. 😄
A PR for only this should add errors on Halfs in FFI calls and callbacks.

Yes, but maybe the implementation of opencv can be a reference? It defined a hfloat and use it's own implementation if __fp16 is not defined, otherwise use __fp16

ushort

hehe so it's an uint16 if it's not available.
Well, Dart is not compiled at the same time as your library that uses open-cv, so we risk compiling with different flags which will lead to segfaults. On the other hand, we also assume SoftFP on Android arm32 and hard fp on arm32 Linux. Technically there can be Androids out there with hardfp and linuxes with softfp, but we've not run into them.
I'd be fine simply assuming the type is defined (except for risc-v).
I'm also open for getting a PR for adding this. This PR will be much more involved, as it includes getting the calling conventions right.
If you want to work on these PRs I can provide pointers for where to start.

I would like to suggest Float16 instead of Half.

Should it be Half or Float16? We call the other thing Double. 😄

Same as @Wdestroier , I like Float16 too.

If you want to work on these PRs I can provide pointers for where to start.

Sure, I am willing to work on this when having some free time, so could you please provide some instructions? So that other developers can work on this too. 😄

@sigmundch @mkustermann can dart:typed_data Float16List be properly supported on dart2js and dart2wasm? (We can of course always fall back to an implementation that does the bit-shuffling in Dart, but that might not be desirable for performance reasons.)
For adding Float16List:

Float16List can be added in sdk/lib/typed_data/typed_data.dart
runtime/vm/class_id.h needs to get an entry in CLASS_LIST_TYPED_DATA
The implementation can be added in sdk/lib/_internal/vm/lib/typed_data_patch.dart

We'll need to add the 16 bit variant of external double _getFloat32(int offsetInBytes); and the setter.
An optimized implementation that targets machine code instructions for float16 conversions will need to be an external function in Dart that is recognized in the Dart compiler.

runtime/vm/compiler/recognized_methods_list.h TypedList_GetFloat32
runtime/vm/compiler/frontend/kernel_to_il.cc that's where these recognized methods are implemented via FlowGraphBuilder::BuildTypedListGet

This will need to generate IL that will generate machine code in the files such as runtime/vm/compiler/backend/il_x64.cc with EmitNativeCode.

A non-optimized implementation will instead of having an external function in the patch file, just load 16 bits via a Uint16List and do the conversion in Dart. This is probably an easier implementation to start with and will perform considerably worse. But it's maybe worth doing that as the first PR before diving in to generating machine code.

A benchmark can be added in benchmarks/TypedData/

For adding support for Pointer<Float16>, Array<Float16> and Float16s in structs/unions; and error messages on using Float16 in FFI calls and callbacks:

The type should be added in sdk/lib/ffi/native_type.dart
The public API as extension types in sdk/lib/ffi/ffi.dart

Most of the API is generated by runtime/tools/ffi/sdk_lib_ffi_generator.dart

The implementation in CFE transforms pkg/vm/lib/modular/transformations/ffi/*.dart

pkg/vm/lib/modular/transformations/ffi/common.dart in all the consts
pkg/vm/lib/modular/transformations/ffi/native_type_cfe.dart to reason about size (2 bytes) and alignment (?) inside structs

DItto in the backend to reason about size and alignment runtime/vm/compiler/ffi/native_type.cc
Error messages for the analyzer are added in pkg/analyzer/lib/src/generated/ffi_verifier.dart
Error messages for the CFE are added in pkg/vm/lib/modular/transformations/ffi/use_sites.dart
Tests

For the error messages for analyzer and CFE: Add a file next to tests/ffi/static_checks/vmspecific_static_checks_test.dart in the style of that file
For positive tests using Float16 inside structs add a float16 type to tests/ffi/generator/c_types.dart and some tests with structs to tests/ffi/generator/structs_by_value_tests_configuration.dart -> try to especially cover cases where alignment could be unexpected. For example a struct with first a uint8_t and then a float16.
For positive tests using asTypedList you can add a new test in tests/ffi/.

If the rest of the Dart team is in favor of adding this, my suggestion would be to split this work up in multiple PRs:

Adding an unoptimized Float16List
Optimizing the Float16List get and set with recognized methods that target assembly instructions for float16 conversions
Adding support for Pointer<Float16> and Float16 inside structs (but rejecting Float16 as FFI call/callback arguments and return value)
Adding support for  Float16 as FFI call/callback arguments and return value. (I can provide pointers on how to do that later.)

I don't think a Float16List can be efficient in JavaScript, pendant not in Warm either of us not a built-in type.
And even on native, the smallest x64 operation performs four parallel conversations, not just a single one.
That means bit-shuffling in JS and Wasm, possibly on native too.
Reading is fairly simple, it's one sign bit, 5 bit exponent, 10 bit mantissa. A 64 entry lookup table for the exponent + sign will probably work.
Writing worries me more. Bit-fiddling on doubles requires first getting the bits of the double, which Dart doesn't support directly. Then it needs some rounding rules. The input is bigger than for reading, so a table isn't useful.
Native will almost certainly use the SIMD operation for each value. Everybody else will have to do something more expensive.
I'm not sure bad support is better than no support.
(We'll probably also want a Float16x8 type and list of those.)

(We'll probably also want a Float16x8 type and list of those.)

➕  I was thinking about that too.

AI/ML models can use different 16-bit floating point number formats, most commonly IEEE float16 and bfloat16 (which has more exponent bits). I
So if the reason is AI/ML it would make sense to extend the discussion to be
=> dart:ffi: Pointer<Float16> & Pointer<BFloat16>
=> dart:typed_data: Float16List & BFloat16List
Those two are somewhat separate and can be discussed separately (e.g. we support Pointer<Bool> in dart:ffi without having an equivalent list type in dart:typed_data).
For dart:typed_data it may be tricky as JavaScript doesn't have equivalent typed arrays and dart2js would dynamically need to keep track of the type (which may be problematic, see e.g. recent deprecation & removal of UnmodifiableUint8List/... classes). @rakudrama wdyt?
For dart:ffi we'd need to think to what extend we want to support it: Allowing it indirectly via Pointer with appropriate double operator [](int index) void operator[]=(int index, double value) is probably the most common use and uncontroversial. Though allowing them as Struct members or primtivies is more tricky as we'd need to have ABI support and it's not part of standard C and it seems some ABIs may not support it.
=> The only real use may? be via Pointer<> usage, so we could restrict it's usage to that
=> Our compiler would then generate very efficient code for the conversion to/from double
But if the only use is via Pointer, we have to think whether it's actually needed to have this support as part of dart:ffi. Let's say we model this as extension types in a helper package (e.g. in package:ffi/bfloat16.dart):
import 'dart:ffi';

extension type BFloat16P(Pointer<Uint16> pointer) {
  double operator [](int index) {
    final int value = pointer.value;
    // ... code to bfloat16->double ... (XXX)
    return convertedValue;
  }

  void operator []=(int index, double value) {
    // ... code to double->bfloat16 ... (XXX)
    return convertedValue;
  }

  BFloat16List asTypedList(int length) => BFloat16List(this, length);
}

class BFloat16List implements List<double> {
  final BFloat16P pointer;
  final int length;

  BFloat16List(this.pointer, this.length);

  double operator [](int index) => pointer[index];

  void setRange(...) {
    // Would e.g. delegate to already optimized `pointer.asTypedList().setRange()`
  }
}

And then users can use it via
@Native<Pointer<Uint16> Function()>()
external Pointer<Uint16> getTensor();

main() {
  final BFloat16List tensor = BFloat16P(getTensor()).asTypedList(64);
  for (int i = 0; i < tensor.length; ++i) {
    print(tensor[i]);
  }
}

or if we allow convenience usage of extension types in FFI:
@Native<BFloat16P Function()>()
external BFloat16P getTensor();

main() {
  final BFloat16List tensor = getTensor().asTypedList(64);
  for (int i = 0; i < tensor.length; ++i) {
    print(tensor[i]);
  }
}

We could ensure the conversion code in (XXX) is written in a way that allows our compilers to generate very efficient code for it (possibly even recognizing the specific conversion pattern & optimizing via built-in HW support).
@rainyl Would your use case be solved by this?

or if we allow convenience usage of extension types in FFI:

👍  Tracked in:

https://github.com/dart-lang/sdk/issues/54944

=> Our compiler would then generate very efficient code for the conversion to/from double

It would be even more efficient with Float16x8. But so far we've been only doing that for Float32x4 via typed_data. So if we wanted to allow that and not add it to typed data we should maybe consider having such Float16x8 in dart:ffi? (But I guess no support for BFloat16x8, I haven't seen any assembly instructions tailored to that yet.)
I'd be cautious adding Float16Pointer as an extension type in for example package:ffi if we would consider adding Float16x8 later in the Dart SDK. Moving types between a package and dart: libs is next to impossible.

Would your use case be solved by this?

Yes, I am working on opencv bindings for dart, so I have to get a view of the pixel values at (x, y) to read and change the values, I believe your method will work.

@dcharkes RISC-V has a ratified extension, Zfh, but the major Linux distributions don't include it in their baseline. AFAIK, Android and Fuchsia haven't chosen their baseline yet, but Zfhmin is part of the RVA22 profile, so I expect they will include it.


[ALL_ANALYSIS] Remove the code of the question in all tables and plots

Fixed with 2bfcbef7c2891911abf3c62b7c69b9ece85b37a6 and 9c72f5dc91b969ce8abb02fb5a048129aba8fc32


Formatting logger message sometimes breaks whole logging

This occured to me when I tried to add some more debug logging, and it didn't show up on my console. The log ended on some SoundResource log message
gConsole.LogDebug("Bitstream is {} channel, {}Hz", vorbisInfo.channels, vorbisInfo.rate);
But it was not printed fully, it had some random characters instead of vorbisInfo.channels, and nothing more, no more log messages were printed. I commented out this line (and few others from MeshResource and FontResource), and logging started working as a charm.
Happened on Ubuntu 17.10 using Terminator terminal emulator.

I belive this is now fixed.


Refactor Dispatcher to remove unnecessary indirection

This PR refactors the dispatcher so that the split between the C and C++ implementations no longer exists - the entire implementation is now in C++. The consensus in recent discussions was that this split is probably an artefact of the constraints of various C and C++ compilers of years past that no longer apply. This refactoring is mostly to remove the indirection the split caused, with one or two more modern idioms applied.
I've left in my commit history whilst making the changes so that the working is apparent. In summary, the changes required:

Removal of _dispatcher.h and _dispatcherimpl.cpp.
Renaming _dispatcher.c to _dispatcher.cpp
Moving the methods and members of the Dispatcher object from _dispatcherimpl.cpp into the DispatcherObject in _dispatcher.cpp - note that this was then renamed to Dispatcher.
Where the C proxy methods were used (e.g. dispatcher_resolve) they are replaced with calls to the Dispatcher methods instead (e.g. self->resolve).
Replacement of C-style includes (string.h etc.) with C++ ones (cstring etc).
Replacement of malloc / free with new / delete operators
Some other minor changes to enable compilation of the dispatcher code with a C++ (e.g. casting string literals to (char*) as necessary).
Now that _typeof.c is included by a C++ source, it has an extern "C" block added as appropriate.

/AzurePipelines run

@stuartarchibald Many thanks for the review - I believe all comments are now addressed.

Buildfarm ID: numba_smoketest_cuda_137.

Buildfarm ID: numba_smoketest_cpu_86.

Buildfarm ID: numba_smoketest_cpu_86.

passed

Buildfarm ID: numba_smoketest_cuda_137.

passed.

@sklam given the inherent risk involved when this part of the code is changed, did you want to take a look at this too? I've reviewed and the changes seem good, build farm is happy.


wgpu_buffer_get_mapped_range

If size is not provided, it passes void 0 to getMappedRange, but that doesn't seem to work and results in a 0 sized range. An option is to conditionally call getMappedRange on size being set or not.
if (size)
    gpuBuffer.mappedRanges[offset] = gpuBuffer["getMappedRange"](offset, size);
else
    gpuBuffer.mappedRanges[offset] = gpuBuffer["getMappedRange"](offset);

Thanks - some other APIs have this same issue. Marking these kinds of issues with a common label "Awkward polymorphism" to find them easier, maybe the spec might be able to adapt to accommodate for some of these.
Btw, pushed a breaking commit that completes renaming of GPUCanvasContext to GPUPresentationContext, so the function wgpu_canvas_get_canvas_context() is now renamed to wgpu_canvas_get_gpupresent_context().


Is it possible to add folds for the sections and the subsections of rmarkdown/quarto documents?

Feature description
In the current version of the package, markdown sections are not folded by default. Is it possible to fold sections/subsections in Rmarkdown/quarto files as well?
Describe the solution you'd like
Org-mode like folding where one can get an overview of all sections by closing all folds
Additional context
No response

Have you tried treesitter provider?

@kevinhwang91  yes, it doesn't really work on rmarkdown/quarto documents.

Look like the rmd file type is missing lsp or treesitter provider. ufo can't parse any fold ranges about syntax token.


Release v4.0.1

Release
Supersedes the previous release v4.0.0 as the auto-publish to npm failed:
https://github.com/DazzlingFugu/ember-cli-embedded/actions/runs/6855336980

@DazzlingFugu/emberenos
See the description of the PR, a new release is needed.


Header issue

If you have visual effects disabled you get the slim header in the way.

If you scroll down the header shows correctly. However if you scroll down with visual effects enabled you can see a little "blink" of the header above the app bar.
OSX, the latest pull (ff061f3), but I've spotted the issue earlier. Not sure which commit though.
Seems like my changes in #1575 got merged and then removed somehow.

This was corrected in Master.

@jjeffryes I don't think so. This is a screenshot from the freshly cloned repo:

Here's the same screenshot on the current master:

@jjeffryes you need to disable visual effects as mentioned in OP.

Ah, ok. I'll fix it in my next PR.

There's also a related issue where the app cannot be dragged by the app-bar when on the the user page, unless you're scrolled to the top. Haven't dug to deep into it, but it seems that even when the image is not visually covering the app-bar, it's still preventing it from being draggable.

@rmisio that was something different, the modalHolder div had a no-drag property on it, and under the new structure it scrolls with the page when it's not visible.
It's fixed in https://github.com/OpenBazaar/OpenBazaar-Client/commit/33f75d56c58d5593804558be5273b50ad178bc3d

Seems to be fixed, but the header's height is still too big (and it shouldn't be according to this issue #1566 which was fixed later, got merged and then removed somehow).


Unable to trigger a PVC swap based on annotation

What happened?
After installing Gemini on my cluster and following the provided instructions to backup a Volume, I was unable to re-instate an older snapshot.
@
What did you expect to happen?
We let Gemini create a first snapshot.
We then wrote some data by hand at the mount point of the volume being backed-up (details below)
We let Gemini create a second snapshot.
We then followed to below commands to backup to the first snapshot, where the file should not be present.
kubectl scale all --all --replicas=0
kubectl annotate snapshotgroup/dev-postgres-backup --overwrite "gemini.fairwinds.com/restore=1711982369"
kubectl scale all --all --replicas=1

But despite this, when navigating to the mountpoint within the postgres pod which mounts the volume claim being backed-up, we still see the file.
In short, the backup doesn't seem to be working as expected; the same applies when writing data within the DB which writes it to the mount point pgdata directory.
How can we reproduce this?
We are using k8s 1.25 and installed the latest version of Gemini with v2 CRDs
(fyi, I don't think the CRD for v1beta1 exists at https://raw.githubusercontent.com/FairwindsOps/gemini/main/pkg/types/snapshotgroup/v1beta1/crd-with-beta1.yaml, we instead installed the one at https://raw.githubusercontent.com/FairwindsOps/gemini/main/pkg/types/snapshotgroup/v1/crd-with-beta1.yaml (/v1beta1 vs /v1)
We are using a PVC to provide a mount point where our postgres-db can write its data, below is the config (simplified for convenience):
apiVersion: apps/v1
kind: Deployment
metadata:
  name: dev-postgres
  namespace: dev
spec:
  replicas: 1
  selector:
    matchLabels:
      app: postgres
  template:
    metadata:
      labels:
        app: postgres
    spec:
      containers:
        envFrom:
        - configMapRef:
            name: dev-postgres-config
        image: postgres:latest
        imagePullPolicy: IfNotPresent
        name: postgres
        ports:
        - containerPort: 5432
        volumeMounts:
        - mountPath: /var/lib/postgresql/data
          name: postgresdb-data-volume
      hostname: postgres
      volumes:
      - name: postgresdb-data-volume
        persistentVolumeClaim:
          claimName: dev-postgres-claim

The persistent volume is only provisioned Dynamically by GCP once the volume claim manifest is applied and the DB mounts it:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  labels:
    app: postgres
  name: dev-postgres-claim
  namespace: dev
spec:
  accessModes:
  - ReadWriteOnce
  resources:
    requests:
      storage: 2Gi
  storageClassName: standard-rwo

We have specifically adjusted this to be a standard-rwo (ReadWriteOnce) as to ensure that the data on the volume isn’t being modified by multiple nodes at the same time when a snapshot is being taken.
NAME                                       CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS     CLAIM                            STORAGECLASS   REASON   AGE
pvc-4a079b5e-91f8-400f-97ca-99ea609b4f4e   2Gi        RWO            Delete           Bound      dev/dev-postgres-claim           standard-rwo            14d

Moreover, we defined our snapshot class as follows before adding the snapshot config
apiVersion: snapshot.storage.k8s.io/v1
deletionPolicy: Delete
driver: pd.csi.storage.gke.io
kind: VolumeSnapshotClass
metadata:
  annotations:
    snapshot.storage.kubernetes.io/is-default-class: "true"
  name: dev-gcp-csi-snapshotclass
  namespace: dev
---
apiVersion: gemini.fairwinds.com/v1
kind: SnapshotGroup
metadata:
  name: dev-postgres-backup
  namespace: dev
spec:
  persistentVolumeClaim:
    claimName: dev-postgres-claim
  schedule:
  - every: 5 minutes
    keep: 3
  template:
    spec:
      volumeSnapshotClassName: dev-gcp-csi-snapshotclass

The above works as expected once in place and we see the snapshots being created and in a ready state
NAME                             READYTOUSE   SOURCEPVC            SOURCESNAPSHOTCONTENT   RESTORESIZE   SNAPSHOTCLASS               SNAPSHOTCONTENT                                    CREATIONTIME   AGE
dev-postgres-backup-1711982369   true         dev-postgres-claim                           2Gi           dev-gcp-csi-snapshotclass   snapcontent-b857786d-aa1c-4e82-9b2b-50f801c8c6ef   17m            17m
dev-postgres-backup-1711982669   true         dev-postgres-claim                           2Gi           dev-gcp-csi-snapshotclass   snapcontent-16337f17-f2bc-41a8-b630-581b5f06f888   12m            12m
dev-postgres-backup-1711982969   true         dev-postgres-claim                           2Gi           dev-gcp-csi-snapshotclass   snapcontent-2c126506-c999-4dba-930c-009034405a4d   7m33s          7m37s
dev-postgres-backup-1711983269   true         dev-postgres-claim                           2Gi           dev-gcp-csi-snapshotclass   snapcontent-b656ab5a-ea09-4ba3-ad00-4dc6bb4e110f   2m33s          2m37s

As detailed above, we then wrote some data by hand (added a file in the mount location /var/lib/postgresql/data between snapshots 1 and 2 above<PHONE_NUMBER> does not have the file, while<PHONE_NUMBER> does).
When then run the following commands to re-instore the first snapshot without a file
kubectl scale all --all --replicas=0
kubectl annotate snapshotgroup/dev-postgres-backup --overwrite "gemini.fairwinds.com/restore=1711982369"
kubectl scale all --all --replicas=1

But despite this, when navigating to /var/lib/postgresql/data within the postgres pod which mounts the volume claim being backedup, we still see the file.
What I also find interesting is that the PVC still shows its age to be 14d ago, I would expect this to be a brand new one re-instated from snapshot.
When investigating the logs for the gemini-controller pod I don't see any specific errors after the restart post-annotation, nor do I see anything that points to the swap being successfull:
I0401 14:25:59.640654       1 controller.go:179] Starting SnapshotGroup controller
I0401 14:25:59.640679       1 controller.go:181] Waiting for informer caches to sync
I0401 14:25:59.641048       1 reflector.go:287] Starting reflector *v1.SnapshotGroup (30s) from pkg/mod/k8s.io/client-go@v0.27.1/tools/cache/reflector.go:231
I0401 14:25:59.641071       1 reflector.go:323] Listing and watching *v1.SnapshotGroup from pkg/mod/k8s.io/client-go@v0.27.1/tools/cache/reflector.go:231
I0401 14:25:59.740942       1 shared_informer.go:341] caches populated
I0401 14:25:59.741060       1 controller.go:186] Starting workers
I0401 14:25:59.741136       1 controller.go:191] Started workers
I0401 14:25:59.741204       1 groups.go:38] dev/dev-postgres-backup: reconciling
I0401 14:25:59.750629       1 pvc.go:48] dev/dev-postgres-claim: PVC found
I0401 14:25:59.750661       1 groups.go:29] dev/dev-postgres-backup: updating PVC spec
W0401 14:25:59.761896       1 warnings.go:70] unknown field "spec.persistentVolumeClaim.spec.volumeMode"
W0401 14:25:59.761922       1 warnings.go:70] unknown field "spec.template.spec.source"
W0401 14:25:59.761928       1 warnings.go:70] unknown field "status"
I0401 14:25:59.770677       1 groups.go:53] dev/dev-postgres-backup: found 2 existing snapshots
I0401 14:25:59.770713       1 scheduler.go:58] Checking snapshot dev/dev-postgres-backup-1711981440
I0401 14:25:59.770723       1 scheduler.go:58] Checking snapshot dev/dev-postgres-backup-1711981140
I0401 14:25:59.770731       1 scheduler.go:91] need creation 5 minutes false
I0401 14:25:59.770739       1 groups.go:59] dev/dev-postgres-backup: going to create 0, delete 0 snapshots
I0401 14:25:59.770746       1 snapshots.go:204] Deleting 0 expired snapshots
I0401 14:25:59.770755       1 groups.go:65] dev/dev-postgres-backup: deleted 0 snapshots
I0401 14:25:59.770762       1 groups.go:71] dev/dev-postgres-backup: created 0 snapshots
I0401 14:25:59.770790       1 controller.go:144] dev/dev-postgres-backup: successfully performed backup
I0401 14:26:29.648307       1 reflector.go:376] pkg/mod/k8s.io/client-go@v0.27.1/tools/cache/reflector.go:231: forcing resync
I0401 14:26:29.648435       1 groups.go:38] dev/dev-postgres-backup: reconciling
I0401 14:26:29.656518       1 pvc.go:48] dev/dev-postgres-claim: PVC found
I0401 14:26:29.656643       1 groups.go:29] dev/dev-postgres-backup: updating PVC spec
W0401 14:26:29.665339       1 warnings.go:70] unknown field "spec.persistentVolumeClaim.spec.volumeMode"
W0401 14:26:29.665368       1 warnings.go:70] unknown field "spec.template.spec.source"
W0401 14:26:29.665373       1 warnings.go:70] unknown field "status"
I0401 14:26:29.673816       1 groups.go:53] dev/dev-postgres-backup: found 2 existing snapshots
I0401 14:26:29.673851       1 scheduler.go:58] Checking snapshot dev/dev-postgres-backup-1711981440
I0401 14:26:29.673861       1 scheduler.go:58] Checking snapshot dev/dev-postgres-backup-1711981140
I0401 14:26:29.673869       1 scheduler.go:91] need creation 5 minutes false
I0401 14:26:29.673876       1 groups.go:59] dev/dev-postgres-backup: going to create 0, delete 0 snapshots
I0401 14:26:29.673884       1 snapshots.go:204] Deleting 0 expired snapshots

We would appreciate your input in resolving this, maybe this has to do with our cluster set up or maybe a config issue with PVs; I've requested access to the slack channel, waiting on approval :)
Thanks in advance,
Massimo
Version
Version 2.0 - Kubernetes 1.25
Search

[X] I did search for other open and closed issues before opening this.

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Additional context
No response

Hi team, could I seek your help on the above please? Happy to provide more details if required :)

Hi all, just chasing again, we are keen to rely on Gemini :)

Hi all, chasing again, would appreciate some help on this one :)


Fix rubocop-related issues (part 1)

This PR includes rubocop-inspired fixes. Though there was few unrelated changes:

Gemfile.local was removed
vendor directory was added to the .gitignore
.editorconfig added (mostly to keep trailing spaces and newlines under control)
bin/beaker-docker was fixed (it seems it was never really working 🤔)
00_default_spec.rb was rewritten in Beaker DSL (beaker-rspec was not really used there)

🆙

I've been working on a script to fix it per cop. For voxpupuli/beaker#1761 I used https://gist.github.com/ekohl/b41006003553dce67b9c551f306f8080 to fix TODOs. Then in rebases I'd order things around again. Some of the commits are manual, in case there was no autofix. It relies on https://pypi.org/project/yq/ to get all the keys from the TODO file.

Thank you for the idea! JFYI I implemented it as a rake task here! Execute it as bundle exec rake rubocop:fix_todos

Anything more is expected from me here? Or we can squash it a bit and merge?

I've been very busy but I'll try to revisit it.

@jay7x can you maybe rebase this please?

@jay7x can you maybe rebase this please?

Sure.. Though I think we should recheck the rubocop rules and maybe sync the config with other gems. I'll poke you later today in Slack.

Rakefile and GHA config should be synced across all beaker plugins I'd say.. beaker-hcloud has the simplest one which we can reuse maybe 🤔

I want to sync them, but before we do that I want to:

bump all plugins to Ruby 2.7
Introduce rubocop
fix most rubocop violations
have a shared rubocop config in beaker that's used by all beaker plugins

Edit: I'm tracking all the rubocop/ruby refactoring in https://github.com/orgs/voxpupuli/projects/4

@jay7x I introduced merge conflicts, but I'd also raise another point: the Rakefile has large amount of code for yard, but we don't even include it in our Gemfile. When I manually add it and run it, it fails to generate. Right now I'd suggest to drop it altogether. https://github.com/voxpupuli/beaker-docker/pull/96 will remove more merge conflicts.


Sync master from odh:v1.9-branch

https://issues.redhat.com/browse/RHOAIENG-15741
git switch -c jd_merge_branch rhds/master
git pull rhds master
git fetch origin v1.9-branch
git merge --strategy-option=theirs origin/v1.9-branch
git push fork HEAD

(I did not end up using commands above because the link below worked well to create this PR)
https://github.com/red-hat-data-services/kubeflow/compare/master...opendatahub-io:kubeflow:v1.9-branch

/approve


Content Translation Support

I would like to request a feature that enables the translation of content within the Sanity Studio. The goal is to make it easier for users to manage and present content in multiple languages.
Use Case
As an international user, I need the ability to manage content translations for my website in a seamless way. This feature would be particularly beneficial for projects that require content in multiple languages.

Closing as you didn't fill out the template: https://github.com/sanity-io/next-sanity/issues/new?assignees=&labels=&projects=&template=feature_request.md&title=


add Constant file hit-1170300801

I add a constant file to store the magic numbers in your program.

Can you add more comments in constant file?

I add some comments.

Thank you!