GPS Bug on several older mobile devices

I just tried the BasicLocationSample and it does not work on my Samsung GT-S7562 device. I went to a showroom and tested the same on several devices and it doesn’t work on Xiaomi redmi 2, Galaxy core prime as well. The sample works fine on newer models from these manufacturers. I even tested it on my OnePlus 2 and it works perfectly well.
There appears to be a bug that prevents GPS working on several devices and that needs to be addressed. I’ve been trying to find a solution so I figured trying out this Google Sample hoping that at least this would work coz it’s from the makers of Android but in vain. Basically it shows No location detected. Make sure location is enabled on the device. even with the location enabled.
Testing the LocationUpdates sample on the same devices gave NullPointException at updateUI() function regardless of whether Location is enabled or disabled. On the newer devices like the OP2, the NullPointerException appears only when Location is disabled and shows updates and works fine when Location is enabled.

Regarding this message:
"No location detected. Make sure location is enabled on the device"
Can you tell me the device make, the Android build, as well as the Google Play Services version?  I'd like to be able to recreate what you ran into and cannot do so without these data points.
Also, would you mind posting the log data here? That'll help me diagnose the problems. Thanks.

Here are the device details:
Device Make: Samsung Galaxy S Duos
Model: GT-S7562
Android version: 4.0.4 (IceCream Sandwich)
Baseband Version: S7562DDBNE1
Kernel version: 3.0.8-1279898
Android build: IMM761.S7562XXBNE2

@shailen  is there any update regarding this issues because I am facing with same issue. Some devices working fine but not all devices.

@SaifurRahmanMohsin and @ajitdubey-mob-ibtech That's because if you didn't have the cached location it will throws the NullPointerException. And make sure to add run time permissions as it is allowed for new versions of android.

And you can also prompt to change the location settings.

I’m certain those devices at the store run older versions of Android that do not use runtime permissions. Well I’m definitely sure with my Samsung GT-S7562 atleast. It’s running Android 4.0.3 so this looks more like one of the gazillion unsolved older bugs rather than one because of new android features.

The samples have all been updated recently.


Dev accessibility

Added an accessibility layer to Pixi enabling displayObjects to be tabbed and read by screenreaders.
All that needs to be added:
myButton.accessible = true;
Example here:
http://www.goodboydigital.com/pixijs/accessibility/accessibility.html
Now Pixi content can be accessed by all!

This looks great, but I feel like it should be a plugin you can package with pixi not something we ship to everyone by default.

This did cross mind! Initially it was a separate part. But then after thinking about it...
Accessibility is a really important feature to have (as important as interaction) and no other canvas based renderers support it. Means we can make cool stuff and easily make it useable for people with certain disabilities who may not be able to navigate content with a mouse or even see it?
The other thing worth mentioning is that unless someone actually starts using it there is zero overhead.
This is the reason I made it a PR though as thought it was worth discussing :)

I see that the overhead is negligible, I'm more concerned with the general idea of "it seems useful so lets ship it by default". One of the biggest things holding pixi back in my opinion is that it is getting pretty bloated with a bunch of stuff people maybe might use in certain situations.
How often is this going to be used? Really it is only useful for UI type interactions, right? As a library with no UI toolkit, what value does this really bring to the core library that it needs to be shipped in every bundle?
Seems like this would be an important feature, for a small subset of projects. But more and more feature slike this make pixi less and less a rendering engine and more and more an application framework. I feel like the core should be focused on rendering and solving that problem. If the problem isn't rendering related it belongs in an external plugin. Interaction and this are both things that are important to an application framework, but not to rendering. They don't belong here IMO.

Sone very good points man! Will add it as an extension :+1:

I completely agree this ought to be an extension, but I completely disagree it's an "edge case". It ought to be used in every game, and not just for UI either, but for actual game play.

@photonstorm  :+1:

It ought to be used in every game, and not just for UI either, but for actual game play.

@photonstorm That is an interesting thing to say, I'm curious what it actually means in practice. Consider any generic side scroller, what purpose does the mouse serve besides UI? It may be my ignorance, but I can only think of a few games where mouse interaction is key and this would help alleviate the problem of being unable to use a pointer.

@englercj when you've worked on as many BBC games as I have, you learn to appreciate just how to get accessibility into any sort of game, side scrollers included. From dwell timers, to single and two button switch support, to grid positioning layouts. There are myriad ways, but it all has to start with an extension like this.

I guess I just don't have the experience to understand the problem fully, I'll defer to you two then. Thanks for the info.

@photonstorm this update is actually for the BBC. Just wanted to make it easier for us and for others to make things accessible too. Then got a bit altruistic started thinking that the easier it is for people to implement the more likely people would use it on projects by default.

Yeah I figured it was for the BBC :)
Did you update the docs or are they still all 'TODO' ! You ought to make sure you carefully explain that it's generating <div>s all over the place, because that will be a nightmare for some site layouts :) (and is going to be interesting to see where they end up in scaled canvases!)

Good point man, docs do need updating! But things such as scaling and
various layouts should have all been taken care off. If I missed anything I
will make sure to address before it lands in Master mind  (we are currently
fitting it into a few games to ensure it works smoothly).
On Thu, Nov 19, 2015 at 11:54 AM, Richard Davey<EMAIL_ADDRESS>wrote:

Yeah I figured it was for the BBC :)
Did you update the docs or are they still all 'TODO' ! You ought to make
sure you carefully explain that it's generating s all over the
place, because that will be a nightmare for some site layouts :) (and is
going to be interesting to see where they end up in scaled canvases!)
—
Reply to this email directly or view it on GitHub
https://github.com/pixijs/pixi.js/pull/2194#issuecomment-158034540.

--
Mat Groves
Technical Partner
Telephone: 07708 114496 :: www.goodboydigital.com
First Floor, Unit 9B, Queens Yard, White Post Lane, London, E9 5EN
goodboy©. All Rights Reserved.


WIP compose: prepend a space if needed for attachments,emojis etc.

Fixes 7212

Fixes #7212

@elenaoat this is something we'll want unit tests for in our node suite.  @showell can help with figuring out how to do that (we might need to add $.caret to zjsquery or something).

@elenaoat You can ping me on chat to get help with the node tests.  I think we can probably directly mock $.caret.  I can give you more context on zjquery over chat.  @lonerz (Joshua Pan) also has expertise here.

@timabbott What exactly are we trying to test here? If the message contains the spaces accordingly after an attachment/emoji/video was inserted?
Or is it that we are trying to see if the function insert_syntax_and_focus does what it should?

@showell I think this might be something where it'd be a good time investment for you to do the preparatory work for tests on this (or decide they're not worth it and we should test manually); this is a pretty advanced testing challenge, I think.

It's fine to just test  this manually, I think. We also want to move some of this code from compose_state -> compose_ui, but we can merge this first.

Actually, I'm working on alternative version of this PR now.

I just merged #7342 which fixes the space logic; @elenaoat I think you can now just make sure all the code paths use the new function for inserting...

All right!
On Thu, Nov 9, 2017 at 7:56 PM, zulipbot<EMAIL_ADDRESS>wrote:

Heads up @elenaoat https://github.com/elenaoat, we just merged some
commits that conflict with the changes your made in this pull request! You
can review this repository's recent commits
https://github.com/zulip/zulip/commits/master to see where the
conflicts occur. Please rebase your feature branch against the
upstream/master branch and resolve
http://zulip.readthedocs.io/en/latest/git-guide.html#recover-from-a-git-rebase-failure
your pull request's merge conflicts accordingly.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/zulip/zulip/pull/7273#issuecomment-343237497, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADelzsKOcMLNKkPSM7bOCzg2m7WrHklGks5s0zzHgaJpZM4QQVvO
.

Closing, since I don't think it likely @elenaoat will pick this up soon :)


[bug] tsconfig.json is not parsed as JSON5(?)

Describe the bug
tsconfig.json support comments and trailing commas, but moon does not. With such a file it reports a syntax error, e.g.:
Error: json::parse_file

  × Failed to parse JSON file ~/src/haohao.how/projects/emails/tsconfig.json.
  ╰─▶ trailing comma at line 42 column 3

In this case it refers to a trailing comma in the includes array, e.g.:
  "include": [
    ".*.ts",
    ".*.tsx", // <-- this one
  ],

The lib we use is supposed to strip them, but seems like it's not: https://crates.io/crates/json-strip-comments
Is this on the latest moon version?

This was on 1.19.3, it works fine on 1.21.2. My bad!

Glad it works.
It should have worked before too :p I'll still dig in and see what's up.


Real-time translation

Can this package translate in real-time, like users don't need to press the translate button to translate, but just need to type and wait for it to auto translate?

You can implement that, just add a listener to the text element for change, or send a translation request every x number of seconds if the text is different.  I've found with this endpoint you're unlikely to be blocked.

This seems stale, and is beyond the scope of this project


bump version?

hiya - just curious as to what the purpose is of bumping the version absent any other changes?
thanks

To see the real changes you have to diff between the two release tags. I didn't find a good way yet to generate a real changelog...


Error on App start and Image Resizer doesn't open

Microsoft PowerToys version
<IP_ADDRESS>
Running as admin

[X] Yes

Area(s) with issue?
General, Image Resizer
Steps to reproduce
Hi,
when I open PowerToys I get the following error (report attached)
Version: <IP_ADDRESS>
OS Version: Microsoft Windows NT 10.0.19044.0
IntPtr Length: 8
x64: True
Date: 03.12.2021 13:12:11
Exception:
System.ArgumentException: An item with the same key has already been added. Key: B4D3B69656E14D44865C8D818EAE47C4
at System.Collections.Generic.Dictionary2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)    at System.Collections.Generic.Dictionary2.Add(TKey key, TValue value)
at System.Linq.Enumerable.ToDictionary[TSource,TKey](IEnumerable1 source, Func2 keySelector, IEqualityComparer`1 comparer)
at PowerLauncher.SettingsReader.UpdateSettings(PowerLauncherSettings settings)
at PowerLauncher.SettingsReader..ctor(PowerToysRunSettings settings, ThemeManager themeManager)
at PowerLauncher.App.<>c__DisplayClass14_0.b__0()
at Wox.Infrastructure.Stopwatch.Normal(String message, Action action)
at PowerLauncher.App.OnStartup(Object sender, StartupEventArgs e)
at System.Windows.Application.OnStartup(StartupEventArgs e)
at System.Windows.Application.<.ctor>b__1_0(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
2021-12-03.txt
And my biggest issue since a couple of versions: I cannot use the Image Resizer anymore. When I do a right click on an image and choose resize image, nothing happens :/.
Any help would be amazing!
All the best.
✔ Expected Behavior
Working version?
❌ Actual Behavior
See steps to reproduce.
Other Software
No response

Duplicate of #14701

Thanks for reporting this. This issue is a duplicate.
I'm linking this issue to #14701 to centralize the discussion thread for tracking.
Thanks for your help to make PowerToys a better piece of software!

Please update to the latest version of PowerToys. This is fixed in 0.51.1 release

@Netzlichter can you create a new issue for image resizer with logs?


feat: Create RepresentationConverter that chains other converters

So I changed my mind and did make some sort of meta converter. This one is still sort of simple since you have to define what the intermadiate types are going to be (otherwise I would have to think about the best interface changes to request this information from the converters), but in practice this is going to cover most cases I think.
Haven't actually tested it with real converters yet, wanted to first check out the other PR with the new converter for that.

This one is still sort of simple since you have to define what the intermadiate types are going to be (otherwise I would have to think about the best interface changes to request this information from the converters

It's a bit unfortunate that we have to define types manually in the config with this.
How much effort do you think it would be change these interfaces? Maybe it's not that much work?

How much effort do you think it would be change these interfaces? Maybe it's not that much work?

Well depends on how far you want to go, I was thinking of just having a getter for the supported input/output types, but then perhaps you could have some converters that can't go from all their supported inputs to all their supported output.
Perhaps also some of their output types are more expensive to convert to if they have multiple, which you can avoid with the manual case (or extending the interface mentioned above with some weights, but you can see how you can keep thinking of more cases).
But these are potentially all edge cases and I could ignore them and add a simple getter interface.

I was thinking of just having a getter for the supported input/output types, but then perhaps you could have some converters that can't go from all their supported inputs to all their supported output.

In Comunica, parsers and serializers must expose a hash that maps content types to priorities. AFAICS, something like this should cover most cases.
The recently added generic parser and serializer expose this information as well, so you'd get that for free with them.

The ChainedConverter now dynamically determines the "path" that needs to be taken. Slight performance hit (although this is probably quite small compared to the actual conversion), but more dynamic.
If you're wondering why I created TypedRepresentationConverter instead of just adding the functions to RepresentationConverter, the reason is that otherwise we wouldn't be able to use a CompositeAsyncHandler anymore for that type.

Is there anything that blocks us from wiring this up in the config already?

Nothing, except that I didn't really test this yet on an actual case because I first wanted to get the interface right.

I'll look into writing a small integration test for this and then adding it to the config.

Can confirm that with the default config you can now PUT a turtle file to the store and then GET JSON-LD.


ASR on llama2-7b-chat

In your paper, the ASR on llama2-7b-chat using the AutoDAN method is tens of times different from the ASR given in the AutoDAN paper (although AutoDAN uses AdvBench and you use HarmBench, such a large difference is unreasonable?). Have you checked to make sure there are no errors?

@justinphan3110cais
If convenient, could you please provide the test cases and completion information for llama2-7b chat? I plan to reproduce AutoDAN and compare the differences in ASR.
If you need some identification beforehand to ensure the safety and follow the ethical rules, pls let me know. :>

All of the test cases and labelled should be released HarmBench 1.0 update #19


FlexmarkHtmlConverter  convert a html took 11.5 hrs,i donot known why

Describe the bug A clear and concise description of what the bug is.
Feel free to remove any sections that do not apply or add your own to clarify your issue.
Please provide as much information about where the bug is located or what you were using:

[ ] Parser
[ ] HtmlRenderer
[ ] Formatter
[ ] FlexmarkHtmlParser
[ ] DocxRenderer
[ ] PdfConverterExtension
[ v] extension(s)

To Reproduce
If you can please provide sample code which exhibits the issue. This is always best because it incorporates a testable morsel which includes all relevant information.
Safelist whitelist = Safelist.basic().addTags("h1", "h2", "h3", "h4", "h5", "h6", "table", "tbody", "thead", "th", "tr", "td");
            // 保留的属性
            whitelist.addAttributes("th", "rowspan", "colspan");
            whitelist.addAttributes("td", "rowspan", "colspan");
            whitelist.addAttributes("code", "class");
            html = Jsoup.clean(html, whitelist);
            // 替换空格
            html = html.replaceAll(" "," ");

            MutableDataSet options = new MutableDataSet()
                    .set(FlexmarkHtmlConverter.BR_AS_PARA_BREAKS, false)
                    .set(FlexmarkHtmlConverter.BR_AS_EXTRA_BLANK_LINES, false)
                    .set(FlexmarkHtmlConverter.SETEXT_HEADINGS, false)
                    .set(FlexmarkHtmlConverter.SKIP_CHAR_ESCAPE, true);

            texts = Collections.singletonList(FlexmarkHtmlConverter.builder(options).build().convert(html));

Or a link to a sample code file.
If a code sample is not possible please provide as much of the following information as you can :

Input text used Please provide a sample of text which causes the issue.

Or provide a link to a file
54.zip

Options used to configure the parser, renderer, formatter, etc. Please provide concise code when you can.

Expected behavior A clear and concise description of what you expected to happen with sample output that would be desired, where it makes sense.
Resulting Output It is best to provide one of the following (in decreasing order of value):

text results,
file links,
screenshots are least useful but better than nothing.

Additional context Add any other context about the problem here.

html file is in apache-jmeter-5.3.zip\apache-jmeter-5.3\printable_docs,you can get it directliy


⚠ Bofrost.at has degraded performance

In 7e3f90d, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 860 ms

Resolved: Bofrost.at performance has improved in 56d6d2e.


[BUG] Channel log messages are too noisy

Describe the bug
The logging is very noisy, with the following logs:
23:46:08.636 [pulsar-io-23-4] INFO  io.streamnative.pulsar.handlers.kop.KafkaRequestHandler - close channel [id: 0x98ac5a23, L:/<IP_ADDRESS>:9092 ! R:/<IP_ADDRESS>:37776]
23:46:08.656 [pulsar-io-23-2] INFO  io.streamnative.pulsar.handlers.kop.KafkaRequestHandler - channel active: [id: 0x3d466c86, L:/<IP_ADDRESS>:9092 - R:/<IP_ADDRESS>:15174]
23:46:08.656 [pulsar-io-23-2] INFO  io.streamnative.pulsar.handlers.kop.KafkaRequestHandler - channel inactive [id: 0x3d466c86, L:/<IP_ADDRESS>:9092 ! R:/<IP_ADDRESS>:15174]
23:46:08.656 [pulsar-io-23-2] INFO  io.streamnative.pulsar.handlers.kop.KafkaRequestHandler - close channel [id: 0x3d466c86, L:/<IP_ADDRESS>:9092 ! R:/<IP_ADDRESS>:15174]
23:46:08.677 [pulsar-io-23-4] INFO  io.streamnative.pulsar.handlers.kop.KafkaRequestHandler - channel active: [id: 0x3235f6dc, L:/<IP_ADDRESS>:9092 - R:/<IP_ADDRESS>:59651]
23:46:08.677 [pulsar-io-23-4] INFO  io.streamnative.pulsar.handlers.kop.KafkaRequestHandler - channel inactive [id: 0x3235f6dc, L:/<IP_ADDRESS>:9092 ! R:/<IP_ADDRESS>:59651]
23:46:08.677 [pulsar-io-23-4] INFO  io.streamnative.pulsar.handlers.kop.KafkaRequestHandler - close channel [id: 0x3235f6dc, L:/<IP_ADDRESS>:9092 ! R:/<IP_ADDRESS>:59651]
23:46:08.800 [pulsar-io-23-2] INFO  io.streamnative.pulsar.handlers.kop.KafkaRequestHandler - channel active: [id: 0xd2608199, L:/<IP_ADDRESS>:9092 - R:/<IP_ADDRESS>:28541]

Spamming quite often in the broker.
These should likely be debug logs
To Reproduce

Run KoP with default logging

Yes, the channel active/inactive logs should be debug level.

After looking into the pulsar code as reference, I think the log level should keep info. See
https://github.com/apache/pulsar/blob/5ad405988fabb4b28dbdbd5aa5c9a10802f39af1/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/ServerCnx.java#L262
and
https://github.com/apache/pulsar/blob/5ad405988fabb4b28dbdbd5aa5c9a10802f39af1/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/ServerCnx.java#L274
So the question becomes why is the your client connected and disconnected so frequently?


💡 [New Feature_WebApp] - Setup Linting

[x] I am from GSSoC23.
[x] I would like to be assigned this task.

fill [x] to check the boxes.

Section
Description

Concise Description
We can setup linting so that the code is well-organized and readable. Also, this will help us to maintain the code style throughout the codebase.

Solution Proposed
This can be achieved using prettier, husky and eslint.

Alternative Solutions
Doing all indentations manually

Code of Conduct
By submitting this issue, you agree to follow our Code of Conduct.

[x] I follow the Contributing Guidelines of this project.
[x] I have checked the current issues for duplicate problems.
[x] I have read the readme of this repository.

@Astrodevil will look into this, as it requires to make a lot of changes in codebase.

I would like to work on this, Please assign it to me

@subhamkumarr Please don't spam every issue, raise your own

@Harry262530 How would you like to implement. As our project use Astro framework.


Deprecated

Hello,
First of all, congratulations for this awesome theme. It's my favourite.
But at the moment it is deprecated. Could you update it? It would be really nice.
Thank you so much.

Hi, thanks for your props. Unfortunately I switched to using visual studio code, so I am not actively using this theme. This means, I cannot constantly update the code, because I am not aware of any bugs :) I will try to update the both themes dark and light, so that they stop being deprecated and hopefully find a solution to maintain those themes with a single code base (vscode, atom, webstorm).

I couldn't find a hint, why this theme is deprecated. How do you see this? I recently installed it and no hints about deprecation...

fixed with a97a0af7f640027e0bd3e1c65b51d0361e85b223

Thank you very much.


Run all tests on latest tools

Makes all integration tests use the latest bundle version by default. There is one test that already runs on latest and the version in the environment, to test that code path as well.
By running on the latest version of the tools we'll get better confidence when we upgrade the bundle. Currently the CI checks when updating the bundle are basically useless because it uses the tools from the environment.
I also run into this with #222 but I realise that PR is held up by the virtual environment being updated anyway. So if anything using the latest version in our tests would have actually masked the error on that PR and made it more dangerous. It's dangerous if our testing environment is different from the environment that users see.
I guess the ultimate option would be to run all tests on both tools versions, but that is probably prohibitively expensive given the number of checks we already have.
So there are pros and cons of making this change. What do people think?
Merge / deployment checklist

[ ] Confirm this change is backwards compatible with existing workflows.
[ ] Confirm the readme has been updated if necessary.

The original suggestion was to run them all on both, but as you mention this takes too long and is too expensive.
It seems we have to choose our blind spot - do we choose to have confidence that code changes here work in the environment that most users will be using (the bundled version) or do we choose to have confidence while upgrading a CodeQL version?
The original consensus was for confidence in ongoing changes, because bundle upgrades are less frequent and can be tested manually. But if others want to revisit this or we want to hedge our bets with some on latest and some on bundled then that's not a particularly strong argument for not doing this.

The original consensus was for confidence in ongoing changes, because bundle upgrades are less frequent and can be tested manually.

I think that a fairly compelling argument for keeping things as they are and having these tests use the bundled version.
Upon reflection, I will close this PR. I'll make sure there's a note in the bundle upgrade instructions noting that manual testing is required and that the automated tests won't automatically pick up the new bundle.


0.4.0

Coverage remained the same at 100.0% when pulling 05a8e0a18936b6d19a01bffa37f5671aa4693770 on bump-version into 61b9793673f108278b87f7cbe113e7464571a20b on master.


Destroy ckeditor instance correctly.

With the current code, in the destroy hook we loop over instances using
a for in loop. That yields the keys to the loop, which we then call
destroy() on, which fails because it's just a string, not the actual
instance.
This code fixes it so that:

We call destroy correctly on the CKEDITOR instance.
We only destroy the id of the CKEDITOR instance that this component
is actually showing. In the current code it would actually kill all
CKEDITOR instances on the page, which is probably not desired.

I made 2 sample apps:
http://ckeditor-destroy-example.surge.sh/ shows an example with the
current code. In it you can see how when we force a new component to be
created (changing the :key) all the old ckeditor instances are still
there.
http://fixed-ckeditor-destroy.surge.sh/ is with this patch applied, and
you can see that the CKEDITOR instances do not grow.
https://gist.github.com/patrickdavey/266bf06b39237dcc40679978fdd229d4
shows a gist of the code I used to create these sample apps.

Thank you very much @patrickdavey


Dart/flutter package out of date?

Describe the bug
The dart runtime package at https://pub.dev/publishers/rainway.com/packages is old and doesn't match the runtime dart code (or name!) in this repository. Using bebop in dart/flutter is then harder than normal libraries as I end up copying the runtime dart files out of this repo and setting them up as a local library, rather than a normal import.
Expected behavior
flutter pub add bebop_dart (or flutter pub add bebop) (and equiv for dart) should work and provide the current version of the bebop runtime for dart)

Guys, what the status with Dart? When it will be available??


Update scheduler initialization behavior to avoid OOM

Fixes https://github.com/armadaproject/armada/issues/4018
This pull request updates the scheduler logic such that it only pulls non-terminal jobs and their associated job runs to load into the in-memory job db. Additionally, it fetches that latest job and job run serials and sets its not he in-memory job db such that later syncs only fetch the true delta of jobs and job runs after initialization (since there may been jobs that completed after the most recent non-terminal job started running).
This has reduced our memory consumption considerably on startup however it will still grow related to the number of non-terminal jobs. Additionally, initialization still takes an awful long time for us (~2 mins) so I assume that there is a linear scan going without indexes on the various terminal-state columns. That is something I may try and optimize in another pull request.

@d80tb7 can you please take a look?

Looks great- thank you!


WhisperKit init refactor

added WhisperMLModel conformance, no more conditional casting
setupModels -> static setupModelFolder which makes modelFolder non optional
removed download param, I think it's not needed. When the modelFolder param is nil we download, otherwise we load the model from the directory

Possible future improvements:

load models (featureExtractor, audioEncoder and textDecoder) in parallel?
we could add forceDownload param which, in case modelFolder is provided will redownload

Can the model now be used completely offline? It seems that loadTokenizer still needs to connect to hf (huggingface) to download.

I'd like to avoid requiring WhisperMLModel for these because we will soon be working with MLX models that will follow the same TextDecoding protocols, but won't have associated MLModels. Everything else looks good

not much is left in this PR after this is removed so I'll close it for now


Target net5.0

At the moment referencing package in net5.0 WPF app I get the following warning:
Package 'Emoji.Wpf 0.1.5' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework 'net5.0-windows7.0'. This package may not be fully compatible with your project.
Though it works without an issue, it would be nice to target net5.0 as well.
Thanks.

Thanks for reporting this. Are you familiar with that kind of issue? I just put <TargetFrameworkVersion>v3.0</TargetFrameworkVersion> in the .csproj file to ensure maximum backwards compatibility, so I don’t really know how that causes it to work with 4.8 but not 5.0.

Thanks for reporting this. Are you familiar with that kind of issue? I just put <TargetFrameworkVersion>v3.0</TargetFrameworkVersion> in the .csproj file to ensure maximum backwards compatibility, so I don’t really know how that causes it to work with 4.8 but not 5.0.

As mentioned, it works with no issues with net5.0, I can only assume that it needs explicitly target net5.0, hence the warning.

As mentioned, it works with no issues with net5.0, I can only assume that it needs explicitly target net5.0, hence the warning.

Yes, sorry, by “work” I meant “not issue a warning”.
I target net30 which as far as I understand should be compatible with virtually anything. I’m tagging this issue as “help wanted” because I target .NET 3.0 in the .csproj and put all extra libraries in lib/net30 so I have no idea what causes the warning.

Yes, sorry, by “work” I meant “not issue a warning”.
I target net30 which as far as I understand should be compatible with virtually anything. I’m tagging this issue as “help wanted” because I target .NET 3.0 in the .csproj and put all extra libraries in lib/net30 so I have no idea what causes the warning.

I'm not really sure, it could be an msbuild issue i guess.
Anyway, since it works, not exactly high priority, just thought letting you know.
Thanks for writing this library by the way.

I'm not really sure, it could be an msbuild issue i guess.
Anyway, since it works, not exactly high priority, just thought letting you know.
Thanks for writing this library by the way.

.NET 5 is the successor to .NET Core 3.1 and not targeting compatible with .NET Framework 4.8.
https://docs.microsoft.com/en-us/dotnet/standard/frameworks
https://docs.microsoft.com/en-us/dotnet/standard/library-guidance/cross-platform-targeting

.NET 5 is the successor to .NET Core 3.1 and not targeting compatible with .NET Framework 4.8.
https://docs.microsoft.com/en-us/dotnet/standard/frameworks
https://docs.microsoft.com/en-us/dotnet/standard/library-guidance/cross-platform-targeting

#32 fixes this, please take it for a spin


Feature request: sorting

Currently the list of attachments in the sidebar is sorted alphabetically. It would be helpful to be able to sort them by other attributes, such as timestamp.

This app is now maintained and supported by Sparkly. Although the app is available for free in the marketplace, the new versions are no longer open source. We would like to thank Charles Wood for his great work!
As attachments are grouped by comment now, sorting is no longer necessary.


Can it work for non-exist file

Such as:
vi /the/path/of/a/non-exist/file

And /the/path/.git exist. Rooter will not cd to /the/path.
However:
touch /the/path/of/a/non-exist/file
vi /the/path/of/a/non-exist/file

Rooter will cd to /the/path.
So Rooter is only work for BufRead not BufNewFile, really? How can make it work for BufNewFile? Thanks!

The file has to exist on disk for vim-rooter to be able to check its parent/siblings/descendants with glob patterns.
As soon as you write your new file, vim-rooter will change directory to the root.


DRK: Salted earth has a tick on cast,t hen aligns with actor ticks

Salted earth should immediately tick (as a ground dot) on cast and then will align with actor ticks.

(From discussion with Apollo)


CamelCase for all constraints

update all user and generated constraints to camelcase

Constraints are defined and documented in CamelCase. However, the constraints produced/translated by the compiler are snake_case. Can compiler stick with the documentation, CamelCase, to prevent confusion?

This could be a simple back-transformation from snake to camel.


Fix flatcar AMI filter

What this PR does / why we need it:
Seems like recently flatcar got new arm64 images, and THEY starter to return from search query, which leads to incompatible architecture errors between AMI and instance.
This PR fixes that problem
Fix flatcar AMI filter

/cherrypick release/v1.3

cherry pick: #1693


One note template

LGTM

When I did a test run, the generated project seems to complain that it can't find the SharePointClient class. Are we missing a lib reference? Looks good otherwise.

Looks good now.


Data Published from Bms not accurate.

Talking to BMS and getting Data back but some stuff does not come back correct.

Could you provide the model number, hardware version and software version of your BMS?
Could you name the sensors which doesn't provide correct measurements/values? Please try to be explicit by using the config values f.e. capacity_remaining.

Model JK-B1A20S15P
Hardware V =8.x
Software V=8.14U
ESP8266

I am not sure what you mean by using the config values f.e.

Could you provide your configuration.yaml and mark the "faulty" sensors somehow?
For example:
sensor:
  - platform: jk_bms
    min_cell_voltage: # <-- is empty
      name: "${name} min cell voltage"
    max_cell_voltage: # <-- should be 5 is 10
      name: "${name} max cell voltage"
    delta_cell_voltage:
      name: "${name} delta cell voltage"
    cell_voltage_1:
      name: "${name} cell voltage 1"
    cell_voltage_2:

actual_battery_capacity:
name: "${name} actual battery capacity"
Should be 560 and it is showing 512

I can send you a copy of the logs if you like?

Please enable the debug mode of the uart component by adding:
uart:
  ...
  debug:
    direction: BOTH

The full uart section will look like this:
uart:
  id: uart0
  baud_rate: 115200
  rx_buffer_size: 384
  tx_pin: GPIO14
  rx_pin: GPIO4
  debug:
    direction: BOTH

Please flash again and check the logs of the esphome node by:
esphome logs your-device.yaml

Esphome prints the log after flashing automatically:
esphome run your-device.yaml

I'm interested in this lines:
[20:29:14][D][uart_debug:114]: >>> 4E:57:00:13:00:00:00:00:06:03:00:00:00:00:00:00:68:00:00:01:29
[20:29:19][D][uart_debug:114]: >>> 4E:57:00:13:00:00:00:00:06:03:00:00:00:00:00:00:68:00:00:01:29

Let's first focus on actual_battery_capacity: https://github.com/syssi/esphome-jk-bms/blob/main/components/jk_bms/jk_bms.cpp#L331-L332

[13:43:12][D][uart_debug:114]: >>> 4E:57:00:13:00:00:00:00:06:03:00:00:00:00:00:00:68:00:00:01:29
[13:43:12][D][uart_debug:114]: <<< 4E:57:01:21:00:00:00:00:06:00:01:79:30:01:0D:38:02:0D:2F:03:0D:34:04:0D:31:05:0D:2F:06:0D:2C:07:0D:3C:08:0D:2C:09:0D:33:0A:0D:2A:0B:0D:3C:0C:0D:2A:0D:0D:3E:0E:0D:2D:58:58:33:AC:18:19:00:15:81:00:11:82:00:08:83:15:1A:84:85:A5:85:4F:86:02:87:00:00:89:00:00:00:00:8A:00:10:8B:00:00:8C:00:03:8E:16:D0:8F:10:40:90:0E:42:91:0D:DE:92:00:05:93:0A:28:94:0B:B8:95:00:05:96:01:2C:97:00:96:98:01:2C:99:00:64:9A:00:1E:9B:0D:48:9C:00:07:9D:01:9E:00:5A:9F:00:46:A0
[13:43:12][D][uart_debug:114]: <<< 00:64:A1:00:64:A2:00:14:A3:00:46:A4:00:46:A5:FF:EC:A6:FF:F6:A7:FF:EC:A8:FF:F6:A9:10:AA:00:00:02:30:AB:01:AC:01:AD:04:C9:AE:01:AF:01:D8:00:0A:B1:14:B2:31:32:33:34:35:36:00:00:00:00:B3:C0:BB:9A:1B:AB:A3:20:55:73:B5:32:31:31:30:B6:00:01:F6:00:B7:48:38:2E:58:5F:5F:53:38:2E:31:34:55:5F:5F:5F:B8:00:B9:00:00:02:00:BA:42:54:33:30:37:32:30:32:30:31:32:30:30:30:30:32:30:30:35:32:31:30:30:31:C0:01:00:00:00:00:68:00:00:4B:68

Is that what you wanted?

I looked at the logs and also found this.
[13:55:32][D][uart_debug:114]: >>> 4E:57:00:13:00:00:00:00:06:03:00:00:00:00:00:00:68:00:00:01:29
[13:55:32][D][uart_debug:114]: <<< 4E:57:01:21:00:00:00:00:06:00:01:79:30:01:0D:2A:02:0D:2D:03:0D:2D:04:0D:2A:05:0D:37:06:0D:28:07:0D:37:08:0D:29:09:0D:27:0A:0D:2D:0B:0D:2E:0C:0D:2A:0D:0D:37:0E:0D:2A:0F:0D:32:10:0D:25:80:00:15:81:00:11:82:00:11:83:15:15:84:93:86:85:50:86:02:87:00:00:89:00:00:00:00:8A:00:10:8B:00:00:8C:00:03:8E:16:D0:8F:10:40:90:0E:42:91:0D:DE:92:00:05:93:0A:28:94:0B:B8:95:00:05:96:01:2C:97:00:96:98:01:2C:99:00:64:9A:00:1E:9B:0D:48:9C:00:07:9D:01:9E:80:5A:9F:00:46
[13:55:32][W][jk_modbus:073]: JkModbus CRC Check failed! 4B8A!=4B0A
[13:55:32][D][uart_debug:114]: <<< A0:00:64:A1:00:64:A2:00:14:A3:00:46:A4:00:46:A5:FF:EC:A6:FF:F6:A7:FF:EC:A8:FF:F6:A9:10:AA:00:00:02:30:AB:01:AC:01:AD:04:C9:AE:01:AF:01:B0:00:0A:B1:14:B2:31:32:33:34:35:36:00:00:00:00:B3:00:B4:49:6E:70:75:74:20:55:73:B5:32:31:31:30:B6:00:01:F6:00:B7:48:38:2E:58:5F:5F:53:38:2E:31:34:55:5F:5F:5F:B8:00:B9:00:00:02:00:BA:42:54:33:30:37:32:30:32:30:31:32:30:30:30:30:32:30:30:35:32:31:30:30:31:C0:01:00:00:00:00:68:00:00:4B:0A

The first line is the request (TX). Line 2 and 3 is the response from the BMS. If we add some linebreaks the response is better readable:
4E:57:01:21:00:00:00:00:06:00:01:
79:30:
01:0D:38:
02:0D:2F:
03:0D:34:
04:0D:31:
05:0D:2F:
06:0D:2C:
07:0D:3C:
08:0D:2C:
09:0D:33:
0A:0D:2A:
0B:0D:3C:
0C:0D:2A:
0D:0D:3E:
0E:0D:2D:
58:58:33:AC:18:19:00:15:
81:00:11:
82:00:08:
83:15:1A:
84:85:A5:
85:4F:
86:02:
87:00:00:
89:00:00:00:00:
8A:00:10:
8B:00:00:
8C:00:03:
8E:16:D0:
8F:10:40:
90:0E:42:
91:0D:DE:
92:00:05:
93:0A:28:
94:0B:B8:
95:00:05:
96:01:2C:
97:00:96:
98:01:2C:
99:00:64:
9A:00:1E:
9B:0D:48:
9C:00:07:
9D:01:
9E:00:5A:
9F:00:46:
A0:00:64:
A1:00:64:
A2:00:14:
A3:00:46:
A4:00:46:
A5:FF:EC:
A6:FF:F6:
A7:FF:EC:
A8:FF:F6:
A9:10:
AA:00:00:02:30:
AB:01:
AC:01:
AD:04:C9:
AE:01:
AF:01:D8:00:0A:
B1:14:
B2:31:32:33:34:35:36:00:00:00:00:
B3:C0:BB:9A:1B:AB:A3:20:55:73:
B5:32:31:31:30:
B6:00:01:F6:00:
B7:48:38:2E:58:5F:5F:53:38:2E:31:34:55:5F:5F:5F:
B8:00:
B9:00:00:02:00:
BA:42:54:33:30:37:32:30:32:30:31:32:30:30:30:30:32:30:30:35:32:31:30:30:31:
C0:01:
00:00:00:00:68:00:00:4B:68

Please don't care about the CRC error. Some frames/responses are dropped because of CRC errors. The next reading will be fine again and will update the sensor measurements properly.

Ok so on my bluetooth app There is a value for remain battery and it equals 81%
and there is a value for remain capacity and it equals 457.3 ah
Is there a way to make the remain capacity show up?

Could you tell me the value of the capacity_remaining sensor? May be please provide the full log of sensor measurements.

https://github.com/syssi/esphome-jk-bms/blob/main/components/jk_bms/jk_bms.cpp#L127-L128
85:4F:  # Register 0x85, value 0x4F = 79%

[14:15:27][I][jk_bms:061]: Status frame received
[14:15:27][D][sensor:125]: '${name} cell voltage 1': Sending state 3.37400 V with 3 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} cell voltage 2': Sending state 3.36500 V with 3 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} cell voltage 3': Sending state 3.38000 V with 3 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} cell voltage 4': Sending state 3.36900 V with 3 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} cell voltage 5': Sending state 3.36400 V with 3 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} cell voltage 6': Sending state 3.36800 V with 3 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} cell voltage 7': Sending state 3.36800 V with 3 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} cell voltage 8': Sending state 3.36300 V with 3 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} cell voltage 9': Sending state 3.37200 V with 3 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} cell voltage 10': Sending state 3.36300 V with 3 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} cell voltage 11': Sending state 3.37900 V with 3 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} cell voltage 12': Sending state 3.36100 V with 3 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} cell voltage 13': Sending state 3.38000 V with 3 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} cell voltage 14': Sending state 3.36400 V with 3 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} cell voltage 15': Sending state 3.37800 V with 3 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} cell voltage 16': Sending state 3.35900 V with 3 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} min cell voltage': Sending state 3.35900 V with 3 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} max cell voltage': Sending state 3.38000 V with 3 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} delta cell voltage': Sending state 0.02100 V with 3 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} power tube temperature': Sending state 20.00000 °C with 0 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} temperature sensor 1': Sending state 17.00000 °C with 0 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} temperature sensor 2': Sending state 16.00000 °C with 0 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} total voltage': Sending state 53.89000 V with 2 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} current': Sending state -45.81000 A with 2 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} capacity remaining': Sending state 82.00000 % with 0 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} temperature sensors': Sending state 2.00000  with 0 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} total charging cycle capacity': Sending state 0.00000  with 0 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} battery strings': Sending state 16.00000  with 0 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} errors bitmask': Sending state 0.00000  with 0 decimals of accuracy
[14:15:27][D][text_sensor:067]: '${name} errors': Sending state ''
[14:15:27][D][sensor:125]: '${name} operation mode bitmask': Sending state 3.00000  with 0 decimals of accuracy
[14:15:27][D][text_sensor:067]: '${name} operation mode': Sending state 'Charging enabled;Discharging enabled'
[14:15:27][D][sensor:125]: '${name} total voltage overvoltage protection': Sending state 58.40000 V with 2 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} total voltage undervoltage protection': Sending state 41.60000 V with 2 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} cell voltage overvoltage protection': Sending state 3.65000 V with 3 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} cell voltage overvoltage recovery': Sending state 3.55000 V with 3 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} cell voltage overvoltage delay': Sending state 5.00000 s with 0 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} cell voltage undervoltage protection': Sending state 2.60000 V with 3 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} cell voltage undervoltage recovery': Sending state 3.00000 V with 3 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} cell voltage undervoltage delay': Sending state 5.00000 s with 0 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} cell pressure difference protection': Sending state 0.30000 V with 3 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} discharging overcurrent protection': Sending state 150.00000 A with 0 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} discharging overcurrent delay': Sending state 300.00000 s with 0 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} charging overcurrent protection': Sending state 100.00000 A with 0 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} charging overcurrent delay': Sending state 30.00000 s with 0 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} balance starting voltage': Sending state 3.40000 V with 3 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} balance opening pressure difference': Sending state 0.00700 V with 3 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} power tube temperature protection': Sending state 90.00000 °C with 0 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} power tube temperature recovery': Sending state 70.00000 °C with 0 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} temperature sensor temperature protection': Sending state 100.00000 °C with 0 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} temperature sensor temperature recovery': Sending state 100.00000 °C with 0 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} temperature sensor temperature difference protection': Sending state 20.00000 °C with 0 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} charging high temperature protection': Sending state 70.00000 °C with 0 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} discharging high temperature protection': Sending state 70.00000 °C with 0 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} charging low temperature protection': Sending state -20.00000 °C with 0 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} charging low temperature recovery': Sending state -10.00000 °C with 0 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} discharging low temperature protection': Sending state -20.00000 °C with 0 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} discharging low temperature recovery': Sending state -10.00000 °C with 0 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} current calibration': Sending state 1.22500 A with 3 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} device address': Sending state 1.00000  with 0 decimals of accuracy
[14:15:27][D][text_sensor:067]: '${name} battery type': Sending state 'Ternary Lithium'
[14:15:27][D][sensor:125]: '${name} sleep wait time': Sending state 10.00000 s with 0 decimals of accuracy
[14:15:27][D][sensor:125]: '${name} alarm low volume': Sending state 20.00000 % with 0 decimals of accuracy
[14:15:27][D][text_sensor:067]: '${name} password': Sending state '123456'
[14:15:27][D][text_sensor:067]: '${name} device type': Sending state 'Input Us'
[14:15:27][D][sensor:125]: '${name} total runtime': Sending state 2141.86670 h with 0 decimals of accuracy
[14:15:27][D][text_sensor:067]: '${name} software version': Sending state 'H8.X__S8.14U___'
[14:15:27][D][sensor:125]: '${name} actual battery capacity': Sending state 512.00000 Ah with 0 decimals of accuracy
[14:15:27][D][text_sensor:067]: '${name} manufacturer': Sending state 'BT3072020120000200521001'

Another minor thing: Esphome wasn't able to replace the variable ${name}. I assume it wasn't defined. Please add this to the top of your configuration:
substitutions:
  name: jk-bms

May be I didn't understand what you are looking for. This value is available
[14:15:27][D][sensor:125]: '${name} capacity remaining': Sending state 82.00000 % with 0 decimals of accuracy

and looks good to me. Are you looking for the remaining capacity in Ah? Could you tell me the total capacity of your battery?

Yes but on my bluetooth app there is 2 sections for the battery

Remain Battery = 82%
Remain Capacity = 463.4 ah
My total capacity is 560 ah

The total_capacity sensor isn't supported yet:
https://github.com/syssi/esphome-jk-bms/blob/main/components/jk_bms/jk_bms.cpp#L280-L281
But it looks like your BMS returns the proper value here:
AA:00:00:02:30: # Register 0xAA, value 0x0230 = 560 decimal

It looks like the actual_battery_capacity sensor is useless. I assume the value will drop at some point from 512 to 256 or something. Could you monitor the actual_battery_capacity value for some days and provide some updates? I assume the resolution is super bad here.
But we could introduce a new calculated sensor by doing something like this: 560 * 82% = 459,2 Ah
What do you think?

So how would i program that? for the 560 decimal?
And yes the other would be good to

I will care about it. It will take a few days.

when I add the substitutions name to the config, do I have to flash again? And if yes can I do it while its connected to the bms?

Yes. You have to flash the new version but the ESP doesn't need to be attached to the USB port anymore. You can use OTA now.

Ok thank you very much for you help!!!!!
I look forward to hearing from you when you are done.

I've improved the component. Please extend your configuration by the two new sensors:
    capacity_remaining_derived:
      name: "${name} capacity remaining derived"
    total_battery_capacity_setting:
      name: "${name} total battery capacity setting"

And try/flash again.

Feel free to create a new issue if you are missing something else.


The output image is darker than the input image

When I try to specify the img-size to 1280, the output image is darker than the input image.

@wilile26811249
Yeah, that's because of the saliency map. At points in which no activation occurred, it's a dark layer. Also, for better visualization, a normalization operation is performed, resulting in a darker image.

Thank you for your explain. I understand.


Report generic rest parameters as unreliable variance positions

Fixes #32948. Only Unreliable rather than Unmeasurable since it should be that in any case where the variance result is wrong, it's because the variance is overstrict because we have more relaxed arity-based rules on the signature than tuples have.

Might be worth checking DT for this. As it's Unreliable and not Unmeasurable I guess there wont be any questionable typing's that passed and now don't?

@typescript-bot run dt

@typescript-bot run dt
@typescript-bot perf test this
@typescript-bot test this

@typescript-bot user test this 😎

user tests are just some updates the have yet to hit master, everything is good 🎶
@ahejlsberg sign-off would be much appreciated

Maybe add repro from #30301 and mark that as fixed.

cc @RyanCavanaugh you bumped this from 3.7 to 3.8 yesterday - you may port to 3.7 if you wish, though.


Still waiting...

We are still waiting for the release...

It's hilarious because the only contributions you (or rather your "we" amount of pawns) have to open source software, is contributing complaints to the authors on how to use their software, or why it hasn't been released.

Good day.

we don't need your support or anything from you or from anyone, just waiting to know your lame method.

right because it wasn't already completely obvious in my blogpost: http://blog.seekintoo.com/chimay-red.html


How to create computed columns ?

First Check

[X] I added a very descriptive title to this issue.
[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the SQLModel documentation, with the integrated search.
[X] I already searched in Google "How to X in SQLModel" and didn't find any information.
[X] I already read and followed all the tutorial in the docs and didn't find an answer.
[X] I already checked if it is not related to SQLModel but to Pydantic.
[X] I already checked if it is not related to SQLModel but to SQLAlchemy.

Commit to Help

[X] I commit to help with one of those options 👆

Example Code
class Album(SQLModel):
    title: str
    slug: str
    description: str

# what i've tried but doesn't work e.g :

#     slug: str = column_property(slugify(title))
# E   NameError: name 'title' is not defined

class Album(SQLModel):
    title: str
    slug: str = column_property(slugify(title))
    description: str

Description
I'm trying to generate a column named "slug" that is a slugified version of "title" so it should be persisted in database, and be updated when title changes.
But so far no luck, I've looked at column property but didn't manage to make it work with SQLModel.  I saw that there are events "before update" ... but I don't think this is the way to go
Operating System
Windows
Operating System Details
No response
SQLModel Version
0.0.4
Python Version
3.9.2
Additional Context
No response

I tried using @hybrid_property decorator from sqlalchemy, but it raises :
E   fastapi.exceptions.FastAPIError: Invalid args for response field! Hint: check that <class 'sqlalchemy.ext.hybrid.hybrid_property'> is a valid pydantic field type

And if I set :
from pydantic import BaseConfig

BaseConfig.arbitrary_types_allowed = True

We now have :
ValueError: [TypeError("'wrapper_descriptor' object is not iterable"), TypeError('vars() argument must have __dict__ attribute')]

Hi @sorasful,
So basically you want the slug = slugify(title)?
To do so I would do the following:
from sqlmodel import SQLModel
from pydantic import root_validator
from typing import Optional

class Album(SQLModel):
    title: str
    slug: Optional[str]
    description: str

@root_validator
def create_slug(cls, values):
    title = values.get("title")
    slugify_title = slugify(title)
    values["slug"] = slugify_title
    return values

The input:
{
  "title": "My Album Title",
  "description": "This is a description"
}

The output I got:
{
  "title": "My Album Title",
  "description": "This is a description",
  "slug": "my-album-title"
}

@FabiEbert  Hello, yeah that's what I ended up doing. But I don't feel like is the cleaner way you know. Also, if you want the slug to be updated each time you update the title you need to add this in your model
    class Config:
        validate_assignment = True

Any other thoughts on how to actually use the computed_property() from SQL alchemy? E.g.
class Parent(SQLModel):
....
child_count: Optional[int] = Field(sa_column=column_property(
select(func.count(Child.id)).where(Child.parent_id == id)
))
This results in in "column Parent.child_count does not exist."

I think this is one of biggest SQLModel drawbacks I've encountered.
I tried the root-validator approach (which needs validate_assignment=True in order to get the computer column properly updated), but the root validator method is sometime invoked with an incomplete dict (having the additional  _sa_instance_state field).
I am trying to use the root validator in order to calculate an hash-value on a subset of the model fields.
    @root_validator(pre=False,
                    skip_on_failure=True
                    )
    def calculate_global_hash(cls, values) -> Dict:
        values["final_hash"] = sha256_hash_values(
            values['required_field1'], values['required_field2']
        )
        return values

Pydantic v2.0 adds support for computed fields, which should allow computed columns once Pydantic V2 support is added (related to #621)

This worked for me
    @computed_field(return_type=str)
    @declared_attr
    def hello_world(self):
        return column_property(
            func.concat('hello ', "world")
        )

but could not do a query

As @samidarko already mentioned, pydantic 2.0's computed_field decorator solves the problem:
from sqlmodel import SQLModel
from pydantic import computed_field
from slugify import slugify

class Album(SQLModel):
    title: str
    description: str

    @computed_field
    @property
    def slug(self) -> str:
        return slugify(self.title)

Result:
>>> Album(title='A Title With Many Spaces', description='I am the description')
Album(title='A Title With Many Spaces', description='I am the description', slug='a-title-with-many-spaces')

Application to other cases
You can replace the code in slug() with whatever your need is. If you use SQLModel in conjunction with SQLAlchemy, you can even access relationship attributes:
class Article(FoodArticleBase, table=True):
    __tablename__ = "food_article"

    id: int | None = Field(default=None, primary_key=True)
    price_history: list["PriceHistory"] = Relationship()

    @computed_field
    @property
    def unit_price_gross(self) -> float | None:
        """Returns the most recent price from self.price_history."""
        if self.price_history:
            prices_sorted = sorted(
                self.price_history,
                key=lambda item: item.valid_from,
                reverse=True
            )
            current_price = prices_sorted[0].unit_price_gross
            return current_price
        else:
            return None

@tiangolo With computed_field, this problem now has a very clean solution. If desired, I'm happy to write a section about it for the documentation / tutorial :)

@ErikFub in your example slug is available as a property on class but is not actually made as a column in the database table. Is that what you are seeing as well?
I believe OPs original question wanted the slug field/value to be persisted to the database.
I'm using the latest sqlmodel version 0.14 and pydantic 2.0.

@gavinest True that, I missed the part that it should persist in the database - thanks for pointing that out! I've adjusted my answer accordingly

Use my PR #801


Tradeblock Case study page

on the title "Kicks as currency" let's remove the period.
Font on Mbiyimoh's quote needs some downsizing.

Done!


Startup Problem (Microsoft Store Version)

the app does not launch at startup even i enable the startup

Yes, It doesn't show in task manager but, does it run at startup after the latest update?

I had the same issue @ChrisAnd1998 and I was using the UWP version as well. The app was not showing up in the task manager, nor actually booting at start-up. I cannot confirm if this is fixed on the new versions as they do not work for me as I reported in issue #10 .
I can confirm that the desktop version 1.2.0 of the app auto start-up works great, and it does appear in the task manager as expected.

@jerryshaw12 Do you still have this issue? with <IP_ADDRESS>

Fixed ;)


Integrate further changes from cginternals/cmake-init#78

@Felerius Is this done yet? It seems like it. If so, please close this issue.

It was fixed in that PR, but I don't think we have integrated those into our repo yet (they had just been merged when you asked). I can make another PR updating our version of cmake-init today or tomorrow to fix this.

Ok. I remember that I integrated some changes into our repo, but I am not sure if I did it completely.

Fixed by #39


GitStateManager

Pulls on read, pushes on write. On conflict, it rolls back and cleans up

Current coverage is 54.25% (diff: 83.60%)

Merging #162 into master will increase coverage by 0.24%

@@             master       #162   diff @@
==========================================
  Files           102        103     +1
  Lines          5157       5207    +50
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           2785       2825    +40
- Misses         2132       2138     +6
- Partials        240        244     +4

Powered by Codecov. Last update 3e6cb61...035e634


309551092 lab4

Hi @samuelyen36 ,
There are some merge conflicts that I can't resolve directly.
Could you help me fix them?
If you need any help, feel free to contact me.
@ljs7619480


🐛 Bug Report: Azure Devops Pull Request dashboard produces misleading error if project-repo doesn't exist

📜 Description
If you
👍 Expected behavior
Some kind of error that more clearly indicates that the project can't be found (e.g. a 404)
👎 Actual Behavior with Screenshots

👟 Reproduction steps
Have the Azure Devops plugins installed & configured and an entity with the following annotations
  annotations:
    dev.azure.com/project-repo: Does/Not.Exist

Go to the pull request dashboard
📃 Provide the context for the Bug.
Stack error from the backend is
TypeError: Cannot read properties of null (reading 'id')
    at AzureDevOpsApi.getPullRequests (/app/node_modules/@backstage/plugin-azure-devops-backend/dist/index.cjs.js:484:21)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /app/node_modules/@backstage/plugin-azure-devops-backend/dist/index.cjs.js:840:28

I believe we need a check at https://github.com/backstage/backstage/blob/b053ab1782f43300d65473a81aaf65aaee94ae03/plugins/azure-devops-backend/src/api/AzureDevOpsApi.ts#L286-L297 to fail fast with a 404 if gitRepository comes back undefined.
I'm happy to make a Pr for this bug, but logging this here as a reminder
🖥 Your Environment
No response
👀 Have you spent some time to check if this bug has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Are you willing to submit PR?
Yes I am willing to submit a PR!

Hi @alexanderc-tray, thanks for the detailed issue and possible solution. Sounds good to me, feel free to submit a PR!

This is still a bug that should be fixed. Going to toss a help wanted label so someone else can pick it up 👍


[Storage] Prepare for Storage Base Packages Preview Patch Release and WebJobs GA Patch Release

Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.

API change check
API changes are not detected in this pull request.


Support for Mongoose 5

Hi, do you plan to support Mongoose 5?
getTotalCount() gives the following warning:
DeprecationWarning: collection.count is deprecated, and will be removed in a future version. Use collection.countDocuments or collection.estimatedDocumentCount instead
Thanks

This is due to the underlying mongodb driver deprecating count in preference for countDocuments. I'll add a patch for this in the next few days.
I've also been exploring an overhaul to this package (a new major version) that reduces the overhaul query overhead for MongoDB.

@dariodavi This has been fixed and published to npm as v1.1.4


Show DNS reminder when provisioning SSLendpoint

Should we tell users to update their DNS settings after they have added a new SSL cert (US apps only). A frequent ticket pattern is when customer adds cert, then access site and gets a certificate mismatch. They open a ticket and we tell them they've forgotten to update their DNS to point at the new ELB address.

merge into #15? info should go in same message.


[Question] There is something wrong with the Documentation.

Required prerequisites

[X] I have read the documentation https://safety-gymnasium.readthedocs.io.
[X] I have searched the Issue Tracker and Discussions that this hasn't already been reported. (+1 or comment there if it has.)
[x] Consider asking first in a Discussion.

Questions
There is something wrong with the Documentation. I cannot access the link(https://www.safety-gymnasium.com/).

This discussion may help you.


[Solutions] Windows Server multi-tier healthcare application

:warning: Validation status: warnings

File
Status
Preview URL
Details

docs/sample-solutions/windows-server/healthcare-multitier-app.md
:warning:Warning
View
Details

docs/sample-solutions/windows-server/templates/healthcare-multitier-app.json
:white_check_mark:Succeeded

docs/sample-solutions/windows-server/healthcare-multitier-app.md

Line 25: [Warning] Invalid file link:(~/sample-solutions/windows-server/media/healthcare-multitier-app/architecture-healthcare-multitier-app.png).

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/sample-solutions/windows-server/healthcare-multitier-app.md
:white_check_mark:Succeeded
View

docs/sample-solutions/windows-server/media/healthcare-multitier-app/architecture-healthcare-multitier-app.png
:white_check_mark:Succeeded
View

docs/sample-solutions/windows-server/templates/healthcare-multitier-app.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/sample-solutions/windows-server/healthcare-multitier-app.md
:white_check_mark:Succeeded
View

docs/sample-solutions/windows-server/media/healthcare-multitier-app/architecture-healthcare-multitier-app.png
:white_check_mark:Succeeded
View

docs/sample-solutions/windows-server/templates/healthcare-multitier-app.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/sample-solutions/windows-server/healthcare-multitier-app.md
:white_check_mark:Succeeded
View

docs/sample-solutions/windows-server/media/healthcare-multitier-app/architecture-healthcare-multitier-app.png
:white_check_mark:Succeeded
View

docs/sample-solutions/windows-server/templates/healthcare-multitier-app.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/sample-solutions/windows-server/healthcare-multitier-app.md
:white_check_mark:Succeeded
View

docs/sample-solutions/windows-server/media/healthcare-multitier-app/architecture-healthcare-multitier-app.png
:white_check_mark:Succeeded
View

docs/sample-solutions/windows-server/templates/healthcare-multitier-app.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


soroban-rpc: Graceful shutdown for HTTP server

What problem does your feature solve?
When you kill soroban-rpc it may drop ongoing HTTP requests.
What would you like to see?
We should use the HTTP server graceful shutdown mechanism to finish pending HTTP requests before shutdown.
What alternatives are there?

We are already using gopkg.in/tylerb/graceful.v1 (through supporthttp.Run())

Although we should probably just be using https://pkg.go.dev/net/http#Server.Shutdown directly


Custom gradle tasks with custom ruleset results in warning

Running ktlint in gradle with a custom task (ie no plugin) AND a custom rule set results in the following warning:
[WARNING] Number of custom rule sets loaded does not match the expected number of rule sets to be loaded.
Expected to load 0 custom rule set(s) for rules:
Actually loaded 1 custom rule set(s) with names: XXXX
One or more of the specified jars does not provide the custom rule set correctly. Check following:
- Does the jar contain an implementation of the RuleSetProvider interface?
- Does the jar contain a resource file with name "com.pinterest.ktlint.core.RuleSetProvider"?
- Is the resource file located in directory "src/main/resources/META-INF/services"?
- Does the resource file contain the fully qualified class name of the class implementing the RuleSetProvider interface?
Expected Behavior
Loading custom rule sets should NOT result in a warning unless the custom rules failed to meet the other rules.
Observed Behavior
Custom rules are loaded and executed, just an invalid warning is being displayed.
Steps to Reproduce
Load custom rule set using:
val ktlint by configurations.creating

dependencies {
    ktlint("com.pinterest:ktlint:0.43.0") {
        attributes {
            attribute(Bundling.BUNDLING_ATTRIBUTE, objects.named(Bundling.EXTERNAL))
        }
    }
    ktlint(project(":custom-ktlint-ruleset"))
}

Your Environment

Version of ktlint used: 0.43.0
Name and version (or code for custom task) of integration used (Gradle plugin, Maven plugin, command line, custom Gradle task): custom gradle tasks
Version of Gradle used (if applicable): 7.2
Operating System and version: OSX 12.0.1
Link to your project (if it's a public repository): n/a

Additional Notes
This did not occur in 0.42.1 or earlier versions. Looking through the new RuleSetLoader, it appears the bug is being caused because the expected number of custom rulesets is being counted from the number of --ruleset parameters but the custom gradle tasks provides them via the classpath so the actual vs expected count doesn't get calculated correctly.

This did not occur in 0.42.1 or earlier versions. Looking through the new RuleSetLoader, it appears the bug is being caused because the expected number of custom rulesets is being counted from the number of --ruleset parameters but the custom gradle tasks provides them via the classpath so the actual vs expected count doesn't get calculated correctly.

This is indeed new functionality. Tnx for your analysis. It sounds like a plausible cause.

Custom rules are loaded and executed, just an invalid warning is being displayed.

As you already noted yourself: the warning does not affect the execution of the rule.

Oh, we also faced it. But looks like it does not affect anything, just a warning


Ensure the correct epmd service is started

After a down, reboot, up on Xenial, rabbitmq starts an epmd daemon that ejabberd does not recognize. If epmd.service is started first, both rabbitmq and ejabberd can start.

https://ocd.appscale.com:8080/job/Daily Build/3953/

https://ocd.appscale.com:8080/job/Hawkeye/11756/


Flutter_Blue 0.7.2 not compatible with Android X and Firebase Database - Protobuf Duplicate

Can't compile project running Android X and Firebase Database. I get "app:checkDebugDuplicateClasses" error. I am using the latest plugin version   flutter_blue: ^0.7.2

Task :app:checkDebugDuplicateClasses FAILED
*********************************************************
WARNING: This version of flutter_blue will break your Android build if it or its dependencies aren't compatible with AndroidX.
See https://goo.gl/CP92wY for more information on the problem and how to fix it.
This warning prints for all Android build failures. The real root cause of the error may be unrelated.
*********************************************************

FAILURE: Build failed with an exception.
Execution failed for task ':app:checkDebugDuplicateClasses'.

1 exception was raised by workers:
java.lang.RuntimeException: Duplicate class com.google.protobuf.AbstractMessageLite found in modules protobuf-javalite-3.11.0.jar (com.google.protobuf:protobuf-javalite:3.11.0) and protobuf-lite-3.0.1.jar (com.google.protobuf:protobuf-lite:3.0.1)

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.22.2, on Mac OS X 10.15.7 19H2, locale en-CA)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
[✓] Android Studio (version 3.4)
[✓] Connected device (1 available)
! Error: iPhone is not connected. Xcode will continue when iPhone is connected. (code -13)
• No issues found!

In my case, this occurs with no library upgrades, just an upgrade from Flutter 1.20.4 to 1.22.x. I tried to exclude protobuf-lite, in my app/build.gradle file, but either it doesn't work, or I'm just using Gradle improperly (certainly likely).
implementation ('com.pauldemarco.flutter_blue:flutter_blue') {
	exclude group: 'com.google.protobuf', module: 'protobuf-javalite'
	exclude group: 'com.google.protobuf', module: 'protobuf-lite'
}

I have the same problem. In may case if the flutter project's android language is Kotlin everything is fine but with java I get the duplicate class errors. I need java version of android to implement some native android functionalities. Does anyone know any workaround ?

There is this pull request which fixes protobuf related problems https://github.com/pauldemarco/flutter_blue/pull/676

Just add
    android {     ...     configurations {         implementation.exclude module:'protobuf-lite'     }     ... }
To your build.gradle in app module. Protobuf regular includes everything from protobuf-lite.

I've added Flutter Blue to my project and was having this issue on dependencies below:
 cloud_firestore: ^0.14.3
flutter_blue: ^0.7.3
Turns out, when I have disabled flutter_blue the problems with "Execution failed for task ':app:checkDebugDuplicateClasses'.".
After some troubleshoting I found that changing \android\app\build.gradle minSdkVersion 19 (which is recommended by flutter_blue) to minSdkVersion 21 fixed the issue for me.
Maybe it will help someone.

@sdebasek I'm (and was) on a similar version of Firestore, and my minSdkVersion was already 21. I'm was on 0.7.2 of flutter_blue, but I have moved over to flutter_ble_lib since this was a show stopper.

The problem was fixed on 0.7.3 (and was present on 0.7.2 no matter what minSdkVersion you would choose), but still occurs when using Firebase/Firestore plugins - then only minSdkVersion higher or equal to 21 solves the issue for now.

@sdebasek I see that now. I did not have confidence in the PR getting tested and approved so quickly! Good to know.
Should this issue then be closed?

@sdebasek I see that now. I did not have confidence in the PR getting tested and approved so quickly! Good to know.
Should this issue then be closed?

For me the #700 is present (a.k.a. "get stuck on the blue screen, showing Bluetooth hardware not available, even Bluetooth is turned on.") with 0.7.3 and when I revert back I don't have it. Only in release versions. So there's still a bug somewhere.

I updated to 0.7.3 because of the incompatibilities with Firebase. Now when I try to build a release version, I get:
`FAILURE: Build completed with 2 failures.
1: Task failed with an exception.

Where:
Build file 'C:\src\flutter.pub-cache\hosted\pub.dartlang.org\flutter_blue-0.7.3\android\build.gradle' line: 37

What went wrong:
A problem occurred evaluating project ':flutter_blue'.

Failed to apply plugin [id 'com.google.protobuf']
Gradle version is 5.4.1. Minimum supported version is 5.6

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

2: Task failed with an exception.

What went wrong:
A problem occurred configuring project ':flutter_blue'.

compileSdkVersion is not specified.

`


Diving into Svelte by building a TodoList

Proposed title of article
Diving into Svelte & Firebase by building a TodoList
Proposed article introduction
[Node.js] You might be wondering ' What is Svelte? '. Well, Svelte is a relatively new Javascript Framework created by Rich Harris that has brought about a radical change in how frameworks go about editing the DOM(Document Object Module). The big three frameworks (React, Angular, Vue) we currently have mostly advise developers to use declarative code when building out components as opposed to imperative code. For context, writing declarative code is a programming paradigm that encourages developers to simply define the end state of a particular component and the framework handles how to go about getting to that state. Imperative code on the other hand encourages developers to follow through with the updating of the component at every step of the way till we get to our final destination.
Svelte instead runs at build time, compiles our code, and spits out imperative code that updates our DOM in the most efficient way possible. This eliminates the need for a Virtual DOM which is used in React and Vue to update the DOM based on the difference between the current DOM and what the DOM is supposed to be. It also takes the good parts of Vue as components can have scoped styles that don't affect nested elements as well as updating state by simply changing the value of a variable. Topping all of these, Svelte ships with its in-built methods of storing state ( think Redux for React or VueX for Vue ) and it is more lightweight and performant when compared to React App.
Key takeaways

Learners will have learned about Svelte and its perks
Learners will learn how to set up a Svelte App
Learners will learn how to build basic Apps with Svelte
Learners will learn how to use Svelte with Firebase

Article quality
My article is unique as I take a beginner through the motions of explaining what Svelte is, the advantages it brings as well as its disadvantages, and we finally go-ahead to use it in building a project. We also go through the motions of using Firebase as our backend. Lastly, I take into consideration how I would like an article to be if I were to read it (as a beginner) and use that to tailor how my article should be.
References
Svelte 3 Blog Post
Svelte's Homepage
Svelte vs React Comparison

How's your article unique from this merged: https://www.section.io/engineering-education/getting-started-with-fastify-and-svelte/
Cc: @hectorkambow @lalith1403

The article in question seems to be focused on Fastify rather than Svelte. But I could add Firebase for the backend of the app to make it more unique.

The article in question seems to be focused on Fastify rather than Svelte. But I could add Firebase for the backend of the app to make it more unique.

Sure💯. It's still possible to cover something unique as the ecosystem is huge.

The article in question seems to be focused on Fastify rather than Svelte. But I could add Firebase for the backend of the app to make it more unique.

Could you update your key takeaways then. Thanks

I've made the changes @WanjaMIKE .

Hello, do you need me to make any more changes?

Am I supposed to close this issue and open a new one? @WanjaMIKE

@dro-1
Sounds like a helpful topic - lets please be sure it adds value beyond what is in any official docs and/or what is covered in other blog sites. (the articles should go beyond a basic explanation - and it is always best to reference any EngEd article and build upon it).
Please be attentive to grammar/readability and make sure that you put your article through a thorough editing review prior to submitting for final approval. (There are some great free tools that we reference in EngEd resources.)
ANY ARTICLE SUBMITTED WITH GLARING ERRORS WILL BE IMMEDIATELY CLOSED.
Please be sure to double check that it does not overlap with any existing EngEd articles, articles on other blog sites, or any incoming EngEd topic suggestions (if you haven't already) to avoid any potential article closure, please reference any relevant EngEd articles in yours. - Approved
cc @WanjaMIKE - please any any other comments you think would help - or if it needs anything else 👍

Hello @hectorkambow , I'm still working on the PR for this issue. Am I to open a new one?

@srishilesh , this issue has been closed though I am working on thw article here.
https://github.com/section-engineering-education/engineering-education/pull/6083
What does this mean?

Hey @dro-1 ,
You need not worry about it. Once you finish working on the changes and create a new PR, it'll be re-opened on request.


Request: global channel search

At the moment, if I have more than one multi-channel playlist and I want to search for a channel, I have to go into each individual playlist and then repeat the search for each playlist.
E.g. if I have Playlist A, Playlist B and Playlist C added to IPTVnator and I want to look for a channel, I have to click on A, type the search phrase in the search box there, then click back to the list of playlists, click on B, search again, click back to list of playlists again, click on C and search again. Multiply by however many playlists you have. A lot of steps.
But I notice in some other IPTV apps (I've been experimenting with one on Android), a single search will find results from any and all loaded playlists.
The solution I'd like
A single global channel search. One search will find matching results in all playlists.
(Perhaps with an indicator in the search results showing which playlist the result is from.)

Thank your for the suggestion, I like the idea.

Hello, any news on a global search ?
I think this can be merged with https://github.com/4gray/iptvnator/issues/296
Thanks.

Hello, any news on a global search ? I think this can be merged with #296 Thanks.

I understand that you're requesting about searching in more than one playlist(xtream, m3u etc.) but I request searching in single playlist without entering any of category/directory. Sounds similar...

Hello,
Yes you are right.

Searching in a single playlist without entering in a category is already great !
Global search amongst all playlists is even greater !

I don't have any coding experience. But is this complicated to implement ?
Are we the only ones missing this feature ?
In my opinion, iptvnator is absolutely great, but for an everyday use with xtream, it should be a must when you search a particular movie/show.
Is it possible for the dev to give us an update ?
Thanks for all the good work !


rename container id field to backing_ref so it won't be misinterpreted as fk in rails

@miq-bot add_label containers/providers

@miq-bot add_label providers/containers

@Fryguy , @simon3z  FYI

:+1:

@Fryguy  merge pleeeease? :)

@Fryguy  anything prevents this from being merged?


Add Esp. Wars M90 PGAC

Added a NATO combat fatigue re-skin based off Espionage War's Penumbra Ground & Air Control.

2048^2 texture
Naval Blue M90 camouflage variant

Something seems to be up with the file, can you readd it?
Also note that you do have the authority to modify the config, see if you can't do this whilst reuploading the texture


Archer Dedication Archer's Aim doesn't work properly

Changing the Flat Modifier RE to:
{   "key": "FlatModifier",   "predicate": [     "archers-aim",     "ranged",     "item:group:bow"   ],   "selector": "attack",   "type": "circumstance",   "value": 2 }
And adding the roll option RE solve the problem
{"domain":"attack-roll","key":"RollOption","option":"archers-aim","toggleable":true,"value":false}
I based the solution into the Hunter's Aim RE

It seems that the selectors have changed from *-weapon-group-attack to *-group-attack-roll. There are several other places where we use this, so I suspect it's a bug.
Current non-working:
"selector": [
	"bow-weapon-group-attack",
	"crossbow-weapon-group-attack"
]

This works:
"selector": [
	"bow-group-attack-roll",
	"crossbow-group-attack-roll"
]


Price config - Change price from type of number into an object.

Hi,
In my pricing model, I would like to be able to use step model(meaning price depends on the amount of usage -> example: more usage, cheaper price) and currently the current price config does not support it.
For example, if we look at the price config for object-storage: https://github.com/cloudfoundry-incubator/cf-abacus/blob/master/lib/stubs/account/src/resources/object-storage.js
My current thought is to have something in this structure
plans: [
{
    plan_id: 'basic',
    metrics: [
      .
      .
      {
         name: 'thousand_light_api_calls',
         prices: [
           {
             country: 'USA',
             price: [
              {
                 price: 0.05,                 // 0.05 for thousand_light_api_calls < 100
                 quantity_tier: 100
                 tier_model: 'incremental model'
               },  {
                 price: 0.03,                 // 0.03 for 100 < thousand_light_api_calls < 500
                 quantity_tier: 500
                 tier_model: 'incremental model'
               }
             ]
           }
         ]
      }
.
.

Price without step model would have a structure of price = an array with one price object, instead of multiple objects. Any thought and input on this? Thanks!

After implementing abacus-account-stub, I don't think this is an issue because price config schema is defined in abacus-account-stub, and I have the freedom to define the schema.


SSL

How can connect with SSL....I change WS to WSS but doesn't works....
Can you help me?

some problem


Added code of conduct

Hey! I added code of conduct markdown file. Hope you will merge it.

Thanks to add valuable doc!


🚀 : Nicknames

Idea
When messaging with a lot of people, it can be really hard to keep a lot of names straight, even for those who are really good with names (I am not one of those people!). Therefore, I think being able to add custom "nicknames" for people would be a valuable feature.
Benefits
As mentioned above, it can be hard to keep track of names, therefore, a nickname of your choosing might be away to get around that problem. Take a user named Bob for example. You guys are both learning Spanish, so your chats consist of a lot of Spanish with some English mixed in to help each other out. Now let's say you have a lot of other people your messaging, each in a different language, or one of them is just a friend you found and your both speaking in your native tongue. You want to be able to quickly distinguish between what languages or what kind of conversations your having with different users. That's why nicknames would help. Instead of a person named Billy, you could nickname them Billy (Spanish), or Billy (Friend), or Billy (Economics), making it much easier to tell who you are really talking to.
Implementation
The nicknames would be implemented so that each was private and visible only to the person who assigned the nickname. The user who has been assigned the username would not be able to see it.

I think it's duplicate of #757

Hey Xue, I think you may have misunderstood? I meant you could assign custom names to people, not search up people by tags. Sorry if I'm wrong.

Hey @xuelink , I think you may have misunderstood? I meant you could assign custom names to people, not search up people by tags. Sorry if I'm wrong.

I got what you mean thats why i updated my comment to related instead of duplicate :D

[ ] Renaming Name to Display Name is going to close this issue.


[Bug]: Error prevents Meter Parser to continue reading the meter

What happened?
It seems the add-on fails while downloading the image from the camera. When that happens, it never tries to take a reading anymore requiring a restart.
After restart, add-on works just fine.
AddOn and Version
meterparser-<IP_ADDRESS>
HomeAssistant Version
2023.1.7
Relevant log output
('Connection broken: IncompleteRead(44453 bytes read, 81674 more expected)', IncompleteRead(44453 bytes read, 81674 more expected))

Interesting. Current code executes get_image on a try/except block, and retries at least 5 times. Even if it fails for 5 times, the loop is supposed to continue.
So, I'm wondering if maybe you ran under a very catastrophic scenario (like memory overflow)?
For this one I think I'm going to need more stack trace. Please enable log_level: DEBUG to provide more information on this problem.

You can also try changing method from HTTP to FFMPEG.
force_ffmpg: True # Force use of ffmpeg on http urls (optional, default False)

Yes, very strange. I have added the log_level setting. Will report back when it happens again.


if data method's params is object, enter and exit method does't work

I want to draw a pointer which will move as time goes. Now I remove the pointer before I redraw it as following code.
function drawPointer() {
   svg.select('g.pointer').remove();
   const pointerX = scale(new Date());

   const g = svg.selectAll('g.pointer')
                   .data([{ x: pointerX, y: 0 }], (d) => d);

   g.enter().append('g')
                 .attr('class', 'pointer').call(pointer);
}

drawPointer();
this.timer = window.setInterval(() => { drawPointer(); }, 1000 * 5);

But I feel it is not so elegant. I want to use exit method to remove the pointer as below.
function drawPointer() {
   const pointerX = scale(new Date());

   const g = svg.selectAll('g.pointer')
                   .data([{ x: pointerX, y: 0 }], (d) => d);

   g.enter().append('g')
                 .attr('class', 'pointer').call(pointer);
  g.exit().remove();
}

drawPointer();
this.timer = window.setInterval(() => { drawPointer(); }, 1000 * 5);

I read the source code,
keyValues[i] = keyValue = keyPrefix + key.call(node, node.__data__, i, group);
I think before adding keyPrefix to data, we can get the data type. If it is object, JSON.stringify(data). Otherwise, all of them are $[object Object].
Is it practicable？

This is the expected behavior. Your key function should return a string, not an object (or assume that the returned value will be string-coerced). I’ll edit the README to make this more clear.


[Q] Why is compose max_function_count fixed to 6?

The params  max_function_count: number and max_parameter_count: number are set both set to max_curry_level which is set to 6. Same for pipe and probably others.
https://github.com/types/npm-ramda/blob/8dd1f0c1aab32be3b9ee7fefe5fa097dcde67ec1/templates/compose.ts#L7
https://github.com/types/npm-ramda/blob/a090392bed87139dc07e3df4ab0cde8d5c35c32d/templates/pipe.ts#L5
https://github.com/types/npm-ramda/blob/8dd1f0c1aab32be3b9ee7fefe5fa097dcde67ec1/templates/%24curriedFunctions.ts#L5
I'm interested in the discussion and causes, why this limit was chosen. I could think of a pipe where somebody is composing more than 6 functions. One could discuss, if there could be opinions against it, but it would be valid code, that won't be type checked. Is this about performance? The output size? Is it related to currying? Or did the number "feel right"? I'm just curious.
Although, if nothing speaks against it, I'd would ask to raise the number of composed functions to a value above 6 :)

Mostly "feel right", but the performance and the out size are also concerns. I'm not sure if we should increase it but if there's no significant impact, it should be fine.

Actually, there are times when we need to compose a list of fns...
type Fn = (a: any) => any;
const list: Fn[] = [];
R.compose(...list); // Expected 1-6 arguments, but got 0 or more.

(Or do I have to reduce the list?)
R.reduceRight(R.compose, R.identity /* or first fn */, list);

Please raise it. I cannot make beautiful pipelines in typescript just because of this stuff.

any updates on this? quite a horrrible limitation


output manners server to the console with debug flag or env variable.

I just fixed the merge conflict


Downstream AKS Cluster Management > Cluster details page not displaying accurate message during update

Setup

Rancher version: 2.7.0
Browser type & version: Chrome

Describe the bug

When updating a downstream AKS cluster, Cluster Management > Cluster details page does not display accurate message.

To Reproduce

Fresh install of 2.7.0
Provision a downstream AKS cluster
Update downstream AKS cluster
Navigate to Cluster Management > Cluster Details page
Reproduced

Result

The following message is seen:
This resource is currently in a transitioning state, but there isn't a detailed message available.

Expected Result

expected to show more detailed message, as seen in AKS operator logs:
time="2023-03-07T02:10:50Z" level=info msg="Waiting for cluster [REDACTED] to update node pool [REDACTED]"

Screenshots

@Josh-Diamond What extra information is provided by displaying the non-formatted text suggested?

@kwwii the non-formated text suggestion came from AKS Operator logs, and instead of displaying, This resource is currently in a transitioning state, but there isn't a detailed message available, my request to replace this message w/ the more specific log coming from AKS Operator, to read Waiting for cluster [c-REDACTED] to update node pool [REDACTED].

Thanks, I agree that we should give the user as much information as possible

This should be transferred to backend to provide the information via the operator.


QPMR header not found, unable to IPL

We're running into an issue on our Talos systems with DD2.2 and the latest hostboot / HCODE master trees.  Our systems will not IPL, and throw errors in ISTEP 15 related to the QPMR header.  I am not sure if this is due to a bad HCODE mirror or a hostboot problem.
Example output:
43.84925|================================================
 43.86459|Error reported by hwpf (0x0900) PLID 0x900000A6
 43.86611|  HW Procedure generated error. See User Data.
 43.86611|  ModuleId   0x01 MOD_FAPI2_RC_TO_ERRL
 43.86612|  ReasonCode 0x090f RC_HWP_GENERATED_ERROR
 43.86613|  UserData1  RC value from HWP : 0x0000000000cb102a
 43.86614|  UserData2  <unused> : 0x0000000000000000
 43.86911|------------------------------------------------
 43.87778|  HwpReturnCode              : RC_QPMR_HDR_BUILD_FAILURE
 43.87785|  HWP Error description      : Failed to update QPMR Header region of HOMER. Note: 0xFFFFFFFF in field MAX_ALLOWED_SIZE is an invalid size suggesting that image section is not found
 43.87786|------------------------------------------------
 43.89450|  HwpReturnCode              : RC_QPMR_HDR_BUILD_FAILURE
 43.89656|  FFDC                       : EC_LEVEL
 43.89657|     22
 43.91391|------------------------------------------------
 43.91393|  HwpReturnCode              : RC_QPMR_HDR_BUILD_FAILURE
 43.91394|  FFDC                       : CHIP_TYPE
 43.91394|     05
 43.91397|------------------------------------------------
 43.91399|  HwpReturnCode              : RC_QPMR_HDR_BUILD_FAILURE
 43.91400|  FFDC                       : MAX_ALLOWED_SIZE
 43.91401|     0000001D
 43.91404|------------------------------------------------
 43.91406|  HwpReturnCode              : RC_QPMR_HDR_BUILD_FAILURE
 43.91660|  FFDC                       : ACTUAL_SIZE
 43.91660|     00000128
 43.91664|------------------------------------------------
 43.91816|  Callout type             : Procedure Callout
 43.91816|  Procedure                : EPUB_PRC_HB_CODE
 43.91817|  Priority                 : SRCI_PRIORITY_HIGH
 43.91818|------------------------------------------------
 43.91818|  Hostboot Build ID:
 43.91819|================================================
 44.73707|================================================
 44.73708|Error reported by hwpf (0x0900) PLID 0x900000A6
 44.73709|  HW Procedure generated error. See User Data.
 44.73710|  ModuleId   0x01 MOD_FAPI2_RC_TO_ERRL
 44.73710|  ReasonCode 0x090f RC_HWP_GENERATED_ERROR
 44.73711|  UserData1  RC value from HWP : 0x0000000000cb102a
 44.73712|  UserData2  <unused> : 0x0000000000000000
 44.73713|------------------------------------------------
 44.73714|  HwpReturnCode              : RC_QPMR_HDR_BUILD_FAILURE
 44.73720|  HWP Error description      : Failed to update QPMR Header region of HOMER. Note: 0xFFFFFFFF in field MAX_ALLOWED_SIZE is an invalid size suggesting that image section is not found
 44.73721|------------------------------------------------
 44.73723|  HwpReturnCode              : RC_QPMR_HDR_BUILD_FAILURE
 44.73724|  FFDC                       : EC_LEVEL
 44.73724|     22
 44.73727|------------------------------------------------
 44.73729|  HwpReturnCode              : RC_QPMR_HDR_BUILD_FAILURE
 44.73730|  FFDC                       : CHIP_TYPE
 44.73731|     05
 44.73733|------------------------------------------------
 44.73735|  HwpReturnCode              : RC_QPMR_HDR_BUILD_FAILURE
 44.73736|  FFDC                       : MAX_ALLOWED_SIZE
 44.73737|     0000001D
 44.73740|------------------------------------------------
 44.73742|  HwpReturnCode              : RC_QPMR_HDR_BUILD_FAILURE
 44.73742|  FFDC                       : ACTUAL_SIZE
 44.73743|     00000128
 44.73746|------------------------------------------------
 44.73747|  Callout type             : Procedure Callout
 44.73747|  Procedure                : EPUB_PRC_HB_CODE
 44.73748|  Priority                 : SRCI_PRIORITY_HIGH
 44.73749|------------------------------------------------
 44.73749|  Hostboot Build ID:
 44.73750|================================================
 45.69712|System shutting down with error status 0x900000A6
 45.69715|================================================
 45.69716|Error reported by istep (0x1700) PLID 0x900000A6
 45.69903|  IStep failed, see other log(s) with the same PLID for reason.
 45.69903|  ModuleId   0x01 MOD_REPORTING_ERROR
 45.69904|  ReasonCode 0x1703 RC_FAILURE
 45.69905|  UserData1  eid of first error : 0x900000a60000090f
 45.69906|  UserData2  Reason code of first error : 0x0000000200000f01
 45.69907|------------------------------------------------
 45.69907|  host_build_stop_image
 45.69908|------------------------------------------------
 45.69909|  Callout type             : Procedure Callout
 45.69910|  Procedure                : EPUB_PRC_HB_CODE
 45.69911|  Priority                 : SRCI_PRIORITY_LOW
 45.69911|------------------------------------------------
 45.69912|  Hostboot Build ID:
 45.69913|================================================

qpmr_fail_full_debug_2.log
Here's a full debug log of the issue.

Can you post the full VERSION info from your run?  I want to double-check all the levels.

I'm asking around to the folks that own that code.  The initial reaction is pointing to a bad hcode image.

We are suspecting a mismatch between the HCODE image and the code level you are running.  I assume you are using the HCODE from hostboot-binaries, not generating it from the hcode repo, right?

@dcrowell77 Everything I am seeing on this side has been pointing to a bad HCODE image as well.  We are generating from the HCODE repository at https://github.com/jahunsbe/hcode , which was manually generated after the main HCODE repository failed.  We cannot use the binary only version as our product is based on open sources only.
Thanks!

We are generating from the HCODE repository at https://github.com/jahunsbe/hcode
Aah.  I believe that is a bit out of date.  I've heard that is being worked.  Probably should transfer this bug over to https://github.com/open-power/hcode to the right folks pay attention.

FYI - @jahunsbe and @rjknight

@dcrowell77 No problem, will do.  Needed confirmation that this was in fact an HCODE problem from someone in the IBM firmware team before I could press harder on getting fixed HCODE... :wink: