GradCAM with SSD model producing zero gradients for some Conv layers

I have implemented the GradCAM algorithm with an SSD model and I was able to generate the heatmap only for few layers. The convolutional layers towards the end of the model produce empty(zero) gradients. This is the architecture of the model used.
Model: "model"
__________________________________________________________________________________________________
 Layer (type)                   Output Shape         Param #     Connected to
==================================================================================================
 input_1 (InputLayer)           [(None, 300, 300, 3  0           []
                                )]

 identity_layer (Lambda)        (None, 300, 300, 3)  0           ['input_1[0][0]']

 input_mean_normalization (Lamb  (None, 300, 300, 3)  0          ['identity_layer[0][0]']
 da)

 input_channel_swap (Lambda)    (None, 300, 300, 3)  0           ['input_mean_normalization[0][0]'
                                                                 ]

 conv1_1 (Conv2D)               (None, 300, 300, 64  1792        ['input_channel_swap[0][0]']
                                )

 conv1_2 (Conv2D)               (None, 300, 300, 64  36928       ['conv1_1[0][0]']
                                )

 pool1 (MaxPooling2D)           (None, 150, 150, 64  0           ['conv1_2[0][0]']
                                )

 conv2_1 (Conv2D)               (None, 150, 150, 12  73856       ['pool1[0][0]']
                                8)

 conv2_2 (Conv2D)               (None, 150, 150, 12  147584      ['conv2_1[0][0]']
                                8)

 pool2 (MaxPooling2D)           (None, 75, 75, 128)  0           ['conv2_2[0][0]']

 conv3_1 (Conv2D)               (None, 75, 75, 256)  295168      ['pool2[0][0]']

 conv3_2 (Conv2D)               (None, 75, 75, 256)  590080      ['conv3_1[0][0]']

 conv3_3 (Conv2D)               (None, 75, 75, 256)  590080      ['conv3_2[0][0]']

 pool3 (MaxPooling2D)           (None, 38, 38, 256)  0           ['conv3_3[0][0]']

 conv4_1 (Conv2D)               (None, 38, 38,<PHONE_NUMBER>     ['pool3[0][0]']

 conv4_2 (Conv2D)               (None, 38, 38,<PHONE_NUMBER>     ['conv4_1[0][0]']

 conv4_3 (Conv2D)               (None, 38, 38,<PHONE_NUMBER>     ['conv4_2[0][0]']

 pool4 (MaxPooling2D)           (None, 19, 19, 512)  0           ['conv4_3[0][0]']

 conv5_1 (Conv2D)               (None, 19, 19,<PHONE_NUMBER>     ['pool4[0][0]']

 conv5_2 (Conv2D)               (None, 19, 19,<PHONE_NUMBER>     ['conv5_1[0][0]']

 conv5_3 (Conv2D)               (None, 19, 19,<PHONE_NUMBER>     ['conv5_2[0][0]']

 pool5 (MaxPooling2D)           (None, 19, 19, 512)  0           ['conv5_3[0][0]']

 fc6 (Conv2D)                   (None, 19, 19, 1024  4719616     ['pool5[0][0]']
                                )

 fc7 (Conv2D)                   (None, 19, 19, 1024  1049600     ['fc6[0][0]']
                                )

 conv6_1 (Conv2D)               (None, 19, 19, 256)  262400      ['fc7[0][0]']

 conv6_padding (ZeroPadding2D)  (None, 21, 21, 256)  0           ['conv6_1[0][0]']

 conv6_2 (Conv2D)               (None, 10, 10,<PHONE_NUMBER>     ['conv6_padding[0][0]']

 conv7_1 (Conv2D)               (None, 10, 10, 128)  65664       ['conv6_2[0][0]']

 conv7_padding (ZeroPadding2D)  (None, 12, 12, 128)  0           ['conv7_1[0][0]']

 conv7_2 (Conv2D)               (None, 5, 5, 256)    295168      ['conv7_padding[0][0]']

 conv8_1 (Conv2D)               (None, 5, 5, 128)    32896       ['conv7_2[0][0]']

 conv8_2 (Conv2D)               (None, 3, 3, 256)    295168      ['conv8_1[0][0]']

 conv9_1 (Conv2D)               (None, 3, 3, 128)    32896       ['conv8_2[0][0]']

 conv4_3_norm (L2Normalization)  (None, 38, 38, 512)  512        ['conv4_3[0][0]']

 conv9_2 (Conv2D)               (None, 1, 1, 256)    295168      ['conv9_1[0][0]']

 conv4_3_norm_mbox_conf (Conv2D  (None, 38, 38, 84)  387156      ['conv4_3_norm[0][0]']
 )

 fc7_mbox_conf (Conv2D)         (None, 19, 19,<PHONE_NUMBER>     ['fc7[0][0]']

 conv6_2_mbox_conf (Conv2D)     (None, 10, 10, 126)  580734      ['conv6_2[0][0]']

 conv7_2_mbox_conf (Conv2D)     (None, 5, 5, 126)    290430      ['conv7_2[0][0]']

 conv8_2_mbox_conf (Conv2D)     (None, 3, 3, 84)     193620      ['conv8_2[0][0]']

 conv9_2_mbox_conf (Conv2D)     (None, 1, 1, 84)     193620      ['conv9_2[0][0]']

 conv4_3_norm_mbox_loc (Conv2D)  (None, 38, 38, 16)  73744       ['conv4_3_norm[0][0]']

 fc7_mbox_loc (Conv2D)          (None, 19, 19, 24)   221208      ['fc7[0][0]']

 conv6_2_mbox_loc (Conv2D)      (None, 10, 10, 24)   110616      ['conv6_2[0][0]']

 conv7_2_mbox_loc (Conv2D)      (None, 5, 5, 24)     55320       ['conv7_2[0][0]']

 conv8_2_mbox_loc (Conv2D)      (None, 3, 3, 16)     36880       ['conv8_2[0][0]']

 conv9_2_mbox_loc (Conv2D)      (None, 1, 1, 16)     36880       ['conv9_2[0][0]']

 conv4_3_norm_mbox_conf_reshape  (None, 5776, 21)    0           ['conv4_3_norm_mbox_conf[0][0]']
  (Reshape)

 fc7_mbox_conf_reshape (Reshape  (None, 2166, 21)    0           ['fc7_mbox_conf[0][0]']
 )

 conv6_2_mbox_conf_reshape (Res  (None, 600, 21)     0           ['conv6_2_mbox_conf[0][0]']
 hape)

 conv7_2_mbox_conf_reshape (Res  (None, 150, 21)     0           ['conv7_2_mbox_conf[0][0]']
 hape)

 conv8_2_mbox_conf_reshape (Res  (None, 36, 21)      0           ['conv8_2_mbox_conf[0][0]']
 hape)

 conv9_2_mbox_conf_reshape (Res  (None, 4, 21)       0           ['conv9_2_mbox_conf[0][0]']
 hape)

 conv4_3_norm_mbox_priorbox (An  (None, 38, 38, 4, 8  0          ['conv4_3_norm_mbox_loc[0][0]']
 chorBoxes)                     )

 fc7_mbox_priorbox (AnchorBoxes  (None, 19, 19, 6, 8  0          ['fc7_mbox_loc[0][0]']
 )                              )

 conv6_2_mbox_priorbox (AnchorB  (None, 10, 10, 6, 8  0          ['conv6_2_mbox_loc[0][0]']
 oxes)                          )

 conv7_2_mbox_priorbox (AnchorB  (None, 5, 5, 6, 8)  0           ['conv7_2_mbox_loc[0][0]']
 oxes)

 conv8_2_mbox_priorbox (AnchorB  (None, 3, 3, 4, 8)  0           ['conv8_2_mbox_loc[0][0]']
 oxes)

 conv9_2_mbox_priorbox (AnchorB  (None, 1, 1, 4, 8)  0           ['conv9_2_mbox_loc[0][0]']
 oxes)

 mbox_conf (Concatenate)        (None, 8732, 21)     0           ['conv4_3_norm_mbox_conf_reshape[
                                                                 0][0]',
                                                                  'fc7_mbox_conf_reshape[0][0]',
                                                                  'conv6_2_mbox_conf_reshape[0][0]
                                                                 ',
                                                                  'conv7_2_mbox_conf_reshape[0][0]
                                                                 ',
                                                                  'conv8_2_mbox_conf_reshape[0][0]
                                                                 ',
                                                                  'conv9_2_mbox_conf_reshape[0][0]
                                                                 ']

 conv4_3_norm_mbox_loc_reshape   (None, 5776, 4)     0           ['conv4_3_norm_mbox_loc[0][0]']
 (Reshape)

 fc7_mbox_loc_reshape (Reshape)  (None, 2166, 4)     0           ['fc7_mbox_loc[0][0]']

 conv6_2_mbox_loc_reshape (Resh  (None, 600, 4)      0           ['conv6_2_mbox_loc[0][0]']
 ape)

 conv7_2_mbox_loc_reshape (Resh  (None, 150, 4)      0           ['conv7_2_mbox_loc[0][0]']
 ape)

 conv8_2_mbox_loc_reshape (Resh  (None, 36, 4)       0           ['conv8_2_mbox_loc[0][0]']
 ape)

 conv9_2_mbox_loc_reshape (Resh  (None, 4, 4)        0           ['conv9_2_mbox_loc[0][0]']
 ape)

 conv4_3_norm_mbox_priorbox_res  (None, 5776, 8)     0           ['conv4_3_norm_mbox_priorbox[0][0
 hape (Reshape)                                                  ]']

 fc7_mbox_priorbox_reshape (Res  (None, 2166, 8)     0           ['fc7_mbox_priorbox[0][0]']
 hape)

 conv6_2_mbox_priorbox_reshape   (None, 600, 8)      0           ['conv6_2_mbox_priorbox[0][0]']
 (Reshape)

 conv7_2_mbox_priorbox_reshape   (None, 150, 8)      0           ['conv7_2_mbox_priorbox[0][0]']
 (Reshape)

 conv8_2_mbox_priorbox_reshape   (None, 36, 8)       0           ['conv8_2_mbox_priorbox[0][0]']
 (Reshape)

 conv9_2_mbox_priorbox_reshape   (None, 4, 8)        0           ['conv9_2_mbox_priorbox[0][0]']
 (Reshape)

 mbox_conf_softmax (Activation)  (None, 8732, 21)    0           ['mbox_conf[0][0]']

 mbox_loc (Concatenate)         (None, 8732, 4)      0           ['conv4_3_norm_mbox_loc_reshape[0
                                                                 ][0]',
                                                                  'fc7_mbox_loc_reshape[0][0]',
                                                                  'conv6_2_mbox_loc_reshape[0][0]'
                                                                 , 'conv7_2_mbox_loc_reshape[0][0]
                                                                 ',
                                                                  'conv8_2_mbox_loc_reshape[0][0]'
                                                                 , 'conv9_2_mbox_loc_reshape[0][0]
                                                                 ']

 mbox_priorbox (Concatenate)    (None, 8732, 8)      0           ['conv4_3_norm_mbox_priorbox_resh
                                                                 ape[0][0]',
                                                                  'fc7_mbox_priorbox_reshape[0][0]
                                                                 ',
                                                                  'conv6_2_mbox_priorbox_reshape[0
                                                                 ][0]',
                                                                  'conv7_2_mbox_priorbox_reshape[0
                                                                 ][0]',
                                                                  'conv8_2_mbox_priorbox_reshape[0
                                                                 ][0]',
                                                                  'conv9_2_mbox_priorbox_reshape[0
                                                                 ][0]']

 predictions (Concatenate)      (None, 8732, 33)     0           ['mbox_conf_softmax[0][0]',
                                                                  'mbox_loc[0][0]',
                                                                  'mbox_priorbox[0][0]']

 decoded_predictions (DecodeDet  (None, 200, 6)      0           ['predictions[0][0]']
 ections)

==================================================================================================
Total params: 26,285,486
Trainable params: 26,285,486
Non-trainable params: 0
__________________________________________________________________________________________________

This is the change that ive made to the gradCAM code
def grad_cam(img_array, model, last_conv_layer_name, pred_index=None):
    # First, we create a model that maps the input image to the activations
    # of the last conv layer as well as the output predictions
    grad_model = tf.keras.models.Model(
        [model.inputs], [model.get_layer(last_conv_layer_name).output, model.output]
    )

    # Then, we compute the gradient of the top predicted class for our input image
    # with respect to the activations of the last conv layer
    with tf.GradientTape(persistent=True) as tape:
        last_conv_layer_output, preds = grad_model(img_array)
        tape.watch(last_conv_layer_output)
        if pred_index is None:
            pred_index = 0
        class_channel = preds[:, pred_index][0]
        print(class_channel)
        conf_tensor = tf.reshape(class_channel[1], [1,])
        tape.watch(conf_tensor)

        # This is the gradient of the output neuron (top predicted or chosen)
        # with regard to the output feature map of the last conv layer
        grads = tape.gradient(conf_tensor, last_conv_layer_output)

        # This is a vector where each entry is the mean intensity of the gradient
        # over a specific feature map channel
        pooled_grads = tf.reduce_mean(grads, axis=(0, 1, 2))

        # We multiply each channel in the feature map array
        # by "how important this channel is" with regard to the top predicted class
        # then sum all the channels to obtain the heatmap class activation
        last_conv_layer_output = last_conv_layer_output[0]
        heatmap = last_conv_layer_output @ pooled_grads[..., tf.newaxis]
        heatmap = tf.squeeze(heatmap)

    # For visualization purpose, we will also normalize the heatmap between 0 & 1
    heatmap = tf.maximum(heatmap, 0) / tf.math.reduce_max(heatmap)
    return heatmap.numpy()

I can choose conv2D layers upto "conv6_2" to generate the gradients, but I cannot generate any gradients in the layers after it.
I am using the class confidence score and the feature map of selected layer to generate the gradients.

@sriram-praveen-work, Thank you for filing the question. As of right now the team does not have sufficient bandwidth to debug the code. I would suggest getting help from the community.


how to copy folders?

I have a folder which has many files.. How to move that in one go?

Hi,
Currently there is no way to define a folder to copy.
The best way to go ahead would be:

open dir.
read all files there.
iterate files array with async.map.
use any-file inside async.map per every item in list as you can see in
samples.

Hope this helps you.
On Thu, Jul 2, 2020, 21:34 vishalgwalani<EMAIL_ADDRESS>wrote:

I have a folder which has many files.. How to do that in one go?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mcolomer/any-file/issues/8, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AENWRJTCLX3YQJZI423HTRLRZTOMFANCNFSM4OPF3SKQ
.

Hi, thanks for suggestion, I tried the way you told but this code only uploads the last file in folder

Try this code
c.on('ready', function() {
c.list('/testPath', function(err, list) {
if (err) throw err;
console.dir(list);
async.map(list, function(file, cb) {
if (file.name == '.' || file.name == '..') {
return callback(null, false);
} else {
try {
fromFile = fromFile + '/' + file.name;
toFile = toFile + '/' + file.name;
anyfile.from(fromFile).to(toFile, function(err, res) {
console.log('res', res);
return callback(null, res);
});
} catch (err) {
console.log('error', err);
return callback(null, false);
}
}
}, function(err, results) {
c.end();
process.exit();
});
});
});
You need to return always a callback inside async.map.
Hope this works for you.
Missatge de vishalgwalani<EMAIL_ADDRESS>del dia dv., 3 de jul.
2020 a les 18:03:

Hi, thanks for suggestion, I tried the way you told but this code only
uploads the last file in folder
[image: Screen Shot 2020-07-03 at 9 29 21 PM]
https://user-images.githubusercontent.com/20693199/86484835-bd6b4000-bd74-11ea-997f-e0ad82b03a56.png
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mcolomer/any-file/issues/8#issuecomment-653608670,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AENWRJU6KCLVHISKVAPFGJTRZX6NPANCNFSM4OPF3SKQ
.

--
Miquel Colomer
<EMAIL_ADDRESS>

Thanks for quick reply, I have 4 files in folder so in terminal it prints res:true four times but i can see only last file in s3 bucket :(

Could you try this
async.mapLimit(list, 1, function(file, cb) {
instead of
async.map(list, function(file, cb) {
and launch it again?
Probably library can be affected if multiple files are uploaded
concurrently.
Share your code if you detect more problems at https://gist.github.com/
Missatge de vishalgwalani<EMAIL_ADDRESS>del dia dv., 3 de jul.
2020 a les 18:42:

Thanks for quick reply, I have 4 files in folder so in terminal it prints
res:true four times but i can see only last file in s3 bucket :(
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mcolomer/any-file/issues/8#issuecomment-653619264,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AENWRJTZCFVJSMFKDQXJW2LRZYC6VANCNFSM4OPF3SKQ
.

--
Miquel Colomer
<EMAIL_ADDRESS>

I tried this code and it worked but now when i am copying folder which has 3000 files it uploads only 14 files then it returns res:false. Does it have any limitation for upload?

There is no limitation on library.
What destination storage service are you using?

Missatge de vishalgwalani<EMAIL_ADDRESS>del dia dv., 3 de jul.
2020 a les 19:48:

I tried this code and it worked but now when i am copying folder which has
3000 files it uploads only 14 files then it returns res:false. Does it have
any limitation for upload?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mcolomer/any-file/issues/8#issuecomment-653634819,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AENWRJRDSUEMWN75IUWX5YDRZYKWZANCNFSM4OPF3SKQ
.

--
Miquel Colomer
<EMAIL_ADDRESS>

I am uploading to aws s3 bucket and randomly some files are not uploading. All files are .jpg format and sizes are in 20-30kb

Ok. Let me test it to understand why it's failing.
Missatge de vishalgwalani<EMAIL_ADDRESS>del dia dv., 3 de jul.
2020 a les 19:57:

I am uploading to aws s3 bucket and randomly some files are not uploading.
All files are .jpg format and sizes are in 20-30kb
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mcolomer/any-file/issues/8#issuecomment-653636827,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AENWRJXGINFPK42EWLGV2ELRZYLZPANCNFSM4OPF3SKQ
.

--
Miquel Colomer
<EMAIL_ADDRESS>

Could you share full current code please?
This would be easier to be tested.
Thanks!
Missatge de Miquel Colomer<EMAIL_ADDRESS>del dia dv., 3 de jul. 2020
a les 20:31:

Ok. Let me test it to understand why it's failing.
Missatge de vishalgwalani<EMAIL_ADDRESS>del dia dv., 3 de
jul. 2020 a les 19:57:

I am uploading to aws s3 bucket and randomly some files are not
uploading. All files are .jpg format and sizes are in 20-30kb
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mcolomer/any-file/issues/8#issuecomment-653636827,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AENWRJXGINFPK42EWLGV2ELRZYLZPANCNFSM4OPF3SKQ
.

--
Miquel Colomer
<EMAIL_ADDRESS>
--
Miquel Colomer
<EMAIL_ADDRESS>

I solved it, I think there was some issue with my network. So I ran this program on aws ec2 instance and it worked flawlessly. Thank you very much! Cheers🍻

Nice to know it :)
Have a great weekend!
On Sat, Jul 4, 2020, 06:44 vishalgwalani<EMAIL_ADDRESS>wrote:

I solved it, I think there was some issue with my network. So I ran this
program on aws ec2 instance and it worked flawlessly. Thank you very much!
Cheers🍻
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mcolomer/any-file/issues/8#issuecomment-653720505,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AENWRJV7YKJHCSXDLLE2V5DRZ2XRNANCNFSM4OPF3SKQ
.


Support multiple databases

I would like to specify to which database apply the migrations.

Add optional config value to json and env config parsers.

Recording a new migration (sorry, Java)
	private MigrationVersion recordApplication(String neo4jUser, MigrationVersion previousVersion, Migration appliedMigration,
		long executionTime) {

		try (Session session = context.getSchemaSession()) {

			Optional<String> migrationTarget = context.getConfig().getMigrationTargetIn(context);
			Map<String, Object> parameters = new HashMap<>();
			parameters.put("neo4jUser", neo4jUser);
			parameters.put("previousVersion", previousVersion.getValue());
			parameters.put("appliedMigration", toProperties(appliedMigration));
			parameters.put("installedBy", config.getOptionalInstalledBy().map(Values::value).orElse(Values.NULL));
			parameters.put("executionTime", executionTime);
			parameters.put(PROPERTY_MIGRATION_TARGET, migrationTarget.orElse(null));

			session.writeTransaction(t -> {
				String mergeOrMatchAndMaybeCreate;
				if (migrationTarget.isPresent()) {
					mergeOrMatchAndMaybeCreate = "MERGE (p:__Neo4jMigration {version: $previousVersion, migrationTarget: $migrationTarget}) ";
				} else {
					Result result = t.run(
						"MATCH (p:__Neo4jMigration {version: $previousVersion}) WHERE p.migrationTarget IS NULL RETURN id(p) AS id",
						Values.parameters("previousVersion", previousVersion.getValue()));
					if (result.hasNext()) {
						parameters.put("id", result.single().get("id").asLong());
						mergeOrMatchAndMaybeCreate = "MATCH (p) WHERE id(p) = $id WITH p ";
					} else {
						mergeOrMatchAndMaybeCreate = "CREATE (p:__Neo4jMigration {version: $previousVersion}) ";
					}
				}

				return t.run(
						mergeOrMatchAndMaybeCreate
							+ "CREATE (c:__Neo4jMigration) SET c = $appliedMigration, c.migrationTarget = $migrationTarget "
							+ "MERGE (p) - [:MIGRATED_TO {at: datetime({timezone: 'UTC'}), in: duration( {milliseconds: $executionTime} ), by: $installedBy, connectedAs: $neo4jUser}] -> (c)",
						parameters)
					.consume();
			});
		}

		return appliedMigration.getVersion();
	}

Hello @marianozunino !
We have been using the morpheus4j since around end of November 2022 and it is a very neat npm package.
I have the same requirement for my project - we have to run multiple neo4j instances, hence we would need to apply the migration to all of them.
Do you still plan on adding this feature?

Hey @ksmv-7, not sure if I'm following you. If you are running multiple instances that's one thing.
This ticket is for support multiple databases in the same instance (for which you need the Enterprise Edition doc) and that's the reason why I haven't worked on this one.

Oh, sorry, my mistake. I would open another issue, then


Can you please post a english translation of the use guide?

Can you please post a english translation of the use guide?

not in plan...


function based syntax for meta and constraints macros parses but does produce weird errors when applied

The old version supported the following syntax
@constraints function constraints_mv_iid_wishart()
    q(m, P) = q(m)q(P)
end

both for @meta and @constraints. The new implementation should support these as well.

E.g. we were be able to write this
@constraints function constraints_with_condition(condition)
    if condition
        q(m, P) = q(m)q(P)
    end
end


Button won't response if down before state loads

Describe the bug
Button won't response if down before state loads
To Reproduce
Steps to reproduce the behavior:

Push prog button
Start LEMPA (don't let go of the button)
Release the button only when it enters the "wait for button" state

Expected behavior
Clicking on a prog button will.. prog but it does not respond

fixed (and anyway it was created to test the github comments mechanism)


Add Geirhos et al. 2021 behavioral benchmarks

re-opening from https://github.com/brain-score/brain-score/pull/317 after branch rename.

[x] reproduce ceilings
[x] reproduce model scores

This PR contains Stimulus Sets and Behavioral Assemblies (17 total) for:

[x] colour
[x] contrast
[x] cue-conflict
[x] edge
[x] ediolonI
[x] eidolonII
[x] eidolonIII
[x] false-colour
[x] high-pass
[x] low-pass
[x] phase-scrambling
[x] power-equalization
[x] rotation
[x] silhouette
[x] sketch
[x] stylized
[x] uniform-noise

Also note: edge, silhouette have different stimulus_sets than all others. cue_conflict does as well, completely different from all other 16.

re-trigger after S3 bucket policy update

Jenkins CI is currently failing because our cluster is offline until Wednesday, we'll re-trigger then -- can't run any models until that time anyway.


[REG2.067beta2] Issue 14267 - ICE when determining if a function can be inlined

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

Auto-merge toggled on

Thx Kenji.

It's a hidden bug in forward reference resolving mechanism, to be exposed by the new "incremental semantic analysis for inlining". I'm continuously working on dmd codebase, but yet I cannot say that's stable.
All of bugs should be fixed quickly. That's only one way to increase the quality of D front end (and dmd, ldc, and gdc).


exit button fails from example one

Error: gooi/gooi.lua:2328: attempt to index field 'style' (a nil value)
stack traceback:
gooi/gooi.lua:2328: in function 'getFont'
gooi/gooi.lua:1993: in function 'draw'
main.lua:133: in function 'draw'
[string "boot.lua"]:468: in function <[string "boot.lua"]:436>
[C]: in function 'xpcall'
AL lib: (EE) alc_cleanup: 1 device not closed
--> I'm using this code for one of my projects, I found this issue there.
I've made fixed it for my project if you want I can submit the patch.

Sure, please make a pull request.


Create PR from running binder

A common feature request is being able to push results back to the source repository. This is tricky on a public instance as it would require you to type in your GitHub/GitLab credentials.
An alternative would be to add a service to JupyterHub that allows users to say "please create a PR with the state of the repo in my container". This PR would be created by "mybinderbot" and users could then accept the PR.
What is the general feeling on the feasibility of such a service? Would we be able to enable this on a public instance like https://mybinder.org?

ah that's an interesting idea - so basically accomplish the same thing but without any sensitive info getting passed. Seems like it could "just" be a notebook extension, no?

If it was just a nb extension then the credentials for the mybinderbot account would be accessible to the user. So we need a nb extension that figures out what to push/packages state of the repo and a service to send that package to that then makes the PR.

I don't think so. You can't make it a notebook server extension as the mybinderbot token would still be available form within the container that the user is running in. (I assumed you mean notebook server extension.)

My google search for a way for online modification of jupyter notebooks lands me here.
Basically, the documentation of my project are converted from a set of jupyter notebook. Right now, the normal way to modify or contribute to it is to clone the repository, install all relevant tools, modify the notebooks using Jupyter or Jupyter Lab, then submit a PR. We already have docker images for binder and tmpnd so it is relatively easy to allow users to edit the notebooks. However, none of the methods allow the changes to be submitted. It would be very nice if there is some way to allow users to create PRs directly.

:+1: usecase: online collaboration between stat + med; med can edit markdown, maybe change parameters; stat codes the analyses. For this to work, both must be able to save the results back to the repo, i.e. PR. Would be awesome to have. Most interesting on a private secure binderhub config but the solution with having a mybinder bot create a PR seems fine for public instances.

After I posted in this thread, we decided to use our live JupyterHub server to allow visitors to propose changes to our documentation. The process is a bit complicated:

On the documentation side, we added an edit button to our template. This results in an edit button on all our tutorials (see the edit button at the top right corner at this page). Clicking this button will open the corresponding page on our live server.
On the server side, the JupyterHub server spawns a docker image that contains (a recent clone of) the source of notebooks.
A create-pr script  is also included in the docker image, and allows users to create a PR after they modify the notebook.  This script basically runs a bunch of git commands and then creates a PR using github CLI .
The whole process works pretty well in that anyone can visit our documentation, click the edit button to edit it, and send us a PR using command create-pr.

Most interesting on a private secure binderhub config but the solution with having a mybinder bot create a PR seems fine for public instances.

For a private instance the worries of users submitting credentials to the running Binder is lower/doesn't exist. This means you can use the normal git commands from the terminal or other notebook server extensions that implement interaction with GitHub (not sure if they exist).

I love this idea! It's been a hope and dream of mine as well, particularly for private/institutional Hubs.

The fastai/fastpages Jekyll/github pages publishing route is quite interesting in that when you clone the original repo, it creates a PR on your new repo.
This pattern, of tasks creating PRs on a repo could be quite an interesting on. Being able to create PRs onto the repo from which a binderised repo instance was generated via a Binderhub agent is a really interesting one. Though to protect the repo owner, it might also be useful if the could somehow whether declare whether they were open to such PRs or not.


Implement host_allow for HTTP whitelisting

It would be nice to have the ability to use the ip_allow.config style with hostnames AND ip ranges where applicable. Effectively giving an easier way to create a whitelist only proxy solution.
Squid offers something to this effect via:
acl whitelist dstdomain "/etc/squid/whitelist.txt"
http_access allow whitelist
# Deny all other access to this proxy
http_access deny all

where you can specify hostnames in a list like so:
www.google.com
www.yahoo.com
.starbucks.com

I don't think anyone is interested in doing this.  There are implications on performance on the ACLs.  An alternative is to write a plugin that would do this.


Extended logging functions to scripts

Logging to files is something really trivial, which means this is nothing the scripting API needs to expose IMHO. The internal logging class was thus fully removed in 5cff7ca7c6e03e28a18b888baf0a1899ffe494fe too.


Fix a few docs links.

use https when possible
fix a 404 link
fix redirects
stop using protocol-relative URLs

There are still 4 404 links, not sure how they are generated thus why I didn't fix them:
404 Not found
https://mochajs.org/api/mocha.runner
Linked from: https://mochajs.org/api/tutorial-custom-reporter.html and 2 more

404 Not found
https://mochajs.org/api/mocha.suite
Linked from: https://mochajs.org/api/tutorial-custom-reporter.html and 4 more

404 Not found
https://mochajs.org/api/mocha.test
Linked from: https://mochajs.org/api/tutorial-custom-reporter.html and 8 more

404 Not found
https://mochajs.org/api/mocha.hook<a href>
Linked from: https://mochajs.org/api/tutorial-custom-reporter.html and 4 more

Also, it seems there are many API docs redirects, but I've yet to dig into how the API docs are generated.

OK I made more fixes.
How about we add docs building on CI and we add a link checker?

Coverage increased (+0.03%) to 91.713% when pulling 0e8e9e2554c99a886f94db06a4b3129366565003 on XhmikosR:xmr-docs-urls into 22831c5bdbcd751d08804097fa04910c96ed6903 on mochajs:master.


project defaultScript is not getting added in the event secret

Data mounted from event secret is missing the script key.
As a result of this if /vcs/brigade.js and /etc/brigade-default-script/brigade.js is missing and the users are depending on the project's defaultScript things will break.
The fix for this is to add Script key in here
https://github.com/Azure/brigade/blob/master/pkg/webhook/github.go#L229
I will raise a PR for the same.

A default script should not be added to the event's secret. It should be injected into the worker by the controller, and read during worker startup in the prestart.js. Gateways are not supposed to make decisions about defaults. They are just supposed to pass what they are given. The Controller and Worker are responsible for filling defaults in.

Closing for now, but feel free to reopen if you have additional questions.
Thanks!


Fixed Issue - #1271

Pull Request Type
What kind of change does this PR introduce?
[ X] Solved an issue/task
[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:
What is the current behavior?

Issue Number: #1271
What is the new behavior?
Using the class card, style the  element with the given parameters (width, height, background color, border, border radius, box shadow, and padding).

Other information

Merged

This is an automated message from Fork, Commit, Merge [BOT].

Thank you for your contribution! Your pull request has been merged. The files have been reset for the next contributor.
What's next?
If you're looking for more ways to contribute, I invite you to check out our forkcommitmerge.io website repository. The repository contain real issues that you can help to resolve or create some of your own if you see any bugs or want to add new features to the site, etc. You can also check out the Influences section in the README to find more projects similar to this one.
Also please leave a star to this project if you feel it helped you, i would really appreciate it.
I look forward to seeing your contributions!


Microsoft.Practices.ServiceLocation reference

I notice 4.0.0 has a ref on Microsoft.Practices.ServiceLocation, Version=<IP_ADDRESS>
should it have a nuget dependency on https://www.nuget.org/packages/CommonServiceLocator/ ?

Actually i notice it does have a dependency but not for all versions
https://github.com/unitycontainer/unity/blob/master/source/NuGet/Unity.nuspec#L16
for context i am getting an assembly load exception when trying to use 4.0 sating it cant load Microsoft.Practices.ServiceLocation

I will have to get that one from Microsoft. I don't have that code yet. Let me fix this issue in the meantime

Unit tests are passing, what's the scenario you are testing so I can repro the issue? Thanks

create a 4.5 console app
PM> install-package unity
add this code var types = typeof(IUnityContainer).Assembly.GetTypes();

System.Reflection.ReflectionTypeLoadException was unhandled
  HResult=-2146232830
  Message=Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
  Source=mscorlib
  StackTrace:
       at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
       at System.Reflection.Assembly.GetTypes()
       at ConsoleApplication1.Program.Main(String[] args) in C:\Code\ConsoleApplication1\ConsoleApplication1\Program.cs:line 14
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException:

with the loader exception being
{"Could not load file or assembly 'Microsoft.Practices.ServiceLocation, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. '
The system cannot find the file specified.":"Microsoft.Practices.ServiceLocation, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35"}

your unit tests are probably passing since Microsoft.Practices.ServiceLocation is copied to the bin directory as part of the inferred references in the Unity project

I already asked P&p for the code of the service locator. I hope I can fix this asap. Thanks
El oct 3, 2015 1:38 AM, Simon Cropp<EMAIL_ADDRESS>escribió:
your unit tests are probably passing since Microsoft.Practices.ServiceLocation is copied to the bin directory as part of the inferred references in the Unity project

Reply to this email directly or view it on GitHub:
https://github.com/unitycontainer/unity/issues/10#issuecomment-145200115

Sorry i am a little confused. Why cant u add a nuger dependency?

Wait wait wait.  I came here because I'm experiencing the same issue, due to Unity dependency on CommonServiceLocator 1.3.0 which when used in a .Net framework 4.5.2 build environment fails due to some System.Runtime,<IP_ADDRESS> referencing issue. (google "teamcity system.runtime <IP_ADDRESS> referencing problem)
The problem is the dependency of Unity on CommonServiceLocator, which is failing to update their references for proper framework >4.0.0 support (something about needing proper signing I believe?)
Currently I just question why Unity needs CommonServiceLocator as a dependency at all... The proper operation here (until CommonServiceLocator is ACTUALLY part of BCL) is for using Reflection to determine if ServiceLocator.SetServiceLocator method is available.
Frankly, NodeJS and Javascript modules in general dont have these type of referencing problems, because the JS runtime is far more flexible at using types/methods when the signatures match up.
My suggestion is to "keep it runtime bound" but keep the actual runtime bindings minimal and not in regular code paths.   Use Reflection.Emit to tightly bind at runtime.  etc.

Hello?  We basically need CommonServiceLocator dependency removed, and possibly a new Nuget package with any bits that refer to ServiceLocator (like you do with Unity.Mvc/Unity.WebApi/etc)
Frankly this does not need a dependency to CommonServiceLocator because ServiceLocator itself is an anti-pattern itself... http://stackoverflow.com/a/22795888

Any movement on this issue as described by @eric-newton ? I too am experiencing the same issue when attempting to upgrade to framework 4.5.2

Hi. What error are you exactly getting?

Just ran into the same issue as eric-newton. Introducing CommonServiceLocator as a dependency is a no-go for my project.  If Unity needs this library, I'll have to do the painful thing and swap Unity for something else. Can we please get a version without this dependency?

The ServiceLocation is removed into separate project


Md processing

There are two goals of this PR:

[x] Generate a proper search index for the Belt API
[x] Parse all codeblocks with certain meta attributes (e.g. example) and run it through bsc

The parsing is done via unified.
Partly tackles #15

As a sidenote, there is are multiple reasons why this is not written in ReasonML:

We are using unified to parse the AST of the markdown, which is very tedious to type since each plugin has different ways to manipulate the end result.
BuckleScript is set up to output ES6. This means we would need dependencies such as @std/esm and run node via node -r esm scripts/myscript.bs.js just to make it parse... not a fan of this

Test script is done, index file generation is (at least infra wise) also done.
After merging this, I will use the index data to build a nice search component.
Here is a taste on how the test tool feels like:
$ node scripts/test-belt-examples.js pages/belt_docs/array.mdx
Testing example in 'pages/belt_docs/array.mdx' on line 21...
Testing example in 'pages/belt_docs/array.mdx' on line 118...
Testing example in 'pages/belt_docs/array.mdx' on line 134...
Testing example in 'pages/belt_docs/array.mdx' on line 146...
Testing example in 'pages/belt_docs/array.mdx' on line 160...
Testing example in 'pages/belt_docs/array.mdx' on line 187...
Testing example in 'pages/belt_docs/array.mdx' on line 205...
Testing example in 'pages/belt_docs/array.mdx' on line 237...
Testing example in 'pages/belt_docs/array.mdx' on line 269...
Testing example in 'pages/belt_docs/array.mdx' on line 291...
Testing example in 'pages/belt_docs/array.mdx' on line 303...
Testing example in 'pages/belt_docs/array.mdx' on line 319...
Testing example in 'pages/belt_docs/array.mdx' on line 335...
Testing example in 'pages/belt_docs/array.mdx' on line 353...
Testing example in 'pages/belt_docs/array.mdx' on line 373...
Testing example in 'pages/belt_docs/array.mdx' on line 402...
Testing example in 'pages/belt_docs/array.mdx' on line 438...
Testing example in 'pages/belt_docs/array.mdx' on line 470...
Testing example in 'pages/belt_docs/array.mdx' on line 501...
Testing example in 'pages/belt_docs/array.mdx' on line 521...
Testing example in 'pages/belt_docs/array.mdx' on line 543...
Testing example in 'pages/belt_docs/array.mdx' on line 564...
Testing example in 'pages/belt_docs/array.mdx' on line 584...
Testing example in 'pages/belt_docs/array.mdx' on line 604...
Testing example in 'pages/belt_docs/array.mdx' on line 634...
Testing example in 'pages/belt_docs/array.mdx' on line 665...
Testing example in 'pages/belt_docs/array.mdx' on line 705...
Testing example in 'pages/belt_docs/array.mdx' on line 727...
Testing example in 'pages/belt_docs/array.mdx' on line 747...
Testing example in 'pages/belt_docs/array.mdx' on line 767...
Testing example in 'pages/belt_docs/array.mdx' on line 787...
Testing example in 'pages/belt_docs/array.mdx' on line 809...
Testing example in 'pages/belt_docs/array.mdx' on line 831...
Testing example in 'pages/belt_docs/array.mdx' on line 857...
Testing example in 'pages/belt_docs/array.mdx' on line 886...
Testing example in 'pages/belt_docs/array.mdx' on line 911...
Testing example in 'pages/belt_docs/array.mdx' on line 927...

-------Results for 'pages/belt_docs/array.mdx'----------
pages/belt_docs/array.mdx:21 => ok
pages/belt_docs/array.mdx:118 => failed
pages/belt_docs/array.mdx:134 => failed
pages/belt_docs/array.mdx:146 => failed
pages/belt_docs/array.mdx:160 => ok
pages/belt_docs/array.mdx:187 => failed
pages/belt_docs/array.mdx:205 => failed
pages/belt_docs/array.mdx:237 => failed
pages/belt_docs/array.mdx:269 => ok
pages/belt_docs/array.mdx:291 => failed
pages/belt_docs/array.mdx:303 => failed
pages/belt_docs/array.mdx:319 => failed
pages/belt_docs/array.mdx:335 => failed
pages/belt_docs/array.mdx:353 => failed
pages/belt_docs/array.mdx:373 => failed
pages/belt_docs/array.mdx:402 => failed
pages/belt_docs/array.mdx:438 => failed
pages/belt_docs/array.mdx:470 => failed
pages/belt_docs/array.mdx:501 => failed
pages/belt_docs/array.mdx:521 => failed
pages/belt_docs/array.mdx:543 => failed
pages/belt_docs/array.mdx:564 => failed
pages/belt_docs/array.mdx:584 => failed
pages/belt_docs/array.mdx:604 => failed
pages/belt_docs/array.mdx:634 => failed
pages/belt_docs/array.mdx:665 => failed
pages/belt_docs/array.mdx:705 => failed
pages/belt_docs/array.mdx:727 => failed
pages/belt_docs/array.mdx:747 => failed
pages/belt_docs/array.mdx:767 => failed
pages/belt_docs/array.mdx:787 => failed
pages/belt_docs/array.mdx:809 => failed
pages/belt_docs/array.mdx:831 => failed
pages/belt_docs/array.mdx:857 => failed
pages/belt_docs/array.mdx:886 => failed
pages/belt_docs/array.mdx:911 => failed
pages/belt_docs/array.mdx:927 => failed
-----------
Summary:
Total Examples: 37
Failed: 34
Success: 3

It's also possible to get a nice error message out (not exposed in the interface yet). Here is an example:
  We've found a bug for you!
  pages/belt_docs/array.mdx: 121:10-23

  1 │ let arr = [|10, 11, 12, 13, 14|];
  2 │
  3 │ let () = reverseInPlace(arr);
  4 │
  5 │ arr == [|14, 13, 12, 11, 10|];

  The value reverseInPlace can't be found

Notice how the file path points exactly to the line inside the array.mdx file. I love it!

For the bsc -i -e command, we were required to update to version 5.2.0. Make sure to yarn install after merging / pulling.

Also here an example on how index data (parsed from the result.mdx file) looks like:
    {
        "headers": [
            "t",
            "getExn",
            "mapWithDefaultU",
            "mapWithDefault",
            "mapU",
            "map",
            "flatMapU",
            "flatMap",
            "getWithDefault",
            "isOk",
            "isError",
            "eqU",
            "eq",
            "cmpU",
            "cmp"
        ],
        "href": "belt_docs/result",
        "moduleName": "Result"
    },


bug: ionic-contents with native scrolling don't maintain scroll position

Type: bug
Platform: all
Likely related to #3256
Here is a codepen to demonstrate the bug:
http://codepen.io/jskrzypek/pen/XbVQEm
Scroll down in the native-scrolling (i.e. the one with overflow-scroll="true") list, then switch to the ionic-scrolling list and do the same.
When you switch back to the native list you are jumped back up to "Native Scroll - Item 0", the top of the list. When you switch back again to the ionic list you are still at the scroll position you scrolled to before.
We think this is coming from the $location decorator. https://github.com/driftyco/ionic/blob/master/js/angular/service/decorators/location.js
The native scroller is passing an empty string ('') in value to $location.hash(value), but isDefined('') returns true, triggering the if even when no hash value is set on the location and setting scroll.scrollTop = 0, thus causing the scrollview to lose it's scroll position.
Testing this by overriding the decorator, we see that the bug is no longer happening.
Here is a different codepen to demonstrate the fix:
http://codepen.io/jskrzypek/pen/GJQgEO

Greetings @jskrzypek!
My sensors indicate that you need to update your issue through our custom issue form. We are now requiring all issues to be submitted this way, to ensure that we have all of the information necessary to fix them as quickly as possible.
Click Here To Update Your Issue
I will have no choice but to close this issue if it is not resubmitted through the form. Please fill out the rest of the form, so that I may use my friendly robot powers to assist you.
Thank you!

Fix submitted as a PR.

You may add scrollfix to make the head and footer to not bounce on scroll.
https://github.com/joelambert/ScrollFix
i used it in my project here. (Try in IOS)
go to tab Scroll.
http://scripts.toolurl.com/1-Mobile/bootapps-05/GC-Bootapps-Android.html
When it stop scrolling, it moove the overflow to 1 pixel to scroll again without bouncing the head.

Thanks, @onigetoc, I'll check it out, but your comment doesn't really address the issue I mentioned.
Try out the pens I linked to, this bug seems to happen on all platforms.

Scroll position is lost in both cases if cache is off:
.state('tabs.ionic', {
  url: '/ionic',
  cache:false,

Is this a bug or a feature?

@kowach what platform are you testing on? The code pen in your browser?
I think the ionic caching is what is preserving your scroll position in the first place. As far as I'm aware that's not something that works by default in angular without some configuration.

@jskrzypek this was a suggestion because sometime, long page with images the scroll is not fluid.
What a read is that  native css overscroll touch work on 99% of IOS users.
and 50% on Android.
may looking at Android version to use overscroll touch.

@onigetoc, sure, it's not a fix for the issue I mentioned, but for anyone having trouble with long page scrolling on mobile it may help.

Fixed in b42655614cf2b193187b8f486f2f747a681751ab


Support Helm charts for docker image deployments

Would be nice that flux had support for Helm charts deployments via helm cli, helm API is not available yet

It could be done allowing flux  to run custom commands instead triggering
k8s deployment release e.g. helm upgrade ghost kubernetes/ghost --set image="bitnami/ghost:0.11.3-r0"

+1

@lukemarsden any updates?

@rimusz looks like you're working a fork ;)
Seriously though, let's collaborate on this. Doesn't seem like it'll be that much work.

@rimusz your fork disappeared, no longer working on it? :)

no, not working on it, I see you guys got it under control 😀


KIALI-330 Add backend support for namespace metrics

This is analogous to the existing service metrics support but allows for
a an optional service pattern (regex) as opposed to an explicit service.
Without a pattern it will aggregate on all services in the namespace.
@jotak Please review.  I think this is needed to gather aggregate metrics when querying across different, or all, services in a namespace.  We needed it to support traffic summary for the namespace graph.  Thanks. Jay.

@jotak moved relevant stuff to namespaces.go.  @mwringe errors back to 4|5xx.  Should be good to go after travis is green.


help need to run this

Hi all,
I am quite new to this ctakes also to java. i want to run this ctakes-web-client in tom cat apache. do i need to build this in eclpise? i use the command mvn package at command prompt to create a .war file and copied that war file to tampcat -> webapp. try to run tomcat but i got error like
javax.servlet.ServletException: org.apache.uima.resource.ResourceInitializationException: Initialization of annotator class "org.apache.ctakes.dictionary.lookup2.ae.DefaultJCasTermAnnotator" failed.  (Descriptor: )
Root Cause
org.apache.uima.resource.ResourceInitializationException: Initialization of annotator class "org.apache.ctakes.dictionary.lookup2.ae.DefaultJCasTermAnnotator" failed.  (Descriptor: )
i am using tomact 7.0, eclipse neon jav ide for EE.
Regards
Swagat

Thank you @gandhirajan . I installed this jetty plugin and ran this. It worked.


Log Ethereum URL used on startup

This would make debugging other people's setup easier. Right now, we're in the dark about what Ethereum node people are using.

Resolved in master.


Use process.nextTick when available

This is the fastest way to schedule a new microtask in Node, running before any I/O and timers.
https://nodejs.org/api/process.html#process_process_nexttick_callback_args

Thanks for this Max - sorry for the delay!

No problem, let me know what you think about this.

Sounds good to me. I remember reading about nextTick() - it seemed at the time it was new and unsupported in older Node still in use. Probably not true anymore...

I've used it since node 0.8. Reading in the history section in the docs,it  seems like it was added in v0.1.26. That's a while ago 😺

Yah, reading more now.. it does seem its behavior changed in 0.9 - but thats still a long time ago.
I don't know why I avoided nextTick..  I will pull this down and do some perf testing.
Thanks again!

Ping :)

@bluejava @maxnordlund Great PR my friend! =]
Nowadays process.nextTick is commonly used in modern Node.js development.

Finally got around to this - sorry guys. Happy to merge this change - thanks Max!
Don't expect to notice any perf improvement very often though - although nextTick is significantly faster than setImmediate, the use of this to schedule an event generally only happens once per iteration of the macro task loop - masking the performance gain.
If you queue up a million jobs with Zousan.soon - they get scheduled a single time and then are executed synchronously from within Zousan internals. You have to completely exhaust this internal queue before this schedule mechanism kicks in again. And the only way to exhaust the queue and then re-queue another job is to do it outside of Zousan completely - which will also mask the performance gains UNLESS you are using the most performant scheduler as well - i.e. nextTick. So to see the gains, you need code like this:
var i = 1000000

function runMeSoon()
{
	if(--i)
		process.nextTick(() => Zousan.soon(runMeSoon))
}

Zousan.soon(runMeSoon)

Note the calling of Zousan.soon from a nextTick call.
Running the above code and comparing timing before/after this PR goes from 2321ms to 160ms. A nice improvement! Just don't expect to see it in actual code very often!


Add a script to simplify getting relevant zap binary if not manually installed

We may have various automated tasks needing zap-cli:

CI of related projects (e.g. Pigweed CI)
setting up RaspberryPi environments (need ZAP_DEVELOPMENT_PATH set)
general developer convenience

Created a script that can be invoked as:
scripts/tools/zap/zap_download.py
# or
scripts/tools/zap/zap_download.py --zap source

and it downloads/sets up the given zap and also outputs the environment variable that needs to be set for the downloaded zap to be used. Not yet used in scripts, however expected longer term possible usage is that logging goes to stderr and shell scripts can eval stdout.

How about adding this to bootstrap as a check (e.g. install zap-cli if zap-cli is not available or if the version is not recent enough)? Today I've been struggling with updating my zap-cli because minimal version was bumped and I've forgotten how I've installed it on my system the last time... I forgot that the *.deb does not contain zap-cli binary...


WebRTC Support with Avalonia for Android and iOs

Is your feature request related to a problem? Please describe.
Does Avalonia support WebRTC for Android and iOS. If not, when is a timeframe we could expect this feature ?
Describe the solution you'd like
N/A
Describe alternatives you've considered
No response
Additional context
No response

This feature is not planned and there is no timeframe for that.
Developers can embed native elements or render webrtc stream into a bitmap (if there is a .NET WebRTC library allowing that).

The main problem with NativeControlHost is that it suffers from airspace issues. #13953


RESTful APIs stabilization

During the RESTful APIs development, some endpoints became semantically inconsistent with others.
All endpoints must be refactored to follow common semantical rules. Also, should be implemented some technical debt across APIs.
Tasks:

[x] Refactor APIs endpoints
[x] Fix minor errors
[x] Inject metadata syncronisation into all APIs that related to a facility metadata
[x] Fix all broken tests and write missed tests for APIs
[x] Implement required associated changes in the lpms-cli package

Closed by #92 and #104


chore(deps): upgrade compiler dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-compiler-dependencies-k8s-30-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 4305

Questions ?
Please refer to the Backport tool documentation


Port Forwarding Failed

Forwarding port for debugging failed for platform "ios" and port 7936 because no connected devices could be found.

Getting this repeatedly. Then suddenly, it will work, then once again it doesn't work.

The install SUCCEEDS
running idb -devices manually shows my iPhone

Any ideas?

It's odd that it works sometimes, but not others. That makes things tricky.
The SWF debugger exits with that error message when it cannot find your device listed in the output from idb -devices.
When you tried running idb -devices manually, did you do it more than once? It might be smart to try running it after every time that it fails in VSCode. You might be more likely to reproduce outside of VSCode in that case. If you can reproduce using idb, we can rule out a bug in my parsing code in VSCode.
Also, don't ignore the possibility that your USB cable has some minor damage. I've had to throw out more than one that would randomly disconnect when I picked up and moved the device that I had connected to my computer for a debugging session.

I'm wondering if there's just something finnicky on the VS Code side. idb -devices has yet to fail to identify my phone. It also works in Animate (which I'm trying to migrate from since it's clunky) and iTools (which I ended up using to install the ipa with, but still can't get debug working).
I did think the USB cable might be at fault, so I swapped it with the one we use on another device, and still the same sadly.

I'm wondering if there's just something finnicky on the VS Code side. idb -devices has yet to fail to identify my phone. It also works in Animate (which I'm trying to migrate from since it's clunky) and iTools (which I ended up using to install the ipa with, but still can't get debug working).
I did think the USB cable might be at fault, so I swapped it with the one we use on another device, and still the same sadly.

A while ago I have started to experience problem with my external audio interface which is being connected with my laptop. I'm on windows and my laptop is not new. After trying several things changing cable/contacting with support of that audio interface I ended up that my usb itself is at some point corrupted. I encourage you to try with completely different laptop/PC to see whether is not a hardware problem itself.

A hardware problem that ONLY affects VS Code? I see my phone in iTunes. idb -devices sees my phone. I can install my app via Animate, and likewise I can use iTools to install and manage my device as well.
A hardware issue that ONLY affects VS Code seems very unlikely.

A hardware problem that ONLY affects VS Code? I see my phone in iTunes. idb -devices sees my phone. I can install my app via Animate, and likewise I can use iTools to install and manage my device as well.
A hardware issue that ONLY affects VS Code seems very unlikely.

It's just a shot. I hope you resolve your issue.

Thanks, I do too!
Josh your mention of parsing got me thinking it might be my device name since it has an apostrophe in it, but the same still happens on an iPhone X simply named "iPhone X".
For now, what fixes it is a reboot, so I'll do that. Perhaps there's some process that gets hung or stuck that causes things to lock up like this.

Perhaps there's some process that gets hung or stuck that causes things to lock up like this.

Yeah, I could see that being a possibility. It may depend on how you stop the debugger. I'll try to find some time to look into it.

I tried a few things on my computer, but it seems the find my iPad pretty consistently.
The parser ignore's the device's name. It only cares about the device's "handle".
It reads the output from idb -devices line by line. If a line starts with "   " (three spaces), that's a device:
   1	iPhone<PHONE_NUMBER>000000000000000000000000000000	iPhone

If it finds the three spaces, it looks for a tab character (\t). Whatever appears between the three spaces and the tab is the device's handle. In the example above, the handle would be "1".
If a line does not start with three spaces, the parser skips it completely.
When you run idb -devices is your output formatted any differently? Could it be that a line doesn't always start with three spaces?

Sorry for the delay josh -- I copy and pasted the output into an editor and it doesn't appear that's any different. Also, it works sometimes and others not, so I assume your parsing is fine.
As a reboot tends to fix it, I'm going to go with some process gets hung or locked somewhere. What that is, I'm not sure, but I will keep poking around when it happens.
When calling idb, does your code rely on anything else? i.e. I know Animate has its own instance of adb running etc.

No other processes are started by the SWF debugger before idb is used to get the device handle. After that, the debugger runs commands with adt only. It does not use adb directly (I assume that adt runs adb behind the scenes).
I wouldn't expect adb to have any conflicts here, since it's for Android, and the issue is with iOS specifically.

Yeah, I didn't expect so either (I only mentioned adb since that's the process that came to mind that Animate manages and thought iOS may have a similar).
No one else seems to be having the issue and I have a short-term workaround, so we can close this up. If I can figure out how to reliably reproduce it (and it's something that affects everyone), I'll definitely share

Was able to reproduce twice this morning. The build process as you know can be a bit lengthy, so I switched over to answer some emails while waiting for the "enter password" prompt. I guess I took longer than it liked as I got a popup error asking me to check launch.json. After that, I repeatedly got the

Forwarding port for debugging failed for platform "ios"

error until I rebooted my computer. Tried it again (letting that part time out) and was able to reproduce the issue. Another reboot (whole reboot, just closing the app doesn't seem to work) fixed it.

Thanks! That seems like it might help me reproduce too.

Hi,
This topic is closed, but I'm experiencing the same problem getting the error message:
"Forwarding port for debugging failed for platform "ios" and port 7936 because no connected devices could be found."
ida -devices shows the device connected and I'm able to fwd the port and run the debugger manually.
My handler number is 2 digits, so I'm wondering if it has to do with the parsing.

I don't have a direct answer for you, but for me, I found it still happens from time to time so I've stopped relying on it.
What I do now is build a debug release ipa and install it with itools (you can use itunes or w/e). Then I just launch remote debug (attach) in VSCode and go from there. This also makes it smoother to repeatedly test the same build after relaunches.

@pbranco-magikbee Can you run idb -devices on the command line manually and copy/paste the output here in a comment? Be sure to format it as a code block so that the formatting is not lost.
I've never seen two digits on an iOS device, so it'll be hard for me to reproduce myself. That's why it's important to try to keep the formatting exactly the same. I'm looking for how two digits affects the rendering of a line. It might have a different number of spaces at the beginning, or something like that, so it's super important to get that right.
Thanks!

Here it goes:
List of attached devices:
Handle	DeviceClass	DeviceUUID					DeviceName
  22	iPad    	b385ad8d9080e54c11a1e93d958c36eb300dcb29	iPad4 de engageLab

@pbranco-magikbee Thank you! It looks like there are two spaces instead of three, so I'll need to update that parsing code.


Value initialized outside of Run gets reset

Please provide a succinct description of the issue.
Repro steps
Create an F# Timer function:
open System

let epoch = DateTime(1970,1,1,0,0,0,DateTimeKind.Utc)

let Run(myTimer: TimerInfo, log: TraceWriter) =
    log.Info(epoch.ToString())

Expected behavior
log should show the epoch as instantiated: 1/1/1970 12:00:00 AM, in a fashion similar to what would be expected from a "regular" .fsx F# script.
Actual behavior
Function compiles and runs, but log show the epoch as 1/1/0001 12:00:00 AM.
Known workarounds

If I change the function to instantiate epoch inside the Run function, everything works as expected.
If I modify the code to have epoch be the return value of another function like below, everything works fine:

open System

let getEpoch () =
    DateTime(1970,1,1,0,0,0,DateTimeKind.Utc)

let Run(myTimer: TimerInfo, log: TraceWriter) =
    log.Info(getEpoch().ToString())

Related information
Provide any related information

Programming language used : F#
Links to source: source provided above.

I'm thinking this could be related / helpful to look at: https://github.com/Microsoft/visualfsharp/issues/1371
Module static initialization semantic in F# has some aspects that are not obvious.
If the function is compiled underlying as a .exe but loaded as a library by the host, it is likely to be the reason.
But maybe it is something else altogether.

/cc @sylvanc


Changes must be made through a pull request.   - protected main branch

I have protocted main branch, is there a workaround?
https://github.com/nrbnlulu/qtgql/actions/runs/4051297040/jobs/6969482722

seems like the wrong package :upside_down_face: sorry.


test force replica = 1 in p0 regression tests

What problem does this PR solve?
Some tests in p0 does not set replica = 1, and will fail when BE number is not enough.
This PR fixed this problem by set force_olap_table_replication_allocation in p0 fe.conf
Release note
None
Check List (For Author)

Test

[ ] Regression test
[ ] Unit Test
[ ] Manual test (add detailed scripts or steps below)
[ ] No need to test or manual test. Explain why:

[ ] This is a refactor/code format and no logic has been changed.
[ ] Previous test can cover this change.
[ ] No code files have been changed.
[ ] Other reason

Behavior changed:

[ ] No.
[ ] Yes.

Does this need documentation?

[ ] No.
[ ] Yes.

Check List (For Reviewer who merge this PR)

[ ] Confirm the release note
[ ] Confirm test cases
[ ] Confirm document
[ ] Add branch pick label

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.
Please clearly describe your PR:

What problem was fixed (it's best to include specific error reporting information). How it was fixed.
Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
What features were added. Why was this function added?
Which code was refactored and why was this part of the code refactored?
Which functions were optimized and what is the difference before and after the optimization?

run buildall

run buildall


Overview Traces - Timeout Error with 200 Response Code

When I load the Traces tab in Overview, the UI throws an I/O timeout error, even though the HTTP call itself responds with a 200:

As shown, the backend responds with a 200, and the body has content.

Ah dang, apologies, I see where the error is coming from. Seems I have more to debug with my ClickHouse instance :)


CubeMap support for environment sky

Godot version:
3.1 Stable
Issue description:
Considering there is already a cubemap resource (used for reflections) it would be handy if there was the option to use a cubemap resource for a WorldEnvironment's background_sky value.

Removed in Godot 3.0 (was there in 2.1).

Readding a CubeMap resource would make it possible to implement projector textures for OmniLights, as these use cubemap shadows by default.

Hm, I wonder why that was done

@GammaGames I can think of two reasons:

Reflections use a dual parabolid system, so a conversion has to be done if using a skybox.
Cubemaps are difficult to get right due to how they are mapped/rotated across different software. Moreover, it's quite tedious having to load 6 textures instead of just one.

Reflections use a dual parabolid system, so a conversion has to be done if using a skybox.

I expected that it would have to be converted before runtime to make it work better. I guess that would potentially cause warping or something, which is understandable.

Cubemaps are difficult to get right due to how they are mapped/rotated across different software.

That was actually the reason I was looking for the feature. Some users were looking to use some textures exported from spacescape and convert it with an online program but it was all messed up. It's current really tedious to convert and test, but if we had the option to easily use the separate textures it would allow users to rotate and the images to get the expected result.

Aren't HDR images rendered as cubemaps in GLES2? I think Godot should be capable to do this the other direction: Convert a cubemap to HDR for GLES3.

Probably, I used cube2sphere which uses blender and python but it was really blurry

@GammaGames Use the standard blender cube and assign a material to each face with a seperate texture. Using cycles you can define the quality yourself (how many time it takes to render the image). You don't need an addon for that. https://youtu.be/a48PBPRO8O8

Yeah cube2sphere is not a solution for me. Please bring cube maps back.

@Galaxy613 There are plenty of resources to convert cubemaps to equirectangular.
You can even do it yourself in GDScript. See reddit comment here
https://www.reddit.com/r/godot/comments/baw27a/how_to_use_spacescape_skybox_in_godot/ekfvrwo?utm_medium=android_app&utm_source=share

@danilw has added a very helpful page to their GitHub.io page: https://danilw.github.io/GLSL-howto/cubemap_to_panorama_js/cubemap_to_panorama.html (GitHub link here: https://github.com/danilw/GLSL-howto)

(not self promotion)
super simple javascript cube to panorama convert online link (single html+shader) (can save up to 4k resolution panorama)

@Zireael07 Not that I know of. I don't know if this is planned for 4.0, but I doubt it as dual parabolid skies are considered the standard nowadays.

yeah the thing is people give out a lot of technical explanations, but some of us where working happily with assets and using this method (and i was waiting thinking it'd come back)
i particularly like how you could edit a planet into the middle of the image, and it would not require any more processing or editing (i could just use gimp).... i would suffer no corner distortion on re-editing this as long as i stayed away from the corner
making the method very flexible (i'd also have different planets to plop in the one of the 6 faces, and reuse the stars from other angles)
there is no mention of "dual parabolid skies" being standard, i don't even think most CG artists know about this (they use panoramic mostly)
so this was a technique i am fond of, and all the competition still has the option

there is no mention of "dual parabolid skies" being standard, i don't even think most CG artists know about this (they use panoramic mostly)

I think these are the same thing :slightly_smiling_face:

"I think these are the same thing 🙂"
nah, the "dual parabolid skies", they have two circles as their image:
http://cdn.imgtec.com/sdk-documentation/Dual+Paraboloid+Environment+Mapping.Whitepaper.pdf
so the word "dual"

Godot uses dual paraboloid internally, but it expects an equirectangular (AKA panorama) map from users. Most HDRIs come in equirectangular format nowadays. Plus they are way simpler to import. Finally, it is not a lot of work to just convert your cubemap to an equirectangular before import, there are plenty of tools out there to do it (see danilw's post above https://danilw.github.io/GLSL-howto/cubemap_to_panorama_js/cubemap_to_panorama.html)

For quick equirectangular rendering in Blender (or conversion from cubemap) there is also https://github.com/EternalTrail/eeVR which uses Eevee instead of Cycles (mentioned in https://blenderartists.org/t/will-eevee-support-vr-equirectangular-rendering/699631/37 )

Closing as per the discussion above. Thanks for taking the time to open the issue. :)

look like you guys have added my "not best" converter to your docs...
il add more info about the method with link to Godot-example project with same code, to that page then...

@mhilbrunner  please reopen this space backgrounds are a pain in the ass and there are no good tutorials on how to do it

@Shadowblitz16 Feature proposals should now be made on the Godot proposals repository.
Also, you can very much have space backgrounds with panorama skies.

thats the issue thought I don't want distortion and I don't want to have to hide anything
thats just bad design on godots end


directive inside form

If I use the directive inside a form (with name) and either I set a name for directive or not, the actual model is not updated after I select options from selectize.
It is functioning normally if it is not inside a form

It worth mentioning that the view value from the form controller is updated but not the ng-model set in the directive itself


Add a fix for CompileTimeErrorCode.NON_CONST_GENERATIVE_ENUM_CONSTRUCTOR

The diagnostic CompileTimeErrorCode.NON_CONST_GENERATIVE_ENUM_CONSTRUCTOR  should have a fix that would add the const keyword. The fix should probably only be applied if all of the fields are final.

It seems that Enums can only declare final fields.
Please look into https://dart-review.googlesource.com/c/sdk/+/239669

It seems that Enums can only declare final fields.

Yep. I didn't realize that when I opened the issue, but it makes sense given that enum constants are implicitly const.


Transaction Problem

Hi and sorry for my bad english.
I'm the owner of that wallet on interstellar: GBGF5UTTUG7OAGKDSXZCVCIDRSXFC5ALJI6HFSDE4M67HGIH4BCS7G42
I do this transaction https://stellar.expert/explorer/public/tx/b03904ef109759a88cbaaf572f184a68f183120bb050d769c9cf3a13a01cbc7f with the idea of transfer xrp to another wallet on AnchorUSD, but the founds never deposit because i forget to put the Tag Memo.
The AnchorUSD support tell me if i transfer to address without a memo, the transfer will fail, so funds should be returned to the account that i sent from.
So, can you return my XRP?
I was send mail to<EMAIL_ADDRESS>and<EMAIL_ADDRESS>and never receive a reply.
I await a reply.
    Regards.

Never had a reply...
Who is the owner of GDUEU22PQ2EHITT2MGNX6GSHBUOX2PZOPIJLQU3IFDOISQWIUVOSJZVC wallet? When I did the extraction my xrp go to that wallet
Who give back my xrp?

Never had a reply...
Who is the owner of GDUEU22PQ2EHITT2MGNX6GSHBUOX2PZOPIJLQU3IFDOISQWIUVOSJZVC wallet? When I did the extraction my xrp go to that wallet
Who give back my xrp?


MM-44460 - hide trial disclosure after start

Summary
This PR adds code to ensure that  the disclaimer is only shown when the trial button is available.
Ticket Link
https://mattermost.atlassian.net/browse/MM-44460
Related Pull Requests
n/a
Screenshots
For end users will look like this. For Admins must close the onboarding task list.

Release Note
NONE

this is how it behaves for admins:
https://user-images.githubusercontent.com/10082627/169921821-585ffca8-fa4c-4db3-a167-85c38fb91b21.mp4

/cherry-pick cloud

Cherry pick is scheduled.


Alias speech is skipped when a msg starts with parenthesis

Alias is not activated when you start a message with parenthesis.
Steps to reproduce:

Set a server alias or a channel alias
Send a message that starts with parenthesis

Expected: the message appears using the set alias

Thanks, this is actually intended, and a continuation from Rod1, but I'll be changing how it works. Right now, you can bypass rod by using a parenthesis to talk "out of character".
Moving foward we'rell have ignoreCharacters that can be set per server, with ( used a default. This should account for the desire to speak out of character as well as to ignore things like Avrae commands easily.


feat: use v1 instead of tier4/proposal

This PR should be merged when we release v1.

I tentatively pushed the v1 tag for testing, which will be updated later.


Power transfer issue with Universal Cables

Some tile entities that use power do not accept it while connected to Universal Cables, however they work fine connected to an Energy Cube. For example:

As seen here, the Capacitor Bank does not accept power when connected via cables, but connected directly to the Cube. The same goes for the Controller from Refined Storage. Here's a list of other such examples.

EnderIO - Cappacitor Bank
RFTools - Advancesd Powercell
Forestry - Squeezer

However, oddly, power transfer with cables does work with some blocks, such as:

IC2 - MFSU
Immersive Enginering - Capacitor
Draconic Evolution - Energy Infuser
Extra Utilities 2 - Wireless RF Battery
DeepResonanse - Smelter

Original source: https://github.com/DNSTechpack/DNS10-MC1.10.2/issues/27
Tested myself and this is indeed a notable issue.

Want to confirm this issue, but add that with other blocks, like Ender IO's Sag Mill, it doesn't even accept power directly from the cube with no intervening cables.  Haven't tested any other blocks.

As an addendum, even for the blocks that don't pull energy straight from the energy cubes, the EnderIO energy conduits are able to interact with it, and then can power everything else that runs on RF (I think.  I haven't tested EVERY RF machine).

#3911

When you give a bug report like that you should add info about what version you used. If this is an issue with the most recent version this bug is important to fix. If you use an outdated version this was already fixed.

It is the most recent version, as can be found in the log.

Also have the latest version, 295.

Probably related: OpenComputers computer cases connect but don't draw power, while the power converter does function fine.

+1
Playing FTB Infinity Lite and tried to use Advanced Universal Cables to pull energy out of an RFTools Powercell to put power into a Gendustry Industrial Hive.

I know the Powercell/Hive were working because when placed next to each other they're fine.
I also know that the cables can input energy into an RFTools Powercell because that works elsewhere in the world.

The problem seems to be specifically piping energy into the Industrial Hive via Mekanism's universal cables. I attempted to use the Configurator to properly configure pulling from the Powercell and pushing into the Industrial Hive, but it didn't make a difference.  I crafted some Energy Conduits from EnderIO just to test, and those worked with the Powercell/Hive.

FTB Infinity Lite  v1.6.0
Minecraft 1.10.2 (modded) forge-<IP_ADDRESS>1
Mekanism-1.10.2-<IP_ADDRESS>5


GH-44079: [C++][Parquet] Remove deprecated APIs

What changes are included in this PR?
Remove APIs that have been deprecated more than one year ago (i.e. in 2023 or before).

GitHub Issue: #44079

cc @emkornfield

Rebased, will wait for CI


Integrate Hypothesis to perform property-based testing

Acceptance

[x] Hypothesis is used somewhere to uncover at least one bug.

Tasks

Explore the Hypothesis framework https://hypothesis.works/

Read:

[x] https://hypothesis.works/articles/writing-good-software/
[x] Some of https://hypothesis.works/articles/intro/
[x] Some of https://hypothesis.readthedocs.io/en/latest/

Watch:

[x] https://youtu.be/KcyGUVzL7HA from PyCon

Analysis
Property-based testing allows one to try improbable combinations that may not have been thought of in order to break software in unexpected ways. It will result in interesting findings (at least for me) as there might be situations that are not currently being tested.

FIXED: Hypothesis is used in mathtools and showed that overflow errors weren't taken care of. :slightly_smiling_face:


Scout Weapon Specialist

About the PR

Why / Balance

Technical details

Media

[X] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

https://github.com/user-attachments/assets/54176203-6331-491e-b68b-1a4f551227d6
Breaking changes

Changelog

Marking this as ready for review as, I believe it's finished and ready for review. I'll be filling out the PR description shortly.


Use cassandra-driver in cassandra_interface

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

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

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

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


Containers and domain

Can I run two containers at the same time and access it using a URL? By default, it uses wocker.dev but I want to create another container that runs into let says mysite.dev.
Is that possible?
Thanks.

Sorry for the late reply.

Can I run two containers at the same time and access it using a URL?

I have to say it's not available basically. However, if you are familiar with Docker, it's possible to do it, but it will be no longer Wocker.

I created a patch to run multiple wocker containers at the same time.
https://github.com/ailispaw/wocker/tree/wocker-multi
If you run the wocker VM on Mac OSX and installed vagrant-triggers plugin, you can access http://wocker.wocker.dev instead of http://wocker.dev as below.
And you can create another wocker container as you want.
$ vagrant destroy -f # If you have already created the wocker VM.
$ vagrant up         # You may ask your password to setup DNS resolver and routing on Mac OSX.
$ open http://wocker.wocker.dev
$ vagrant ssh -c 'wocker-multi <name>'
$ open http://<name>.wocker.dev

@ailispaw
This is amazing!
However, some Wocker commands will not work.
I will consider this feature on the next major version.

@ixkaito Yeah, I'm concerned about Windows, too.
We need contributors for that.

:+1:


Clarify Yarn v2 usage

Closes https://github.com/shakacode/shakapacker/issues/35
We've had Yarn v2 support for a bit but requirement to opt out of Plug'n'Play behaviour was buried in the changelog. This should make this much clearer

Thanks @tomdracz !


The application called an interface that was marshalled for a different thread

Hi!
I have the following problem with my code (simplified code):
public async Task<int> AddAsync(TModel model)
{
	var connectionFactory =
                    new Func<SQLiteConnectionWithLock>(
                        () =>
                        new SQLiteConnectionWithLock(
                            new SQLitePlatformWinRT(),
                            new SQLiteConnectionString(FilePath, storeDateTimeAsTicks: false)));

    var connection = new SQLiteAsyncConnection(connectionFactory, TaskScheduler.Current);
	var i = await connection.InsertAsync(model);
	return i;
}

When I call the AddAsync Method I get an error:
An exception of type 'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll but was not handled in user code

Additional information: The application called an interface that was marshalled for a different thread. (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD))

I think it is because the model gets edited inside the connection.InsertAsync(model) but it uses not the UI Thread.
Is there a way around?
Thanks

Ok. Problem solved. The Problem was, that I implemented my ID as an IPropertyChanged Property
I changed:
private int _id;

[AutoIncrement, PrimaryKey]
[Column("Id")]
public int Id
{
	get
	{
		return _id;
	}
	set
	{
		this.SetProperty(ref _id, value);
	}
}

to an AutoProperty and everything is working fine.
public int Id {get; set;}

Ok, thanks for updating the issue.


Question About RoiDataLoader

PLEASE FOLLOW THESE INSTRUCTIONS BEFORE POSTING

Please search existing open and closed issues in case your issue has already been reported
Please try to debug the issue in case you can solve it on your own before posting

After following steps above and agreeing to provide the detailed information requested below, you may continue with posting your issue
(Delete this line and the text above it.)
Expected results
I want to the RoiDataLoader work
Actual results
I got the wrong information:
cannot select an axis to squeeze out which has size not equal to one
What did you observe instead?
Detailed steps to reproduce
I found the getitem in RoiDataLoader
call get_minibatch()
and get_minibatch() will return a blob
then this for-loop will crash
for key in blobs:             if key != 'roidb':                 blobs[key] = blobs[key].squeeze(axis=0)
I check the get_minibatch()
found it will never get a "roidb" key and other keys will never get a axis equal to one
just like the wrong information
so could you please give me some explanation?
System information

Operating system: Ubuntu 16.04
CUDA version: 8
cuDNN version: 6
GPU models (for all devices if they are not all the same): ?
python version: 3.6.5
pytorch version: 0.4.0
Anything else that seems relevant: ?

Dataset？ Command ?  More information please.


Failed with Terraform init

Tried to run the pipeline and got the error:
Initializing the backend...
Initializing modules...
╷
│ Error: Error building ARM Config: obtain subscription(b7c12d9f-e21b-4abe-9377-aafff5a79f00) from Azure CLI: parsing json result from the Azure CLI: waiting for the Azure CLI: exit status 1: ERROR: Please run 'az login' to setup account.
│

Never mind, my service connection was the problem.  Close the issue now.


rio systemlogs should include all deployments, not just rio controller

maybe controlled via a flag --all or --services=all|istio|whatever


Failed to acquire camera feed

when i open the site (selfhosted) i get the error: Failed to acquire camera feed: AbortError: Starting videoinput failed
I tested it with Firefox.
In chrome i get the error: Failed to acquire camera feed: NotReadableError: Could not start video source

The function to request camera feed (MediaDevices.getUserMedia) is available only in secure contexts (HTTPS), which is not the case for most localhost setup.

with the prehosted version i get the error: Please allow camera for facial tracking.. I have allow access to the right camera

i have fixed it by reselecting the camera and clearing the cookies and the site data

The function to request camera feed (MediaDevices.getUserMedia) is available only in secure contexts (HTTPS), which is not the case for most localhost setup.

It worked without HTTPS


Word and character embeddings are not being fixed

We have options --no_fix_emb and --no_fix_charemb for not fixing the word and character embeddings respectively. But the argument parser misses the "dest" option due to which the embeddings are always fixed despite specifying the options.
Listing below the line numbers in the options file corresponding to the same.
https://github.com/microsoft/Multilingual-Model-Transfer/blob/bb8928dfcad8d232dacb1ce7d09d8c79e95bb9c1/options.py#L38-L39
https://github.com/microsoft/Multilingual-Model-Transfer/blob/bb8928dfcad8d232dacb1ce7d09d8c79e95bb9c1/options.py#L71-L72

Hi, thank you for spotting this issue! Would you like to submit a PR?

Fixed by #9


Chat form item Page from wrong person

The chat when started fromitem pages make it look like it's coming from the wrong person. need to be recoded.

Chaged so current user name will be displayed


Bugfix/basepath

Working towards #1709
I think we're almost there, some tests I did are now working properly.
Would love to get some feedback/ideas on the implementation and the tests :)

coverage: 94.042% (-0.003%) from 94.045% when pulling 7d51913ad5f701395ca606c462282a60ed207546 on Ruwann:bugfix/basepath into 59a09c7c7f2d0c30d70cc4386a339de5f1203ec2 on spec-first:main.

Thanks, good catch. Indeed, this was not yet working properly because the tests added the /{path:path} part that's actually needed. Fixed this now :)
Agreed, don't think it has downsides for routes as / and /basepath are technically not comparable, neither is more specific than the other, but this changes for basepaths.


New files for terraform/environments

This PR was automatically created via a GitHub action workflow 🤖

This PR commits new files under terraform/environments.

Closing as it's a dupe of https://github.com/ministryofjustice/modernisation-platform-environments/pull/5317


Task/02 interfaces

https://demasha0908.github.io/fe-react-2024/

[x] - Mentor is added to pr
[x] -  AC copied to pr description
[x] -  Link to deployed version is added to pr
[x] -  Interfaces for Product and Category based on swagger are created and exported in separate file.
[x] -  Static header and footer are created according to mobile and desktop designs

Hey, @demasha0908 , thanks for your pr, gonna check it during the day

Please fix the left indentation of a logo on mobile

... and right of the burger button


[3.x] Move Bullet physics query flush from Bullet space pre-tick callback to Bullet physics flush_queries() again.

This reverts commit 10544f1cf777324efc676565ecc698f8ba9f06e3.
As per discussion here, #40185 was reverted for 3.2.3, because of a regression issues. Once all the regression issues have been resolved this change can be reapplied.
Regression issues that need to be resolved before applying this PR:

[ ] #40486
[x] #40508 - Fixed with c31acd0058cb or a 3.2 cherry-pick of #42650.
[x] #40739 - Fixed with #40990

Edit: I've added the fix for #40508 as a separate commit to this PR.
Closes #37702

I think re-cherrypicking the fix might look better than a revert of a revert (which looks like we messed up twice :P), but from a purely technical point of view this is fine :)

Reverting the revert was the easiest way to ensure it was correct. Cherry-picking from master fails, because of the file renames and would require manual changes. Ultimately, it's just an automatic commit message, which can be changed. If you want me to change it, let me know.

Fixes #40739.

Since #40252 also has a regression (#40840), I've added the fix for #40508 as a new commit to this PR.

Necroing this issue. Just discovered that the Bullet Physics system is 'off by 1' frame because of this. ie: body.position is off by 1 frame from what is in the physics engine. This should probably be merged.


Adds callback for renderer updates.

Pass onRendererUpdate to Plotly onUpdate to resolve #32.

This is a good idea but not sure it needs to be a first-class prop, it could just be something that the renderers support and is just passed along, like plotlyConfig?

OK, that would be easy too. Effectively, that is already how the callback works, only the check for propTypes should then be moved to the renderer. I can update that and create a new pull request.


Update kv secrets sync stack

Integrates Sync Stack in KV Secrets SDK.
Note: Polling and List APIs will be Syncified later as support for them lands in Azure Core.
Enables Sync Rest Proxy by default for KV APIs.

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-security-keyvault-secrets


Minor improvements

:tada: This pull request is included in version 1.0.0 :tada:
The release is available on GitHub release :rocket:


When freshly logged-in, the New RemoteApp modal shows Advanced options

After you have edited a RemoteApp, it does not.

Oops, this is an old issue, already fixed


Docs: Fix spelling: ( from opiniated to opinionated)

What is it?
Docs
Description
Change incorrect spelling: from opiniated to opinionated .

ouch! thanks you


google.generativeai.types.generation_types.StopCandidateException: index: 0

Description of the bug:
code:
"""
Install the Google AI Python SDK

$ pip install google-generativeai

See the getting started guide for more information:
https://ai.google.dev/gemini-api/docs/get-started/python
"""

import os

import google.generativeai as genai

genai.configure(api_key='XXX')

# Create the model
# See https://ai.google.dev/api/python/google/generativeai/GenerativeModel
generation_config = {
  "temperature": 1,
  "top_p": 0.95,
  "top_k": 64,
  "max_output_tokens": 8192,
  "response_mime_type": "text/plain",
}

model = genai.GenerativeModel(
  model_name="gemini-1.5-pro",
  generation_config=generation_config,
  # safety_settings = Adjust safety settings
  # See https://ai.google.dev/gemini-api/docs/safety-settings
  system_instruction="This text is from the ZeroMQ guide, the field of knowledge is computer science, the original text is in English, please translate into Chinese, do not use machine translation style, do not add translation notes.",
)

chat_session = model.start_chat()

response = chat_session.send_message("By Pieter Hintjens, CEO of iMatix")
print(response.text)
response = chat_session.send_message("Please use the issue tracker for all comments and errata. This version covers the latest stable release of ZeroMQ (3.2). If you are using older versions of ZeroMQ then some of the examples and explanations won’t be accurate.")
print(response.text)
response = chat_session.send_message("The Guide is originally in C , but also in PHP , Java , Python , Lua , and Haxe . We’ve also translated most of the examples into C++, C#, CL, Delphi, Erlang, F#, Felix, Haskell, Julia, Objective-C, Ruby, Ada, Basic, Clojure, Go, Haxe, Node.js, ooc, Perl, Scala, and Rust.")
print(response.text)
response = chat_session.send_message("Preface")
print(response.text)
response = chat_session.send_message("ZeroMQ in a Hundred Words")
print(response.text)
response = chat_session.send_message("ZeroMQ (also known as ØMQ, 0MQ, or zmq) looks like an embeddable networking library but acts like a concurrency framework. It gives you sockets that carry atomic messages across various transports like in-process, inter-process, TCP, and multicast. You can connect sockets N-to-N with patterns like fan-out, pub-sub, task distribution, and request-reply. It’s fast enough to be the fabric for clustered products. Its asynchronous I/O model gives you scalable multicore applications, built as asynchronous message-processing tasks. It has a score of language APIs and runs on most operating systems. ZeroMQ is from iMatix and is LGPLv3 open source.")
print(response.text)
response = chat_session.send_message("How It Began")
print(response.text)
response = chat_session.send_message("We took a normal TCP socket, injected it with a mix of radioactive isotopes stolen from a secret Soviet atomic research project, bombarded it with 1950-era cosmic rays, and put it into the hands of a drug-addled comic book author with a badly-disguised fetish for bulging muscles clad in spandex. Yes, ZeroMQ sockets are the world-saving superheroes of the networking world.")
print(response.text)

Actual vs expected behavior:
actual:
Traceback (most recent call last):
  File "/home/wencan/Projects/py_main/zguide/test.py", line 50, in <module>
    response = chat_session.send_message("We took a normal TCP socket, injected it with a mix of radioactive isotopes stolen from a secret Soviet atomic research project, bombarded it with 1950-era cosmic rays, and put it into the hands of a drug-addled comic book author with a badly-disguised fetish for bulging muscles clad in spandex. Yes, ZeroMQ sockets are the world-saving superheroes of the networking world.")
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/wencan/.local/lib/python3.12/site-packages/google/generativeai/generative_models.py", line 514, in send_message
    self._check_response(response=response, stream=stream)
  File "/home/wencan/.local/lib/python3.12/site-packages/google/generativeai/generative_models.py", line 542, in _check_response
    raise generation_types.StopCandidateException(response.candidates[0])
google.generativeai.types.generation_types.StopCandidateException: index: 0
finish_reason: SAFETY
safety_ratings {
  category: HARM_CATEGORY_SEXUALLY_EXPLICIT
  probability: MEDIUM
}
safety_ratings {
  category: HARM_CATEGORY_HATE_SPEECH
  probability: NEGLIGIBLE
}
safety_ratings {
  category: HARM_CATEGORY_HARASSMENT
  probability: LOW
}
safety_ratings {
  category: HARM_CATEGORY_DANGEROUS_CONTENT
  probability: NEGLIGIBLE
}

Any other information you'd like to share?
OS: Fedora Linux 40 (Workstation Edition) x86_64
Host: 21D0 ThinkBook 14 G4+ ARA
Kernel: 6.8.11-300.fc40.x86_64
Uptime: 2 hours, 46 mins
Packages: 2663 (rpm), 42 (flatpak)
Shell: bash 5.2.26
Resolution: 2880x1800
DE: GNOME 46.2
WM: Mutter
WM Theme: Adwaita
Theme: Adwaita [GTK2/3]
Icons: Adwaita [GTK2/3]
Terminal: gnome-terminal
CPU: AMD Ryzen 5 6600H with Radeon Graphics (12) @ 4.564GHz
GPU: AMD ATI Radeon 680M
Memory: 4608MiB / 13649MiB
Python 3.12.3
google-ai-generativelanguage 0.6.4
google-api-core              2.19.0
google-api-python-client     2.132.0
google-auth                  2.30.0
google-auth-httplib2         0.2.0
google-generativeai          0.6.0
google-pasta                 0.2.0
googleapis-common-protos     1.63.1

@wecan, This error is not from the python SDK side and it's from the Gemini API side. The last message of the chat_session is blocked by Gemini because of Safety reasons. Thank you!

Any idea? I'm trying to translate a text that gemini created by itself and I receive also
StopCandidateException(index: 0
finish_reason: OTHER
)
It's killing my production launch. :'(
model_name="gemini-1.5-flash"
safety_settings={
HarmCategory.HARM_CATEGORY_HARASSMENT: HarmBlockThreshold.BLOCK_NONE,
HarmCategory.HARM_CATEGORY_HATE_SPEECH: HarmBlockThreshold.BLOCK_NONE,
HarmCategory.HARM_CATEGORY_SEXUALLY_EXPLICIT: HarmBlockThreshold.BLOCK_NONE,
HarmCategory.HARM_CATEGORY_DANGEROUS_CONTENT: HarmBlockThreshold.BLOCK_NONE,
}


ADS Notebook without activity consuming 1gb of Memory

Azure Data Studio Version:
Version: 1.5.2 (user setup)
Commit: f74080c96310354bc92211f1826c0fdce78ca2f6
Date: 2019-03-22T06:25:26.627Z
VS Code 1.30.1
Electron: 2.0.12
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
OS: Windows_NT x64 10.0.14393

Steps to Reproduce:
Is it common for the Idle BDC Notebook to consume around 1gb of memory. At present I am not running any commands or making any installs, connections to Azure from Notebook.
This is the same notebook I had used for BDC deployment in the morning. Post deployment I have left it open and in idle state for more than 2hrs now. I had not validated what is the consumption When deployment or mssqlctl installation was happening so I am not sure if it was acquired during that time and never got released. I have taken a full dump of the process from debugdiag if someone Is interested to review the same. The dump cannot be attached as zip file is around 250mb and the dump is 1gb in size,Let me know if you want to investigate i can share it.
Snapshot from process explorer within ADS

Debug Diag process display

Further drilling this down I see the following where in the Jupyter-notebook.exe is not consuming much memory and also adding up private bytes of all the child processes
Doesn’t sum up to the parent consumption. So the consumption should be by the parent itself and none of the child is contributing to the same.

To eliminate Notebook out of the picture I closed the notebook , disabled and un-installed SQL Server 2019 extension and that did not make much difference.
So I am not sure it’s actually contributed by notebook or not as after all these activities I still see the jupyter-notebook.exe launched and was not unloaded
After almost 1hr of duration I see that the jupyter-notebook has been unloaded and the memory consumption is back to normal.
So it looks like the behavior is not similar to mssqlctl.exe which was always resident rather for notebook binary unloading is very slow and memory release is also relative to the same.
If you notice this snapshot the azure data studio pid 19840 chain is completely gone under which jupyter-notebook was provisioned. More than the termination I am worried about
Why its consuming around a 1gb of memory even when the notebook is idle and I couldn’t account for that from child processes. Is it something like the python kernel takes huge amount
Of memory?

On the same lines if I open multiple notebooks the jupyter-notebook , python chain duplicates here ; is this a by design behavior which cannot be changed. If I am managing
4 cluster via ADS then along with this 4 instances of mssqlctl would also get loaded. Is there a possibility to only load 1 occurance of necessary executables and binaries and reuse
them for all other notebook activity?

Perf improvement target for June

From Pradeep: "This issue as noticed in build 1.5.2 and I am currently using build 1.7.0.
I have not seen this issue re-occur so far on build 1.7.0. In case if it re-occurs I will capture the dumps again and probably re-open this bug."