[flaky] test/e2e_new.TestKafkaSourceDeletedFromContractConfigMaps

The TestKafkaSourceDeletedFromContractConfigMaps e2e test is very flaky and makes CI very unstable, as it's kafkasource does not get cleaned up in time.
    ...
    feature.go:240: Deleting test-dnqafecr/x-kafka-source-30 of GVR: sources.knative.dev/v1beta1, Resource=kafkasources
    feature.go:254: Resource sources.knative.dev/v1beta1, Resource=kafkasources test-dnqafecr/x-kafka-source-30 still present
    logging.go:85: Resource sources.knative.dev/v1beta1, Resource=kafkasources test-dnqafecr/x-kafka-source-30
        {
          "apiVersion": "sources.knative.dev/v1beta1",
          "kind": "KafkaSource",
          "metadata": {
            "creationTimestamp": "2023-10-26T06:16:36Z",
            "deletionGracePeriodSeconds": 0,
            "deletionTimestamp": "2023-10-26T06:21:24Z",
            "finalizers": [
              "foregroundDeletion"
            ],
            "generation": 2,
            "managedFields": [
              {
                "apiVersion": "sources.knative.dev/v1beta1",
                "fieldsType": "FieldsV1",
                "fieldsV1": {
                  "f:spec": {
                    ".": {},
                    "f:bootstrapServers": {},
                    "f:sink": {
                      ".": {},
                      "f:ref": {
                        ".": {},
                        "f:apiVersion": {},
                        "f:kind": {},
                        "f:name": {},
                        "f:namespace": {}
                      }
                    },
                    "f:topics": {}
                  }
                },
                "manager": "e2e_new.test",
                "operation": "Update",
                "time": "2023-10-26T06:16:36Z"
              },
              {
                "apiVersion": "sources.knative.dev/v1beta1",
                "fieldsType": "FieldsV1",
                "fieldsV1": {
                  "f:metadata": {
                    "f:finalizers": {}
                  }
                },
                "manager": "kafka-controller",
                "operation": "Update",
                "time": "2023-10-26T06:16:36Z"
              },
              {
                "apiVersion": "sources.knative.dev/v1beta1",
                "fieldsType": "FieldsV1",
                "fieldsV1": {
                  "f:status": {
                    ".": {},
                    "f:conditions": {},
                    "f:observedGeneration": {},
                    "f:placements": {},
                    "f:selector": {},
                    "f:sinkUri": {}
                  }
                },
                "manager": "kafka-controller",
                "operation": "Update",
                "subresource": "status",
                "time": "2023-10-26T06:20:03Z"
              }
            ],
            "name": "x-kafka-source-30",
            "namespace": "test-dnqafecr",
            "resourceVersion": "68386",
            "uid": "6084ded1-63b2-4c7e-b0e4-057610737370"
          },
          "spec": {
            "bootstrapServers": [
              "my-cluster-kafka-bootstrap.kafka:9092"
            ],
            "consumerGroup": "knative-kafka-source-adc5600d-2b6d-4fef-8d9a-93f00bbf47ca",
            "consumers": 1,
            "initialOffset": "latest",
            "net": {
              "sasl": {
                "password": {},
                "type": {},
                "user": {}
              },
              "tls": {
                "caCert": {},
                "cert": {},
                "key": {}
              }
            },
            "ordering": "ordered",
            "sink": {
              "ref": {
                "apiVersion": "v1",
                "kind": "Service",
                "name": "sink",
                "namespace": "test-dnqafecr"
              }
            },
            "topics": [
              "topic-paoaveis"
            ]
          },
          "status": {
            "conditions": [
              {
                "lastTransitionTime": "2023-10-26T06:20:03Z",
                "message": "failed to reconcile contract: failed to reconcile egress: failed to resolve subscriber: failed to get object test-dnqafecr/sink: services \"sink\" not found",
                "reason": "ReconcileContract",
                "status": "False",
                "type": "ConsumerGroup"
              },
              {
                "lastTransitionTime": "2023-10-26T06:20:03Z",
                "message": "failed to reconcile contract: failed to reconcile egress: failed to resolve subscriber: failed to get object test-dnqafecr/sink: services \"sink\" not found",
                "reason": "ReconcileContract",
                "status": "False",
                "type": "Ready"
              },
              {
                "lastTransitionTime": "2023-10-26T06:16:38Z",
                "status": "True",
                "type": "SinkProvided"
              }
            ],
            "observedGeneration": 1,
            "placements": [
              {
                "podName": "kafka-source-dispatcher-4",
                "vreplicas": 1
              }
            ],
            "selector": "eventing.knative.dev/source=kafka-source-controller,eventing.knative.dev/sourceName=x-kafka-source-30",
            "sinkUri": "http://sink.test-dnqafecr.svc.cluster.local/"
          }
        }
        Events:
        {
          "metadata": {},
          "items": null
        }
    feature.go:201: failed to wait for resources to be deleted: timed out waiting for the condition
--- FAIL: TestKafkaSourceDeletedFromContractConfigMaps/KafkaSources#01/Teardown/cleanup_resources (465.25s)
FAIL test/e2e_new.TestKafkaSourceDeletedFromContractConfigMaps/KafkaSources#01/Teardown/cleanup_resources (465.25s)
=== RUN   TestKafkaSourceDeletedFromContractConfigMaps/KafkaSources#01/Teardown
--- FAIL: TestKafkaSourceDeletedFromContractConfigMaps/KafkaSources#01/Teardown (0.00s)
FAIL test/e2e_new.TestKafkaSourceDeletedFromContractConfigMaps/KafkaSources#01/Teardown (0.00s)
=== RUN   TestKafkaSourceDeletedFromContractConfigMaps/KafkaSources#01
--- FAIL: TestKafkaSourceDeletedFromContractConfigMaps/KafkaSources#01 (704.20s)
FAIL test/e2e_new.TestKafkaSourceDeletedFromContractConfigMaps/KafkaSources#01 (704.20s)

E.g. in https://prow.knative.dev/view/gs/knative-prow/pr-logs/pull/knative-extensions_eventing-kafka-broker/3398/reconciler-tests_eventing-kafka-broker_main/1717413347420278784

/cc @pierDipi @Cali0707

From CI history, it seems this could have come in around #3321.


Typo

Fixed typo to make the svelte example work

Hi @Fabian9799, thanks so much for your contribution 🙂


AttributeError: 'MultiStepLR' object has no attribute 'get_epoch_values'

\AdaFace with the following property
self.m 0.4
self.h 0.333
self.s 64.0
self.t_alpha 0.01
Global seed set to 42
/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/trainer/connectors/accelerator_connector.py:441: LightningDeprecationWarning: Setting Trainer(gpus=1) is deprecated in v1.7 and will be removed in v2.0. Please use Trainer(accelerator='gpu', devices=1) instead.
rank_zero_deprecation(
Using 16bit native Automatic Mixed Precision (AMP)
GPU available: True (cuda), used: True
TPU available: False, using: 0 TPU cores
IPU available: False, using: 0 IPUs
HPU available: False, using: 0 HPUs
Trainer(limit_train_batches=1.0) was configured so 100% of the batches per epoch will be used..
Trainer(val_check_interval=1.0) was configured so validation will run at the end of the training epoch..
start training
making validation data memfile
[rank: 0] Global seed set to 42
Initializing distributed: GLOBAL_RANK: 0, MEMBER: 1/1
distributed_backend=nccl
All distributed processes registered. Starting with 1 processes
creating train dataset
record file length 490623
creating val dataset
laoding validation data memfile
laoding validation data memfile
laoding validation data memfile
laoding validation data memfile
laoding validation data memfile
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
| Name               | Type             | Params
0 | model              | Backbone         | 43.6 M
1 | head               | AdaFace          | 5.4 M
2 | cross_entropy_loss | CrossEntropyLoss | 0
49.0 M    Trainable params
0         Non-trainable params
49.0 M    Total params
97.997    Total estimated model params size (MB)
Sanity Checking DataLoader 0: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████| 16/16 [00:01<00:00,  9.94it/s]/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/trainer/connectors/logger_connector/result.py:233: UserWarning: You called self.log('agedb_30_num_val_samples', ...) in your validation_epoch_end but the value needs to be floating point. Converting it to torch.float32.
warning_cache.warn(
/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/trainer/connectors/logger_connector/result.py:233: UserWarning: You called self.log('epoch', ...) in your validation_epoch_end but the value needs to be floating point. Converting it to torch.float32.
warning_cache.warn(
/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/trainer/connectors/logger_connector/result.py:537: PossibleUserWarning: It is recommended to use self.log('agedb_30_val_acc', ..., sync_dist=True) when logging on epoch level in distributed setting to accumulate the metric across devices.
warning_cache.warn(
/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/trainer/connectors/logger_connector/result.py:537: PossibleUserWarning: It is recommended to use self.log('agedb_30_best_threshold', ..., sync_dist=True) when logging on epoch level in distributed setting to accumulate the metric across devices.
warning_cache.warn(
/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/trainer/connectors/logger_connector/result.py:537: PossibleUserWarning: It is recommended to use self.log('agedb_30_num_val_samples', ..., sync_dist=True) when logging on epoch level in distributed setting to accumulate the metric across devices.
warning_cache.warn(
/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/trainer/connectors/logger_connector/result.py:537: PossibleUserWarning: It is recommended to use self.log('val_acc', ..., sync_dist=True) when logging on epoch level in distributed setting to accumulate the metric across devices.
warning_cache.warn(
/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/trainer/connectors/logger_connector/result.py:537: PossibleUserWarning: It is recommended to use self.log('epoch', ..., sync_dist=True) when logging on epoch level in distributed setting to accumulate the metric across devices.
warning_cache.warn(
Epoch 0:   0%|                                                                                | 0/8635 [00:00<?, ?it/s]Traceback (most recent call last):
File "main.py", line 109, in
main(args)
File "main.py", line 81, in main
trainer.fit(trainer_mod, data_mod)
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 603, in fit
call._call_and_handle_interrupt(
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/trainer/call.py", line 36, in _call_and_handle_interrupt
return trainer.strategy.launcher.launch(trainer_fn, *args, trainer=trainer, **kwargs)
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/strategies/launchers/subprocess_script.py", line 90, in launch
return function(*args, **kwargs)
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 645, in _fit_impl
self._run(model, ckpt_path=self.ckpt_path)
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 1098, in _run
results = self._run_stage()
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 1177, in _run_stage
self._run_train()
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 1200, in _run_train
self.fit_loop.run()
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/loops/loop.py", line 199, in run
self.advance(*args, **kwargs)
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/loops/fit_loop.py", line 267, in advance
self._outputs = self.epoch_loop.run(self._data_fetcher)
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/loops/loop.py", line 199, in run
self.advance(*args, **kwargs)
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/loops/epoch/training_epoch_loop.py", line 214, in advance
batch_output = self.batch_loop.run(kwargs)
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/loops/loop.py", line 199, in run
self.advance(*args, **kwargs)
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/loops/batch/training_batch_loop.py", line 88, in advance
outputs = self.optimizer_loop.run(optimizers, kwargs)
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/loops/loop.py", line 199, in run
self.advance(*args, **kwargs)
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/loops/optimization/optimizer_loop.py", line 200, in advance
result = self._run_optimization(kwargs, self._optimizers[self.optim_progress.optimizer_position])
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/loops/optimization/optimizer_loop.py", line 247, in _run_optimization
self._optimizer_step(optimizer, opt_idx, kwargs.get("batch_idx", 0), closure)
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/loops/optimization/optimizer_loop.py", line 357, in _optimizer_step
self.trainer._call_lightning_module_hook(
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 1342, in _call_lightning_module_hook
output = fn(*args, **kwargs)
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/core/module.py", line 1661, in optimizer_step
optimizer.step(closure=optimizer_closure)
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/core/optimizer.py", line 169, in step
step_output = self._strategy.optimizer_step(self._optimizer, self._optimizer_idx, closure, **kwargs)
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/strategies/ddp.py", line 281, in optimizer_step
optimizer_output = super().optimizer_step(optimizer, opt_idx, closure, model, **kwargs)
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/strategies/strategy.py", line 234, in optimizer_step
return self.precision_plugin.optimizer_step(
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/plugins/precision/native_amp.py", line 85, in optimizer_step
closure_result = closure()
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/loops/optimization/optimizer_loop.py", line 147, in call
self._result = self.closure(*args, **kwargs)
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/loops/optimization/optimizer_loop.py", line 133, in closure
step_output = self._step_fn()
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/loops/optimization/optimizer_loop.py", line 406, in _training_step
training_step_output = self.trainer._call_strategy_hook("training_step", *kwargs.values())
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 1480, in _call_strategy_hook
output = fn(*args, **kwargs)
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/strategies/ddp.py", line 352, in training_step
return self.model(*args, **kwargs)
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/torch/nn/parallel/distributed.py", line 1156, in forward
output = self._run_ddp_forward(*inputs, **kwargs)
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/torch/nn/parallel/distributed.py", line 1110, in _run_ddp_forward
return module_to_run(*inputs[0], **kwargs[0])  # type: ignore[index]
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/home/administrator/anaconda3/envs/py388/lib/python3.8/site-packages/pytorch_lightning/overrides/base.py", line 98, in forward
output = self._forward_module.training_step(*inputs, **kwargs)
File "/home/administrator/adaface/AdaFace/train_val.py", line 78, in training_step
lr = self.get_current_lr()
File "/home/administrator/adaface/AdaFace/train_val.py", line 60, in get_current_lr
lr = scheduler.get_epoch_values(self.current_epoch)[0]
AttributeError: 'MultiStepLR' object has no attribute 'get_epoch_values'
Epoch 0:   0%|          | 0/8635 [00:00<?, ?it/s]
Is it a pytorch-lighting error?

same errors occur.

use lr = scheduler.get_last_lr()[0] instead of lr = scheduler.get_epoch_values(self.current_epoch)[0], it worked for me :)

use lr = scheduler.get_last_lr()[0] instead of lr = scheduler.get_epoch_values(self.current_epoch)[0], it worked for me :)

Yup. get_epoch_values() is deprecated


feature: auto align the structs  when compile

auto align the structs  to save some memory and doesn't change the structs order  because I want to keep  readability.

Dup of #42428


Runtime Modeling

https://docs.google.com/document/d/1HFyagOuU_ES9_xGUOVtSfYGXxXsVFbTJqwbILMqMsps/edit

out of scope, moved to dormant


How to show a bar above of TabNavigator, who hide on scroll down ( like facebook app do)

I use StackNavigator, TabNavigator and DrawerNavigator from react-navigation to navigate between tabs.
Now i want to create , exactly like the facebook's app do, a bar displayed above my tabNavigator. This tabs hide on scroll down and show on scroll up.  like this :
https://i.stack.imgur.com/DIlkL.jpg
The FlatList component have ListHeaderComponent option for rendering his header who also hide when scroll down ( because it is on top , so need to scroll to begining to see it, not user friendly with my very long list item +500)
Any idea ?
my actual simplified app.js
import MyMaps from "./MyMaps";
import Projects from "./Projects";
import ListObservation from "./ListObservation";
import NouvelleObservation from "./page/NouvelleObservation";
import Explorateur from "./Explorateur";
import Optionpage from "./Optionpage";
import MyObservations from "./MyObservations";

import ProfilePage from "./page/Profile";
import SettingPage from "./page/Setting";
import DonsPage from "./page/Dons";
import OthersoftPage from "./page/Othersoft";
import LoginPage from "./page/Login";

import styles from "./css/styles";

import ActionButton from "react-native-action-button";
import Icon from "react-native-vector-icons/Ionicons";

import { Provider } from "react-redux";
import store from "./redux/store";

import Config from "./Config";
import I18n from './i18n/i18n';

const MyTabView = TabNavigator(
  {
	ListObs: { screen: ListObservation },
	Explorateur: { screen: Explorateur },
	MyObs: { screen: MyObservations },
  },
  { ...  }
);

class MyGlobalComponent extends Component {
  constructor(props) {
	super(props);
  }

  goToCamera = () => {
	this.props.navigation.navigate("NvObs");
  };

  render() {
	return (
	  <View style={{ flex: 1 }}>

		<MyTabView navigation={this.props.navigation} screenProps={{navigation: this.props.navigation}} />
		<ActionButton buttonColor="rgba(231,76,60,1)" offsetY={Config.offsetYValue} offsetX={10}>
		  <ActionButton.Item
			buttonColor="#3498db"
			title={I18n.t("Reglages")}
			onPress={() => {
			  this.props.navigation.navigate('DrawerToggle');
			}} >
			<Icon name="md-settings" style={thisstyles.actionButtonIcon} />
		  </ActionButton.Item>
		  <ActionButton.Item
			buttonColor="#1abc9c"
			title={I18n.t("app.Nv_Observation")}
			onPress={() => {
			  this.goToCamera();
			}} >
			<Icon name="md-camera" style={thisstyles.actionButtonIcon} />
		  </ActionButton.Item>
		</ActionButton>
	  </View >
	);
  }
}

MyGlobalComponent.router = MyTabView.router;

const StackView = StackNavigator({
  global: {
	screen: MyGlobalComponent,
	headerMode: "none",
	header: null,
	navigationOptions: {
	  header: null
	}
  },
  NvObs: { screen: NouvelleObservation },
  profile: { screen: ProfilePage },
  setting: { screen: SettingPage },
  Maps: { screen: MyMaps }
});

const MyDrawerNavigator = DrawerNavigator({
  All:{  screen:StackView  },
  profile: { screen: ProfilePage },
  setting: { screen: SettingPage },
  dons: { screen: DonsPage },
  othersoft: { screen: OthersoftPage },
  Maps: { screen: MyMaps },
  login: { screen: LoginPage }
}, {
  drawerWidth: 300,
  drawerPosition: 'left',
});

import * as actions from "./redux/actions";

export default class App extends Component {
  constructor(props) {
	super(props);
  }

  render() {
	return (
	  <Provider store={store}>
		<View style={{ flex: 1 }}>
		  <MyDrawerNavigator />
		</View>
	  </Provider>
	);
  }
}

Hi @alainib! It looks like this is not a bug of the library nor a feature request, so I'll close it: I suggest next time you use Stack Overflow which is better suited for answering these types of questions. I also encourage you to join the Reactiflux community on Discord. There are React Native and React Navigation channels with helpful people who might be able to answer your question. I would also like to mention that there is a collection of helpful links and tutorials for React Navigation in the README which might be helpful for you.
If you believe that you are experiencing a bug or have a feature request, please open a new Issue following the dedicated template or submit a PR.

hello kelset. i opened a similar issue on stack since a week, the only answer i get was about using stackNavigation that i already use so i tryed her. thanks for the  Reactiflux link i will try this ;)


fix: don't throw exception on iteration breakout

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area build

/area plugin-sdk

/area tests

What this PR does / why we need it:
Avoid throwing an exception when iterate_entries returns false.
The false return statement is used to breakout from the iteration and doesn't necessarily means an error has occurred.
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: mrgian
Once this PR has been reviewed and has the lgtm label, please assign fededp for approval. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

LGTM label has been added.  Git tree hash: 783a88b0c6aac002660943521d2fd8ddb4b7e0ff


Allow merging and unmerging to succeed even if sorting fails

@Blargel, sorting can fail in some cases, see example in spec. Thought here is to allow merge to work but leave it unsorted.

Thanks for the report. Since I've been getting a lot of activity on this gem recently, I'm going to rewrite my specs, add additional cases, and fix some other bugs I encounter as well.

I'm honestly not a big fan of empty rescues. I'll try to find a better solution for this problem, but I may get lazy and merge this in anyways.

This was meant as quick workaround to fix an issue I encountered during the day.
Will noodle on it a bit more as I don't like empty catches either.
Was curious about the rationale for sorting in the first place. Is it needed for correctness? If not, it might be faster without it if nothing else.

It was a solution to a problem with merging from pull request #5.

Oh, if you're asking why I'm sorting arrays in the first place... I don't remember anymore. This gem was written years ago as practice for programming in Ruby. It recently became unexpectedly popular so I need to try to remember my own intentions now.

I'm removing sorting in my next release, which is finally going to be a major version bump. After going through everything again, it doesn't seem necessary and I think I only did it to make my poorly written tests pass when I was still a naive programmer.


[fix] HeadShot default multiplier values on 'Hover'

I forgot to change the default pistol 1.1x from rifles. Need to fix that.

Doesn't affect the new code logic - closing.


Shortcut request: Import from template

Would love to have a shortcut for "Import from template", which should bring up the file selection menu.

@amahabal I'm not familiar with this option, where can I find it in Todoist's UI?

On project actions, along with "Sort by date" etc. See attached screenshot.

It is a premium feature, AFAIK.

Ah thanks, I hadn't seen some of the options under that menu.  Not sure what keybindings to give to these items.  Tricky to give everything a binding because then the keyboard gets rather busy.  So far I've mostly been focusing on things that are similar to gmail's bindings (which are rather vim-ey), because this way they will hopefully be reasonably familiar to people.

On Thu, Jul 5, 2018, 1:48 AM Michael Sloan<EMAIL_ADDRESS>wrote:

Ah thanks, I hadn't seen some of the options under that menu. Not sure
what keybindings to give to these items. Tricky to give everything a
binding because then the keyboard gets rather busy. So far I've mostly been
focusing on things that are similar to gmail's bindings (which are rather
vim-ey), because this way they will hopefully be reasonably familiar to
people.

You are right about not making too many bindings. Would it be possible to
add code to create such binding, and attach it to some key that you find
reasonable, but comment it out? That way, it is a no op for everyone, but
those who want to use it can load a local version with this action bound to
the key they want?
I would have submitted a patch if my JavaScript was good enough.
Thanks!

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mgsloan/todoist-shortcuts/issues/30#issuecomment-402651284,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADFvNW9CDvCi7F6_rL2q_mLp-vRg9OMks5uDdLsgaJpZM4U5_0I
.

@amahabal Ah, yeah, this one was a bit trickier to write than most because there is no special class for the import from template menu item.  Also this code has my own idiosyncratic mini library to avoid depending on a library like jquery.
Anyway, I've pushed a commit implementing it :)

Closing this for now.  Going to continue with the arbitrary decision to not have a default keybinding for this.  Will be good to have the code around if / when a UI for customization is added.

Works, thanks for your quick turnaround time!


Control plane panic

thread 'tokio-runtime-worker' panicked at 'The solution contains more shards than the actual problem.', quickwit-control-plane/src/indexing_scheduler/scheduling/scheduling_logic.rs:296:17

Fixed in #4307


The event_loop bug is back on Windows

Bug Description
Random stack trace error after running any CLI command
Steps to Reproduce

Use windows
Install the latest version of fides (2.0.0)
run any CLI command

Expected behavior
No random stack trace
Screenshots
Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x00000217417F9AF0>
Traceback (most recent call last):
  File "C:\Users\tlapiana\anaconda3\lib\asyncio\proactor_events.py", line 116, in __del__
    self.close()
  File "C:\Users\tlapiana\anaconda3\lib\asyncio\proactor_events.py", line 108, in close
    self._loop.call_soon(self._call_connection_lost, None)
  File "C:\Users\tlapiana\anaconda3\lib\asyncio\base_events.py", line 751, in call_soon
    self._check_closed()
  File "C:\Users\tlapiana\anaconda3\lib\asyncio\base_events.py", line 515, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed

Environment

Version: 2.0.0 (beta)
OS: Windows 10
Python Version: 3.9.12

Additional context
This bug has been fixed once

@PSalant726 @seanpreston @sanders41 this got reintroduced with those fideslog changes I believe, but I wasn't close enough to them to know which ones

Welp. We took a mitigated risk and removed the helper that appeased Windows in #95. The Python docs claimed the issue was fixed in Python 3.8 but I guess they lied. I'll restore the helper tomorrow.

Blocked by ethyca/fideslog#96.


request

I would be obliged if you could kindly complete the following sections:
1- analytics
2- postgres adapter
regards

postgres 与 analytics 已经列入开发计划

so thanks for your current work in postgres. for analytics I recommend you to use  grafana.org and influxdb

@gogile 非常感谢你的建议！ grafana 很棒！后续会为分析模块添加 influxdb adapter

thanks for your current work in postgres.

Very very thanks, also for push adapter  I recommend you firebase and onsignal

What is your plane for push adapter?

When we can use the push adapter ?

push 模块已列入开发计划，可能会先支持 FCM


Rustfmt changes meaning of closure, also not idempotent

Input program, which compiles:
https://play.rust-lang.org/?edition=2018&gist=046bcee6f5a6524efd1cf0d71b383fef
fn main() {
    || {
        println!();
        || 0
    }().to_string();
}

As of rustfmt 2.0.0-rc.1-nightly (b9138e06 2020-02-10), rustfmt incorrectly changes this to the following which does not compile:
fn main() {
    || {
        {
            println!();
            || 0
        }()
        .to_string()
    };
}

It is also not idempotent, since running rustfmt again changes it to:
fn main() {
    || {
        {
            println!();
            || 0
        }
        ().to_string()
    };
}

This issue is also caused v1.4.12

I don't know why the first code compiles successfully in the first place, though either way, rustfmt not being idempotent is a problem.

This code snippet compiles as well:
fn main() {
    || {
        println!();
        |_| 0
    }(())
    .to_string();
}

This behavior indicates that the rustc parser considers the paren after the block as an argument to the closure inside the block. Weird!

This behavior indicates that the rustc parser considers the paren after the block as an argument to the closure inside the block. Weird!

I tried to evaluate this issue, but I didn't find any documentation of this feature. As indicated by the above comment, it seem that closures parameters can be passed using ().  E.g. the output of:
    let add1 = || { |x|  x + 1 };
    let a = 5;
    let b = 7;
    let b2 = || { |x|  x + 2 }(b);
    println!("a+1={}, b+2={}", add1()(a), b2());

is a+1=6, b+2=9.
Is this way of passing parameters to closures is a rust feature and I just didn't look at the right place?  Deprecated feature? Other?

confirming this is reproducible with rustfmt 1.5.1-nightly (a451a39d 2022-07-25)


Support transferring Unique NFTs

Support transfer for transferable NFT collections on Unique network

Account has non-transferable NFT on Opal: 5HbcGs2QXVAc6Q6eoTzLYNAJWpN17AkCFRLnWDaHCiGYXvNc
Account has transferable NFT on Opal: 0xb34965a683135c1f4b64814dde65c69ce47400ee

Handle on issue #2694


Code-Freeze and Branch Protection strategies

As we start publishing, we'll want to protect our main branch and (more than likely) cut release branches to keep in step with MCE (and ACM).
We should review what other collections do for this, and also review how they work these protections into their CI workflows

Versioning related at all to ACM/MCE?


Always shows the "Link from the web" box for images

Came across this post on meta SO today that seems like it'd fit well in this userscript. Not sure if you've used other people's scripts in the past or not, but figured it would be worth pointing out in case it was the type of thing you wanted to add.
In short, it removes the need to click the "link from the web" link to display the text field to do so when uploading an image.

@SnoringFrog not a bad idea; don't know whether I'll use Siguza's script or make my own yet though...  :) Thanks for showing me this!

@SnoringFrog Let's see... http://meta.stackoverflow.com/questions/306888/change-image-upload-modal-to-always-show-url-input-field/306901#comment252628_306901

@SnoringFrog the OP has let me use the code(!). So I will add it on the weekend. Thanks for this post again!

Done in v1.7 (currently in develop branch)!
Sorry for the extreme delay! :/


Updated some items qual based on dota client:

Rignt of health and void stone should be qual at secret shop; Fluffy hat should be qual component or other

Also needs to be applied in the updateconstants script


Kublet port 10250 Response Error

Hello,
When i'm trying to fetch the data of a particular minion through the kublet api i dont see any request passing through the api and i receive the following error when i curl
[fedora@ip-10-20-30-95 ~]$ curl -v http://<IP_ADDRESS>:10250/stats/
*   Trying <IP_ADDRESS>...
* Connected to <IP_ADDRESS> (<IP_ADDRESS>) port 10250 (#0)
> GET /stats/ HTTP/1.1
> User-Agent: curl/7.40.0
> Host: <IP_ADDRESS>:10250
> Accept: */*
>
< HTTP/1.1 500 Internal Server Error
< Content-Type: text/plain; charset=utf-8
< Date: Mon, 13 Jul 2015 10:51:16 GMT
< Content-Length: 72
<
Internal Error: received empty response from "container info for \"/\""

And i checked if the port is running on the minion or not and it is running
[fedora@ip-10-20-30-95 ~]$ netstat -vpln |grep 10250

tcp        0      0 <IP_ADDRESS>:10250       <IP_ADDRESS>:*               LISTEN      -

I have referred to this issue and i see there is some metrics floating from the kublet api to heapster #15 and i see there is a example curl to fetch the metrics http://sprunge.us/QiJL
Can you please help me out on how i can get the cadvisor based kublet metrics of that particular minion.

Kubelet exposes a read only port that exposes the '/stats' endpoint. Can you try accessing via that port?

This is not related to Heapster.


feat: new coolify env vars to containers and expose them to log drain

Always use next branch as destination branch for PRs, not main

This mr add 4 new default env vars and expose them to log drain:

COOLIFY_APP_NAME
COOLIFY_PROJECT_NAME
COOLIFY_SERVER_IP

why: inside a container we can't really get the host ip unless we edit docker / the network which is not ideal on coolify.

COOLIFY_ENVIRONMENT_NAME

why: In my case I have a "production" and a "preprod" env. Alternative is to set a environment shared variable with the env name. that's what I'm currently doing, but then you have to add it to every project.

These 4 new vars are also added to the log drain to fix https://github.com/coollabsio/coolify/discussions/2770
Screen axiom:
I've tested with:

docker-image: nginx:latest ✅

renamed the project to nginx

redis template: ✅

grafana: ✅

I've prefixed the logdrain variables with coolify, might be nice to do the same for the server_name 🤷 . Or we can remove it, don't really care. Note: on the first two screens (docker, redis) server_name was not prefixed. Don't know if thats breaking.
Note: we'll have to update the doc
--
For comparison, what I currently see in axiom:

I'm not really sure how to do this more clean.
There's a generate_environment_variables method in all database service (Keydb, redis, postgres etc). So if i want to add these new variable in these service (for the log drain). I'll have to copy paste the same code on these places. I'd love to make a clean code but there's many copy/paste already I don't know where to start to implement this 😅

Not a huge fan of f6d6493 (#3237) but I don't really know how to do better than that. (i don't know php)

Thank you! 💜 I will test it!


Titans map tweaks

[ ] Get rid of the gaps between the two sides (where the wall is)
[ ] Fix the weird stuff you bump into near bases (widen the path a bit)
[ ] Increase wall collision height so that people can't build over it (might need to add a clip to the top of the entire level?)

Since gumby is burnt out from mapping and has left Ape Tavern (and the map was subsequently removed from the pool), I am closing this.


update rapidsai/ci to rapidsai/ci-conda

PR updates rapidsai/ci references to rapidsai/ci-conda.

/ok to test

@dagardner-nv for viz

FWIW, this PR is effectively a no-op. We currently publish the same images to both the rapidsai/ci and rapidsai/ci-conda tags.
Once we've removed all the references to rapidsai/ci, we will remove them from DockerHub.

/ok to test

merging since this has been approved

/merge


fix: image scan in test action

I  noticed the test action was failing due to QEMU/buildx not being configured

Not sure why this was never merged. Seems to be obsolete now. Thanks for the contribution, much appreciated.


Add information about versioning to intro.md

- Summary
Currently there is no information on how you can switch to another Netlify CMS version.
I just added a paragraph to explain how the versioning system works. I'll be happy to make adjustments if necessary.

@guayom Can you update this so that we can get it merged?

This section was removed from the intro in favor of content in the quick start (now "Add to your site") and the upcoming installation doc.

@guayom, feel free to comment on https://github.com/netlify/netlify-cms/issues/731 if you're interested in helping with the installation doc!


additional test macro: check file, check directory

It would be good to have additional functionality in boa / conda-build to easily check for the existence of a file / directory in the output.
Currently this is pretty cumbersome with test -f ... etc.

cc @martinRenou you might have ideas for this ...

You mean replacing test/command: "test -f filename" with something like test/file: "filename" in the recipe format?

yeah maybe?
test:
    files_exist:
        - test.py
    directories_exist:
        - dirname/abc

IDK to be discussed.

superseded by #93


very minor failure in parsing Python

(Original issue 395 created by None on 2009-02-25T14:42:19+00:00)
I ran a test file from python4ply against pygments as a stress test, because that file contains nearly every syntax construct I could find in Python. The result is at http://pygments.org/demo/1482/ .
It shows an extremely minor parsing bug. Python allows the following
{{{
def \
f(): pass
}}}
but pygments highlights the "\", which I assume means there was a lexing error.
No one actually writes code like that so it's not like this is a serious problem.
Reported by guest

(Original issue was assigned to thatch)
(Original issue 395 last updated on 2009-06-22T16:08:50+00:00)
(Issue automaticaly closed due to status in Bitbucket: resolved)

(Original comment by thatch on 2009-06-21T21:23:49+00:00)
Available as [8055fb567f6d] in my branch.

(Original comment by thatch on 2009-06-21T19:47:24+00:00)
Georg,
Any objections to changing the Python lexer to do:
{{{
#!python
(r'(def)((?:\s|\\\s)+)', bygroups(Keyword, Text), 'funcname'),
(r'(class)((?:\s|\\\s)+)', bygroups(Keyword, Text), 'classname'),
(r'(from)((?:\s|\\\s)+)', bygroups(Keyword.Namespace, Text),
'fromimport'),
(r'(import)((?:\s|\\\s)+)', bygroups(Keyword.Namespace, Text),
'import'),
}}}
Tim


Rewrite JS in ECMAScript 6

All JS files need to be rewritten in ECMAScript 6, making use of the fancy new features: classes, constant, fat arrows, etc.

Done


Support for struct array argument

Hi, thanks for nice work,
Please can you implement support for struct array argument ? For functions like this one ?
int utimensat(int dirfd, const char *pathname, const struct timespec times[2], int flags);
Thanks.

I have fixed this in my branch


Update Mission statement

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/2589
Originally created by @DouweM on 2021-02-17 00:25:05

View 3 previous comments from the original issue on GitLab


Raises error is certain elements of tags not found like Genre, Cover Image.

File "C:\Python37\lib\site-packages\pydeezer\Deezer.py", line 471, in download_track
self._write_mp3_tags(download_path, track, tags=tags)
File "C:\Python37\lib\site-packages\pydeezer\Deezer.py", line 867, in _write_mp3_tags
mime=cover["mime_type"],
TypeError: 'NoneType' object is not subscriptable

I think the problem here is that the track you're trying to download does not have any cover image provided by Deezer. Just a hunch, I'll investigate even more.

I committed a fix, due to lack of information to test the fix. Please test it once again on your end and close this issue if the issue was resolved.


Add Dockerfile to project

Just what the title mentions. I would like to host a verium node by running it in docker. Would like to have Docker being part of the project.
This is my work in progress, which fails because it can't find the db4_cxx.h even though i disable wallet support:
FROM ubuntu:latest
RUN apt update -y &&
apt upgrade -y
RUN apt-get install -y git
install packages needed to build vericoind
RUN apt install -y
build-essential
libtool
autotools-dev
automake
pkg-config
libssl-dev
libevent-dev
bsdmainutils
libcurl4-openssl-dev
zlib1g-dev
libminizip-dev
libboost-all-dev
python3
install additional packages
RUN apt install -y iftop lsb-release multitail pax-utils tree unzip vim wget
RUN git clone -v https://github.com/VeriumReserve/verium.git ~/verium
install Berkeley DB 4.8
RUN cd ~/verium &&
./contrib/install_db4.sh ~/verium
configure build
RUN export BDB_PREFIX="${HOME}/verium/db4" &&
cd ~/verium/ &&
./autogen.sh &&
./configure --disable-wallet
--enable-hardening
--without-gui
--without-miniupnpc
--with-pic
--prefix=$BDB_PREFIX
BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8"
BDB_CFLAGS="-I${BDB_PREFIX}/include"
run the build
RUN cd ~/verium/ &&
make &&
make install
RUN cp ~/verium/src/veriumd /usr/bin/
RUN strip /usr/bin/veriumd
EXPOSE 36988
CMD ["veriumd"]

Hi,
You can find a docker repository on https://github.com/VeriConomy/docker-veriumd
We will also move the verium repository there in a few months


Extend point in cell

Adapt PointInCell regridder to make it work for cross-coordinate-system regridding, including non-latlon systems.
NOTE: this removes certain input requirements, but also adds some, so is not totally backwards-compatible :
requirements removed:

source and target must have the same coordinate system
coord systems must be latlon
source data X and Y coords must be 2d (can now have any dimensionality)

requirements added:

source and target must both have a defined coord-system

previously 'None' was acceptable, but that is problematic now it isn't limited to latlon systems

source data X and Y coordinates must now have the same cube dimensions

previously they had to be 2d, and the same size, but could have different dimension ordering

I think these changes are acceptable, as it is experimental
It basically will work for all existing cases, with just simple adaptations in certain cases

Taking a quick overview of this, I think it is best seen as a single change after all, rather than trying to understand the development process.
In fact only 3 files changed, and I think we can squash all commits, when discussions + further changes are done.
Meanwhile, quite a few of the comments in the basic experimental/regrid.py source look like they need reviewing and tidying.  I will get onto that...

@pp-mo great! I reckon a squash would be good, so if I can't squash on here I will be knocking :facepunch: on your door :door: for a squash...

Yaay nD regridding :grinning: Good work @pp-mo


initial docs with example for pd upgrade

added an example that should walk through a successful upgrade.
documented the example with some thoughts for best practices.

probably should add a diagram.. but didn't

Looks good to me, Samir. I'll do an edit pass after you post.

updated per terry's comments. merging so @kbping can look further.


Should we allow qp.quantity_from(QuantityPoint )?

quantity_point::quantity_from(PointOrigin) was added as a type safety interface over the previous getter quantity_point::quantity_from_origin() which was deemed unsafe.
Also, we now have quantity_point::quantity_ref_from(PointOrigin) that returns the reference to the underlying storage if the provided origin is the same as the one used in the quantity_point.
The question is, should we add an overload quantity_point::quantity_from(QuantityPoint) that takes QuantityPoint as an argument? I can see some benefits from doing so. On the other hand, quantity_point::quantity_ref_from(QuantityPoint) has no sense and should not be exposed.
quantity_from just subtracts the argument from *this, so it is not something that is complicated, and the user could not easily do it just with a subtraction. It was added mostly to extend quantity_point::quantity_ref_from(QuantityPoint), which had to be there. Also, I noticed that it helps do subtraction in the correct order. I already made the mistake of accidentally exchanging the argument, and I got a negative quantity as a result when a positive one was expected.

Done


Move the Contents Deactivate button

Move the button
Add a confirmation dialog
- Deactivate Title-Of-Document
- Deactivating the document does not delete it. This will move it the the inactive list.

see associated branch


Check whether the key begins with a digit

If a key begins with a digit the hash_assign() interprets it as an index of an array and produces the wrong key.
1abc -> 1
It takes place because of parseInt() takes the first digits and discards the rest part of string (see here):
I got it with dynamically generated forms.
Here is possible solution.

I've gone ahead and fixed it in a slightly different way (no regex and less diff). I used your test so thank you for adding that and catching this!
https://github.com/defunctzombie/form-serialize/pull/32

Thank you!


Fix contacts query search in organization profile

Changes proposed ✍
What
copilot:summary

copilot:poem
Why
How
copilot:walkthrough
Checklist ✅

[x] Label appropriately with Feature, Improvement, or Bug.
[ ] Add screenshots to the PR description for relevant FE changes
[ ] New backend functionality has been unit-tested.
[ ] API documentation has been updated (if necessary) (see docs on API documentation).
[ ] Quality standards are met.

Looks good to me ✅
Did you test the search functionality?

Yes! 😄 Everything seems to be working as expected. Both name and email were wrong


feat: automate Bacenta Status

feat: automate Bacenta Status
Description

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?
local

Screenshots/Videos (if appropriate):

@AsiakN Please submit this PR to the accompanying branch. Not to deploy. We aren't ready for that yet


Improve error handling in ByteToMessageDecoder when expand fails

Motivation:
The buffer which the decoder allocates for the expansion can be
leaked if there is a subsequent issue writing to it.
Modifications:
The error handling has been improved so that the new buffer always
is released on failure in the expand.
Result:
The decoder will not leak in this scenario any more.
Fixes: https://github.com/netty/netty/issues/9812

I'm also now wondering whether the try/finally error handling should be outside that method so that it spans all of the cumulator logic... since it would be easy to introduce a similar bug later i.e. if anything nontrivial was done in the cumulator after calling this method.

I generally agree, but I don't want to change too much. As it stands it seems fairly easy to reason about equivalence and correctness.

@netty-bot test this please

@netty-bot test this please


Verify security alert functionality steps require non-MDI licenses

The steps to verify sensor functionality asks one to go to the Devices section of the Defender portal.  Devices is only accessible if MDE licenses are available in the tenant.  It is not possible to complete the published verification step if only MDI licenses are available.  Please update the Verify security alert functionality section with steps that work correctly with only an MDI license.

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

ID: 9ef81d67-f052-1f48-d344-73658bb240fd
Version Independent ID: 9ef81d67-f052-1f48-d344-73658bb240fd
Content: Configure sensor settings - Microsoft Defender for Identity
Content Source: ATPDocs/deploy/configure-sensor-settings.md
Service: microsoft-defender-for-identity
GitHub Login: @batamig
Microsoft Alias: bagol

Thank you for your comment. We'll investigate and get back to you.

Hi @dloder0, thanks again for writing into docs. If you're unable to access the Devices page, you can also locate your device from elsewhere in the Defender portal, such as by searching for the device name.
We're updating the docs to reflect this and appreciate your contribution!
I'm going to close this for now but feel free to tag me in further comments if you have more feedback on the docs.
#please-close


add uv_ip_addr()

To better abstract IPv4/IPv6 differences, uv_ip_addr should be added, writing back to sockaddr_storage.
int uv_ip_addr(const char* ip, const char* port, struct sockaddr_storage* addr);

There is no technical reason to have different calls to parse IPv4 and IPv6 addresses, it makes supporting IPv6 cumbersome.

I wouldn't poose a PR, if you're up for it. Port should be an int or short though.

No follow-up, closing.


Need to add a port and host to database.yml

In order to get my database connected to the application, I need to add this to config/database.yml:
default: &default
+  port: 5432
+  host: localhost

It'd be nice to not have to do that, since not everyone needs to do that in their environment.

Those are the defaults according to source.  I'd be interested in knowing why you needed this before adding code for it.  It may be there's some wider environment issue at play, and adding this code would only be a partial solution.

Hmm, removing the port line still leaves it working. For some reason seems that the host isn't defaulting to localhost.

Any way to figure out what host is defaulting to?

Not sure what it was defaulting to, but my basic psql command in my terminal wasn't working. @josephjaber helped me get that fixed and now it works like a charm after reinstalling the pg gem.


Yelan and Xingqiu burst check rate is sometimes 61 frames instead of 60?

config before dendro launch: https://gcsim.app/v3/viewer/share/1c969762-d089-464f-8cd4-e53a1ac63107
config after dendro launch: https://gcsim.app/v3/viewer/share/64352098-8a58-42b4-ae17-5047fb4901e1
(the configs are identical)
at frame 596 hutao triggers yelan and xingqiu bursts, then at frame 656 (exactly 60 frames later) she tries to do it again.
in the first config, the second trigger works but not in the new config.
if I add a wait(1) just before frame 656 then it works again: https://gcsim.app/v3/viewer/share/39eeeb4d-5a0d-41ab-8312-c233c852a40d

actually, this issue is not what I thought originally. hu tao triggers yelan and xingqiu bursts in 60 frame intervals for her entire uptime, it's just that specific timing at 656f that is still "not in a normal state" unlike the others. why, i'm not sure.


Support reloading on failed update in webpack 5

This PR contains a:

[x] bugfix
[ ] new feature
[ ] code refactor
[ ] test update
[ ] typo fix
[ ] metadata update

Motivation / Use-Case
Fixes #390

@lukeapage Can you please publish your fork on npm.com?

@lukeapage Can you please publish your fork on npm.com?

@lukeapage Can you please publish your fork on npm.com?

https://github.com/webpack-contrib/webpack-hot-middleware/issues/390#issuecomment-758540604
I suggest pointing at the GitHub address. Feel free to publish under your own user if you need it in npm.

@lukeapage Can you please publish your fork on npm.com?

https://github.com/webpack-contrib/webpack-hot-middleware/issues/390#issuecomment-758540604
I suggest pointing at the GitHub address. Feel free to publish under your own user if you need it in npm.

this will work too, thnaks

this will work too, thnaks

Need rebase, I think we need test it too

can confirm this fix works

I am quite new to this repo so apologies in advance if I am off here, but isn't this just a workaround fix?
There appears to be an underlying issue here in how webpack 5 is detecting changed modules, causing onUnaccepted to be called (and therefore no page reload) as is happening in issues #390 and #398 .
Isn't the advisable path here to go to the webpack repo instead and fix the changed module detection there, rather than workaround it with a forced reload when it (now always) fails?
Again, sorry if I am misunderstanding.

Any update on this?.

Is it a valid pr? just about to merge?

I'm going to close this PR in favour of https://github.com/webpack-contrib/webpack-hot-middleware/pull/397 as although this fix appears to work, no-one is clear why this change was necessary and what the implications of it are.
I'm intended to treat that as the focus for future webpack 5 work by whoever has time or inclination to move it forwards.

Sorry I didn’t document this well - it is a work around for a webpack bug - https://github.com/webpack/webpack/issues/12408 It was a quick fix because I didn’t feel up to rewriting this plugin or making a big fix to webpack to fix it. Am happy staying on my fork for now - sorry if that means I’m not pushed to do a better fix.


[HOLD for payment 2023-06-29] [SNH] Allow messaging from profile

We temporary made it so that you can't message a user from their profile if you don't "know" them. Now that the API allows creating a chat with accountID, we should update the profile to allow messaging.

@allroundexperts sent you a hiring offer: https://www.upwork.com/nx/wm/offer/25176946

Paid. Thanks for your help getting this out quickly @allroundexperts!


933 Fix text overflow in placeholder and match text

Just added a display: inline-block to the @rzschech solution.
Fix #933

@Toilal Can you send us a print screen? I couldn't simulate that here.


Use native browser sha1 implementation when possible

Most of the the browser's time is spent in git-sha1 when creating a torrent. This is unsurprising, since the file must be split into pieces and hashed. But, this currently locks the entire browser for seconds.
Is the browser's native sha1 implementation faster? It's already shipped in Chrome and Firefox. See: http://caniuse.com/#feat=cryptography

[ ] Test that crypto.subtle is actually faster
[ ] Compare Rusha and current git-sha as fallback for insecure origins and older browsers
[ ] File bug on Chrome and the spec to complain that crypto.subtle is only available on https: sites (https://instant.io is https, but other sites that use webtorrent might not be). Comment on this issue: https://code.google.com/p/chromium/issues/detail?id=373032

Related issue: https://github.com/feross/create-torrent/issues/4

It looks like simple-sha1 has the right aims: to provide the fastest implementation available. crypto.subtle support should be implemented there.

This is done now. Released as 0.22.0.

crypto.subtle is actually faster
Rusha is faster than git-sha1
Will file bugs on chrome later


Empty audio file

Hi Nortonko
I'm installing your script and so far I've managed to get the audio files in the cache, in wav format, but they don't play. If I open them with another media player it tells me, they are empty.
My rhasspy 2.5.11 is a home assistant addon and to reach it I configured the script paths, I think correctly, because it created the folder and wav files (but empty). Do you have any ideas on what could be causing this problem? If I make a mistake in some parameter (API type or other) are the files created or does the script crash first? I didn't change the OutputFormat, just the required data.
Thank you

[ERROR:2024-02-13 11:28:24,987] rhasspyserver_hermes: file does not start with RIFF id
Traceback (most recent call last):
File "/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/quart/app.py", line 1821, in full_dispatch_request
result = await self.dispatch_request(request_context)
File "/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/quart/app.py", line 1869, in dispatch_request
return await handler(**request_.view_args)
File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/main.py", line 1699, in api_text_to_speech
results = await asyncio.gather(*aws)
File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/main.py", line 1685, in speak
say_chars_per_second=say_chars_per_second,
File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/init.py", line 626, in speak_sentence
raise TtsException(say_response.error)
rhasspyserver_hermes.TtsException: file does not start with RIFF id
[ERROR:2024-02-13 11:28:24,986] rhasspyserver_hermes: TtsError(error='file does not start with RIFF id', site_id='rhasspy', context='515b6f71-14fd-49f1-94f2-5ec3f1e09258', session_id='')
[DEBUG:2024-02-13 11:28:24,985] rhasspyserver_hermes: Handling TtsError (topic=hermes/error/tts, id=433dcff9-3c5e-4d94-8c17-f9b6e5a0d9e3)
[DEBUG:2024-02-13 11:28:24,981] rhasspyserver_hermes: Handling AudioPlayBytes (topic=hermes/audioServer/rhasspy/playBytes/515b6f71-14fd-49f1-94f2-5ec3f1e09258, id=433dcff9-3c5e-4d94-8c17-f9b6e5a0d9e3)
[DEBUG:2024-02-13 11:28:24,833] rhasspyserver_hermes: Publishing 129 bytes(s) to hermes/tts/say
[DEBUG:2024-02-13 11:28:24,833] rhasspyserver_hermes: -> TtsSay(text='ciao', site_id='rhasspy', lang=None, id='515b6f71-14fd-49f1-94f2-5ec3f1e09258', session_id='', volume=1.0)
[DEBUG:2024-02-13 11:28:24,832] rhasspyserver_hermes: TTS timeout will be 30 second(s)

Hi,
please check you API key and other parameters (tokenurl, voice, lang, gender, host)  if it setting corect. Also try running the script directly from the command line like:
./rhasspy_azure_says.sh "how are you" and check the output. You should get "unintelligible" text on the screen, and it should also create an audio file in a preset cache directory

Thanks, after your reply I put the data back into a new original file and everything worked properly. Thank you!


Fixed wikipedia test

Regarding #1 , I think I know what the problem was.
You have this loop in gensim_topic_modeling.do_topic_modeling() :
for doc, as_text in zip(corpus_lsi, documents):
        topic_blob[doc[0][0]] = {}
        topic_blob[doc[0][0]]["doc"] = doc_keys[as_text]

But if you examine the doc variable, it is something along the lines of [(0, <some_float>), (1, <some_float>), ...]. This means you always overwrote whatever the value was of the key 0.
I slightly modified the for loop to use an incremental variable:
    i = 0
    for doc, as_text in zip(corpus_lsi, documents):
        topic_blob[i] = {}
        topic_blob[i]["doc"] = doc_keys[as_text]
        i += 1

And, since the topics come with incremental keys, they match. This may look prettier with some sort of enumeration but I think this is good enough.

It breaks the example.py example, the numbers from documents don't correlate with the topics
[{'doc': "The titular threat of The Blob has always struck me as the ultimate moviemonster: an insatiably hungry, amoeba-like mass able to penetrate virtually any safeguard, capable of as a doomed doctor chillingly describes it assimilating flesh on contact. Snide comparisons to gelatin be damned, it's a concept with the most devastating of potential consequences, not unlike the grey goo scenario proposed by technological theorists fearful of artificial intelligence run rampant.", 'topics': "['assimilating', 'capable', 'potential', 'contact', 'blob']"}, {'doc': 'Myeloid derived suppressor cells (MDSC) are immature myeloid cells with immunosuppressive activity. They accumulate in tumor-bearing mice and humans with different types of cancer, including hepatocellular carcinoma (HCC).', 'topics': "['myeloid', 'cells', 'activity', 'carcinoma', 'hcc']"}]

Might have to end up using Lda model
https://stackoverflow.com/questions/57457214/how-can-i-print-document-wise-topics-in-gensim


is this maintained?

Is this project still active?
Are there alternatives?

Yes, it is active! We use it for our ML services. Do you have a particular question?


Getting Error after running colabcode

I am getting this error after running colab code any solutions?

watch url in below maybe resolve your problem
https://www.youtube.com/watch?v=RMCRwjnv2MI&t=261s&ab_channel=CodeAnalytics


[ci] Verify checkstyle and spotbugs for all modules

Motivation
https://github.com/apache/pulsar/pull/17750 changes don't pass checkstyle check on a non core module. CI didn't fail because we don't check checkstyle on those modules.
Modifications

Added checkstyle and spotbugs checks for all the modules

[x] doc-not-needed

the problem is that checkstyle and spotbugs are not enabled in all the projects.
A solution could be to add the plugins for all the modules and set skip to true for them

A solution could be to add the plugins for all the modules and set skip to true for them

Yes. This can be a root build plugin.


Color gradient in PolygonLayer

Is it possible to fill the polygons in a PolygonLayer with color gradients? More precisely, I am building a triangulation of a set of points on the map, and I would like to color the triangles using a linear color gradient. Is that possible with the existing layers or should I try building a custom layer?
Thanks!

I don't think so, we only support plain color in polygon layer. You need build a custom layer, and handle the tessellation, if the polygon is not convex polygon, the tessellation could be complicated because need figure out colors for new vertices.

You can build a custom layer by extending the SolidPolygonLayer:
class MyPolygonLayer extends SolidPolygonLayer {
  calculateFillColors(attribute) {
     // value is a Uint8ClampedArray
     const {value} = attribute;
     const {data, getPolygon} = this.props;

	 let i = 0;
     for (const object of data) {
       const polygon = getPolygon(object)

       // iterate through vertices
       polygon.forEach(ring => {
         ring.forEach(vertex => {
           const color = ...
           value[i++] = color[0]; // R
           value[i++] = color[1]; // G
           value[i++] = color[2]; // B
           value[i++] = color[3]; // A
         })
       })
     }
  }

}

Would colouring each vertex in this way respect the order in which the polygon vertices were drawn?
For example, if a polygon array is defined as
[ [0, 0], [0, 1], [1, 1], [1, 0], [0, 0] ]

Will the vertices be drawn in the order the from left-to-right?
So if the data was like
[
  {
    "polygon" : [ [0, 0], [0, 1], [1, 1], [1, 0], [0, 0] ],
    "fill_colour" : [  [255, 255, 255], [150, 150, 150], [20, 20, 20], [0, 0, 0], [255, 255, 255] ]
  }
]

would colour [255, 255, 255] be guaranteed to be drawn with coordinate [0, 0]?

@dcooley Yes, that is correct.

@Pessimistress, this is no longer possible since this PR: https://github.com/uber/deck.gl/pull/3094
What do you think is currently the best way to create gradient fills for polygons?

@ruurtjan I have an example fiddle using the binary data format if it helps?

Thanks @dcooley! That definitely helps :)


Add Profile: Please Add my Profile on Recodehive.

Profile Submission

Profile Category
Please select one or more categories for your profile:

[x] Minimalistic ✨
[x] Dynamic 🔄
[x] Icons 🎯
[x] Backgrounds 😎
[x] GIFS 🖼
[x] Code 👨💻

@sanjay-kv Please add my profile into your database.

@all-contributor add @vishal02527 profile

you have to provide a long screenshot of your profile. use go full page chrom extension and resubmit it


Pass AWS_DEFAULT_REGION env variable to container

This fix supports the ability of Docker executors to access S3 buckets regardless of region.

@jsdir Looks like there was a breaking change in tox and one of our dependencies. The fix is now in main. You can rebase this PR to pick up the fixes or I'm happy to can take care of rebasing and merging internally. Thanks again for contributing.

@mattrasmus The PR has been rebased. Let me know of any other changes needed.

FYI, I fixed a small lint issue. All merged now. Thanks again!


Add nuget.config file

Add nuget.config file because it may contain secret data and should be kept localy
This file may contain tokens and passwords which are secret data. They shouldn't be pushed to github.
TODO
it can be seen here in this tutorial that this file may contain secret data.

Just broken some of my projects because of this today 😄. It contains far more important data than secrets, mainly which package sources you are using.

Just broken some of my projects because of this today 😄. It contains far more important data than secrets, mainly which package sources you are using.

Maybe you are right, but you could insert those package sources in .csproj file hmmm ? 🤔
What kind of project is that ?

Package sources do not go into the csproj. The nuget.config is the correct place. All NuGet customizations go into this file. These customizations are then shared with your team. Secrets are not a required and are optional if you are using a private package source (there are other ways and isn't terribly applicable for open source). Can we revert this?

hi parsalotfy, can you give an example of secret data ?

Hi @oelderinkX , sorry for the late reply, I don't know why I didn't saw that sooner :/
In the link I provided with my Issue, there is a config sample containing secret key, so I taught it would be a good idea to add this file in gitignore file.

Package sources do not go into the csproj. The nuget.config is the correct place. All NuGet customizations go into this file. These customizations are then shared with your team. Secrets are not a required and are optional if you are using a private package source (there are other ways and isn't terribly applicable for open source). Can we revert this?

Hi @MisinformedDNA ,
Thank you for your comment, it seems the drawbacks of the change I've done overcome the profits.
Sorry for the inconvenient, I'll try to revert that.

As an added link, Microsoft's documentation says add the NuGet.Config: https://docs.microsoft.com/en-us/nuget/consume-packages/packages-and-source-control

As an added link, Microsoft's documentation says add the NuGet.Config: https://docs.microsoft.com/en-us/nuget/consume-packages/packages-and-source-control

Thank you for your information, so I closed #3757.


fix(dangerfile): Updates dangerfile

Updates dangerfile.ts in order to allow this PR to run without errors:
https://github.com/tinacms/tinacms/pull/1782
Going to quote @dwalkr to explain why:

danger workflow runs on pull request target https://github.com/tinacms/tinacms/blob/master/.github/workflows/danger.yml#L2
... the main reason we're using pull_request_target is that if we get a PR that originates from a fork (instead of a branch on the main repo,) Danger doesn't receive the right permissions to be able to comment on that PR - the code runs in the context of the fork. pull_request_target lets us run checks on that PR but in the context of the code on master

Fails
🚫	dangerfile.ts is missing the license header
Messages
📖
Modified CI Scripts

dangerfile.ts

Generated by 🚫 dangerJS against 7badcb5


bucc fly fails when using a custom ATC certificate

I spent some time trying to add a custom certificate to the concourse web app. My CPI is vSphere and I'm using a certificate from Let's Encrypt. I got close, but ended up with one issue.
I added the certificate to my vars.yml file with
 atc_ssl:
   ca: ...
   certificate: ...
   private_key: ...

I also added the intermediate certificate with concourse_ca_certs. Its pretty cool that bucc sees the atc_ssl cert in vars.yml and doesn't calculate a new one for state/creds.yml. Once everything was up, the certificate was successfully applied to the web worker and I could login. However, there was a problem.
Everything in bucc test worked except for bucc fly. bucc fly fails because the certificate is not trusted and the CA is not calculated with my changes. I dug into the code a bit and see that the ca_cert() function ignores all the configuration in the vars.yml file. It only calculates CA certs from state\creds.yml - and none of my configuration changes are in that file.
So, finally, my question - is this a problem in bucc that should be fixed somehow, or am I doing something wrong? One idea I had was to change the implementation of bucc fly so that it will look for the atc_ssl:ca cert in either state/creds.yml or vars.yml - but I'm not sure if that's the correct approach or not.

i have a workaround for now
add the following line bosh int ${vars_file} --path /concourse_ca_certs >> $ca_cert_file &> /dev/null
on https://github.com/starkandwayne/bucc/blob/master/bin/bucc#L158
please let me know if this worked for you

I like the idea of this patch, but it didn't work - the pipe to /dev/null means that the certificate is not added to the temp file. I changed the patch to the following and it worked:
if bosh int ${vars_file} --path /concourse_ca_certs &> /dev/null; then
  bosh int ${vars_file} --path /concourse_ca_certs >> $ca_cert_file
fi

This does run the bosh interpolate twice, but apparently there is no option for providing a default value in the event that a path doesn't exist or an "ignore missing path" option. So I don't see another way around it.

i have figured out a better and way cleaner way.
try to replace it with get_var concourse_ca_certs >> ca_cert_file

This works!

thanks for your help the fix is already in the development branch.
and will make a release next week


Added snapshot functionality

This commit adds the snapshot functionality to the client. It introduces the create volume from, create from volume, remove, inspect, get, service get, and copy.

@akutz I believe the SnapshotCreate is the only one that modified the signatures. I opted to leverage the VolumeCreateRequest as it has the same parameters as SnapshotCreate since a volume is what comes out of it and you can specify those types of parameters when creating volumes from snapshots.


eventstore 3.7.0

Merged in https://github.com/Homebrew/homebrew-binary/commit/206087ca6345b2619e1f056c65e08ca6e63f358a. Thanks @stuwil!


Section 11: Constraints to Barrier only works manually (XML edit)

Section 11, step 2. Drag a constraint from the left side of cameraType to the barrier
it only works by manually edit the XML file
Add following line to EditText id cameraType:
app:layout_constraintStart_toEndOf="@+id/barrier5"
Note: adjust barrier id with yours (mine "barrier5")
I'm using Android Studio 3.6.1

same problem i have faced with barrier while performing
"Drag a constraint from the left side of cameraType to the barrier"

I also have this problem in Android Studio 4.0.1


Key Error : 'Secret Key'

Hello, I tried to run the CRM. Downloaded it all.
installed the requirements.txt in both the file directory and in the virtualenv.
I cant run the server thou.
When I try to run it this shows up.
File "C:\Users\stani\OneDrive\Desktop\Ladyfit Site\Django-CRM-master\crm\settings.py", line 12, in
SECRET_KEY = os.environ["SECRET_KEY"]
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\lib\os.py", line 679, in getitem
raise KeyError(key) from None
KeyError: 'SECRET_KEY'
I searched for this and I dont have .pyc files to delete. I fixed the dotenv import issue and it still doesnt work.
Any ideas ?

I kind of fixed it. Everything that is called from the env.md file cannot be called for some reason. So I just replaced it in the settings.py. But now i have a error 404 when I run the server. So I will try and figure this out now. Do I need some files or data in the DB before I start the server?

because lib dontenv
just
linux = mv env.md .env
win rename env.md to .env

Just copy paste the env.md into .env file.
Now project has lots of changes. Please update your repository.


BUG: Failed "pip install" build from source

Describe your issue.
I want to pip install scipy. Pip is building the wheel from source. scipy build process fails.
$ OPENBLAS=$(brew --prefix openblas) pip install scipy==1.7.3
Collecting scipy==1.7.3
  Using cached scipy-1.7.3.tar.gz (36.1 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy<1.23.0,>=1.16.5 in /Users/thomas/.pyenv/versions/3.7.16/envs/trading-system-3.7.16/lib/python3.7/site-packages (from scipy==1.7.3) (1.21.6)
Building wheels for collected packages: scipy
  Building wheel for scipy (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for scipy (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [10718 lines of output]
...
      /opt/homebrew/bin/gfortran -Wall -g -L/opt/homebrew/opt/zlib/lib build/temp.macosx-12.3-arm64-3.7/scipy/integrate/_quadpackmodule.o -L/opt/homebrew/opt/openblas/lib -L/opt/homebrew/Cellar/gcc/12.2.0/bin/../lib/gcc/current/gcc/aarch64-apple-darwin21/12 -L/opt/homebrew/Cellar/gcc/12.2.0/bin/../lib/gcc/current/gcc/aarch64-apple-darwin21/12/../../.. -L/opt/homebrew/Cellar/gcc/12.2.0/bin/../lib/gcc/current/gcc/aarch64-apple-darwin21/12/../../.. -L/Users/thomas/.pyenv/versions/3.7.16/lib -Lbuild/temp.macosx-12.3-arm64-3.7 -Wl,-rpath,/opt/homebrew/opt/openblas/lib -lquadpack -lmach -lopenblas -lopenblas -lgfortran -o build/lib.macosx-12.3-arm64-3.7/scipy/integrate/_quadpack.cpython-37m-darwin.so
      Undefined symbols for architecture arm64:
        "_PyArg_ParseTuple", referenced from:
            _quadpack_qagse in _quadpackmodule.o
...
        "_main", referenced from:
           implicit entry/start for main executable
      ld: symbol(s) not found for architecture arm64
...
      error: Command "/opt/homebrew/bin/gfortran -Wall -g -L/opt/homebrew/opt/zlib/lib build/temp.macosx-12.3-arm64-3.7/scipy/integrate/_quadpackmodule.o -L/opt/homebrew/opt/openblas/lib -L/opt/homebrew/Cellar/gcc/12.2.0/bin/../lib/gcc/current/gcc/aarch64-apple-darwin21/12 -L/opt/homebrew/Cellar/gcc/12.2.0/bin/../lib/gcc/current/gcc/aarch64-apple-darwin21/12/../../.. -L/opt/homebrew/Cellar/gcc/12.2.0/bin/../lib/gcc/current/gcc/aarch64-apple-darwin21/12/../../.. -L/Users/thomas/.pyenv/versions/3.7.16/lib -Lbuild/temp.macosx-12.3-arm64-3.7 -Wl,-rpath,/opt/homebrew/opt/openblas/lib -lquadpack -lmach -lopenblas -lopenblas -lgfortran -o build/lib.macosx-12.3-arm64-3.7/scipy/integrate/_quadpack.cpython-37m-darwin.so" failed with exit status 1

Looks like the linker is missing -lpython to build a lib instead of an executable?
Reproducing Code Example
$ OPENBLAS=$(brew --prefix openblas) pip install scipy==1.7.3

Error message
Collecting scipy==1.7.3
  Using cached scipy-1.7.3.tar.gz (36.1 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy<1.23.0,>=1.16.5 in /Users/thomas/.pyenv/versions/3.7.16/envs/trading-system-3.7.16/lib/python3.7/site-packages (from scipy==1.7.3) (1.21.6)
Building wheels for collected packages: scipy
  Building wheel for scipy (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for scipy (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [10718 lines of output]
...
      /opt/homebrew/bin/gfortran -Wall -g -L/opt/homebrew/opt/zlib/lib build/temp.macosx-12.3-arm64-3.7/scipy/integrate/_quadpackmodule.o -L/opt/homebrew/opt/openblas/lib -L/opt/homebrew/Cellar/gcc/12.2.0/bin/../lib/gcc/current/gcc/aarch64-apple-darwin21/12 -L/opt/homebrew/Cellar/gcc/12.2.0/bin/../lib/gcc/current/gcc/aarch64-apple-darwin21/12/../../.. -L/opt/homebrew/Cellar/gcc/12.2.0/bin/../lib/gcc/current/gcc/aarch64-apple-darwin21/12/../../.. -L/Users/thomas/.pyenv/versions/3.7.16/lib -Lbuild/temp.macosx-12.3-arm64-3.7 -Wl,-rpath,/opt/homebrew/opt/openblas/lib -lquadpack -lmach -lopenblas -lopenblas -lgfortran -o build/lib.macosx-12.3-arm64-3.7/scipy/integrate/_quadpack.cpython-37m-darwin.so
      Undefined symbols for architecture arm64:
        "_PyArg_ParseTuple", referenced from:
            _quadpack_qagse in _quadpackmodule.o
...
        "_main", referenced from:
           implicit entry/start for main executable
      ld: symbol(s) not found for architecture arm64
...
      error: Command "/opt/homebrew/bin/gfortran -Wall -g -L/opt/homebrew/opt/zlib/lib build/temp.macosx-12.3-arm64-3.7/scipy/integrate/_quadpackmodule.o -L/opt/homebrew/opt/openblas/lib -L/opt/homebrew/Cellar/gcc/12.2.0/bin/../lib/gcc/current/gcc/aarch64-apple-darwin21/12 -L/opt/homebrew/Cellar/gcc/12.2.0/bin/../lib/gcc/current/gcc/aarch64-apple-darwin21/12/../../.. -L/opt/homebrew/Cellar/gcc/12.2.0/bin/../lib/gcc/current/gcc/aarch64-apple-darwin21/12/../../.. -L/Users/thomas/.pyenv/versions/3.7.16/lib -Lbuild/temp.macosx-12.3-arm64-3.7 -Wl,-rpath,/opt/homebrew/opt/openblas/lib -lquadpack -lmach -lopenblas -lopenblas -lgfortran -o build/lib.macosx-12.3-arm64-3.7/scipy/integrate/_quadpack.cpython-37m-darwin.so" failed with exit status 1

SciPy/NumPy/Python version information
n/a
1.21.6
3.7.16 (default, Feb 19 2023, 17:20:38)
[Clang 13.1.6 (clang-13<IP_ADDRESS>.5)]

I'll note that there's a wheels for macOS >=12.0 at https://pypi.org/project/scipy/1.7.3/#files. macOS 11 is no good, we had to avoid that due to a severe OS bug - please upgrade to macOS 12 if you want to use SciPy.
SciPy 1.7.3 is also too old, and the setup.py build is no longer supported. I don't recognize this build error, but I'll just say that it's not worth investigating anymore.

I'm on macOS 12.3

Also it is not me who picks this scipy version but pip.  I want sklearn module. I do pip install scikit-learn and it selects scipy 1.7.3.  So then I isolated to pip install scipy==1.7.3.

You're going to have to upgrade your Python interpreter. There are cp38-macosx_12_0_arm64 wheels (and upwards) readily available from scipy-1.7.3 onwards, but none for Python 3.7. No macosx_arm64 wheels were available before 1.7.3.
Homebrew has a more recent Python interpreter, or you could use a Python.org supplied install. Personally I use conda/miniconda.

For the project and its dependencies I need to use py37.

There are cp38-macosx_12_0_arm64 wheels (and upwards) readily available from scipy-1.7.3 onwards, but none for Python 3.7.

Right, good correction @andyfaff, I misread the wheel tags. Indeed, we never had a working Python 3.7 build for macOS arm64.

For the project and its dependencies I need to use py37.

You can't reasonably do this, Python 3.7 really is too old to run on macOS arm64. Nothing works; even getting 3.8 to work was tricky.


importer fortimanager - source nat with fixed port

finally found one example

simply means that source port will not be changed to mark session - instead for each session a different ip from the pool is used.
we will ignore this flag


[github] add github token to report pr merged action

What does this PR do?
Add github token to pr merged report action
Motivation
This action is currently failing as it misses a valid github token
Describe how to test/QA your changes
Possible Drawbacks / Trade-offs
Additional Notes

/merge


Guide implementation

Sorry i am new in this 2 factor authentication
I like to implement this on my application ive learned how to generate secret that is needed to generate the 6 number key. my question is how can i validate my 6 number key if it is correct or not.
Thanks!

This is more of a stackoverflow question than a github issue, sounds like.


ScalerTransform: micro and macro mode

IMPORTANT: Please do not create a Pull Request without creating an issue first.
Before submitting (checklist)

[ ] Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
[ ] Did you read the contribution guide?
[x] Did you check the code style? make lint (poetry install -E style).
[ ] Did you make sure to update the docs? We use Numpy format for all the methods and classes.
[x] Did you write any new necessary tests?
[x] Did you check that your code passes the unit tests pytest tests/ ?
[x] Did you add your new functionality to the docs?
[ ] Did you update the CHANGELOG?

Type of Change

[ ] Examples / docs / tutorials / contributors update
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Improvement (non-breaking change which improves an existing feature)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Proposed Changes

Add micro and macro mode for ScalerTransform

Related Issue

PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

Closing issues
Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if such).

Codecov Report

Merging #61 (646f73d) into master (26d88da) will decrease coverage by 4.60%.
The diff coverage is 100.00%.

:exclamation: Current head 646f73d differs from pull request most recent head ee90e8e. Consider uploading reports for the commit ee90e8e to get more accurate results

@@            Coverage Diff             @@
##           master      #61      +/-   ##
==========================================
- Coverage   90.33%   85.72%   -4.61%
==========================================
  Files          45       45
  Lines        1976     2004      +28
==========================================
- Hits         1785     1718      -67
- Misses        191      286      +95

Impacted Files
Coverage Δ

etna/transforms/scalers.py
100.00% <100.00%> (ø)

etna/transforms/sklearn.py
100.00% <100.00%> (ø)

etna/transforms/pytorch_forecasting.py
26.38% <0.00%> (-73.62%)
:arrow_down:

etna/models/nn/tft.py
38.88% <0.00%> (-61.12%)
:arrow_down:

etna/models/nn/deepar.py
41.17% <0.00%> (-58.83%)
:arrow_down:

etna/metrics/base.py
96.29% <0.00%> (-0.07%)
:arrow_down:

etna/model_selection/backtest.py
97.41% <0.00%> (-0.03%)
:arrow_down:

etna/models/sklearn.py
100.00% <0.00%> (ø)

etna/transforms/log.py
100.00% <0.00%> (ø)

etna/models/catboost.py
100.00% <0.00%> (ø)

... and 5 more

Continue to review full report at Codecov.

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


Minor fix for missing quotation mark

What :computer:

The quotation marks were missing, I fix it

Why :hand:

It looked bad and was harder to copy

Evidence :camera:

Thank you for the PR, looks like this was already merged upstream. Closing for now.


Does not install

The dependency yaml-update uses a package.yaml instead of package.json, which is not supported by npm. With yarn it installs, but it reports no binaries being available.

Wow good catch, I didn't use that in years and I wonder how this worked in the past... I fixed my fork of yaml-update so it includes a proper package.json, this should be working now!


How is this used with table rows?

dragula({ containers: [document.getElementById("productsTable")], delay: 200 });
allows me to drag the whole table? I want to sort tr elements

Okay I saw that using the  element is the key.

For future reference, your container needs to be the immediate parent of the elements you want to be draggable. In this case, that'd be the tbody.

Hi,
I want to allow the user to reorder tr in a table by means f drag and drop.
I have marked the tbody of a table with the classes drag-source drop-target , and I initialize dragula as follows:
constructor() {
    let dragApi = dragula({
            isContainer: el => {
                if (!el) {
                    return false;
                }
                if (dragApi.dragging) {
                    return el.classList.contains("drop-target");
                }
                return el.classList.contains("drag-source");
            },
            revertOnSpill: true,
            delay: 200
        });

        this.trackDrop(dragApi);
    }

    trackDrop(dragApi) {
        dragApi.on("drop", (el, container, source) => {
            dragApi.cancel();
        });
    }

This is part of an Aurelia application, and at the time of the dragula initialization the DOM is not yet available; that's why I don't pass the containers option directly into dragula.
The problem
I cannot drop the tr back into the table on a new position. The drag is always reverted. If I turn revertOnSpill off, the drag never ends, and the call to dragApi.cancel() ends up with a Maximum call stack exceeded
How can I achieve reordering of the table tr?


chore(examples/memcached): use exported strings for attributes

Which problem is this PR solving?

Part Of #2025

Short description of the changes
On package examples/memcached:

Update @opentelemetry/semantic-conventions ^1.23.0
Use exported strings for Semantic Attributes.

/easycla


EnvoyFilter is also applied to HTTP Proxy Listener

The function patchOneListener, that applies the EnvoyFilter patches in the listener, is called in buildHTTPProxyListener(). However, the envoyFilterWrapper is only populated in the patchListener(), so the call to patchOneListener in buildHTTPProxyListener() do not apply any changes to the listener created for the HTTP Proxy.
So, to fix this bug, the patchOneListener for the HTTP Proxy listener moved to inside the patchListener(), where the other listener are patched. A new test were added to ensure that the listener are indeed removed.
Closes #38673

Hi @alandiegosantos. Thanks for your PR.
I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@alandiegosantos: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

release-notes_istio
ea4861b00fe85e0748dacdd574c281b889cea9f7
link
true
/test release-notes_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/release-notes-none

@zirain Could you add the release-notes-none label in the pull request? I do not think I have permissions to do it.

/retest


Upgrade tfjs dependency

Tensorflow.js is at 0.15.3 with a number of functions renamed in anticipation of a 1.0 release. This library should be updated to use the latest tfjs.

Fixed with https://github.com/thekevinscott/ml-classifier/releases/tag/0.5


Track analytics on StatsViewAll and StatsSinglePostDetails

See the corresponding Android PR:
https://github.com/wordpress-mobile/WordPress-Android/pull/2213
And be careful to use the same event and property names (https://github.com/wordpress-mobile/WordPress-Android/pull/2213/files).

StatsSinglePostDetails is a TODO since that feature hasn't been implemented. I'll leave this issue open until then.


fix: fix the return type of signinCallback

Fixes https://github.com/authts/oidc-client-ts/issues/1492 .
Checklist

[x] This PR makes changes to the public API
[x] I have included links for closing relevant issue numbers

thanks for contributing


examplar annotation guidelines

-TimeML annotation guideline

how much information should an annotation guideline provide link

another example from UPenn
https://memory.psych.upenn.edu/AnnotationGuide

this is a big one for complicated tasks https://www.ldc.upenn.edu/sites/www.ldc.upenn.edu/files/english-entities-guidelines-v6.6.pdf
it is also versioned , with difficult cases as examples

the natural language annotation book is very helpful.

EDiE-R clinical MLP edinburgh stroke study
http://www.newsreader-project.eu/files/2013/01/NWR-2014-1.pdf

This is a very good annotation guideline
because: 1. this dataset has been used as an example to demo discourse
2. it seems very well written :)
https://www.sfu.ca/~mtaboada/docs/publications/RST_Signalling_Corpus_Annotation_Manual.pdf


Query and results div variables

Inspired by use with Drupal static html output
Now when calling the tipuesearch function, you can set variables queryParamName (default: q) and resultsDivID (default: #tipue_search_content).  This allows for flexibility in the case of Drupal output names/IDs, which are difficult to change.

I should have noted in description: by default, those parameters are set as they were hard-coded in prior versions, so they shouldn't affect existing users.

Thanks. I'll add this in the forthcoming release.

Great, thank you!

Sorry, I've just realised I missed this in version 5.0. I'll include it in the next release asap. Apologies.

No worries, thanks. :)


neovim diagnostic clearing issue

diagnostics are not being cleared on neovim when the last  warning / error is fixed

need to send an empty array when no errors are present in a file

the lsp is not sending an empty array to clear out the diagnostics


Update de Project in Live

Hello, the site is no longer uploading images.
I verified that the latest version released does not yet have the werkzeug library version.
Could you update the application?

Fixed


Update flux-dsl, influxdb-client-scala to 6.4.0

Updates

com.influxdb:flux-dsl
com.influxdb:influxdb-client-scala

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

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.influxdb" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "com.influxdb" }
}]

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

Superseded by #430.


Plugin compiles as incompatible ANSI when post-build command fails

Building the plugin (32 or 64 bit) with a failing post-build command will render the compiled DLL completely unusable.
Notepad++ says that the plugin is an unsupported ANSI version.
I don't know if the charset is really the issue but removing the post-build command or creating the necessary folders for it to pass will result in a good DLL.

Post-Build-Command was fixed with an exit 0 at the end, this seems to be a bug with Visual Studio.
x86 version of the 1.0.0 release was reuploaded with a valid DLL file.


sending asset token via myetherwallet but it stuck

hi guys... i try send asset through myetherwallet to bittrex exchanger but it seems like it is stuck there for few hours already.
https://etherscan.io/tx/0xaca01ac7b3a4dc4528c0c60bb6813f1fda083b06aed061285ffdacf684bb9574
can someone help me pls.
ty

nevermind.. the asset is return to my wallet... i dont know why and how but i am so relieved... fiuhhhhhh


Feature Request: Global Polymer attributes with data-binding ability. Or global document data-binding.

Create global parameters with 2 way data-binding which can be used throughout the app.
In some use cases, all the code or custom elements cannot be used inside a main x-app element, rather should be used in document dom for example. In these cases regular data binding through intermediate custom element is not possible. So the rational solution would be a global one (maybe attached to the Document root object or to the Polymer object).
I think these feature will give more approaches to developers & simplify stuff. Not in every case, events up & setting properties down, is possible.
Thank you.

Sorry, I'm not really understanding what you are asking for.
Can you write up an example, maybe with some code?

Thanks for replying. In I/O 2016 the problem is explained and a solution is provided, which works great.
https://youtu.be/__KvYxcIIm8?list=PLOU2XLYxmsILe6_eGvDN3GyiodoV3qNSC&t=1339


Writing to dat.json with the Web API

When attempting to write to dat.json with the Web API a permissions error is thrown, clearly for security reasons. My application exposes a settings interface—two of the fields are for Title and Description. It feels redundant to store this data elsewhere, and creates confusion when the Title has been updated in the application, but is not reflected elsewhere within Beaker.
Perhaps there could be a way of either white-listing keys which are writable in dat.json, or simply deleting keys which should not be writable (such as url.)

We have a new API in 0.8. archive.configure() which is designed to give write-access to the dat.json. I figured that'd be a good approach because it does what you're suggesting (ensures the integrity of the file) without adding custom semantics based on paths.
I need to improve its whitelist but it can do title and description right now.

Beautiful 🎉

Ok expanded the number of fields you can configure() now too

Is there a reference somewhere for all the new APIs in 0.8 that aren't out in the docs yet?

@RangerMauve I threw one together for you: https://gist.github.com/pfrazee/7dbfe58cc571cef3bc167f8b3c35c0ac

Oh snap. I'm really liking these changes! It's gonna make DatArchiveWeb easier to finish, too. :D


$(AndroidPackVersionSuffix)=rc.1; net9 is 35.0.0-rc.1

We branched for .NET 9 Preview 7 from ab412a56 into release/9.0.1xx-preview7; the main branch is now .NET 9 RC 1.
Update dotnet/android/main's version number to 35.0.0-rc.1.

One test lane, the emulator failed to start. Going to merge, this seems like a simple change.


Compatibility with React 16

When used with React 16 as a peer dependency, the following error occurs.
Cannot read property 'time' of undefined at line 85.
Support for React DOM Factories is removed in 16 (previously deprecated).

Thanks! It's fixed in the latest release.


ModuleNotFoundError: No module named 'torch'

I wrote a simple Python program for testing. After execution, I got:
wasmer ran.wasm

Traceback (most recent call last):
  File "./ran.py", line 1, in <module>
ModuleNotFoundError: No module named 'torch'

The code is as follows:
import torch

def main():
    n = torch.rand(3, 4)
    print("Hello", n)

if __name__ == "__main__":
    main()

Here's the compilation process:
py2wasm ran.py -o ran.wasm

py2wasm: Using wasi-sdk from /Users/user/miniconda3/lib/python3.11/site-packages/nuitka/wasi-sdk/21/sdk-Darwin
Nuitka-Options: Used command line options: ran.py --standalone --static-libpython=yes --disable-ccache --lto=yes
Nuitka-Options: --output-dir=/Users/user/miniconda3/lib/python3.11/site-packages/nuitka/__py2wasm --output-filename=output.wasm --remove-output
Nuitka: Starting Python compilation with Nuitka '2.6.3' on Python '3.11' commercial grade 'not installed'.
Nuitka: Completed Python level compilation and optimization.
Nuitka: Generating source code for C backend compiler.
Nuitka: Running data composer tool for optimal constant value handling.
Nuitka: Running C compilation via Scons.
Nuitka-Scons: Backend C compiler: ~/miniconda3/lib/python3.11/site-packages/nuitka/wasi-sdk/21/sdk-Darwin/bin/clang (clang 17.0.6).
Nuitka-Scons: Backend linking program with 7 files (no progress information available for this stage).
clang: warning: argument unused during compilation: '-headerpad_max_install_names' [-Wunused-command-line-argument]
Nuitka: Removing build directory '/Users/user/miniconda3/lib/python3.11/site-packages/nuitka/__py2wasm/ran.build'.
Nuitka: Created binary that runs on macOS 11.1 (arm64) or higher.
Nuitka: Successfully created '/Users/user/miniconda3/lib/python3.11/site-packages/nuitka/__py2wasm/ran.dist/output.wasm'.
py2wasm: File created successfully: ran.wasm

It works fine when compiled with Nuitka.
python -m nuitka ran.py

 ./ran.bin
Hello tensor([[8.8891e-02, 1.0744e-02, 1.4557e-01, 2.1542e-01],
        [5.2137e-01, 6.6914e-03, 8.2231e-04, 8.7954e-01],
        [1.8713e-01, 3.6060e-02, 4.5850e-01, 3.1474e-01]])

The current environment is:
python -m nuitka --version

2.2.1
Commercial: None
Python: 3.11.5 (main, Sep 11 2023, 08:31:25) [Clang 14.0.6 ]
Flavor: Anaconda Python
Executable: /Users/user/Code/env/venv/bin/python
OS: Darwin
Arch: arm64
macOSRelease: 14.4.1
Version C compiler: /usr/bin/clang (clang 15.0.0).

Not sure what went wrong?

@su3 So, make sure you running everything from the same env. Because in your log it says only 7 files found for linking, which I think is a mistake (I believe pytorch has more than 7 c level dependencies).

I confirm that I tested and compiled in the same environment. Running the Python script directly works without any issues.

@su3 So, make sure you running everything from the same env. Because in your log it says only 7 files found for linking, which I think is a mistake (I believe pytorch has more than 7 c level dependencies).

I confirm that I tested and compiled in the same environment. Running the Python script directly works without any issues.

Hey @su3 , running torch (and any other native python modules that rare using C) in WASI is not yet supported.
We are working on adding them as part of WASIX, and doin that sholud solve this issue

Hello @syrusakbary do you have any updates on running python native extenisons?