Add atome sensor platform

Breaking Change:

Description:
The atome sensor platform is retrieving the consumption of your home from the Direct Energy Atome electric meter.
This special little device is connected to a Linky Electric Meter, and sends live data to a cloud platform.
Related issue (if applicable): fixes #
Pull request with documentation for home-assistant.io (if applicable):
https://github.com/home-assistant/home-assistant.io/pull/10172
Example entry for configuration.yaml (if applicable):
sensor:
  - platform: atome
    username: YOUR_ATOME_USERNAME
    password: YOUR_ATOME_PASSWORD

Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass
[x] There is no commented out code in this PR.
[x] I have followed the development checklist

If user exposed functionality or configuration variables are added/changed:

[x] Documentation added/updated in home-assistant.io

If the code communicates with devices, web services, or third-party tools:

[x] The manifest file has all fields filled out correctly. Update and include derived files by running python3 -m script.hassfest.
[x] New or updated dependencies have been added to requirements_all.txt by running python3 -m script.gen_requirements_all.
[x] Untested files have been added to .coveragerc.

If the code does not interact with devices:

[ ] Tests have been added to verify that the new code works.

Hello @BaQs,
When attempting to inspect the commits of your pull request for CLA signature status among all authors we encountered commit(s) which were not linked to a GitHub account, thus not allowing us to determine their status(es).
The commits that are missing a linked GitHub account are the following:

5a6295389e3734890acb6d3d243e34119325edb5 - This commit has something that looks like an email address (baqs@users.github.com). Maybe try linking that to GitHub?.
a31c7a17836f96801208b3ed90461280dd6e93bf - This commit has something that looks like an email address (baqs@users.github.com). Maybe try linking that to GitHub?.

Unfortunately, we are unable to accept this pull request until this situation is corrected.
Here are your options:

If you had an email address set for the commit that simply wasn't linked to your GitHub account you can link that email now and it will retroactively apply to your commits. The simplest way to do this is to click the link to one of the above commits and look for a blue question mark in a blue circle in the top left. Hovering over that bubble will show you what email address you used. Clicking on that button will take you to your email address settings on GitHub. Just add the email address on that page and you're all set. GitHub has more information about this option in their help center.

If you didn't use an email address at all, it was an invalid email, or it's one you can't link to your GitHub, you will need to change the authorship information of the commit and your global Git settings so this doesn't happen again going forward. GitHub provides some great instructions on how to change your authorship information in their help center.

If you only made a single commit you should be able to rungit commit --amend --author="Author Name<EMAIL_ADDRESS>
(substituting Author Name and<EMAIL_ADDRESS>for your actual information) to set the authorship information.
If you made more than one commit and the commit with the missing authorship information is not the most recent one you have two options:

You can re-create all commits missing authorship information. This is going to be the easiest solution for developers that aren't extremely confident in their Git and command line skills.
You can use this script that GitHub provides to rewrite history. Please note: this should be used only if you are very confident in your abilities and understand its impacts.

Whichever method you choose, I will come by to re-check the pull request once you push the fixes to this branch.

We apologize for this inconvenience, especially since it usually bites new contributors to Home Assistant. We hope you understand the need for us to protect ourselves and the great community we all have built legally. The best thing to come out of this is that you only need to fix this once and it benefits the entire Home Assistant and GitHub community.
Thanks, I look forward to checking this PR again soon! :heart:

Please do not hesitate if you think anything should be improved.
Thx for your reviews, your advices, and your time!


Define a start_link so that Async deliveries can be supervised with Task.Supervisor

Closing. More discussion is in #59


How do I use Pi-hole with PiVPN - docs clarification

It would be great to edit that area based on this conversation:
https://github.com/pivpn/pivpn/issues/1340

Well it seems quite clear and easy to understand to me, but I am not English native, so if you have a better way please feel free to suggest it.
If you don't know how to make a Pull request, its fine just mention here what you think would be best.

I think this could work to clarify the docs.
After this:

"Note that if you install PiVPN after Pi-hole, your existing Pi-hole installation will be detected and the script will ask if you want to use it as the DNS for the VPN, so you won't need to go through all these steps.

You could add something like this:

If you use the script, pivpnDNS1 value will be "<IP_ADDRESS>" which is the VPN internal IP. When doing it manually it is easier for to find the local ip of the raspberry pi instead of the VPN internal IP and since pihole is listening on all interfaces both values are correct.

PS: not everyone knows how to do a Pull request. Creating issues is also a way to collaborate, but I can see you are not happy so I will leave it here and not disturb you anymore.
Good luck with your project. I hope you find other developers to help you.
Best regards

any sugestions @orazioedoardo ? this suggestion seems even more confusing to me, however i agree it could be improved somehow.

@planetahuevo When the script prompts the user to use Pi-hole with PiVPN, it automatically uses the <IP_ADDRESS> IP and not the LAN IP because the LAN IP is detected by the script only on a Raspberry Pi, and you may not have a LAN IP at all if you are installing on a virtual private server. So, actually it would make more sense that the docs suggest <IP_ADDRESS> (and <IP_ADDRESS> for openvpn).

Pre-archive closing, more information here


download resnext101 pretrained model failed

Hi, when I want to train focs by using fcos/fcos_mstrain_640_800_x101_64x4d_fpn_gn_2x.py,  i can't successfully download the pretrained model from the url you given, which is too slow, even one more days, how can I get the available place to get the model? thanks
(p.s I have tried these two urls but both failed: https://s3.ap-northeast-2.amazonaws.com/open-mmlab/pretrain/third_party/resnext101_64x4d-ee2c6f71.pth
or
https://s3.ap-northeast-2.amazonaws.com/open-mmlab/pretrain/third_party/resnet101_caffe-3ad79236.pth)

@hellock i have the same problem

It seems this is solved by replacing the IP address. IP address from east europe allowed me to download weights

Seems to be some breakdown of AWS.

@Maxfashko Hi, how to  replace the IP address? Thanks.

@louielu1027 I used vpn

@louielu1027 I used vpn

Hello. I could not download the weights even I use vpn. Could you share the pretrained weights on some open Cloud?

I meet the same problem, could you share the pretrained weights?

It is too hard to download the  resnext101 pretrained model, if it is possible, please share it on Google drive or Baidu Pan.
Thanks.

same question, it is hard to download resnext101 pretrained model, could you share it with another link, thanks..

Same question.


Revert "Revert "Fix autolink mechanism for static libraries on Linux""

Re-land https://github.com/apple/swift-corelibs-foundation/pull/2996
ICU i18n library name is now resolved based on CMake package finding system. It allows to use swift suffixed ICU libraries.

CC: @drexin

@swift-ci please test


bug: aws-auth-config-fixed

What
Using apply_config_map_aws_auth = false throws error mentioned below.
│
│   on ../../aws_auth.tf line 91, in provider "kubernetes":
│   91:   token                  = data.aws_eks_cluster_auth.eks[0].token
│     ├────────────────
│     │ data.aws_eks_cluster_auth.eks is empty tuple
│
│ The given key does not identify an element in this collection value: the collection has no elements.
╵
╷
│ Error: Invalid index
│
│   on ../../aws_auth.tf line 92, in provider "kubernetes":
│   92:   host                   = data.aws_eks_cluster.eks[0].endpoint
│     ├────────────────
│     │ data.aws_eks_cluster.eks is empty tuple
│
│ The given key does not identify an element in this collection value: the collection has no elements.
╵
╷
│ Error: Invalid index
│
│   on ../../aws_auth.tf line 93, in provider "kubernetes":
│   93:   cluster_ca_certificate = base64decode(data.aws_eks_cluster.eks[0].certificate_authority.0.data)
│     ├────────────────
│     │ data.aws_eks_cluster.eks is empty tuple
│
│ The given key does not identify an element in this collection value: the collection has no elements.

Why
It should be optional to user if they want to manage aws-auth confimap manually or via terraform.

Terraform Security Scan Failed
Show Output

Hello @amanverma678, thanks for the enhancements :clap:
Can you please update your terraform code to remove TF-Lint warnings

Hello @amanverma678, thanks for the enhancements 👏 Can you please update your terraform code to remove TF-Lint warnings

All warnings are fixed now please review

Terraform Security Scan Failed
Show Output

Terraform Security Scan Failed
Show Output

Terraform Security Scan Failed
Show Output

Hello @amanverma678, thanks for the enhancements 👏 Can you please update your terraform code to remove TF-Lint warnings

All warnings are fixed


Add notebook-based framework for writing tutorials

This PR adds a framework that supports writing Jupyter notebooks as tutorials. The notebook including outputs are automatically embedded into the Try VAST section on the website.
While I was looking for the best solution, I found several solutions (e.g., https://victordibia.com/blog/jupyter-notebooks-react/) that go through the route of converting notebooks to HTML. I managed to do this as well, but the iframe-based embedding looks just terrible via Docusaurus. Fortunately this is not needed. It's also possible to convert the notebook to Markdown, and use the generated files as input for Docusaurus.
:dart: Review Instructions
Commit-by-commit.
Thereafter, try it locally:
cd web
yarn
yarn start

Browse to http://localhost:3000/docs/try-vast and look at the notebook(s).

[sc-33146]

I managed to have yarn start run (had to make nbconvert a regular dependency for it to work). It works fine with matplotlib as the output is encoded as base64:

Why are we not using nbconvert as a regular dependency?

There was an issue when not using the most recent version. I'll check again whether this has been fixed in the meantime.

I'll check again whether this has been fixed in the meantime.

Turns out that pip install nbconvert actually works as well. I updated the Makefile.


Multi-trial NAS on custom dataset and model with tuple input

Describe the issue:
Hi,
I've tried to follow the instruction from here with my custom dataset and model. The base model and dataset work well in regular training/testing way and also the NNI's one-shot Darts trainer. Since one-shot NAS does not support ValueChoice so I turn to multi-trial NAS. From the documentation, I found a debugging function evaluator._execute(model) which works fine for my model and dataset. but after I execute exp.run(), I got some error message showing that there's some problem in the tuple input. Here's the complete message:
RuntimeError                              Traceback (most recent call last)
/tmp/ipykernel_16172/4265677498.py in <module>
----> 1 exp.run(exp_config, 8118)
      2 print('Final model:')
      3 for model_code in exp.export_top_models(formatter=export_formatter):
      4     print(model_code)

~/anaconda3/envs/nni/lib/python3.7/site-packages/nni/retiarii/experiment/pytorch.py in run(self, config, port, debug)
    287             assert config is not None, 'You are using classic search mode, config cannot be None!'
    288             self.config = config
--> 289             self.start(port, debug)
    290
    291     def _check_exp_status(self) -> bool:

~/anaconda3/envs/nni/lib/python3.7/site-packages/nni/retiarii/experiment/pytorch.py in start(self, port, debug)
    258         exp_status_checker = Thread(target=self._check_exp_status)
    259         exp_status_checker.start()
--> 260         self._start_strategy()
    261         # TODO: the experiment should be completed, when strategy exits and there is no running job
    262         _logger.info('Waiting for experiment to become DONE (you can ctrl+c if there is no running trial jobs)...')

~/anaconda3/envs/nni/lib/python3.7/site-packages/nni/retiarii/experiment/pytorch.py in _start_strategy(self)
    188         base_model_ir, self.applied_mutators = preprocess_model(
    189             self.base_model, self.trainer, self.applied_mutators, full_ir=self.config.execution_engine != 'py',
--> 190             dummy_input=self.config.dummy_input)
    191
    192         _logger.info('Start strategy...')

~/anaconda3/envs/nni/lib/python3.7/site-packages/nni/retiarii/experiment/pytorch.py in preprocess_model(base_model, trainer, applied_mutators, full_ir, dummy_input)
    122         except Exception as e:
    123             _logger.error('Your base model cannot be parsed by torch.jit.script, please fix the following error:')
--> 124             raise e
    125         if dummy_input is not None:
    126             # FIXME: this is a workaround as full tensor is not supported in configs

~/anaconda3/envs/nni/lib/python3.7/site-packages/nni/retiarii/experiment/pytorch.py in preprocess_model(base_model, trainer, applied_mutators, full_ir, dummy_input)
    119     if full_ir:
    120         try:
--> 121             script_module = torch.jit.script(base_model)
    122         except Exception as e:
    123             _logger.error('Your base model cannot be parsed by torch.jit.script, please fix the following error:')

~/anaconda3/envs/nni/lib/python3.7/site-packages/torch/jit/_script.py in script(obj, optimize, _frames_up, _rcb)
   1095         obj = call_prepare_scriptable_func(obj)
   1096         return torch.jit._recursive.create_script_module(
-> 1097             obj, torch.jit._recursive.infer_methods_to_compile
   1098         )
   1099

~/anaconda3/envs/nni/lib/python3.7/site-packages/torch/jit/_recursive.py in create_script_module(nn_module, stubs_fn, share_types)
    410     concrete_type = get_module_concrete_type(nn_module, share_types)
    411     AttributeTypeIsSupportedChecker().check(nn_module)
--> 412     return create_script_module_impl(nn_module, concrete_type, stubs_fn)
    413
    414 def create_script_module_impl(nn_module, concrete_type, stubs_fn):

~/anaconda3/envs/nni/lib/python3.7/site-packages/torch/jit/_recursive.py in create_script_module_impl(nn_module, concrete_type, stubs_fn)
    476     # Compile methods if necessary
    477     if concrete_type not in concrete_type_store.methods_compiled:
--> 478         create_methods_and_properties_from_stubs(concrete_type, method_stubs, property_stubs)
    479         # Create hooks after methods to ensure no name collisions between hooks and methods.
    480         # If done before, hooks can overshadow methods that aren't exported.

~/anaconda3/envs/nni/lib/python3.7/site-packages/torch/jit/_recursive.py in create_methods_and_properties_from_stubs(concrete_type, method_stubs, property_stubs)
    353     property_rcbs = [p.resolution_callback for p in property_stubs]
    354
--> 355     concrete_type._create_methods_and_properties(property_defs, property_rcbs, method_defs, method_rcbs, method_defaults)
    356
    357 def create_hooks_from_stubs(concrete_type, hook_stubs, pre_hook_stubs):

RuntimeError:
Tensor (inferred) cannot be used as a tuple:
  File "/tmp/ipykernel_16172/2935404974.py", line 60
    def forward(self, x):
        x_non_serial, x_serial = x
                                 ~ <--- HERE
        batch_size = x_serial.size(0)

And how I construct my dataset Class is pretty naive. My dataset consists of two kinds of data which have different size. I just simply make these two input data as tuple in __getitem__. The structure of the code looks like below:
 class MyDataset(data.Dataset):
    def __init__(self, mode="train"):
        skip...
    def __getitem__(self, idx):
        return (self.part1[idx], self.part2[idx]), self.target[idx]

As far as I know, the first object returned in __getitem__ will be passed as the input to the model and the second one  will be the target to be evaluated with.
Beside that, my dataset class won't work with serialize with the error message below:
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
/tmp/ipykernel_16172/950271510.py in <module>
----> 1 serialize(MyDataset, model="train")

~/anaconda3/envs/nni/lib/python3.7/site-packages/nni/retiarii/serializer.py in serialize(cls, *args, **kwargs)
    144         self.op = serialize(MyCustomOp, hidden_units=128)
    145     """
--> 146     return serialize_cls(cls)(*args, **kwargs)
    147
    148

~/anaconda3/envs/nni/lib/python3.7/site-packages/nni/retiarii/serializer.py in serialize_cls(cls)
    126     To create an serializable class.
    127     """
--> 128     return _create_wrapper_cls(cls)
    129
    130

~/anaconda3/envs/nni/lib/python3.7/site-packages/nni/retiarii/serializer.py in _create_wrapper_cls(cls, store_init_parameters, reset_mutation_uid, stop_parsing)
    114             super().__init__(*args, **kwargs)
    115
--> 116     wrapper.__module__ = get_module_name(cls)
    117     wrapper.__name__ = cls.__name__
    118     wrapper.__qualname__ = cls.__qualname__

~/anaconda3/envs/nni/lib/python3.7/site-packages/nni/retiarii/utils.py in get_module_name(cls_or_func)
     41         # infer the module name with inspect
     42         for frm in inspect.stack():
---> 43             if inspect.getmodule(frm[0]).__name__ == '__main__':
     44                 # main module found
     45                 main_file_path = Path(inspect.getsourcefile(frm[0]))

AttributeError: 'NoneType' object has no attribute '__name__'

I don't know if serialize function matters. @model_wrapper and @basic_unit also show the similar error. I not sure how nni parsing the data. Currently I have no clue where to fix this error. Could you plz give me some direction? Thx
Environment:

NNI version: 2.4
Training service (local|remote|pai|aml|etc): local
Client OS: Linux
Server OS (for remote mode only):
Python version: 3.7.11
PyTorch/TensorFlow version: PyTorch 1.9.1
Is conda/virtualenv/venv used?: conda
Is running in Docker?: yes

I also try with Random strategy which doesn't show any error message but it shows fail in the trial panel on WebUI. This is a bit confusing maybe I should share my implementation.

Maybe you should check the log of each trial?

IndexError: list index out of range

This looks strange. If you check the implementation of TPE/Random strategy, there is actually one line that the strategy is trying to parse the search space via dry run. If you can provide that dried-runned search space, it will be much more helpful.

Just find out there's stderr for each trial. It shows GPU not found. But apparently the GPU is available when execute the script. Not sure if I set the config correctly.
[2021-10-12 11:51:21] INFO (pytorch_lightning.utilities.distributed/MainThread)
GPU available: True, used: True

Here's the stderr for the trial:
/root/anaconda3/envs/nni/lib/python3.7/site-packages/deprecate/deprecation.py:115: LightningDeprecationWarning: The `Accuracy` was deprecated since v1.3.0 in favor of `torchmetrics.classification.accuracy.Accuracy`. It will be removed in v1.5.0.
  stream(template_mgs % msg_args)
Traceback (most recent call last):
  File "/root/anaconda3/envs/nni/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/root/anaconda3/envs/nni/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/root/anaconda3/envs/nni/lib/python3.7/site-packages/nni/retiarii/trial_entry.py", line 25, in <module>
    engine.trial_execute_graph()
  File "/root/anaconda3/envs/nni/lib/python3.7/site-packages/nni/retiarii/execution/python.py", line 40, in trial_execute_graph
    graph_data = PythonGraphData.load(receive_trial_parameters())
  File "/root/anaconda3/envs/nni/lib/python3.7/site-packages/nni/retiarii/integration_api.py", line 44, in receive_trial_parameters
    params = json_loads(json.dumps(params))
  File "/root/anaconda3/envs/nni/lib/python3.7/site-packages/json_tricks/nonp.py", line 236, in loads
    return json_loads(string, object_pairs_hook=hook, **jsonkwargs)
  File "/root/anaconda3/envs/nni/lib/python3.7/json/__init__.py", line 361, in loads
    return cls(**kw).decode(s)
  File "/root/anaconda3/envs/nni/lib/python3.7/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/root/anaconda3/envs/nni/lib/python3.7/json/decoder.py", line 353, in raw_decode
    obj, end = self.scan_once(s, idx)
  File "/root/anaconda3/envs/nni/lib/python3.7/site-packages/json_tricks/decoders.py", line 44, in __call__
    map = hook(map, properties=self.properties)
  File "/root/anaconda3/envs/nni/lib/python3.7/site-packages/json_tricks/utils.py", line 66, in wrapper
    return encoder(*args, **{k: v for k, v in kwargs.items() if k in names})
  File "/root/anaconda3/envs/nni/lib/python3.7/site-packages/nni/retiarii/serializer.py", line 46, in _serialize_class_instance_decode
    return import_(obj['__type__'])(**obj['arguments'])
  File "/root/anaconda3/envs/nni/lib/python3.7/site-packages/pytorch_lightning/trainer/connectors/env_vars_connector.py", line 40, in insert_env_defaults
    return fn(self, **kwargs)
  File "/root/anaconda3/envs/nni/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 346, in __init__
    gpu_ids, tpu_cores = self._parse_devices(gpus, auto_select_gpus, tpu_cores)
  File "/root/anaconda3/envs/nni/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 1262, in _parse_devices
    gpu_ids = device_parser.parse_gpu_ids(gpus)
  File "/root/anaconda3/envs/nni/lib/python3.7/site-packages/pytorch_lightning/utilities/device_parser.py", line 91, in parse_gpu_ids
    return _sanitize_gpu_ids(gpus)
  File "/root/anaconda3/envs/nni/lib/python3.7/site-packages/pytorch_lightning/utilities/device_parser.py", line 164, in _sanitize_gpu_ids
    f"You requested GPUs: {gpus}\n But your machine only has: {all_available_gpus}"
pytorch_lightning.utilities.exceptions.MisconfigurationException: You requested GPUs: [0]
 But your machine only has: []


Hotkey Crashes In-Game

I believe my crashing and disconnect has to do with hot keys basically if I word this right whenever I press a hot key for say re apply title more than once or checks for ZM ZB and so on that if triggered too many times in my case it will close the game without a warning dialogue, I can make a video for you to see what is happening

log.txt

https://youtu.be/pYXjFncUD78
https://youtu.be/Rw5_S0QVBRw
2 Videos to show proof I crash on Hotkeys I have and use for UA Res, Recall and Apply Title all on the same hot key in my case the middle scroll wheel

https://www.twitch.tv/videos/1498277102
https://www.twitch.tv/videos/1498336302
2 stream videos I did with some hotkeys disabled (Recall / UA etc

Potentially caused by WndProc not being in the right place. Updated GWCA to SendPacket in the game loop.


Dragging the same type multiple times issue

There is a problem with dragging the same type multiple times at meteor example, it shows this error
Uncaught TypeError: Cannot read property 'name' of null

Dear all! Meteor is moved to the separate repository. If this issue is still actual, please create it there once again.
For your info: this project needs a maintainer.


Use string literals instead of manual Url construction in examples

url v2.2.0 has been released which includes a TryFrom<str> for Url impl, which means we can use string literals in our Url examples.
// current
let url = Url::parse("https://github.com/foob").unwrap();
let req = Request::new(url);

// proposed
let req = Request::new("https://github.com/foob");

Both variants will continue to work, and the former case is useful for when dealing with untrusted input. But at least now it should be easier to write examples using Request.

👋


issues on upgrade from 0.0.10 -> 0.0.12

Hi there, couple of (hopefully small) issues :)
 browser = getattr(playwright, browser_name).launch(**launch_options)
E       TypeError: launch() got an unexpected keyword argument 'slowMo'

Also
page.wait_for_response('**/api/1.0/blah*')
E       AttributeError: 'Page' object has no attribute 'wait_for_response'

quick 5s debugging..
page.__class__
<class 'playwright.sync_api._generated.Page'>

(Pdb) dir(page)

[..., 'wait_for_event', 'wait_for_function', 'wait_for_load_state', 'wait_for_selector', 'wait_for_timeout', 'workers']

Cheers~

Hi, slowMo is now slow_mo now since a few weeks. wait_for_response in the sync world is not-ideal, since the request sometimes can also can occur before your click e.g. has finished. Something like that is more recommended:
    page.goto(server.EMPTY_PAGE)
    with page.expect_response(server.PREFIX + "/digits/2.png") as response_info:
        page.click("foo")
    # optionally you can access the response like that
    response = response_info.value
    assert response.url == server.PREFIX + "/digits/2.png"

Will follow up on it so its reflected in the docs correctly.


React Modern Charts

Q
A

New sample?
yes

What's in this Pull Request?
New sample, React Modern Charts: Chart.JS based web parts with data sourced from any SharePoint list in a web application
Thanks for your contribution! Sharing is caring.

@jcoleman-pcprofessional,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by Microsoft. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

Excellent Jeremy, appreciated.

Hi Jeremy,
would you be available for demonstrating these modern calendar and chart web parts in April monthly community call next Tuesday? - Call is on 8 AM PT and we would have 10-15 min for showing the samples and key elements from the code. Sounds good?

Hi Vesa,
I'd be more than happy to do this.  Thanks for the offer.

thx Jeremy, you can download recurrent invite to the call from http://aka.ms/sppnp-call, unless you have done that in the past already. This is the monthly community open for anyone to drop by and to see what we are doing. Next Tuesday we'll start with 15 min summary on April release and then we have 3 demos... and you'll be one of them, meaning that you have max 15 min to quickly show what's being built and how. That's not much time, so showing functionality and then few key pointers from the code is really the right approach. I'll update you on the agenda, which goes live with monthly release notes on Monday (at http://dev.office.com/blogs)
I won't be unfortunately personally joining on this call, since will be on family vacation. Other PnP core team members however are up to date on the plan and they'll update you as the presenter etc. I'll check the recording when back in business.
Thx for volunteering and looking forward to see this. Thx also for sharing the samples and your knowledge for the benefit of others.


  When I delete an intent using the following statement, I get the error message "Unknown resource: intent".
luis delete intent --intentId $intentId --deleteUtterances $true
To proof that I'm using the correct identifier: when I execute the following statement, I do get the details of that intent:
luis get intent --intentId $intentId
{
 "id": "9e675cfc-96dd-4e43-b4c4-597aab65d8ec",
"name": "FromPowerShell",
"typeId": 0,
 "readableType": "Intent Classifier"
}

To Reproduce
Steps to reproduce the behavior:

Get an identifier of an intent in LUIS
Execute luis delete intent --intentId $intentId --deleteUtterances $true' in Powershell.
You'll receive the error message "Unknown resource: intent"

Expected behavior
Expect to delete an intent by Id.
Screenshots
Additional context
Als commands are executed from PowerShell ISE
[bug]

@bksnel LUIS CLI is deprecated and replaced by BF CLI.  E.g. could you do this via updates made to .lu file
@munozemilio we should add deprecated message to relevant CLI groups in botbuilder-tools.

@vishwacsena Thanks for your reply.
We are building a DevOps pipeline that migrates content from different sources and uploads this to a single LUIS application. We want to control this per environment in the DTAP-environment.
Being able to manage a single intent with examples allows us to import from each individual source. We've looked at the LUIS dispatch tool, but that does not satisify our needs; it would not give us the control per environment in a DevOps pipeline.
We're using the bot framework CLI, but for the following operations we still need the LUIS CLI:

luis add intent
luis delete intent
luis add examples

These seem not available in the bot framework cli?

@bksnel have you considered the .lu file format to describe your LUIS application? Depending on your scenario, you can also define your application via individual .lu files that describe specific intents and entities and combine them to make a single application using import references.
If you are able to use the .lu format, then you can use bf luis:convert to convert .lu to LUIS application definition JSON format as well as use bf luis:version:create to create new application version.

@vishwacsena. I was not aware of the external references. Based on the documentation, I think this should work.
Thanks, I'll close the issue now.


Plugin doesn't show in vue dev tools

Reproduction
Trying to debug a pinia store but it doesn't seem to show in the vue dev tools anymore.
Example repo: https://github.com/slauzinho/pinia-plugin-example
Steps to reproduce the behavior

Go to Vue Dev Tools

Expected behavior
Pinia store being loaded
Actual behavior
No store gets loaded
Additional information
Vue Dev tools - 6.0.0 beta 8

Fixed in 017795a and released in alpha.15


feat: Predictive Search

Adding in new prop within InputBase to allow for the Predictive Search feature.

Codecov Report

Merging #411 (d0b8aea) into dev (b6d7bd4) will decrease coverage by 0.33%.
The diff coverage is 94.28%.

@@            Coverage Diff             @@
##              dev     #411      +/-   ##
==========================================
- Coverage   90.41%   90.07%   -0.34%
==========================================
  Files         154      158       +4
  Lines        3630     3819     +189
  Branches     1206     1279      +73
==========================================
+ Hits         3282     3440     +158
- Misses        190      195       +5
- Partials      158      184      +26

Impacted Files
Coverage Δ

...es/react-magma-dom/src/components/Search/index.tsx
88.88% <0.00%> (-5.56%)
:arrow_down:

...ckages/react-magma-dom/src/components/Tabs/Tab.tsx
92.40% <ø> (ø)

.../react-magma-dom/src/components/Textarea/index.tsx
100.00% <ø> (ø)

...eact-magma-dom/src/components/Typography/index.tsx
88.05% <ø> (ø)

packages/react-magma-dom/src/theme/magma.ts
100.00% <ø> (ø)

...react-magma-dom/src/components/InputBase/index.tsx
95.38% <93.33%> (ø)

...react-magma-dom/src/components/AlertBase/index.tsx
97.29% <100.00%> (+0.03%)
:arrow_up:

...ges/react-magma-dom/src/components/Badge/index.tsx
100.00% <100.00%> (ø)

...es/react-magma-dom/src/components/Banner/index.tsx
100.00% <100.00%> (ø)

...magma-dom/src/components/Breadcrumb/Breadcrumb.tsx
100.00% <100.00%> (ø)

... and 16 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 d8ee419...d0b8aea. Read the comment docs.


Libraries for things other than HTTP

Is it acceptable to use libraries for things other than HTTP and command-line argument parsing?
For example, can I use the url crate to parse the input url?
How about libraries for low-level byte copying/buffer management/io?

The url crate is fine. What library did you have in mind for io?
Joaquin
On Sat, Oct 24, 2020 at 7:16 PM 'Robert Hrusecky' via
cloudflare-assignment-application <
<EMAIL_ADDRESS>wrote:

Is it acceptable to use libraries for things other than HTTP and
command-line argument parsing?
For example, can I use the url https://crates.io/crates/url crate to
parse the input url?
How about libraries for low-level byte copying/buffer management/io?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/cloudflare-hiring/cloudflare-2020-systems-engineering-assignment/issues/10,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARBVIAKUEICQBLGYICHA7V3SMNU6NANCNFSM4S5567BA
.
--
You received this message because you are subscribed to the Google Groups
"cloudflare-assignment-application" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to<EMAIL_ADDRESS>To view this discussion on the web visit
https://groups.google.com/a/cloudflare.com/d/msgid/cloudflare-assignment-application/cloudflare-hiring/cloudflare-2020-systems-engineering-assignment/issues/10%40github.com
https://groups.google.com/a/cloudflare.com/d/msgid/cloudflare-assignment-application/cloudflare-hiring/cloudflare-2020-systems-engineering-assignment/issues/10%40github.com?utm_medium=email&utm_source=footer
.
For more options, visit
https://groups.google.com/a/cloudflare.com/d/optout.

--
Joaquin Madruga | Engineering Director
<EMAIL_ADDRESS>1 888 99 FLARE  |  www.cloudflare.com

Thanks, Joaquin!
Here are some of the crates I was looking at:

tokio: Would be useful for async/.await and non-blocking I/O
bytes: Byte buffer utilities
native-tls: For HTTPS support. I assume this is ok based on #7
I was also looking into some parser crates, but I went ahead and wrote the parser by hand.

However, by now I'm almost finished, I'm just putting on the final touches. Since I wasn't sure what I could use, I went ahead with the synchronus/blocking I/O that is possible with the standard library. Since the application only makes a single request anyways, it wouldn't receive a performance benefit async I/O. Here are my current dependencies:
[dependencies]
clap = "2.33" # Argument parsing
url = "2.1.1"
native-tls = "0.2.4"

I might want to go back and use the bytes crate in some places if I have time.
Thanks again!

Yes, those are fine.  Email me directly when you submit the assignment.
On Mon, Oct 26, 2020 at 12:12 PM 'Robert Hrusecky' via
cloudflare-assignment-application <
<EMAIL_ADDRESS>wrote:

Thanks, Joaquin!
Here are some of the crates I was looking at:

tokio https://crates.io/crates/tokio: Would be useful for
async/.await and non-blocking I/O
bytes https://crates.io/crates/bytes: Byte buffer utilities
native-tls https://crates.io/crates/native-tls: For HTTPS support.
I assume this is ok based on #7
https://github.com/cloudflare-hiring/cloudflare-2020-systems-engineering-assignment/issues/7
I was also looking into some parser crates, but I went ahead and
wrote the parser by hand.

However, by now I'm almost finished, I'm just putting on the final
touches. Since I wasn't sure what I could use, I went ahead with the
synchronus/blocking I/O that is possible with the standard library. Since
the application only makes a single request anyways, it wouldn't receive a
performance benefit async I/O. Here are my current dependencies:
[dependencies]clap = "2.33" # Argument parsingurl = "2.1.1"native-tls = "0.2.4"
I might want to go back and use the bytes crate in some places if I have
time.
Thanks again!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/cloudflare-hiring/cloudflare-2020-systems-engineering-assignment/issues/10#issuecomment-716695632,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARBVIAOMO5BHN4O5ODMCSJLSMWUW3ANCNFSM4S5567BA
.
--
You received this message because you are subscribed to the Google Groups
"cloudflare-assignment-application" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to<EMAIL_ADDRESS>To view this discussion on the web visit
https://groups.google.com/a/cloudflare.com/d/msgid/cloudflare-assignment-application/cloudflare-hiring/cloudflare-2020-systems-engineering-assignment/issues/10/716695632%40github.com
https://groups.google.com/a/cloudflare.com/d/msgid/cloudflare-assignment-application/cloudflare-hiring/cloudflare-2020-systems-engineering-assignment/issues/10/716695632%40github.com?utm_medium=email&utm_source=footer
.
For more options, visit
https://groups.google.com/a/cloudflare.com/d/optout.

--
Joaquin Madruga | Engineering Director
<EMAIL_ADDRESS>1 888 99 FLARE  |  www.cloudflare.com

Sure thing! I have already submitted on greenhouse before I saw your message, but I will email my assignments directly to you also.


[Needs Reproduction] Clicking links does nothing

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number:
Reproducible in staging?: needs reproduction
Reproducible in production?: needs reproduction
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers): @JmillsExpensify @quinthar
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @JmillsExpensify
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1711142201869449
https://expensify.slack.com/archives/C049HHMV9SM/p1711400985997969
Action Performed:

Open a chat as user A
Send a message to another user B with link
As a user B click on the link

Expected Result:
Link opens in the new tab
Actual Result:
Clicking on the link nothing happens
Workaround:
unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/Expensify/App/assets/38435837/a7a60b73-0149-4322-a9eb-0539942a899d

View all open jobs on GitHub

SO: https://stackoverflowteams.com/c/expensify/questions/16989

Given I haven't seen this widely reported, I don't think it needs a tonne of focus. My attempt is below:
https://github.com/Expensify/App/assets/9133401/6fe30433-922a-4cda-be0e-ccc3e3ed13f4

Downgrading to Weekly.

Issue not reproducible during KI retests. (First week)

Let's give it one more week. I also can't recreate.

Issue not reproducible during KI retests. (Second week)

Issue not reproducible during KI retests. (Third week)

Okay, let's close.


Use BufferGeometry as a resource?

I'm putting an application together that requires a number of geometry resources. Some of the imported geometries are fairly complex (500k vertices after merging). Three.js hangs when trying to convert these large BufferGeometry objects into Geometries, which I can place into resources.
Is there a way to add BufferGeometries to resources? Or is there an alternative to using Three.js's Geometry.fromBufferGeometry method?

Hi @oortlieb , I will need to implement that, for now as a workaround you can create the mesh manually and add into your groups or scenes e.g.
<scene ref={mySceneRef} >
    ...

and on componentDidMount:
myScene.add(new THREE.Mesh(myBufferGeometry, myMaterial));

@toxicFork Thanks for the info. Any estimate as to the level of effort and timeline for getting BufferGeometry support added? If it's not on your short-term road map, I might give it a shot myself.

I have done a simple implementation in 306e777a9c50cc77dd9ad9e4e8cab5c62e2db292 which will allow you to create a buffer geometry and set the 4 attributes, when I have more time ( should be able to get back to work on more r3r stuff soon :D ) I'll be able to fix some other bugs and cut a new release with it :)
Unfortunately no timeline since I can only work on this after work or in weekends when I am not occupied with other things

Looks like it works -- thanks a ton!

is this now part of the release? There is nothing in the docs. Or I should get this specific commit? I have exactly the same problem as @oortlieb

Ah I haven't merged it to master yet but it should be in for the next release

cool. can't wait. When is next release scheduled?

Ah sorry I thought I had replied earlier... I was aiming for a release today but unfortunately I did not have much time. Current ETA for a release is sometime this week ( latest Thursday when I should have more time in the evening :) )

I should be able to do a release tomorrow evening :)
On Sat, 22 Oct 2016, 20:28 Martins Untals<EMAIL_ADDRESS>wrote:

cool. can't wait. When is next release scheduled?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/toxicFork/react-three-renderer/issues/105#issuecomment-255548789,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA0iLb7kY9wqntc9zQbuq_sTIuthQCj3ks5q2mPtgaJpZM4J3Vui
.


Permanently delete trashed records

Ref. Issue: #329.

Added ability to destroy a.k.a. hard delete each trashed record.
Added ability to bulk destroy the selected trashed records.
Added ability to enable/disable the destroy function. Enabled by default.

Merged in a8addc71 and updated in 578da43d. Thank you @sauron!


[add fixture] Swiftmailer : Recipient email on configuration

Some email notifications doesnt need recipient and must be sent to a given address.
It would be great to be able to configure 'to' using parameters instead passing recipient.

@nicolas-joubert this is already possible. when sending message through the Swiftmailer channel, the recipient could either a recipient or a static email. please see https://github.com/yokai-php/messenger-bundle/blob/master/Resources/docs/channels/swiftmailer.md#recipient


Factor out Dex + rendering code for library-style use?

I have a need where another tool (written in a JVM language) could use rendering of methods in a dex or apk to validate its behavior. A simple API could be teased out.

I'm talking specifically about this library's API. Basically a static method that took a Dex, InputStream, or byte[] and returned a List<String>.

I'm talking specifically about this library's API. Basically a static method that took a Dex, InputStream, or byte[] and returned a List<String>.


GraphLookup does not handle dephtField and restrictedSearchWithMatch

Version 0.12.6
In case class AggregationFramework.GraphLookup two optional parameters are not taken over :

      depthField.foreach { f =>
        elementProducer("depthField", stringValue(f))
      }

      restrictSearchWithMatch.foreach { e =>
        elementProducer("restrictSearchWithMatch", e)
      }

The depthField and restrictSearchWithMatch are not added to 'opts', as you can see.

Hi, PR welcome


Add Local Font Access API

https://wicg.github.io/local-font-access/
Chromium 103: https://web.dev/local-fonts/
https://twitter.com/tomayac/status/1520313247802564614
"Local fonts"

NOTE: This may need to be a separate issue but is related (it's why the API exists).
In addition to just window.queryLocalFonts() (which is found on the site), it'd be nice to see what browsers block/support using local() within a @font-face.
From really basic testing, it seems like Safari/WebKit blocks usage altogether, Chrome and Firefox allow usage, and others like Brave block usage in some circumstances.


fix: improve text color contrast

Closes #572
Description
Improve text color contrast to improve accessibility

Please write some test for the files that you changed, @hendraaagil, so that you can get this PR to pass the codecov/project check. 😁

Please write some test for the files that you changed, @hendraaagil, so that you can get this PR to pass the codecov/project check. 😁

How is it? I've never learn about testing before, I'm sorry 😅

Can I get the screenshot of this changes in the description?
The before and the after.
It help us to know the exact point we should check

Here is the LH report from this PR: https://storage.googleapis.com/lighthouse-infrastructure.appspot.com/reports/1628255418477-29647.report.html

All the color contrast issues are gone.
So it's good to me 👍

How is that? I've never learn about testing before, I'm sorry 😅

@hendraaagil This comment should show you which file/component you should add tests for. You can start by adding more tests for the file whose coverage dropped.

Already tried, but nothing changed 😅
I need help, Mas @zainfathoni 🏳

Test added, it should be passing the codecov/project check now. 😁

Nice. Thank you Mas @zainfathoni 😄


fix file ordering

get_optim_files in zero_to_fp32.py does not sort files correctly: 1, 10, 2, 3, 4, 5, 6, 7, 8, 9, leading to the wrong merged pytorch checkpoint. Add natural ordering to correct it.

@tjruwase any update on this PR?


Working Routing Functions

I'm using booksim2 and my own analysis code for a research project, and given the responses in issue #7, I wanted to ask which routing functions (as opposed to the actual routers) are known to be correctly implemented?
That is not to say I think they are broken! Just that potentially the code has been neglected, as with the Chaos router, and that this might cause odd results.
I am specifically interested in those functions applicable to two dimensional mesh networks. The two main ones I have been using are dim_order and min_adapt.
Thanks! :)

I believe these should be ok, but at the end of the day the best way to really establish that is to just study the code and run some tests yourself.


Wrong checksum for gradle-7.3.2-all.zip for some cloudflare regions

Downloading https://services.gradle.org/distributions/gradle-7.3.2-all.zip returns wrong file (sha256: 8d4b75c97c5b74fcda1b049d1e9a3ef45c0d8af4974b2d384cc26d69deb8d46b) (for some cloudflare regions, I guess; Atlanta GA for example)

Expected Behavior

Checksum for https://services.gradle.org/distributions/gradle-7.3.2-all.zip should be dd54e87b4d7aa8ff3c6afb0f7805aa121d4b70bca55b8c9b1b896eb103184582 (as per https://services.gradle.org/distributions/gradle-7.3.2-all.zip.sha256) for all regions

Current Behavior

Checksum is wrong 8d4b75c97c5b74fcda1b049d1e9a3ef45c0d8af4974b2d384cc26d69deb8d46b for Atlanta GA region
Checksum is correct dd54e87b4d7aa8ff3c6afb0f7805aa121d4b70bca55b8c9b1b896eb103184582 for Dublin region

Context

We're trying to update gradle to 7.3.2 in homebrew (https://github.com/Homebrew/homebrew-core/pull/91372) and macOS arm64 runners downloads file with the wrong checksum (arm64 runners in Atlanta GA, Intel runners in Dublin)
Steps to Reproduce

Download https://services.gradle.org/distributions/gradle-7.3.2-all.zip from Atlanta GA — checksum will be wrong

Your Environment

Build scan URL: N/A

@bayandin we're looking at this

We had an issue with the release and restarted the process. Looks like some caches out there still have the first version.
Note that the following checksums are the ones for the first attempt and so are "safe":

8d4b75c97c5b74fcda1b049d1e9a3ef45c0d8af4974b2d384cc26d69deb8d46b for gradle-7.3.2-all.zip
b7e08c7d95f6c5024c3ccabbb8f4845fcef0fcce11b23b3937e0265e6904d09a for gradle-7.3.2-bin.zip

I think the cache has been purged now.  I've checked the download from a couple of different locations, but please let us know if you're still seeing the wrong distribution.

That helped, thanks!


fsspec requires to delegate kwargs to FileSystem to list/load file correctly

🐛 Describe the bug
Based on the current implementation, the following code will raise ConnectTimeoutError.
>>> import fsspec

>>> url = "s3://ai2-public-datasets/charades"
>>> fs, path = fsspec.core.url_to_fs(root)
>>> fs.ls(path)
botocore.exceptions.ConnectTimeoutError

However, if we provide extra arguments to url_to_fs, we should be able to successfully execute the following code:
>>> import fsspec

>>> url = "s3://ai2-public-datasets/charades"
>>> fs, path = fsspec.core.url_to_fs(root, anon=True)  # The main difference here
>>> fs.ls(path)
[...]

It should be easily fixed by delegating extra key-word argument to all FSSpecDataPipes.
Versions
main branch

This issue raised in the forum is also somewhat related:
https://discuss.pytorch.org/t/using-a-google-cloud-storage-bucket-for-dataset/146253/6?u=nivek

This issue raised in the forum is also somewhat related:
https://discuss.pytorch.org/t/using-a-google-cloud-storage-bucket-for-dataset/146253/6?u=nivek

Yeah. Will send a patch shortly. I need it to test performance of S3


Download InCommon cert for signature verification

This isn't currently automated and may or may not cause restarting Shibboleth to fail if missing. See documentation.

Not valid anymore.


ADBDEV-3570: alternative stack

Here are some reminders before you submit the pull request

[ ] Add tests for the change
[ ] Document changes
[ ] Communicate in the mailing list if needed
[ ] Pass make installcheck
[ ] Review a PR in return to support the community

The previous error causes a segfault on segments!


Unblock NextDNS and Dhan

Energized Protection - block ⚡

Let's make an annoyance free, better open internet, altogether!

Issue Submit Form

  Provide the following info properly, which will help us to resolve your issue quickly.

Issue(s):
Type x in between [ ] and make sure there isn't any space between brackets. Example; for Your Selected Issue(s), type like this - [x]
You can select more than one category of issues if you need to!

[x] Whitelist
[ ] Blacklist
[ ] App Broken
[ ] Website Broken
[ ] Request
[ ] Other Issue

Pack(s):
Write the name of the pack(s) you are using.

Pack(s) Name: Energizer Ultimate

Extension(s):
Also name the extension(s) if you are using any. If you don't then leave it blank.

Extension(s) Name:

Domain(s):
If you are submitting this issue for whitelist/blacklist issue, send us the domain(s) for whitelisting/blacklisting here. Kindly use the Code Tag to prevent tracking.

Domain(s):

*.nextdns.io
*.dhan.co

Your Config:
Just to ensure there is no issues or conflicts with other app/software/magisk module/extension/source list.
Make sure you are running Energized Protection Service only.

Client: NextDNS

Version: 22.11.329.13

Detail:
Write us a lil bit more about your issue or query. You can attach any screen shot or log of the issue or advert, this will help to highlight it.

Your Issue Detail:
NextDNS is a popular private DNS service. Dhan is a stockbroker in India. Please unblock them

Thank you for making Energized Protection great, with your kind help!
A project by Ador with ❤

#973


Error adding a Postgres Database

I'm attempting to add my first Postgres database connection info using the Superset 1.2 web UI. I select the Add Database screen and type in the name and the connection string, then hit the test connection button
Actual results
I received this error after hitting the 'test connection' button:
ERROR: Could not load database driver: PostgresEngineSpec
How to reproduce the bug

Go to Superset Admin web page and login.
Click on the Data menu and select Databases
Hit the '+ Databsase' button
enter in Name and postgresql string info: postgresql://postgres:PoPassWord@dbserverIP:5432/dbname
See error

ERROR: Could not load database driver: PostgresEngineSpec
Environment
(please complete the following information):

superset version: 1.2
python version: 3.8
node.js version: not running node
any feature flags active:

Checklist
Make sure to follow these steps before submitting your issue - thank you!

[ ] I have checked the superset logs for python stacktraces and included it here as text if there are any.

[ ] I have reproduced the issue with at least the latest released version of superset.
[ ] I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context
Within the file /venv/lib/python3.8/site-packages/superset/db_engine_specs/postgres.py, there is a class
definition called PostgresEngineSpec. Here are the 1st few lines of code:
class PostgresEngineSpec(PostgresBaseEngineSpec, BaseParametersMixin):
engine = "postgresql"
engine_aliases = {"postgres"}
drivername = "postgresql+psycopg2"
sqlalchemy_uri_placeholder = (
    "postgresql+psycopg2://user:password@host:port/dbname[?key=value&key=value...]"
)

The file was originally dated around May 25, 2021 and contains 262 lines.
I replaced some code from the current postgres.py file but I got the same error.
The code I copied from the latest postgres.py file (334 lines) here on github was this:
default_driver = "psycopg2"
sqlalchemy_uri_placeholder = (
    "postgresql://user:password@host:port/dbname[?key=value&key=value...]"
)

Hopefully this is any easy fix, I;m stuck w/o a database to use.

do you have the psycopg2 package installed?

superset does not include any db drivers by default, you'll need to install the ones you plan to use.

No, the psycopg2 install failed, so I installed psycopg2-binary, per the error msg from the psycopg2 install.
Error: pg_config executable not found.
pg_config is required to build psycopg2 from source.  Please add the directory
containing pg_config to the $PATH or specify the full executable path with the
option:

    python setup.py build_ext --pg-config /path/to/pg_config build ...

or with the pg_config option in 'setup.cfg'.

pg_config is only on my db server.

you'll need to get psycopg2 installed in your environment in order to connect to a postgres database.

OK, I'm assuming I now need to install postgres on my superset server. Which version of postgres is supported? Can I erase it after the psycopg2 install?

you may even be able to just mock out pg_config file. This is an issue with psycopg2 and your environment, not superset, so you might want to look into issues with that package and your env.

I've uninstalled psycopg2-binary. I installed postgresql-13, postgresql-13-server, postgresql-13-devel, and postgresql-13-contrib. I installed psycopg2. I then copied the psycopg2 dir from /usr/local/lib64/python3.8/site-packages/psycopg2 to my venv dir /venv/lib64/python3.8/site-packages/psycopg2. After restarting superset, I can create my database connection finally.
Someone should create this html file for Postgres since it returns a 404 error:
https://superset.apache.org/docs/databases/postgresql
The notes should explain that at a minimum the postgresXX-devel package needs to be installed before the psycopg2 package. Additionally, the pg_hba.conf file on the db server needed an extra entry for the superset server ip address.

How did you find that link? https://superset.apache.org/docs/databases/postgres works

from here: https://superset.apache.org/docs/databases/installing-database-drivers
So there's a typo in the link: https://superset.apache.org/docs/databases/postgresql
The good page should explain to install postresqlXX-devel before psycopg2.
Also this note at the top of the page doesn't make sense if postgresXX-devel needs to be installed beforehand.
Note that the Postgres connector library psycopg2 comes out of thebox with Superset.
Thanks. Kevin
On Thursday, August 5, 2021, 4:49:23 PM PDT, ʈᵃᵢ<EMAIL_ADDRESS>wrote:

How did you find that link? https://superset.apache.org/docs/databases/postgres works
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

Hmm, yea it's wrong. It only comes out of the box when using docker-compose

Ok good to know.I've never used docker or venv for that matter. I'd prefer not to have to use either since the superset server only has 1 purpose.
I've attached my CentOS 8 install process document if you'd like to review it. The missing part from the docs was the need to install the postgresql13-devel package, and that must be done before installing psycopg2. Perhaps a future release will not need the postgresqlXX-devel package dependency.
Thanks for your help. Kevin
PS, I think think I'll like this app more than I liked Tableau.
On Thursday, August 5, 2021, 5:59:26 PM PDT, ʈᵃᵢ<EMAIL_ADDRESS>wrote:

Hmm, yea it's wrong. It only comes out of the box when using docker-compose
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
CentOS 8 server
dependencies 1st
yum install gcc gcc-c++
yum install mlocate
updatedb # for mlocate to work!
at a minimum, the shared object file /usr/pgsql-13/lib/libpq.so.5 is needed at runtime
yum install postresql13-devel
yum install libffi-devel python38-devel python38-pip python38-wheel openssl-devel cyrus-sasl-devel openldap-devel
finish setup for Postgres
pip3.8 install psycopg2
open port 8089 (since the doc'd port of 8088 is "reserved" for ragan-http services, 8089 is not reserved as of 8/5/2021,
per iana.org/assigments//service-names-port-numbers/service-names-port-numbers.xhtml?search=8089)
firewall-cmd --permanent --add-port=8089/tcp
firewall-cmd --reload
install a virtual environment
pip3.8 install virtualenv
. venv/bin/activate
install superset finally
pip3.8 install apache-superset
upgrade the db
superset db upgrade
set an env variable
export FLASK_APP=superset
create superset admin user credentials
superset fab create-admin admin/admin
Load some data to play with
superset load_examples
Create default roles and permissions
superset init
this works
superset run -h <IP_ADDRESS> -p 8089 --with-threads --reload --debugger
for subsequent starts, these 3 commands are needed
. venv/bin/activate
export FLASK_APP=superset
superset run -h <IP_ADDRESS> -p 8089 --with-threads --reload --debugger

I am trying to connect to postgresql+auroradataapi and I am getting "Connection Failed". I have used docker-compose up to setup apache superset. Can anyone help me with this, as mentioned above, I can see that psycopg2-binary is installed by default in the superset package, can someone guide me how to uninstall this and install relevant library in my docker image?


Does not work on single input field

I have a single input field and i want to apply tagedit to it so that i can pass the local source data to it and it should return comma separated tags to the backend. For example:
My input field looks like this:

<input type="text" name="tags" id="id_tags" />

var localJSON = [
		{ "label": "Hazel Grouse", "value": "Hazel Grouse" },
		{ "label": "Common Quail",	"value": "Common Quail" },
		{ "label": "Greylag Goose", "value": "Greylag Goose" }
	];

$('#id_tags').tagedit({
autocompleteOptions: {
source: localJSON,
},
});
If i dont rename my input to "test[]" it gives error saying dow does not match the regular expression. And if i rename my input field to test[3-a] then the returned field becomes test[] = values, while i don't want the tagedit to rename my input field, because the backend does not recognize the renamed field. And there is no indication in documentation what does this figures in [] denote? I just want to apply tags to input field so that it should return the comma separated string, like if i select 2 tags "Hazel Grouse" and "Common Quail", it should pass to input id test as "Hazel Grouse, Common Quail". Is it possible. Please guide.

Another issue related to this, if i use empty list tags[], allowEdit: false, allowAdd: false, dont work. I just cannot select any tag using these 2 options

Answer to the first issue: (I've put the second to a new Issue #19)
The usage that you described is another approach. This plugin was created to provide a list of input fields. Therefore there is a naming convention that says, It has to be "[]" at the end of the name.
In Backends based on php, the list will be available as array in the request. It's not possible to provide a comma separated list with this.
I can not reproduce the error you've seen when renaming the input field to test[]. An example with local data iust also available on http://tagedit.webwork-albrecht.de/playground.html ("Use local source for autocomplete list")


Nginx webserver egg

Create egg for hosting your web (php, html, ...) inside pterodactyl container using nginx webserver

I'll likely not be adding something other than plain coding languages for now, closing this.


Full support for UDUNIT years units

@jhamman Hope all is well with you since the AOSPy Workshop!  I'm putting an issue in here to address some missing capabilities that are CF compliant, but not fully supported by the netcdftime module.
This issue can be immediately seen by trying to initialize a utime instance with the 'common_year' or 'year' units (which are UDUNITS supported):
utime('common_years since 1-1-1 0:0:0, calendar='noleap')
which immediately errors with the error:
ValueError: units must be one of 'seconds', 'minutes', 'hours' or 'days' (or singular version of these), got 'years'
My understanding is that this should work, since 'common_year' is a fixed multiple of 'day' (i.e., 365 days, regardless of calendar).  However, netcdftime does not support any year-like units.
I'm interested in implementing this ASAP, so I might fork the repo and put in a PR soon-ish.

@kmpaul, I don't have any objection to that change but I'll let others (@jswhit) weigh in as well.
As far as where netcdftime is at in terms of being ready for other contributions, it should be ready.  The travis tests are passing although there are still a few issues to work through before we can swap the module out for the one in netCDF4.

Sounds like common_years since 1-1-1 0:0:0, calendar='noleap' should be the same as years since 1-1-1 0:0:0, calendar='365_day' or years since 1-1-1 0:0:0, calendar='noleap'.  Sounds reasonable to make common_years since a synonym for either of those two.  An error should be raised if an inconsistent calendar is specified though.

Yeah.  That's exactly what I was thinking, but I wanted to research this a
bit more before implementing a change.
On Thu, Dec 29, 2016 at 11:45 AM, Jeff Whitaker<EMAIL_ADDRESS>wrote:

Sounds like common_years since 1-1-1 0:0:0, calendar='noleap' should be
the same as years since 1-1-1 0:0:0, calendar='365_day' or years since
1-1-1 0:0:0, calendar='noleap'. Sounds reasonable to make common_years
since a synonym for either of those two. An error should be raised if an
inconsistent calendar is specified though.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Unidata/netcdftime/issues/5#issuecomment-269674346,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AK4fg_Bko5oXG05I8PUmS908kr3rRW24ks5rM__XgaJpZM4LAyT3
.

--
Kevin Paul, PhD
Project Scientist, Head of I/O & Workflow Applications (IOWA)
The National Center for Atmospheric Research
Computational and Information Systems Laboratory
1850 Table Mesa Dr
Boulder, CO 80305
Phone:<PHONE_NUMBER>
Office:  ML460B

@kmpaul - is a pull request coming for this?

Time and schedule as they are, I can’t do this. Sorry.

OK, I'll leave this open in case someone wants to tackle it.

Closed by PR #246


fix: chart legend style

Related issue: https://github.com/YiniXu9506/metrics-chart/pull/10/files

Codecov Report

Merging #1413 (1a2ef84) into master (3a4cdef) will decrease coverage by 33.80%.
The diff coverage is n/a.

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #1413       +/-   ##
===========================================
- Coverage   63.23%   29.43%   -33.81%
===========================================
  Files          35      128       +93
  Lines         544    10516     +9972
  Branches       99       99
===========================================
+ Hits          344     3095     +2751
- Misses        200     7241     +7041
- Partials        0      180      +180

Flag
Coverage Δ

be_unit_test
27.58% <ø> (?)

e2e_test
63.23% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out 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 3a4cdef...1a2ef84. Read the comment docs.


Type Definition Error

Hello when I use the following:
import SmartCrop from 'smartcrop';
I get an error while debugging "SmartCrop" crop is undefined.  I looked and it shows it to be incorrect for CommonJS and probably for other NodeJS issues with TypeScript.
I would propose this definition below
declare namespace SmartCrop {
  class CanvasImage {
    /** Track image data */
    static readonly MODE_IMAGE: number
    /** Track MIME data */
    static readonly MODE_MIME: number

    /**
     * The URL, `data:` URI or local file path of the image to be loaded, or a
     * Buffer instance containing an encoded image.
     */
    src: string | Buffer

    /** Sets or retrieves the height of the image. */
    height: number
    /** Sets or retrieves the width of the image. */
    width: number

    /** Retrieves whether the object is fully loaded. */
    readonly complete: boolean

    /** The original height of the image resource before sizing. */
    readonly naturalHeight: number
    /** The original width of the image resource before sizing. */
    readonly naturalWidth: number

    /**
   * Applies to JPEG images drawn to PDF canvases only. Setting
   * `img.dataMode = Image.MODE_MIME` or `Image.MODE_MIME|Image.MODE_IMAGE`
   * enables image MIME data tracking. When MIME data is tracked, PDF canvases
   * can embed JPEGs directly into the output, rather than re-encoding into
   * PNG. This can drastically reduce filesize and speed up rendering.
   */
    dataMode: number

    onload: (() => void) | null;
    onerror: ((err: Error) => void) | null;
  }
  type ImageSource = CanvasImageSource | CanvasImage;
  type Score = {
    boost: number
    detail: number
    saturation: number
    skin: number
    total: number
  }
  type Bounds = {
    x: number
    y: number
    score: Score
    width: number
    height: number
  }
  type Result = {
    topCrop: Bounds
  }
  type Boost = {
    x: number
    y: number
    width: number
    height: number
    weight: number
  }
  type Options = {
    minScale?: number
    width: number
    height: number
    boost?: Boost[]
    ruleOfThirds?: boolean
    debug?: boolean
  }

  function crop(image: ImageSource, options: Options): Promise<Result>;
}

export = SmartCrop;

Hi @Uniphix ,
Thanks for sharing the error you are getting. I'm not entirely sure what the problem is though.
In general the type definitions should work and are tested. You can see this in the admittedly very limited test in types.ts).
Is it possible that you have allowSyntheticDefaultImports set to false in you typescript config?
Cheers!
Jonas


Support for general Java Futures

Probably in a separate module as the execution model will be the same as ExternalEngine.
Similar to #93

With #93 done, this should be reasonably straight forward if anyone wants it.


No entry to import mvnun subroutine

Describe your issue.
Using the last release we have imported and used mvnun function from scipy.stats.mvn which raises a DepricationWarning.
It is supposed to use it from scipy.stats namespace, however, there is no import in init.py
It seems that importing from init.py or _stats_py.py is missed.
Reproducing Code Example
import scipy.stats.mvn
scipy.stats.mvn(....) raises a warning

and

import scipy.stats
scipy.stats.mvnun(....) raises an AttributeError

from scipy.stats import mvnun raises an ImportError

Error message
AttributeError: module 'scipy.stats' has no attribute 'mvnun'

SciPy/NumPy/Python version and system information
1.11.3 1.26.0 sys.version_info(major=3, minor=11, micro=5, releaselevel='final', serial=0)
Build Dependencies:
  blas:
    detection method: pkgconfig
    found: true
    include directory: /usr/local/include
    lib directory: /usr/local/lib
    name: openblas
    openblas configuration: USE_64BITINT= DYNAMIC_ARCH=1 DYNAMIC_OLDER= NO_CBLAS=
      NO_LAPACK= NO_LAPACKE= NO_AFFINITY=1 USE_OPENMP= HASWELL MAX_THREADS=2
    pc file directory: /usr/local/lib/pkgconfig
    version: 0.3.21.dev
  lapack:
    detection method: pkgconfig
    found: true
    include directory: /usr/local/include
    lib directory: /usr/local/lib
    name: openblas
    openblas configuration: USE_64BITINT= DYNAMIC_ARCH=1 DYNAMIC_OLDER= NO_CBLAS=
      NO_LAPACK= NO_LAPACKE= NO_AFFINITY=1 USE_OPENMP= HASWELL MAX_THREADS=2
    pc file directory: /usr/local/lib/pkgconfig
    version: 0.3.21.dev
  pybind11:
    detection method: config-tool
    include directory: unknown
    name: pybind11
    version: 2.11.0
Compilers:
  c:
    commands: cc
    linker: ld.bfd
    name: gcc
    version: 10.2.1
  c++:
    commands: c++
    linker: ld.bfd
    name: gcc
    version: 10.2.1
  cython:
    commands: cython
    linker: cython
    name: cython
    version: 0.29.36
  fortran:
    commands: gfortran
    linker: ld.bfd
    name: gcc
    version: 10.2.1
  pythran:
    include directory: ../../tmp/pip-build-env-358nkn7q/overlay/lib/python3.11/site-packages/pythran
    version: 0.14.0
Machine Information:
  build:
    cpu: x86_64
    endian: little
    family: x86_64
    system: linux
  cross-compiled: false
  host:
    cpu: x86_64
    endian: little
    family: x86_64
    system: linux
Python Information:
  path: /opt/python/cp311-cp311/bin/python
  version: '3.11'

It looks like the second line of code, which raises the warning, is intended to be scipy.stats.mvn.mvnun?
This is already fixed in main. The new message in this case is:

DeprecationWarning: scipy.stats.mvn.mvnun is deprecated along with the scipy.stats.mvn namespace. scipy.stats.mvn.mvnun will be removed in SciPy 1.13.0, and the scipy.stats.mvn namespace will be removed in SciPy 2.0.0.

Yes, it is addressed in main, however, with the last release, the warning is raised and there is no way to suppress the warning. I want to know how to use this version, import the method, and not get the warning. Do you have a plan to update the latest release 3.11?

It is not a public interface, and we don't support it long term. It may disappear any time after scipy 2.0. If you must use it, even under those conditions, use scipy.stats._mvn.mvnun.

So, for a stable long term use, you recommend me to wait for the next release. Am I right?

Aah! I got it. Thank you for your prompt support

It's relatively self-contained to extract into its own package or vendorize into your own codebase if you have the Fortran compiler toolchain you'd need to build scipy from source.
Eventually, it will be replaced by an updated algorithm that's currently implemented (albeit still private) here: https://github.com/scipy/scipy/blob/main/scipy/stats/_qmvnt.py#L204
We are holding off on replacing mvnun with it until we can Pythranize it, which in turn is waiting for necessary improvements to Pythran. But if you need something that's easier to vendorize into your own code, that would probably be it.

Thank you for your kindness and support :-)


docs(proposal): add operator group sa doc

This is a proposal for having a service account associated with an operator group. The associated service account will serve as a threshold for permissions granted to an operator.

Superceded by https://github.com/operator-framework/operator-lifecycle-manager/pull/880. (I would never have come up with the proposed rest.Config BearerToken handling.)


[fix][sec] Upgrade vertx to 4.5.10 to address CVE-2024-8391

Motivation
Address CVE-2024-8391
Modifications
Upgrade vertx from 4.5.8 to 4.5.10
Documentation

[ ] doc
[ ] doc-required
[x] doc-not-needed
[ ] doc-complete

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

Project coverage is 74.54%. Comparing base (bbc6224) to head (347ba15).
Report is 597 commits behind head on master.

Additional details and impacted files

@@             Coverage Diff              @@
##             master   #23338      +/-   ##
============================================
+ Coverage     73.57%   74.54%   +0.96%
- Complexity    32624    33910    +1286
============================================
  Files          1877     1934      +57
  Lines        139502   144980    +5478
  Branches      15299    15838     +539
============================================
+ Hits         102638   108069    +5431
+ Misses        28908    28616     -292
- Partials       7956     8295     +339

Flag
Coverage Δ

inttests
27.78% <ø> (+3.20%)
:arrow_up:

systests
24.56% <ø> (+0.23%)
:arrow_up:

unittests
73.88% <ø> (+1.04%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.
see 605 files with indirect coverage changes


Compile Failure on Unity 5.6.0f1 (NUnit Related)

In addition to automatic API update warnings, the following two compile errors occur with Unity 5.6.0f1 (release candidate for 5.6.0). I suppose they stem from a change in the NUnit version Unity uses?

Assets/Zenject/Source/Editor/Testing/ZenjectIntegrationTestFixture.cs(72,51): error CS1061: Type NUnit.Framework.TestContext.ResultAdapter' does not contain a definition for Status' and no extension method Status' of type NUnit.Framework.TestContext.ResultAdapter' could be found. Are you missing an assembly reference?

on line
            if (TestContext.CurrentContext.Result.Status == TestStatus.Passed)
and

Assets/Zenject/Source/Editor/Testing/ZenjectIntegrationTestFixture.cs(76,46): error CS0246: The type or namespace name `ExpectedExceptionAttribute' could not be found. Are you missing an assembly reference?

on line
if (!CurrentTestHasAttribute<ExpectedExceptionAttribute>())

Zenject 5.0.2, as pulled from the asset store today.

I got the same problem but I was too lazy to report this... :smirk:
Anyway, it seems that they did some refactorings with breaking changes, and what I did was to change the offending lines as following snippet:
    if (TestContext.CurrentContext.Result.Outcome == ResultState.Success)
    {
        // If we expected an exception then initialize would normally not be called
        // Unless the initialize method itself is what caused the exception
        if (!CurrentTestHasAttribute<IntegrationTest.ExpectExceptions>())

I'm not entirely sure if they would work as intended though.

I've got the same issue and created #244 as I didn't find this one at first.

I'm experiencing this issue back in Unity 2017.1.0f3 now.

This is fixed and is awaiting review for an update in asset store.  In the meantime you can get version 5.2.1 in the releases section


feat: More performance metrics

Closes: https://github.com/argoproj/argo/issues/4800
Signed-off-by: Simon Behar<EMAIL_ADDRESS>Checklist:

[ ] My organization is added to USERS.md.

@simster7 I've got a few metrics we might want to do at some point:

Busy workers.
K8S API Metrics
Count of workflow pods by phase (similar impl to count of workflows)
Count of workflows that actually have running pods (by adding a condition).

I did PoC for these, but 3 and 4 are a bit complex and I don't know if we need both.

@simster7 I've got a few metrics we might want to do at some point:

Busy workers.
K8S API Metrics
Count of workflow pods by phase (similar impl to count of workflows)
Count of workflows that actually have running pods (by adding a condition).

I did PoC for these, but 3 and 4 are a bit complex and I don't know if we need both.

Sure, I'll look into this

Sure, I'll look into this

~Busy workers~ Added
K8S API Metrics: not sure it should be our responsibility to emit K8s metrics. Shouldn't K8s have an endpoint for these already?
Count of workflow pods by phase (similar impl to count of workflows): currently have only 1 metric for active pods (i.e. phase==Running). I had actually first set the metric for all phases, but that would require changing our Pod informer from only looking at not completed pods to looking at all pods. If we think this is worth it, I can work to ensure that changing the nature of the informer doesn't have any intended consequences.
Count of workflows that actually have running pods (by adding a condition): this seems to be tied more to the refactored mentioned in https://github.com/argoproj/argo/issues/4824. This should perhaps be changed with that

~Busy workers~ Added
K8S API Metrics: not sure it should be our responsibility to emit K8s metrics. Shouldn't K8s have an endpoint for these already?
Count of workflow pods by phase (similar impl to count of workflows): currently have only 1 metric for active pods (i.e. phase==Running). I had actually first set the metric for all phases, but that would require changing our Pod informer from only looking at not completed pods to looking at all pods. If we think this is worth it, I can work to ensure that changing the nature of the informer doesn't have any intended consequences.
Count of workflows that actually have running pods (by adding a condition): this seems to be tied more to the refactored mentioned in https://github.com/argoproj/argo/issues/4824. This should perhaps be changed with that

Can you take a look at https://github.com/argoproj/argo/pull/4811/files#diff-2721f0228996fd51c5f9a8db168a353b398d051154c82cebb03f03ddd1ee0574?
I think it gives a way to do the workers busy metric very safely.

Can you take a look at https://github.com/argoproj/argo/pull/4811/files#diff-2721f0228996fd51c5f9a8db168a353b398d051154c82cebb03f03ddd1ee0574?
I think it gives a way to do the workers busy metric very safely.

K8S API Metrics: not sure it should be our responsibility to emit K8s metrics. Shouldn't K8s have an endpoint for these already? K8s emits metrics already: https://kubernetes.io/docs/concepts/cluster-administration/system-metrics/

Interesting. @jessesuen are you aware of this?

Count of workflow pods by phase (similar impl to count of workflows): currently have only 1 metric for active pods (i.e. phase==Running). I had actually first set the metric for all phases, but that would require changing our Pod informer from only looking at not completed pods to looking at all pods. If we think this is worth it, I can work to ensure that changing the nature of the informer doesn't have any intended consequences.

I think pods that are pending are useful. I think you can do all in-complete pods.

Count of workflows that actually have running pods (by adding a condition): this seems to be tied more to the refactored mentioned in #4824. This should perhaps be changed with that

This is harder and I'm not 100% sure this is a valuable metric. Lets hold on it.

K8S API Metrics: not sure it should be our responsibility to emit K8s metrics. Shouldn't K8s have an endpoint for these already? K8s emits metrics already: https://kubernetes.io/docs/concepts/cluster-administration/system-metrics/

Interesting. @jessesuen are you aware of this?

Count of workflow pods by phase (similar impl to count of workflows): currently have only 1 metric for active pods (i.e. phase==Running). I had actually first set the metric for all phases, but that would require changing our Pod informer from only looking at not completed pods to looking at all pods. If we think this is worth it, I can work to ensure that changing the nature of the informer doesn't have any intended consequences.

I think pods that are pending are useful. I think you can do all in-complete pods.

Count of workflows that actually have running pods (by adding a condition): this seems to be tied more to the refactored mentioned in #4824. This should perhaps be changed with that

This is harder and I'm not 100% sure this is a valuable metric. Lets hold on it.


Simplify folder structure

move all single classes to the main directory off the module
keep solver and units in a separate directory

Simple classes were moved to the main module directory.
Units and solver have their own subdirectories.


Will handle layout in other issues.


from Pyfhel import Pyfhel, leads error ModuleNotFoundError: No module named 'Pyfhel.Pyfhel.Pyfhel'

When I use git clone source code to install Pyfhel, it is successfully installed.
However, when run from Pyfhel import Pyfhel, it shows that ModuleNotFoundError: No module named 'Pyfhel.Pyfhel.Pyfhel'.
The detail install information as follows.
cd .virtualenvs/ld_env/lib/python3.8/site-package
(ld_env) (base) cysren@cysren-Precision-3660:~/.virtualenvs/ld_env/lib/python3.8/site-packages$ git clone --recursive https://github.com/ibarrond/Pyfhel.git
cd Pyfhel
(ld_env) (base) cysren@cysren-Precision-3660:~/.virtualenvs/ld_env/lib/python3.8/site-packages/Pyfhel$ vim pyproject.toml

(ld_env) (base) cysren@cysren-Precision-3660:~/.virtualenvs/ld_env/lib/python3.8/site-packages/Pyfhel$ pip install .
Processing /home/cysren/.virtualenvs/ld_env/lib/python3.8/site-packages/Pyfhel
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy>=1.21 in /home/cysren/.virtualenvs/ld_env/lib/python3.8/site-packages (from Pyfhel==3.4.2) (1.24.4)
Building wheels for collected packages: Pyfhel
Building wheel for Pyfhel (pyproject.toml) ... done
Created wheel for Pyfhel: filename=Pyfhel-3.4.2-cp38-cp38-linux_x86_64.whl size=9779869 sha256=080b153b7ac9797139dc05dc8ce36d4bc92a8c261ca1a7a93f53dd3b117268d0
Stored in directory: /tmp/pip-ephem-wheel-cache-tmovt1j0/wheels/4f/46/f7/5d09c0d2efbdafd30400436d39d2529abcbec5fe324206736d
Successfully built Pyfhel
Installing collected packages: Pyfhel
Successfully installed Pyfhel-3.4.2
However, when I run my code in a folder, it leads an error as follows.
Traceback (most recent call last):
File "/home/cysren/home/cysren/Desktop/ld_file/Secure-DNN-Inference-with-Adversarial-training/SimpleExample/SimEncryptProcessing.py", line 10, in
from Pyfhel import Pyfhel
File "/home/cysren/.virtualenvs/ld_env/lib/python3.8/site-packages/Pyfhel/init.py", line 1, in
from .Pyfhel import Pyfhel
File "/home/cysren/.virtualenvs/ld_env/lib/python3.8/site-packages/Pyfhel/Pyfhel/init.py", line 1, in
from .Pyfhel import Pyfhel
ModuleNotFoundError: No module named 'Pyfhel.Pyfhel.Pyfhel'

Again, please fill a complete bug report. Take a look at existing github issues.


release v5.11.15

:robot: I have created a release beep boop
5.11.15 (2024-01-15)
🐛Bug Fixes

升级vue: 3.4.13,mermaid: 10.7.0 (307d0c9)

📚Docs

更新linux (e892efb)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/blogres/blogres/releases/tag/v5.11.15 :sunflower:


File created, but it is empty.

First of, thanks much for the script!
The file is well created and takes around 3-4 minutes, but is empty. Does it have to do with permissions to Azure (Intune) maybe?

Thank you for posting the problem.
Script does not require permission with Intune. You require Global Admin or Global Reader Permission on your tenant, also you require read access on your Azure Subscription.
Please review permission and let me know the the status.

Yes, worked well after gaining Global Reader Permission. Great work with this and thanks again!

Thank you for the kind words!


Script does not run due to TypeError

Running the standard notebook with the df-argument set to "coco-val-df", I get this error:
Traceback (most recent call last):
  File "cidereval.py", line 41, in <module>
    scores = scorer.evaluate()
  File "/Users/Emiel/PhD/Repositories/cider/pyciderevalcap/eval.py", line 37, in evaluate
    score, scores = scorer.compute_score(self.gts, self.res)
  File "/Users/Emiel/PhD/Repositories/cider/pyciderevalcap/cider/cider.py", line 55, in compute_score
    (score, scores) = cider_scorer.compute_score(self._df)
  File "/Users/Emiel/PhD/Repositories/cider/pyciderevalcap/cider/cider_scorer.py", line 196, in compute_score
    score = self.compute_cider(df_mode)
  File "/Users/Emiel/PhD/Repositories/cider/pyciderevalcap/cider/cider_scorer.py", line 170, in compute_cider
    vec, norm, length = counts2vec(test)
  File "/Users/Emiel/PhD/Repositories/cider/pyciderevalcap/cider/cider_scorer.py", line 125, in counts2vec
    vec[n][ngram] = float(term_freq)*(self.ref_len - df)
TypeError: unsupported operand type(s) for -: 'NoneType' and 'float'

Hi!
The issue was an inconsistency which crept in at some point (code expected 'coco-val' while the parameter being provided was 'coco-val-df'). Should be fixed now.


Disable cs2pr for now to see the actual output

You need to remove the php check, else it only run on php files changes

Feel free to add the necessary changes

Found the error :
Run php -d memory_limit=-1 composer --working-dir=./.build phpstan -- --error-format=checkstyle
Could not open input file: composer
Thanks for your help


1.18.2 plz

If I can do it in like, 30 minutes, then sure. It won't continue to be supported with updates, and if there are bugs, I'm probably not going to be fixing them, but it'll give you something to have(likely to be only uploaded here on GitHub). Not happening right now, but I will try to get to that soon:tm:

NICE !

Did I forget about this? What?? N-noooooo... yes. But, here you go.
https://github.com/Superkat32/Explosive-Enhancement/releases/tag/1.2.2-1.18.2
Requires Fabric API. Config should be able to be edited using the file, but not via mod menu. I haven't tested it outside of the development environment, but it should still work.


Invalid margins on several pages

@rahuldhide :
Some components are overlapping due to the new margins. Specially the commits cards is not looking good with Create New Job and jobs numbers in two different lines. If we tweak the margins as per the attached specs, we will be able to resolve all these issues.

@rahuldhide  can you please clarify requirements for this change? Are you proposing to change global search results table width to 100% - 80px margins? and all other screens like commits, policies, templates should be centered?

@alexmt @wokeGit For this issue, we just need to change the global search results table width to 100% with 80px (or our standard relative rem) margin. All other screens are already adjusted during the M10 release and they are looking fine. I am removing those specs (attachment) to avoid the confusion.

@alexmt @rahuldhide Thanks for answer.
Described changes are available here:
https://github.com/argoproj/argo/pull/121


Refactor to edit attachment journey

Change to the edit attachment logic, to use the Update rather than
Create route on asset manager. This will mean that editing an
attachment will replace it on the asset manager, using the same
address.
Also includes some changes to the front end, to improve the user
journey.
Trello card

Looks good 👍


[Monitoring dashboard] Initial rendering of widgets shows all APIs but the filter label is blank

Description:
Traffic and Latency page widgets in monitoring dashboard show statistics for all APIs (with the applied limit value) but the filter selection text don't have any label. Better to provide the 'all' label there.

Suggested Labels:
Type/Improvement, Priority/High
Affected Product Version:
3.2.0-beta

Fixed with https://github.com/wso2/analytics-apim/pull/1417


Non-sampled lineouts can return invalid values for unstructured grids

When sampling an unstructured grid using lineout, some of the line/cell intersections are producing intersection points that are not on the line. These bad intersection points are causing peaks in the generated curve where there should be no peaks. This problem has been verified by adding code into the avtLineoutFilter::NoSampling method to write out Point3D files of the calculated intersection points. The errant points are not on the expected line when plotted in VisIt. In the example setup, there is a cube shaped unstructured mesh that has been rotated so its top face points towards (1,1,1). There is a field that varies linearly along the axis of mesh in the (1,1,1) direction. Taking a lineout through the mesh along that axis starting from (0,0,0) should produce a curve plot that also varies linearly. What we see instead is a curve plot that is mostly linear but there are various places along the curve with peaks that should not exist. When you turn on the curve plot's points, you can see that there are clusters of points that have been incorrectly offset in X somehow. Data: alastor:~whitlocb/TimDunn/sptoro_001.00336 Script:OpenDatabase("sptoro_001.00336")AddPlot("Pseudocolor", "zc")DrawPlots() Lineout((0,0,0),(1,1.4214,1.))
-----------------------REDMINE MIGRATION-----------------------
This ticket was migrated from Redmine. As such, not all
information was able to be captured in the transition. Below is
a complete record of the original redmine ticket.
Ticket number: 660
Status: Pending
Project: VisIt
Tracker: Bug
Priority: Normal
Subject: Non-sampled lineouts can return invalid values for unstructured grids
Assigned to: -
Category: -
Target version: -
Author: Brad Whitlock
Start: 03/23/2011
Due date:
% Done: 0%
Estimated time:
Created: 03/23/2011 07:54 pm
Updated: 09/22/2011 11:34 am
Likelihood: 3 - Occasional
Severity: 4 - Crash / Wrong Results
Found in version: 2.2.0
Impact:
Expected Use:
OS: All
Support Group: DOE/ASC
Description:
When sampling an unstructured grid using lineout, some of the line/cell intersections are producing intersection points that are not on the line. These bad intersection points are causing peaks in the generated curve where there should be no peaks. This problem has been verified by adding code into the avtLineoutFilter::NoSampling method to write out Point3D files of the calculated intersection points. The errant points are not on the expected line when plotted in VisIt. In the example setup, there is a cube shaped unstructured mesh that has been rotated so its top face points towards (1,1,1). There is a field that varies linearly along the axis of mesh in the (1,1,1) direction. Taking a lineout through the mesh along that axis starting from (0,0,0) should produce a curve plot that also varies linearly. What we see instead is a curve plot that is mostly linear but there are various places along the curve with peaks that should not exist. When you turn on the curve plot's points, you can see that there are clusters of points that have been incorrectly offset in X somehow. Data: alastor:~whitlocb/TimDunn/sptoro_001.00336 Script:OpenDatabase("sptoro_001.00336")AddPlot("Pseudocolor", "zc")DrawPlots() Lineout((0,0,0),(1,1.4214,1.))
Comments:
The second paragraph is supposed to read:In the example setup, there is a cube shaped unstructured mesh that has been rotated so its top face points towards (1,1,1). There is a field that varies linearly along the axis of mesh in the (1,1,1) direction. Taking a lineout through the mesh along that axis starting from (0,0,0) should produce a curve plot that also varies linearly. What we see instead is a curve plot that is mostly linear but there are various places along the curve with peaks that should not exist. When you turn on the curve plot's points, you can see that there are clusters of points that have been incorrectly offset in X somehow. Notify Tim Dunn at LLNL when this problem is fixed. I added code to avtLineoutFilter to write out the values of isect and isect2 to Point3D files since they determine the intersection points returned by the cellIntersections object. The intersections for both of them are wrong in certain cases, indicating a flaw in the cellIntersections object.


Hide/Show elements in String

Is it possible to hide or show elements in a string if there are multiple urls or mentions? For example there are 3 urls and i want hide 2 of them.

It is not possible with ActiveLabel, sorry


missing image files for documentation

The following image files are referenced in noisily.md, but are missing:
nanoBragg_tmb.jpg
nanoBragg_zoom_tmb.jpg
upscaled_tmb.jpg
upscaled_zoom_tmb.jpg
psfed_tmb.jpg
psfed_zoom_tmb.jpg

Sure... I could just fix this for you, but I think it is a useful exercise for the both of us to use the git tools to create issues and then resolve them.


Update to not create dest file unless restore succeeds

If you restore a nuget package and get an error during restore (i.e. 404) today the result is an empty folder where the package should be expanded. This then causes down stream issues with Get-NuGetPacakge. We should change it to restore to a temp dir and then move files to dest when they are ready.

Should be fixed now


fix: Use 'std::' namespace for size_t vectors

Resolves #138
This is enough to resolve namespace issues with gcc v11.
This should be merged after PR #137 is merged.

@dguest This is ready for review, but will be easier to review if PR #137 is reviewed first.

Also, if a clean size_t -> std::size_t is preferred across the whole code based I've also tried that and have it passing CI. c.f. https://github.com/matthewfeickert/lwtnn/actions/runs/984284159

I probably would have merged this first, and then merged #137, so that there aren't any points where master is failing CI. I guess it seems like less spam to people.

Also, if a clean size_t -> std::size_t is preferred across the whole code based I've also tried that and have it passing CI against gcc v11. c.f. https://github.com/matthewfeickert/lwtnn/actions/runs/984284159

Are there some places where you didn't replace size_t -> std::size_t?

Are there some places where you didn't replace size_t -> std::size_t?

Yes. This was my first check to see what is the minimum required diff to get things passing. However, if you git grep size_t you'll find there are multiple other instances beyond std::vector<size_t>.
I have a branch on my fork that has size_t -> std::size_t applied universally that I can force push here, but I wanted to discuss what the goal was for this patch: minimal required diff, or changing everywhere regardless if actually needed for the problem seen in Issue #138? (I would say change all of it everywhere, but I didn't know if there was motivation not to).

I think we should change it everywhere. From my reading, having the global size_t appear anywhere is mostly included C libraries leaking up into the C++ code. There don't seem to be any requirements from the standard that this variable continues to exist anywhere.

@dguest This is ready for another review.


Numeric struct fields

E.g.,
struct Foo {
    0: String,
    42: i32,
}

fn main() {
    let foo = Foo { 42: 0, 0: "Hello".to_owned() };
    let x: i32 = foo.42;
}

Helps bridge the gap between structs and tuples.
cc @nikomatsakis

I dislike this, since I do not see an actual usecase.

This is a part of https://github.com/rust-lang/rfcs/pull/1506, that RFC doesn't permit explicit numeric fields in struct definitions though.

To clarify, #1506 allows tuple struct's fields to be referenced (by index) in a braced expression. This issue is about identifying braced struct fields by number

This issue is about identifying braced struct fields by number

I see. I don't see much motivation for this though.

I like this, because it simplifies the language. Would this allow for:
struct Foo {
    0: String,
    1: i32,
}

let _ = Foo("hi".to_string(), 20);

?

@bjz,
I think rust already support tuple like struct using :
struct Foo(String,i32);
let _ = Foo("hi".to_string(), 20);

I think if we allow numeric struct field, we must specify the field name like current rules because struct can have field like this:
struct Foo {
   1: i32,
   bar: i32,
   0: String
}

In my humble opinions, numeric struct field is weird... At least I never see such feature in other language

numeric struct field is weird... At least I never see such feature in other language

I believe the precedent would be ML.

@bjz: I don't think that this would or should enable the named tuple construction syntax, since a tuple constructor is a function, and thus in the value namespace, which a struct constructor is not.
Creating entries in a namespace just based on the naming of its fields seems weird.

I've been vaguely in favor of this, because I feel like it makes things more uniform, and is a further step closer to unifying "tuple-like" structs and "named field" structs.
For example, if I have a struct like
struct Foo(X);

I could now convert it to the following:
struct Foo { 0: X }
fn Foo(x: X) -> Foo { ... }

in a (more) backwards compatible way.
(Patterns might still behave differently, I believe, though one could imagine saying that Foo(pat) where Foo is a struct name should be short-hand for Foo { 0: pat }.)

I would have to see actual compelling use cases to put this into positive territory in my evaluation. Otherwise I think the sheer weirdness of it outweighs the theoretical improvement in uniformity. ("Everything that is syntactically legal, that the compiler will accept, will eventually wind up in your code base." Like, I'd be fine with allowing it, for uniformity, if people had the good sense to not actually use it, but...)
Non-consecutive numeric fields as in the first example are especially weird and would be a new thing entirely.

There's a concrete benefit to this unification: currently there's no way to perform field access without the potential for autodereferencing kicking in. When using a macro to wrap an unsafe pattern into a safe macro call, any unintentional dereferencing can break the safety guarantees.
(For an example, see offset_of!() from the field-offset crate)
The only way to prevent autodereferencing is to use destructuring syntax:
let Foo { ref field, .. } = x
But this destructuring only works for normal structs. You can't destructure a tuple struct in the same way, at least not without knowing the length of the tuple.

Triage ping @nrc

I think this is not really worth doing - like if it were free I'd take it (probably) but I don't think it is even worth the effort to discuss an RFC and/or review a patch.