Deserializing delta (change) data via copyWith (or copyWithMap / copyWithJson / copyWithDelta)

When using realtime delta feeds or change data capture queues (such as kafka, etc), one often needs to have a way to consume serialized partial data representing the delta between two states of a data object. Often times (particularly if fields are non-nullable and have no defaults), this data is too incomplete to deserialize into an instance. Instead, one has to iterate through to find which fields exist and then modify the existing in-memory instance appropriately.
Since dart doesn't really do reflection, this delta handling code must be written by hand for each field. I am trying to find a more automated way to do this and I was thinking that since dart_mappable already has a mapping of json to object/field as well as a copyWith method, perhaps we can go a bit further and make an easy way to do a copyWith with just a json string or map as an input instead of specific named parameters by field.
Thoughts?

Interesting idea, I could see this being a cool feature.
This could of course be solved by doing a toMap(), overriding the changed fields and then a fromMap. Is this something you considered?

Yes I did consider that but was concerned about the performance implications since that would not only be an extra serialization step but it would also have to process all fields whether changed or not. At that point, it might call into question whether delta data is even worth it. Might as well just send the whole thing and deserialize it once.
So it becomes a network throughput vs performance tradeoff when there could feasibly be a win-win of a special copyWith exists.
Granted, this could be premature optimization on my part but I figured I'd get the conversation started anyway. This is not a blocking feature for me. Just something I was considering.

This is included in the prerelease for v3. Here are the relevant docs: https://pub.dev/documentation/dart_mappable/3.0.0-dev.0/topics/Copy-With-topic.html under Copy Delta.
I appreciate any feedback.

Awesome news! V3 is a really cool release. Will check it out when I return from vacation. Thanks


Enable Hosting Ghosler at a Subdirectory

This pull request makes a few changes to support serving Ghosler behind a reverse proxy at a subdirectory instead of hosting it at a subdomain. The existing use case should still function identically.
It accomplishes this by implementing a middleware that provides the configs.ghosler.url to all views as a variable and modifying the views to prepend all paths with this value. The result is essentially dynamically generated absolute paths to resources.
It was also necessary to modify the post function of the settings form such that it did not overwrite the ghosler.url improperly. It will still update on submission but will now detect a subdirectory via the Referer header.
Note to use Ghosler at a subdirectory you do still need to manually configure the ghosler.url before initially starting, I didn't really have a good idea on how to get around that. But now it won't overwrite this setting with the wrong data.
For reference, a minimal nginx stub looks like this:
    location /ghosler/ {
        proxy_pass              http://<IP_ADDRESS>:2370;

        # Preserve the base path
        rewrite ^/ghosler/(.*)$ /$1 break;
        proxy_redirect          / /ghosler/;
    }

An alternative approach would have been to create a new configuration variable for the baseURI for the routes. I thought it was better to not introduce a new variable but this might be a better approach as it might be more clear how to achieve such a setup and would mean even less complicated reverse proxy rules.

This is in response to #53

Alternative, it would be great if you could also do these -

Add await here for safety.
Remove then() here and use await.

Alternative, it would be great if you could also do these -

Add await here for safety.
Remove then() here and use await.

I don't see what these directly do with this pull request but have no complaints towards implementing and including

I've manually tested the PR, seems to work fine.
Pl. address the review comments and we should be good to go for this.

I think we should be good to merge if you want to look it over?

LGTM!


removing preview tags

@winthrop28 : Thanks for your contribution! The author(s) have been notified to review your proposed change.


allow Hero widgets to have transitions within the same screen

Use case
If i have a design similar to the gif below -

and I want to avoid using another page, I will be unable to implement it since Hero widget does not seem to have the functionality to work on the same page. I have tried to search for a similar package which would hopefully work as intended as per my case but there does not seem to be a lot of them.
Proposal
Allow Hero widgets to work on the same page without having to navigate to another page.

You could nest another Navigator to achieve this.

@Hixie @goderbauer and I had a offline discussion briefly talked through how we should refactor the hero controller.
In short, we should come up with a way to decouple the hero controller and the navigator, and make the hero controller more generic to support beyond the navigator.
One idea is to revert the dependency between navigator and hero controller. Instead of having hero controller listening the navigator, the hero controller should passively waiting for hero widget to register their hero flight details. The details may include from-widget and to-widget, the driving animation... and etc.
The hero widget, on the other hand, listens on a generic hero context that is inserted somewhere above its widget tree. The hero widget register its flight details when certain conditions are met in the generic hero context.
The navigator will be the one that insert the hero context in its widget subtree and change the state of the hero context based on route changes.
In this design we can trigger the hero animation without a navigator by having a custom widget that manually insert the hero context above the hero widget.

This would be a super great feature to have. Any progress or even ETA?

There is currently no progress done or an ETA, please thumbs up to bump up the priority

Hi a season has passed, is there any updates? (there are 40 thumb ups now!)

Hi a season has passed, is there any updates? (there are 40 thumb ups now!)

We still have no plan to work on this, but we welcome any contribution from our community.

We still have no plan to work on this, but we welcome any contribution from our community.

It looks like our HeroController has problem to work with Nav 2, It may be the good time to start working on this

I would like to know how would one expect the API to look like. Let's say you have a hero in the appbar, and you want it to fly to the center of a scaffold body. Any feedback will be helpful, thanks.

I would like to know how would one expect the API to look like. Let's say you have a hero in the appbar, and you want it to fly to the center of a scaffold body. Any feedback will be helpful, thanks.

Hi, I think it would do just the same as the existing features, fly the widget to the next location and transform it if needed. Just place the widget with the tag inside de body and remove it from the appbar, set the state and you're done.

@FMorschel That will be a problem since the fromHero may be disposed before the toHero is created. The current strategy requires the fromHero and toHero to coexist at least one frame to create the animation. It is possible we memorize the location/rect of the from hero from previous frame to be used when to hero is created, but i imagine that can create a bunch of corner cases. Also, they can be apart for several frame due to some other animation, and developer may still expect the hero to trigger.

The current strategy requires the fromHero and toHero to coexist at least one frame
The thing is, how could we detect where to and from in this case?
I see why it wouldn't work, just don't have any more input at the moment.

Right now it relies on the route transition, and the form/to hero coexist on the previous route and new route when they are still transition. Since it is a route transition, we know which one is the fromHero and which one is toHero.
Another idea is make this imperative, for example, instead of detecting the from and to position. we can do some thing like
myHero.currentContext.flyTo()
but it may be tricky to determine what the  should be

I'm currently trying to figure out how to apply a "Heroish" animation between images. I have 2 lists that switches back and forth using AnimatedCrossFad. I have an image for each list item.

To achieve this we can use local_hero package https://pub.dev/packages/local_hero

Another idea is make this imperative, for example, instead of detecting the from and to position. we can do some thing like
myHero.currentContext.flyTo()
but it may be tricky to determine what the  should be
@chunhtai
Maybe we could use something like DragTargets and a Draggable? Maybe with some kind of controller similar to a FocusScope to FocusNodes (these being the DragTarget like widgets).
For example, we could use a Draggable like widget as the tagged Hero, and some possible positions on the page, something similar to a FocusScope could exist so we could work with something like nextFocus() method.

@AnuragVadd  Hey, I know, too late to answer :)
I have an idea for hero-like animation between two widgets. Use OverlayEntry
need soruce position and target position for transition animation.

source code : https://github.com/taylanyildiz/hero_like_animation

Hey @chunhtai is there any update on this proposal ? Any lead would be appreciated. Thanks.

related issues
https://github.com/flutter/flutter/issues/88578
https://github.com/flutter/flutter/issues/74228
https://github.com/flutter/flutter/issues/110426

We also have internal report
b/273761939

another use case https://github.com/flutter/flutter/issues/32972
Hero animation in AnimatedSwitcher or TabView

I don't understand why this use case wouldn't use a route. Surely while the user has the zoomed-in image, the back button should unmagnify, rather than quit the entire app?

current status, we are reprioritizing work. This has been deprioritized before, but this may change in the next couple of days. Will give more update later

Will give more update later

Any update on this?

any news?


fix platform specific builds

Thanks, I was just about to look into this.

Seems like github should flag this as conflicting with https://github.com/clemahieu/raiblocks/pull/261/ now that it was merged but it says "no conflicts".  Hmm.
In any case this PR is more complete at fixing the issues so @clemahieu or @SergiySW please take it when you get a chance.


Karaoke + Satellites throws an error

Melding and executing Karaoke with Satellites' dogma throws an error: Unexpected error: Error while processing database request
See game https://boardgamearena.com/table?table=326278397 move ~210.

Good news! I replicated this in the studio.

Ah so the problem here is that the Echo effect never got the chance to be executed, since only the non-demand effects were triggered.
More generally, there are a few other cards which could also be affected by a similar bug:

Charitable Trust: "You may meld the card you drew due to Charitable Trust's echo effect"
Stethoscope: "If you melded a blue card due to Stethoscope's echo effect"
Dentures: "Score the top two non-bottom cards of the color of the last card you tucked due to Dentures"
Jet: "I demand you return your top card of the color I melded due to Jet's echo effect!"

And if we extend this search beyond Echo effects, we should also double-check:

Oars: "If no cards were transferred due to this demand, draw a 1"
Mapmaking: "If any card was transferred due to the demand, draw and score a 1"
Gunpowder: "If any card was transfered due to the demand, draw and score a 2"
The Pirate Code: "If any card was transferred due to the demand, score the lowest top card with a coin from your board"

In practice, it's likely that many of these bugs are unreachable (due to the fact that only higher aged cards tend to trigger nested execution, however, it's worth firming up each of these implementations anyway.


[Enhancement] revert hiding of schema tables with be_ prefix

What type of PR is this：

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

Problem Summary(Required) ：

Revert hiding of schema tables with be_ prefix
Checklist:

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

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

Bugfix cherry-pick branch check:

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

[x] 3.0
[x] 2.5
[ ] 2.4
[ ] 2.3

@mergify backport branch-3.0


Add missing deploy provider

Fixes https://github.com/sagiegurari/cargo-make/issues/135. We should cherry-pick this into the v0.15 branch to trigger another deploy as well.

no big deal.
already pushed it locally and running the local release which will have it so a new build should start soon (0.15.1).

Sweet, thanks!


🦟[Bug Report] Crashlytics: BRKeyStore._getData Exceptions at Runtime

Describe the bug

https://console.firebase.google.com/u/0/project/litewallet-beta/crashlytics/app/android:com.loafwallet/issues/c4650474272086b7269389b8d857d62e?time=last-seven-days&sessionEventKey=63D7BB41008000015764C66E3776A37B_1772870423120895334

cc: @andhikayuana

do you have step to reproduce this issue? @kcw-grunt or @josikie

Closing this ticket and reissuing a follow on to further investigate


Support test data in benchmark workflows

🚀 Pull Request
Description

Adds test data support to github action benchmarks (by downloading the iris test data and setting the OVERRIDE_TEST_DATA_REPOSITORY environment variable).
Adds an example benchmark (of area weighted regridding) that uses the test data

Currently github action benchmarks don't have access to the test data. I'm aiming to improve this.
To do:

[x] Enable caching (by uncommenting) once the test data download is tested
[x] Revert noxfile logging changes
[x] Change the example benchmark to use new test data that shows significant slowness (once it's in the iris-test-data repo)
[ ] What's new

Consult Iris pull request check list

Change the example benchmark to use new test data that shows significant slowness (once it's in the iris-test-data repo)

@wjbenfold if you figure out a decent pattern to host full size PP files online that will potentially solve some other benchmarking headaches so I'd be interested in the result!

I think this PR is now ready for review (save a what's new).
Reviewer questions:

Are the changes to benchmarks/nox_asv_plugin.py, benchmarks/benchmarks/mixin.py and benchmarks/benchmarks/metadata_manager_factory.py as a result of changing .pre-commit-config.yaml acceptable? (This was done because the ci precommit was checking more aggressively than my local precommit and thus forcing me to pull the changes down to my local copy.)
I've used the test data to access files for benchmarking, ignoring the code in benchmarks/benchmarks/__init__.py that sets a data path. Is this ok, and if so should __init__.py be tidied at all (given I don't think it's doing anything to do with test data for us)?

I don't get how an performance improvement has been detected for this PR, which makes no changes to the regridding code? It may be a sign that performance of this one is highly variable; I'll try re-running it.

From investigation this looks like it was an aberration, so no changes needed.
(For the record I was going to suggest adjusting the repeat attribute to force ASV to spend longer / do more repeats. Not needed here but a good tool to have).


update org.activiti.dependencies:activiti-dependencies to 7.0.55

UpdateBot pushed maven dependency: org.activiti.dependencies:activiti-dependencies to: 7.0.55

UpdateBot commands:
updatebot push-version --kind maven org.activiti.dependencies:activiti-dependencies 7.0.55 --merge false


put the 'how to run tests' guides into the github contribute page instead of going through the developer blogs

Already added https://github.com/GreptimeTeam/greptimedb/blob/develop/CONTRIBUTING.md


split out error text

@keybase/react-hackers this fixes the problem with multi-line error in the form with error. instead of being able to inject a child into input and all the side effects of a change like that i instead just pull the error out and show it below

👍


Docs(web, web-react, web-twig): Unify Modal READMEs

I suppose there still may be some inconsistencies, please let me know if you find anything!
Issue reference
https://jira.lmc.cz/browse/DS-876

coverage: 96.46% (+25.5%) from 70.973% when pulling 76181825d9211161b5586cd507634efa0c44cf03 on docs/unify-modal-readme into 70e4cd413cef808a5ab8781f7bbaa6b50b07b7c9 on main.

Find a few more things using Grammarly and fix them. Thanks for unifying the documentation. Michal checked this and it is ok 👍


[13.4-stable] fix: update lts-release.sh to create the lts tag from the latest rc tag

feat: Add scripts and Makefile targets for RC and LTS releases
In accordance with the testing team's requirement to create a release
candidate (RC) before releasing the LTS version of Eve for certification.
These scripts automate the creation of RC and LTS releases by calculating
the version number based on the latest tag and incrementing it accordingly.
PR to master: https://github.com/lf-edge/eve/pull/4323
Signed-off-by: yash-zededa<EMAIL_ADDRESS>(cherry picked from commit https://github.com/lf-edge/eve/commit/b20a9db0957accfc20390b98144e898c474c4517)

Just a reminder for the backport PR:

[ ] Add a "[X.Y-stable]" prefix to the PR title to represent the target branch
[ ] Mention the original PR in the PR description
[ ] Cherry-pick commit from the master branch, not from the original feature branch
[ ] Use the -x option when cherry-picking to mention the original commit hash
[ ] If the commit had to be updated, describe it

So in this case the cherry-pick command would be
git cherry-pick -x b20a9db0957accfc20390b98144e898c474c4517

Is this a backport of the change in master? If so please update the commit message and PR description to refer to the commit in master.

The PR description is updated with the commit from the master branch.

Is this a backport of the change in master? If so please update the commit message and PR description to refer to the commit in master.

The PR description is updated with the commit from the master branch.

Usually, it's also helpful to mention the original PR in the description. But an optional here.

Just a reminder for the backport PR:

[x]  Add a "[X.Y-stable]" prefix to the PR title to represent the target branch
[x]  Mention the original PR in the PR description
[x]  Cherry-pick commit from the master branch, not from the original feature branch
[x]  Use the -x option when cherry-picking to mention the original commit hash
[x]  If the commit had to be updated, describe it

So in this case the cherry-pick command would be
git cherry-pick -x b20a9db0957accfc20390b98144e898c474c4517

Thanks, this is helpful. This is the first time I have backported the commit so missed few steps/process.

Is this a backport of the change in master? If so please update the commit message and PR description to refer to the commit in master.

The PR description is updated with the commit from the master branch.

Usually, it's also helpful to mention the original PR in the description. But an optional here.

Was just doing that :)

As it's a backport, we don't expect any changes in this commit... ignore all my previous questions.

Resolved all the comments to avoid confusion. We can test the rc tag creation with the 13.4-stable branch. In case any fixes are required, I will create a PR to the master and backport it to the stable branch.

LGTM from my side, It'll work, since assets.yml and build.yml are in the default branch (i.e. master)

Not exactly! Since we’ll be building tags, GitHub Actions will refer to the workflow from the 13.4-stable branch, based on the commit where the tag was created.


1.1.6 AOT failing in ProgressComponent

AOT is failing in the ProgressComponent because 'progress' is injected as a private but is being referenced in the template.

Error at /compiled/node_modules/ng2-progressbar/components/progress/progress.component.ngfactory.ts:222:93: Property 'progress' is private and only accessible within class 'ProgressComponent'.

@Torqode, NgProgreesModule was compiled with AOT and shouldn't fail, please post your code!

Unfortunately I'm not able to post the implementation at the moment, but it doesn't deviate from your example.  I've been able to get it to pass through AOT compiling by doing either one of the following:

Removing the private modifier from the progress property in progress.component.ts.
Removing the [state]="progress.state$ | async" binding from the progress.component.html.

SO post about private variables in templates

oh yea you are right about private, I didn't get any errors while building!
but what's wrong with the [state] ?

Nothing is wrong with the [state] per se.  I was using it as a check to make sure the issue was truly with the private.  By removing the binding, it removed the only reference to progress, so that made AOT happy again.


Improve color logic for main screen

Also added a indication for update
All I did was simply use ::colorScheme::surface
Update Available:

No Update Available:

Can you bring back primaryContainer color to the fab? And add some color for the left button, because if there is no border, the button will be turned into the text(

Update:

No Update:


Failed Loading for mPLUG-Owl finetuned model

Hi there, thanks for your work and guide.
I tried to finetune mplug-owl (by train_it.sh, this script uses lora) and get the output files.
And I got some small model and config files (like "adapter_model.bin", each smaller than 50m).
Then I tried to load the lora model (after replace the original model_worker.py by yours).
But I still encounter the problem of "Missing key(s) in state_dict:  xxxxxx; Unexpected key(s) in state_dict: xxxxxx".
I found that your mplug lora model is named pytorch_model.bin, but I only got "adapter_model.bin" after finetuning.
I also noticed that the mplug lora model in your program is a large model (13G, link from your download.txt, [https://drive.google.com/uc?id=1049ICFtqg8_1Os7YQ8jpgQerQbMa6I_7] ).
Did you combined the lora weights (16m) with the base model (14G)?
My device is 4-V100x32G, and pretrained model (base model) is MAGAer13/mplug-owl-llama-7b-ft.

Update:
I change the code of loading "adapter_model.bin":
`from peft import PeftModel, PeftConfig
peft_model_id = "./output/custom_ft/checkpoint-50/"
config = PeftConfig.from_pretrained(peft_model_id)
model = PeftModel.from_pretrained(model, peft_model_id) # load lora into base model`
This time it works.
But I'm still confused about how to load ft model in your way.

Hello, I'm also facing an issue with loading the mPLUG-Owl finetuned model. Could you please tell me how to load the pytorch_model.bin weights provided by the author?

Hello, I'm also facing an issue with loading the mPLUG-Owl finetuned model. Could you please tell me how to load the pytorch_model.bin weights provided by the author?

If you already finished the finetune step and got your checkpoints (the lora part), you can do the model loading in my way.
In model_worker.py, the code first loads the original weights, then the lora part.
Edited code(model_worker.py):
# Loading original weights

self.image_processor = MplugOwlImageProcessor.from_pretrained(base_model)
self.tokenizer = AutoTokenizer.from_pretrained(base_model)
self.processor = MplugOwlProcessor(self.image_processor, self.tokenizer)
self.model = MplugOwlForConditionalGeneration.from_pretrained(
     base_model,
     load_in_8bit=load_in_8bit,
     torch_dtype=torch.bfloat16 if bf16 else torch.half,  # if not support, use float16 instead of bf16
     device_map="auto"
 )
self.tokenizer = self.processor.tokenizer

# remove this part (author's way of loading lora part)

peft_config = LoraConfig(target_modules=r'.*language_model.*\.(q_proj|v_proj)', inference_mode=False, r=8,lora_alpha=32, lora_dropout=0.05)
self.model = get_peft_model(self.model, peft_config)
lora_path = 'Your lora model path'
prefix_state_dict = torch.load(lora_path, map_location='cpu')
self.model.load_state_dict(prefix_state_dict)

# add this part

from peft import PeftModel, PeftConfig
peft_model_id = "./output/custom_ft/checkpoint-50/" # the path of your lora checkpoint
config = PeftConfig.from_pretrained(peft_model_id)
self.model = PeftModel.from_pretrained(self.model, peft_model_id) # load lora into base model

Then you should be able to load your ft checkpoint to your base model.

Hello, I'm also facing an issue with loading the mPLUG-Owl finetuned model. Could you please tell me how to load the pytorch_model.bin weights provided by the author?

If you already finished the finetune step and got your checkpoints (the lora part), you can do the model loading in my way. In model_worker.py, the code first loads the original weights, then the lora part. Edited code(model_worker.py):
# Loading original weights

self.image_processor = MplugOwlImageProcessor.from_pretrained(base_model)
self.tokenizer = AutoTokenizer.from_pretrained(base_model)
self.processor = MplugOwlProcessor(self.image_processor, self.tokenizer)
self.model = MplugOwlForConditionalGeneration.from_pretrained(
     base_model,
     load_in_8bit=load_in_8bit,
     torch_dtype=torch.bfloat16 if bf16 else torch.half,  # if not support, use float16 instead of bf16
     device_map="auto"
 )
self.tokenizer = self.processor.tokenizer

# remove this part (author's way of loading lora part)

peft_config = LoraConfig(target_modules=r'.*language_model.*\.(q_proj|v_proj)', inference_mode=False, r=8,lora_alpha=32, lora_dropout=0.05)
self.model = get_peft_model(self.model, peft_config)
lora_path = 'Your lora model path'
prefix_state_dict = torch.load(lora_path, map_location='cpu')
self.model.load_state_dict(prefix_state_dict)

# add this part

from peft import PeftModel, PeftConfig
peft_model_id = "./output/custom_ft/checkpoint-50/" # the path of your lora checkpoint
config = PeftConfig.from_pretrained(peft_model_id)
self.model = PeftModel.from_pretrained(self.model, peft_model_id) # load lora into base model

Then you should be able to load your ft checkpoint to your base model.

Thank you very much for your reply. We did not finetune the model; we just wanted to use the pytorch_model.bin provided by the authors for comparison. Have you tried this approach?

Hello, I'm also facing an issue with loading the mPLUG-Owl finetuned model. Could you please tell me how to load the pytorch_model.bin weights provided by the author?

If you already finished the finetune step and got your checkpoints (the lora part), you can do the model loading in my way. In model_worker.py, the code first loads the original weights, then the lora part. Edited code(model_worker.py):
# Loading original weights

self.image_processor = MplugOwlImageProcessor.from_pretrained(base_model)
self.tokenizer = AutoTokenizer.from_pretrained(base_model)
self.processor = MplugOwlProcessor(self.image_processor, self.tokenizer)
self.model = MplugOwlForConditionalGeneration.from_pretrained(
     base_model,
     load_in_8bit=load_in_8bit,
     torch_dtype=torch.bfloat16 if bf16 else torch.half,  # if not support, use float16 instead of bf16
     device_map="auto"
 )
self.tokenizer = self.processor.tokenizer

# remove this part (author's way of loading lora part)

peft_config = LoraConfig(target_modules=r'.*language_model.*\.(q_proj|v_proj)', inference_mode=False, r=8,lora_alpha=32, lora_dropout=0.05)
self.model = get_peft_model(self.model, peft_config)
lora_path = 'Your lora model path'
prefix_state_dict = torch.load(lora_path, map_location='cpu')
self.model.load_state_dict(prefix_state_dict)

# add this part

from peft import PeftModel, PeftConfig
peft_model_id = "./output/custom_ft/checkpoint-50/" # the path of your lora checkpoint
config = PeftConfig.from_pretrained(peft_model_id)
self.model = PeftModel.from_pretrained(self.model, peft_model_id) # load lora into base model

Then you should be able to load your ft checkpoint to your base model.

Thank you very much for your reply. We did not finetune the model; we just wanted to use the pytorch_model.bin provided by the authors for comparison. Have you tried this approach?

If you only need to load the base model, just follow the mPLUG's official code, in this project the author(Mr.Fuxiaoliu) didn't share his ft model yet.

This means you only need to use the first part of the code I mentioned above.
If you still face problems, please try the loading method of mplug from modelscope, or you can show your log here.

I want to use the finetuned mPLUG on LRV-Instruction to compare it with the base model.  I have followed the instructions of the author(Mr.Fuxiaoliu) to load it.

I set the base_model as the path of mplug-owl-llama-7b-ft, and lora_path as the path of pytorch_model.bin provided by the author(Mr.Fuxiaoliu). I also encounter the same problem of "Missing key(s) in state_dict: xxxxxx; Unexpected key(s) in state_dict: xxxxxx" and fail to load it.
Could you please tell me how to solve this problem? Perhaps this is due to the mplug lora model  is a large model (14G)?

I want to use the finetuned mPLUG on LRV-Instruction to compare it with the base model. I have followed the instructions of the author(Mr.Fuxiaoliu) to load it.

I set the base_model as the path of mplug-owl-llama-7b-ft, and lora_path as the path of pytorch_model.bin provided by the author(Mr.Fuxiaoliu). I also encounter the same problem of "Missing key(s) in state_dict: xxxxxx; Unexpected key(s) in state_dict: xxxxxx" and fail to load it. Could you please tell me how to solve this problem? Perhaps this is due to the mplug lora model is a large model (14G)?

I see... you made a mistake that the "lora weight" you got from Mr.Fuxiaoliu is actually the origin base model(he didn't actually show his ft lora in his tutorial, he said "release soon", and the lora I trained by myself is less than 100m);
So, if you didn't train your own lora, please remove the code of loading lora and only use the base model.

I want to use the finetuned mPLUG on LRV-Instruction to compare it with the base model. I have followed the instructions of the author(Mr.Fuxiaoliu) to load it.

I set the base_model as the path of mplug-owl-llama-7b-ft, and lora_path as the path of pytorch_model.bin provided by the author(Mr.Fuxiaoliu). I also encounter the same problem of "Missing key(s) in state_dict: xxxxxx; Unexpected key(s) in state_dict: xxxxxx" and fail to load it. Could you please tell me how to solve this problem? Perhaps this is due to the mplug lora model is a large model (14G)?

I see... you made a mistake that the "lora weight" you got from Mr.Fuxiaoliu is actually the origin base model(he didn't actually show his ft lora in his tutorial, he said "release soon", and the lora I trained by myself is less than 100m); So, if you didn't train your own lora, please remove the code of loading lora and only use the base model.

Okay, I understand now. Thank you for your considerate and patient response! Additionally, I'm looking forward to the author releasing the lora weight soon.

I'm also having the same problem in loading mPLUG-Owl finetuned model. @FuxiaoLiu Could you please confirm what @GUOGUO-lab said the provided pytorch_model.bin(14GB) is the combination of the mPLUG-Owl checkpoint with the finetuned lora weight? If so, do we need any other config.json files to load this .bin file? And maybe that also means some updates in the readme.


Can't scale up Operator

I installed Helm Project Operator with the provided Helm chart. With handle 20-30+ projects the Operator needs many recources, died with Oomkilled, and has not the right performance. The idea was to scale up the deployment, but the replicaset is hard coded to 1. This should be configurable, also to get more availability.

@eumel8 regarding the number of replicas, I would be in favor of providing that as a configurable option (cc: @geethub97 @bashofmann). There are minor benefits to doing this (primarily that if one pod runs into an error, such as a panic, another pod can take over with less downtime since it's already been initialized).
However, regarding the underlying issue you are referring to (i.e. you want multiple versions of the operator to work together to manage all the projects), this would not alleviate your issue.
The reason why is that Helm Project Operator attempts to acquire a lock so that only one version of it running within the cluster will be running controllers at a given time, see https://github.com/rancher/helm-project-operator/blob/96ff247e12d8e5d2199e4476c94a55c6159469c3/pkg/controllers/controllers.go#L206-L211

@aiyengar2 thanks for explanation. I know the logic of an Operator and yes, a replica can only cover errors of the main pod. So I'm fine with an configuration option replicas in Helm. Would be Operations a little bit safer.

Sounds good. We can resolve this issue on adding the ability to configure replicas in Helm Project Operator / Prometheus Federator Helm chart and use https://github.com/rancher/helm-project-operator/issues/3 to continue to track the other scaling feature.
cc: @geethub97 @MKlimuszka


Wrong type when changing a number variable into a string (includes fix)

Posted also on original repo: https://sourceforge.net/p/luaj/bugs/55/

When running the following Lua code in LuaJ, the type of the variable a doesn't change to string, but remains a number. This cause an unexpected behaviour when assigning strings that looks like numbers to a variable that was of type number. This doesn't happen when variables are first initialized to string type, like b in the example below.
a = 10
print(type(a)) -- number
print(a) -- 10

b = "10.00"
print(type(b)) -- string
print(b) -- 10.00

a = "10.00"
print(type(a)) -- number, expected string!
print(a) -- 10, expected 10.00

On other Lua interpreters, the code runs as expected. I think that problem arises in the class NumberValueEntry in LuaTable.java, in particular in the method that is called when the entry needs to be changed:
public Entry set(LuaValue value) {
	LuaValue n = value.tonumber();
	if ( !n.isnil() ) {
		this.value = n.todouble();
		return this;
	} else {
		return new NormalEntry( this.key, value );
	}
}

Here you can see that if the new value can be coerced to a number, the entry is updated just by changing its double value to the new value, converted to double. Only if the new value is not number-like, a new entry with the correct type is returned. I don't get why there's the need to have a NumberValueEntry in the first place, but instead of removing it altogether, it could be fixed keeping the entry-reusing login by checking the new value type instead of trying to coerce it to a number. The change below fixes the example above:
public Entry set(LuaValue value) {
	if (value.type() == TNUMBER) {
		LuaValue n = value.tonumber();
		if (!n.isnil()) {
			this.value = n.todouble();
			return this;
		}
	}
	return new NormalEntry( this.key, value );
}

I can make a pull request if you agree.

Yes. This is bug. Make pull request.


Firebase Auth Improvement: email format check before sign up.

Here's my situation:
When user sign up, I have a page to input email, if it's valid with my local regex email check, then it go to next page to input password with similar local regex check.
After that, I call createUserWithEmailAndPassword to get user.
I got error ERROR_INVALID_EMAIL with email<EMAIL_ADDRESS>What I want API improvement to see with my situation is :

someplace to provide the email regex rule, or just email rule ?
some api to added to valid email only in firebase server?

more detail on stackoverflow

Hi @jerryzhoujw
I see on the link you provided that your stackoverflow question has been answered
for more details you may check this documentation
https://firebase.google.com/docs/reference/security/database/regex.
If the issue persist, please post your  flutter doctor -v

@mikhail-tokarev  the doc link you provide explained well enough.


eu-west-2 unsupported ?

When attempting to provision a cluster in AWS London Region (eu-west-2) I keep getting the following error.

Error: Failed to create config: failed getting AMI for config: could not find region eu-west-2 for channel stable

Is this region currently unsupported by kube-aws?
I can see on this page: https://coreos.com/os/docs/latest/booting-on-ec2.html - There doesn't appear to be an AMI for eu-west-2
Are there any plans to support this region? If not, will I be able to hack it by placing a copy of a CoreOS AMI into that region in my AWS account and manually changing the AMI in the generated CloudFormation config?

@colhom @aaronlevy Can you forward forward this to the right people? I think it just needs to be included in some ami build automation but can't be sure. :)

@pieterlange - Thanks for the quick response, if this could included in the ami build automation soon(ish) it would be greatly appreciated.

cc @crawford
On Jan 4, 2017 4:23 AM, "Martin Danko"<EMAIL_ADDRESS>wrote:

@pieterlange https://github.com/pieterlange - Thanks for the quick
response, if this could included in the ami build automation soon(ish) it
would be greatly appreciated.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/coreos/kube-aws/issues/198#issuecomment-270359250,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABBnVBcapiYcVJYWxNZ1t4FFwNBH_wTaks5rO481gaJpZM4LakC7
.

https://github.com/coreos/bugs/issues/1733
It'll be available in a few hours.

Thanks very much @all.

Hi all,
FYI
The default instance size: m3.medium doesn't appear to be available in the eu-west-2 region for the AWS::AutoScaling::LaunchConfiguration for some strange reason.
Also it appears that only the beta channel was updated so one could not provision the stable channel in that region :-(

Thanks @crawford - I can see it in the stable channel now. Which is handy as my cluster doesn't seem to want to provision correctly using the beta channel, the kube-aws-controller doesn't become healthy.
Would anyone know why despite setting containerRuntime: docker in the cluster.yaml file - on the kube-aws-controller nothing appears to be running in Docker?
docker ps and docker ps -a show no output.
However, rkt list shows the following.

Jan 06 22:14:39 ip-10-0-0-5.eu-west-2.compute.internal systemd[1]: Created slice system-sshd.slice.
Jan 06 22:14:39 ip-10-0-0-5.eu-west-2.compute.internal systemd[1]: kubelet.service: Unit entered failed state.
Jan 06 22:14:39 ip-10-0-0-5.eu-west-2.compute.internal systemd[1]: kubelet.service: Main process exited, code=exited, status=1/FAILURE
Jan 06 22:14:39 ip-10-0-0-5.eu-west-2.compute.internal systemd[1]: Failed to open directory /usr/lib/systemd/system/var-lib-rkt-pods-run-4e8e9a87\x2d318d\x2d46fe\x2d800c\x2d887acc9
Jan 06 22:14:39 ip-10-0-0-5.eu-west-2.compute.internal systemd[1]: Failed to open directory /run/systemd/generator/var-lib-rkt-pods-run-4e8e9a87\x2d318d\x2d46fe\x2d800c\x2d887acc9a
Jan 06 22:14:39 ip-10-0-0-5.eu-west-2.compute.internal systemd[1]: Failed to open directory /run/systemd/system/var-lib-rkt-pods-run-4e8e9a87\x2d318d\x2d46fe\x2d800c\x2d887acc9adb8
Jan

...

Jan 06 22:14:39 ip-10-0-0-5.eu-west-2.compute.internal systemd[1]: Failed to open directory /etc/systemd/system/var-lib-rkt-pods-run-a977ea30\x2d2218\x2d4212\x2d8568\x2d14dc16c12dc
Jan 06 22:14:39 ip-10-0-0-5.eu-west-2.compute.internal systemd[1]: Failed to open directory /run/systemd/transient/var-lib-rkt-pods-run-a977ea30\x2d2218\x2d4212\x2d8568\x2d14dc16c1
Jan 06 22:14:39 ip-10-0-0-5.eu-west-2.compute.internal systemd[1]: Failed to open directory /run/systemd/transient/var-lib-rkt-pods-run-a977ea30\x2d2218\x2d4212\x2d8568\x2d14dc16c1
Jan 06 22:14:39 ip-10-0-0-5.eu-west-2.compute.internal kubelet-wrapper[2176]: failed to run Kubelet: could not init cloud provider "aws": not a valid AWS zone (unknown region): eu-
Jan 06 22:14:39 ip-10-0-0-5.eu-west-2.compute.internal kubelet-wrapper[2176]: Error: failed to run Kubelet: could not init cloud provider "aws": not a valid AWS zone (unknown regio
Jan 06 22:14:39 ip-10-0-0-5.eu-west-2.compute.internal kubelet-wrapper[2176]: I0106 22:14:39.003863    2176 aws.go:700] Zone not specified in configuration file; querying AWS metad
Jan 06 22:14:39 ip-10-0-0-5.eu-west-2.compute.internal kubelet-wrapper[2176]: I0106 22:14:39.003765    2176 aws.go:746] Building AWS cloudprovider
Jan 06 22:14:39 ip-10-0-0-5.eu-west-2.compute.internal kubelet-wrapper[2176]: I0106 22:14:39.003640    2176 feature_gate.go:181] feature gates: map[]
Jan 06 22:14:39 ip-10-0-0-5.eu-west-2.compute.internal kubelet-wrapper[2176]: Flag --rkt-stage1-image has been deprecated, Will be removed in a future version. The default stage1 i
Jan 06 22:14:39 ip-10-0-0-5.eu-west-2.compute.internal kubelet-wrapper[2176]: Flag --api-servers has been deprecated, Use --kubeconfig instead. Will be removed in a future version.
Jan 06 22:14:38 ip-10-0-0-5.eu-west-2.compute.internal systemd[1]: Failed to set up mount unit: Invalid argument

There's this message:
Jan 06 22:14:39 ip-10-0-0-5.eu-west-2.compute.internal kubelet-wrapper[2553]: Error: failed to run Kubelet: could not init cloud provider "aws": not a valid AWS zone (unknown region): eu-west-2a
and this is the bit of my cluster.yaml
# Region to provision Kubernetes cluster
region: eu-west-2

# Availability Zone to provision Kubernetes cluster when placing nodes in a single availability zone (not highly-available) Comment out for multi availability zone setting and use the below `subnets` section instead.
availabilityZone: eu-west-2a

Validation seems to give it as ok:
-> % kube-aws validate --s3-uri s3://kubernetes.clusters/london
Validating UserData...
UserData is valid.

Validating stack template...
Validation Report: {
  Capabilities: ["CAPABILITY_IAM"],
  CapabilitiesReason: "The following resource(s) require capabilities: [AWS::IAM::Role]",
  Description: "Kubernetes cluster compute"
}
stack template is valid.

Validation OK!

@ipedrazas this one is kubernetic, not AWS
https://github.com/kubernetes/kubernetes/blob/6d0efbc9d644fdfb69a214d8b76417cf581fbf37/pkg/cloudprovider/providers/aws/aws.go#L780-L787
File an issue upstream about this? I feel the kubelet should dynamically fetch a list of valid AWS zones from a well-known URL, probably the metadata service. Hardcoding it is definitely not optimal.

There a PR already in place that fixes the hard coding issue using the metadata service
https://github.com/kubernetes/kubernetes/pull/38880
I just wanted to leave trace in case someone else bumps into this problem 😄

In the meantime, is there a way to specify cfg.Global.DisableStrictZoneCheck to work around the check? Can we get that in through the userdata somehow?

Does this mean kube-aws is not currently supported in eu-west-2 atm? I am still not able to provision a cluster successfully.
How come I incorporate the kubernetes/kubernetes#38880 fix ?
ATM the cluster provisions with Cloudformation however, the controller node never becomes healthy in the ELB and most of the time I am unable to successfully ssh into the controller node with the following error.

ssh_exchange_identification: read: Connection reset by peer

Although that is probably unrelated the AWS region hard-coding in upstream Kubernetes.

@martindanko I ran into this exact issue with us-east-2 (Ohio) and now ca-central-1 (Canada) and eu-west-2 (London).  Kubernetes 1.4.7 added support for us-east-2, but the fix you referenced here: https://github.com/kubernetes/kubernetes/pull/38880 is needed to get the newest two regions in place.  Current tagged milestone on that issue is 1.5.0. So yes, you can't use these two regions ATM.
If you SSH into one of your workers early on in the deployment process and run "journalctl -f", you'll see the kubelet.service crash-looping with an error:
Error: failed to run Kubelet: could not init cloud provider "aws": not a valid AWS zone (unknown region): eu-west-2a
The SSH error during this deployment in unsupported regions appears to be resource constraint related and not a region-specific issue, IME.
All that said, as @gmorpheme mentioned, is there a way to add that DisableStrictZoneCheck setting into the userdata in the meantime?  I'm not looking for kube-aws to do it natively, but I'm willing to drop it into the user data files by hand if someone knows how to link that into the proper place.

I'm using the latest stable release and deploying into eu-west-2 as a multi-AZ deployment. I am however having a problem getting the etcd nodes to deploy in the desired subnet.

I believe this is already resolved in upstream. Closing!


Update consumer to 4.5.4 in java8

Updates au.com.dius.pact:consumer from 4.1.41 to 4.5.4.
Changelog
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Files still referring to the old version number
The following files still refer to the old version number (4.1.41).
You might want to review and update them manually.
example/resources/pacts/munit-consumer-munit-provider.json
example/resources/pacts/scalatest-consumer-scalatest-provider.json

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "au.com.dius.pact", artifactId = "consumer" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "au.com.dius.pact", artifactId = "consumer" }
}]

labels: library-update, early-semver-minor, semver-spec-minor, old-version-remains, commit-count:1

Superseded by #404.


Implement a way to apply Peril and Damage to targeted character(s).

Originally created by @ghost (https://github.com/fh-fvtt/zweihander/issues/45):
https://trello.com/c/MYsEJYuk/83-implement-a-way-to-apply-peril-and-damage-to-targeted-characters
FoundryVTT has a targeting functionality that can become useful in swiftening play. Examples:
• After rolling for damage, clicking on a button in the Chat Message will apply the damage to the targeted character.
• After rolling a spell that applies 2d10+2 Peril, target multiple characters on a map. Roll for Peril; clicking on a button in the Chat Message will apply it to all targeted characters.

this is now covered by another issue


Adding PowerShell steps

Hello all
The PowerShell steps to update the retention of log analytics workspace tables were missing from the below documentation.
https://learn.microsoft.com/en-us/azure/azure-monitor/logs/data-retention-archive?tabs=cli-1%2Ccli-2#set-retention-and-archive-policy-by-table
I have added the same. Please review and approve.

@microsoft-github-policy-service agree [company="{Ayan Mullick LLC}"]

@microsoft-github-policy-service agree company="Ayan Mullick LLC"

Learn Build status updates of commit 9651c0a:
:warning: Validation status: warnings

File
Status
Preview URL
Details

articles/azure-monitor/logs/data-retention-archive.md
:warning:Warning

Details

articles/azure-monitor/logs/data-retention-archive.md

Line 151, Column 9: [Warning: hard-coded-locale - See documentation] Link 'https://learn.microsoft.com/en-us/powershell/module/az.operationalinsights/Update-AzOperationalInsightsTable?view=azps-9.1.0' contains locale code 'en-us'. For localizability, remove 'en-us' from links to most Microsoft sites.
Line 157, Column 121: [Warning: hard-coded-locale - See documentation] Link 'https://learn.microsoft.com/en-us/powershell/module/az.operationalinsights/Update-AzOperationalInsightsTable?view=azps-9.1.0' contains locale code 'en-us'. For localizability, remove 'en-us' from links to most Microsoft sites.
Line 206, Column 60: [Warning: hard-coded-locale - See documentation] Link 'https://learn.microsoft.com/en-us/powershell/module/az.operationalinsights/get-azoperationalinsightstable?view=azps-9.1.0' contains locale code 'en-us'. For localizability, remove 'en-us' from links to most Microsoft sites.
Line 151, Column 9: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://learn.microsoft.com/en-us/powershell/module/az.operationalinsights/Update-AzOperationalInsightsTable?view=azps-9.1.0' will be broken in isolated environments. Replace with a relative link.
Line 151, Column 9: [Suggestion: preserve-view-not-set - See documentation] You've pinned this link to a specific version of content with the view parameter. It's recommended not to pin a version unless that version is A) not the default view and B) the context is about that version specifically. To proceed with pinning a version add the &preserve-view=true to the URL.  Otherwise, remove the view parameter. URL: https://learn.microsoft.com/en-us/powershell/module/az.operationalinsights/Update-AzOperationalInsightsTable?view=azps-9.1.0
Line 157, Column 121: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://learn.microsoft.com/en-us/powershell/module/az.operationalinsights/Update-AzOperationalInsightsTable?view=azps-9.1.0' will be broken in isolated environments. Replace with a relative link.
Line 157, Column 121: [Suggestion: preserve-view-not-set - See documentation] You've pinned this link to a specific version of content with the view parameter. It's recommended not to pin a version unless that version is A) not the default view and B) the context is about that version specifically. To proceed with pinning a version add the &preserve-view=true to the URL.  Otherwise, remove the view parameter. URL: https://learn.microsoft.com/en-us/powershell/module/az.operationalinsights/Update-AzOperationalInsightsTable?view=azps-9.1.0
Line 206, Column 60: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://learn.microsoft.com/en-us/powershell/module/az.operationalinsights/get-azoperationalinsightstable?view=azps-9.1.0' will be broken in isolated environments. Replace with a relative link.
Line 206, Column 60: [Suggestion: preserve-view-not-set - See documentation] You've pinned this link to a specific version of content with the view parameter. It's recommended not to pin a version unless that version is A) not the default view and B) the context is about that version specifically. To proceed with pinning a version add the &preserve-view=true to the URL.  Otherwise, remove the view parameter. URL: https://learn.microsoft.com/en-us/powershell/module/az.operationalinsights/get-azoperationalinsightstable?view=azps-9.1.0

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Learn Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

@guywi-ms
Can you review the proposed changes? IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#assign-reviewer: @adiBiran

@adiBiran can you please review and approve?

#sign-off


Add Travis

Add a Travis CI badge to the repo and set up the necessary configuration to get this ES6 testing scheme playing nicely with CI.

Woohoo Travis works! That was easier than expected. https://github.com/curran/jspm-mocha-example/commit/9e12746ddc5c39035dcdde1edf7f32e63bbcc452


Local state management

Hello,
Is there a local state? Something like apollo-link-state? 😇
Thanks!
Maxim

Hiya, there's no additional package yet that implements it, but there very well could be in the future.
While it's unlikely that we'll pick this effort up ourselves and put it on our road map, we'd be happy to support anyone else who want to make this happen 👍
We're currently working on more documentation regarding how to write exchanges.

@kitten Was thinking about this too. Did someone take it up? And is there a way to see different community-made exchanges?

Hey @deadcoder0904
We have: https://github.com/FormidableLabs/urql/blob/master/docs/guides.md as guides to help you out with writing exchanges.
For now exchanges made by us and the community are kept on the readme.
https://github.com/FormidableLabs/urql#-add-on-exchanges
There could be more but not that I know of at this moment.

I am trying to choose a client for my react app. is this feature not yet implemented ?

I am trying to choose a client for my react app. is this feature not yet implemented ?

@ahmedosama5200  Go Zustand https://github.com/pmndrs/zustand or React Query https://github.com/tannerlinsley/react-query

@ahmedosama5200  Go Zustand https://github.com/pmndrs/zustand or React Query https://github.com/tannerlinsley/react-query

I am aiming for a more full-featured graphql-specific client. I know apollo but thinking about using urql

I am aiming for a more full-featured graphql-specific client. I know apollo but thinking about using urql

@ ahmedosama5200  URQL has no local state (as far as I know), but only cache.
Look here for more details https://react-query.tanstack.com/comparison and https://rtk-query-docs.netlify.app/introduction/comparison/

@ ahmedosama5200  URQL has no local state (as far as I know), but only cache.
Look here for more details https://react-query.tanstack.com/comparison and https://rtk-query-docs.netlify.app/introduction/comparison/

Hey @ahmedosama5200
Currently we don't have a first-party integration for client-side extensions to the server-based schema, we haven't prioritized this since we have yet to see a good use case for this.
We currently advise on React-state or one of the many local-state libraries out there in the wild.

Hey @ahmedosama5200
Currently we don't have a first-party integration for client-side extensions to the server-based schema, we haven't prioritized this since we have yet to see a good use case for this.
We currently advise on React-state or one of the many local-state libraries out there in the wild.

It's also worth noting (to lift this from our other responses) that we don't believe in local state management in GraphQL clients or expressed in GraphQL itself.
Ultimately urql, like react-query which operates under a similar philosophy, is a server-state client, so to speak.
It's advantageous to use GraphQL to your advantage to model data requirements and to fulfil them with a client. For more complex use cases we've got Graphcache, our normalised cache, for this task. Local state is better expressed in existing React hooks tools or libraries that do focus on local state, like Zustand for instance.
If you combine server state and client state (or even UI state and server state) there's IMO not much to gain but much to lose in terms of coupling and "muddying" the otherwise clean nature of server state flowing down your element tree.

It's also worth noting (to lift this from our other responses) that we don't believe in local state management in GraphQL clients or expressed in GraphQL itself.
Ultimately urql, like react-query which operates under a similar philosophy, is a server-state client, so to speak.
It's advantageous to use GraphQL to your advantage to model data requirements and to fulfil them with a client. For more complex use cases we've got Graphcache, our normalised cache, for this task. Local state is better expressed in existing React hooks tools or libraries that do focus on local state, like Zustand for instance.
If you combine server state and client state (or even UI state and server state) there's IMO not much to gain but much to lose in terms of coupling and "muddying" the otherwise clean nature of server state flowing down your element tree.

Apollo and urql seem very similar to me. I feel like I already know urql because I know apollo except for little terminology(links become exchanges and so on), so migrations between the two, anytime down the road, will be easy, I guess
I think my algorithm will go like this:

if I need complex state management, I will go for URQL + redux (or mobx)
If I need simple state management, I will go for apollo with its built-in state management

Apollo and urql seem very similar to me. I feel like I already know urql because I know apollo except for little terminology(links become exchanges and so on), so migrations between the two, anytime down the road, will be easy, I guess
I think my algorithm will go like this:

if I need complex state management, I will go for URQL + redux (or mobx)
If I need simple state management, I will go for apollo with its built-in state management

@kitten what is "the preferred urql way" to populate client state via urql? Let's say a form or something that is managed via redux and populated via urql from the server. Now I've resorted to some useEffect trickery, but would be cool if urql would provide some callbacks for this purpose too useEffect feels like a fragile workaround.

TBH this is the only thing that is very annoying. That you cannot just use data from urql easily in your external things like react-hooks-form and whatnot without useEffect sync code or some other hacks.
A good example would be starting a query, suspending the tree, and then getting a bunch of calculated fields and other things from the data from the query. Obviously, we need to strive to have all the calculations serverside, but sometimes some small silly things are fine to calculate on the client.
It may also be useful in the scenario of rerender optimization too, as components can subscribe only to changes of the subset of the data from the query at any level using some useSelector or so instead of using prop drilling or silly useMyQuery wrappers of useQuery here and there to get it anywhere in the tree. Plus, any changes to the query will cause a rerender, while useSelector and other libs like Jotai and their selectAtom optimize that and rerender only in case value changes. (still waiting for useFragment sorcery in URQL that will probably enable that)
It's obviously hard to incorporate correctly into Redux and whatnot, knowing, more or less, how URQL is working internally.
In a sense that current React bindings are tracking currently listened-to operations via provided hooks, and refetch them in case let's say refocus exchange is used, etc.
Having some urql to Redux bindings would need to incorporate all these things, so all the useUrqlSelector etc. will be smart enough to subscribe, unsubscribe, and do other things URQL default React bindings do (like suspense) which are quite hard to achieve.
Primitive bindings to Redux and whatnot should be not so hard to implement, but correct and full-featured bindings are gonna be tricky 100% (saying that as an author of jotai-urql) same applies to xstate and others.


Documentation link in readme is a 404

I am trying to find out what is the proper process to install/upgrade PowerShellGet. There is a Documentation link in the readme that leads to https://msdn.microsoft.com/en-us/powershell/gallery/psget/overview
This page is a 404, howerver!

Thanks for letting us know--we will update the link. For now, this should be correct:
https://docs.microsoft.com/en-us/powershell/scripting/gallery/installing-psget?view=powershell-6

@SydneyhSmith
My Packages > xxxx > Edit
Read more
https://aka.ms/psgallery-managing-items
My Packages > xxxx > Unlist
You can control how your packages are listed using the checkbox below. As per policy
https://docs.microsoft.com/en-us/powershell/gallery/how-to/publishing-items/deleting-items


[fea-rs] LigatureCaretByPos is not LigatureCaretByIndex

$ ~/others-repos/fontc/target/release/fontc NotoSansArabic-Bold.ufo
[2024-05-30T15:35:21.212215Z ThreadId(1) fontc::workload ERROR] Be(FeaturesAst) failed Fea compilation failure Validation failed with 1 errors
error: contourpoint index must be non-negative
in NotoSansArabic-Bold.ufo/features.fea at 961:30
    |
961 |   LigatureCaretByPos allah-ar -365 10 1213;
    |                               ^^^^

This value is fine; within the context of a LigatureCaretByPos, that's a caret position value, not a contour point index.

oops, thanks!


Update mpc.md

Type of change

[x] Add new papers (Please tell us why you think this paper is awesome!)
[ ] Fix the category of an existing paper/papers (Please tell us the reasons)
[ ] Add a new tool/primitive/application with a new markdown page (Thank you! Also, please tell us more about this awesome thing!)

Description

Some papers about pseudorandom correlation generator(PCG) in Crypto 2023

I have read the CLA Document and I hereby sign the CLA


chore(deps): upgrade dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-main" workflow

Codecov Report

Merging #604 (eb56b65) into main (9c7526d) will not change coverage.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@           Coverage Diff           @@
##             main     #604   +/-   ##
=======================================
  Coverage   95.69%   95.69%
=======================================
  Files           1        1
  Lines         395      395
  Branches       53       53
=======================================
  Hits          378      378
  Misses         17       17

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


ipython kernel name / environment

Apparently, @cwehmeyer  and me already had to install the notebooks in two different ways. The problem is that the standard kernel name, even when starting the notebook server from within the environment, does not necessarily point to the right python installation / environment. In my case, it looks up the kernels stored in ~/.local/share/jupyter/kernels/ and takes the kernel named python3 in from this folder. That might only be an issue for people that use different environments, I don't know. I suggest that we either

add a note to the readme on how to install the ipython kernel:

source activate pyemma_tutorial
python -m ipykernel install --name pyemma_tutorial --user

and use pyemma_tutorial for the kernel name in the notebooks
or

make this implicit by defining the path it in the notebook metadata (don't know if that's possible though).

@marscher any ideas on that?

I think we should find a technical solution to avoid people having to set/install the kernel manually. There are two local configuration files, which can be placed into the notebook folder:

jupyter_config.py
jupyter_config.json

Maybe one can configure the kernel there. I would also suggest to set the kernel name to something specific like "PyEMMA-Tutorials-Py3" to ensure people are using the right environment.

I agree, we should make it as easy to run as possible. Are you sure that it is possible to set these jupyter config files for a single directory?
Since we already have two commands for people to install the conda environment in our readme, maybe it would be the easiest to add a third one (python -m ipykernel install --name PyEMMA-Tutorials-Py3 --user) and to put everything into an .sh script. This would make our environment available in the dropdown menu in the notebooks for the user. If we set the default kernel name in the notebooks to the same name, this should also work out of the box.

What's the status here?

fixed in #34


Long range advice

everything is working great for me 🙂
But I wanted to achieve longer range and bought …..
https://www.ebay.com/itm/CC1101-wireless-module-CC1100-upgraded-version-of-the-high-precision-external/191674193090?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2649
https://www.ebay.com/itm/XL1101-D01-Wireless-RF-Transceiver-Module-CC1101-CC1100-SI4432-433MHz/192369991980?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2649
https://www.ebay.com/itm/SX1278-433MHz-Wireless-Transceiver-Module-LoRa-SPSP-Long-Distance/332012370467?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2649
I have been trying to make them work with no sucuss so I started thinking maybe my approach is wrong.
Will that work? any advice?
thanks

I tried listening on different GPIOs.
Could it be that this library doesn't support devices using SPI?

We are using GPIO edge detection to listen for RF input.
As you correctly pointed out, we do not have support for SPI atm.
But if you want to utilize your CC1101 I can very much recommend culfw.
You can build one on your own easily with a CC1101 and a ATmega328p. Just google for 'CULstick diy' or similar


Initial Ink removal

This PR begins the process of removing Ink from places where it's not needed. Specifically it:

Removes Ink from dialogs.tsx, which is the majority usage
Renames files from .tsx to .ts where possible (in a separate commit to ease review)
Removes Ink from the whoami command

@rozenmd It would be great to get a review from a D1 perspective, if possible!

@JacobMGEvans did you have any comments?

@JacobMGEvans did you have any comments?

Nope.

Mind fixing the merge conflicts? I'll give the preview build a test drive tomorrow morning

This should be ready for re-review! Of note, this fixes an issue with our confirm/select/prompt mocking—the mockSelect etc... functions didn't properly assert on their input (and whether they were called), and so most of init.test.ts has extraneous or erroneous calls to mockSelect/mockConfirm/mockPrompt.


CHARSETS not handled correctly

First of all: Thank you for your effort!
VCFs that contain fields that are encoded with a certain CHARSET cannot be read correctly, because the extended characters got lost already when the vcf file was loaded by your code. Although the LoadVcf and ParseVcf methods have an optional encoding parameter, but this would mean that I had to guess the correct CHARSET in advance.
The VCards code should accept and process CHARSET parameters, so that fields with CHARSET are read with the correct encoding
My workaround was to read the Vcf into memory as a string, search for "CHARSET=" anywhere and read teh value afterwards (e.g. "Windows-1252". Then I open the file again using this encoding. This assumes that multiple CHARSET parameters in the same file all use the same encoding.

Thanks for posting the issue.
The CHARSET parameter exists only in vCard 2.1. It's use is normally to specify, how the hexadecimal values in the quoted-printable-encoding have to be interpreted. It seems you have to deal with vCard 2.1- vCards which use NON-ASCII characters without quoted-printable-encoding (ENCODING=8BIT).
Am I right? Could you post the parameter part of such a vCard-row?
I want to try if it is possible to repair such fields automatically after being read with the wrong encoding and will provide a solution, if it's possible. It will take a few weeks because I'm very busy in the moment.
Meanwhile you could use the library for this workaround:

Load the the vCard with VCard.LoadVcf("YourFilename.vcf") as UTF-8.
Use Linq on the VCard object to determine, whether a VCardProperty object exists in it, which has VCardProperty.Parameters.Charset not null AND VCardProperty.Encoding not equal to VCdEncoding.QuotedPrintable.
Then load the vCard again with the specified encoding.

Hi,
thank you for your answers.
The vCard in question comes from MS Outlook (Version M365 16.0). You see the CHARSET parameter in the home address.
I did not want to rely on the existence of a LABEL, which returns the 'ä' correctly, but does not offer separate values for street, Zip and city.
My workaround is similar to your, except that I use a brute force approach and I simply search for the text "CHARSET=" and tke the encoding after the "=", then I reopen the fiole with this encoding.
Example:
BEGIN:VCARD
VERSION:2.1
N;LANGUAGE=de:Rastral;Ralf
FN:Ralf Rastral
ADR;HOME;PREF;:;;Lämmerweg 12;Kleindorf;;98765;Deutschland
LABEL;HOME;PREF;CHARSET=Windows-1252;ENCODING=QUOTED-PRINTABLE:L=E4mmerweg 12=0D=0A=
98765 Kleindorf
X-MS-OL-DEFAULT-POSTAL-ADDRESS:1
X-MS-CARDPICTURE;TYPE=JPEG;ENCODING=BASE64:
 /9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAcFBQYFBAcGBQYIBwcIChELCgkJChUPEAwRGBUa
 GRgVGBcbHichGx0lHRcYIi4iJSgpKywrGiAvMy8qMicqKyr/2wBDAQcICAoJChQLCxQqHBgc
 KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKir/wAAR
 CACEAB8DASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAA
 AgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkK
 FhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWG
 h4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl
 5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREA
 AgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYk
 NOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOE
 hYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk
 5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD37zMsQKGkVB6moR3NNNAEisZH56elJO2A
 AKdEO9RyfPNj0oAU9BTT2pxOTSDlqAJl+VP1qGMZYk1LKdsf6VEOIvc0AFPiGWphqaIYGaAG
 XB5AFMl4VRSt883tmmSnL0AP71KPljyfSolGTzUrjeuB09aAIo+pJpvls7Z6VJhY14+aonkZ
 qALC7T91ajlJzjP4VIg+WovvyfjQAScIBURHpU0mN3zdfQVGXI+7wPagCy3yJ+FRqSx6/TFO
 nPQU1eEzQBG5yxph606mnrQBPKcuaH4jpuNzj3okPSgBlNPWnU09aALCheopHTJ4NCcDJ9c1
 Gf60ABQimlSOop24+tHmH0FAEp4j/Coj0oooASmnrRRQB//Z

X-MS-OL-DESIGN;CHARSET=utf-8:<card xmlns="http://schemas.microsoft.com/office/outlook/12/electronicbusinesscards" ver="1.0" layout="left" bgcolor="ffffff"><img xmlns="" align="fit" area="16" use="cardpicture"/><fld xmlns="" prop="name" align="left" dir="ltr" style="b" color="000000" size="10"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="addrhome" align="left" dir="ltr" color="000000" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/></card>
REV:20230611T140325Z
END:VCARD

Thanks for the example.
Unfortunately an automatic solution which would take the CHARSET parameter into account (outside of quoted printable like in the LABEL row) would not really help you, because the ADR;HOME row has no CHARSET parameter. You better should load old vCards from MS Outlook always with an Windows-1252 encoding.
Nevertheless I find your issue interesting and will leave it open. Until now, I've not seen any vCard from the wild which used the CHARSET parameter without QUOTED-PRINTABLE, but it's not completely ruled out that such things exist.

Thanks a lot.
anyhow, I'm happy that I found your component, which covers most of the complexity of this somehow weird file format.
One last question:
Is there a source on the web for vCard files of all kinds and sorts, that I could use to test my part of the code?

You can use my test files from here:
https://github.com/FolkerKinzel/VCards/tree/master/src/FolkerKinzel.VCards.Tests/TestFiles
and here:
https://github.com/FolkerKinzel/Contacts.IO/tree/master/src/FolkerKinzel.Contacts.IO.Tests/TestFiles

After reading your interesting issue I did some research. Unfortunately it's not possible to build a mechanism directly in the VCard class, which detects encodings depending on CHARSET parameters, because extended ANSI characters are irrecocably lost after once read with UTF-8.
But FolkerKinzel.VCards 5.0.0-beta.1 is now available on nuget. It introduces two new helper classes, AnsiFilter and MultiAnsiFilter, that automatically load VCF files with the right text encoding if some are among them that use ANSI encodings like in your example above. You can solve the problem now with one line of code:
IList<VCard> vCards = new AnsiFilter().LoadVcf(YourExample.vcf);

(Windows-1252 is the default fallback encoding of the AnsiFilter class.)


Deduplicate output early using a memcache. [phab:D452]

Created by zarko at 2015-08-18 00:07:44:
This diff gathers output entries into bunches based on
higher-level semantic signals. Before being emitted, these
bunches are hashed and the hash is checked against a memcache.
If the memcache holds the hash, then the bunch is dropped on
the floor. Bunches are merged together to maintain a
minimum size (to avoid overtaxing the memcache) and they are
split to avoid a maximum size (to make hashing more effective).
With the cache turned off, the speedup for raw computation
is ~0.97 (e.g., there is a slight slowdown) for the previous
set of four benchmark units. With the cache off and when we're
writing to a graphstore with the cxx_common .kindex files
that we used to benchmark the hash patch (#682), the speedup is
~1.04. With the cache on, the speedup for the cxx_common
files is ~1.39. (The baseline for this speedup is the time
taken for cxx_common with vname hashing patched in; without it,
the speedup from pre-#682 is ~1.65.)

shahms commented inline (context lost during migration) at 2015-08-18 17:15:04:
avoid C-style casts

shahms commented inline (context lost during migration) at 2015-08-18 17:15:04:
avoid C-style casts.

shahms commented inline (context lost during migration) at 2015-08-18 17:15:04:
move list management routines to appropriately named functions (if not their own intrusive_list class).

shahms commented inline (context lost during migration) at 2015-08-18 17:15:05:
arguably, stats should go in their own class.

zarko wrote at 2015-08-18 18:21:46:

Address comments.

zarko wrote at 2015-08-18 18:23:53:
Updated

zarko wrote at 2015-08-18 18:24:31:
... and I forgot to tick a different box, but I can't submit the tick without typing something here.

shahms commented inline (context lost during migration) at 2015-08-18 20:16:50:
There is more than enough going on with the "Bunch" class that it needs to be split into its own API (and documented) rather than being modified directly by FileOutputStream.
It's unclear to me the relationship between slab.size(), size, slab.capacity(), etc.  There are so many "sizes" in here I've hit the semantic satiation wall reading this code.

zarko wrote at 2015-08-19 20:16:23:

Address comments.

zarko wrote at 2015-08-19 20:16:46:
Added some tests too.

shahms commented inline (context lost during migration) at 2015-08-19 21:40:08:
std::numeric_limits<size_t>::max() ?

shahms commented inline (context lost during migration) at 2015-08-19 21:40:08:
size_t?

shahms commented inline (context lost during migration) at 2015-08-19 21:40:08:
Why have a separate size rather than use the one embedded in the slab string member?

shahms commented inline (context lost during migration) at 2015-08-19 21:40:08:
why string rather than vector? it doesn't seem like you need the string null-termination behavior.

shahms commented inline (context lost during migration) at 2015-08-19 21:40:08:
slab.size()? both vector and string have a distinct notion of capacity and size which seem like they could be reused here.

shahms commented inline (context lost during migration) at 2015-08-19 21:40:08:
not deleting buffers_ as well?

shahms wrote at 2015-08-19 21:40:08:
Thanks! A few more comments.

zarko wrote at 2015-08-20 19:30:25:

Use std::vector instead of std::string for buffers.

zarko commented inline (context lost during migration) at 2015-08-20 19:30:58:
ZeroCopyOutputStream::Next takes an int* as its second parameter.

zarko commented inline (context lost during migration) at 2015-08-20 19:30:58:
The intention here is to limit proto_size, an in/out parameter to ZeroCopyOutputStream::Next, to the largest possible chunk we can request from protobuf (the biggest int) that is not larger than the amount of data we have left to write.
I would much prefer to use unsigned types here, but am limited because protobuf takes ints (by reference).

zarko commented inline (context lost during migration) at 2015-08-20 19:30:58:
This used to be covered by an invariant that ensured that the stack was empty when it was destroyed, but as you've pointed out this is no longer the case.

shahms commented inline (context lost during migration) at 2015-08-20 19:37:50:
I don't think the reserve() call is necessary; resize(insertion_point + bytes) should be sufficient.

shahms wrote at 2015-08-20 19:37:50:
Thanks!  One minor comment, but LGTM.

shahms accepted this revision at 2015-08-20 19:37:50

zarko wrote at 2015-08-20 19:38:38:

Formatting

zarko closed via commit e10df2ec598539b3551be99cf161804ee6d65541 at 2015-08-20 21:19:12


Test: Electron Update 1.3.x

Test for #10206:

[ ] Windows -
[ ] OS X El Capitan -
[ ] OS X Sierra -
[ ] Linux -

Complexity: 4
We have updated Electron to version 1.3.x and thereby jumped 3 chrome releases and one major node.js version. This test item asks for exploratory testing focusing on native integration where possible:

drag and drop
menus and context menus
window management and multiple windows
UI regressions
accessibility regressions

Windows: since we lost the ability to see output on the console and need to add our own helper utility to see output, please play around with code from the command line and verify you can see output for the various command line options we provide.

Known on OSX Sierra: #12473


Adding a unique functions

you are also considering the first row which should not be counted as a first row...


fix: Updated the dd query to seperate filters by AND (previously ,)

Codecov Report

Merging #480 (74f17bf) into main (9cdd6dc) will decrease coverage by 0.00%.
The diff coverage is 83.33%.

@@            Coverage Diff             @@
##             main     #480      +/-   ##
==========================================
- Coverage   30.22%   30.22%   -0.01%
==========================================
  Files          79       79
  Lines        9362     9361       -1
==========================================
- Hits         2830     2829       -1
  Misses       6275     6275
  Partials      257      257

Impacted Files
Coverage Δ

server/services/v1/observability.go
31.72% <83.33%> (-0.37%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


ComboBox PlaceholderText & ComboBoxAssist.Label is visually confused

1：ComboBox PlaceholderText & ComboBoxAssist.Label is visually confused with the selected content.
2：When the  list opened, click on another location on the interface the  list does not close. But Filled and Outline styles can be close。
3：I really hope this control can be migrated to Material. Styles/Resources/Themes/

DisplayMemberBinding also appears to behave oddly.  It seems to be getting treated as a label for the control, and floats to the top-left of the control as a result.  In addition, because of this behaviour, if using ComboBoxAssist.Label as well then the two values overlap.

Is the part where selected item gets displayed in placeholder's place?

Is the part where selected item gets displayed in placeholder's place?

What do you mean?

Here's ComboBox with two items

When ComboBox items are created using binding
<ComboBox PlaceholderText="Lines" ItemsSource="{Binding AvailableLines}"
          SelectedItem="{Binding SelectedLine, Mode=TwoWay}">
    <ComboBox.ItemTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding StringFormat='Line {0}'}"></TextBlock>
        </DataTemplate>
    </ComboBox.ItemTemplate>
</ComboBox>

Selecting an item places the selected item label on the place of the placeholder

While the one created like in the Demo
<ComboBox PlaceholderText="Lines">
    <TextBlock>Line 1</TextBlock>
    <TextBlock>Line 2</TextBlock>
</ComboBox>

is put in the correct place

Comparison of ComboBoxes with selected item of first and second:

Is this related to this issue?

Yep, I think this is related.

So is there a way to put the selected item display in it's intended place? Or any workarounds?

I'll try to take a look.

Thanks, I appreciate it. The application I am working on is getting close to release deadline, and I'm still new to Avalonia and XAML. Wish could do something about these..

Seems like this is completely overrides an template. As for workaround, you can use:
<ComboBox PlaceholderText="Lines" ItemsSource="{Binding AvailableLines}"
          SelectedItem="{Binding SelectedLine, Mode=TwoWay}">
    <ComboBox.ItemTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding StringFormat='Line {0}'}" VerticalAlignment="Center"></TextBlock>
        </DataTemplate>
    </ComboBox.ItemTemplate>
</ComboBox>

Thanks a lot, that works

"
<ComboBox.ItemTemplate>

</ComboBox.ItemTemplate>
"
            I used this, this replaces the PlaceHolderText by a watermark, giving it a cleaner position.


Add Auto Create Hyperlink Feature for ConvertTo-HTML

PR Summary
Add a function to search for URLs ("http://", "https://", "www.") in the data using regex, and warp them in a  accordingly
This feature activates with a "-hyperlink" switch

PR Context
This PR addresses #11458, which greatly facilitates the users who want hyperlinks in their converted HTML file

PR Checklist

[X] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[X] Summarized changes
[X] Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
[X] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: or [ WIP ] to the beginning of the title (the WIP bot will keep its status check at Pending while the prefix is present) and remove the prefix when the PR is ready.

Breaking changes

[X] None
OR
[x] Experimental feature(s) needed

[x] Experimental feature name(s):  Microsoft.PowerShell.Utility.Autohyperlink

User-facing changes

[ ] Not Applicable
OR
[X] Documentation needed

[ ] Issue filed:

Testing - New and feature

[ ] N/A or can only be tested interactively
OR
[X] Make sure you've added a new test if existing tests do not effectively test the code changed

Tooling

[X] I have considered the user experience from a tooling perspective and don't believe tooling will be impacted.
OR
[ ] I have considered the user experience from a tooling perspective and opened an issue in the relevant tool repository. This may include:

[ ] Impact on PowerShell Editor Services which is used in the PowerShell extension for VSCode
(which runs in a different PS Host).

[ ] Issue filed:

[ ] Impact on Completions (both in the console and in editors) - one of PowerShell's most powerful features.

[ ] Issue filed:

[ ] Impact on PSScriptAnalyzer (which provides linting & formatting in the editor extensions).

[ ] Issue filed:

[ ] Impact on EditorSyntax (which provides syntax highlighting with in VSCode, GitHub, and many other editors).

[ ] Issue filed:

The @PowerShell/wg-powershell-cmdlets discussed this and agree that such a feature makes sense as part of ConvertTo-Html and not making any comments about the PR itself.  We also recommend making this an experimental feature

I have made this feature into an Experimental Feature, called "Microsoft.PowerShell.Utility.Autohyperlink"

@JamesWTruher and @SteveL-MSFT The PR was updated, can you please review it again?

I will add this to the next Cmdlet WG meeting's agenda.

The cmdlet WG thinks this is a good experimental feature.

The cmdlet WG thinks this is a good experimental feature.

Some minor comments on just the PR body

Add a function to search for URLs ("http://", "https://", "www.") in the data using regex, and warp them in a  accordingly

Should it not search for any URI? as a a href will work for mailto: or orther uris too.
If so then if this is being added as part of this PR too can the body of the PR be updated

This PR addresses https://github.com/PowerShell/PowerShell/issues/11458, which greatly facilitates the users who want hyperlinks in their converted HTML file

To link this PR and then auto close the issue mentioned, the word addressess should be replaced with fixes to link them automatically as it's currently not linked to that issue, so please could this be updated


Array types are removed from tree - PostgreSQL

System information:

Linux (ANY)
DBeaver version <IP_ADDRESS>101311042

Connection specification:

PostgreSQL 13.1
JDBC Driver 42.2.18

Describe the problem you're observing:
Tree cleanup introduced in latest build (remove ob Array types) made hard to work with UDT declared as ARRAY. It is now impossible to find domain if it is an array. It is uncomfortable.
Steps to reproduce, if exist:
create domain aaa as int[]
It is not shown in Data types tree node.
Include any warning/errors/backtraces from the logs

thanks for the report

verified

To see all PostgreSQL data types (including array and table types) enable "Read all data types" setting in connection settings:

Or for all connections in Preferences -> Connections -> PostgreSQL

Implemented in DBeaver version 7.3.5


feat: add init subcommand

Resolves #161.

Failing code coverage is because error cases are not tested


Upload same file again produces JS error

Hello,
I tried to auto-upload files after they are selected in the browser popup. I did this by using
flow.on('filesSubmitted', function (file) {
   console.debug(file);
   file[0].flowObj.upload(); // Start upload
 });

Note this is a single file upload only. Whenever I select a new file, it works flawlessly. But if I select the previously uploaded file again, it gives me
Uncaught TypeError: Cannot read property 'flowObj' of undefined

because file is empty.
What am I doing wrong? How can I allow the user to try to upload the same file again while keeping the auto-upload on selection?

You should use an if statement to check if file[0] is defined. You can do it by writing if (file.length > 0) {file[0].flowObj.upload();}

Thanks. But what can I do if I really want to upload the same file again? Is this not possible?


Scikitlearn wrapper kernel parameters

New users may be confused about kernel selection, due to the syntax difference with libsvm's scikitlearn:
SVC(kernel='rbf')
and thundersvm's:
SVC(kernel=2)
Running thundersvm with kernel='rbf' does not return an error, and the optimization fails (objective -inf). I would suggest either updating the interface to match libsvm's scikitlearn syntax and/or alerting the user when an invalid kernel (and possibly others) argument is passed.

Thanks for your feedback. We have improved the interface and the usage of kernel parameter is the same with libsvm now.

Great, just a few spots left in the documentation to fix, under the Usage heading on https://github.com/zeyiwen/thundersvm/tree/master/python subheadings: "SVM classification", "One-class SVMs", and "SVM regression".
class SVC(kernel = 'rbf', ... etc

Thank you very much. The doc has been fixed.


SSG create a browser freez site

Environment
Nuxt project info:                                                                                10:29:22

Operating System: Windows_NT
Node Version:     v19.4.0
Nuxt Version:     3.1.2
Nitro Version:    2.1.2
Package Manager<EMAIL_ADDRESS>Builder:          vite
User Config:      pages, css, modules, i18n
Runtime Modules<EMAIL_ADDRESS>Build Modules:    -

Reproduction
You can check here https://test.stefanotesla.it
Describe the bug
Once I generate the Project and I load static files on the server, the site seems to have an infinite load loop.
Some times is impossible to open dev tool olso, no errors in console.
Additional context
No response
Logs
No response

Would you provide a reproduction? 🙏

https://github.com/StefanoTesla/nuxtproject
Yo can take the whole project...there'ere just 2 pages

This seems to be coming from @nuxtjs/i18n. Would you raise an issue there instead? 🙏

Thank you for your time 🙂


DMARC bestguesspass is not requiring domain alignment

According to the documentation, DMARC domain alignment checks must still pass in order to receive a "bestguesspass" result. However, we are seeing phishing attempts off of the Amazon SES platform where this is clearly not the case.
From the documentation:

bestguesspass: Indicates that no DMARC TXT record for the domain exists, but if one had existed, the DMARC check for the message would have passed. This is because the domain in the 5321.MailFrom address (also known as the MAIL FROM address, P1 sender, or envelope sender) matches the domain in the 5322.From address (also known as the From address or P2 sender).

Example Authentication-Results header:
spf=pass (sender IP is <IP_ADDRESS>) smtp.mailfrom=us-west-2.amazonses.com; victim.example.com; dkim=pass (signature was verified) header.d=spoofed.contoso.com;victim.example.com; dmarc=bestguesspass action=none header.from=spoofed.contoso.com;compauth=pass reason=109
Sender and recipient domains have been changed from their originals, but the Amazon SES platform is sending out emails from the spoofed.contoso.com domain to Exchange Online mailboxes at victim.example.com. However, domain alignment checks for both SPF and DKIM should require us-west-2.amazonses.com to match spoofed.contoso.com.
In this case, the SPF record for "spoofed.contoso.com" only includes "v=spf1 include:_spf.google.com ~all". Of course SPF is only checked against "us-west-2.amazonses.com" here, but it is a potential indication that the spoofed company is not even -- at least to their knowledge -- on the Amazon SES platform.
It seems that Microsoft may be giving a bit too much trust to the Amazon SES platform when assigning a DMARC result of bestguesspass. Regardless, the documentation should be updated to reflect the true meaning of bestguesspass if there are cases where domain alignment is not necessary.

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

ID: e47e11dd-53ab-5f62-ac6c-59dbc00eed0d
Version Independent ID: 362ad038-3b64-f342-2f8e-111635c4337d
Content: Anti-spam message headers - Office 365
Content Source: microsoft-365/security/office-365-security/anti-spam-message-headers.md
Product: m365-security
Technology: mdo
GitHub Login: @chrisda
Microsoft Alias: chrisda

@MSFTTracyP Please help us in resolving this issue. Thanks


feat!: adds input range check to optimize VerifyLeafHashes and VerifyInclusion methods

This PR optimizes the VerifyLeafHashes and VerifyInclusion methods by ensuring that the size of the provided leaves or leaf hashes matches the proof range and, if not, making an early return in order to prevent unnecessary hashing operations that would otherwise occur.
It introduces a breaking change by altering the behaviour of VerifyLeafHashes and VerifyInclusion. Previously, verification would succeed even if the provided leaves or leaf hashes exceeded the proof range, as long as the proof was valid and the extra leaves were appended at the end. In the new implementation, the verification will return false or an error in such cases.

[To the reviewers] The codecov error is not specific to this PR, I am investigating it.

Waiting on #255 to merge


Show the back button above the keyboard

Some examples show keyboard, and the keyboard can not be hidden until an entry is typed in. This is annoying. Consider moving the back button over the keyboard when the keyboard is present on the example pages.

Resolved by closing the keyboard on outside tap.


use case directory created

Fixes #119
Checklist

[x] I have made a material change to the repo (functionality, testing, spelling, grammar)
[x] I have read the [Contribution Guide] and my PR follows them.
[x] I updated my branch with the master branch.
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation about the functionality in the appropriate .md file
[ ] I have added in line documentation to the code I modified

Short description of what this PR does:

Created use-cases directory
added readme.md file in use-cases directory

If you have questions, please send an email to Sendgrid, or file a Github Issue in this repository.

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


feat(DAL): support for booleans

This PR introduces support for booleans in the DAL.

@davidmartos96 Pasting here my message from Discord for anyone that may bump into this.
Let me summarise:

To support PG types like boolean, float, etc. that are not supported by SQLite we need to encode them somehow.
To encode the values, the client needs to known the original PG type of a column
But, the Relation info cannot be trusted because that information is obtained in 2 ways:

When generating the app, we bundle the migrations by fetching them from Electric. The migrations that Electric provides us (through SatRelation messages) contains the SQLite type of the column instead of the PG type. This is problematic.
When a migration arrives at runtime, the SatRelation message contains the PG type.

So unfortunately, we cannot rely on the Relation info as the bundled migrations will contain SQLite types and so we lost the original PG type.
Instead, we now introspect the PG DB directly. So the Prisma schema now contains annotations with the original PG type of the columns.
We expose that information in the generated client and use it in the client to do the SQLite <-> PG conversions.


Final result errors due to the use of loating point variables

Hello,
as stated in issue #63 but in the python part of the CVSS project.
There is some final result error with the final rounding due to the use of floating point variable in the project.
I've writed my own CVSSv4 calculator and some of the results between mine and yours differs.
Exemple: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:L/VA:N/SC:H/SI:H/SA:H
The final result in yours  before rounding is 8.5499999999999 so it's rounded down to 8.5 but in mine i'ts 8.55 so it's rounded up to 8.6
The problem is on your side due to the use of floating point variables. (The FIRST's online calculator has the same problem)
seems to start with the available_distance_eq step:

Value is 8.6
score_eq1_next_lower_macro is 7.2
Result of 8.6-7.2 is 1.3999999999999995 instead of 1.4 and so on, on every result after that point due to the use of floating point vars that introduce imprecises results.
in the end, the only thing impacted are all the unrounded results that should have finished with x.x5 but insted are equal to x.x49999999999999 or x.x5000000000001 (but no impact on this second one).  All other results are handled properly via the final rounding.
With the test files provided on the python project i get:
522 wrong final results on file vectors_base4
1044 wrong final results on file vectors_modified4
367 wrong final results on file vectors_random4

With something like
let result;
result = Math.max(0, Math.min(10, value - meanDistance));
if (`${result}`.includes('9999999999999')) {
	result = roundToDecimalPlaces((result*10), 1) / 10;
}
return roundToDecimalPlaces(result, 1);

in place of the actual rounding, it seems to correct the problem in the onlines calculator.


Update versions for debian and rpm

Hello,
When building 3.6.x branch locally, the debian and rpm versions need to be bumped too to 3.6.4-SNAPSHOT so Maven can resolve the parent POMs.
Best regards,
Adam

Thanks


compilation error

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/a93ushakov/Desktop/mesos-plugin/src/main/java/org/jenkinsci/plugins/mesos/JenkinsScheduler.java:[154,48] error: incompatible types: ByteString cannot be converted to String
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12:58.652s
[INFO] Finished at: Mon Feb 01 17:28:49 EET 2016
[INFO] Final Memory: 31M/109M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5:compile (default-compile) on project mesos: Compilation failure
[ERROR] /home/a93ushakov/Desktop/mesos-plugin/src/main/java/org/jenkinsci/plugins/mesos/JenkinsScheduler.java:[154,48] error: incompatible types: ByteString cannot be converted to String
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Can you help to fix it?

I had used this tutorial.

Works on my side. Did you change anything? From the compilation error it looks like you are compiling against mesos 0.26.0 which broke compatibility with earlier versions.

Except changing mesos version I have not changed anything.
mesos 0.26 is not supported?

See https://github.com/jenkinsci/mesos-plugin/pull/186#issuecomment-168652356


Translations update from Mattermost Weblate

Translations update from Mattermost Weblate for mattermost-languages-shipped/mattermost-mobile.
Current translation status:

Hello @weblate,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

/release-note-none

@zefhemel This can be cherry-picked to release-1.51 release branch.