TypeInitializationException in PointCollection regression in 0.8.2

Describe the bug
Crashing exception in PointCollection introduced in 0.8.2
Steps to reproduce the bug
var pc = new PointCollection();

Adding this line to an empty WinUI 3 desktop project results in an exception:
System.TypeInitializationException: The type initializer for '<SignatureCache>System.Collections.Generic.IList'1<Windows.Foundation.Point>' threw an exception.'
With inner exception:
TypeLoadException: Could not load type 'ABI.Windows.Foundation.Point' from assembly 'Microsoft.WinUI, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=de31ebe4ad15742b'.
Stack Trace
   at <GuidPatcherImplementationDetails>.<IIDData>System.Collections.Generic.IList`1<Windows.Foundation.Point>()
   at Microsoft.UI.Xaml.Media.PointCollection..ctor(IObjectReference objRef)
   at Microsoft.UI.Xaml.Media.PointCollection..ctor()
   at App12.MainWindow.myButton_Click(Object sender, RoutedEventArgs e) in C:\Users\Marvin\source\repos\App12\App12\MainWindow.xaml.cs:line 34
   at WinRT._EventSource_global__Microsoft_UI_Xaml_RoutedEventHandler.EventState.<GetEventInvoke>b__1_0(Object sender, RoutedEventArgs e)
   at ABI.Microsoft.UI.Xaml.RoutedEventHandler.<>c__DisplayClass10_0.<Do_Abi_Invoke>b__0(RoutedEventHandler invoke)
   at WinRT.ComWrappersSupport.MarshalDelegateInvoke[T](IntPtr thisPtr, Action`1 invoke)
   at ABI.Microsoft.UI.Xaml.RoutedEventHandler.Do_Abi_Invoke(IntPtr thisPtr, IntPtr sender, IntPtr e)

Version Info

NuGet package version:
WinUI 3 - Windows App SDK 0.8: 0.8.2
Was working in 0.8.1

Windows app type:

UWP
Win32

Yes

Windows version
Saw the problem?

Insider Build (xxxxx)

21H1 (19043)
Yes

October 2020 Update (19042)

May 2020 Update (19041)

November 2019 Update (18363)

May 2019 Update (18362)

October 2018 Update (17763)

April 2018 Update (17134)

Fall Creators Update (16299)

Creators Update (15063)

Device form factor
Saw the problem?

Desktop
Yes

Xbox

Surface Hub

IoT

Additional context
Clear regression, most likely CsWinRT related. Impact: Crash on launch, blocks us completely.

Sorry for posting unfinished issue at first, GitHub submitted prematurely.
@anawishnoff Any chance you could add 21H1 (19043) to the Windows version table in the issue template? Having to add that row manually every time for the current public release is getting a bit old at this point.

@Marv51 Created #5693 to fix the missing OS version :)

@Scottj1s Possible C#/WinRT projection issue?

Looks very much like a regression in microsoft/cswinrt#849. However, setting CsWinRTIIDOptimizerOptOut on the consuming app did not resolve the exception.


Web scrobbler error

I was trying to play music from VK and YouTube, but scrobbler type me this message:

I was checking and everything is OK, I even reinstalled scrobbler but it's still not working.
I'm using version 1.50 now.

This: http://status.last.fm/
they are on the new site and are having huge problems.

dupe of #698

Yes, VC does not work

request: https://ws.audioscrobbler.com/2.0/?method=track.updatenowplaying& many data
answer:
<lfm status="failed">
<error code="13">
Invalid method signature supplied
</error>
</lfm>

I parse: our web-scrobbler not working, and @david-sabata somewhere resting and does not want to help a ~cute~ girl

Could be resolved by #701

Yep, duplicate of #698. Affects all v1 connectors


negative value in parameter_meta parse error

For the following parameter_meta entry:
        alignSJstitchMismatchNmax: {
            description: "This overrides the STAR alignment default. Maximum number of mismatches for stitching of the splice junctions (-1: no limit) for: (1) non-canonical motifs, (2) GT/AG and CT/AC motif, (3) GC/AG and CT/GC motif, (4) AT/AC and GT/AT motif",
            tool: "star",
            tool_default: {
                noncanonical_motifs: 0,
                GT_AG_and_CT_AC_motif: -1,
                GC_AG_and_CT_GC_motif: 0,
                AT_AC_and_GT_AT_motif: 0
            }
        }

I am getting an unexpected parse error.
error: parse error
   ┌─ ./workflows/rnaseq/rnaseq-core.wdl:38:40
   │
38 │                 GT_AG_and_CT_AC_motif: -1,
   │                                        ^ The following tokens are required: metadata_value.

It is failing to parse the negative value. It works if I quote it / convert it to a string, but it should be acceptable as an integer.

I just realized that I only partially fixed this in the new parser implementation: we accept the- in constructing the CST, but the AST representation for literal integer/float do not check if the minus token is present when getting the numerical value in the value methods. I'll fix that.


Adds display_name to tutorials

Blank by default, but there are only 220 rows in production so there shouldn't be any backfill issues.
Review checklist

[ ] First, the most important one: is this PR small enough that you can actually review it? Feel free to just reject a branch if the changes are hard to review due to the length of the diff.
[ ] If there are any migrations, will they the previous version of the app work correctly after they've been run (e.g. the don't remove columns still known about by ActiveRecord).
[ ] If anything changed with regards to the public API, are those changes also documented in the apiary.apib file?
[ ] Are all the changes covered by tests? Think about any possible edge cases that might be left untested.

Closes https://github.com/zooniverse/Panoptes-Front-End/issues/2959


include color/lens averages in node hover

nodes are easier to read now but i've definitely overcorrected. let's put averages back in, but just for specific columns of interest.

Closed in de6ccb3


Potential bug?

For SACD, can you explain why you do this
https://github.com/twni2016/pomdp-baselines/blob/main/policies/models/policy_rnn.py#L235
instead of this (which I think is correct)?
https://github.com/twni2016/pomdp-baselines/blob/main/policies/models/policy_rnn.py#L230

Because the target value V(s') = E_{a'~ \pi(s')}{Q(s',a')}. I think there is no bug?

Yeah, it's not a bug. Therefore, I closed the issue. Thanks for replying.


Add btn as per pico-8 docs.

Somehow this got deleted on the master branch.

I wanted to tell you about this, I think this was caused by me, cuz I pressed push instead of pull in pocketgit

No problem; stuff like this happens all the time. It was an easy fix.


[WIP] Open Images style detection evaluation

Depends on #895
Adds object detection evaluation following how it is done for Open Images.
There are a lot of similarities between this and COCO evaluation since they are both based off of Pascal VOC mAP calculation. A few notable differences are:

Open Images supports class hierarchies, if a hierarchy is provided, then ground truth objects are created for all parent classes of a detection.
Open Images has image-level positive and negative labels indicating the classes that are to be evaluated in each sample (others are ignored). If these fields are not specified then all classes are evaluated in the sample.
iscrowd is called IsGroupOf, and matching detections to a crowd ground truth object will result in 1 true positive when calculating the mAP, no matter the number of predictions that were matched with it. If no predictions are matched with it, it counts as 1 false positive.

New arguments are:

hierarchy (None) - optional label hierarchy loaded following the form of Open Images
pos_lab_field (None) - classifications field containing positive image-level labels
neg_lab_field (None) - classifications field containing negative image-level labels
expand_hierarchy (True) - whether to expand the hierarchy of gt detections and label fields
expand_pred_hierarchy (False) - whether to expand hierarchy of predicted detections (standard open images protocol is for models to output all relevant objects in hierarchy)

import fiftyone as fo
import fiftyone.zoo as foz
import random
random.seed(1)

dataset = foz.load_zoo_dataset(
    "open-images",
    "validation",
    max_samples=10,
    label_types=["detections","classifications"]
)

# Add some fake predictions
dataset.clone_sample_field("detections", "predictions")
for s in dataset:
    negs = [l.label for l in s.negative_labels.classifications]
    for d in s.predictions.detections:
        d["confidence"] = random.random()
        if negs and random.random()<0.2:
            d["label"] = random.choice(negs)

    s.save()

hierarchy = dataset.info["hierarchy"]

results = fo.evaluate_detections(
    dataset,
    "predictions",
    "detections",
    method="open-images",
    eval_key="eval",
    expand_pred_hierarchy = True,
    hierarchy=hierarchy,
    pos_lab_field="positive_labels",
    neg_lab_field="negative_labels"
)
results.mAP()
session = fo.launch_app(dataset)

Since we need the label fields, we cannot just select gt and pred fields in fiftyone.utils.eval.detection.evaluate_detections so the property additional_fields_required was added to DetectionEvaluationConfig that defaults to False but is set to True for OpenImagesEvaluationConfig.

Glad to see this was quick to implement! I just saw some minor cosmetic things after a quick review

I followed the instructions for their written instructions for performing evaluation. I still need to get an environment set up where I can pass some data through the official TF implementation to make sure the numbers are the same. I'm sure there will be some minor variations but god that code is hard to read...


NebulaGraph Studio has SSRF vulnerability

Describe the bug (must be provided)
The NebulaGraph Studio login interface provides the function of connecting to NebulaGraph. Unauthorized users can request the IP address and port of the intranet host through the target website for intranet detection.
Your Environments (must be provided)

NebulaGraph Studio ≤ 3.7.0

How To Reproduce(must be provided)
Steps to reproduce the behavior:
Step1. Send request
`POST /api-nebula/db/connect HTTP/1.1
Host: xxxx.com
Content-Length: 47
Accept: application/json, text/plain, /
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36
Content-Type: application/json
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Connection: close
{"address":"x.x.x.x","port":prot}`
Step2. View Response
The open ports of the intranet server can be seen through the response and status code：

Thanks a lot, @godway111 for reporting this!


Existing subnet name length can exceed field validation

When using an existing subnet whose name exceed 30 characters, the field in the portal to create/specify the subnet name returns an error. Since subnets can have up to 80 characters names (source) this forced us to rename the subnet before creating a Databricks workspace in it.

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

ID: 93bd5c16-e0ec-5064-9bc0-1c527c328a7e
Version Independent ID: 5342d01e-c2da-f7a8-d22e-86995a17af79
Content: Deploy Azure Databricks in your Azure virtual network (VNet injection) - Azure Databricks - Workspace
Content Source: databricks/administration-guide/cloud-configurations/azure/vnet-inject.md
Service: azure-databricks
GitHub Login: @mssaperla
Microsoft Alias: saperla

Thanks for the feedback and bringing this to our notice . At this time we are reviewing the feedback and will update the document as appropriate .

We have filed a ticket in the Databricks bug tracking system: DOC-2985
We will update this Git issue when the ticket has been resolved. #label:"in-progress".

Thanks again for this report. The next time the Databricks documentation is deployed, the following important note will be added:

Azure Databricks requires subnet names to be no longer than 30 characters. This is shorter than the maximum length allowed for subnets in the Azure portal. Before you use an existing subnet, rename it if its name is longer than 30 characters.

Thanks for providing feedback that helps improve our documentation. This issue has been resolved and we are closing the issue.
#please-close

#please-close


Improve error handling when using fsfreeze with paused VMs

What this PR does / why we need it:
This Pull Request aims to modify fsfreeze behavior so, in case of using it with a paused VM, it exits triggering an appropriate error message.
Special notes for your reviewer:
Release note:

NONE

/lgtm
/approve

/retest-required


A method can't be called  in HelperProtocol?

I add a function in HelperProtocol, but openFile never be called.
Could you give me advice?
@objc(HelperProtocol)
protocol HelperProtocol {
    func getVersion(completion: @escaping (String) -> Void)
    func openFile(completion: @escaping (UnsafeMutablePointer<FILE>?) -> Void)
}

func openFile(completion: @escaping (UnsafeMutablePointer<FILE>?) -> Void) {
        var file = fopen("/dev/auditpipe", "r")
        completion(file)
}

Does the compiler throw an error? Seems unlikely that it would silently fail.


Run 1

This was created via the API at the start of build 1

This was a build of a badly configured project and the repo was not yet ready.


'knife download cookbooks' corrupting certificate files

Description
I'm running Chef DK on Windows 7 and I'm experiencing an issue when using "knife download cookbooks" versus "knife cookbook download ". The problematic cookbook in question contains x509 certificate. When using "knife download cookbooks", the correct version of the cookbook is downloaded (i.e latest), however the certificate seems to get corrupted. When I use "knife cookbook download ", the cookbook downloads correctly and the certificate is as expected.. Furthermore chef-client downloads the cookbook correctly.
Chef Version
Chef DK 0.17.17 and
Chef Server 12.2.0
Platform Version
ChefDK - Windows 7.
Chef Server - CentOS 7.
Replication Case

Have a cookbook contain an x509 certificate, on the Chef Server repo
Issue "knife download cookbooks", see relevant cookbook files update
Issue "knife download cookbooks" again, the certificate file will show as updated (the MD5 sum remains the same however)

Also the byte size of the file will not be the same as the source file, however if you use "knife cookbook download x", the byte size will be correct and file won't be corrupt (md5 is also correct).
Client Output
https://gist.github.com/gifkinsj/12f64b50acf7861aeca9fb8ae97142ec
Stacktrace
No stack trace created

probably be useful to know how the encoding / localization on the window box was setup...   i'm fearfully ignorant of such things on windows though so i can't tell you how to do that, but on unix I'd as you for the output of set | egrep -a "^(LANG|LC)"

The Windows implementation of charsets (or code pages) is interesting: http://ss64.com/nt/chcp.html
When setting the code page to 65001 (or UTF-8), I still have the same issue when downloading.
Interestingly the "knife cookbook download" works without a problem, perhaps that command enforces the char set?

When you say "corrupt", is the file visibly changed? Can you check that line endings are the same in both cases?

yeah UTF-8 should work, so that makes an encoding issue less likely.     ^^^ i kinda like thom's line of thought that it might be line ending issues...

Fix for this can be tracked here.


[QUERY] [Schema Registry] Client credential overloads

Library name and version
Azure.Data.SchemaRegistry
Query/Question
It seems quite common that HTTP based SDK client types provide constructor overloads of the following form
SdkClient(Uri endpoint, AzureKeyCredential credential)
SdkClient(Uri endpoint, AzureKeyCredential credential, SdkClientOptions options)
SdkClient(Uri endpoint, TokenCredential credential, SdkClientOptions options = default)
SdkClient(Uri endpoint, AzureSasCredential credential, SdkClientOptions options = default)

is there a reason the SchemaRegistryClient does only provide overloads for
TokenCredential and SchemaRegistryClientOptions but not for key credential or SAS credential?
Environment
No response

Hi @danielmarbach.   The Schema Registry service itself supports only AAD authorization.  There are no shared keys or SAS tokens that would be usable with AzureKeyCredential nor AzureSasCredential.    The REST API docs are minimal but allude to this.

ok Thanks!


python39Packages.osc-lib: 2.5.0 -> unstable-2022-03-09

this fixes tests for python 3.10
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
Result of nixpkgs-review pr 166008 run on x86_64-linux 1

10 packages built:

openstackclient (python39Packages.python-openstackclient)
python310Packages.osc-lib
python310Packages.python-heatclient
python310Packages.python-ironicclient
python310Packages.python-manilaclient
python310Packages.python-openstackclient
python39Packages.osc-lib
python39Packages.python-heatclient
python39Packages.python-ironicclient
python39Packages.python-manilaclient

Result of nixpkgs-review pr 166008 run on x86_64-linux 1

10 packages built:

openstackclient (python39Packages.python-openstackclient)
python310Packages.osc-lib
python310Packages.python-heatclient
python310Packages.python-ironicclient
python310Packages.python-manilaclient
python310Packages.python-openstackclient
python39Packages.osc-lib
python39Packages.python-heatclient
python39Packages.python-ironicclient
python39Packages.python-manilaclient


WISH: Position of text

It would neat if one could x-y adjust the position of the text, for instance, so that I can put my name tag at the bottom of my video stream.
PS. Thanks for this work

Wish granted! The text input is now a , so you can do a bunch of linebreaks before or after the text to position it up or down.

Thxs.


Ruler vcol inconsistently includes 'above' virtual text

Steps to reproduce

Save the following as test.vim

vim9script
:40vnew
setlocal number
setline(1, ['some text'])

prop_type_add('test', {highlight: 'ToDo'})
prop_add(1, 0, {type: 'test', text: 'Above', text_align: 'above'})
normal l

vim --clean -S test.vim and notice that the ruler shows 1,2-38
Press gk and notice that the ruler now shows 1,2 without the cursor moving

Expected behaviour
I didn't expect the ruler to show any difference as a result of gk on the first line.
I would expect the 'above' aligned virtual text to not affect the vcol in the ruler, so I would expect 1,2 even before gk is typed.  The ruler currently seems to normally include the 'above'  aligned virtual text, so I wanted to confirm that this is a bug before looking into how best to fix this.
Version of Vim
9.1.0193

Ah, I have seen this before with wrapped lines and virtual text. Currently the ruler change is the only indication that gk/gj does indeed do something, even so the cursor does not seem to move and one may have to type it several times until the cursor moves to the next screen line. However, I would agree, that this behaviour is rather annoying and I think the gk should directly skip to the next screenline. I guess if we make this work, it would also fix this ruler behaviour.


nuxt-generate: "Payload-extractor had to duplicate some nested routes data in extracted payload"

I'm getting lots of Payload-extractor had to duplicate some nested routes data in extracted payload warnings when using nuxt-generate-cluster's nuxt-generate.
With Nuxt's built-in nuxt generate I get no such messages at all.
EDIT: Sometimes I do. Couldn't figure out the rule yet.
Could you please elaborate a bit on this message and its impact on build time and size? Also let me know if there is something to optimise on my end.
nuxt.config.js:
const axios = Axios.create({
  baseURL: process.env.API_URL
})

module.exports = {
  <...>
  generate: {
    workers: 8,
    async routes() {
      const [
        { data: authors },
        { data: yearsIssues },
        { data: issues },
        { data: articles }
      ] = await Promise.all([
        axios.get(`/all_authors_contribution`),
        axios.get(`/all_issues_by_year`),
        axios.get(`/all_issues`),
        axios.get(`/articles`)
      ])
      const authorsRoutes = authors.map(entry => ({
        route: `/authors/${entry.author.author_id}`,
        payload: entry
      }))
      const yearsRoutes = yearsIssues.map(yearIssues => ({
        route: `/archive/${yearIssues.year}`,
        payload: yearIssues.issues
      }))
      const issuesRoutes = issues.map(issue => ({
        route: `/archive/${issue.feature || issue.year}/${issue.order_within_year}`,
        payload: issue
      }))
      const articlesRoutes = articles
        .filter(article => !!article.issue)
        .map(article => ({
          route: `/archive/${article.issue.feature || article.issue.year}/${article.issue.order_within_year}/${article.section.order_within_issue}/${article.order_within_section}`,
          payload: article
        }))
      return [
        ...authorsRoutes,
        ...yearsRoutes,
        ...issuesRoutes,
        ...articlesRoutes
      ]
    },
    <...>
  }
}

@kyrsquir this warning is not related to your case as long as you don't have nested routes (with <nuxt-child />, to render 2 routes at the same time: parent and child).
Sadly, I don't see any way to distinguish nested-routes and nested paths (ex. /archive/:id, /archive/:id/:id), so this warning appears in both cases.
I'll probably remove it to avoid confusion, thank you for writing to me about your concern.

I'm not using <nuxt-child/>, just the nested paths. So I shouldn't worry about this at all, great. Feel free to close the issue unless you want to keep it until you remove the warning.


cicd launch button and challenge question

The launch button is failing due to URL pattern change for CloudFormation service and user is redirected to Cloud Formation landing page
Add a challenge question

Not sure if this is still an issue, but it's working for me. please reopen if this continues to be a problem.


reward score is too high

I use rewardTrainer train my reward model in SHP dataset with 1 epoch, but reward score is very large, most are 60-70, other reward model outputs are centered around zero, with both positive and negative values.
Why is this the case? How can I resolve this?

Hi @Aida-yy
Thanks for the issue, on my side I am not sure how it is the case, you can normalize the scores to be centered around a certain value but from a previous offline discussion with @lvwerra I think this does not really matter in practice for PPO but I am not sure; cc @lvwerra @vwxyzjn

Thanks. maybe is not really matter in practice for PPO, however, I'm just curious why this would lead to such a situation. It seems other reward models don't incorporate normalization during training either. Also, my reward model gives almost identical scores to similar answers, so the reward model lacks discriminativity.

Ok I see, can you share how exactly do you retrieve your reward score in your case?

@younesbelkada Sure.  here is some code:
# modeling
outputs = self.model(
  input_ids=input_ids,
  attention_mask=attention_mask,
  position_ids=position_ids,
  past_key_values=past_key_values,
  inputs_embeds=inputs_embeds,
  use_cache=use_cache,
  output_attentions=output_attentions,
  output_hidden_states=output_hidden_states,
  return_dict=return_dict,
)
hidden_states = outputs[0]  # size = (B, L, E)
scores = self.score_head(hidden_states)  # size = (B, L, D)

end_scores = []
for i in range(input_ids.size(0)):
    end_index = attention_mask[i].nonzero()[-1].item()
    end_scores.append(scores[i, end_index])  # size = (D,)
end_scores = torch.stack(end_scores, dim=0)  # size = (B, D)

if not return_dict:
    return scores, end_scores

return ScoreModelOutput(
    scores=scores,  # size = (B, L, D)
    end_scores=end_scores,  # size = (B, D)
)
###########################################
# get reward score
batch = tokenizer(text, return_tensors="pt", padding=True, truncation=True, max_length=2048)

with torch.no_grad():
    reward = reward_model(
        batch["input_ids"].cuda(), attention_mask=batch["attention_mask"].cuda()
    ).end_scores.squeeze(-1)
    reward_score = reward.detach().cpu().tolist()

Thanks @Aida-yy , can you share how you have defined reward_model ?

Thanks @Aida-yy , can you share how you have defined reward_model ?

reward_model = LlamaRewardModel.from_pretrained(model_name_or_path)
where llamaRewardModel is # modeing

The latest observation is that this problem is caused by the training process. As my training steps keep increasing, the reward also keeps increasing. Until the loss stops changing.


Add retry logic for vSphere template validation

Sometimes vSphere template validations fail prematurely when checking that the template exists & that it has the required tags. Placing this validation in a retry could help avoid these premature failures

@taneyland What are the semantics for 'checking the template exists'?


Updated to the latest version 3.0.11, the error persists.

Updated to the latest version 3.0.11, the error persists.
optimize: {
    bundle: true,
    minify: false,
    target: 'es2018'
},

Originally posted by @Alkhir in https://github.com/snowpackjs/snowpack/issues/2318#issuecomment-762328795

Duplicate, moved your original over to troubleshooting discussions.


Autofix: The pull request description will be empty if we are going to merge a approved PR.

I have identified the issue in the clear-pr-merge-commit-message.tsx file. The problem was that the feature was being unloaded after the first run, preventing it from clearing the commit message field on subsequent openings. I've modified the code to remove the unloading logic, allowing the feature to run every time the merge commit message field is displayed.

[!CAUTION]
Disclaimer: This fix was created by Latta AI and you should never merge before you check the correctness of generated code!

This bug was fixed for free by Latta AI - https://latta.ai/ourmission

Thanks, but this is intentional: https://github.com/refined-github/refined-github/pull/6330
so the fix isn't enough

Thanks, but this is intentional: #6330
so the fix isn't enough

Thank you for your response. So will the problem not be resolved? The behavior from the previous version is more suitable for me. In the latest version, I have to manually write the commit log. It's quite inconvenient.

You can disable clear-pr-merge-commit-message


Build a realistic galaxy sample, with some typical SNR, shape, size

This issue is to track the definition of a fairly realistic galaxy sample we may wish to use for testing. Choices made here are being implemented in #34

So, here is my proposal here: a simple parametric dataset based on CFIS-like conditions:

pixel size 0.187
Moffat PSF with FWHM 0.65 arcsec, tiny intrinsic shear
CFIS depth, i.e. 24 mag  == 10 SNR
COSMOS 25.2 parametric galaxies
I've implemented a first prototype of this in #40, with an option to include a shear of 0.02 or not.

Looks like this:

@aguinot does that look good to you? As a toy reference galaxy sample? We of course have only 80000 cosmos galaxies but we can augment them as much as we want with random rotations/reflections + different noise realisations.

I think this is reasonable. We may want to cut some galaxies at mag > 24.5 since there are going to be dominated by noise. Regarding the sample size I am not too worry at the moment, I don't see the need for a larger sample given our current experiment. We can think more about that later.


Double "NotStarted" status throws error for RemainingTime

Reload an MBconfig file
Re-train
See error when this.TrainStatus == NotStarted and this.AzureTrainingStatus == NotStarted

Should return Start Train instead ?

I think that makes sense


Missing File Adjustment.hpp

Using a brand new clone of the repos, I get the following error in CMake:
CMake Error at CMakeLists.txt:114 (add_library):
Cannot find source file:
/home/onilink/Desktop/sfGUI/Source/include/SFGUI/Adjustment.hpp

Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
EDIT: Completely deleting the repo and recloning fixed it. Weird.

Perhaps you've set your source directory wrong in CMake? CMake searches for ${PROJECT_SOURCE_DIR}/include/SFGUI/Adjustment.hpp meaning the include/ directory should be in the directory you set as source directory.


Lesson #9 Comments

My final plot did not match the final plot given on the page. Maybe I did something wrong?

Also, "Closing Remarks" is blank. It also seems like an odd place to have it since this is part of the at-home exercises.
Lastly, in general, the content in the "Exploring PRDM16-regulated enhancer binding in cortical neurons" section seemed like we were guiding the students down a very difficult path that we just so happened to know the answer to. How should students find these ENCODE projects to download on their own? I came away with the impression from that section that "This is great that I know this can be done, but I have little confidence in myself that I could find these datasets and replicate this type of analysis." I'm not sure the best approach here, but I thought I would give my feedback.

The code to create the plot has now been fixed.
The organization of the lesson has changed and maybe resolves the issue you describe? The lesson is not meant to be a tutorial about getting data from ENCODE just a note to say that when you have questions but don't have time or money for follow up experiments - public data is a solution. Hopefully that message is now clear


[ADDITION] SMSPool (Complete)

Category
Essentials
Listing Name
SMSPool
Listing URL
https://smspool.net
Listing Icon
https://www.smspool.net/android-chrome-512x512.png
Listing Description
Protect your identity today with our one-time use or rental phone numbers.
GitHub repository
https://github.com/smspool
ToS;DR ID
10033
Is Open Source?

[ ] Yes, it's open source

Security Audited?

[ ] Yes, it's been security audited

Accepts Anon Payment?

[X] Yes, accept anonymous payment

Justification and Further Info

Add an option for TOR maybe? Since we support TOR.
https://github.com/Lissy93/awesome-privacy/issues/200

YAML Content for Addition
- name: SMSPool
  url: https://smspool.net
  icon: https://www.smspool.net/android-chrome-512x512.png
  description: Protect your identity today with our one-time use or rental phone numbers.
  github: https://github.com/smspool
  tosdrId: 10033
  iosApp: https://apps.apple.com/us/app/smspool/id6474617801
  androidApp: https://play.google.com/store/apps/details?id=com.smspool.app&hl=en_US
  subreddit: smspool
  acceptsCrypto: true

This ticket was submitted via awesome-privacy.xyz/submit
Final Checklist

[X] I confirm that I've read and followed the Contributing Guide
[X] I agree to follow the Code of Conduct
[X] I have clearly declared any affiliation I may have with this service

Already added via https://github.com/Lissy93/awesome-privacy/pull/248


Code clean-up for deprecated code-paths

Removed code paths which were deprecated a long
time back.
Refactored tests to not use deprecated code path

Fixes # .
Did you remember to?

[ ] Add test case(s)
[ ] Update CHANGES.txt

We encourage pull requests that:

Add new features to TestNG (or)
Fix bugs in TestNG

If your pull request involves fixing SonarQube issues then we would suggest that you please discuss this with the
TestNG-dev before you spend time working on it.

@juherr - As promised, here's the PR that gets rid of almost all of the deprecated code from the codebase. I have just spared a couple of methods from TestNG.java because

One has a dependency on the IntelliJ plugin.
One has a dependency on the surefire plugin.
One has a dependency on gradle and removal of it causes the build to fail.

Please help take a look


Unable to reset/delete account

Hey!
I am facing the situation that I apparently am unable to reset my account.
There's a device (Android phone, 1st device, registered just yesterday, only device so far) still connected and this keeps me from starting all over with a new set of keys and another passphrase.
Even though I am pretty certain that I do remember my passphrase correctly, the system won't let me sign in. It might be though, that I mistyped it two times in an identical manner (thick fingers, small glass screen) and thus I am denied access to the account.
After following the path to reset the passphrase / start anew, the system is telling me:
"You can't reset your passphrase, since you have active device or paper keys. The following devices all have the power to change your passphrase.

Mobile Device
If you have lost all these devices, please contact"
After verifying myself on Twitter, I did sign out.
Well, I have not exactly lost the device, but can't log on anymore as I can't make it post the log in screen.

I uninstalled the app, hoping that this'd remove the "signed in" status somehow and reinstalled it and now seem to be completely screwed. In the app, I can't even try to log in using the passphrase: "There was an error provisioning
You can't authorize by passphrase, since you have established device or paper keys. You can go back and pick a device or paper key, or reset your account entirely."

I'm then told that "That's unfortunate!" (Well, yes. It somehow is.)
I enter my account name again and press "Reset Password" which then presents me with the information from above that I can't do this as I have active device or paper keys and the mobile device still connected.
Anything I'm doing wrong or am maybe missing?
Is there any way to get this odd status cleaned up so that I can start over?
Thanks a lot in advance for any suggestion / help!

What's your keybase username?

thingfulneeds

Hey @maxtaco I'm running into this same issue I put in a log: 020d470dbe985347b089341c
my username is nisarga
Thanks

@nisargap what screen did you see?

Same ones the original poster saw - but we got it resolved over email, thank you again! :+1:


Adding new environment to ePYMARL

Hello,
I was wondering whether there are any instruction about adding new environments (compatible with gym interface) to this library?

Hi! Thanks a lot for raising this.
We just published a big update to EPyMARL including lots of new features (including training in non-common-reward games, move to gymnasium from deprecated gym, weights and biases logging). As part of this, we also describe in the documentation how to register and run experiments in own environments. Note that this uses the newly integration gymnasium library in replacement of the deprecated gym we previously used. If you'd like to integrate a new environment that is based on gym, I recommend to take a look at the compatibility wrappers of gymnasium here: https://gymnasium.farama.org/content/gym_compatibility/
I close this issue for now since there is new documentation on how to do this, but let us know if there are any outstanding issues!


Proposal: autofocus attribute on turbo frames

I am using a custom renderer with Turbo Frames (specifically morphdom) which manages maintaining focus. However, if any element in the new set have an autofocus attribute they will steal focus after the render due to the behavior of FrameRenderer:
https://github.com/hotwired/turbo/blob/da647a63950c6f834fb0fbcf9315bee2be408cbe/src/core/frames/frame_renderer.ts#L42-L52
Proposal is to add an autofocus attribute to the turbo-frame element (with a default of true) – similar to way you can control the auto scrolling behavior:
https://turbo.hotwired.dev/reference/frames#html-attributes

Hi @mkdynamic, this is not possible. You can do scroll to a Turbo frame, but a Turbo frame is not focusable, so it doesn't make much sense to do this. Closing for now


Build fails (macOS) with large groupid

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
When building on macOS (with m1 processor) the following error was seeing trying to build:
Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:3.3.0:single (default) on project open-metadata-assemblies: Execution default of goal org.apache.maven.plugins:maven-assembly-plugin:3.3.0:single failed: group id ‘2086019169’ is too big ( > 2097151 ). Use STAR or POSIX extensions to overcome this limit -> [Help 1]

Expected Behavior
The build should work ok
Steps To Reproduce
*Use uid/group ids greater than 2097151

Build with maven

Environment
- Egeria: 3.2-SNAPSHOT
- OS: MacOS Big Sur

Any Further Information?
No response

Some info on this being seen with the plugin at https://stackoverflow.com/questions/33819438/maven-assembly-plugin-group-id-1377585961-is-too-big-error
maven plugin https://maven.apache.org/plugins-archives/maven-assembly-plugin-2.6/assembly-mojo.html
A long description of tar formats at gnu - https://ftp.gnu.org/old-gnu/Manuals/tar-1.12/html_node/tar_117.html
On my macOS environment, the default tar is BSD. gtar is 1.34 and defaults to gnu format. Also on ubuntu 20.10, gtar is 1.34 & defaults to gnu format creation.

Posix format would seem to be the most standard and avoid this issue. The risk is gnu tar cannot unpack - will test, assuming use of current tools


[minor] change person in cabinet update response error

https://github.com/edenlabllc/ehealth.api/issues/2665

Coverage remained the same at 90.827% when pulling 2d4975e53384f1ff9a9e5b2e2bd9c9a37e89b70f on change_response_code#2665 into fdf9879883db44dabd8dc3fca93e17c40eb826cd on master.


How can I rebind TAB/SHIFT+TAB to CTRL+J/CTRL+P and vice versa?

[x] I have read through the manual page (man fzf)
[x] I have the latest version of fzf
[x] I have searched through the existing issues

Info

OS

[x] Linux
[ ] Mac OS X
[ ] Windows
[ ] Etc.

Shell

[ ] bash
[ ] zsh
[x] fish

Problem / Steps to reproduce
How can I swap binds for  multiple select with next/previous? It's very unergonomic for me to use ctrl+p/j, and ctrl+k doesnt work for "up"

So you read through the man page. Found no clue?


Fix issue #68 per monnand

@monnand
"Channel resChan passed to function resultCollector() is actually self.resultChan, see line 448. Closing this channel will affect other goroutines reading from/writing to this channel since it is shared between goroutines. I checked the code again, I think the memory leak bug is actually caused by un-closed req.resChan. If I'm correct, then it means you will have lots of goroutines waiting in function waitResults() because the channel resChan passed to this function is never closed."
Revert "Merge pull request #60 from or-else/patch-1"
This reverts commit 3d726e38ccdb782e1aed2991cb09a595c5242898, reversing
changes made to 1948046c27947d1a48185019b58630d878cd51b1.

Thanks, @mishan !


Allow Spryker database scripts to run with a non-privileged PgSQL user

Are you okay with this @andytson-inviqa ?

I think we need to test this out in docker with a non-privileged user who's db is deleted

Looks okay from @dantleech 👍


Mixed Precision Support

Great work! When I was taking a look at your code and your example, I saw no mention of mixed precision. Does the current implementation of SAM and GSAM support torch.cuda.amp training ?

Hi, thanks for asking. Personally I'm not very familiar with mixed precision. I think using the autocast in PyTorch should be feasible (https://pytorch.org/docs/stable/amp.html#torch.autocast), if all we need to do is adding with autocast():  to here. Please take a try and let me know if it works, so that if it works I can add it as an option later.
BTW, do you have experience on how to make each worker gets its gradient and weight perturbation, as discussed in the readme "Potionally unresolved issues"? That's one of the key factors to make SAM-family work.

Thank you for your response but even though mixed precision is achievable only by adding with autocast() that is not the recommended way in Pytorch. According to the Pytorch docs, https://pytorch.org/docs/stable/amp.html#gradient-scaling is to be used in mixed precision training. However, I cannot see how to use scaler.step with GSAM because amp.GradScaler does not currently support optimizers with closure.
As for synchronization,  I am not sure if Pytorch currently support multi-gpu sync with DataParallel. DistributedDataParallel seems like the only option. If you believe it would help, there are github repositories that implement SyncBatchNorm for DataParallel like this one (https://github.com/vacancy/Synchronized-BatchNorm-PyTorch).
Furthermore, I could not find your Jax code. I am also using Jax, and would appreciate using this on my Jax projects as well. Isn't it open source, and if not do you plan to release it ?

Hi, thanks for the info. The set_closure ultimately creates a function self.forward_backward_func so that self.forward_backward_func() gets the gradient of parameters. I think you can put scaler.scale() and scaler.unscale() here to get gradients with amp. Note that self.forward_backward_func() is called twice here and here, so I guess some caution is required.
For sync, sorry what I actually want is "unsync". Ther perturbation <img src="https://latex.codecogs.com/svg.latex?&space;\Delta{w_t}=\rho_t\frac{\nabla{f}}{\vert\vert{\nabla{f}}\vert\vert}" requires each worker has its own value, all operations require no_sync except the last step so all workers have the same weights after optimizer.step.
For jax code, since it was during my intern at Google last year, so it really depends on Google policy. It's actually much easier in jax than PyTorch, because it's very natural to use "unsync gradients" and "per-worker perturbation" in jax. I'll talk with my supervisor regarding the release of code, and see if it's possible to re-write a public version by my memory.

Thanks for the directions for amp integration. Would you be willing to review and merge a PR on this if I implement correct grad scaling and finite grad checking ?
As for the desired unsync for nn.DataParallel, I do not believe that it is possible because nn.DataParallel implements multi-gpu distribution on module level meaning that once each worker produces the outputs. In the most basic sense, it is a wrapper that does scatter + gather for each worker and then does the backward pass on the main worker.
From (https://pytorch.org/docs/master/generated/torch.nn.DataParallel.html#torch.nn.DataParallel):
In each forward, module is replicated on each device, so any updates to the running module in forward will be lost. For example, if module has a counter attribute that is incremented in each forward, it will always stay at the initial value because the update is done on the replicas which are destroyed after forward. However, [DataParallel](https://pytorch.org/docs/master/generated/torch.nn.DataParallel.html#torch.nn.DataParallel) guarantees that the replica on device[0] will have its parameters and buffers sharing storage with the base parallelized module. So in-place updates to the parameters or buffers on device[0] will be recorded.

Cool, thanks a lot for the help! I guess in order to get unsynced grad, we will need DistributedDataParallel rather than DataParallel. I think Jax is equivalent to DistributedDataParallel by default, I'll leave a message here if I'm allowed to share original jax code.
I made a few changes with the scheduler class and train.py (in order to make the example code match the readme file in terms of rho_scheduler and lr_scheduler), but they should not affect GSAM class.

Yes, jax.pmap is equivalent to DistributedDataParallel. I am sending a PR then for mixed precision support ?

Cool, thanks a lot. BTW, I wrote a PR in jax on the core code for gsam https://github.com/google-research/vision_transformer/pull/169 according to my memory. I'm not at Google now so would not be possible to re-run experiments using this PR, you can check it out as a reference. A reminder is that google-research/vision-transformer does not provide the full code to train a ViT from scratch, which is different from our paper setting of training from scratch.

Thanks a lot for providing a reference : ) ! Before sending a PR, I have a few questions. Normally, GradScaler ignores steps when there are NaN values in the gradients. Since SAM variants have 2 updates, is it safe to ignore the whole step if there are NaN values after the first update ? Furthermore, GradScaler scales gradients by some constant that is updated in each step and the update of that constant is determined by the user (usually right after scaling the loss). When should the gradient scaling factor be updated in each of the 2 updates or after the 2nd one ?

I think GSAM should ignore the whole step if either 1st or 2nd backward fails, that's because it requires a linear projection operation of the two gradients, and one NAN would make the final output gradient invalid.
I think the best way is to scale grad back for each of the two steps, so that the inner product / projection of the two gradients are meaningful. Maybe within the get_grad function, put both scale and unscale, so that each call of get_grad gets the correct gradient. BTW, if ``unscale``` is applied on the gradient, does it need to applied on the optimizer again?

Please take a look at #3  . I could not test this extensively and honestly I do not know how much this would affect performance. We need to test this extensively. Do we need to explicitly check if the model parameters in the scaler are the same with the ones given to SAM? What are other possible edge cases that need to be eliminated.

Hi, thanks for the contribution. I think we would need some basic test to determine if we deal with gradscaler in the correct way. Maybe the check can be done in a test but not in the function itself.
To reduce to SAM, you can set rho_max=rho_min and alpha=0

Okay thanks : ) . Currently, I am unable to run large scale training so if you test it, please keep me updated : ) .


Adding to Conda Forge

Hi!
We are adding your code to DeepChem.
In order to get a single conda installer we have to be able to install pyGPGO via conda.
Do you have any issues with us creating a conda install on conda-forge?
Afterwords you would be able to install pyGPGO via
conda install -c conda-forge pyGPGO

Hello, @lilleswing
Fine by me. Let me know when it's available.

Hi! I've seen that you're using the latest version updated to PyPI (0.1.0.dev1).
https://github.com/conda-forge/staged-recipes/pull/3458/files
This version was still a very early and I'd advise not to use it. Also, several dependencies such as cma are no longer required.
I have updated the project on PyPI to the latest version (0.3.0.dev1) so that there are no issues, but you may still need to correct version numbering and dependencies in your recipe.

Hi! Any status update on this?


'source: config' errors for S3 resource

Policy snippet
  - name: blahblah
    resource: s3
    region: us-east-1
    source: config
    ...

Errors:
2017-10-22 11:25:17,078: policyrun:DEBUG Running policy:blahblah account:acct1 region:us-east-1
2017-10-22 11:25:44,412: custodian.resources.s3:ERROR Exception getting resources from config
 u'redirectsAllRequestsTo'
2017-10-22 11:25:44,414: custodian.output:ERROR Error while executing policy
Traceback (most recent call last):
 File "/usr/local/custodian/site-packages/c7n/policy.py", line 305, in run
  resources = self.policy.resource_manager.resources()
 File "/usr/local/custodian/site-packages/c7n/query.py", line 395, in resources
  resources = self.augment(self.source.resources(query))
 File "/usr/local/custodian/site-packages/c7n/query.py", line 305, in resources
  results.extend(f.result())
 File "/usr/local/custodian/site-packages/concurrent/futures/_base.py", line 422, in result
  return self.__get_result()
 File "/usr/local/custodian/site-packages/concurrent/futures/thread.py", line 62, in run
  result = self.fn(*self.args, **self.kwargs)
 File "/usr/local/custodian/site-packages/c7n/query.py", line 271, in get_resources
  results.append(self.load_resource(revisions[0]))
 File "/usr/local/custodian/site-packages/c7n/resources/s3.py", line 152, in load_resource
  method(resource, v)
 File "/usr/local/custodian/site-packages/c7n/resources/s3.py", line 343, in handle_BucketWebsiteConfiguration
  'HostName': item_value['redirectsAllRequestsTo']['hostName'],
KeyError: u'redirectsAllRequestsTo'

2017-10-22 11:14:17,252: policyrun:DEBUG Running policy:blahblah account:acct1 region:us-east-1
2017-10-22 11:14:40,089: custodian.resources.s3:ERROR Exception getting resources from config
 u'CloudFunctionConfiguration'
2017-10-22 11:14:40,092: custodian.output:ERROR Error while executing policy
Traceback (most recent call last):
 File "/usr/local/custodian/site-packages/c7n/policy.py", line 305, in run
  resources = self.policy.resource_manager.resources()
 File "/usr/local/custodian/site-packages/c7n/query.py", line 395, in resources
  resources = self.augment(self.source.resources(query))
 File "/usr/local/custodian/site-packages/c7n/query.py", line 305, in resources
  results.extend(f.result())
 File "/usr/local/custodian/site-packages/concurrent/futures/_base.py", line 422, in result
  return self.__get_result()
 File "/usr/local/custodian/site-packages/concurrent/futures/thread.py", line 62, in run
  result = self.fn(*self.args, **self.kwargs)
 File "/usr/local/custodian/site-packages/c7n/query.py", line 271, in get_resources
  results.append(self.load_resource(revisions[0]))
 File "/usr/local/custodian/site-packages/c7n/resources/s3.py", line 152, in load_resource
  method(resource, v)
 File "/usr/local/custodian/site-packages/c7n/resources/s3.py", line 287, in handle_BucketNotificationConfiguration
  d.setdefault(self.NotifyTypeMap[n['type']], []).append(ninfo)
KeyError: u'CloudFunctionConfiguration'

2017-10-22 10:59:24,309: policyrun:DEBUG Running policy:blahblah account:acct1 region:us-east-1
2017-10-22 10:59:28,550: custodian.resources.s3:ERROR Exception getting resources from config
 'NoneType' object is not subscriptable
2017-10-22 10:59:28,551: custodian.output:ERROR Error while executing policy
Traceback (most recent call last):
 File "/usr/local/custodian/site-packages/c7n/policy.py", line 305, in run
  resources = self.policy.resource_manager.resources()
 File "/usr/local/custodian/site-packages/c7n/query.py", line 395, in resources
  resources = self.augment(self.source.resources(query))
 File "/usr/local/custodian/site-packages/c7n/query.py", line 305, in resources
  results.extend(f.result())
 File "/usr/local/custodian/site-packages/concurrent/futures/_base.py", line 422, in result
  return self.__get_result()
 File "/usr/local/custodian/site-packages/concurrent/futures/thread.py", line 62, in run
  result = self.fn(*self.args, **self.kwargs)
 File "/usr/local/custodian/site-packages/c7n/query.py", line 271, in get_resources
  results.append(self.load_resource(revisions[0]))
 File "/usr/local/custodian/site-packages/c7n/resources/s3.py", line 152, in load_resource
  method(resource, v)
 File "/usr/local/custodian/site-packages/c7n/resources/s3.py", line 257, in handle_BucketLifecycleConfiguration
  rr['Filter'] = self.convertLifePredicate(r['filter']['predicate'])
 File "/usr/local/custodian/site-packages/c7n/resources/s3.py", line 262, in convertLifePredicate
  if p['type'] == 'LifecyclePrefixPredicate':
TypeError: 'NoneType' object is not subscriptable

we've got a few good unit tests here but it looks like their focused on full coverage semantics, its clear we need a few more to cover some of the delta cases. The s3 config representation requires the most transformation of all the config support resources.

i've been struggling to reproduce this or find an extant bucket that can trigger, lets chat to see if we can find a good test case.

spoke too soon, found one for for the first case.

wasn't able to find the lambda function config issue, but added an appropriate remapping, let's chat if you have an extant example, that one is a bit odd in that its relying on a historical capture artifact before config switched out to the newer api, so its not something that can be reproduced with a newer bucket.


Added Ukrainian translation

ISO 639-1 code for Ukrainian is in fact just uk. Using uk_UA would also be appropriate as a locale name, but is it necessary?

Dunno :) Depends if there are different flavors of Ukrainian languages ? (like pt_PT and pt_BR, or fr_FR and fr_CA)

UA is the only suffix I've ever seen for uk, including specific checks in the locale lists for things like Moodle just now.


Behaviour when complete service outage

Hello!
Does Sloth have a mechanism to include total service outages?
For example in a K8s deployment the pods might not exist at all or be excluded from the load balancer due to livenessProbe failing, thus the availability for the duration of incident being 0%.
I was trying to include such mechanism in the sli.events queries, but the 0% availability will be propagated to all windows and mess the SLI burn ratio (e.g. windows for 30d will be 0%, meaning a huge burn ratio).
Thanks!

Hi @mihaidraghici98!
Sloth doesn't support that :/
I would suggest creating another SLO based on the Prometheus up metric. Even more, maybe you could play with the Prometheus target SLI plugin.
Best,


lru_cache leaks memory when used with class methods

Use of functools.lru_cache on class methods can lead to memory leaks.
See this SO post for more info:
https://stackoverflow.com/questions/33672412/python-functools-lru-cache-with-instance-methods-release-object
This seems to be the most straightforward way to work around it:
https://stackoverflow.com/a/68550238

The downside of the proposed solution is that mypy hates it and docstrings do not get updated.


how variables like tenancy_ocid are passed automatically to ORM Stacks

Hello, I'm curious about the automatic passing of certain variables to stacks without explicit definition. For instance, could you explain how variables such as "tenancy_ocid" are handled in this process? Thanks in advance!

nvm, figure it out


AppService: Deployment of uber JAR files (like Spring Boot)

This PR has two major features: #168

Deployment of JAR files to Web App (Windows) with a web.config generated on the fly.
deploymentType no longer required to set. When not set, plugin will look at packaging to decide (usually, it is WAR or JAR).

Codecov Report

Merging #167 into develop will decrease coverage by 1.24%.
The diff coverage is 0%.

@@             Coverage Diff             @@
##           develop     #167      +/-   ##
===========================================
- Coverage    60.56%   59.31%   -1.25%
===========================================
  Files           50       51       +1
  Lines         1567     1600      +33
  Branches       171      174       +3
===========================================
  Hits           949      949
- Misses         558      591      +33
  Partials        60       60

Impacted Files
Coverage Δ

.../maven/webapp/handlers/FTPArtifactHandlerImpl.java
0% <ø> (ø)
:arrow_up:

...a/com/microsoft/azure/maven/webapp/DeployMojo.java
0% <ø> (ø)
:arrow_up:

...crosoft/azure/maven/webapp/AbstractWebAppMojo.java
0% <0%> (ø)
:arrow_up:

.../maven/webapp/handlers/JarArtifactHandlerImpl.java
0% <0%> (ø)

...zure/maven/webapp/handlers/HandlerFactoryImpl.java
0% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ab65c1a...64a519f. Read the comment docs.

@jdneo hey Sheng, thanks for the review. I pushed the changes. Pls take a look again.

@brunoborges Cool, thank you for updating. Some more comments. 😄

Should be good now @jdneo  :)

@brunoborges  Yes it looks fine to me. Just one place about the <include>**/*</include> could you also take a look?
About the schedule: since the service side will add Java SE support for Linux at the end of this week. We are planning to release a new version of Maven Web App plugin at early next week to support Java SE image.
Then we will look back to the Jar deploy, which may contain several further works:

Merge this PR
Re-organize the deploy logic, to make sure war, jar & ftp can works for all kinds of Web Apps (Windows, Linux, Containers)
Add unit test
Add integration test
Update documents & README
Run tests & verification

The ETA for adding Jar deploy will before the end of June. Is this looks good to you?

Yes, end of June looks fine! Until then I can use a local version for my demos.
Regarding <include>**/*</include>, we can be specific to which files (app insights config, and the web.config.template), but I see no issue with the 'include all' approach, since this is our own code and we know which files will be included.

@brunoborges I made some changes. Please take a look

@brunoborges Agree that we need to make the setting to be OS agnostic. I think the problem is because there is a gap for jar file support between Linux Web App and Windows Web App.
Windows Web App needs a hack: using web.config.
While for Linux Web App, what user needs to do is just upload a jar file named "app.jar", then server side will load it automatically. If user wants to customize his Java property, he can add JAVA_OPTS to application settings to achieve that. If he wants to do more customization, he can upload a startup script, set INIT_SCRIPT pointing to that file. That looks more suitable for FTP deployment to me.
For now, can we just remove the jarCommand setting in the plugin? We just use the default command, if any user request such kind of feature, we can revisit it and see how can we add it to the configuration.
Does that make sense?

It does. Mind to push the change?

Sure, I'll update it.

@brunoborges @SummerSun @Eskibear Please help review the newest codes and let me know if anything needs update. 😃

@Eskibear mind to review/approve again? I ended up merging @jdneo's changes and pushed again to my repo (which triggered a PR review)


Noticed some depreciation warnings on a clean pm install

npm WARN deprecated<EMAIL_ADDRESS>Please use postcss-loader instead of autoprefixer-loader
npm WARN deprecated<EMAIL_ADDRESS>Replaced by bootstrap-loader. Please upgrade.
npm WARN deprecated<EMAIL_ADDRESS>Deprecated.

Hi roderik, thanks for reporting. I am aware of that warning. Think it is related to webpack, which I am not that familiar yet. Though it is in my todo list to clean up as soon as I can. Welcome any PR as well.

Made the changes on a4526e3 and going to close this issue.
NOTE: css-list warning could not be solved because it is a dependency of font-awesome-webpack, which has not been updated by the author.


sequence/fmap

Should that always just be mapM? e.g. sequence (fmap f xs)

If you want to maintain the Monad constraint, then mapM it is. I'd rather have it generalized to traverse, but maybe you want to save that for sequenceA . fmap

To me, that sounds like two rules - you want the above rule, and also mapM => traverse, which is certainly plausible, but still not something I'm ready to add by default just yet.

Turns out we already had the rule - warn: {lhs: sequence (fmap f x), rhs: traverse f x}, so just adding the one mentioned originally.


Column not found 'items.carts_id'

Hi,
I have this problem when I use {!! $cart->count !!}. Why?
This is the error:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'items.carts_id' in 'on clause' (SQL: select sum(items.quantity) as itemCount, sum(items.price * items.quantity) as totalPrice, sum(items.tax * items.quantity) as totalTax, sum(items.shipping * items.quantity) as totalShipping from carts inner join items on items.carts_id = carts.id where carts.id = 8 limit 1) (View: /var/www/theshop/modules/Shopping/Resources/views/cart/cart.blade.php)
Thanks!

carts_id looks odd.

In the config, I change the name of table. By default, the name is "cart", but I change by "carts"

Did you changed the name of column in table items as well?
On Mar 24, 2016 5:38 PM, "Mathias88"<EMAIL_ADDRESS>wrote:

In the config, I change the name of table. By default, the name is "cart",
but I change by "carts"
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/amsgames/laravel-shop/issues/41#issuecomment-201074217

In the table items, the name of column is cart_id.

Your query for some reason is looking for carts_id instead of cart_id.
Weird
On Mar 25, 2016 11:43 AM, "Mathias88"<EMAIL_ADDRESS>wrote:

In the table items, the name of column is cart_id.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/amsgames/laravel-shop/issues/41#issuecomment-201382653


Is there a way to finetune RPN during transfer learning?

Yes, the offline RPN we use is the exact module in Detectron2. So you simply enable gradient updating for this RPN and then attach the regular RPN loss to train it.


MoveIt mesh_filter only adds MESH collision objects, ignores shapes from primitives

Is your feature request related to a problem? Please describe.
Adding self-filtering for your robot using mesh_filter only removes links that use a mesh object for collision.
See https://github.com/moveit/moveit/blob/675495426dcceb18453ab0a689f5fd8319248998/moveit_ros/perception/mesh_filter/src/depth_self_filter_nodelet.cpp#L192
Describe the solution you'd like
mesh_filter should convert shape primitives to MESH and remove them from the depth image. The tutorial should also be updated to run (the ur5_description launch file is out-of-date).
Describe alternatives you've considered
Other 3rd party libraries exist (such as realtime_urdf_filter or robot_body_filter) but are slow and/or require additional dependencies.
Additional context
Here's our robot (Bravo 7 from Reach Robotics that has only the gripper modeled using a STL file - all other collisions are primitive shapes:

And here's our robot when I remodel all the collision to use STL files:

Draft PR that addresses the issue is here: https://github.com/moveit/moveit/pull/3675


pip does not update pyparsing to >= 3

When running pip install unified-planning, pip does not upgrade pyparsing to >=3:
# pip install unified-planning
Collecting unified-planning
  Downloading unified_planning-0.5.0-py3-none-any.whl (339 kB)
     |████████████████████████████████| 339 kB 2.4 MB/s
Collecting networkx
  Downloading networkx-3.0-py3-none-any.whl (2.0 MB)
     |████████████████████████████████| 2.0 MB 36.8 MB/s
Requirement already satisfied: pyparsing in /usr/lib/python3/dist-packages (from unified-planning) (2.4.6)
Installing collected packages: networkx, unified-planning
Successfully installed networkx-3.0 unified-planning-0.5.0

My system is Ubuntu 20.04 and pyparsing 2.4.6 is not installed via pip, but as a normal Debian package (via apt).
Adding --upgrade doesn't help:
# pip install --upgrade unified-planning
Requirement already up-to-date: unified-planning in /usr/local/lib/python3.8/dist-packages (0.5.0)
Requirement already satisfied, skipping upgrade: networkx in /usr/local/lib/python3.8/dist-packages (from unified-planning) (3.0)
Requirement already satisfied, skipping upgrade: pyparsing in /usr/lib/python3/dist-packages (from unified-planning) (2.4.6)

From pip install --help:
  --upgrade-strategy <upgrade_strategy>
                              Determines how dependency upgrading should be handled [default: only-if-needed]. "eager" - dependencies
                              are upgraded regardless of whether the currently installed version satisfies the requirements of the upgraded
                              package(s). "only-if-needed" -  are upgraded only when they do not satisfy the requirements of the upgraded
                              package(s).

The default is only-if-needed, so pip believes that pyparsing 2.4.6 satisfies the requirements of unified-planning!
One of the following works and finally upgrades pyparsing to 3.0.9:
pip install --upgrade --upgrade-strategy eager unified-planning
# or, more clearly:
pip3 install 'pyparsing>=3'

My question is: Is this just pip being stupid, as usual, or is there anything you can do in this repo to make pip realize that this package has, in fact, a dependency on pyparsing>=3?
Related issues:

#253
#259

@mintar @alexander-sung thanks for this bug report!
This commit e44ded8a440bff14bca10c50bf7d92d646b098c9 should solved the problem.


[WFLY-17803] Include a stub elytron subsystem in appclient.xml

https://issues.redhat.com/browse/WFLY-17803
Follow-up to #16662

Thanks @fjuma


Compressor and decompressor window_bits set to 15 leads to periodically truncated data

I'm trying to transparently compress response data between services on my (Istio) mesh.
To do this, I have a compressor filter on destination services and a decompressor on the source services.
I discovered that setting window_bits to 15 on both of them results in periodically truncated data.  This script loops through the same call and you can see how the data was truncated for one of them:

This does not happen if i set the compressor window bits to 14 or lower.
The documentation on https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/compression/gzip/decompressor/v3/gzip.proto.html#extensions-compression-gzip-decompressor-v3-gzip says

The decompression window size needs to be equal or larger than the compression window size

So "larger" seems to be true, but "equal to" - not so much.
Repro steps:
Here are two gists for the two filters:

https://gist.github.com/Stono/6385d379c7e24ac32fcf96e1310e7227
https://gist.github.com/Stono/33820818ad2423abd8abd3450dcb0ede

cc @kbaichoo @mattklein123

Hmm, from the https://www.zlib.net/manual.html it seems like those parameters should be ok.
Do you have any Envoy stats, or logs that occur on decompression showing any errors with your reproduction?

Hey sorry for the delay, as i've been coming back to this in bits and bobs.
No errors in the envoy logs, everything looks "normal" at debug level.
I've tried all sorts of different configurations in case it was some other weird interaction with things we're doing and haven't found anything at all.  The only thing that "fixes" it is a window_size of <= 14.
Not sure where else to go with it to help you debug!

Just realised i was logging from the compressor side there, and it's the decompressor side that would likely show any errors.  Will have another stab tomorrow.

@Stono we just ran into a problem that is similar to this. Most gzipped requests are fine, but then some are truncated. We have our window_bits set to 15 as well. Did you manage to grab those decompressor logs?

Nope, and I haven't been able to recreate it since!

Strange... I'm also confused how this would happen. We applied the compressor globally using an EnvoyFilter and had no issue for hundreds of our endpoints, but one endpoint gave back truncated responses. Removing the filter solved the issue, but now we're back to a lot of uncompressed responses.


FIX: Ensure helper or post exist before decorations

This PR adds compatibility with Category sidebars. Since the category sidebar component adds a decorated post widget in the topic list view, the table builder must ensure a helper and post exist before attempting to make decorations.
Thus, this PR adds a check for if either the widget helper or post are present before attempting to decorate the post.

This PR adds compatibility with Category sidebars. Since the category sidebar component adds a decorated post widget in the topic list view, the table builder must ensure a helper and post exist before attempting to make decorations.

I kind of feel like the discourse-category-sidebars is the culprit here instead of this plugin. From an API perspective, it is not ideal that plugins have to check that the widget helper or post exists.


Client Randomly freezes.

Hello people.
I recently got myself a used Lenovo e450 laptop.
Intel i5 4200m CPU
6bg ram
I'm able to pull 50 fps on the client but it would randomly freeze.
mostly when I change focus, but sometimes it also happens while I'm solely playing the game.
Any assistance would be appreciated, as I have tried a few OS but the issue persists.
I've tried the 32 and 64 bits version and the client has randomly frozen on both.
I attached a file of the Client Logs found on the runelite
freeze-log.txt

Please do not request support for non-RuneLite clients.

This also happens with the Runelite client.
I tried OpenOSRS as an alternative.
Apparently, both clients share the same log folder, I will do deeper research and share the correct log then.
Many thanks for your time.


New version: QWTwPlot v1.1.0

Registering package: QWTwPlot
Repository: https://github.com/ig-or/QWTwPlot.jl
Created by: @ig-or
Version: v1.1.0
Commit: ce097f3ebc9ad14333c70502a1bbd181248ad41c
Reviewed by: @ig-or
Reference: https://github.com/ig-or/QWTwPlot.jl/issues/4#issuecomment-528069853

closing as stale.


Remove git pull

We are not using git so this is unnecessary

Why is this still unmerged, is there something I am not aware of?

Git pull is required with the current deployment technique.


ServerPilot: PHP 7.0.3, 5.6.18, and 5.5.32

Thank you! If you happen to know of any phpinfo() URLs for this host could you provide them here? That would stop you needing to send PRs for patch version updates. :)
Example: php56.hosteurope-infos.de/phpinfo.php

Definitely, I'll add phpinfo() URLs. I hadn't noticed that was an option.

Thanks! I snuck it in. I’ve only been reminding people when they send patch PRs :)
--
Phil Sturgeon
I talk about turtles, bikes and code over here philsturgeon.uk
From: Justin Samuel<EMAIL_ADDRESS>Reply: philsturgeon/phpversions.info<EMAIL_ADDRESS>Date: March 4, 2016 at 12:46:32 PM
To: philsturgeon/phpversions.info<EMAIL_ADDRESS>CC: Phil Sturgeon<EMAIL_ADDRESS>Subject:  Re: [phpversions.info] ServerPilot: PHP 7.0.3, 5.6.18, and 5.5.32 (#233)
Definitely, I'll add phpinfo() URLs. I hadn't noticed that was an option.
—
Reply to this email directly or view it on GitHub.


nexrender not using the sended project

Hi!
Nice job with nexrender. It's really useful. Congratulation.
I'm having an issue with sending project to the server. I'm sending a project object with POST method. The server is receiving the POST message but it seems that the server is ignoring the project that I'm sending. The rendernode always render the template project instead of using the project that I sent.
This is how I'm sending the project object:
var xhr = new XMLHttpRequest();
xhr.open("POST", 'http://localhost:3000/api/projects/');
var obj = { template: "mwbv1811_01.aep", composition: "mwbv1811_01", assets: []};
xhr.send(obj);
It's a just a test, but instead using this project, it is using the one defined on /api/models/project.js that I think it's the default.
Any help will be very appreciated.
Rafael

oh, just make sure to change "template" to the same name as the sent file
in the past that had "feature" more meaning, now it just becomes a bit annoying\


Help with Error on  OpenIA

Hello, when i try to use OpenIA give me an error:
 "message": "The server had an error processing your request. Sorry about that! You can retry your request, or contact us through our help center at help.openai.com if you keep seeing this error. (Please include the request ID f7faf3e9b54568b8d4a0d5d7d54ff010 in your email.)",

my code:
from detextify.text_detector import TesseractTextDetector

from detextify.inpainter import DalleInpainter
from detextify.detextifier import Detextifier

import requests

text_detector = TesseractTextDetector("/usr/bin/tesseract")

inpainter = DalleInpainter("<key>")

# inpainter = LocalSDInpainter()

detextifier = Detextifier(text_detector, inpainter)

img_data = requests.get('https://img.ahazou.com/ahz-posts/f2f08569-3a72-4870-8a44-5e83a0cd2a7d/midia/post-68123b14-dd48-446a-9e9c-868401c37a2a.png?tr=w-512,q-90,f-png').content

with open("teste_1.png", "wb") as handler:
    handler.write(img_data)

detextifier.detextify("teste_1.png", "teste_1_out.png")


youtube-dl:  2018.08.28 -> 2018.09.01, fix youtube download

Motivation for this change
Youtube made an update that breaks youtube-dl on many videos. Since that is a big breakage for many users (for example those using mpv to stream youtube), we should include the fix (unmerged upstream PR https://github.com/rg3/youtube-dl/pull/17464) as soon as possible.
Things done

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

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

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

Success on aarch64-linux (full log)
Attempted: youtube-dl
Partial log (click to expand)
Successfully installed youtube-dl-2018.9.1
/build/youtube-dl
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/syw4vj26b285giv1cjbj4ky371sp1pl6-python3.6-youtube-dl-2018.09.01
gzipping man pages under /nix/store/syw4vj26b285giv1cjbj4ky371sp1pl6-python3.6-youtube-dl-2018.09.01/share/man/
strip is /nix/store/y4ymnvgxygpq05h03kyzbj572zmh6zla-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/syw4vj26b285giv1cjbj4ky371sp1pl6-python3.6-youtube-dl-2018.09.01/lib  /nix/store/syw4vj26b285giv1cjbj4ky371sp1pl6-python3.6-youtube-dl-2018.09.01/bin
patching script interpreter paths in /nix/store/syw4vj26b285giv1cjbj4ky371sp1pl6-python3.6-youtube-dl-2018.09.01
checking for references to /build in /nix/store/syw4vj26b285giv1cjbj4ky371sp1pl6-python3.6-youtube-dl-2018.09.01...
wrapping `/nix/store/syw4vj26b285giv1cjbj4ky371sp1pl6-python3.6-youtube-dl-2018.09.01/bin/youtube-dl'...

Success on x86_64-darwin (full log)
Attempted: youtube-dl
Partial log (click to expand)
  The script youtube-dl is installed in '/nix/store/p06hsz0cmli7091l3xcbvcix525qrbbb-python3.6-youtube-dl-2018.09.01/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed youtube-dl-2018.9.1
/private/tmp/nix-build-python3.6-youtube-dl-2018.09.01.drv-0/youtube-dl
post-installation fixup
gzipping man pages under /nix/store/p06hsz0cmli7091l3xcbvcix525qrbbb-python3.6-youtube-dl-2018.09.01/share/man/
strip is /nix/store/df6k4mgdjxciy0f637lryp7c9ln7n1m3-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/p06hsz0cmli7091l3xcbvcix525qrbbb-python3.6-youtube-dl-2018.09.01/lib  /nix/store/p06hsz0cmli7091l3xcbvcix525qrbbb-python3.6-youtube-dl-2018.09.01/bin
patching script interpreter paths in /nix/store/p06hsz0cmli7091l3xcbvcix525qrbbb-python3.6-youtube-dl-2018.09.01
wrapping `/nix/store/p06hsz0cmli7091l3xcbvcix525qrbbb-python3.6-youtube-dl-2018.09.01/bin/youtube-dl'...

Success on x86_64-linux (full log)
Attempted: youtube-dl
Partial log (click to expand)
Successfully installed youtube-dl-2018.9.1
/build/youtube-dl
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/ms59m4ii98r2blfc5j6qadqbwph5vwfj-python3.6-youtube-dl-2018.09.01
gzipping man pages under /nix/store/ms59m4ii98r2blfc5j6qadqbwph5vwfj-python3.6-youtube-dl-2018.09.01/share/man/
strip is /nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/ms59m4ii98r2blfc5j6qadqbwph5vwfj-python3.6-youtube-dl-2018.09.01/lib  /nix/store/ms59m4ii98r2blfc5j6qadqbwph5vwfj-python3.6-youtube-dl-2018.09.01/bin
patching script interpreter paths in /nix/store/ms59m4ii98r2blfc5j6qadqbwph5vwfj-python3.6-youtube-dl-2018.09.01
checking for references to /build in /nix/store/ms59m4ii98r2blfc5j6qadqbwph5vwfj-python3.6-youtube-dl-2018.09.01...
wrapping `/nix/store/ms59m4ii98r2blfc5j6qadqbwph5vwfj-python3.6-youtube-dl-2018.09.01/bin/youtube-dl'...


Read Info From google basketball table

I want to read data from this table:
https://www.google.com/search?rlz=1C1SQJL_iwIL872IL872&sxsrf=ALeKk00iwYf9N7H-cnrIAOh69GUKhPK5gQ%3A1584054268512&ei=_L9qXu70HuyI1fAPwpe72Ac&q=liga+leumit+basketball&oq=liga+leumit+basketball&gs_l=psy-ab.3..0i203i70i253j0i203j0i22i30l3.814.3259..3410...0.2..0.192.1680.0j10......0....1..gws-wiz.......0i71j0.GEUV4xKm93Q&ved=0ahUKEwju4ur_hZboAhVsRBUIHcLLDnsQ4dUDCAs&uact=5#sie=lg;/g/11fn23g3k3;3;/m/05q65y5;st;fp;1;;
Or this table:
http://ibasketball.co.il/league/4039/standings
To my flutter application.
How can I do this?

Questions like these are better suited for Q&A sites like StackOverflow or on one of the flutter community sites at https://flutter.dev/community


Fix for #165

This PR fixes #165 for me.

Thanks @zaro . Would you mind adding a regression test for this? If you don't have time, let me know, and I can look into it over the next few days.

@sloria I tried adding a regression test. But it doesn't seem to work properly.
It passes even if I revert the fix. Maybe you can give some clues how to make it fail when the fix is not applied.
I see that the test framework is actually faking an aiohttp server, so probably it has something to do with it.
I don't have much experience with aiohttp, but I imagine the problem is somehow connected to the fact that body in the request is usually streamed. The first time the check req.has_body succeeds and consumes the body , the following checks fail because the body is already consumed, and then this is not properly simulated in the webtest_aiohttp module.

Ah, I think this bug will only appear in newer versions of aiohttp (>2.x). We are currently pinning to <2.0.0 in dev-requirements-py3.txt because webtest-aiohttp doesn't support 2.x yet. I've confirmed this fix by running examples/aiohttp_example.py after upgrading aiohttp, so I think this is good to merge. I'll fix the nitpick above after I merge.


Revert "R.uniq implementation to use Set if available"

Fixes #1188

Yes. Appears to be the only solution given our definition of equality.

It might be a good idea to add [[1],[1]] as a test for uniq here too.

:+1:

It might be a good idea to add [[1],[1]] as a test for uniq here too.

Good idea. I have done so.

LGTM
:cow2:


fix (contrib/gce/create-gce-user-data): replace discovery_url with discovery

fix (contrib/gce/create-gce-user-data): replace discovery_url with discovery
This simply changes the discovery_url to discovery to allow the nodes in gce set their ETCD_DISCOVERY

Thanks for the contribution! Please ensure your commits follow our style guide. This code will be tested once a Deis maintainer reviews it.

I must've passed by this several times thinking that it was completely fine. Nice find.
code LGTM

Thanks so much for tracking this down and fixing it @babarinde! Code LGTM.


role assignment api does not provide principal name and roledefination name

Hi
i am going to use azure rest api for one of my application but i found that there is difference in response which we get from cli and what is there in rest api. CLI provides prinicipal name and roledefinationName but noot in rest api. Is there somethig which ca be done to get the name also?

@sangam-sgm
Could you provide the REST API call and preferrable request/response? If possible please also provide the AZ CLI command that you are comparing.

Rest API call: GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/roleAssignments?api-version=2015-07-01

CLI: az role assignment
 from  service principal account type (contributor role)
 from user account (user role)
please let me know if you want anything else

@sangam-sgm
You can run az with --debug to see the detail of what it calls.
The result from CLI is accomplished by multiple API calls.
First is roleAssignments call, which hae "roleDefinitionId" and "principalId".
Next is roleDefinitions call, from "id"="roleDefinitionId" one can get "roleName".
And finally graph API call to query the "pincipalId", to get "principalName".

Means a single CLI is composed of several apis.... Can not be made these into a single atleast the PrincipalName.... Because if we are using Rest API then we have to call managemet.azure.com and then graph api both with different permission and access token

@sangam-sgm AFAIK you had to go through graph API for user principal name / service principal name.
@rlrossiter Do you know is there any other way to get principal name?

@weidongxu-microsoft You are correct, the only way to get the principal name is by querying the Graph API

hi @sangam-sgm is your question get answered?

yeah Thanks

thanks, i'll close the issue then. pls create new issue if you have any furthur question.


Figure out permissions issue when attempting to release a tagged version

Getting a snapcraft permissions issue when attempting to publish to the candidate channel.
snapcraft internal error: StoreServerError('Store operation failed:\n- invalid-channel-permission: Macaroon channel restrictions (edge) do not allow release to candidate.')

Had to regenerate the OAuth token with --channels edge,candidate.


[Bug] Lerna + react hooks

Bug
When running using lerna & react hooks, react-static is not able to export.
Instead, this error is shown:
Invariant Violation: Failed exporting HTML for URL / (src\pages\index.tsx): Minified React error #307; visit https://reactjs.org/docs/error-decoder.html?invariant=307
According to that page, this is the error: Hooks can only be called inside the body of a function component
If I manually place the global node_modules in the local project folder, the build succeeds.
Environment
  System:
    OS: Windows 10
    CPU: (8) x64 Intel(R) Core(TM) i7-2700K CPU @ 3.50GHz
    Memory: 6.84 GB / 15.95 GB
  Binaries:
    Node: 11.9.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.13.0 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 6.5.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: 44.17763.1.0
    Internet Explorer: 11.0.17763.1
  Dependencies:
    react: 16.8.1
    react-dom: 16.8.1
    react-static: 6.0.18

Steps to Reproduce the problem

lerna init
configure lerna for yarn workspaces
copy template to /packages & provide package version
run lerna bootstrap
run yarn build

Expected Behavior
The build should succeed
Reproducible Demo
https://github.com/meesvandongen/bug-lerna-reactstatic

This is a bug with react in general when using lerna or linked dependencies. We're working on a workaround that will hopefully fix this.

I bypassed this by switching to pnpm instead of yarn+lerna for management.

Is it really related to lerna? I'm getting a similar error without lerna.
Everything is fine in dev mode - as soon as I build the site, I'm getting the same error.
Here's the output of debug mode:
=> Exporting HTML...
  Error: Invariant Violation: Failed exporting HTML for URL 404 (src/pages/404.js): Hooks can only be called inside the body of a function component. (https://fb.me/react-invalid-hook-call)

  - react.development.js:88 invariant
    [honma]/[react]/cjs/react.development.js:88:15

  - react.development.js:1436 resolveDispatcher
    [honma]/[react]/cjs/react.development.js:1436:28

  - react.development.js:1461 useState
    [honma]/[react]/cjs/react.development.js:1461:20

  - App.js:198 App
    /Users/tamio/WebstormProjects/honma/dist/webpack:/Users/tamio/WebstormProjec    ts/honma/src/App.js:198:37

  - react-dom-server.node.development.js:2868 processChild
    [honma]/[react-static]/[react-dom]/cjs/react-dom-server.node.development.js:    2868:14

  - react-dom-server.node.development.js:2792 resolve
    [honma]/[react-static]/[react-dom]/cjs/react-dom-server.node.development.js:    2792:5

  - react-dom-server.node.development.js:3172 ReactDOMServerRenderer.render
    [honma]/[react-static]/[react-dom]/cjs/react-dom-server.node.development.js:    3172:22

  - react-dom-server.node.development.js:3131 ReactDOMServerRenderer.read
    [honma]/[react-static]/[react-dom]/cjs/react-dom-server.node.development.js:    3131:29

  - react-dom-server.node.development.js:3598 renderToString
    [honma]/[react-static]/[react-dom]/cjs/react-dom-server.node.development.js:    3598:27

  - exportRoute.js:127 renderToStringAndExtract
    [honma]/[react-static]/src/static/exportRoute.js:127:21

  - exportRoute.js:191 renderToStringAndExtract
    [honma]/[react-static]/src/static/exportRoute.js:191:15

  - runtime.js:62 tryCatch
    [honma]/[regenerator-runtime]/runtime.js:62:40

  - runtime.js:288 Generator.invoke [as _invoke]
    [honma]/[regenerator-runtime]/runtime.js:288:22

  - runtime.js:114 Generator.prototype.(anonymous function) [as next]
    [honma]/[regenerator-runtime]/runtime.js:114:21

  - exportRoute.js:52 asyncGeneratorStep
    [honma]/[react-static]/lib/static/exportRoute.js:52:103

  - exportRoute.js:54 _next
    [honma]/[react-static]/lib/static/exportRoute.js:54:194

Another scenario that causes this bug is when there are 2 versions of React being loaded in the same application. Using Hooks will amplify this issue sooner, so you need to make sure you are only relying on a single version of react for your whole app. Try running yarn why react to see which/how many versions you have installed.
We released a fix that should force resolve any react imports to the same version (the one resolved from your project root).

I am still experiencing this issue—has a solution been implemented yet?
I have a very simple Lerna monorepo with 2 packages: xrc and xrc-app
xrc is the package I'm publishing to NPM and xrc-app is the docs website/app for xrc
xrc-app is private and uses react-static
https://github.com/wagerfield/xrc
I have purposefully removed react and react-dom as dependencies from both xrc and xrc-app to be absolutely sure that the issue I'm experiencing isn't related to multiple versions of react being installed.
After running yarn from the root of the monorepo to install the dependencies, I then run yarn why react and get:
yarn why v1.16.0
[1/4] 🤔  Why do we have the module "react"...?
[2/4] 🚚  Initialising dependency graph...
[3/4] 🔍  Finding dependency...
[4/4] 🚡  Calculating file sizes...
=> Found<EMAIL_ADDRESS>info Reasons this module exists
   - "_project_#xrc-app#react-static" depends on it
   - Hoisted from "_project_#xrc-app#react-static#react"
info Disk size without dependencies: "248KB"
info Disk size with unique dependencies: "564KB"
info Disk size with transitive dependencies: "648KB"
info Number of shared dependencies: 6

This clearly shows that I only have one version of react installed (16.8.6) which is the result of react-static listing it as a dependency.
Since the xrc-app lives inside the packages dir, it uses the local version of xrc rather than the one published to NPM. Therefore, before you can build the React Static site, you must run yarn bundle from the root of the monorepo. This will compile the TypeScript in the xrc package using Rollup into cjs and esm bundles in the xrc package that xrc-app can then import and use.
After running yarn bundle you can now run all of the app:* related scripts from the monorepo root.
When you run yarn app:start from the monorepo root, it will run the start script in the xrc-app package which in turn calls react-static start to start the development server. This works absolutely fine and you will be able to see the WIP site at localhost:5000
However, when you run yarn app:stage or yarn app:build from the monorepo root it will get as far as compiling all the JS bundles, but then it hangs and eventually fails when exporting the HTML.
I then get the error:
Invariant Violation: Failed exporting HTML Minified React error #321

https://reactjs.org/docs/error-decoder.html?invariant=321

You might have mismatching versions of React and the renderer (such as React DOM)
You might be breaking the Rules of Hooks
You might have more than one copy of React in the same app

See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.
As mentioned above, running yarn why react and yarn why react-dom from the monorepo root will show that only one version of both react and react-dom are installed and that they are the same version of 16.8.6.
Therefore I would assume that I'm not falling foul of point 1 or 3. Furthermore, I'm not using hooks anywhere in my application code.
If it is an issue with React hooks, then perhaps it's coming from React Static?
The strange thing I have found is that if I copy and paste the xrc-app package onto my desktop so that it's completely removed from the Lerna monorepo and run yarn or npm install inside the package so react-static et al are installed and xrc is pulled from NPM rather than the local monorepo version, then the build and stage scripts work.
I've been battling with this one all day and could really use some help please :D
Thanks in advance!

just to be clear - are you running react static 7?


Lost first message when start consumer

before i start the kafka consumer ,i use kafka shell  get  kafka topic consumption progress

TOPIC
PARTITION
CURRENT-OFFSET
LOG-END-OFFSET
LAG
CONSUMER-ID
HOST
CLIENT-ID

test
0
212
213
1
-
-
-

then i start the kafka consumer,i got this  info
consoler_logger_kafka.DEBUG: Get current fetch offset sucess, result: [{"topicName":"test","partitions":[{"partition":0,"errorCode":0,"metadata":"","offset":212}]}] [] []
consoler_logger_kafka.DEBUG: Start Request ClientId: kafka-php ApiKey: HeartbeatRequest  ApiVersion: 0 [] []
consoler_logger_kafka.DEBUG: Start Request ClientId: kafka-php ApiKey: OffsetRequest  ApiVersion: 0 [] []
consoler_logger_kafka.DEBUG: Fetch message start, params:{"max_wait_time":100,"replica_id":-1,"min_bytes":"1000","data":[{"topic_name":"test","partitions":[{"partition_id":0,"offset":213,"max_bytes":65536}]}]} [] []
consoler_logger_kafka.DEBUG: Start Request ClientId: kafka-php ApiKey: FetchRequest  ApiVersion: 2 [] []
consoler_logger_kafka.DEBUG: Start Request ClientId: kafka-php ApiKey: OffsetFetchRequest  ApiVersion: 1 [] []

The Get current fetch offset return offset is 212, Fetch message params offset is 213
Is this cause lost one message?

i got the same problems in tag<IP_ADDRESS>, so i fix it by myself in local repository.
The official team do not do any thing about it.....
so sad!!!!

@zmisgod, have you considered creating a PR?

@Sevavietl yes ,i try to pull request for tag v<IP_ADDRESS>, but ......

@zmisgod that is good,thank u for your kindness. Finally，i have to use rdkafka

I am also facing same issue..whenever we start consumer..it always lost the first message...


Geowave plugin not work in Geoserver

Hi,
We add the geowave plugin for geoserver as mentioned at https://locationtech.github.io/geowave/userguide.html#installation. But we only found GeoWaveRasterFormat on geoserver admin. In another word, the vector support is not success by the geowave plugin.
The we check the log in geoserver, we found the log belows:
26 Apr 17:35:10 WARN [util.factory] - Can't load a service for category "DataStoreFactorySpi". Cause is "ServiceConfigurationError: org.geotools.data.DataStoreFactorySpi: Provider org.locationtech.geowave.adapter.vector.plugin.GeoWaveGTDataStoreFactory could not be instantiated".
Does it mean that vector support is not success, and what is the root cause.
Our Geoserver version is 2.15.1,geotools version is 21.1, and geowave code is just cloned recently.

I haven't dug into this one yet, but can offer a suggestion. I'd suggest giving geoserver 2.14.0 a try which is the version of geoserver that this version of geowave is built for.
While often versions of geowave will work with a variety of versions of geoserver, my first guess is there is a version incompatibility in this case.

I haven't dug into this one yet, but can offer a suggestion. I'd suggest giving geoserver 2.14.0 a try which is the version of geoserver that this version of geowave is built for.
While often versions of geowave will work with a variety of versions of geoserver, my first guess is there is a version incompatibility in this case.

Thanks for your reply@rfecher.
I would like to try your suggestion, but I still have a question. Is 2.14.0 the latest version of geoserver that the current geowave can support? It seems that the latest geoserver version has reached 2.17.0.

GeoWave currently only supports up to version 2.14.x of GeoServer.

GeoWave currently only supports up to version 2.14.x of GeoServer.

Thanks for your reply ! @jdgarrett


Users with sufficient privileges can choose the role of other collaborators within a project

Heya Tobi, thanks for the awesome implementation. I have some questions concerning the UI and the functionality before i'd approve this PR.
1.) There is currently no way to remove or change the role of a collaborator already added to the project. Is this intended?

You cannot change your own role. You should however be able to change other users roles (given you are an administrator of the project or the system).
You cannot change your own role because this is tricky. When you want to lower your privileges, at some point you need to remove your permission to edit the access control list. This prevents you from performing the change. When you want to increase your own privileges, there is no possible way because the administrators already have the highest privileges.
Ownership is not contained at the access control entry level but is a property of the access control list itself. So changing that is tricky as well. (would go through a separate way probably) because you need to provide the person you want to transfer ownership to.
2.) Is there an a UI prototype with which this implementation can be compared. Currently the dialog looks very empty, and to me this triggers the question is why this functionality is not part of the component.
No. But the UI works and is understandable for FB.The dialog can be improved. Feel free to adapt as much as you deem necessary. I only wanted to provide something as nobody tackled this feature.

Thanks for the explanation. I asked Shraddha to take a look UI wise but can confirm it functions then as intended nicely done! (The confusion on my side arose due to not being able to remove myself)


Image doesnt show on canvas

Hello. for some images, im able to view them if i open their link in browser, but it doesnt show up in the cropper box. Is there a fix for this?

Hello Sabrinalua, I may be on the same situation as you.

Can you give more details about your code?


Unable to synchronize time between micro ros and ros2

This is my code " https://github.com/flux0-0/test_microros_time/blob/main/main.cpp " . If I upload it to Esp32, I don't see anything printed in the serial. This is my ini file " [env:esp32doit-devkit-v1]
platform =<EMAIL_ADDRESS>board = esp32doit-devkit-v1
framework = arduino
monitor_speed = 115200
monitor_rts = 0
monitor_dtr = 0
monitor_port = /dev/ttyUSB0
board_microros_distro = humble
board_microros_transport = wifi
lib_deps =
https://github.com/micro-ROS/micro_ros_platformio
<EMAIL_ADDRESS>"

Tks, I have tried a lot but I failed. Can you give me an example code about synchronous time in micro ros and ros2 with framework adruino ?

Please check this,
https://github.com/hippo5329/linorobot2_hardware/blob/master/firmware/src/firmware.cpp#L246

I've read and followed, but it seems my counter always starts at 0. This is my code "https://github.com/flux0-0/test_microros_time/blob/main/main.cpp" I hope you will read and help me point out any errors!

There are a lot of things to learn. Coding, debugging, micro-ros re-connection, timer..etc. It takes time to learn. No short-cut. I would suggest follow the wiki and try out.
https://github.com/hippo5329/linorobot2_hardware/wiki

You can try out with a bare esp32. No real robot or sensor is needed.
Then start over with the re-connection example. Change the message to a dummy stamped one. The add time sync. Do these step by step.

Thanks for your help, I fixed it successfully


refactor!: compare with origin bytes during the transactions

I hereby agree to the terms of the GreptimeDB CLA
What's changed and what's your intention?

Wrap values with DeserializedValueWithBytes struct.
Compare with origin bytes during the transactions

This PR modifies the persistent structs used in meta's procedures, ensuring all old procedures are finished before starting a new version of metasrv.
Checklist

[x]  I have written the necessary rustdoc comments.
[x]  I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)
close #2198

@MichaelScofield PTAL