Numbers are not allowed when using Cloud Functions

As of now as all collections need the prefix "version/1" etc. It disables our ability to use Cloud Functions. Cloud Functions does not allow numbers in the regex, I've just tried and it complains about the "1" being there.
How do we prevent this from happening?

Okay, maybe it is not that it's a numeric value that is the problem.
This is the error I get:
fieldViolations=[field=event_trigger, description=Expected value version/test/user/{userId}/activeClub to match regular expression [^/]+/[^/]+(/[^/]+/[^/]+)*]]

We are using CloudFunctions.
I do not understand what you are having troubled with this.
Please tell me about source and error contents.

Sorry. This was due to me pointing to a certain field, I read the Firestore documentation, and learned this is not possible. Thanks.
Is it possible to prevent /version/1 prefix? this makes it complicated to make Cloud Functions ex.

Hi. It is possible. override this function.
https://github.com/1amageek/Pring/blob/master/Pring/Object.swift#L23


boto3 redshift not working -- JSON response

When I try to test create redhift cluster, parameter group and subnet group with boto3, I get the following error:
ResponseParserError: Unable to parse response (not well-formed (invalid token): line 1, column 0), invalid XML received:
{"RequestId": "6876f774-7273-11e4-85dc-39e55ca848d1", "Error": {"Message": "Cluster testRedshift not found.", "Code": "ClusterNotFound", "Type": "Sender"}}

Thanks for opening this. Can you try again after I've pushed https://github.com/spulec/moto/commit/3cdb4afad0f6a42c790c39c56e2b6f0680d54ff7
It isn't the ideal solution, but should work for now.


[BUG]: AI Controlled Rockets - Can't launch due to obstructed launch path

Which Mod?
AI Controlled Rockets (DLC)
Description of the bug/crash
What happened - Rocket cannot launch due to obstructed launch path despite the launch path being clear
What should happen - Rocket can launch
Potential cause - Rocket seems to not like the AI brain module as that seems to be obstructing it
https://imgur.com/a/5LEi3SO
Steps To Reproduce
Build rocket with ai brain module
Player.log
No crash just rocket will not launch

nice find
those two mesh tiles are blocking it

(since I forgot to update that check from when the module was only 3 wide.)
will be fixed next update

sorry to message on a closed thread but do you have a rough time for when the update will be out? just wanna know if I should wait for it or switch to dupe rockets since I get that with mods its just a "its out when its out" kinda thing so if you don't then its fine

today


Get rid of the location informations in the OCaml AST

There is a way to get rid of the location annotation in the ocaml ast?
This is the code I am trying

let _ =
  let parser = Parser_flow.program in
  let parse_options =
    Some
      Parser_env.
    {
      enums = false;
      esproposal_class_instance_fields = false;
      esproposal_class_static_fields = false;
      esproposal_decorators = false;
      esproposal_export_star_as = false;
      esproposal_optional_chaining = false;
      esproposal_nullish_coalescing = false;
      types = false;
      use_strict = false;
    } in
  let code = "function factorial(n) {
                  if(n==0){return 1} else {n*factorial(n-1)}
              }
              factorial(5)" in
  let (ast, errors) = parser ~parse_options code ~fail:false  in
  ast

can you elaborate on your use case? why don't you want the locations?
the AST is generic, so you could use Flow_polymorphic_ast_mapper to convert a (Loc.t, Loc.t) Flow.Program.t to a (unit, unit) Flow.Program.t. there's (currently) no way to prevent the parser from allocating the Locs in the first place.
something like this:
class loc_eraser =
  object (this)
    inherit [Loc.t, Loc.t, unit, unit] Flow_polymorphic_ast_mapper.mapper
    method on_loc_annot _ = ()
    method on_type_annot _ = ()
  end

let eraser = new loc_eraser in
let (ast : (unit, unit) Flow_ast.Program.t) = eraser#program ast in


draft sample analysis finder

Context: https://github.com/populationgenomics/analysis-runner/pull/613, https://github.com/populationgenomics/seqr-private/issues/73
Output: https://docs.google.com/spreadsheets/d/1_Urw0rRMdo1SyhpVWyUynj5mQcwtvYf0bn-S_3WwA2A/edit?usp=sharing
This script takes a project and sample IDs, finds all the analysis entries associated with the samples, and creates an output spreadsheet containing these entries.
It then takes the paths from the CRAM and GVCF analysis entries and searches the bucket at these paths for any extra files (e.g. cram.crai, cram.md5, g.vcf.gz.tbi) and adds these to the output. Currently duplicate CRAM and GVCF paths are added but it probably doesn't matter too much for now.
The output spreadsheet can then be used to investigate and eventually delete objects in the buckets via Analysis Runner.

@illusional you mentioned that using only the Sample ID to find the files might be unreliable, do you think this method needs to be changed to pull in SampleSequence IDs or something of the sort?

Codecov Report
Patch and project coverage have no change.

Comparison is base (269a5d7) 65.25% compared to head (2ddead7) 65.25%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #452   +/-   ##
=======================================
  Coverage   65.25%   65.25%
=======================================
  Files          73       73
  Lines        6272     6272
=======================================
  Hits         4093     4093
  Misses       2179     2179

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

This approach is all good for now, eventually analysis will be keyed by the "sequencing group ID", which the CPG ID will become, I'm just signposting this change (and prompting to use metamist to fetch the data).

This approach is all good for now, eventually analysis will be keyed by the "sequencing group ID", which the CPG ID will become, I'm just signposting this change (and prompting to use metamist to fetch the data).

Good to know for future. This issue should hopefully be temporary, since we have a planned change to the metadata parser which will check sequence file sizes and flag if there's a potential genome/exome labelling issue in the metadata


Doesn't support command cargo --version in task

Describe The Bug

The following task caused error
[tasks.build]
command = "cargo"
args = ["--version"]

@lygstate thanks a lot for reporting this.
I see the automatic crate installation kicked in for that as well and tried to find a crate named --version which is naturally totally wrong :)
i'll have that fixed. thanks for reporting.

@lygstate this is now fixed in the 0.32.8 development branch.

@lygstate the fix is now published.


This pull request is just for MapR integration code review

This is my local branch for MapR integration

Solved:

EAGLE-282:Auditlogparser for MapR's audit log
EAGLE-283:Convert fid,uid in MapR's audit log to FIle/folder name, user name
EAGLE-284:Connect to MapR's CLDB service

Problem:

Can not trigger alerts for now.

Compared to Hortonworks,  MapR depends on different jars but same package names and class name.I haven't come up with a good solution for this dependency problem, so feel free to leave comments under this pull request, any advice will be appreciated.   :)
Thanks and Regards,
Da

That's really a big pull request!
I don't have too much background on this new feature, and just check the code that i am familiar with. :-)
In HDFSCommandResolver.java, the command set have been changed. Do you have thorough tests on this topology after changing this resolver?

Because i have a concern. As the command set are from the hdfs audit log, but not original hdfs commands. If you change the command set here, they may mismatch the parsed value from the log


singularity-tools: create required bind points

Motivation for this change
Latest version of singularity requires the creation of /root and two bind points in /etc/.
Things done

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

[x] NixOS
[ ] macOS
[ ] other Linux distributions

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

I am not familiar with this code. Do you have an example I can test?

Sure, see this https://gist.github.com/jbedo/c32f6bb93470dc849e4d723c5cda7118. Then try dropping into a shell using singularity after building:
# sudo singularity shell result
WARNING: Non existent bind point (file) in container: '/etc/localtime'
WARNING: Non existent bind point (file) in container: '/etc/hosts'
ERROR  : Base home directory does not exist within the container: /root
ABORT  : Retval = 255

BTW, is there any way to tag this code with me as the maintainer? Since I wrote it and am maintaining it, would be nice to do so for clarity.

You should be able to set meta the same way as in stdenv.mkDerivation:
nix-repl> (runCommand "foo" { meta.maintainers = ["foo"]; } "echo test > $out" ).meta.maintainers
[ "foo" ]

Was this closed intentionally?


Cropping without losing resolution

Is there anyway to crop the image using this library without losing resolution. currently I'm using the library and it seems the quality and dimension of the image depends on the size of my browser window. I would like to keep the original resolution of the image. the below image is result of the cropping the same area of an image with different sizes of the browser window
const [crop, setCrop] = useState({ unit: "%", width: 30, aspect: 16 / 9 });

Hi recently I updated the hook example to increase the quality of the crop preview, see my last comment here to see the difference: https://github.com/DominicTobias/react-image-crop/issues/263
However if you want to crop on the original image size then you either need to find a library which can programmatically crop an image without it needing to be visually on the screen, or you need to keep an off screen image as some people have mentioned doing in that thread, and generate a canvas from that instead

Thank you, it makes sense, somewhere at #263 you mentioned that you are going to add the solution to the project, is that still a plan?

modifying the getResizedCanvas function seems to be doing the job, this is my code, please let me know if you see a problem or a flow. thank you.
const getResizedCanvas = () => {
    const scaleX = imgRef.current.naturalWidth / imgRef.current.width;
    const scaleY = imgRef.current.naturalHeight / imgRef.current.height;
    const tmpCanvas = document.createElement("canvas");
    tmpCanvas.width = Math.ceil(crop.width*scaleX);
    tmpCanvas.height = Math.ceil(crop.height*scaleY);

    const ctx = tmpCanvas.getContext("2d");
    const image = imgRef.current;
    ctx.drawImage(
        image,
        crop.x * scaleX,
        crop.y * scaleY,
        crop.width * scaleX,
        crop.height * scaleY,
        0,
        0,
        crop.width*scaleX,
        crop.height*scaleY,
    );

    return tmpCanvas;
}

Hi are you doing the approach where imageRef is a reference to a full size
off screen image?
Since this is such a company problem I might make some utility functions to
help with it, but no plans to do it that soon tbh I’m busy with some other
stuff at the moment
On Wed, 1 Jul 2020 at 00:32, Ali Emami<EMAIL_ADDRESS>wrote:

modifying the getResizedCanvas function seems to be doing the job, this is
my code, please let me know if you see a problem or a flow. thank you.
const getResizedCanvas = () => {
const scaleX = imgRef.current.naturalWidth / imgRef.current.width;
const scaleY = imgRef.current.naturalHeight / imgRef.current.height;
const tmpCanvas = document.createElement("canvas");
tmpCanvas.width = Math.ceil(crop.widthscaleX);
tmpCanvas.height = Math.ceil(crop.heightscaleY);
const ctx = tmpCanvas.getContext("2d");
const image = imgRef.current;
ctx.drawImage(
    image,
    crop.x * scaleX,
    crop.y * scaleY,
    crop.width * scaleX,
    crop.height * scaleY,
    0,
    0,
    crop.width*scaleX,
    crop.height*scaleY,
);

return tmpCanvas;

}
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/DominicTobias/react-image-crop/issues/373#issuecomment-651906751,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFZT6UUWC3J47UV4OKRO7TRZIHQTANCNFSM4OIZWZNA
.

The solution of @aliemami works for me.

I ran into this issue today and solved it by removing the getResizedCanvas function altogether. I saw the comment on the hooks codesandbox, "We resize the canvas down when saving on retina devices otherwise the image will be double or triple the preview size." but was unable to replicate this bug. I tested on an iPhoneXS, MacBook Pro and Chromebook and experienced the same results.

Closing as the latest code in the demo should have good quality (and adjusts for retina), thanks for the problem solving ^


hide virtual networks from users

/!\ To report a security issue please follow this procedure:
[https://github.com/OpenNebula/one/wiki/Vulnerability-Management-Process]
Description
All users on OpenNebula are able to see all virtual networks configured.
To Reproduce
create a new user and group, assign VM to that user and group, login with the user and try to add NIC to the VM, all the virtual networks are visible to the user even if he does not belong to the group / owner of the virtual network. user is able to select any of them and attach it to the VM.
Expected behavior
when a virtual network is assigned to a user / group. only users in that group are able to see it and use it. if user is not assigned to the group he should not be able to see / use the virtual network
Details

Affected Component: Sunstone
Hypervisor: VCenter 6.7
Version: 6.2

Additional context
Add any other context about the problem here.

Progress Status

[ ] Code committed
[ ] Testing - QA
[ ] Documentation (Release notes - resolved issues, compatibility, known issues)

Thank your for reaching out regarding your issue. Please confirm that there are no permissions set for "others" group on the VNET you are trying to use.

Hello Daniel,
the only permissions on all the VNETs are set for the "owner" only to use and manage.
the "group" and "other" do not have any permissions selected for them.
1- VNET-A: owner = NOC, Group = NOC
2- VNET-B: owner = oneadmin, Group = oneadmin
3- VNET-C: owner = oneadmin, Group = oneadmin
user NOC is able to see all VNETs when he's logged in.


Add African Leadership University faculty domain

African Leadership University faculty domain

@dvorgbe Pull request merged. Thank you!


feat: check for stale data, intl messages, fix double mount bug

fix Add new contentType to each parent
fix load save data on Add new contentType
feat show toast instead of window.confirm
tell user about stale stored data, but let them chose
intl messages

Demo for how simple editing works with autosave:
https://github.com/plone/volto/assets/7466122/4d074cc8-0450-46ec-b97c-37aba64d3ad0

Demo for how autosave removes storage on Save form or Cancel load saved data:
https://github.com/plone/volto/assets/7466122/d83070e9-4c47-4d1a-85f5-908d8839684d

Demo for how autosave manages stale data (content gets edited more recently than the local saved data):
https://github.com/plone/volto/assets/7466122/5fc3efb3-cf3e-4abc-a649-0c78a8a89d16

Demo for how autosave adds new content type:
https://github.com/plone/volto/assets/7466122/7eb4e22b-f748-4fa4-8254-451e69949738

Demo for how autosave handles accidental refresh in edit and add modes:
https://github.com/plone/volto/assets/7466122/1c7d1954-111e-468f-b456-198e3bfdd9b0

Demo for comments autosave:
https://github.com/plone/volto/assets/7466122/16ac7fa1-b3a2-44f2-929e-69e382b8c08f


FTP: Server encoding detection

Short description
Enable automatic FTP server encoding detection.
Details
org.apache.commons.net.ftp.FTPClient has a setAutodetectUTF8 method to determine if the server supports UTF-8. Enabling the detection on client creation would allow working with files that have non-Latin names.

@TheDeadOne would you be interested in submitting a PR? The changes are similar enough to what you already did in your other FTPS PR.

@pjfanning I can add this option to the settings but don't know how it can be tested.

@pjfanning I can add this option to the settings but don't know how it can be tested.

Sure. We can probably live with having no test for this.

Okay, I'll do it on the weekend.


Environment customization

Hello, thank you all for this amazing work.
i'm trying to do some customizations to the environment, so I basically want to make some objects transparent or hidden when evaluating.
Can you guide me on how to do it?

To make objects hidden you can do the following:
from omni.isaac.core.utils.prims import  get_prim_at_path
prim = get_prim_at_path(prim_path)
prim.SetActive(False)

Thank you for the fast response.
Can you tell me where exactly should i do this modification

hello,
can I make the objects transparent while being physically active?

Assuming the material is located at a url or file location: floor_material_url
Then you can create material in USD using this:
omni.kit.commands.execute(
"CreateMdlMaterialPrim",
mtl_url=floor_material_url,
mtl_name=floor_mtl_name,
mtl_path=floor_material_prim_path,
select_new_prim=False,
)
Then you need to bind the material to the object using this:
omni.kit.commands.execute(
"BindMaterial",
prim_path=floor_prim.GetPath(),
material_path=floor_material_prim_path,
strength=UsdShade.Tokens.strongerThanDescendants
)

Thanks a lot, i was able to apply different materials. But another question, how do i access the train and test demonstrations episodes and get the frames out of them. Because i want to do an experiment, which include encoding all frames in a CLIP video encoder space.
Thanks in advance and appreciate your help.

Hi, you can refer to training scripts.

In dataset.py, we have similar operations of extracting frames and corresponding observations from the demonstration npz file. You can refer to this script. Specifically, each frame is a dict and you can access the observation by indexing with images. The value is a list and each entry is dict containing all information from one camera. The logic is like below:
import numpy as np
npz_file = np.load('demo.npz', allow_pickle=True)
gt_frames = npz_file['gt']   # this may require the package pxr, I am not sure
step = gt_frames[0]
obs_all = step['images']
obs_front = obs_all[0]
rgb_front = obs_front['rgb']   # shape: (H, W, 4)

So, is it possible to extract the frames without being able to train, because my pc isn't powerful enough.
Also i tried this code you provided should i add it to the dataset script or make a different script with this code only, and should i refer to the file path to any npz file i want.

Yes, you can run it outside the Isaac Sim. To extract the frames, you can simply run the code snippet in ipython, with whatever npz file.

I did this but it says it needs pxr, and when i import pxr it doesn't differ.

i tried all these solutions and still got this error:
Traceback (most recent call last):
File "/media/local/atarek/arnold/helptest.py", line 2, in
import pxr
ModuleNotFoundError: No module named 'pxr'
i ran the code you told me which is this:
import numpy as np
import pxr
npz_file = np.load('/media/local/atarek/arnold/data_root/open_drawer/train/Steven-open_drawer-0-0-0.0-0.5-2-Mon_Jan_30_06:06:44_2023.npz', allow_pickle=True)
gt_frames = npz_file['gt']
step = gt_frames[0]
obs_all = step['images']
obs_front = obs_all[0]
rgb_front = obs_front['rgb']

The problem is pxr do not exist until you start SimulationApp.
A workaround is to pip install usd-core if you do not need isaac sim
and pip uninstall usd-core if you need isaac sim.

Thank you so much, it worked


Travis cleanup

Run custom jobs on latest stable Rust;
Improve caching;
Fix clippy lints in order to pass on latest stable
Closes #1554

Coverage increased (+0.04%) to 82.512% when pulling 7c467d2992d6937f5b4c42a41b3f422a22d19b89 on shssoichiro:travis-cleanup into 4cedeedabfc7195d45704acca394544a53cff4a8 on xiph:master.

Finally. Although coverage went down because I had to ignore the slow running tests as discussed in IRC. They still run, but are ignored by kcov.

It seems to work now with both empty and primed cache. There are still some limitations. The first build of each PR will still have to build all the dependencies, because caches are per-branch and per-job. So it's 5 minutes of wall time, but 30 minutes of CPU time, for the first build on every branch.
I think the optimal is still moving to Gitlab and using a custom-built Docker image which has the dependencies pre-installed. But I don't know what the timeline for that looks like.


Need to upgrade shelljs to 0.8.4 to remove circular dependency warnings

With reference to nodejs/nodejs#29935 which triggered shelljs/shelljs#973

I encountered this problem by switching to nodejs 14

published a fixed version here:
https://www.npmjs.com/package/@stefcud/configyml


Document class inheriting from LightningModule

❓
What is your question?
Given the code, I would assume that using sphinx, all 3 classes are documented. In fact the class inheriting from LightningModule is not documented. I post this as a how-to and hope for help because that could be a plain problem on my side, otherwise it would be a bug.
Using sphinx-apidoc, relevant generated part:
.. automodule:: ccc.models.exampleClass
   :members:
   :undoc-members:

Code
# ccc/models/exampleClass
from pytorch_lightning import LightningModule

class classA(object):
    def __init__(self, a: int):
        """
        Args:
            a:
                asdf
        """
        pass

class classB(LightningModule):
    def __init__(self, a: int):
        """
        Args:
            a:
                asdf
        """
        pass

class classC(classA):
    def __init__(self, a: int):
        """
        Args:
            a:
                asdf
        """
        pass

What's your environment?

OS: [e.g. iOS, Linux, Win] Windows + WSL
Packaging [e.g. pip, conda] poetry (pip)
Version [e.g. <IP_ADDRESS>] 0.8.5

Do you get any I couldn't yet figure out what the problem is. Do you also get warnings/error messages when you generate html?

I don't.
But do you also have the problem? That would already calm me a bit.

I just inserted your example class in a random place in the Lightning docs with automodule/autoclass, because I was too lazy to configure sphinx in a new folder. Don't know sphinx very well :)
Perhaps you could share your config for sphinx? That may help.

Yes, I also do no really know sphinx - I am happy as long as it works.
I just extended sphinx's quickstart configuration.
# -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config

# -- Path setup --------------------------------------------------------------

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
import os
import sys
sys.path.insert(0, os.path.abspath('../../ccc/conf/schema/'))
sys.path.insert(0, os.path.abspath('../../'))
autodoc_mock_imports = [
    "torch", "torch_geometric", "flowio", "numpy", "matplotlib",
    "hydra", "pandas", "flowkit", "yaml", "omegaconf", "pytorch_lightning"]
autodoc_default_options = {
    'members': True,
    'special-members': '__init__',
    'undoc-members': True
}

# -- Project information -----------------------------------------------------

project = 'someProject'
copyright = '2020'
author = ''

# The short X.Y version
version = ''
# The full version, including alpha/beta/rc tags
release = '0.0.1'

# -- General configuration ---------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
#
# needs_sphinx = '1.0'

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
    'sphinx.ext.autodoc',
    'sphinx.ext.doctest',
    'sphinx.ext.todo',
    'sphinx.ext.coverage',
    'sphinx.ext.mathjax',
    'sphinx.ext.viewcode',
]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
# source_suffix = ['.rst', '.md']
source_suffix = '.rst'

# The master toctree document.
master_doc = 'index'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = []

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = None

# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages.  See the documentation for
# a list of builtin themes.
#
html_theme = 'sphinx_rtd_theme'

# Theme options are theme-specific and customize the look and feel of a theme
# further.  For a list of options available for each theme, see the
# documentation.
#
# html_theme_options = {}

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']

# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
#
# The default sidebars (for documents that don't match any pattern) are
# defined by theme itself.  Builtin themes are using these templates by
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
# 'searchbox.html']``.
#
# html_sidebars = {}

# -- Options for HTMLHelp output ---------------------------------------------

# Output file base name for HTML help builder.
htmlhelp_basename = 'MyPackagedoc'

# -- Options for LaTeX output ------------------------------------------------

latex_elements = {
    # The paper size ('letterpaper' or 'a4paper').
    #
    # 'papersize': 'letterpaper',

    # The font size ('10pt', '11pt' or '12pt').
    #
    # 'pointsize': '10pt',

    # Additional stuff for the LaTeX preamble.
    #
    # 'preamble': '',

    # Latex figure (float) alignment
    #
    # 'figure_align': 'htbp',
}

# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title,
#  author, documentclass [howto, manual, or own class]).
latex_documents = [
    (master_doc, 'mypackage.tex', 'mypackage Documentation',
     'Undisclosed_Author', 'manual'),
]

# -- Options for manual page output ------------------------------------------

# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
    (master_doc, 'mypackage', 'mypackage Documentation',
     [author], 1)
]

# -- Options for Texinfo output ----------------------------------------------

# Grouping the document tree into Texinfo files. List of tuples
# (source start file, target name, title, author,
#  dir menu entry, description, category)
texinfo_documents = [
    (master_doc, 'mypackage', 'mypackage Documentation',
     author, 'mypackage', 'One line description of project.',
     'Miscellaneous'),
]

# -- Options for Epub output -------------------------------------------------

# Bibliographic Dublin Core info.
epub_title = project

# The unique identifier of the text. This can be a ISBN number
# or the project homepage.
#
# epub_identifier = ''

# A unique identification for the text.
#
# epub_uid = ''

# A list of files that should not be packed into the epub file.
epub_exclude_files = ['search.html']

# -- Extension configuration -------------------------------------------------

# -- Options for todo extension ----------------------------------------------

# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = True

Even if their _init_ is not documented, NeMo does seem to get that running, I take a look how they do it.
It is not solved by the following:
class classB(LightningModule, object):
    def __init__(self, a: int):
        """
        Args:
            a:
                asdf
        """
        pass

So, NeMo's .rst file is doing that by writing .. autoclass:: explicitely in their documentation source.
.. autoclass:: ccc.models.exampleClass.classA
   :show-inheritance:
.. autoclass:: ccc.models.exampleClass.classB
   :show-inheritance:
.. autoclass:: ccc.models.exampleClass.classC
   :show-inheritance:

I checked high-starred dependents of pytorch-lightning. Either they use .. autoclass::, or e.g. asteroid has the same issue @mpariente with the asteroid.engine.system - module.

So, I have found it is not only a pytorch-lightning issue by trying to document the LightningModule by myself.
from abc import ABC, abstractmethod
from torch.nn import Module

from pytorch_lightning.core.grads import GradInformation
from pytorch_lightning.core.hooks import ModelHooks
from pytorch_lightning.core.saving import ALLOWED_CONFIG_TYPES, PRIMITIVE_TYPES, ModelIO
from pytorch_lightning.utilities.device_dtype_mixin import DeviceDtypeModuleMixin

# original Class:
# class LightningModule(ABC, DeviceDtypeModuleMixin, GradInformation, ModelIO, ModelHooks, Module):

# This gets documented
class ABCmodule(ABC):
    """
    mydocumentation ABCmodule
    """

# The following two classes are not documented.
class PTLmodule(DeviceDtypeModuleMixin):
    """
    mydocumentation PTLmodule
    """

class TORCHmodule(Module):
    """
    mydocumentation TORCHmodule
    """

PyTorch documents Module here under Containers. It uses .. autosummary:: but also some kind of :template:-directive which might solve the problem.
However, I have more urgent, actual code problems. I feel at some point I will make the documentation by hand anyways so I will go with explicitely documenting with .. autoclass:: ccc.models.exampleClass.classB
Would be great though if someone with more knowledge of sphinx could jump in!

@gunthergl does .. automodule:: work now?


removeFromParent

I have updated to swift 4.2 and updated the pod file. however i am getting this error:
removeFromParent()' has been renamed to 'removeFromParentViewController()'
Has this been fixed for the latest swift?

There are other issues as well. And i removed from pod file , and re added to make sure i have latest.

Hi @RichardBoyder
removeFromParentViewController() has been renamed to removeFromParent() in swift4.2
removeFromParentViewController() was obsoleted in Swift 4.2
I suspect that you are not building your project with swift4.2 and that is the reason why you are getting this error.
Could you make sure, that you are using swift 4.2 on you project?

As you can see, here was the same problem: https://github.com/zhangao0086/DKImagePickerController/issues/508


How and where did you include the metrics’ definition in evaluation

I'm wondering where did you tell gpt4 to consider the 7 metrics you defined in the paper. I didn't see relevant message in the prompt in the judge_prompts.jsonl file.
Thanks.

Hi, you can refer to the figure in the paper

We define the counseling strategy and provide examples as shown in Evaluation_definetion

I'm curious how you put these information in the code? Could you release this part of the code?

We will rearchive this part of code. When it's ready, we will notify you.
Basically, it's just a prompt completion.


Library API for querying metadata

Several projects have reached out about using Wash as an interface for querying information about groups of cloud resources. This fits fairly well to how we use find to select groups of resources and meta to get their information. However, you shouldn't have to run a shell or start a server to use Wash for this, so we should make a usable library interface to accomplish the same thing.

This is being done as #683.


update hedera-sdk-go to 2.4.0

Detailed description:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Checklist

[ ] Documentation added
[ ] Tests updated

Currently, there is a bug in the SDK.


Remove service action from ruby_block

Description
Remove service action from ruby_block for idempotence purposes.
Issues Resolved
List any existing issues this PR resolves
Check List

[x] All tests pass. See TESTING.md for details.
[x] New functionality includes testing.
[x] New functionality has been documented in the README if applicable.

Released as: 1.1.1


Move installation of curl in ubuntu18 to last

In #204, a duplication curl install call was removed. Since then, the builds are failing unable to find curl during verification. Switching to the end to make sure it's there.

Force merge since it's low risk and to attempt to unblock 1/13 rollouts.


Update remediate-resources.md #111374

Updated sentence to include additional information, about System Managed identity scope - #111374

@lukemurraynz Thanks for your contribution.

#sign-off


Grid Lines

Grid Lines on both player and dm screen. Looking at implementing this as well.
FYI: I currently use this app for my huge screen that the players play on.
Also looking into splitting off the map image into a separate channels, only passing the map once. (Either a URL, Video, or Image once)
Leaving the other channel for the FOW, and Grid Lines. (So I can do live updates, with bigger maps)

Cool, it would need to be optional because a lot of images have lines built
in.
On Thu, Apr 18, 2019 at 6:03 PM thorgod<EMAIL_ADDRESS>wrote:

Grid Lines on both player and dm screen. Looking at implementing this as
well.
FYI: I currently use this app for my huge screen that the players play on.
Also looking into splitting off the map image into a separate channels,
only passing the map once. (Either a URL, Video, or Image once)
Leaving the other channel for the FOW, and Grid Lines. (So I can do live
updates, with bigger maps)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/apclary/dungeon-revealer/issues/30, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AAGW6T3O2EVGQZZP3OWV52LPRD445ANCNFSM4HHA4YYQ
.

--
Alex Clary

@n1ru4l Maybe you can help me co-program this. Having a hard time coming up with the code/design.
I was thinking both the client/dm would generate a svg or canvas and overlay it?
In terms of design do you have any thought on the best approach?
To draw the lines I was going to use an example like this
https://codereview.stackexchange.com/a/135207

I think it would make most sense to integrate the grid into the map image. We could add an additional step upon map creation. Open a canvas with the map image and one with a moveabale/scalable grid. Upon save we can then merge the two canvases as the map image.

I am currently evaluating potential implementations. Maybe we can use OpenCV.js for automatically detecting grids (based on a already existing grid) or geometrical shapes.

Progress can be tracked here: https://github.com/n1ru4l/cv-image-grid-detection
Detecting battle maps with a nice defined grid works really good, however, when using "original" D&D maps like the tomb of annihilation it does not work as expected. Need to investigate further!

For now, I decided that adding a grid setup wizard might be the better and less time-consuming way to go.
@apclary @thorgod I prototyped the first implementation for setting up the grid.
https://gofile.io/?c=DTpHgc
Then the first feature based on that information could be:

Show grid for players (and DM) (for maps that do not have an embedded grid)
Snap area selection tool to grid

Later we can also let tokens snap to the grid once @Azkel has finished the implementation
Let me know what you think.

@thorgod haha I wish I had players that could commit too such a mammoth adventure 😅 Git the book in my shelve, maybe one day 🤔
@apclary Weird site will try another tomorrow. (You could also check the pull request for hands-on demo :D): https://github.com/apclary/dungeon-revealer/pull/146

@thorgod @apclary I updated the description of the pull request: https://github.com/apclary/dungeon-revealer/pull/146
Would be awesome if you could provide some feedback.


Use auto-release from crates.io to release

Following up on https://github.com/rust-osdev/uefi-rs/pull/999#issuecomment-1807208000, I finally got a separate repo created with the code to perform automatic releases. I created a simple bin crate (https://crates.io/crates/auto-release), so now we can drop all the release-related code from xtask.
Checklist

[ ] Sensible git history (for example, squash "typo" or "fix" commits). See the Rewriting History guide for help.
[ ] Update the changelog (if necessary)

Hi! I'm still on vacation but I'm happy to review it after March 6th. However feel free to merge if you want

I'll wait to merge, no rush. Enjoy your vacay :D


feat(functions): lookup triggers

Extended /lookup preset with two triggers.
Document changes trigger sends a signal to extract-terms function.
extract-terms function highlights terms provided by LLM in a document.
Timer changes trigger lookup-next-highlight function.
lookup-next-highlight chooses a thread where there was no message from LLM and triggers /lookup prompt on it.

closing as way too experimental


Possible error in version.schema.json?

I created a new version.json file (following the instructions in https://github.com/AArnott/Nerdbank.GitVersioning/blob/master/doc/versionJson.md ).
Editing this file in VSCode, the following error is logged, which I take to mean that there's an issue in the regex?
[Error - 9:48:26 AM] Error while validating file:///c%3A/dev/git/MyProject/version.json: Invalid regular expression: /^v?(?<major>0|[1-9][0-9]*)\.(?<minor>0|[1-9][0-9]*)(?:\.(?<patch>0|[1-9][0-9]*)(?:\.(?<revision>0|[1-9][0-9]*))?)?(?<prerelease>-(?:[\da-z\-]+|\{height\})(?:\.(?:[\da-z\-]+|\{height\}))*)?(?<buildMetadata>\+(?:[\da-z\-]+|\{height\})(?:\.(?:[\da-z\-]+|\{height\}))*)?$/: Invalid group
SyntaxError: Invalid regular expression: /^v?(?<major>0|[1-9][0-9]*)\.(?<minor>0|[1-9][0-9]*)(?:\.(?<patch>0|[1-9][0-9]*)(?:\.(?<revision>0|[1-9][0-9]*))?)?(?<prerelease>-(?:[\da-z\-]+|\{height\})(?:\.(?:[\da-z\-]+|\{height\}))*)?(?<buildMetadata>\+(?:[\da-z\-]+|\{height\})(?:\.(?:[\da-z\-]+|\{height\}))*)?$/: Invalid group
    at new RegExp (<anonymous>)
    at c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\jsonServerMain.js:9:37705
    at z (c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\jsonServerMain.js:9:38951)
    at c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\jsonServerMain.js:9:33084
    at z (c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\jsonServerMain.js:9:35308)
    at c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\jsonServerMain.js:9:40896
    at z (c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\jsonServerMain.js:9:43497)
    at g (c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\jsonServerMain.js:9:41344)
    at c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\jsonServerMain.js:9:42242
    at z (c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\jsonServerMain.js:9:43497)

I'm not seeing this error when I try in VS Code. And when I copy and paste the regex shown in my schema file, or the one in your error message (which are equivalent, modulo the JSON escaping of backslashes) into https://regex101.com/ in Javascript mode, no errors are reported. Can you file a bug against VS Code (and link it here)? Thanks.

Can do..


update docs for env variables

I got stuck for a while on not being able to set up a global method due to process.envs not being able to be destructured. Hope to allow others not to spend as much time on it as I did!
https://github.com/zeit/next.js/issues/6888

Thanks!


Allow vendors to specify custom templates without changing GUID

Also adds Microsoft custom templates

Tested with Microsoft binaries in AzDO pipelines

@karianna @gdams, this includes only minor edits to BuildSetupTranslationTransform.cmd and Build.OpenJDK_generic.cmd, maybe this can make it in before the release?


HELP IPv6

Kyle Harding good afternoon.
Sorry if I posted in the wrong place.

I'll start by saying I have almost no experience configuring IPv6 and I don't use it at home myself, so I may not be of much assistance. Maybe other users will see this thread and speak up.
Can you help me by stating your exact goal, and what went wrong with what you've tried?

Apparently I managed to make it work I believe but I didn't get validity yet.
But I'm seeing duplicate queries on ipv4 and ipv6

Have you tried disabling IPv4 in Pi-hole and/or unbound.conf to remove the duplicates?

Dont work more ty for   try help rsrsr ;)


More redirects

Added redirects for some more gems, based on searching Google for 'rubyforge.org'

Rake
LibXML

Thanks James!


Add python interface

Add a Python public interface that honors pImpl and integrates with the core CUDA code (use PyCUDA).

Closed #9 via https://github.com/UCI-CARL/MotionEnergy/commit/854f801c9f30b18d70a15ad84c0e6cccf962ff4e.


[1.8.9] Mod crashes when placed on a server

<mezz> BBoldt, Forge 1.8+ has a feature for client-only mods that automatically disables them on servers. Some mods still haven't set themselves up correctly and crash, but if you find one (everything on that list) you should send them a bug report. They need
<mezz>  @Mod(clientSideOnly = true)

Closing as it's fixed on latest builds, let me know if you need it on Curse.


Automatically create default resources in the editor for many objects

This is already done in Path2D and Path3D for the curve property. This applies the same principle to a lot more nodes so that you don't need as many clicks to set up a new node. If you don't need the default-created resource, load another resource in its place (the number of clicks is the same as before).
The resources automatically created are all resources you must create at some point for the node/resource to work correctly. Optional resources (e.g. those that act as overrides) are not created automatically to avoid any undesired behavior or performance impact.
This PR also allows PROPERTY_USAGE_EDITOR_INSTANTIATE_OBJECT to work with resource hints that list multiple classes Like,This. The first class is always selected in this case, as it's assumed to be the most commonly needed one (and is also the first one to display in the dropdown).
This behavior is editor-only, so it doesn't affect nodes/resources created from a script.
For GPUParticles3D, we can benefit further from having custom code to automatically create a billboarded QuadMesh on editor instantiation in a future PR. This code works well when placed at the end of its constructor, but it should be called by something like EditorData::instantiate_object_properties() instead so it's not considered as a default value:
#ifdef TOOLS_ENABLED
#include "scene/resources/material.h"
#include "scene/resources/primitive_meshes.h"
#endif

// ...

#ifdef TOOLS_ENABLED
	if (Engine::get_singleton()->is_editor_hint() && get_draw_pass_mesh(0) == nullptr) {
		Ref<QuadMesh> quad_mesh = memnew(QuadMesh);
		quad_mesh->set_size(Vector2(0.05, 0.05));

		// Create material to display billboarded texture that follows the color and scale ramps
		// defined in ParticleProcessMaterial.
		Ref<StandardMaterial3D> material = memnew(StandardMaterial3D);
		material->set_shading_mode(BaseMaterial3D::SHADING_MODE_UNSHADED);
		material->set_transparency(BaseMaterial3D::TRANSPARENCY_ALPHA);
		material->set_flag(BaseMaterial3D::FLAG_ALBEDO_FROM_VERTEX_COLOR, true);
		material->set_flag(BaseMaterial3D::FLAG_BILLBOARD_KEEP_SCALE, true);
		material->set_billboard_mode(BaseMaterial3D::BILLBOARD_PARTICLES);

		// Assign a smooth circle texture.
		Ref<GradientTexture2D> texture = memnew(GradientTexture2D);
		texture->set_fill(GradientTexture2D::FILL_RADIAL);
		texture->set_fill_from(Vector2(0.5, 0.5));
		texture->set_fill_to(Vector2(0.5, 0.01));
		Ref<Gradient> gradient = memnew(Gradient);
		gradient->set_color(0, Color(1, 1, 1));
		gradient->set_color(1, Color(1, 1, 1, 0));
		texture->set_gradient(gradient);
		material->set_texture(BaseMaterial3D::TEXTURE_ALBEDO, texture);
		quad_mesh->set_material(material);

		set_draw_pass_mesh(0, quad_mesh);
	}
#endif

Should nodes created from scripts (drag -> ctr + drop into scene tree) not get these?
It looks like scene_tree_dock.cpp doesn't call instantiate_object_properties() existing bug?

Confirmed that Path3D and Path2D are created without their default Curve when a script inheriting one of them is used to create a node by dragging and ctr + drop into the scene tree

Confirmed that Path3D and Path2D are created without their default Curve when a script inheriting one of them is used to create a node by dragging and ctr + drop into the scene tree

This is an unrelated bug that should be tracked in its own issue.

I think this may be worth evaluating for 4.4. The AnimatedSprites' sprite_frames being filled in would be particularly handy for starting developers, but it has you question to what extent the resource should be automatically created.
I am to assume it's easy to think about when there's only one option to choose.

I love this change, some of the ones that we had in mind:

CollisionShape2D should default to a shape
MeshInstance3D should auto-pick a Mesh, and this should auto-pick a Material.

CollisionShape2D should default to a shape
MeshInstance3D should auto-pick a Mesh, and this should auto-pick a Material.

Again, this goes back to:

It it has you question to what extent the resource should be automatically created.

Because always defaulting to the most generic shape/mesh is generally not useful, and what qualifies as "generic" is subjective.

For example, we can copy what Blender does. A Blender default scene has a cube, light and camera. So, focusing only on nodes, we would have the following:
CollisionShape2D defaults to a shape like a 2d square, and MeshInstance3D auto-picks a Mesh like a cube, which should auto-pick a Material like a StandardMaterial3D.

I'm slightly concerned by generalizing this practice more (though IIRC I introduced the feature in the first place :P), as users might be unaware of this "magic" and end up having unexpected resources in their scenes.
For example if they prepare a node structure in the editor, but assign relevant resources from scripts, they'd have a dummy resource saved in the scene even though it's never going to be used. Possibly repeated a lot of times in cases like particle nodes, if they have a lot of particle emitters, etc.

Some classes already throw a popup at the user when the resource is missing and ask if the resource should be created and why (because the class does not function without). Maybe this should be added as a one-time popup for those classes so users are aware of the behavior and turn it into an editor setting so it can be changed later, aka automated for those that want and manual for those that dont.

If the scenario is purely creating empty resources for the scenarios where a node needs it to even work, I dont think this will be too cumbersome or create a lot of problems.   Folks will either use it right away, or will replace it with something they actually have.

Remember to make it so blocking modals don't hang cicd though.


try_copy_to should be noexcept?

The wil::com_ptr_t method try_copy_to is supposed to be a non-exceptional way to copy the held COM interface pointer into a raw output pointer (potentially of a different interface type). However, it's not marked noexcept which can cause problems when using high warning levels on static analyzers (e.g. see C26447 from the C++ Core Guidelines checker). It seems like try_copy_to and the transitively called functions in query_policy should be marked noexcept, as they all return error codes and only interact with other non-exceptional APIs (e.g. QueryInterface).

This was brought up on our internal alias some time ago. There seemed to be concerns about code size increases if these are made noexcept. Further investigation is warranted here.


Azure DevOps - Field Picker

Hi Ryan,
On the extension installation page, the first screenshot shows where you can choose what fields to print. I'm in Azure DevOps, and I'm not able to find a similar screen to this. Can you point me in the right direction?
Thank you, and also thank you for creating this extension. It is really helpful.
All the best,
Jenny

It should be under Boards:

Oh ok, Thank you! I was looking under organization settings. :) I appreciate the quick response.

I think I originally had it somewhere in the project or admin settings section so only authorized users or admins could set it up, but several people requested per-user configs, so I believe Boards was the best choice.

That makes sense to me. Thanks again!

The arrow buttons show as boxes in my version of Google Chrome. See screenshot above. Google Chrome version details below:

Thanks for the feedback. The extension is terribly out of date. It needs an overhaul. I guess they stopped using the icon set I was using. For reference, here is what the buttons should look like, so you know what they do:

Ok, no worries. I was able to add the fields, and print the work item. I love Azure more and more every day. :) Especially, when someone brings you an issue, and within an hour it's solved and shared to the masses. Have a great evening!

We would also appreciate seeing the arrow icons again. Thank you for considering an update for this. And thank you in general for the great extension!


Introduce derive macros

I think it would be quite neat to have derive macros for all num-traits and this shouldn't be breaking.
Use cases would mostly to write simple wrappers as such to make trait implementations easier down the line, but there could be other benefits from this as well:
#[derive(Float, FloatCore)
struct Float<F>(F) where F: Float + FloatCore;

#[derive(PrimInt)
struct Integer<I>(I) where F: PrimInt;

trait Foo{}

//not necessary to implement f32, f64 directly
impl<F> Foo for Float<F>{}

//same here for u8, i8, u16, ...
impl<I> Foo for Integer<I>{}

We do have num-derive, but not for generic types, as there are some open questions: https://github.com/rust-num/num-derive/pull/37


Fixed teleporting when no hit is found.

Overview
Updated valid calculation up direction
Updated distance calculation used when rendering line.
Changes

Fixes: #2591

Bump


#1339 Show the available regrid methods when it's reset to default

point2grid supports 4 regridding method: MIN, MAX, MEDIAN and UW_MEAN.
How to test: set the regriding method except above four.
-method NEAREST
./point2grid /d3/personal/hsoh/MET/MET_test_output/ascii2nc/edr_hourly.20130827.nc G212 gridded_ascii.nc -config ../../../../share/met/config/Point2GridConfig_default -field 'name="200"; level="*";' -method NEAREST -v 2

Howard confirmed that it is ok for the code to be removed and makes sense with the change to config_util.cc.  I will merge the pull request.


Feature request: Add Streaming for Agents for Bedrock

Use case
Agents for Bedrock now supports streaming for their final response
Solution/User Experience
supporting streaming will enhance the end user experience.
Alternative solutions
none

Fixed in #130


import = require is silently swallowed with module: esnext

TypeScript Version:  2.4.2 / nightly (2.5.0-dev.20170801)
Code
import isUrl = require('is-url')
console.log(isUrl('http://www.foo.bar'))

tsconfig.json
{
    "compilerOptions": {
        "target": "es5",
        "module": "esnext",
        "strict": true
    }
}

Expected behavior:
Not entirely sure what is expected to happen here:

"module": "commonjs"  emits var isUrl = require("is-url");
"module": "es2015" errors with index.ts(1,1): error TS1202: Import assignment cannot be used when targeting ECMAScript 2015 modules. Consider using 'im port * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.

Actual behavior:
The compilation finishes without an error, but the import is missing in the output:
"use strict";
console.log(isUrl('http://www.foo.bar'));

Thanks for the report! This should just be a matter of issue of

Adding a test for this in tests/cases/compiler
// @module: esnext
// @target: es5
import hi = require('hello');
hi();

Rewording the error message (just drop the 2015) part

Updating diagnostics and references to that diagnostic (jake generate-diagnostics)

Issuing the error on ES2015 or ESNext module targets.

We'd be willing to take a PR if you're interested!

I wouldn't mind tackling this, if needed, but I would need some guidance, since this would be my first PR.

Check out our Instructions for Contributing Code to TypeScript on our CONTRIBUTING.md. I think the CLA stuff is outdated - a bot will prompt you when you send your PR.
You can also look at some of my recent PRs for inspiration. The workflow I use is

Add failing test and confirm it fails in some observable way.
Apply new logic.
Run tests to confirm that baselines have appropriately changed, or that the test now passes.

I started looking at this. This probably also needs a change for export assignment as well. I tried
import foo = require("foo");
foo();
export = foo;

With (module = esnext, target = es5) I get this error
app.ts(1,22): error TS2307: Cannot find module 'foo'.
and the following code is emitted:
foo();

With (module = es2015, target = es5), the following errors are emitted:
app.ts(1,1): error TS1202: Import assignment cannot be used when targeting ECMAScript 2015 modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.
app.ts(1,22): error TS2307: Cannot find module 'foo'.
app.ts(3,1): error TS1203: Export assignment cannot be used when targeting ECMAScript 2015 modules. Consider using 'export default' or another module format instead.

and the following code is emitted:
foo();

I'll continue working on this and hopefully have a PR sometime this weekend unless you've make progress @captainSpades

It looks like ES modules are eventually going to be supported natively in node.js.  The intended purpose of import assignment is interoperability with node.js, so wouldn't it make sense to support that for module=esnext ?
The way things are headed now, there will be severe limitations on interoperability between ES modules and commonjs modules in node. If I write a library targeting node, for the time being I would likely need to distribute two sets of compiled files - one for commonjs consumers, another one to be used in new node applicatinons which are targeting ES modules. If my library has commonjs dependency, it's OK, but that dependency needs to be used with var x = require("x") in generated commonjs code, and with default import import x from "x" in generated ES module code (at least that's what people who seem to know where node.js is going are saying).
The problem is, I can't find a combination of options that will allow me to do that from single set of source files and type definitions. Transpiling import x = require("x") to import x from "x" when module=esnext would  solve it nicely I think.


[Bug] [R] Creating an RStudio Project file fails if dir is nested

There should be a way around this.
Needs to be investigated.
Situation: I usually create ./py and ./r directories when working in multi-language projects
For example...
- project root
  - py
  - r

The shell script failed because the path arg is nested. There's an interactive option to bypass this so there should be a non-interactive option too
>    usethis::create_project(path = '.', rstudio=TRUE, open=FALSE)
! New project "r" is nested inside an existing project ./, which is rarely a good idea.
ℹ If this is unexpected, the here package has a function, `here::dr_here()` that reveals why ./ is regarded as a project.
Error in `ui_yep()` at usethis/R/utils-ui.R:258:3:
✖ User input required, but session is not interactive.
ℹ Query: "Do you want to create anyway?"
Backtrace:
    ▆
 1. └─usethis::create_project(path = ".", rstudio = TRUE, open = FALSE)
 2.   └─usethis:::challenge_nested_project(path_dir(path), name) at usethis/R/create.R:82:3
 3.     └─usethis:::ui_nah("Do you want to create anyway?") at usethis/R/create.R:356:3
 4.       └─usethis:::ui_yep(...) at usethis/R/utils-ui.R:258:3
 5.         └─usethis:::ui_abort(...) at usethis/R/utils-ui.R:232:5
 6.           └─cli::cli_abort(...) at usethis/R/utils-ui.R:217:3
 7.             └─rlang::abort(...) at cli/R/rlang.R:45:3

One option could be to wrap usethis::create_project() with try(..., silent=TRUE) so if it doesn't work the shell script won't error out and the RStudio project file will need to be created manually.
Alternatively, I think there is an RStudio API that can be called directly

Fixed w/ latest PR


Can you document a more obvious thing for what to do with unicode text?

I'm not sure what is expected of me.  I basically have a list of names and I just want fuzzy text search on them.  I've implemented this like:
 const search = new JsSearch.Search(props.searchIndexKey);
            search.indexStrategy = new JsSearch.AllSubstringsIndexStrategy();

            for (let i = 0; i <= props.columns.length - 1; i++) {
                search.addIndex(props.columns[i].key);
            }

            if (this.props.searchMapping) {
                this.props.searchMapping.map((index) => {
                    search.addIndex(index);
                });
            }

            search.addDocuments(props.rows);

and then rows have names like:

阳 Eva Hamilton
鹏 成 Maynard
金凤 Abril Chapa

If I search for "Abril" it works, but if I search for "阳" it does not.   I read in the README it says I should implement a tokenizer but not sure what I should do here.  I just want it split on each character so that I can fuzzy match.

haystack.tokenizer = {
  tokenize (text) {
    return Array.from(text);
  }
};

I find that the tokenizer above works for both Chinese and English. I'm not sure for the other languages.
You might need to polyfill Array.from.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from#Polyfill
Why not use Array.split('')? --> https://stackoverflow.com/questions/4547609/how-do-you-get-a-string-to-a-character-array-in-javascript/34717402#34717402


login: Phabricator support

Summary
Support login though Phabricator.
Possible fixes
MR will follow.

@glunardi If you'd be willing to adapt your previous PR to the new mobile v2 codebase and help us with testing, I think we could work together to get this into the core code so that you don't have to maintain this change yourself ongoing. How does that sound?

@glunardi If you'd be willing to adapt your previous PR to the new mobile v2 codebase and help us with testing, I think we could work together to get this into the core code so that you don't have to maintain this change yourself ongoing. How does that sound?

Thanks for the reply @mkraft!  I will talk to @okias right away and see how we can get this done quickly.

@mkraft Hello! I adapted the patch and currently using the apk built from CI.

Hello @okias @glunardi
First of all, I'd like to thank you for the time you've invested in adding support for Phabricator in the mobile app and adapting your PR for mobile v2.
After some further internal discussions and given that Phabricator is not maintained and that we don't have more requests for supporting it, unfortunately at this point, we will not move forward with merging the relevant PR and maintaining the functionality on our side.
Sorry for the inconvenience. In case something changes in the future, we will keep you in the loop.


[GPII-3743]: Improve PDs handling in couchdb module

This implements the following:

Adds variable to enable / disable PVCs recovery code and disables it for dev environment.
Adds code to remove disks with gcloud after PVCs deletion to not leave stale resources behind.

I believe this also solves GPII-3742.

LGTM

Any idea why the underlying disks are not getting deleted?

@stepanstipl Unfortunately no – destroying PVCs supposed to release the disks, but in some small number of cases it is not happening. I was unable to find anything related to that event in cluster logs. And that scenario is also very hard to reproduce.

Have a scenario when trying to delete disk that is still mounted, because it was not released by Kube

Deleting corresponding PVC releases the disk.

I'm slightly worried that we're introducing "workaround" to an issue which's cause we don't understand very well

Yeah, it is a good reason to be slightly worried. I have nothing better to offer for now.

I disagree with this - two separate issues. This does not fix recovery process in any way

This PR disables recovery process for dev environments. I thought we agreed that for staging and prod we will follow the process of migrating disks to proper zones manually. But I am fine treating GPII-3742 separately.

@stepanstipl Ok, I addressed some of your concerns: new code does not use gcloud beta anymore, it also repeats disks deletion in a loop until success is achieved.

So that is exactly my point - if the disk is never released and never detached from the VM, this fix won't work

But overall I would still like to see some evidence that this solves the issue.

I run for i in {1..25}; do rake redeploy_module['k8s/gpii/couchdb']; done in my dev cluster and it worked every single time, disks are getting destroyed on 2-3rd attempt in average.
Also, main change here is not PD hard-removal code (it is mostly needed to not leave stale disks behind), but the change that disables PD recovery code for dev environments.

^ I've seen one more fail on recovery code, trying to recover disk that did not exist since then

I've seen one more fail on recovery run, trying to recover disk that did not exist since then

It looks like you set both execute_destroy_pvcs and execute_recover_pvcs into true? I don't think we ever want to do that, and of course there may be situation when recovery code is trying to access disks that are in the process of deletion by Kubernetes.

So I think this is actually dangerous because we're deleting a disk that is managed by Kubernetes, before it has a chance to delete it on its own.

I did not find any side effects of forcefully deleting disks that got their corresponding PVCs and PVs removed and already scheduled for deletion.

Maybe we can get just that change in, without introducing the other bits for now?

I am okay with this, the downside of course would be leaving stale disks behind.

Updated PR description.

lgtm 👍

LGTM!


Resource leak (or at least a CA2000 warning) in RegistryKey example

Type of issue
Other (describe below)
Description
The example code at this page results in a CA2000 code analysis warning when enabled, about the call to OpenBaseKey not being properly disposed. This possibly represents a resource leak, although I'm having trouble tracking that down definitively at source.dot.net due to the partial classes.
Instead of:
using (var ndpKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry32).OpenSubKey(subkey))
{
...
}

This resolves the warning:
using (var baseKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry32))
using (var ndpKey = baseKey.OpenSubKey(subkey))
{
...
}

Page URL
https://learn.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed#query-the-registry-using-code
Content source URL
https://github.com/dotnet/docs/blob/main/docs/framework/migration-guide/how-to-determine-which-versions-are-installed.md
Document Version Independent Id
a3790e8a-0654-851b-c991-ab7382025406
Article author
@gewarren
Metadata

ID: 2115da38-e95e-46fc-1e2d-da88ef92c6cf
Service: dotnet-framework
Sub-service: app-compat

Related Issues

Hi @gewarren, I will work on this and raise PR soon. Could you please assign me the bug?


Works perfect on simulators (Android and iOS), but on device (iPhone5) throws exception.

Hi! First I'd like to thank you for this sample, it's very useful! This sample works perfect on simulators (Android and iOS), but on device (iPhone5) throws exception. The exception is "Microsoft.Oxfort.ComputerVision.ClientException". I have tried 4 different keys + the key in the sample and still getting the same exception only on device! I will appreciate any help. Thanks in advance!

The exception is thrown when I try to get the client (after choosing or taking an image). I set Linker Behavior to "Don't Link" and the result is the same.

The key probably isn't the issue. Something funky is happening with the references. Try cleaning + rebuilding the project before deploying to the simulator. It's possible it's attempting to use cached references that are built for the iOS Simulator, rather than the device.

I have tried this many times with no result. Any other ideas?

I'm not sure :/ I'm managing to deploy it without issue to all my devices here. Are you running the latest Stable channel bits?


How to reduce the number of years being shown in the year dropdown?

Expected behavior
Actual behavior
Steps to reproduce
In the year drop down long list of future years are being shown, Can we reduce the number of years being shown??

One way you could limit the years to show in the dropdown is to set the minDate and maxDate. See https://reactdatepicker.com/#example-35


Bumping to 1.2.5

Bumping to version 1.2.5

added; multiple redemption support GetRedemptions for Invoice https://github.com/recurly/recurly-client-net/pull/105
added; description readers to Coupon ReadXml https://github.com/recurly/recurly-client-net/pull/111
added; PreviewChange method for Subscription https://github.com/recurly/recurly-client-net/pull/116
added; Update() and Restore() paths to Coupon https://github.com/recurly/recurly-client-net/pull/109
added; Bulk and Unique Coupons support https://github.com/recurly/recurly-client-net/pull/108
added; Coupon default to SingleCode https://github.com/recurly/recurly-client-net/pull/120

+1


Removed No description label

Description
Fixes #1054
When no description is found the subtitle is empty, rather than writing "no description found" to it.
Screenshots showing what changed

Codecov Report

Merging #1281 into master will decrease coverage by <.01%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##           master   #1281      +/-   ##
=========================================
- Coverage    3.77%   3.77%   -0.01%
=========================================
  Files         125     125
  Lines        5881    5883       +2
  Branches      579     579
=========================================
  Hits          222     222
- Misses       5644    5646       +2
  Partials       15      15

Impacted Files
Coverage Δ

...java/fr/free/nrw/commons/nearby/PlaceRenderer.java
0% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

@misaochan @maskaravivek  plz review the pr

Looks good to me, happy to merge after it has been tested. :)


More normalization needed

The below
pub trait ParentField {
    type Output;
    fn add(&self, other: &Self) -> Self::Output;
}

pub trait Field: ParentField<Output = Self> {}

pub fn foo<F: Field>(x: F, y: F, z: F) -> F {
    x.add(&y).add(&z)
}

fails with
   = note: incompatible types: `<F as ParentField>::Output` - `F`

We need more normalization, @nilehmann  suggests we see

https://doc.rust-lang.org/nightly/nightly-rustc/src/rustc_trait_selection/traits/project.rs.html#677
https://doc.rust-lang.org/nightly/nightly-rustc/src/rustc_trait_selection/traits/project.rs.html#700

fixed by #736


Added Three New Sites

Added two new sites for the portion When you get stuck and One new site for coding practice for beginners

Hey I have added three more useful sites as resources. Can you please verify and merge?


remove "OneTab" from context menu

I don't see anything in the options, I was hoping maybe you had some wisdom to share. Might you know how I can disable the "OneTab" from the (R) click context menu?

i added this code to my simpleMenuWizard css file
#extension_one-tab_com_2,

Extension support besides uBlock Origin is not planned as there are too many out there.
You can still ask here if you can't inspect it by yourself.
Maybe a separate file just for removing stuff coming from extensions independent from context may be a good idea. I'll see if more people consider that useful. I have no idea how many of the top extensions add stuff to the context menu.
Now that you say it, I think I'll outsource the uBlock thing to an option.

OOOoo... alright that's a smart idea. If you make a master thread or ticket with requests i'll help find and hunt down other people's IDs. I would imagine like you said, there are probably tens of thousands of context menu. The one dude's screen shot on /r/FirefoxCSS/top/ had like 50 context menu - it was crazy.
GLHF


JetBrains: AgentTextDocument.languageId has incorrect value

The logic here is buggy https://sourcegraph.com/github.com/sourcegraph/cody/-/blob/agent/src/AgentTextDocument.ts?L17
We should replace the logic with a more robust implementation along with adding tests.

Relevant: LSP defines valid languageId values here. We should stick to these values https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocumentItem
Also relevant: already implement this logic in Code Search here<EMAIL_ADDRESS>Open question: should the client provide the language ID? All editors have custom logic to determine the language. Maybe it's best if we don't rely on language detection in the agent itself.


Update documentation location in readme

Description
Updates the SSX readme to point to the latest version of the documentation.
Type

[x] Bug fix (non-breaking change which fixes an issue)

Diligence Checklist

[x] My changes generate no new warnings
[x] I have made corresponding changes to the documentation (if required)

Codecov Report
Patch and project coverage have no change.

Comparison is base (1270377) 79.70% compared to head (336d9c6) 79.70%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #147   +/-   ##
=======================================
  Coverage   79.70%   79.70%
=======================================
  Files          34       34
  Lines        4365     4365
  Branches      252      252
=======================================
  Hits         3479     3479
  Misses        886      886

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


[FLINK-27048][test] Add ArchUnit rule that connectors should only depend on public API

What is the purpose of the change
Connectors should not depend on non-public API. To ensure that connectors satisfy this criteria we introduce a new ArchUnit test/rule for them.
Brief change log

Added new ArchUnit rule checking connector dependencies
Updated ArchUnit violations

Verifying this change
This change added tests and can be verified as follows:

Run the test and check that violations are detected (see archunit-violations/d5f08b81-d148-4c1d-8666-d111e4b28600)
Manually introduce a violation by adding non-public API code to a connector and check if test detects it

Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
The serializers: (yes / no / don't know)
The runtime per-record code paths (performance sensitive): (yes / no / don't know)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know)
The S3 file system connector: (yes / no / don't know)

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@flinkbot run azure

As discussed offline, we only consider classes to be part of the public API if they have the annotation of {Public, PublicEvolving, Experimental} independent of their class modifier

@flinkbot run azure

@flinkbot run azure

@flinkbot run azure


fmt.sh: Render all d2 diagrams automatically

Closes #1

Maybe we should have a separate gen.sh? This doesn't really seem like something that belongs in fmt. go mod tidy and package.json too are more gen. likewise with mdtocsubst

where does it gen to?

The default, just the same file name but as .svg

Oh noo, I should actually make this instead just d2 fmt for now.


We store appservice transactions indefinitely, until inevitable failure

t2bot.io's discord bridge exploded violently today when trying to persist a processed transaction due to an internal limit on Set and Map: 16777216 entries before failure.
discord=# select count(*) from as_txns ;
  count
----------
 16777216
(1 row)

As shown above, this limit can in fact be reached. We should clean up transactions that are unlikely to show up.

didn't take long for it to happen again.
discord=> delete from as_txns where txn_id::int < 221201420;
DELETE 16776875

discord=# delete from as_txns where txn_id::int < 360322332;
DELETE 16777123

and again :(


fix fetcher excessive log on unknown hash

Motivation
Closes #2630
Changes

add more log information
restore MaxRetriesForRequest to 20
only asks for input vector when peer didn't respond in the layer blocks query

Test Plan
unit test
DevOps Notes

[x] This PR does not require configuration changes (e.g., environment variables, GitHub secrets, VM resources)
[x] This PR does not affect public APIs
[x] This PR does not rely on a new version of external services (PoET, elasticsearch, etc.)
[x] This PR does not make changes to log messages (which monitoring infrastructure may rely on)

bors merge

bors merge

bors merge

bors merge

bors merge

bors merge


It's not multi-thread due to Python GIL

I'm building a facial attendance application with Python. I use PyQt5 to build UI (in the below code, both PyQt5 and PyQt6 share the same syntax), OpenCV (cv2) to take webcam frames and face_recognition library to encode and recognize faces.
This is a sample code cover my problem:

The WebcamThread takes webcam frames using cv2.VideoCapture() and emits some signals to the main thread:

ndarray_frame_signal: Returns numpy.ndarray frame to process by face_recognition library,
qimage_frame_signal: Returns QtGui.QImage frame to display on PyQt GUI.

The EncodeFaceThread get frame from its queue and do some tasks using face_recognition library.

from queue import Queue
from sys import argv
from cv2 import COLOR_BGR2RGB, VideoCapture, cvtColor
from face_recognition import compare_faces, face_encodings, face_locations
from numpy import ndarray
from time import sleep
from PyQt5.QtCore import QThread, pyqtSignal, pyqtSlot
from PyQt5.QtGui import QImage, QPixmap
from PyQt5.QtWidgets import QApplication, QLabel, QMainWindow

class WebcamThread(QThread):
    ndarray_frame_signal = pyqtSignal(ndarray)
    qimage_frame_signal = pyqtSignal(QImage)

    def __init__(self):
        super().__init__()
        self.cap = VideoCapture(0)

    def run(self):
        while self.isRunning():
            # Get current webcam frame and convert it to RGB
            frame = cvtColor(self.cap.read()[1], COLOR_BGR2RGB)
            self.ndarray_frame_signal.emit(frame)
            # Convert `ndarray` frame to `QImage` frame
            # and emit it to `qimage_frame_signal`
            h, w, _ = frame.shape
            qimage_frame = QImage(frame.data, w, h, QImage.Format.Format_RGB888)
            self.qimage_frame_signal.emit(qimage_frame)

class EncodeFaceThread(QThread):
    def __init__(self):
        super().__init__()
        self.known_encodings = []
        self.queue = Queue()

    def run(self):
        while self.isRunning():
            frame = self.queue.get()
            f_locations = face_locations(frame)
            # Only accept one face in a frame
            if len(f_locations) != 1:
                continue
            f_encoding = face_encodings(frame, f_locations)[0]
            # If this face encoding doesn't match any known encoding, add it
            if not any(compare_faces(self.known_encodings, f_encoding)):
                self.known_encodings.append(f_encoding)

class MainWindow(QMainWindow):
    def __init__(self):
        super().__init__()
        # Setup UI (don't care about it)
        self.setMinimumSize(660, 500)
        self.image_display = QLabel(self)
        self.image_display.setGeometry(10, 10, 640, 480)
        # Initialize threads
        self.webcam_thread = WebcamThread()
        self.webcam_thread.ndarray_frame_signal.connect(self.push_in_queue)
        self.webcam_thread.qimage_frame_signal.connect(self.display)
        self.webcam_thread.start()
        self.encode_face_thread = EncodeFaceThread()
        self.encode_face_thread.start()

    @pyqtSlot(ndarray)
    def push_in_queue(self, frame):
        self.encode_face_thread.queue.put(frame)

    @pyqtSlot(QImage)
    def display(self, frame):
        qpixmap_frame = QPixmap.fromImage(frame)
        self.image_display.setPixmap(qpixmap_frame)

app = QApplication(argv)
window = MainWindow()
window.show()
app.exec()

However, the fps of webcam frame on GUI is lag due to the process of face_recognition library in EncodeFaceThread(). Indeed, when I rewrite EncodeFaceThread like this, the webcam display is not laggy anymore.
class EncodeFaceThread(QThread):
    def __init__(self):
        super().__init__()

    def run(self):
        while self.isRunning():
            # Do some long-running task
            sleep(10)

So, how do I properly implement this EncodeFaceThread?
(copied from my post at StackOverflow)

an implementation that I have found to work pretty consistently is by creating a loop with a small sleep value then checking if the queue length is equal to zero and if so grab the next frame. While this is not multithreaded it solves the latency problem for me.


Checking permissions sequentially re-enabled

Hi guys (once again :smile: )!
The second version of Dexter reintroduced the bug that prevents users from calling checkPermission or checkPermissions directly from PermissionListener's callbacks. This time the reason is a bit different though. Currently the listener is being overwritten after the onPermissionsChecked callback.
This PR fixes the bug.
Best,
Bartosz

Oh my! Thanks for reporting and the PR
You have my :+1: (I'm creating a test to cover this scenario so hopefully we don't introduce the bug again).

:+1:

Cool! I like the way you guys do business :clap: :smile:
Cheers!


[Bug] sorry this is wrong.

Is this a new bug?

[X] I believe this is a new bug
[X] I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior
this is v1.0.1 pinecone node lib
PineconeClient is deprecated after v1.0.0

pineconeIndex in PineconeLibArgs must be changed.
Expected Behavior
I want to create PineconeStore object without any errors.
Steps To Reproduce

langchain": "^0.0.150
@pinecone-database/pinecone": "^1.0.1
create PineconeStore class object.

Relevant log output
No response
Environment
- **OS**: windows
- **Language version**: node.js
- **Pinecone client version**: 1.0.1

Additional Context
No response

I am sorry. I write wrong place. how can I remove this issue?

I'll close it. Let us know if it's something we can help with something in this module.


Specifying that Rudr implements alpha 1 of the spec

Minor change in messaging to make it clear that Rudr currently implements release 1.0.0-alpha1 of the spec.

LGTM


Feature/refactor move worker

[x] moves the worker directory into coopr-provisioner/lib along with master, so that actual code changes can begin.  Current dir structure:

  bin/
  conf/
  spec/
  lib/
    provisioner/
      [main/master code]
      worker/
        [worker code]
        plugins/

[x] worker & master spec dirs combined and rspec updated

you may want to review commit-wise, and ignore the 2nd commit as it's the massive move.

:+1: LGTM


Feature request: Long Term Statistics on Energy

Would like to add my units as individual devices in HA. The help article refers:
https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics
Can this change be made to the energy measuring sensor?

ESPHome already supports state_class and device_class, you can just add them to any sensor in your config.
current_power_consumption:
  name: Panasonic AC Power Consumption
  unit_of_measurement: W
  accuracy_decimals: 0
  device_class: "power"
  state_class: "measurement"

However, there is no total power consumption sensor so I think you can't add them to the energy statistics in Home Assistant.

According to the docs it should work without the power consumption sensor but I couldn't get it to. Instead I created a total daily one with esphome which works great.
here's my config which adds this sensor to HA which can be added to the energy ecosystem for those who might want to use it
esphome:
  name: bedroom_ac
  platform: ESP32
  board: esp32thing

wifi:
  networks:
    - ssid: "xxxx"
      password: "xxxx"
  use_address: bedroom_ac.iot
  power_save_mode: none

logger:
  level: DEBUG

api:
  password: "xxxx"

ota:
  password: "xxxx"

uart:
  tx_pin: GPIO17
  rx_pin: GPIO16
  baud_rate: 9600
  parity: EVEN

external_components:
  source: github://DomiStyle/esphome-panasonic-ac
  components: [panasonic_ac]

climate:
  - platform: panasonic_ac
    type: cnt
    name: Bedroom AC
    vertical_swing_select:
      name: Bedroom AC Vertical Swing Mode
    outside_temperature:
      name: Bedroom AC Outside Temperature
    current_power_consumption:
      id: bedroom_ac_power_consumption
      name: Bedroom AC Power Consumption
      unit_of_measurement: W
      accuracy_decimals: 0
      device_class: power
      state_class: measurement
    eco_switch:
      name: Bedroom AC Eco Switch

sensor:
  - platform: total_daily_energy
    name: "Bedroom AC Total Daily Energy"
    power_id: bedroom_ac_power_consumption
    filters:
        - multiply: 0.001
    unit_of_measurement: kWh
    device_class: energy

time:
  - platform: sntp
    id: my_time

This can also be done using the integration sensor

platform: integration
name: "Total Power Consumption"
min_save_interval: 5min
sensor: instantPower
time_unit: h
state_class: total_increasing
device_class: energy
accuracy_decimals: 3
unit_of_measurement: 'kWh'
filters:
- multiply: 0.001

An update, there was some changes that change the config above
First give the current_power_consumption block a new field id call it whatever you want
climate:
    current_power_consumption:
      name: Panasonic AC Power Consumption
      id: panasonic_ac_4th_panasonic_ac_power_consumption

sensor:
  - platform: integration
    name: "Total Daily Energy"
    sensor: panasonic_ac_4th_panasonic_ac_power_consumption
    time_unit: h
    state_class: total_increasing
    device_class: energy
    accuracy_decimals: 3
    unit_of_measurement: kWh
    filters:
      - multiply: 0.001
preferences:
  flash_write_interval: 180s


Update meta.yaml

Checklist

[x] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

@conda-forge-admin, please rerender

@abigailalexander Can this be merged? I don't have the powers :-)

Apologies, I didn't know you wouldn't have merge powers. I'll do it now


Regarding Deployment on Flask

Hi, i have an issue regarding deployment i am not able to deploy ktrain multi text classification model. I tried to load model and .preproc file but it does not work.

Any specific error messages?

For those of you who are trying to serve a ktrain model with Flask:
It looks like this is an issue with Flask/TensorFlow, not ktrain.  The latest version of Flask causes a Session graph is empty error when trying to serve a TensorFlow model on TensorFlow 1.14. See this Keras issue for more information.
It apparently works in TensorFlow 2.0.  However, when using a pre-v0.8 version of ktrain on TensorFlow 2, ktrain still runs in TensorFlow 1.x mode in order to support both TF 1.14 and 2.0 right now.  This is why you see this error on both TF 1.14 and TF 2.0 when using ktrain.
This will no longer be a problem in ktrain v0.8 (which has not yet been released) because this version of ktrain will only support TensorFlow 2 (not TensorFlow 1.14).
For right now, the workaround is to downgrade Flask with: pip3 install flask==0.12.2.  After doing this, you should be able to use Flask to serve a TensorFlow 1.14 model or predictor:  For instance, I've verified the following toy example works:
# file my_server.py
import os
os.environ['FLASK_ENV'] = 'development'
import flask
import ktrain
app = flask.Flask(__name__)
predictor = None
def load_predictor():
    global predictor
    predictor = ktrain.load_predictor('/tmp/mypred')
    print(predictor.predict('great movie'))

@app.route('/predict', methods=['GET'])
def predict():
    data = {"success": False}
    if flask.request.method in ["GET"]:
        text = flask.request.args.get('text')
        if text is None: return flask.jsonify(data)
        app.logger.debug(text)
        prediction = predictor.predict(text)
        data['prediction'] = prediction
        data["success"] = True
    return flask.jsonify(data)

if __name__ == "__main__":
    load_predictor()
    port = 8888
    app.run(host='<IP_ADDRESS>', port=port)
    app.run()

After starting the server with python3 my_server.py, you can issue a prediction request to the server by opening your browser and typing: http://<IP_ADDRESS>:8888/predict?text=great%20movie
If the model was trained on IMDB, this should display the following in the browser:
prediction: "pos"
success: true

It's a good suggestion but it does not work for me, I get:
ValueError: Tensor Tensor("dense/Softmax:0", shape=(?, 2), dtype=float32) is not an element of this graph.

Has anyone tried using TensorFlow Serving with ktrain?

I recall seeing that error, as well, but I think it went away after making sure the version of TensorFlow used to train the model (TensorFlow 2.0) was the same as the version used to serve the model (TensorFlow 2.0).  If you're using TF 1.14/1.15, maybe also try upgrading to TF 2.0.  Also, make sure there are no calls to standalone Keras in any of your code.  The example above works with TF 2.0 and ktrain v 0.7.2.

I am using: tensorflow==2.0.0 and still get the error.

See also this and this for other possible solutions.

I did look at them, but they reference TF 1. and most of the suggestions do not work with TF 2.0. :(

The extra line with _make_predict_function seem to solve the error. Thanks!
def load_predictor():
    global predictor
    predictor = ktrain.load_predictor('/tmp/mypred')
    predictor.model._make_predict_function()

It turns out that DEBUG = True in the code above was causing the error. Thanks for your help!!

Great.  I've edited the example above to include this and also removed debugging mode.

Hi, guys thanks for your response i have deployed ktrain model by converting it to learner.model to json and h5 you can check this Jupyter Notebook and please tell me if i can improve it . Thanks

Hi Guys thanks for the response i already have deployed ktrain model by converting it into h5 and json type you can check this Notebook and if you have any suggestion for improvement please tell us

Would anyone know why Flask==1.1.1 throws an:
ValueError: Tensor Tensor("dense/Softmax:0", shape=(?, 2), dtype=float32) is not an element of this graph. but it works with Flask==0.12.2? Thx

Thank you.
How do I get to load and use a trained model (in .h5 and preproc files) for racial recognition with Ktrain?

I just discovered ktrain and and it is so unique!
Has anyone tried to deploy image classification model  with ktrain on flask?
If yes, please help with the code.

I just discovered ktrain and and it is so unique!
Has anyone tried to deploy image classification model  with ktrain on flask?
If yes, please help with the code.


Update manage-user-state.md

Corrected two URLs.
General tidying up of markup.
(Still more to do, like anchor tags in headings.)

@baardhermansen : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off
Once merged, this should be live with the next daily publishing process. Right now that should be tomorrow (Thursday, 13 February) around 11:00 Pacific time. No further action needed from you.
p.s. Please don't remove the anchor tags in headings. I know that markdownlint flags it, but we're heavily reliant upon it throughout this content set!

@aczechowski Don't remove anchor in headings, got it, Wilco, ok!


Could not load subscriptions

Storage Explorer Version: 1.9.0
Error.txt
Error.txt
Build Number: 20190701.8
Platform/OS: Windows 10
Architecture: ia32
Regression From:  First use of Storage Explorer
Bug Description
Log in ok, receive message "Subscriptions could not be loaded. Please try reentering credentials"
Steps to Reproduce

Start Storage Explorer
Log into Azure
Organisation login requires MFA
Receive verification code via SMS, enter and continue
Storage Explorer loads and receive a dialog box to copy and report the error, attached

Error.txt

Retrieving your subscription timed out based on the error message.  Are you behind a proxy?  If you are, you need to configure your proxy settings first in Storage Explorer.

Closing due to lack of response.


Create unit test for pkg/verify/verify.go

Is this a BUG REPORT or FEATURE REQUEST?
FEATURE REQUEST

What happened:

Create unit test for https://github.com/openebs/litmus/blob/master/pkg/verify/verify.go

Anything else we need to know?:

Refer the tests at https://github.com/openebs/maya/tree/master/pkg/task/v1alpha1

taking this one

Assign this issue to me please !

The go-based executor has been deprecated for now, with plans for the same being developed independently in a separate repo. Closing this issue now. Will be created on the new repo once available.


the meaning of "action"

in the following code:
env = suite.load('humanoid', 'run')
spec = env.action_spec()
env.reset()
for _ in range(1000):
action = np.random.uniform(spec.minimum, spec.maximum, spec.shape)
env.step(action)
pixels = env.physics.render()
"action" is  a ndarray of float64, i want to know, what's the meaning of the numbers in action, it is the joints' position, orientation, velocity, rotation or something else? If i know the ndarray of action, how can i get the state in next time step?
thank in advance

Each element in the action array corresponds to an actuator in MuJoCo. These are ordered the same as in the corresponding model XML. The action_spec of the environment is created here: https://github.com/deepmind/dm_control/blob/c24ec9f5f3cb3c25c6571c89c9f60bf3350f5711/dm_control/mujoco/engine.py#L756


[3.2.2] Debian package is broken (wrong path).

My Setup

Operating System: Debian 10 (Buster)
App Version: 3.2.2
Installation type: .deb from releases page

[x] I have tested with the latest version
[x] I can simulate the issue easily

Description
Debian package is broken with 3.2.2.
It seems that default Rocket.Chat.Electron's directory has changed (from /opt/rocketchat-desktop/ to /opt/Rocket.Chat/) but this change has not been applied to the Debian package (neither symlink or postinst).
Examples :
$ ll /usr/bin/rocketchat-desktop
lrwxrwxrwx 1 root root 42 May 17 18:40 /usr/bin/rocketchat-desktop -> /opt/rocketchat-desktop/rocketchat-desktop
$ ll /opt/rocketchat-desktop/rocketchat-desktop
ls: cannot access '/opt/rocketchat-desktop/rocketchat-desktop': No such file or directory

$ /opt/Rocket.Chat/rocketchat-desktop
[20981:0517/184150.034255:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /opt/Rocket.Chat/chrome-sandbox is owned by root and has mode 4755.
Trace/breakpoint trap

Current Behavior
RC desktop cannot be started without manual operations.
Expected Behavior
RC desktop should work out of box.

@tassoevan : this bug is still present in 3.2.3.

I think I found a workaround : removing executableName from the electron-builder.json works but it will produce a new installation path: /opt/Rocket.Chat/rocketchat which should work.
--- ../old/Rocket.Chat.Electron-3.1.1.orig/electron-builder.json	2020-12-25 16:12:20.000000000 +0100
+++ electron-builder.json	2021-07-05 13:38:02.273129103 +0200
@@ -114,7 +114,6 @@
       "rpm",
       "snap"
     ],
-    "executableName": "rocketchat-desktop",
     "category": "GNOME;GTK;Network;InstantMessaging",
     "desktop": {
       "StartupWMClass": "Rocket.Chat",

I'm unable to find a better fix.

Fixed in 3.4.0.


New maintainer needed!

Sorry guys but it turned out that we are not going to use Zabbix after all so I can't work on maintaining this module.
If anyone want to do this then please write a comment here so that the owner of the repo can approve your proposal.

Hi we do use the Zabbix extensively. We first thought about working on it on our forked repo but then thought it would be better if we keep it open source. Me and @Splyth have written unit test for the almost whole project. I would like to be one of the maintainers of this project.

I'm willing to sign on too

@gdubicki thanks for all you did for zabbixapi and good luck with next open source project 🙏
@snehitgajjar @Splyth I`ve checked PR with tests and it looks cool! So a gave you write permissions to the project. Also, I need your emails to configure rubygems

@aladmit its<EMAIL_ADDRESS>Thanks a lot for all the work you have done.

@aladmit mine is<EMAIL_ADDRESS>

@snehitgajjar @Splyth Are you sure your accounts on rubygems use this emails? Rubygems says Owner could not be found.

@aladmit can you try once more?

Same. I didn't have an account there yet. Should be fixed now

@snehitgajjar @Splyth done 👍

Thanks a lot!


Cannot read property 'use' of null

I get this message every time I try to lint a markdown file in atom:
TypeError: Cannot read property 'use' of null at lint (/Users/wolfy/node_modules/remark-lint/index.js:11:7)
at Function.use (/Users/wolfy/.atom/packages/linter-markdown/node_modules/unified/index.js:318:25)
at /Users/wolfy/.atom/packages/linter-markdown/node_modules/unified-engine/lib/file-pipeline/configure.js:117:19
at /Users/wolfy/.atom/packages/linter-markdown/node_modules/unified-engine/lib/configuration.js:444:7
at Array.forEach (native) at /Users/wolfy/.atom/packages/linter-markdown/node_modules/unified-engine/lib/configuration.js:443:13
at /Users/wolfy/.atom/packages/linter-markdown/node_modules/unified-engine/lib/configuration.js:327:5
at /Users/wolfy/.atom/packages/linter-markdown/node_modules/vfile-find-up/index.js:135:9 at FSReqWrap.oncomplete (fs.js:123:15)

Suggestions?

Hi! If you upgrade everything to their latest versions now, everything should work again!
Sorry about that!


Create a Profile Card

Here is a reference to the component

assign me for this component.

can you assign me

Hey @itsmanojthapa bro can you assign this to me

@avezqureshi14  i am not a maintainer of this project.

This is not in the Figma File. Please read the docs to before raising an issue. @itsmanojthapa


⚠ Bofrost.at has degraded performance

In 925e319, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 4106 ms

Resolved: Bofrost.at performance has improved in d8b3101.


Broken link: "context"

Broken link: "context".
URL: https://docs.microsoft.com/en-us/javascript/api/@microsoft/teams-js/microsoftteams.context?view=msteams-client-js-latest&preserve-view=true

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

ID: 29e90229-289e-2035-3b42-5cb9cce14efe
Version Independent ID: a2aee4b8-93b9-bda7-f000-8f41b4513647
Content: Get started - Build a personal tab - Teams
Content Source: msteams-platform/build-your-first-app/build-personal-tab.md
Product: msteams
GitHub Login: @heath-hamilton
Microsoft Alias: lajanuar

@laujan  Could you please fix this broken link issue?