Can not update Ultra Disk

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug

'az disk update' get the error message from API
To Reproduce

Execute az disk update -n Ultra_Disk_name -g resource-group --disk-iops-read-write 16000 --debug
Got the error,

This subscription is not registered to use Microsoft.Compute/SharedDisks feature.

Expected behavior

Successfully updating the bandwidth of Ultra Disk.
Environment summary

% az --version
azure-cli                          2.7.0

command-modules-nspkg              2.0.3
core                               2.7.0
nspkg                              3.0.4
telemetry                          1.0.4

Python location '/usr/local/Cellar/azure-cli/2.7.0/libexec/bin/python'
Extensions directory '/Users/rifujita/.azure/cliextensions'

Python (Darwin) 3.8.3 (default, May 27 2020, 20:54:22)
[Clang 11.0.3 (clang-1<IP_ADDRESS>)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Additional context

I can update the same Ultra Disk via Azure Portal successfully. 'Shared Disk' feature has not been supported in Japan East. But it's odd that API returns 'BadRequest' because I don't intend to use 'Shared Disk' feature. And I know the command works with the subscription whitelisted for 'Shared Disk' feature. I guess it's a bug of API not found yet.
debug_update_disk.txt

hi @qwordy could you pls have a look? thanks

The command should not include 'maxShares' in this context.

The request doesn't have encryption.diskEncryptionSetId.
msrest.http_logger : {
  "name": "riobackup_DataDisk_0",
  "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/riobackup/providers/Microsoft.Compute/disks/riobackup_DataDisk_0",
  "type": "Microsoft.Compute/disks",
  "location": "japaneast",
  "zones": [
    "1"
  ],
  "managedBy": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/riobackup/providers/Microsoft.Compute/virtualMachines/riobackup",
  "sku": {
    "name": "UltraSSD_LRS",
    "tier": "Ultra"
  },
  "properties": {
    "creationData": {
      "createOption": "Empty"
    },
    "diskSizeGB": 2048,
    "diskIOPSReadWrite": 12800,
    "diskMBpsReadWrite": 500,
    "readOnly": false,
    "diskIOPSReadOnly": 4096,
    "diskMBpsReadOnly": 520,
    "encryption": {
      "type": "EncryptionAtRestWithPlatformKey"
    },
    "maxShares": 1,
    "timeCreated": "2020-05-28T13:33:46.2986068+00:00",
    "provisioningState": "Succeeded",
    "diskState": "Reserved",
    "diskSizeBytes":<PHONE_NUMBER>552,
    "uniqueId": "4e25d06a-157a-433a-9eb2-6160d24b2380"
  }
}

After removing 'maxShares' from the request, I got the another error message.

Required parameter 'diskEncryptionSetId' is missing (null).

Hi rioriost, I test the command in Azure CLI 2.8.0 and update the Ultra Disk successfully. Could you test it again?

If you have enrolled the white list for 'Shared Disk', the command does work. But I didn't want to operate 'Shared Disk' related feature just to update IOPS and bandwidth.
% az --version | grep "^azure-cli"
azure-cli                          2.8.0
% az disk update -g rifujitaspdrrg -n rifujitaspdr2_disk2_055c2f925bea465d88a466df17f200df --disk-iops-read-write 160000 --disk-mbps-read-write 2000
This subscription is not registered to use Microsoft.Compute/SharedDisks feature.

you're right @rioriost , you need run az feature to register the feature firstly.

I create a disk without setting max share. maxShares is null in the response. How did you create the disk? If you didn't enable the feature, how did you create a disk with maxShares = 1?
{
  "creationData": {
    "createOption": "Empty",
    "galleryImageReference": null,
    "imageReference": null,
    "logicalSectorSize": null,
    "sourceResourceId": null,
    "sourceUniqueId": null,
    "sourceUri": null,
    "storageAccountId": null,
    "uploadSizeBytes": null
  },
  "diskAccessId": null,
  "diskIopsReadOnly": null,
  "diskIopsReadWrite": 120,
  "diskMbpsReadOnly": null,
  "diskMbpsReadWrite": 25,
  "diskSizeBytes":<PHONE_NUMBER>0,
  "diskSizeGb": 10,
  "diskState": "Unattached",
  "encryption": {
    "diskEncryptionSetId": null,
    "type": "EncryptionAtRestWithPlatformKey"
  },
  "encryptionSettingsCollection": null,
  "hyperVgeneration": "V1",
  "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/fy4/providers/Microsoft.Compute/disks/d1",
  "location": "westus",
  "managedBy": null,
  "managedByExtended": null,
  "maxShares": null,
  "name": "d1",
  "networkAccessPolicy": "AllowAll",
  "osType": null,
  "provisioningState": "Succeeded",
  "resourceGroup": "fy4",
  "shareInfo": null,
  "sku": {
    "name": "Premium_LRS",
    "tier": "Premium"
  },
  "tags": {},
  "tier": "P3",
  "timeCreated": "2020-09-10T07:37:51.168076+00:00",
  "type": "Microsoft.Compute/disks",
  "uniqueId": "efb7a807-75ca-4715-9ed8-b4dc6473d85e",
  "zones": null
}


Add the number of frames in info

I need to get the number of frames in a file before calling blocks.
That would be nice to either have info.duration as a float or add a num_frames attribute.

As a quick work-around, you can create a SoundFile object (ideally in a with statement), use len() to get the number of frames and then use the blocks() method (instead of the blocks() function).
import soundfile as sf

with sf.SoundFile('myfile.wav') as f:
    frames = len(f)
    for block in f.blocks(1024):
        # do something


Cannot call decoder.predict in testing phase

training works great decoder.summary also looks correct

encode.predict Used only with the training model, if you train your own classifier, you can use the following code to find the predicted value and the corresponding label.
test_gen2 = datagen_test.flow_from_directory(directory=test_dir2,
target_size=(224,224),
batch_size=1,
class_mode='categorical',
shuffle=False)
test_gen2.reset()
pred = new_model.predict_generator(test_gen2, verbose=1)
predicted_class_indices = np.argmax(pred, axis=1)
labels = (generator_train.class_indices)
label = dict((v,k) for k,v in labels.items())
predictions = [label[i] for i in predicted_class_indices]
filenames = test_gen2.filenames
for idx in range(len(filenames )):
print('predict  %d' % (int(predictions[idx])))
print('title    %s' % filenames[idx])
print('')


Pre-compile end-to-end  gpu driver validation

@cdesiniotis
precompiled e2e  job will run daily at 10 AM UTC .
It skips end-to-end (e2e-tests-nvidiadriver) testing if the driver kernel version tag exists with the tag of base image kernel. Please check e2e-driver-version-compare. The e2e-driver-version-compare job only verifies the mismatch of kernel version between driver and base image .
if there is a kernel version mismatch, it sets the matrix value and runs the test.
https://github.com/NVIDIA/gpu-driver-container/pull/91
currently I removed azure image testing . as azure image upgrade is failing currently
https://github.com/NVIDIA/gpu-driver-container/actions/runs/10634581246   : pipeline where only azure kernel upgrade is failing

@cdesiniotis PTAL

@cdesiniotis
Thanks for reviewing . updated the comments

@cdesiniotis
Thanks for reviewing . updated the comments


IS-6 Company specific logo support

Looks good to me

Looks good to me

Then merge it and move the card to verified. This is reviewer's responsibility


Class extends Ractive

Also asked on SO, but I'm using ES6 (via Babel), and looking for the "proper" way to define a Class that extends Ractive (without calling Ractive.extend(...) if possible), since Ractive allows new Ractive.
Tried the following approach, which almost seems to work:
class Home extends Ractive {
  constructor() {
    super();
    this.template = "<h1>{{message}}</h1>";
  }

  data() {
    return {
      message: 'This is sample data'
    }
  }

  oninit() {
    console.log('ok');
  }
}

Ractive instance is initialized without error, and oninit is called, however the template seems undefined.
Have tried super({ template: '...' }), as well.
Thoughts?

from Marty, via StackOverflow:

I would like to start using that syntax as well. :)

But I spent an hour a month ago trying to see if it was hackable, but concluded it's not currently possible due to how some of the component extension works. But it's on our radar and should land in a near-future version.


DelaunayTriangulator problem

hello， this is good stuff . When I am using the DelaunayTriangulator demo, i find some problem. i find am image contour points, and use these points to do DelaunayTriangulation, but the result is bad

you can see that the red point is the contour, and your method miss some points. and when i change float_Epsilon，the result changed

another simple example
i add the following points

and after using your method， the result is bad

Do you have a car destruction system?
like this video on unity
https://www.youtube.com/watch?v=v8sAtS_JgaQ


Issue14725 getopt better exceptions

https://issues.dlang.org/show_bug.cgi?id=14725

LGTM

LGTM, @DmitryOlshansky I'll let you pull, if you still think it looks good after all the changes.

Let's wait a bit on this. I have a proposal brewing that may solve this and many exception-hierarchy issues.

could you post a reference?

I'm on holiday for a good 2 weeks, I guess we can wait some more

I'm on holiday for a good 2 weeks, I guess we can wait some more

And I was about to post that I'm on a cellphone for at least a week. Let's get back to this in ~ 10 days.

@DmitryOlshansky ping

@burner got busy with real life. Ping me back in a couple of days, I'll prepare the proposal

ping
Any news on this?

well, the bugfix is still good.
But @DmitryOlshansky said he had some magic pill. But he didn't say what is was or when he will present it.

But @DmitryOlshansky said he had some magic pill. But he didn't say what is was or when he will present it.

Simply put the current fix silently changes exception type. Now users catching ConvException would be surprized to see that they no longer catch the right condition. As for magic - yes I have it, have patience my friends.

ping
Any news on this?

To start on this as I think I'll wait forever to write a DIP.
What we should have here instead of this "fix" is throw an exception that is both ConversionException (semantics) and GetOptExcpetion (origin). I believe that I found a way to frutifully combine 2 exception hierarchies where one of them is going to be an interface hierarchy. Now my proposal wouldn't stop on just getting hierarchies right we should cover:

Easy creation of exceptions :

alias MyParseException = StandardException!(ParseException, my.module);
alias MyLogicException = StandardException!(LogicException, my.module);

Ease of throwing and creating exceptions:

// writef style formatting
throw exceptionf!MyParseException("This is lazily formatted with %d a number", 42);
// write style formatting
throw exception!MyParseException("This is lazily formatted with ", 42, " a number");

Catching can be done by any of the two: semantic type as in ParseException or by origin (ideally) as ExceptionOrigin!(module.name) or ExceptionOrigin!(package.name). Then:

try{ ... }
catch(ParseException ){ // may be a parse error, possibly in SQL statement
}
catch(OriginExcpetion!(arsd.mysql)) { // some exception from Mysql package as a whole
}

I believe it's this blend of origin and semantics is the way to go, it's novel I admit but it enables excellent idioms and seems to scale way beyond other hierarchies proposed.

To start on this as I think I'll wait forever to write a DIP.

The missing piece is proof of concept and that may take a bit of time

I remember you posted about this in the forum, but there wasn't very much response.
Personally I think it's a great idea.

@DmitryOlshansky ping?

@DmitryOlshansky If this PR is fixing a genuine problem, then why not pull this instead of waiting for something that might still take a long time. I believe you when you say you have a better solution, but this solution exists now, why not just override this with your changes when they're ready?

This just changes one exception for another - a breaking change that helps users that didn't expect ConvError but breakscode of others that expect it. Closing one ticket foranew one

Yeah, changing the type of a thrown exception breaks code, so let's do it as few times as possible. I agree with @DmitryOlshansky; I think this patch is better applied after his work, when it will be backwards compatible.

@DmitryOlshansky any news on you DIP

@DmitryOlshansky any news on you DIP

Not yet, though I intend to process my D-language related backlog soonish.

@DmitryOlshansky any news on you[r] DIP

ping @DmitryOlshansky - ´I like your idea of having multiple exceptions. Any way we can help you?

´I like your idea of having multiple exceptions. Any way we can help you?

Well so far an attempt to convert Throwable to interface instead of a class exploded in my face at run-time. I need it done and it's the only real obstacle. I will publish the fork of druntime in case there is any interest

If this is waiting on @DmitryOlshansky's work, then IMO this should be closed, as this will require a rewrite anyway. Right now this is just eating auto-tester time.

agreeded


fix: normalize role def ids

Codecov Report

Merging #20 (3d652de) into main (e31d5bb) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main      #20   +/-   ##
=======================================
  Coverage   70.05%   70.05%
=======================================
  Files           6        6
  Lines         875      875
=======================================
  Hits          613      613
  Misses        192      192
  Partials       70       70

Files Changed
Coverage Δ

alzmanagementgroup.go
63.15% <100.00%> (ø)


Document supported SemVer ranges with example

Let's document this. Reading the code does not replace a good documentation.
See https://github.com/actions/setup-node/issues/61

any interest in updating to target main instead of master?

any interest in updating to target main instead of master?

any interest in updating to target main instead of master?

Done. Normally you should also be able to do that.
Since there are conflicts and this is probably completely out of date, I will close this PR.


Dami/test 2 anchors

Codecov Report

Merging #207 (e7cb40a) into master (bd4faaa) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #207   +/-   ##
=======================================
  Coverage   33.11%   33.11%
=======================================
  Files          27       27
  Lines        1785     1785
=======================================
  Hits          591      591
  Misses       1194     1194

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 bd4faaa...e7cb40a. Read the comment docs.


⚠ ClamAV has degraded performance

In 293d5ce, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 68 ms

Resolved: ClamAV performance has improved in a39d1d6.


Typo

Hi. I found a typo. 'Recepient'
https://www.eostoolkit.io/account/delegate

👍 Thanks @timmwest for noticing, sent a quick fix

Great, thanks @DenisCarriere !


bugfix: fix start container twice error

Signed-off-by: Michael Wan<EMAIL_ADDRESS>Ⅰ. Describe what this PR did
When starting a container,  we should check the container's status first. If the container is already started, we should just return http.StatusNotModified error.
Ⅱ. Does this pull request fix one issue?
None
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗？)
add test case
Ⅳ. Describe how to verify it
none
Ⅴ. Special notes for reviews
none

Codecov Report

Merging #2229 into master will increase coverage by 0.02%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master   #2229      +/-   ##
=========================================
+ Coverage   66.57%   66.6%   +0.02%
=========================================
  Files         208     208
  Lines       16744   16750       +6
=========================================
+ Hits        11148   11156       +8
+ Misses       4273    4269       -4
- Partials     1323    1325       +2

Flag
Coverage Δ

#criv1alpha1test
32.77% <0%> (-0.21%)
:arrow_down:

#criv1alpha2test
33.62% <0%> (+0.19%)
:arrow_up:

#integrationtest
39.97% <100%> (ø)
:arrow_up:

#nodee2etest
33.7% <0%> (-0.02%)
:arrow_down:

#unittest
23.86% <0%> (-0.01%)
:arrow_down:

Impacted Files
Coverage Δ

pkg/errtypes/errors.go
100% <100%> (ø)
:arrow_up:

daemon/mgr/container.go
56.85% <100%> (-0.33%)
:arrow_down:

apis/server/router.go
91.94% <100%> (+0.1%)
:arrow_up:

ctrd/watch.go
78.78% <0%> (-4.55%)
:arrow_down:

daemon/containerio/cri_log_file.go
84.31% <0%> (-3.93%)
:arrow_down:

cri/v1alpha1/cri.go
61.88% <0%> (-0.68%)
:arrow_down:

cri/v1alpha2/cri_wrapper.go
65.69% <0%> (ø)
:arrow_up:

cri/v1alpha2/cri.go
72.52% <0%> (+0.31%)
:arrow_up:

ctrd/container.go
60.52% <0%> (+0.95%)
:arrow_up:

... and 3 more

LGTM, I would like to invite @rudyfly to take a review again.


The process of deadlock

``## 🐛 Bug
Recently, I tried DDP training of single machine with multiple cards. I have four V100 cards, which are usually used in pairs to run the same different hyperparameter code, but I often encountered the phenomenon that 100% of the training of the first epoch was stuck. I checked the checkpoint after each epoch and found that it was saved normally. I tried to update the latest PyTorch lighting and sometimes this worked, but I got stuck at about half of the training total.
pytorch_lightning.utilities.seed.seed_everything(seed=args.seed, workers=True)
best_checkpoint_callback = ModelCheckpoint(
        save_top_k=1,
        monitor="val mean dice",
        mode="max",
        dirpath="./checkpoint/",
        filename=f"{args.model_name}-best_metric_model",
    )
current_checkpoint_callback = ModelCheckpoint(dirpath="./checkpoint/",
                filename=f"{args.model_name}-last_model",
                        save_on_train_epoch_end =True)
model = LightningModel(args)
trainer = Trainer(max_epochs=args.num_epochs,
                          devices=args.gpu_num,
                          gpus=args.gpu_num,
                          accelerator="gpu",
                          strategy='ddp_find_unused_parameters_false',
                          callbacks=[best_checkpoint_callback,current_checkpoint_callback],
                          logger=wandb_logger,
                          check_val_every_n_epoch=args.val_interval,
                          precision=16,
                         sync_batchnorm=True,

                         )

cc @justusschock @kaushikb11 @awaelchli @akihironitta @rohitgr7

such like this

Can you share a script that reproduces the issue?
Or can you step through with a debugger to find the call that hangs?

Or can you step through with a debugger to find the call that hangs?

I've been trying to find a way to find the call that hangs in lightning. Could you tell me how to do that？

您是否遇到数据不均衡的情况，其中某些进程处理的批次比其他进程多？这将导致在 epoch 结束时挂起

HI, I do have a similar situation, but I just tried and setting limit_train_batch to int doesn't work for me.
https://github.com/PyTorchLightning/pytorch-lightning/issues/11910

It is worth noting that most of the problems occur when the second program freezes after running the same code successively.

I just did a test. First, I started train.py using DDP in a single-machine multi-card environment and it worked normally (sometimes not). Starting train.py with DDP in the same environment with different hyperparameters would get stuck when the first epoch was completed, then I tried to update the latest PyTorch-Lightning version and started train.py in the same way and it worked fine. However, when the two programs are trained and run in the same way, they still fail. The only solution seems to be that the two programs are running different versions of PyTorch-Lightning.
Note: If limit_TRAIN_Batch is set to 7 and val is set to 5, the version without update works normally. However, if the value is larger than 250, the version still does not work. Because of the experimental data and the specificity of the code, I may not be able to provide boring code.

I also have the same issue when the batch size is variable!

I just did a test. First, I started train.py using DDP in a single-machine multi-card environment and it worked normally
...
Note: If limit_TRAIN_Batch is set to 7 and val is set to 5, the version without update works normally.

If setting limit_train_batch resolves the problem, this might suggest that there's a bug in your dataloader -- are you using a custom batch sampler?  That was the situation for a similar bug report in #10947 ... hope this pointer might help!


Update cloudflare.mdx

What kind of changes does this PR include?

Minor content fixes (broken links, typos, etc.)

Change 'you' to 'your'
(y'all are awesome!)

Thanks, @beeburrt for the great catch! Gotta say, you're looking pretty awesome yourself. Welcome to Team Docs!  :partying_face:


Update actions/download-artifact and actions/upload-artifact

There were issues with duplicated files after the update.

Fixed.


No-Appear image

Describe your bug here.
I tried to import a character to the editor, but when i select my new character, the image is remplaced by the logo of the fnf team "i think", please help!!
Command Prompt/Terminal logs (if existing)
Import the spritesheet and xml, imported the json, select the character in the fnf editor, IMAGE DOESNT APPEAR

Are you modding a build from source or with Lua?
Source
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
Yes, Just added the new character stuff.

Your character's image doesn't in the right path may be


Enable multiple treesitter grammars in shell.nix

I have trouble figuring out how to enable multiple grammars for treesitter, which I want to use (preferably with a shell.nix as that is what I am comfortable with).
I would appreciate some advise for both a "clean" repository as well as for this one:
https://github.com/armijnhemel/proximity_matcher_webservice/
Background information: https://nlnet.nl/project/AutomatedClearing/

@armijnhemel Please repost your question on the NixOS Discourse, as that may get you the answer more quickly.

@armijnhemel Please repost your question on the NixOS Discourse, as that may get you the answer more quickly.

Thank you, I will do that!

https://discourse.nixos.org/t/need-help-enabling-grammars-in-treesitter-python/39500
No replies yet though ;-)

Hey, @armijnhemel. You still need help with this? I'll also try to PM you.

Hey, @armijnhemel. You still need help with this? I'll also try to PM you.

Yes. I sent you a reply a few days ago, which I will quote here:
"The ideal outcome for me wouldn't just be a fix for my particular problem, but also some docs that can for example be shared on the NixOS wiki, or some expressions in nixpkgs."

We've implemented a hacky solution that should unblock you, but it only works with tree-sitter (python binding) < 0.22.0
Here's the link: https://github.com/ngi-nix/nixpkgs/blob/c06e35046b115819be5e6350e5485135605df942/pkgs/development/python-modules/tree-sitter-languages/default.nix

https://github.com/NixOS/nixpkgs/pull/320783


Config Object + Antialias

It appears that the antialias property can never be set to false if a config object is provided on Phaser.Game instantiation because only a truthy value of config.antialias is checked and therefore false will always be ignored.
https://github.com/photonstorm/phaser/blob/master/src/core/Game.js#L480-L483

True, same happened for transparent as well. Fixed in dev.

Thanks!


Common issue for chores and deps

Describe the bug
This issue is supposed to be used for all deps update and chore PRs.

:tada: This issue has been resolved in version 4.1.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 4.1.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


ignore certain POJO methods

Hi, I've just started using Polymorphia for POJO mapping with MongoDB. I'm using the Java driver 3.5.0 but have had issues getting its built-in PojoCodecProvider to behave as I need.
I have a class that is blowing up because it has a method like this:
public <T> Map<String,T> getAttributesOfType(T argument) {     ... }
(This is not an actual getter, as such.)
There is a method in ReflectionHelper being called - private static void getMethodTypePairsRecursive(ParameterizedType type, List<MethodTypePair> currentList, Map<String, Type> realTypeMap) - that scans all declared and inherited methods of my class and verifies that return types are fully resolved. It then blows up inside TypeUtils of commons-lang3 when it finds the second parameter not to be resolved.
The whole stack trace from MongoCollection.insertOne downwards is:
java.lang.IllegalArgumentException: null type argument at index 1 	at org.apache.commons.lang3.Validate.noNullElements(Validate.java:513) 	at org.apache.commons.lang3.reflect.TypeUtils.parameterizeWithOwner(TypeUtils.java:1504) 	at de.bild.codec.ReflectionHelper.inferRealType(ReflectionHelper.java:106) 	at de.bild.codec.ReflectionHelper.getMethodTypePairsRecursive(ReflectionHelper.java:184) 	at de.bild.codec.ReflectionHelper.getMethodTypePairsRecursive(ReflectionHelper.java:158) 	at de.bild.codec.ReflectionHelper.getMethodTypePairsRecursive(ReflectionHelper.java:180) 	at de.bild.codec.ReflectionHelper.getMethodTypePairsRecursive(ReflectionHelper.java:158) 	at de.bild.codec.ReflectionHelper.getMethodTypePairsRecursive(ReflectionHelper.java:180) 	at de.bild.codec.ReflectionHelper.getMethodTypePairsRecursive(ReflectionHelper.java:158) 	at de.bild.codec.ReflectionHelper.getDeclaredAndInheritedMethods(ReflectionHelper.java:150) 	at de.bild.codec.BasicReflectionCodec.<init>(BasicReflectionCodec.java:64) 	at de.bild.codec.PojoContext.resolve(PojoContext.java:93) 	at de.bild.codec.PolymorphicReflectionCodec.<init>(PolymorphicReflectionCodec.java:45) 	at de.bild.codec.PojoContext.calculateCodec(PojoContext.java:156) 	at de.bild.codec.PojoContext.getCodec(PojoContext.java:66) 	at de.bild.codec.PojoContext.get(PojoContext.java:44) 	at de.bild.codec.PojoCodecProvider.get(PojoCodecProvider.java:43) 	at org.bson.codecs.configuration.ProvidersCodecRegistry.get(ProvidersCodecRegistry.java:43) 	at org.bson.codecs.configuration.ProvidersCodecRegistry.get(ProvidersCodecRegistry.java:55) 	at org.bson.codecs.configuration.ProvidersCodecRegistry.get(ProvidersCodecRegistry.java:37) 	at com.mongodb.MongoCollectionImpl.getCodec(MongoCollectionImpl.java:591) 	at com.mongodb.MongoCollectionImpl.insertOne(MongoCollectionImpl.java:314)
Thinking that perhaps the name was confusing things, I changed it not to look like a getter, but that had no effect.
Is there a way to annotate a method as not to be mapped during encoding?
Thanks,
Sean

Hi Sean,
thanks for using Polymorphia.
You raise an interesting issue.
In short, I will be able to fix your problem tomorrow.
TLDR;
Right now getters and setters are not considered while scanning pojos.
Solely fields are considered for encoding/decoding.
You can exclude fields by annotating them with @de.bild.codec.annotations.Tranisent
You cannot (at present) mark methods as being transient, as methods anyway won't be used for encoding/decoding purposes.
Lifecycle-management methods, annotated with @Postload or @PreSave will be searched while scanning the pojo. This - as seen in your case - may lead to the exeption you experience.
I just haven't thought of a generic method signature while scanning methods.
The good news is, the fix is easy, as I don't need to resolve full method signatures for methods annotated with @Postload or @PreSave. It is only needed to find these methods, but not to resolve their exact signatures.
Once more, thanks for using Polymorphia. Any feedback is appreciated.

Thanks Michael. Can you clarify: does this mean I will need to annotate all my "strange" methods with @postload or @presave? Or will your method scan now only look for those annotated methods? Without a full understanding of the code, it sounds to me like the latter is the better approach.

Hi Sean,
you don't have to annotate your "strange" methods.
Actually Polymorphia is meant to make a developers life as easy as possible, hence you should be able to use any method etc. without special handling in your pojos.
You actually found an error that I just fixed. Please update to Polymorphia 1.6.1
Background information:
When a Pojo class is being scanned, all fields are used scanned and only fields are used for encoding to the mongo or for decoding respectivley.
Scanning of methods was introduced later and is only needed for life-cycle management.
You can annotate methods with @PreSave or @PostLoad. Before an entitity is written to the database all @PreaSave-annotated methods run. You could then prepare your entity for persistence or sent an event or alike.
You are right, it might be better to search only methods annotated with @PreSave and @PostLoad. Right now the code scans all methods within a pojos class hierarchy, resolves their full generic types and build a list via Refelctionhelper.getDeclaredAndInheritedMethods(...)
The parameter "T" as being a TypeVariable could not be resolved. It is only know at the caller side of the method but not within the pojo class itself.
As we do not really need to resolve this type variable I made teh code more robust and you should not experience the error you saw again.

One more thing.
Out of curiosity. What problems did you run into using mongos PojoCodecProvider?
Thanks Michael

Mainly newbie problems. It seemed to be unable to deal with certain types - I register a class explicitly, then get an exception that a codec for that class cannot be found. The tangle of CodecRegistry implementations down inside the driver is pretty wild!
Having said that, I think I have found another Polymorphia issue which I will file shortly.


IndexError in Internal Console when closing files in the Editor

From<EMAIL_ADDRESS>on 2012-04-20T15:32:27Z
What steps will reproduce the problem?

Open Spyder
Close .temp.py file or any previously open code file that appears in the Editor
I expect the file to close without errors but the following is displayed in the Internal Console:

>>> Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/spyderlib/plugins/editor.py", line 1056, in close_file_in_all_editorstacks
editorstack.close_file(index, force=True)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/spyderlib/widgets/editor.py", line 1189, in close_file
finfo = self.data[index]
IndexError: list index out of range
Perhaps related is that under the following conditions, two files are closed at once.

Open Spyder (previously open code file is present in Editor, or .temp.py file)
Open another code file
Closing the .temp.py (or previously open code file) results in BOTH files being closed. No error is reported to the Internal console.
Opening and then closing any other code file results in the same traceback listed above. What version of the product are you using? On what operating system? Spyder 2.1.9
Python 2.7.3, Qt 4.7.4, PyQt4 (API v1) 4.9.1 on Darwin
Mac OS X 10.7.3

Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1000

From pierre.raybaut on 2012-04-21T00:05:03Z
This is already fixed in v2.2.0dev.
As for v2.1 branch:

this is not fixed in v2.1.9 indeed
this is fixed by this revision: https://code.google.com/p/spyderlib/source/detail?r=29b7e270e1a1c4e64a9969aa739f3e896c5d1b49&repo=v21 * and so you'll have to either use the v21 repository version ( https://code.google.com/p/spyderlib/source/checkout?repo=v21 ) or wait until v2.1.10 is released.

Status: Duplicate
Mergedinto: 813


Refactoring code is done.

please review and merge the code

@Likhil Code merged. Please test the functionality.


chore: create Prometheus quickstart description

Search Nurture recommendations for Prometheus description and summary
Summary
A concise description of the changes being introduced.
If this is a new Observability Pack, please provide a description of its use cases and a list of the Pack's components.
Screenshots
Images of any visual changes, such as a dashboard.

@aliandersonsn @bradleycamacho looks like the description is exceeding max chars (2000) as well as the summary (250)

The repository has been renamed to newrelic/newrelic-quickstarts. Github will handle routing your remotes to this new url, but we recommend that you update your remote as soon as possible.
NOTE: As part of this change, we have moved all the quickstarts from the /packs directory to the /quickstarts directory. To bring your pull request up to date, please pull in the latest commits from the main branch.
Use the following command to set your new remote:
git remote set-url origin https://github.com/newrelic/newrelic-quickstarts.git

Or with an SSH origin
git remote set-url origin git@github.com:newrelic/newrelic-quickstarts.git

@aliandersonsn @bradleycamacho looks like the description is exceeding max chars (2000) as well as the summary (250)

Resolved in the most recent commit

Closing, these changes were merged as part of https://github.com/newrelic/newrelic-quickstarts/pull/357


Issues with importing certain .dae models

After creating a new .bch file, and right-clicking the Models directory and then clicking Import to import one of the below models, the following errors occur.
https://www.models-resource.com/ds_dsi/supermario64ds/model/22818/
Object reference not set to an instance of an object.
   at IONET.Collada.ColladaImporter.LoadGeometryControllerFromID(Node n, String id)
   at IONET.Collada.ColladaImporter.LoadNodes(Node n, IOBone parent, Matrix4x4 parentMatrix, IOModel model, List1 skeletonIds)
   at IONET.Collada.ColladaImporter.GetScene(String filePath)
   at IONET.IOManager.LoadScene(String filePath, ImportSettings settings)
   at CtrLibrary.Bch.BchModelImporter.Import(String filePath, BCH bchWrapper, H3DModel parent, CtrImportSettings settings) in C:\projects\ctr-studio\Plugins\CtrLibrary\Files\BCH\BchModelImporter.cs:line 27
   at CtrLibrary.Bch.CMDL1.ImportFile(String filePath, CtrImportSettings settings) in C:\projects\ctr-studio\Plugins\CtrLibrary\Files\BCH\ModelWrapper.cs:line 381
   at CtrLibrary.Bch.ModelFolder1.<>c__DisplayClass10_0.<Import>b__1(Boolean o) in C:\projects\ctr-studio\Plugins\CtrLibrary\Files\BCH\ModelWrapper.cs:line 124

https://www.models-resource.com/wii/supersmashbrosbrawl/model/7042/
There is an error in XML document (2, 2).
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader)
   at IONET.Collada.Collada.LoadFromFile(String fileName)
   at IONET.Collada.ColladaImporter.GetScene(String filePath)
   at IONET.IOManager.LoadScene(String filePath, ImportSettings settings)
   at CtrLibrary.Bch.BchModelImporter.Import(String filePath, BCH bchWrapper, H3DModel parent, CtrImportSettings settings) in C:\projects\ctr-studio\Plugins\CtrLibrary\Files\BCH\BchModelImporter.cs:line 27
   at CtrLibrary.Bch.CMDL1.ImportFile(String filePath, CtrImportSettings settings) in C:\projects\ctr-studio\Plugins\CtrLibrary\Files\BCH\ModelWrapper.cs:line 381
   at CtrLibrary.Bch.ModelFolder1.<>c__DisplayClass10_0.<Import>b__1(Boolean o) in C:\projects\ctr-studio\Plugins\CtrLibrary\Files\BCH\ModelWrapper.cs:line 124

https://www.models-resource.com/3ds/thelegendofzeldaocarinaoftime3d/model/13562/
Index was outside the bounds of the array.
   at IONET.Collada.ColladaImporter.LoadGeometryFromID(Node n, String id, List1 vertexEnvelopes)
   at IONET.Collada.ColladaImporter.LoadNodes(Node n, IOBone parent, Matrix4x4 parentMatrix, IOModel model, List1 skeletonIds)
   at IONET.Collada.ColladaImporter.GetScene(String filePath)
   at IONET.IOManager.LoadScene(String filePath, ImportSettings settings)
   at CtrLibrary.Bch.BchModelImporter.Import(String filePath, BCH bchWrapper, H3DModel parent, CtrImportSettings settings) in C:\projects\ctr-studio\Plugins\CtrLibrary\Files\BCH\BchModelImporter.cs:line 27
   at CtrLibrary.Bch.CMDL1.ImportFile(String filePath, CtrImportSettings settings) in C:\projects\ctr-studio\Plugins\CtrLibrary\Files\BCH\ModelWrapper.cs:line 381
   at CtrLibrary.Bch.ModelFolder1.<>c__DisplayClass10_0.<Import>b__1(Boolean o) in C:\projects\ctr-studio\Plugins\CtrLibrary\Files\BCH\ModelWrapper.cs:line 124

Some of those files are incorrectly made, and some just have export issues in general. If you import them into a 3D program like blender, then export as .dae, they should work fine. You'll more than likely need to use a 3D program like blender to properly resize and adjust for the game it is importing over anyways.

Thanks for the tip!


两个小时挂一次，妥妥的，日志全部是0大小

两台ns服务器配置都是最简单的A记录，做了进程退出的检查，发现2小时会挂一次进程，求指导。
顺便求教有没有配置的参考或者guid之类的。。
btw，/var/log/message也没有什么log。。
ns1：
check dnspod process success at Fri Jul 25 12:42:01 CST 2014
check dnspod process success at Fri Jul 25 12:43:01 CST 2014
restart dnspod at Fri Jul 25 12:44:01 CST 2014
check dnspod process success at Fri Jul 25 12:45:01 CST 2014
check dnspod process success at Fri Jul 25 12:46:01 CST 2014
check dnspod process success at Fri Jul 25 14:42:01 CST 2014
check dnspod process success at Fri Jul 25 14:43:01 CST 2014
check dnspod process success at Fri Jul 25 14:44:01 CST 2014
restart dnspod at Fri Jul 25 14:45:02 CST 2014
check dnspod process success at Fri Jul 25 14:46:02 CST 2014
check dnspod process success at Fri Jul 25 14:47:01 CST 2014
check dnspod process success at Fri Jul 25 16:43:01 CST 2014
check dnspod process success at Fri Jul 25 16:44:01 CST 2014
check dnspod process success at Fri Jul 25 16:45:01 CST 2014
restart dnspod at Fri Jul 25 16:46:01 CST 2014
check dnspod process success at Fri Jul 25 16:47:01 CST 2014
check dnspod process success at Fri Jul 25 16:48:01 CST 2014
check dnspod process success at Fri Jul 25 16:49:01 CST 2014
ns2：
check dnspod process success at Fri Jul 25 12:44:01 CST 2014
check dnspod process success at Fri Jul 25 12:45:01 CST 2014
restart dnspod at Fri Jul 25 12:47:01 CST 2014
check dnspod process success at Fri Jul 25 12:48:01 CST 2014
check dnspod process success at Fri Jul 25 12:49:01 CST 2014
check dnspod process success at Fri Jul 25 14:46:01 CST 2014
check dnspod process success at Fri Jul 25 14:47:01 CST 2014
restart dnspod at Fri Jul 25 14:48:01 CST 2014
check dnspod process success at Fri Jul 25 14:49:01 CST 2014
check dnspod process success at Fri Jul 25 14:50:01 CST 2014
check dnspod process success at Fri Jul 25 14:51:01 CST 2014
check dnspod process success at Fri Jul 25 16:47:01 CST 2014
check dnspod process success at Fri Jul 25 16:48:01 CST 2014
restart dnspod at Fri Jul 25 16:49:01 CST 2014
check dnspod process success at Fri Jul 25 16:50:01 CST 2014
check dnspod process success at Fri Jul 25 16:51:01 CST 2014

程序挂掉问题已修复。


Add Pirates of the Keribbean from SpaceDock

This pull request was automatically generated by SpaceDock on behalf of GagaX, to add Pirates of the Keribbean to CKAN.
Mod details:
name = /mod/902/Pirates%20of%20the%20Keribbean
author = GagaX
abstract = This is a fun mod, it adds parts for creating pirate spaceships. So far, there is only dozen or so parts, enough to create simple spaceplanes and rockets.
license = Pirates of the Keribbean by GagaX is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International
Homepage =
description =
Where there is space there are space pirates.
This is a fun mod, it adds parts for creating pirate spaceships. So far, there is only dozen or so parts, enough to create simple spaceplanes and rockets.
Pirates have unique high-tech (magic) propulsion system, so they never run out of fuel (always active fuel generator).
So raise your black flags and off to explore Kerbol system.
Instalation:

extract PoK.zip to GameData folder

have fun!

Please direct questions about this pull request to GagaX.

Well, that's weird. This is actually https://spacedock.info/mod/903 now.


Support TLE for orbit prediction

can probably use this https://www.npmjs.com/package/satellite.js


@directive wrong macro expansion

#define MYSTR my_fn_

inline void my_fn_1() {}
inline void my_fn_2() {}

@directive("#define MYMACRO(idx) MYSTR ## idx")

@kernel void hello_kern() {
    for (int i = 0; i < 10; ++i; @outer) {
        for (int j = 0; j < 10; ++j; @inner) {

            MYMACRO(1)();
            MYMACRO(2)();

        }
    }
}

Original occa outputs:
inline void my_fn_1() {}

inline void my_fn_2() {}

extern "C" void hello_kern() {
#pragma omp parallel for
  for (int i = 0; i < 10; ++i) {
    for (int j = 0; j < 10; ++j) {
      my_fn_1();
      my_fn_2();
    }
  }
}

Current:
inline void my_fn_1() {}

inline void my_fn_2() {}

extern "C" void hello_kern() {
#pragma omp parallel for
  for (int i = 0; i < 10; ++i) {
    for (int j = 0; j < 10; ++j) {
      MYSTR1();
      MYSTR2();
    }
  }

Original OCCA does not follow C/C++ conventions and turns MYMACRO(1) into my_fn_1 while GCC and CLang produce MYSTR1.

OCCA preprocessor expands macro not according to the spec.
Clang and gcc do it identical.

This behavior is not connected with @directive, but with macro expansion and concatenation.
OCCA evaluates MYSTR while GCC and CLang follow the standard.
To achieve a proper result, we must use something like
#define CONCAT(id1, id2) id1##id2 macro, and call it like this: #define MYMACRO(idx) CONCAT(MYSTR, idx)
This behavior is described in more detail here:
https://renenyffenegger.ch/notes/development/languages/C-C-plus-plus/preprocessor/macros/concatenate
https://renenyffenegger.ch/notes/development/languages/C-C-plus-plus/preprocessor/macros/token-paste-operator/index


add support for template literals

This PR implements support for generating Template Literals
Also see discussion at #202
This PR also includes patches discussed in #209 and #210

I've addressed all the review comments so we should be good to go. Let me know if there are any other changes that you'd like me to make.

Great, thanks!


Issue1030: java.lang.RuntimeException: Could not delete the role

#1030 This commit, improves handling of the exception and add logger, so that when you run the tests there is no longer NullPointerException stacktrace, and you get simple one line error: could not delete the role.

@carlspring I think this fix is ready for a review.

Thanks for looking into this! :)


Support modern JSON-LD Signature format

https://github.com/digitalbazaar/jsonld-signatures/issues/66

updated. https://github.com/transmute-industries/PROPOSAL-OpenPgpSignature2019/commit/7810df089d0d3b9e5d3f17a4f4e14405c75a33d3


MAIN fix Textarea defaultValue

we were setting value instead of defaultValue which prevented changing the value

yeah tbh it's been ages since I used this approach I suggest we convert the form components to something more solid like https://github.com/tannerlinsley/react-form later


🐛 Fixing Docusaurus build fixes #224

The issue with the Docusaurus build was broken links. When the md files are used to generate the docusaurus pages nothing is being done to the relative links resulting in broken links
for example:
- [Many more](src/providers/utils/chains-info.ts) needs to become - [Many more](https://github.com/dawsbot/essential-eth/tree/master/src/providers/utils/chains-info.ts)
So I have added this hook to automatically convert relative paths to their corresponding absolute links.
This fix now allows me to build the docusaurus locally, I am not sure to update the broken prod verison of the site for example when I try to build to github pages using this branch it still displays the old broken outdated code.

Here is the build error for reference:


quasar.api reorganization

Reorganizes some of the operations in quasar.api, namely

Removes ResourceDiscovery, moving discovery operations to Datasources
Adds discovery methods to Datasource
Reduces to a single effect type in {Light,Heavy}WeightDatasourceModule
Datasources are no longer identified by name, instead an opaque identifier is generated when one is added
Moves all the Resource* types to quasar.common.resource
Expands ResourcePathType to allow for paths that are both a prefix and a resource

[ch408]
[ch504]

@wemrysi due to the large diff and the shortage of time, are there a couple places you could put comments to point reviewers toward the more semantically important stuff, like the opaque identifiers, for example?

@alissapajer Sure thing.

Decided this was ready for merge. If there is any follow up review it can be addressed in a separate PR.


[Bug] go agent enhance multiple arguments of the same type

Search before asking

[X] I had searched in the issues and found no similar issues.

Apache SkyWalking Component
OAP server (apache/skywalking)
What happened
When using go agent to enhance a function with multiple parameters of the same type, If the function is in the following format: func myFunc(x, y, z string) {}, it can only be obtained in invocation.Args() of Interceptor.BeforeInvoke a parameter x
What you expected to happen
I think we should be able to get the three parameters x, y and z
How to reproduce
Enhance a function like the following
func myFunc(x, y, z string) {}
Anything else
I checked the source code and found that when traversing dst.Field.Names, break was used. Should it be continue?
func EnhanceParameterNames(fields *dst.FieldList, fieldType FieldListType) []*ParameterInfo {
	if fields == nil {
		return nil
	}
	result := make([]*ParameterInfo, 0)
	for i, f := range fields.List {
		var defineName string
		switch fieldType {
		case FieldListTypeParam:
			defineName = fmt.Sprintf("skywalking_param_%d", i)
		case FieldListTypeResult:
			defineName = fmt.Sprintf("skywalking_result_%d", i)
		case FieldListTypeRecv:
			defineName = fmt.Sprintf("skywalking_recv_%d", i)
		}
		if len(f.Names) == 0 {
			f.Names = []*dst.Ident{{Name: defineName}}
			result = append(result, newParameterInfo(defineName, f.Type))
		} else {
			for _, n := range f.Names {
				if n.Name == "_" {
					*n = *dst.NewIdent(defineName)
					break
				}
			}

			for _, n := range f.Names {
				result = append(result, newParameterInfo(n.Name, f.Type))
				break
			}
		}
	}
	return result
}

Are you willing to submit a pull request to fix on your own?

[X] Yes I am willing to submit a pull request on my own!

Code of Conduct

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

For now, I think we only should single name of same type. If you can handle the multiple names, welcome to contribute the codes.

@mrproliu Should we move this to discussion?

Sure. It's just enhancement feature I think.


Emit filter_deleted_event after filter is deleted

Changes:

Emit filter_deleted_event after filter is deleted
refactor event handler error

Related issues:

https://github.com/ainblockchain/ain-js/issues/88

Thanks for review, now merging~


DELETE request structure successfully designed

Created a function to delete users from the temporary database. Can be refactored to serve as a function for deleting listings.

okay


🐛 Closing a PaneItemExpander close the app

Describe the bug
When closing a PaneItemExpander, the app close itself.
To Reproduce
Steps to reproduce the behavior:

Go to https://bdlukaa.github.io/fluent_ui/
Click on NavigationView
Click on account in the example
Click again on account to close the expander

Expected behavior
The Expander should close, and not the app

Looks like a crash, the window goes to black and it prints this error:
Unhandled Exception: 'package:fluent_ui/src/controls/flyouts/flyout.dart': Failed assertion: line 470 pos 12: 'isAttached': This controller must be attached to a FlyoutTarget
The error gets printed when you open the PaneItemExpander, but it does go to black till you close the PaneItemExpander.

will check

error click at PaneItemExpander
I use
git: https://github.com/bdlukaa/fluent_ui.git
which can fix below error at Linux , ios , windows
But I still came below error message at android , no matter using 4.3.0
error message from  android debug:
void _ensureAttached() {
assert(isAttached, 'This controller must be attached to a FlyoutTarget');


feat(autocomplete): add an option to search globally instead of in repo

Closes: #69
This adds an option to search everywhere instead of in the current repository.

Hello @rayrutjes
Any plan on merging this?
Since it's definitely a nice feat and something I would use!

I'm not convinced about this PR @Jackymancs4 .
It seems like you can easily delete the current repository context by hitting the return key.
I do realize this PR is convenient when you already typed something and you want to search in all repositories, but I don't want it to affect all other users that would now have to hit the arrow down key once more to get to their result.

I see. Well, it's a good point..
Would you mind to take a look at #76?
I think it works pretty well, and the whole feature (in a way or another) greatly improve my workflow.

Solved by #76 .


When restart master, Cannot connect host_ip:8080 from docker container because of CATTLE_PREROUTING

With iptables -L -t nat on host, I find that threre is rule not cleared as:
DNAT       tcp  --  anywhere             anywhere             ADDRTYPE match dst-type LOCAL tcp dpt:8086 to:former_master_docker_ip:8080

After deleting this rule , master works.

Seems like it's related to my issue #1702

@bxy09 I haven't been able to reproduce getting the old rule in the iptable upon a restart.
Can you share your Rancher version? Where did you launch Rancher? (AWS, GCE, locally?) and also what was in your setup? (General number of hosts/containers)/

If you can reproduce and provide more information, I will re-open this issue for you. If it's related to #1702, a fix has been made and available.


Base_image comming from a private docker registry on GCP

/kind feature
Hei, is there a way to change the docker builder so that there is a possibility to use as a base_image an image from a private docker registry on GCP?
The credentials in theory could be consumed from GCPManagedBackend, KubeflowGKEBackend, right?
Anything else you would like to add:
This is related to the projects coming from pipenv environments, while fairing is still a perfect way to expose them. Or is there another simple way to customize the Docker file that will run with fairing?
Thank you!

Have you tried giving credentials in secret for the private docker registry?


"Welcome to nginx!" page after git push

I just pushed my app and getting a "Welcome to nginx!" page on the app's subdomain. Everything was working fine before. I tried deis ps:scale web=0 && deis ps:scale web=1 and deisctl restart router@2 (the router on the machine where the app was scheduled) but it didn't work.
deis v1.6.1 on 3 machine ec2 cluster deployed with contrib script.

$ fleetctl journal -f deis-router@2

seems to indicate that it is not receiving any HTTP request when I hit the app's domain so the problem is probably somewhere else up the routing chain.

Doing a new git push deis solved the issue.


Add Backup and Restore monitoring page to DR docs

Fixes DOC-6118, DOC-6646
Added a new backup and restore monitoring page to the DR docs. Some of these metrics may be surfaced elsewhere in the docs (or will be), but the point is to consolidate DR observability on this one page. This first iteration of the page includes the following:

Available metrics (However, after a conversation with David in Slack, it seems that not all available metrics in Prometheus are actually useful. As of opening the PR, I have removed the idle metric as this seems to not be applicable to backup/restore jobs.)
Reference to relevant SHOW SQL statements for further investigation.
Cloud/Self-hosted availability
Prometheus/Datadog metric availability differences and links out to their respective setup instructions.

Preview
https://deploy-preview-16199--cockroachdb-docs.netlify.app/docs/stable/backup-and-restore-monitoring.html

I have specifically called out the last completed metrics and monitoring for a lack of successful backup as recommendations.


Implement a LightChain and a demo RPC server

The RPC server is compatible with web3.py. No tests yet, but I plan to try and come up with some for the LightChain at least. For the demo RPC I think it doesn't make much sense.

:shipit:


Reevaluate the benefits of Groups 7.1

💡 Summary
In the instructions for 7.1 we're asking that groups be initially created with access type of restricted. This seems like a best practice and can easily just easily be bypassed by changing the access type right after creation.

The rego itself checks if all groups are always of access type restricted permissions.

Due to the organizational needs I'm not sure it's viable for us to have a policy that says groups must always disable that anyone in the organization can.

view post
post to
view members of a group.

I think we should delete 7.1 altogether but I'm open to other suggestions.
Motivation and context
Streamlining the ease of use of the SCuBA baselines.
Implementation notes

Either delete or rewrite the instructions for Groups 7.1

Acceptance criteria

[ ] Groups 7.1 has a clearer purpose or is deleted.

The other thing I think worth mentioning, is that the baseline currently appears to be checking for ALL existing groups and whether or not they are restricted. It does not address the actual core of the baseline, which is that NEW groups should be restricted.

We have decided to remove Groups 7.1 for clarity.


feat(authentication): provide access tokens for Google and Facebook

Pull request checklist
Please check if your PR fulfills the following requirements:

[ ] The changes have been tested successfully.
[x] A changeset has been created (npm run changeset).

Close #54
Close #31

npm i<EMAIL_ADDRESS>


LocksInServicesTest intermittent failure

Description:
$title. Failed for https://github.com/ballerina-platform/ballerina-lang/pull/20204 - only a BBE change.
> Task :jballerina-unit-test:test

ballerina-test-suite > jballerina-test > org.ballerinalang.test.lock.LocksInServicesTest > testServiceLvlVarLockBasic FAILED
    org.testng.internal.thread.ThreadTimeoutException: Method org.ballerinalang.test.lock.LocksInServicesTest.testServiceLvlVarLockBasic() didn't finish within the time-out 120000

ballerina-test-suite > jballerina-test > org.ballerinalang.test.lock.LocksInServicesTest > testThrowErrorInsideLock STANDARD_OUT
    ************** waiting inside first request

ballerina-test-suite > jballerina-test > org.ballerinalang.test.lock.LocksInServicesTest > testThrowErrorInsideLock STANDARD_ERROR
    error: error occurred
    	at $value$sample3__service_3:echo(locks-in-services.bal:188)

ballerina-test-suite > jballerina-test > org.ballerinalang.test.expressions.varref.TupleVariableReferenceTest STANDARD_OUT
    	tuple-variable-reference.bal

Failed for https://github.com/ballerina-platform/ballerina-lang/pull/20120 as well.

Fails for https://github.com/ballerina-platform/ballerina-lang/pull/19976 too

Also failed on https://github.com/ballerina-platform/ballerina-lang/pull/20210

Also failed on #20188

Also failed on #20227

The test case is disabled with https://github.com/ballerina-platform/ballerina-lang/pull/20237 and needs to be enabled after fixed this issue.


Reference ol.MapBrowserEvent instead of ol.MapBrowserPointerEvent

There is nothing exportable in ol.MapBrowserEvent in addition to what is exportable in ol.MapBrowserEvent.
Fixes #5414.

MapBrowserPointerEvent is also referred to in http://openlayers.org/en/master/apidoc/ol.events.condition.html (mouseOnly). That seems to be the only reference in the apidocs apart from interaction.Modify

I removed that too now. No more ol.MapBrowserPointerEvent in the API.

LGTM


Incorrect Unused Language Extension Warning when using quasiquotes

{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE OverloadedStrings #-}

import Text.RawString.QQ

import Data.Text (Text)
import Data.Yaml (decode)

f :: Maybe Text
f = decode [r||]

HLint produces this incorrect output:
./error.hs:2:1: Warning: Unused LANGUAGE pragma
Found:
  {-# LANGUAGE OverloadedStrings #-}
Why not remove it.

HLint version:
curl -sL https://raw.github.com/ndmitchell/hlint/master/misc/travis.sh | sh -s . -V
Downloading and running hlint...
######################################################################## 100.0%
HLint v2.0.9, (C) Neil Mitchell 2006-2017

local HLint is fine working:
$ hlint --version
HLint v1.9.35, (C) Neil Mitchell 2006-2016

$ hlint .
No hints

Hmm, I thought the code inside a quasi quote or other template Haskell construct was mostly immune from which language features were in scope, but seemingly not. I wonder if this is a more general issue?
The local vs remote is merely because HLint on the server is a newer version which can detect otherwise unused OverloadedStrings extension pragmas.

reduced dependencies.
-- A.hs
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE OverloadedStrings #-}

import Data.Text (Text)
import QQ (r)

f :: Text
f = [r||]

-- Q.hs
module QQ (r) where

import Language.Haskell.TH
import Language.Haskell.TH.Quote

r :: QuasiQuoter
r = QuasiQuoter { quoteExp = return . LitE . A.hs:2:1: Warning: Unused LANGUAGE pragma
Found:
  {-# LANGUAGE OverloadedStrings #-}
Why not remove it.

1 hint

If delete the OverloadedStrings pragma according to the hint, it looks like this.
$ stack repl --resolver lts-9.5 Q.hs A.hs
A.hs:8:8: error:
    • Couldn't match expected type ‘Text’ with actual type ‘[Char]’
    • In the expression: ("")
      In an equation for ‘f’: f = ("")
Failed, modules loaded: QQ.
Loaded GHCi configuration from /tmp/ghci4802/ghci-script

In general, if you use any QuasiQuotes or TemplateHaskell, then the generated code can make use of extensions will are required by the generated code, but there's no way to tell. That said, I think that if possible template haskell code should make use of as few extensions as possible - e.g. if Text.RawString.QQ is going to generate string literals, it should wrap them in fromString itself rather than turning on an extension to do so.

Ok, I understand.
Thank you. I will do it like that.


wallet UI Scale setup

At Wallet Config there will be setup for UI scale.
That will be applicable to Linux and Windows, but unfortunately it doesn't work for MAC.
This change will require app restart. I am not sure if it will be done automatically (so far automatically doesn't work well).
I think those limitations are acceptable because for that feature we want to target Windows and Linux, MacOs has it's own scale factor and it already works well. Likely because of that QT's scale is not implemented well

Supported by Linux and Windows.  Not supported by MacOS


fix(Landing/GA): Switch from code split to CDN with async scripts in HTML

This is a bug of react-snapshot which do not support for dynamic loading.
0.2bbbb31e.chunk.js:1 Uncaught ReferenceError: webpackJsonp is not defined
    at 0.2bbbb31e.chunk.js:sourcemap:1

Deploy preview ready!
Built with commit a849c8dc09c83fe0d1186f3cb1aae707fc4fbe4d
https://deploy-preview-375--mcs-lite-introduction.netlify.com

Deploy preview ready!
Built with commit a849c8dc09c83fe0d1186f3cb1aae707fc4fbe4d
https://deploy-preview-375--mcslite.netlify.com

Deploy preview ready!
Built with commit a849c8dc09c83fe0d1186f3cb1aae707fc4fbe4d
https://deploy-preview-375--mcs-lite-ui.netlify.com


testing travis-ci & coveralls integrations

testing travis-ci & coveralls integrations

Coverage remained the same at 100.0% when pulling 35865c55d9c292df970ef828cfff7c93c97c943f on chadicus:master into 9468360b643bb251501af61d788dfeb082e693d5 on subjective-php:master.

Coverage remained the same at 100.0% when pulling 35865c55d9c292df970ef828cfff7c93c97c943f on chadicus:master into 9468360b643bb251501af61d788dfeb082e693d5 on subjective-php:master.


String interpolation

Easier than writing:
print("The answer to " + num + " x 2 = " + (num * 2)+ "!");

We can write:
print("The answer to ${num} x 2 = ${num * 2}!");

with the results converted to string via the to_string function, which can also be custom-defined for custom types.
Any ideas to whether we should use a separate string literal character aka JS's `xxx ${...} xxx` vs "xxxxxxx" for non-interpolated string.  Two separate string literal styles typically appear where there is historical baggage -- string interpolation is added on later.
In Rhai, we can simply support "xxxxx ${...} xxxxx" and escaping it for a normal string: "xxxxx \${...} xxxx".

C# fwiw uses $"stuff goes here: {some_thing.thinger}", might be simpler to parse as well?

Many scripting languages I see have a tendency to use ${...} to wrap interpolated stuff for some reason.  I hesitate to use a simple {} because it is just too easy to overlook a {} pair -- I know as I write lots of C# myself.
Also, in Rust and C#, {} in a string is primarily used for enclosing formatting commands -- actually C# uses it for both interpolation and formatting.
What about $"interpolated stuff goes here: ${some_thing.thinger}"?  Too wordy?

I wouldn't mind that last form either, I'm just generally against only having a magic form of like quotes that make it interpolated, so as long as there's a clear prefix for a string literal that makes it an interpolated one I'm good :eyes:
I see the point about potentially overlooking a pair :thinking:

Ironically, Ruby uses #{} for interpolation -- the syntax that is currently in master for hashes! :smile:
I keep thinking about Rhai as a language that is a mixture of Rust and Python, so I am partial to {}. This doesn't seem to be a problem in those languages.
In Python 3, I should note, it's not a problem because they attach string interpolation to the type as a method:
x = 1
y = 2
z = 3
output = "The sum of {} and {} is {}".format(x, y, z);
print(output)

The lack of varadic functions could be worked around with an array or a tuple.

Ironically, Ruby uses #{} for interpolation -- the syntax that is currently in master for hashes! 😄

LOL!

I keep thinking about Rhai as a language that is a mixture of Rust and Python, so I am partial to {}. This doesn't seem to be a problem in those languages.

The problem with {} is that you need more look-ahead for a predictive top-down parser to distinguish between a statement expression and a hash literal.  Or we disable statement expressions, which may actually be heaps better for the evaluator (because a lot of hairy borrow-checker issues will be avoided when an expression cannot mutate state).  However, statement expressions are quite powerful and handy when you need them...

Anything inside quotes are treated in a separate inside loop so we are not limited to syntax that doesn't conflict with other language elements.

If you wanted to, in essence, parse all quotes as a block or an expression, that is true. Python -- again, my inspiration here -- limits you to variable names and a set of formatting operators.
Here is my previous example, this time in binary. Note that the f"" syntax is just sugar for "".format(...):
x = 1
y = 2
z = 17
print(f"The sum of {x:02} and {y:b} is {z:x}") // Get it? Get it!?

What's interesting is that this Python syntax almost lines up with our current definition of a hash. The only differences are, (1) you don't quote the printing options, and (2) they can be entirely omitted, whereas hash values cannot.

I'm personally more inclined to stick to JS/Rust styles because that's what most of Rhai looks like.  And that's what most users will expect.  Python and Ruby are a bit off from C-style syntax.
Some form of prefix quote:
$"...... { xxxxx } ......."
$"...... ${ xxxxx } ......."
#"....... { xxxxx } ......."
f"....... { xxxxx } ......."

or a new character (like JS):
`......... { xxxxxx } .......`
`..........${ xxxxxx } .......`

One of the reasons to use a compound delimiter e.g. ${ ... } instead of a simple {...} pair is that it may be common for string interpolation to be used for generating code - to run under eval perhaps?  Having to constantly escape braces in string interpolation is a pain in such a use case.

Having made a couple suggestions I was not very invested in, just to give perspective, I will conclude with my fairly broad personal opinion. (I now have other areas of the code to make improvements to :wink: ).
So long as formatting is explicitly invoked by f"..." or "...".fmt() or similar, I personally do not have a strong opinion about exactly what the "format this" marker is, or how powerful it is (or isn't).

Great!  I am currently leaning towards $" ....  ${  xxxx  } .... " as unambiguous with the further benefit of being able to format-print Rhai code sliplets for (God forbid) eval.

Well, from my personal usage experience, it seems that print("hello: " + x + " worlds!") is not too bad compared with print($"hello: ${x} worlds!").
So closing this.

Reopening this as #380 brings up the need for literal strings, which now has an implementation aka JavaScript: `this is a literal string`.
Now do we start supporting JavaScript-like string interpolation?
`this is a liter string... the answer is ${answer}!`

I think any form of string interpolation is good:
`this string has an answer ${computed_answer}`
$"This is my string with variable: {something.something}"

I think any form of something like the above is good, but something like this is too cumbersome:
mystring = "something here {}, and here {}".format(1, 2)

Personally I like the back-tick and ${...} for interpolation, but it may be just me.

I would vote for JavaScript/TypeScript-like syntax too. Mostly just because of personal preferences as a pro JavaScript developer. But Rhai design already have strong inspiration from the JavaScript world, so keeping this new feature in sync too could be a reason.

A pity that the interpolation feature will be greatly simplified by generators (basically turning a tokens stream into a recursive generator), but it is nightly at this point...

From my experience, I believe that using backticks to create template literal strings is a clear and popular alternative for a script perspective.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals

Now that Rhai has back-ticks for literal strings, all that's remaining is to implement ${ ... } interpolation.
Not a simple matter without using generators (nightly-only) to turn a recursive function into an iterator stream.
Alternative is to build a stack-based parsing stream hopping in/out of string and interpolation modes, but that would essentially be writing the generator by hand.  Might as well wait for generators to land in stable?

On the other hand, I just realize that generators is still very much experimental and unlikely to show up in stable any time soon.  So, maybe I'll spend some time over this coming Easter to try and implement it...
I don't want to do it via recursive parsing, because that would defeat the ability of the Playground to syntax-color the interpolation code.  It really needs to be parsed to one flattened token stream.

String interpolation via `... ${ ... } ...` has now landed: https://github.com/rhaiscript/rhai/pull/388

Unfortunately, it still uses recursive parsing, meaning that the Playground is likely not able to recognize interpolated strings because it uses only the tokenizer. Without a parser, the tokenizer has no way to tell when an interpolated string ends.
@alvinhochun do you have any ideas how to resolve this?

The tokenizer is stateful, so if you store the nesting level into the state it should be able to handle it, similar to how nested comments are handled. However, I haven't looked at how easy it is to adapt your implementation to do this.

The problem is with providing the correct nesting level.  The tokenizer by itself only look at a stream of characters.  It has no knowledge of Rhai syntax.  Therefore, once it starts having ${, there is no mechanism for it to know which } it should stop at and start parsing everything as a string again.

It may be possible to plug the parser into the CodeMirror tokenizing code, but this is quite heavy, and since CodeMirror caches the tokenizer state at the start of every line, this would mean storing the whole AST from the start up to a point for every single line, not to mention that I will have to rewrite the tokenizing code... I would rather not have the parser involved here.
I would think that tracking brace pairs would be the simplest solution here. The Playground does not support custom syntax and will probably never support it by default.
Does custom syntax allow overriding the syntax to the point that the number of left and right braces does not have to match (except when inside normal string literals or comments)?

The Playground does not support custom syntax and will probably never support it by default.

Ah.  That's a good point.  This is the key.  We can probably count braces.

Does custom syntax allow overriding the syntax to the point that the number of left and right braces does not have to match (except when inside normal string literals or comments)?

Yes, technically it does.  It allows any stream of symbols behind a unique custom keyword.

There is a new Token variant called InterpolatedString which means that the string is terminated by ${.
It is further facilitated by reading off the $ character, leaving the { opening brace to parse the following as a complete Rhai statements block.  Which means that Token::InterpolatedString is always followed by {.
So theoretically, we push a layer when we read an Token::InterpolatedString, and then count braces.  When we read another Token::InterpolatedString, we push another layer, and so on.
However, after the closing brace for interpolation, there is no way for the tokenizer to know that it should switch back to text mode.  In Rhai right now I hack it by pushing a ` character into the stream.  I'll need to change it such that get_next_token takes an additional parameter so you can switch back into text mode.

OK, I've added a new field to TokenizeState called is_within_text_terminated_by which is Option<char>.  Set it to Some('`') to switch back to text mode.  This seems to be the simplest way.

OK, closing this for the time being.  Interpolation will be included for the next release.


Bumps golang version to 1.15

This bumps the golang version to 1.15.  I don't see anything major in the release notes (https://golang.org/doc/go1.15) that would be likely to benefit this container, but there are some binary size reductions and general improvements that seem good to bring it.
It builds for me, so hopefully that's enough testing.  If not, let me know what else I can do.

Thank you! 👍

Hopefully I didn't break the build?  https://github.com/qdm12/cloudflare-dns-server/actions/runs/421441383

Probably not you, I'll dig into it tonight/tomorrow! Might be some Alpine packages no longer available on some strange platform like armv6

Fixed, yes it was Alpine not willing to install packages because of some C dependencies on some strange platforms (386, amv7)... Anyway fixed it somehow now 👍
Also we saved 200KB!!! From 41.3MB to 41.1MB 😄 Actually for the sake of curiosity...

So 27MB is because of Unbound and 8.1MB due to the Go binary 😉


Turn warnings in prototype datasets tests into errors

I noticed a couple of warnings in the prototype datasets test suite:
test/test_prototype_builtin_datasets.py: 341 warnings
  /home/circleci/.local/lib/python3.7/site-packages/torch/utils/data/datapipes/utils/common.py:110: DeprecationWarning: _DataPipeMeta and its functional API are deprecated and will be removed from the package `torch`. Please use ZipArchiveLoader instead.
    new_name_statement, DeprecationWarning)

test/test_prototype_builtin_datasets.py: 860 warnings
  /home/circleci/.local/lib/python3.7/site-packages/torch/utils/data/datapipes/utils/common.py:110: DeprecationWarning: _DataPipeMeta and its functional API are deprecated and will be removed from the package `torch`. Please use TarArchiveLoader instead.
    new_name_statement, DeprecationWarning)

test/test_prototype_builtin_datasets.py: 10 warnings
  /home/circleci/.local/lib/python3.7/site-packages/scipy/io/matlab/mio5.py:493: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
    narr = np.asanyarray(source)

test/test_prototype_builtin_datasets.py: 18 warnings
  /home/circleci/project/torchvision/prototype/features/_image.py:38: UserWarning: Unable to guess a specific color space. Consider passing it explicitly.
    warnings.warn("Unable to guess a specific color space. Consider passing it explicitly.")

From top to bottom this PR does the following to fix them:

Replace the deprecated (Zip|Tar)ArchiveReader with (Zip|Tar)ArchiveLoader. This is related to the first two warnings although it is not immediately clear. See pytorch/data#322 for details.
Suppress a warning emitted by internals of scipy.io.savemat that we have no control over
Fix an error PCAM dataset that was missed during review that leads to a warning in the test suite.

Additionally, this PR enforces that in the future datasets test are not allowed to raise any warnings.

If this comes back to bite us (see https://github.com/pytorch/vision/pull/5540#discussion_r835362547): @pytest.mark.filterwarnings("error:::torch(vision|data)?.*") is the decorator that will only fail the tests in case the warning is coming from torch, torchvision, or torchdata.


S3 tls cert

Issue
The s3 interface may pass us a tls certificate if the connection to the bucket is encrypted.
In my understanding we have no guarantee that that is the same cert we'd be getting by relating to the authority directly. So it may be that we need one certificate for tempo itself, and a different one for encrypting communications with s3.
Solution
get the cert from the s3 relation and put it in the s3 configuration block as per (for example) tempo docs
TBD:

is this config uniform for loki and mimir?
we get a CA chain from the s3 charm, but we need a single cert to configure the storage in the coordinator. which cert do we use?

allright this is not the right way. will open a new pr with a fix


linux support and cli args bypassing

Hello!
I made some changes to your perfect tool:

fix binaries download on linux - your code in lib/download.js checked platform for 'linux', but it is actually called with 'linux-x64' or 'linux-ia32' values
added showing the stderr and stdout of nw.js (useful for debugging)
removed minimist dependency and added bypassing cli arguments to nw.js (really useful for things lik remote debugging and so on)

Please test my changes in windows (and mac if possible) since I do not use them.
Thanks for your work!

I have also fixed code style to a more common one using fixmyjs tool, if you do not mind.

Thx, it works.


Check for nil arguments and throw errors in such a case

related to: https://github.com/fabric8-services/fabric8-wit/issues/1524

@hectorj2f snapshot fabric8-wit image is available for testing.  docker pull docker.io/fabric8/fabric8-wit:SNAPSHOT-PR-1533-1

@hectorj2f snapshot fabric8-wit image is available for testing.  docker pull docker.io/fabric8/fabric8-wit:SNAPSHOT-PR-1533-2


Flow doesn't like defaulting arguments to this.foo

I'm not sure what the spec says about this, but flow and babel are out of sync here.
class Foo {
  a = 42;
  bar(a = this.a) {
    console.log(a);
  }
}

new Foo().bar()

Flow claims that in the assignment to this.a that this is global.  Babel transpiles it to the class instance.

It should be fixed quite soon, there's an open PR #3334 to fix that!

For posterity, here's my breakdown of the spec confirming Babel's behavior:

<IP_ADDRESS>, Step 7.a.i gets the thisValue of a .-ed member expression
Step 11 returns EvaluateDirectCall(func, thisValue, arguments, tailCall).
Step 5 of EvaluateDirectCall delegates to Call ( F, V [ , argumentsList ] )
Call runs the internal [[Call]] method of the function
Step 4 of [[Call]] runs PrepareForOrdinaryCall (which is what sets the [[HomeObject]] for use by super by way of NewFunctionEnvironment)
Step 6 of [[Call]] -> OrdinaryCallBindThis ( F, calleeContext, thisArgument ) which sets this in the lexical environment
Step 7 of [[Call]] -> OrdinaryCallEvaluateBody ( F, argumentsList )
OrdinaryCallEvaluateBody calls EvaluateBody
EvaluateBody calls FunctionDeclarationInstantiation
9.2.12 - FunctionDeclarationInstantiation ( func, argumentsList ), Step 27 is where we evaluate defaults as part of a function call.
Step 27.b creates a new lexical environment with a parent equal to the outer environment
Step 27.f then goes on to evaluate the defaults in this new environment


localCI: do not re-test a pull request failed

localCI re-tests a pull request failed even if it has not
changed (no new commits), this is a wrong behavior because a
pull request must be re-tested only when it has
changed (new commits).
fixes #416
Signed-off-by: Julio Montes<EMAIL_ADDRESS>

lgtm


1.12.62: how to define set_hwaddr for network interfaces?

With the new naming interface naming scheme introduced several years ago, it is cirtical to be able to define the property set_hwaddr for network interfaces. Is there a way to do it in Aquilon? Failure to do it means you endup with unpredictible names, not recognized as valid by most commands doing a validation of the interface names (like the aq command and several Quattor configuration modules), except by setting some specific kernel/Grub flags but it is not the recommended way.

We just have the following in archetype/base:
'/system/network/interfaces' = foreach(k; v; SELF) {
    SELF[k]['set_hwaddr'] = true;
    SELF;
};

I was also not aware of the possibility to set it globaly. Makes the workaround easy. But I still think that Aquilon should set this flag in the hostdata plenary template. I don't have a clear picture if using this flag can be harmful and has to be somewhat conditional.

IMHO these days it's more harmful to not set it. I don't think aquilon should support it, it seems more like a site policy decision possibly based on OS behaviour with different generations of hardware.

I was also not aware of the possibility to set it globaly. Makes the workaround easy. But I still think that Aquilon should set this flag in the hostdata plenary template. I don't have a clear picture if using this flag can be harmful and has to be somewhat conditional.

But Aquilon hosts encompass more than just Linux. On other Ones and archetypes it's not allowed so you cannot put such a thing in the plenaries.

Good point! We then need to make it clear in the documentation. I have an update of the base templates underway, I'll add it.

@jrha not shure to understand your point. Do you want to say that this property default should be true rather than false in the schema? Or Do you want to say that it is more harmful to set it and we should not change anything, just inform the site that it has to decide (my current approach in https://github.com/quattor/quattor.github.com/pull/255)?


Cannot debug anymore with VSCode in my typescript Angular application

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: 1.95.1
OS Version: Windows 11

Steps to Reproduce:

Debug any typescript project or Angular project

Possible duplicate of #210717


Extended HG.GeneralSerializer.StringSerializer support

The HG.GeneralSerializer.StringSerializer is a class used mainly for Serializing data into Strings.
This class is mainly used by the EntityStateConfiguration system and the EntityStateCatalog, outside of regular VS mods which set the entity state fields directly via code, Thunderkit made mods utilize the EntityStateConfiguration class. this class, as the name suggests, its used to configure an EntityState's Static and Instance fields.
While greatly useful, the StringSerializer doesnt serialize Types other than the ones it has, and in my opinion, having extra serializers could be extremely useful in the long run for mods that use the StringSerializer in EntityStateConfiguration or in other ways.
This is why i decided to create a class that could extend the functionality of the StringSerializer by hookingg it's methods, this new class adds the following SerializationHandlers for the following types:

LayerMask
Vector4
Rect
RectInt
char
Bounds
BoundsInt
Quaternion
Vector2Int
Vector3Int
Any enum.

I was debating originally wether or not this should belong on the bepinexpack, or as a regular R2API submodule, however, under the pretense of the existence of other classes which add QOL elements for developers. I've decided to should be in BepinexPack so everyone can recieve the improvements this provides.
The posibilities of this PR are already implemented on RoR2EK's Indev master. where it can now use Enums, Bounds and More.

Not exactly runtime related, but i've already used the features in this PR to fully implement these new serialization options into the up and coming EditorSetting revamp for RoR2EditorKit, including all these new goodies for the MapNode placer.

So unless I'm missing something someone need to implement the corresponding tools in the editor so that this PR can be used?

So unless I'm missing something someone need to implement the corresponding tools in the editor so that this PR can be used?

Technically speaking yes. however, these aforementioned tools are already implemented on R2EK's side.
Given the nature of how ECS works, you still need an Editor to make the experience of working with it pleasurable, otherwise it becomes a dizzying nightmare of nested fields within fields., the picture of the original post of the PR shows these fields working inside an ECS using the Inspector ror2ek provides.

i'm a bit hesitant to merge this in this repo as it seems more like a feature set for editor workflow than really something that attempt to fix something that the game does wrong in the first place that hinder modding.

i'm a bit hesitant to merge this in this repo as it seems more like a feature set for editor workflow than really something that attempt to fix something that the game does wrong in the first place that hinder modding.

its indeed not something that the game does "wrong" persay, the serializer by itself works just fine as it is, my intention with this increased serialization posibilities was to ensure better ways to configure the behaviour of custom entity states.
Serializing something like enums for special, in state behaviours is a bit more difficult for example, Serializing enums is not possible under the default game, so you can either:
a. Serialize the enums manually as a numerical value, and then utilize casting to cast into the enum
b. Serialize the enum manually using the enum name, and then deserialize manually using Enum.Parse
This is an issue, as either way can be prone to failure due to the nature of not knowing exactly the values at the top of someone's head. one of the Starstorm events are forced to serialize enums using strings to determine how close a nemesis spawn should happen (IE: DirectorPlacementRule.PlacementMode).
While its true that the ECS system is basically not used by code mods and mainly used for editor based mods, i do believe having these serialization options could be useful regardless, as you could still use the StringSerializer system to serialize other types of data if need be. Even if this benefits more editor based mods, i cant bundle the feature directly into ror2ek as i cannot allow runtime features to be needed for R2EK features to work correctly
(Keep in mind, the extra serializable types in the ECS are only enabled right now if the bepinexpack is found in the editor using preprocessor directives)

I think this is better as a feature in r2api editor extensions

Closing this as we've talked this should belong more in r2api than in bepinexpack.


DirectlineStreaming - Retrying connection after end

We're using the beta version of botframework-streaming for DirectlineStreaming on Node.
After a successful call which we end by calling directLine.end(), we're getting a warning on the console "Retrying connection Disconnected" every 7.5m more or less, and it never stops.

cc @compulim

Related to icm 361075809

@compulim could you provide an update on this, please?

pr is in progress: https://github.com/microsoft/BotFramework-DirectLineJS/pull/393

Fixed, closing this.


OCM-2361 Support generated account_role_prefix

This PR allows supplying of an empty string for account_role_prefix
If the string of account_role_prefix is an empty string - the module will generate a new prefix that starts with "account-role-" and ends with a random string in length 4.

/approve
/lgtm


Adding lead_time to torch DeepAR and trivial predictor

Issue #1861 (related but not solving)
Description of changes:

adding lead_time to DeepAR pytorch implementation.
adding lead_time to trivial/ConstantValuePredictor

I am pretty new to GluonTS and it is likely I am missing some parts for implementing this properly. Those involve my current understanding of the framework as well as the DeepAR model (as per this comment).
The changes "just work" on my setup.
Note: I am not able to run mypy as the number of failures is high and they are unrelated to the changes I am making. Same for pytest. black has be run over the changes.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Please tag this pr with at least one of these labels to make our release process faster: BREAKING, new feature, bug fix, other change, dev setup

Thanks for starting this! (And for the related deep dive in #1936!)

The changes "just work" on my setup.

I understand the changes to the splitters, which make room for the additional lead_time time point at the end when iterating and splitting the data. At a high level those appear to be the required ones.
However, for DeepAR, I'm not sure that the right thing is happening under the hood: thinking about how the underlying RNN is used, what I mentioned in my comment should translate into the DeepAR module doing the following:

have a lead_time parameter too
the forward method producing lead_time + prediction_length many samples (along the time axis), only to chop-off the first lead_time
related changes to the lightning module used for training

Given this is it's not a trivial change, I think it would be nice to have some evidence showing that the estimator and module are doing the right thing with lead_time (for training and prediction, respectively). A simple example with some artificial, periodic data could be enough maybe.
Note that this results in the model doing all the work for the entire lead_time + prediction_length range, only discarding part of it. Arguably, a simpler way to get the same result is to leave the code as it is, set the estimator's prediction_length to lead_time + prediction_length when constructing it, and just post-process the forecasts that come out of the model (ignore their initial lead_time length).


iwi live - enable activities and appointments

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 84.32%. Comparing base (31a0254) to head (76181f0).

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #1046   +/-   ##
=========================================
  Coverage     84.32%   84.32%
  Complexity     3676     3676
=========================================
  Files           381      381
  Lines         12393    12393
  Branches       1059     1059
=========================================
  Hits          10450    10450
  Misses         1460     1460
  Partials        483      483

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Theme Toggler Drawer in Flutter

The link of the dart pad is https://dartpad.dev/9abeece87fbd65cf36cf50084b91f5fc In this, I had implemented a drawer to toggle between dark theme and light theme in Flutter.

@divyanshub024 Pls, have a look at it.

Hey @irahulcse!! Thanks for your contribution but I cannot add this sample as setstate is not the right way to change theme dynamically which will reflect a whole app.

Hi, @divyanshub024 I had updated the Dartpad.dev code. And it's working fine without the setState method. The link of the pad is https://dartpad.dev/4ffc9c4a0520ecb48e7c35a7983a7df3. Pls, have a look at it.

@irahulcse There is 1 issue. check the logs.
Close instances of `dart.core.Sink` - line 53

Yes, This also bothered me. I am trying to solve it by reading different issues. But, till now it seems fine, Is this some kind of warning?
I am right now referring to the following:

https://github.com/dart-lang/linter/issues/341
https://github.com/dart-lang/linter/issues/1446

In one of the issues, I had also read that if you moved to the analysis_options.yaml file present in the Flutter directory. In this also, very mentioned about the close.sinks.
Attaching the SC of that file:


Installer for Ubuntu 18.04 or 16.04

Hi .
I tried the Docker but failed and I don't know why it's failed to build .
I went though https://github.com/evanmak/savior-source/tree/master/Docker script for building, built with some errors and now there are some problem on llvm_mode directory of AFL .
Seems there are problems around Savior installation process.
Would you please make it more convenient and compatible to work with ubuntu 18.04 ? (Failed about installing in that also) .
I would appreciate if you can make a clean installation or a vbox image for it .
Thanks

Thanks for reporting. We've tested a clean install in ubuntu 14.04 (iirc 16.04 should work as well @DanielGuoVT did you test this version?).

Would you please make it more convenient and compatible to work with ubuntu 18.04 ? (Failed about installing in that also) .
I would appreciate if you can make a clean installation or a vbox image for it .

I apologize for the usability issue, Unfortunately, I do not have enough cycle to upgrade this open source version. There is an internal version actively maintained in Baidu Inc. Maybe they will release that.


Expand/Collapse all context menu and tooltip

Started adding an expand/collapse all context menu when i realized the "+" "-" is exactly for that.

I should update the README.md to show that it changed from E and C to + -. But will close this since it was dup


Need help with build from source

Note: Providing complete information in the most concise form is the best way to get help. This issue template serves as the checklist for essential information to most of the technical issues.
If the issue is non-technical, feel free to present the information in what you believe is the best form.
Description
(Brief description of the problem in no more than 2 sentences.)
@yajiedesign : Can you provide info on what OS, compiler, IDE, CUDA toolkit, version CUDNN and OpenBLAS (or MKL) you have used to make the pre-built binaries? I guess the source was mxnet 0.11?
I could built with CPP_PACKAGE: mxnet 0.95, but mxnet 0.11 only on CPU but not with CUDA 8.0 or CUDA 9.0. mxnet 0.12 also massive errors when compiling.
Environment info (Required)
Windows 10 or Windows 8.1, both 64-bit
What to do:
1. Download the diagnosis script from https://raw.githubusercontent.com/apache/incubator-mxnet/master/tools/diagnose.py
2. Run the script using `python diagnose.py` and paste its output here.

Package used (Python/R/Scala/Julia):
(I'm using ...)
For Scala user, please provide:

Java version: (java -version)
Maven version: (mvn -version)
Scala runtime if applicable: (scala -version)

For R user, please provide R sessionInfo():
Build info (Required if built from source)
Compiler (gcc/clang/mingw/visual studio):
MXNet commit hash:
(Paste the output of git rev-parse HEAD here.)
Build config:
(Paste the content of config.mk, or the build command.)
Error Message:
(Paste the complete error message, including stack trace.)
Minimum reproducible example
(If you are using your own code, please provide a short script that reproduces the error. Otherwise, please provide link to the existing example.)
Steps to reproduce
(Paste the commands you ran that produced the error.)

What have you tried to solve it?

the perbuild is compiling in win10. vs2015 cuda8.0 cudnn7.0  OpenBLAS with vc14 base package v2, and opencv 3.3.0

Hi Hu,
Thanx for the swift response.
Did you compile Opencv 3.3.0 with CUDA support?
Regards,
Fred Hugen
From: Hu Shiwen<EMAIL_ADDRESS>Sent: 13 November 2017 02:00
To: yajiedesign/mxnet
Cc: Fred Hugen; Author
Subject: Re: [yajiedesign/mxnet] Need help with build from source (#22)
the perbuild is compiling in win10. vs2015 cuda8.0 cudnn7.0 OpenBLAS with vc14 base package v2https://github.com/yajiedesign/mxnet/releases/download/weekly_binary_build_v2/prebuildbase_win10_x64_vc14_v2.7z, and opencv 3.3.0
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/yajiedesign/mxnet/issues/22#issuecomment-343783950, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AYu6QVnyaCHmoikzXbP5NzA4HpHupEyjks5s15SVgaJpZM4QbCp7.

no use cuda support.

Thanks gain, i’ll try.
Fred
Verzonden vanaf mijn Windows 10-telefoon
Van: Hu<EMAIL_ADDRESS>Verzonden: maandag 13 november 2017 17:31
Aan<EMAIL_ADDRESS>CC: Fred<EMAIL_ADDRESS><EMAIL_ADDRESS>Onderwerp: Re: [yajiedesign/mxnet] Need help with build from source (#22)
no use cuda support.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/yajiedesign/mxnet/issues/22#issuecomment-343974344, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AYu6QVMyy38SZ97N7RDhKA74qU6okoegks5s2G36gaJpZM4QbCp7.


Safari throws an error when extending HTMLElement

class MyClass extends HTMLElement {}
Will throw an "Potentially unhandled rejection [2] getProtoParent" error on Safari 8.1
typeof HTMLElement
Will be an 'object' on Safari (HTMLElementConstructor) and a 'function' on Chrome

Known old Safari bug.
https://bugs.webkit.org/show_bug.cgi?id=74193

Extending builtins is not working even when the browser correctly reports HTMLElement as a function. The call to super() does not work in Traceur.

Its works see: https://github.com/babel/babel/issues/1548

Here is an example @ycon:
if (typeof HTMLElement !== 'function'){
var _HTMLElement = function(){};
_HTMLElement.prototype = HTMLElement.prototype;
HTMLElement = _HTMLElement;
}

@SerkanSipahi Thanks! This hack works.

@trusktr :)


Make it easier collect the result of a matched pattern

CIR-2017-177
Something like a shorthand syntax for a subquery that combines (OPTIONAL) MATCH, collect(...) and RETURN would be really useful, in particular for creating object hierarchy projections from the graph.
One thought would be to use something like a comprehension syntax for this. Something like this:
MATCH (user:Person{username:$username})
RETURN [
    MATCH (user)-[:FRIEND]-(friend)
    RETURN friend.username
] AS friends

Would be a shorthand for:
MATCH (user:Person{username:$username})
OPTIONAL MATCH (user)-[:FRIEND]-(friend)
WITH user, collect(friend.username) AS friends
RETURN friends

This particular example is deliberately kept simple, in order to capture only the essence of the proposal, but even if the syntactic saving isn't very substantial, there is a clear benefit to having the scope delineation take care of the grouping of friends per user that the superfluous variable in the aggregating WITH statement is otherwise needed for.

Pattern comprehension syntax as implemented in Neo4j:
MATCH (user:Person {username: $username})
RETURN [(user)-[:FRIEND]-(friend) WHERE friend.age > $age | friend.username] AS friends

(Updated the original comment with the name of the CIR)


[Billing]  Advanced Data Security for SQL Database and ASC billing

From the recent update, now the alert log of Advanced Data Security for SQL Database will be stored in to the ASC storage, instead of storage account.
Does ASC will change for the stored log?

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

ID: 75c7f3f6-1c1e-0654-f2e7-79dbfbcc433b
Version Independent ID: da1ac295-09fd-f240-3f61-a09f3cb94dac
Content: Azure Security Center frequently asked questions (FAQ)
Content Source: articles/security-center/security-center-faq.md
Service: security-center
GitHub Login: @monhaber
Microsoft Alias: monhaber

@KeiroKamioka0000 Thank you for your query . We will investigate and update further.

@KeiroKamioka0000 Can you please provide us the document link about the recent update on alert log of Advanced Data Security for SQL Database you are referring to ?

@SaurabhSharma-MSFT
Sorry, actually I don't have the document for that, we are informed that Azure had some update for Advanced Data Security for SQL Database from the customer.

@KeiroKamioka0000 I am currently unaware of any changes like you have mentioned. Please provide the document if you find anything over here so that I can check what feature you are talking about.
We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


EXE not doing anything

Describe the bug
The exe on the victims pc, when run does nothing
Expected behavior
Open and create channels on discord to run commands to control the malware on the pc

OS: Windows 10
Python Version: [e.g. 3.11.6]

I'm having the same issue and more...

If a windows powershell opens and closes shortly after the exe is executed the malware works you probably used a invalid bot token

If a Windows PowerShell opens and closes shortly after the exe is executed the malware works you probably used an invalid bot token

the PowerShell never opens but I can see it attempting to do something because my cursor has the loading icon
my bot has all intents enabled and connected to my discord server, I am not sure what is going on

Same thing here

Turn on bot intents in the dev portal and make sure that your bot token is valid and that the bot is in your server.

Already have