Add EmLineGalaxies_SpectraStack Notebook to Science Examples

Hi @Ragadeepika-Pucha , thanks for the PR! It's a very nice NB. My comments below. You can just add new commits to this PR.

Change the version date string to current.
"are hosted at the Data Lab" --> "are hosted at Astro Data Lab"
"access the spectra of any given object" --> "spectrum" maybe (?) Or plural because it's more than one spectrum?
Please change all *noao* URLs to *noirlab*; they should be working now.
Under Imports, remove the text "# remove imports that are not needed"
The random module is part of the Python std. library, i.e. please move this import into the "std lib" section of the imports cell.
Can you please re-run the notebook, and then save, using the demo00 user? Otherwise 'raga_steph' shows up when the whoAmI() function is called.
The sentence "H 𝛼 𝜆 6562, H 𝛽 𝜆 4861, [OIII] 𝜆 5006 and [NII] 𝜆 6583, to plot the traditional BPT diagram." seems incomplete?
You can avoid having to escape the single quotes in \'Infinity\'), if you put the surrounding string in double quotes instead of single, i.e. err_cond_sdss = ' AND \n'.join(["(E.Flux_{0}_Err > 0) AND (E.Flux_{0}_Err != 'Infinity')".format(e) for e in emission_lines]) (and several other places in the NB)
When constructing a long (multi-line) SQL query string, you can avoid having to include explicit line break characters \n if for the full query string you use triple-double quotes (aka Python docstring quotes), e.g.

query = """
SELECT
E.ra as ra_ ...
"""

(and then the parentheses are not needed)

"DataLab server" --> Data Lab server (with space)
You don't need to change this now, can be done in a later update to the NB, but there are conventions in Python as to how to name functions and classes etc. For functions, it's very good that it describes an action (what it does), as e.g. your "def Get_SDSS_Spectra()", but the naming should be either all small caps with underscores, i.e. def get_sdss_spectra() or half-"CamelCase" (not sure what it's called colloquially, but like this def getSDSSSpectra(). I think most our NBs and code prefer the first version, and we use CamelCase for classes (e.g. class UserName).
Very nice docstrings in your functions! Just one convention that should be followed: after the first triple-double quote, the single line should say what the function does. Then a blank line, then the rest. For example, in your first function, it should therefor be:

def get_SDSS_spectra(specobjid,  z, rest_frame = True):
    """Function to access the SDSS spectra of any object from the Data Lab file service.

        Returns the arrays of wavelength, flux, model and ivar.
        ...
    """

Futher, in function docstrings, the input args should be under a "Parameters" section, and the output params under a "Returns" section. The reason is that for automatic dicumentation of functions with Sphinx, this is how it will be recognized correctly. Example:

def get_SDSS_spectra(specobjid,  z, rest_frame = True):
    """Function to access the SDSS spectra of any object from the Data Lab file service.

    Returns the arrays of wavelength, flux, model and ivar.
    Returns the rest-frame arrays if rest_frame = True.
    If rest_frame = False, returns the observed-frame arrays.

    Parameters
    ----------
    specobjid : int64
       Unique SDSS spectrum ID.

    z : float
       Redshift of the source.

    rest_frame : bool
       Whether or not to return the rest-frame values. Default is True.

    Returns
    -------
    wavelength : array
       Wavelength array (Rest-frame values if rest_frame = True)

    flux : array
       Flux values array (Rest-frame values if rest_frame = True)

    [etc.]
    """

Suggestion to make future life easier (e.g. with other NBs developed etc.): the lists of lines defined in function Add_Lines() as emission_lines and absorption_lines should be maybe read from a stand-alone text file? That way it's portable, reusable, and easy to update once, when an update is needed.
A comment for later, about the data structure you chose to construct the lines lists... it seems unnecessarily complex, as a list of dictionaries. This leads to you then having to loop over them, lamba-mapping, just to get stuff out of the lists. A better suggestion could be:

have the data comma-separated in a CSV file
read in and populate for instance a single dictionary with the data, with dictionary keys only for name, lambda, emission, label.
But this is certainly for version 2.0 of your NB, and we can discuss with you and Stephanie down the road.

When you first time plot a spectrum, your index is -500. This may be confusing to non-Python experts. Can you use a positive index value instead?
Question for you and Stephanie: In the section "Function to align and stack spectra", in the function Stack_Spectra(), you align the spectra yourself. I though that Mike's spectro service has an option to returned aligned spectra already? Is that so?
"The relative fluxes of [NII] 𝜆 6853 and and H 𝛼  lines is an indicator ..." --> Double "and", and "are and indicator"?
"like an AGN, increases" --> no comma

Hi @Ragadeepika-Pucha , thanks for the PR! It's a very nice NB. My comments below. You can just add new commits to this PR.

Change the version date string to current.
"are hosted at the Data Lab" --> "are hosted at Astro Data Lab"
"access the spectra of any given object" --> "spectrum" maybe (?) Or plural because it's more than one spectrum?
Please change all *noao* URLs to *noirlab*; they should be working now.
Under Imports, remove the text "# remove imports that are not needed"
The random module is part of the Python std. library, i.e. please move this import into the "std lib" section of the imports cell.
Can you please re-run the notebook, and then save, using the demo00 user? Otherwise 'raga_steph' shows up when the whoAmI() function is called.
The sentence "H 𝛼 𝜆 6562, H 𝛽 𝜆 4861, [OIII] 𝜆 5006 and [NII] 𝜆 6583, to plot the traditional BPT diagram." seems incomplete?
You can avoid having to escape the single quotes in \'Infinity\'), if you put the surrounding string in double quotes instead of single, i.e. err_cond_sdss = ' AND \n'.join(["(E.Flux_{0}_Err > 0) AND (E.Flux_{0}_Err != 'Infinity')".format(e) for e in emission_lines]) (and several other places in the NB)
When constructing a long (multi-line) SQL query string, you can avoid having to include explicit line break characters \n if for the full query string you use triple-double quotes (aka Python docstring quotes), e.g.

query = """
SELECT
E.ra as ra_ ...
"""

(and then the parentheses are not needed)

"DataLab server" --> Data Lab server (with space)
You don't need to change this now, can be done in a later update to the NB, but there are conventions in Python as to how to name functions and classes etc. For functions, it's very good that it describes an action (what it does), as e.g. your "def Get_SDSS_Spectra()", but the naming should be either all small caps with underscores, i.e. def get_sdss_spectra() or half-"CamelCase" (not sure what it's called colloquially, but like this def getSDSSSpectra(). I think most our NBs and code prefer the first version, and we use CamelCase for classes (e.g. class UserName).
Very nice docstrings in your functions! Just one convention that should be followed: after the first triple-double quote, the single line should say what the function does. Then a blank line, then the rest. For example, in your first function, it should therefor be:

def get_SDSS_spectra(specobjid,  z, rest_frame = True):
    """Function to access the SDSS spectra of any object from the Data Lab file service.

        Returns the arrays of wavelength, flux, model and ivar.
        ...
    """

Futher, in function docstrings, the input args should be under a "Parameters" section, and the output params under a "Returns" section. The reason is that for automatic dicumentation of functions with Sphinx, this is how it will be recognized correctly. Example:

def get_SDSS_spectra(specobjid,  z, rest_frame = True):
    """Function to access the SDSS spectra of any object from the Data Lab file service.

    Returns the arrays of wavelength, flux, model and ivar.
    Returns the rest-frame arrays if rest_frame = True.
    If rest_frame = False, returns the observed-frame arrays.

    Parameters
    ----------
    specobjid : int64
       Unique SDSS spectrum ID.

    z : float
       Redshift of the source.

    rest_frame : bool
       Whether or not to return the rest-frame values. Default is True.

    Returns
    -------
    wavelength : array
       Wavelength array (Rest-frame values if rest_frame = True)

    flux : array
       Flux values array (Rest-frame values if rest_frame = True)

    [etc.]
    """

Suggestion to make future life easier (e.g. with other NBs developed etc.): the lists of lines defined in function Add_Lines() as emission_lines and absorption_lines should be maybe read from a stand-alone text file? That way it's portable, reusable, and easy to update once, when an update is needed.
A comment for later, about the data structure you chose to construct the lines lists... it seems unnecessarily complex, as a list of dictionaries. This leads to you then having to loop over them, lamba-mapping, just to get stuff out of the lists. A better suggestion could be:

have the data comma-separated in a CSV file
read in and populate for instance a single dictionary with the data, with dictionary keys only for name, lambda, emission, label.
But this is certainly for version 2.0 of your NB, and we can discuss with you and Stephanie down the road.

When you first time plot a spectrum, your index is -500. This may be confusing to non-Python experts. Can you use a positive index value instead?
Question for you and Stephanie: In the section "Function to align and stack spectra", in the function Stack_Spectra(), you align the spectra yourself. I though that Mike's spectro service has an option to returned aligned spectra already? Is that so?
"The relative fluxes of [NII] 𝜆 6853 and and H 𝛼  lines is an indicator ..." --> Double "and", and "are and indicator"?
"like an AGN, increases" --> no comma


Focus is not moving the out of the jExcel grid

Thank you very much Paul on pressing tab key focus is going to the first cell. Once the focus reaches to the last cell, focus is not moving out of the jExcel grid.
Once the focus reaches to last cell on pressing the tab key please move the focus out of the jExcel grid.
Originally posted by @Ilayaraja-n in https://github.com/paulhodel/jexcel/issues/891#issuecomment-640584308

Hi,
Please check the attached screenshot and files, contains fix for this issue. I could not able to check-in or create pull request, hence requesting you to merge this changes for fixing this issue.
Code changes screenshot:

Code Changes:
} else if (e.which == 9) {
// Tab
var tempSelectedCell = jexcel.current.selectedCell.toString();
if (e.shiftKey) {
jexcel.current.left();
} else {
if (jexcel.current.options.allowInsertColumn == true) {
if (jexcel.current.options.allowManualInsertColumn == true) {
if (jexcel.current.selectedCell[0] == jexcel.current.options.data[0].length - 1) {
// New record in case selectedCell in the last column
jexcel.current.insertColumn();
}
}
}
                    jexcel.current.right();
                }
                if(tempSelectedCell != jexcel.current.selectedCell.toString()){
                   e.preventDefault();
                }else{
                	jexcel.current.resetSelection();
                }
            } else {
                if ((e.ctrlKey || e.metaKey) && ! e.shiftKey) {
                    if (e.which == 65) {
                        // Ctrl + A
                        jexcel.current.selectAll();
                        e.preventDefault();

                                // New record in case selectedCell in the last column
                                jexcel.current.insertColumn();
                            }
                        }
                    }

                    jexcel.current.right();
                }
                if(tempSelectedCell != jexcel.current.selectedCell.toString()){
                   e.preventDefault();
                }else{
                	jexcel.current.resetSelection();
                }
            } else {

Thanks for the suggestion.
But I don't believe that feature should go in the core distribution. Firstly that will impact everyone used with the current behavior, and secondly, different users would have different expectations in re to that.
For example:

On the last column tab means expand the grid and create a new column automaticaly;

On the last column tab means go to the first column in the row below.

On the last column tab means lose the focus if the allowInsertColumn is false.

So, because those and other expectations you should implement that using one of the available events, such as onselection or with some sort of new initial settings, so current users are not disrupt by your changes in the core.
Another point, if you implement that on the core, but not official distribution. When a new release is available, you will need to keep merging your changes or stuck on the version you have customize. So, that is not a good practice.

Thank you so much Paul. Focus is not coming out of the grid once the focus is inside the grid. We need to use mouse click explicitly to come out of the gird.
The changes I have suggested will not affect the current behavior you have mentioned, and this will happen only in the scenario, where the focus is in the last cell of the row/grid and insertColumn flag is false.
Please find inline comments as below

On the last column tab means expand the grid and create a new column automatically;
Code changes will not have any impact
On the last column tab means go to the first column in the row below.
Currently focus stays on the last column only and it does not move to row below
On the last column tab means lose the focus if the allowInsertColumn is false.
Currently focus stays on the last column only and the focus does not move out the grid. The code changes suggested will move the focus out of the grid.

Please suggest.


Additional type class to simplify exposed API and signatures

I've on this branch commit which introduces additional type class to simplify library API and signatures so we can drop RowToList constraint and RLProxy passing in our helpers:
https://github.com/paluh/purescript-record-fold/commit/17ab29e04b884b00446bfba0419b58b88b1b2b58
What do you think? Should I provide a PR with this change?

I've also added type class which further simplifies FoldMap signatures on this branch (I'm using it in length and labels functions):
https://github.com/paluh/purescript-record-fold/blob/954705c66bc40af44e547833f1921f5db7866c37/src/Data/Record/Fold.purs#L80
If you want incorporate these changes too. Please ignore my PR and will provide new single one.

There is also funny variations which optimizes labels a bit (could be even done in safe unsafe way to optimize it further by mutating accumulator):
https://github.com/paluh/purescript-record-fold/blob/0cc37836b77c0f80387e93d506c6d84a369073d7/src/Data/Record/Fold.purs#L96
Unfortunately it brings a lot of garbage too (we can drop Endo and use Join from purescript-profunctors, but it is quite heavy dependency).

Ingore above comment - if we want to make it efficient we can probably use Array.ST ;-)

I like the Fold typeclass, which indeed cleans up API.


Automatic release notes

Can we somehow automate the release notes? I tried gren in the past but didn't really nail it

fixed by Bobbie!


feat: Use pod anti-affinity for spreading across node

Description
Introduce pod anti-affinity for all components, except dashboard, to spread pods across various zones of nodes. This is to spread them across availability zones of cloud providers such as Azure.
Issue reference
Closes #3147
Checklist
Please make sure you've  completed the relevant tasks for this PR, out of the following list:

[x] Code compiles correctly
[ ] Created/updated tests
[ ] Unit tests passing
[ ] End-to-end tests passing
[ ] Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Specification has been updated / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Provided sample for the feature / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

@skyao can you please review this?

@skyao can you please review this?

Ping @skyao

Let me know what you think @skyao!

Let me know what you think @skyao!

I am learning the background knowledge of pod anti-affinity, just wait me a moment.
One question: since this feature requires k8s 1.19+, if we add this feature into dapr, is it that dapr should requires k8s 1.19+? And if k8s is lower then 1.19, what will happen: ignore or report error ?

@yaron2 what the strategy of k8s version in dapr? I have checked the doc of Dapr but not found any information about this.

Initially, I was going to use pod topology spread constraints which is only available as of Kubernetes 1.19 and above but noticed that pod anti-affinity was already used so aligned with that.
There are no new Kubernetes version requirements with this change.

@yaron2 what the strategy of k8s version in dapr? I have checked the doc of Dapr but not found any information about this.

Min required version is Kubernetes 1.18. We will be documenting that. as @tomkerkhove mentioned, there are no changes to the minimum k8s version with this change.

/ok-to-test

Thank you for merging!


change seedSearchStringFromSelection to enum never, always, selectionOnly

never: Never seed search string from the editor selection
always: Always seed search string from the editor selection, including word at cursor position
selectionOnly: Only seed search string from the editor selection

This PR fixes #113830

@rebornix Please check code change, I am trying to fix the failed item.

@rebornix with new commit I have solved the failed item and also the problem that seed from cursor was never stopped even if seedSearchStringFrom Selection is false.
please help to review and merge.

@rebornix Any suggestion? please let me know if any change needed

@swinder0161 I'll take a look this week and have it merged.

@swinder0161 I'll take a look this week and have it merged.

Hi @rebornix I hope you got time to review. Please let me know if any changes needed.
Thanks,
@swinder0161

const seedSearchStringFromSelectionOnly = editor.getOption(EditorOption.find).seedSearchStringFromSelection !== 'always';

const seedSearchStringFromNonEmptySelection = editor.getOption(EditorOption.find).seedSearchStringFromSelection === 'selection';

@rebornix after this change did you confirm that the problem of seed from cursor was never stopped is solved too?

@swinder0161 you are right, it should be checking always, thanks!

Do you want a PR from me? or else you can do it directly on your side.

@swinder0161 thanks for offering help. I validated that checking === 'selection' behaves the same as !== 'always'.

I will validate also and confirm. Thanks for informing.


Examples using original ShowTestWindow()

While not all the example code has been converted to Rust, it would be nice to allow the example application to call the native version of the function at least, to allow the user to see and test the features. (perhaps an extra toggle/button in the example code for that)

That's a good idea. I think I'll add another example binary that simply uses the original C++ test window.


[UTOPIA-795]add migration to update ministry name

Description
This PR includes the following proposed change(s):

add new migration to update existing pia-intake form ministry name(if any)  to new ministry name

Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Refactoring / Documentation
[ ] Version change

How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Development Dependency Working Agreement

[x] My code DOES NOT include the importing of new dependencies into the DPIA ecosystem
[ ] My code DOES include the importing of new dependencies into the DPIA ecosystem
If new dependencies are being introduced to the DPIA ecosystem:
[ ] The functionality of the dependency drastically reduces code complexity and makes my changes more easily maintainable and readible
[ ] The dependency being introduced does not contain multiple layers of nested dependencies introducing maintainability complexity to the DPIA ecosystem

Frontend Development Changes

[x] N/A
[ ] I have performed a self-review of my own code
[ ] I have made corresponding changes to project documentation or diagrams that reflect my changes
[ ] New and existing unit tests pass locally with my changes
[ ] My code follows Airbnb React Style Guidelines

API Development Changes

[] N/A
[x] I have performed a self-review of my own code
[x] My code follows standards and practices outlined in the BC Government API Development Guidelines
[x] New and existing unit tests pass locally with my changes
[ ] My changes includes Swagger documentation updates that reflect the changes I am introducing

Definition of Done

I think you're missing housing.

the housing and emergency management are new ministry, so there is no existing pia link to these new added ministries, so we do not need to run migration for them @Bottle7


Improve message sorting performance

Summary

Test Plan

Current dependencies on/for this PR:

main

PR #4624   👈

This comment was auto-generated by Graphite.


doc: mention required OS changes in the release notes

What version of Go are you using (go version)?
Go 1.8 release candidate 1.
What operating system and processor architecture are you using (go env)?
Plan 9 from Bell Labs, any supported architecture.
What did you do?
Attempted to run net_test.go
What did you expect to see?
Overwhelming and unrelenting success
What did you see instead?
FAIL: TestConnClose because of an unknown control request
Epilogue
In the draft release notes for Go 1.8[1], we get the following:

The Plan 9 port's networking support is now much more complete and matches the behavior of Unix and Windows with respect to deadlines and cancelation.

Sounds great! but it fails to mention that this change requires modification of the OS itself; specifically, as described in a Go commit message[2], which refers to (but does not specify) a different Github repository entirely, as 'the' Plan 9 kernel[3].  This change is not present in the latest ISO made available by Bell Labs.
In the end, it's a simple change that other Plan 9 kernels can easily accomodate, but it would be very kind of you if this sort of OS-scope change were at least mentioned somewhere in the release notes, even if it's just a tiny asterisk with an href to a changelog somewhere.  It would save us some detective work, and make it easier for us to use Go.
[1] https://beta.golang.org/doc/go1.8
[2] https://github.com/golang/go/commit/3d1ae4b75c77a88ba3b20ada874f1027365a8060
[3] https://github.com/0intro/plan9-contrib/commit/390a902aece1c009c614d3fdb3757e0470a93304

(Are the ISOs "made available by Bell Labs" even current anymore?)

According to the documentation (assuming that the Plan9 wiki page is not outdated), we support:

Plan 9 from Bell Labs (386 and arm) kernel (https://9p.io/plan9)
9front amd64 kernel (http://9front.org/)
Charles Forsyth's 9k (amd64) kernel (https://bitbucket.org/forsyth/plan9-9k)

I read your report, but it's not clear to me whether that commit actually broke go on one of the supported kernels, or just on some other kernel/fork. There're builders for those 3, and although the x64 one does not feel very well at the moment, it succeeded at least once the last week, so I assume that the net change didn't broke it.
What's "the latest ISO made available by Bell Labs", exactly? Is it something different than https://9p.io/plan9 ?

Sure, we could add some text to the Go 1.8 release notes.
I have no clue what to say. The Plan 9 community at least from my perspective doesn't look very organized, with code and kernels scattered all over the place. Maybe I have the wrong perspective.
@0intro, I can write the text if you tell me what to say. Or you can send a CL.

Hi,
Thanks for your reply.
On Wed, Jan 11, 2017 at 09:12:32AM -0800, Alberto Donizetti wrote:

Plan 9 from Bell Labs (386 and arm) kernel (https://9p.io/plan9)
9front amd64 kernel (http://9front.org/)
Charles Forsyth's 9k (amd64) kernel (https://bitbucket.org/forsyth/plan9-9k)

The 9p.io/plan9 link is a mirror of the Bell Labs distribution.  Both it
and the 9front kernel lack the required changes.  The plan9-9k kernel is
the only one that got the change.  The 9front people did not know the
change was required until someone tried Go 1.8rc1 -- hence the request
for documentation.
khm

Thanks for the clarification. Leaving for brad and/or 0intro.

Sorry for the delay. It seems I've missed this conversation for some reason.
Following the change in CL 31271, you have to apply a change to the Plan 9 kernel to be able to handle the "close" message on the TCP connection control file. The "close" message in analogous to the "hangup" message, but closes the TCP connection gracefully with a FIN instead of a RST.
The patch is available here: 9-tcp-close
This is already documented on the Plan 9 wiki page, which is up-to-date.
I'll propose a CL to document the new requirement in the Go 1.8 release notes.


allow any object with render method to be used for label distribution

fixes #82
this lets any object that implements a render() method be used as a fluorophore distribution object (via duck typing).  which should make things like @melisande-c's kymograph generation easier to use without using from_ground_truth
class MyCustomDistribution:
    def render(self, space, xp: ms.NumpyAPI | None = None):
        # ...
        return space

sim = ms.Simulation(
    truth_space=ms.ShapeScaleSpace(shape=(64, 128, 128), scale=(0.2, 0.1, 0.1)),
    output_space={"downscale": 1},
    sample=ms.Sample(labels=[MyCustomDistribution()]),
)

it also exposes BaseDistribution publicly ... so if you prefer to subclass (rather than rely on Protocols and duck-typing) then you can.
@melisande-c, let me know if this would help out in your case

@tlambert03 Amazing! Thanks so much, this is what I exactly what I meant. I will let you know how integrating it with my work goes, it might still be a little tricky with the time component, I might be asking some questions soon! 😄

@tlambert03 just to let you know, I successfully created my own custom distributions! and it was pretty easy to move the time loop outside of the the distribution initialisation


Solves #36 Added Guide to start development of web app on your local host.

Solves #36
Hey, have added the

Tech Stack
Prerequisites
Additional resources
Steps To setup StarterHive Locally
Steps to make a contribution
dos and don'ts to keep in mind when creating a pull request

Anything else to add Plz review it

Solves #36

@shobhitexe When contributing to an open source project, Try to keep your commits and PRs as clean as possible so its easy for maintainers to merge your PR. As of now this PR looks full of bugs and mistakes. I would suggest closing this PR, making changes as said. And then creating a new PR. Thankyou.

Sure got it


Convert BASE64 string to HEX string, and reverse.

What's the Problem?
I want to convert BASE64 string to HEX string, and reverse.
ex)
BASE64 : ABEiM0RVZg==
HEX :<PHONE_NUMBER>5566
If possible, I hope to add "HEX" to "Encoding" items.
Solution/Idea
Replace "encoder.GetString(decodedData);" in "Base64EncoderDecoderToolViewModel.cs", convert byte[] to HEX string.
Replace "encoder.GetBytes(data);" in "Base64EncoderDecoderToolViewModel.cs", convert HEX string to byte[].
Alternatives
no alternatives.
Priorities

Capability
Priority

This proposal will allow developers to accomplish W
Must

This proposal will allow end users to accomplish X
Should

This proposal will allow developers to accomplish Y
Could

This proposal will allow end users to accomplish Z
Won't

DevToys Version
Version <IP_ADDRESS> | X64 | RELEASE | 3f367f1 | 3f367f1
Comments
No response

I suggest that can add a Binary option here.


Fix Exif orientation unwinding

Currently, the pin_degreesFromOrientation function that's used when decoding images returns the degrees that represent the Exif orientation. However, the rest of the decode function then applies those values to the already oriented image, causing it to turn the exact wrong way. This affected the normal and mirrored versions of Left and Right.
The change in 6bbf499 addresses this by inverting the returned degrees to be used as a way to unwind the transform that's already applied to the current pixel grid.
Hopefully this is a helpful PR for you, I've made some changes to the base example in 8fb0458 that allow for you to swap out the data source used. At 8fb0458 you can see the issue for the affected orientations, then by 6bbf499 they should all look correct.

Would you mind adding a test which fails and is fixed by this PR?

@garrettmoon sure thing, will get around to shortly

@garrettmoon hopefully this test in 2b1b06a is sufficient. It creates a pixel grid and applies certain pixel layouts. It then runs it through the decode function to receive an image with up orientation. Fails on the four horizontal images when you revert 8fb0458, so that's good I guess.
I also found another interesting bug along the way. UIGraphicsImageRenderer would handle CGFloats like 2.0000000004 by rounding up its output pixels to 3.  (Was picked up in the comparison of PNG data, took me a while to see the extra size...)

@garrettmoon Hey mate, have you had a chance to look over any of this?

Thank you, this works like a charm! I wonder why it hasn't got merged yet.

@JunyuKuang no idea. But I've been running this in production now for two years with success.

This fixed an issue I was dealing with. Thank you!

Running this fix in production, and it's working great 👌 would love to see it merged!


[fix] calibrate deployment

[fix] calibrate deployment
WHAT DOES THIS PR DO?
This PR resolve issues with calibrate microservice suspected to originate from deployment
WHAT JIRA STORY/TASK IS RELATED TO THIS PR?

Test this PR using docker as follows:
Checkout this code locally, cd to AirQo-api/src/calibrate. Run docker build -t calibrate:test -f Dockerfile.stage.txt ..
WHICH ENDPOINTS SHOULD BE READY FOR TESTING?:
Once image creation is completed, run docker run -it -p 4001:4001 calibrate:test. Using a REST client of your choice, test the endpoint [POST] http://localhost:4001/api/v1/calibrate. Refer to the API Documentation for details of the request body. A sample is provided below:
{
    "datetime": "2020-09-06 12:56:59+00:00",
    "raw_values": [
        {
            "raw_value": 100,
            "sensor_id": 832251
        },
        {
            "raw_value": 22,
            "sensor_id": 82720
        },
        {
            "raw_value": 29,
            "sensor_id": 870144
        }
    ]
}

IS THERE ANY JENKINS CONSOLE LINK FOR CODE COVERAGE AND BUILD INFO?
N/A
ARE THERE ANY RELATED PRs?
N/A

C:\Users\User\Documents\Projects\AirQo-api\src\calibrate>docker run -it -p 4001:4001 calibrate:test.
Unable to find image 'calibrate:test.' locally
docker: Error response from daemon: pull access denied for calibrate, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.

Hi @Priscilla-AL , I can see a .(dot) at the end of you image name. Try removing it and test again. Thanks!

This PR might longer be required. I will raise a separate PR to fix calibrate k8s service name


Remove hidden characters from form fields

Remove control and non-printable characters from form fields (server side)
Fix regex on client side (javascript)

Ref: https://github.com/inventree/InvenTree/pull/3591

@SchrodingersGat
Hi, by removing all "other" (C) unicode characters, you are forbidding 15/16 of Unicode table, because "other" also includes non-UTF-8 "surrogate" characters. So, once someone tries to use UTF-16, certain characters may be unavailable.
Yes, most of the upper part of Unicode table is just gibberish, but there are still some usable characters - Kana extensions for Japanese users, CJK unified ideograms for Chinese/Japanese/Korean users.
It should be no problem as long as users stick to UTF-8/32, but UTF-16 may be somewhat limited by the "C" group. Is this inclusion of way too many characters intentional?
Also, ASCII DEL character 0x7F is still allowed. So is 0x00 NUL character. What happens if I try to insert this character?

This was done mostly for security reasons, there were several attacks using non-printable characters so this decision is very unlikely to be rolled back / changed

Cs and Co blocks are printable characters.
Cf and Cc (and maybe Cn) are non-printable.
C (which is used in the new commits) includes all 5 of these, thus also removing printable characters.
The reason why I'm bothering you with this is because until 0.8.4, it was impossible to use characters like _-()*^ in parameter names. For security reasons. And it really made it difficult to make readable parameter names. So I just wanted to say that this may become an issue which someone may run into later.

@MR-DOS can you provide a reference for these Cs and Co character blocks? Would not be too hard make an adjustment here

@SchrodingersGat My reference was this:
https://javascript.info/regexp-unicode
Cs should be almost anything above 0xFFFF - those characters do not fit into UTF-16 and have to use surrogate characters which take 4 bytes and have to be a specific combination of "low surrogate" (0xD800-0xDBFF) and "high surrogate" (0xDBFF-0xDFFF).
Co (0xE000-0xF8FF, 0xF0000-0xFFFFD and 0x100000–0x10FFFD and in UTF-16 also 0xDB80-0xDBFF) are "private use" meaning they are reserved and unassigned. Those can be used for special characters not present in Unicode should someone need them. Currently, those are publicly used mostly for medieval scripts, phonetics, Tibetan ligatures, some combined letters, east asian symbols, some mathematical symbols, Tolkien script. More notably, Apple uses several hundred characters in this range. I haven't found any sign of it being used for control characters.
https://en.wikipedia.org/wiki/Private_Use_Areas

Also, ASCII DEL character 0x7F is still allowed. So is 0x00 NUL character. What happens if I try to insert this character?

Good catch, I'll look into this.
Regarding Cs / Co - do you have a use-case where you have needed these characters, or purely hypothetical at this stage?

Right now, hypothetical.


create x25519 service mirroring the ecc service

Created an x25519 service which is an almost exact copy of the ECC service with the following differences:

X25519 algorithm is used to generate keys  and secret keys
For PEM encoding and decoding we now use BouncyCastle methods instead of constructing the strings ourselves
The ECC tests have been modified to use x25519 style keys.

With this implemenation we have been able to perform the Diffie Helman Key Exchange with our service written in Python (uses OpenSSL under the hood). Further, we have been able to decrypt data in Python that is encrypted by the Java service.
Without this change we are not able to load, using OpenSSL, the public key that is generated by the EC service. This is because that's a generic EC key and stores all the Curve25519 information within it.

@saukap Thanks for the fix i will review this by next week and we will take it the closure.


[core] Introduce RollbackToTimestamp Procedure and Action

Purpose

Linked issue: close #xxx
Currently Rollback cannot rollback according timestamp which can make user more easy to rollback, as https://github.com/apache/paimon/pull/4333 suggest introduce RollbackToTimestamp to support for procedure and action.

Tests

API and Format

Documentation

@LinMingQiang had addressed, Thanks

+1


pyocd-flashtool doesn't work at all with RPiv3

pyocd-flashtool doesn't list any devices I've connected. Instead mbedls works fine. pyocd was clean clone from head of master and installed with command python setup.py develop .
This might be similar issue than #241, and there was mention that #262 should fix the problem, but I've still problem.
What I used:
~/pyOCD/ $ git rev-parse HEAD
48610ba219264d5306fa68bef2cd4ca89ef82067
$ uname -a
Linux raspberrypi 4.4.26-v7+ #915 SMP Thu Oct 20 17:08:44 BST 2016 armv7l GNU/Linux`

What happens:
~/pyOCD/ $ pyocd-flashtool -l -d debug
DEBUG:root:Exception getting product string: The device has no langid
DEBUG:root:Exception getting product string: The device has no langid
DEBUG:root:Exception getting product string: The device has no langid
DEBUG:root:Exception getting product string: The device has no langid
DEBUG:root:Exception getting product string: The device has no langid

$ mbedls
mbedls -j
[
    {
        "daplink_auto_reset": "0",
        "daplink_automation_allowed": "0",
        "daplink_daplink_mode": "Interface",
        "daplink_git_sha": "eab079b8a1326f0a3647e3df33cf5dda13994a1f",
        "daplink_hic_id": "97969900",
        "daplink_interface_crc": "0xdd5ee0ec",
        "daplink_interface_version": "0242",
        "daplink_local_mods": "0",
        "daplink_unique_id": "0240000034544e45004b00018aa9001d2011000097969900",
        "daplink_usb_interfaces": "MSD, CDC, HID",
        "daplink_version": "0242",
        "mount_point": "/mnt/platform-3f980000_usb-usb-0_1_3_3_1_0-scsi-0_0_0_0",
        "platform_name": "K64F",
        "platform_name_unique": "K64F[0]",
        "serial_port": "/dev/ttyACM2",
        "target_id": "0240000034544e45004b00018aa9001d2011000097969900",
        "target_id_mbed_htm": "0240000034544e45004b00018aa9001d2011000097969900",
        "target_id_usb_id": "0240000034544e45004b00018aa9001d2011000097969900"
 },
 ...
....

same happens with pyocd-gdbserver:
$ pyocd-gdbserver -l
No available boards are connected

verified that master works fine with windows:
C:\git\github\mbedmicro\pyOCD>pyocd-flashtool -l
0 => FRDM-K64F [k64f] boardId =><PHONE_NUMBER>164e4500400012706e0005f301000097969900

linux (virtualbox - ubuntu 16.04) seems to be also broken:
$ pyocd-flashtool -l -d debug
DEBUG:root:Exception getting product string: The device has no langid
DEBUG:root:Exception getting product string: The device has no langid
DEBUG:root:Exception getting product string: The device has no langid
No available boards are connected

$ mbedls -j
[
    {
        "daplink_auto_reset": "0",
        "daplink_automation_allowed": "0",

running with sudo in linux seems to work. So issue here is just lack of documentation. Please add some mention that this needs sudo access when running in linux and introduction how to run without sudo .

Referencing #267 (same similar problem, less information though, duplicated).

Closing this issue since it is a duplicate of #267. Please re-open if this is not the case.


Add support for dependent types to ops and summoner

Until now, if you had a typeclass like
@typeclass
trait First[P] {
  type Out
  def first(product: P): Out
}

the precise type of Out is not retained when calling First[(String,Int)].first(("foo",42)) or ("foo",42).first. Instead you get some existential type mumbo jumbo, which means you cannot do anything meaningful with those values.
This pull request slightly alters the encoding of typeclasses to support this. Given the above definition, something similar to the following is generated at compile time:
trait First[P] {
  type Out
  def first(product: P): Out
}

object First {
  def apply[A](implicit instance: First[A]): First[A] { type Out = instance.Out } = instance

  trait Ops[A] {
    type TypeClassType <: First[A]
    val typeClassInstance: TypeClassType
    import typeClassInstance._
    def self: A
    def first: Out = typeClassInstance.first(self)
  }

  trait ToFirstOps {
    implicit def toFirstOps[A](target: A)(implicit tc: First[A]): Ops[A] { type TypeClassType = First[A] { type Out = tc.Out } } = new Ops[A] {
      type TypeClassType = First[A] { type Out = tc.Out }
      val self = target
      val typeClassInstance: TypeClassType = tc
    }
  }

  object nonInheritedOps extends ToFirstOps

  trait AllOps[A] extends Ops[A] {
    type TypeClassType <: First[A]
    val typeClassInstance: TypeClassType
  }

  object ops {
    implicit def toAllFirstOps[A](target: A)(implicit tc: First[A]): AllOps[A] { type TypeClassType = First[A] { type Out = tc.Out } } = new AllOps[A] {
      type TypeClassType = First[A] { type Out = tc.Out }
      val self = target
      val typeClassInstance: TypeClassType = tc
    }
  }
}

Dependent type constructors are also supported. Example:
scala> :paste
// Entering paste mode (ctrl-D to finish)

import simulacrum.typeclass
@typeclass trait Mutable[S[_]] { type R[_]; def toMutable[A](source: S[A]): R[A] }
object Mutable {
  import scala.collection.mutable
  type Aux[S[_],R0[_]] = Mutable[S]{ type R[x] = R0[x] }
  implicit def converterImpl: Aux[List, mutable.ListBuffer] = new Mutable[List] {
    type R[x] = mutable.ListBuffer[x]
    def toMutable[A](s: List[A]) = s.to[mutable.ListBuffer]
  }
}

// Exiting paste mode, now interpreting.

import simulacrum.typeclass
defined trait Mutable
defined object Mutable

scala> import Mutable.ops._
import Mutable.ops._

scala> List(1,2,3).toMutable
res0: scala.collection.mutable.ListBuffer[Int] = ListBuffer(1, 2, 3)

And as an illustration of the problem being solved, if the above snippet is evaluated against master the result is this:
scala> List(1,2,3).toMutable
<console>:20: warning: inferred existential type _5.typeClassInstance.R[Int] forSome { val _5: Mutable.AllOps[List,Int] }, which cannot be expressed by wildcards,  should be enabled
by making the implicit value scala.language.existentials visible.
This can be achieved by adding the import clause 'import scala.language.existentials'
or by setting the compiler option -language:existentials.
See the Scaladoc for value scala.language.existentials for a discussion

why the feature should be explicitly enabled.
       List(1,2,3).toMutable
                   ^
res0: _5.typeClassInstance.R[Int] forSome { val _5: Mutable.AllOps[List,Int] } = ListBuffer(1, 2, 3)

If there is interest in merging this, I will add some tests and examples. (*do things that get tested in examples also need to be tested in test?)
This should close issues #72 and #71, and improve the fix for #21.

👍 This looks great. Sorry for the delay in response, must have missed this in email. If you can add a test or two, I'll merge.

Oh! Just noticed this PR. And I see tests have been added. This looks great!

I kinda lost track of this PR. Maybe I should add some test that stretches the possibilities a bit more.


fix(Terra): CW-7914 Terra classic invalid signature

Fix invalid signature when sequence is 0 for Terra Classic.
Also include fix invalid signature for Terra 2.0 staking, smart contract, etc.
Refine script listing for Terra.

Task linked: CW-7914 [Bug] Fix coin-terra (classic) invalid signature when sequence is 0


Scripts are always added to head

To improve the loading time of a blog it would be good to be able to control if scripts should be added to the "head" or the "footer" part of a wordpress theme. There is an option in the admin panel for controlling where the initalization script should be placed (jsType), but it does not affect other scripts.
Two ways to solve this would be to either add an additional option in the admin panel or to let jsType control the location of all the scripts.

Dear Pyknic,
it's a good idea but i'm currently working on a new EnlighterJS version including a major update of the WordPress plugin. Therefore i didn't add such feature at the moment.
but dont't worry! i will add this feature to the upcoming major release!
best regards, Andi

Great, then I am looking forward to the next version!

Your feature request will be added to the next release v2.10 (additional script position option is added)
best regards, Andi


Add laravel 7 support

@Mo7sin have you been able to test this?

Tests are passing, if there is any issues please open up a bug report.
Will tag as v0.11.0


unable to install on fedora 21

I'm getting the following in the terminal, any ideas?
Running task: extract
Extracting tor-browser-linux64-4.5.1_en-US.tar.xz
Running task: run
Running /home/tiago/.local/share/torbrowser/tbb/x86_64/tor-browser_en-US/start-tor-browser
Unhandled Error
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/twisted/web/_newclient.py", line 911, in dispatcher
return func(*args, **kwargs)
File "/usr/lib64/python2.7/site-packages/twisted/web/_newclient.py", line 1462, in _finishResponse_WAITING
self._giveUp(Failure(reason))
File "/usr/lib64/python2.7/site-packages/twisted/web/_newclient.py", line 1515, in _giveUp
self._disconnectParser(reason)
File "/usr/lib64/python2.7/site-packages/twisted/web/_newclient.py", line 1503, in _disconnectParser
parser.connectionLost(reason)
---  ---
File "/usr/lib64/python2.7/site-packages/twisted/web/_newclient.py", line 532, in connectionLost
self.response._bodyDataFinished()
File "/usr/lib64/python2.7/site-packages/twisted/web/_newclient.py", line 911, in dispatcher
return func(*args, **kwargs)
File "/usr/lib64/python2.7/site-packages/twisted/web/_newclient.py", line 1154, in _bodyDataFinished_CONNECTED
self._bodyProtocol.connectionLost(reason)
File "/usr/lib/python2.7/site-packages/torbrowser_launcher/launcher.py", line 378, in connectionLost
self.all_done(reason)
File "/usr/lib/python2.7/site-packages/torbrowser_launcher/launcher.py", line 395, in response_finished
self.run_task()
File "/usr/lib/python2.7/site-packages/torbrowser_launcher/launcher.py", line 332, in run_task
self.verify()
File "/usr/lib/python2.7/site-packages/torbrowser_launcher/launcher.py", line 565, in verify
self.run_task()
File "/usr/lib/python2.7/site-packages/torbrowser_launcher/launcher.py", line 336, in run_task
self.extract()
File "/usr/lib/python2.7/site-packages/torbrowser_launcher/launcher.py", line 609, in extract
self.run_task()
File "/usr/lib/python2.7/site-packages/torbrowser_launcher/launcher.py", line 340, in run_task
self.run()
File "/usr/lib/python2.7/site-packages/torbrowser_launcher/launcher.py", line 640, in run
subprocess.call([self.common.paths['tbb']['start']])
File "/usr/lib64/python2.7/subprocess.py", line 522, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib64/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
exceptions.OSError: [Errno 2] No such file or directory

I've got the same problem

This should be fixed soon: https://bugzilla.redhat.com/show_bug.cgi?id=1226477.

I can confirm this same issue on debian jessie.

@dtto This is fixed in version 0.2, which is now in jessie-backports and the updates repository for Fedora 22. You might want to enable jessie-backports and get it from there.

confirmed, works fine with 0.2.

@tiagocasalribeiro, @micahflee Can this bug be closed now?

For the record, this is also fixed in Debian Jessie (no backports needed) in torbrowser-launcher 0.1.9-1+deb8u1 which carries the relevant patches from 0.2.0 which is in jessie-backports.

The fix has made it to fedora 21

issue solved on fedora 21


DWX_ClosePartial function works with order without selecting it via OrderSelect

https://github.com/darwinex/dwx-zeromq-connector/blob/f416e3cc569dfe9b3ce59253f3a118308dd0fab7/v2.0.1/mql4/DWX_ZeroMQ_Server_v2.0.1_RC8.mq4#L917
When this function starts - it reads the data from Metatrader about order which is selected by OrderSelect function, like in DWX_ModifyOrder function.
But, as order with ticket we send into this function is not selected - EA start to partial close some other order.
So it should be selected first.

Hi,
thank you for raising this issue. If the ticket sent from python is not zero, it will return false if the order could not be selected:
if(ticket != 0) {
  zmq_ret = zmq_ret + "'_action': 'CLOSE', '_ticket': " + IntegerToString(ticket);

  if (OrderSelect(ticket, SELECT_BY_TICKET)) {
     zmq_ret = zmq_ret + ", '_response': 'CLOSE_PARTIAL'";
  } else {
     zmq_ret = zmq_ret + ", '_response': 'CLOSE_PARTIAL_FAILED'";
     return(false);
  }
}

If the ticket is zero, then it would indeed close the last selected order because the function DWX_ClosePartial() is used in DWX_CloseAtMarket() and before that one is executed the order is selected.
So the only wrong case I can think of is when you submit a partial close from python with ticket=0. We could simple add a check at
case 4: // CLOSE PARTIAL
and only execute if ticket != 0.
Or is there another case where it would lead to a problem?

I made a small update to fix the case that I explained in my last post.


Added more features and fixed some bugs

Added more features and fixed some bugs

I gave several comments but not all yet. In function execute, you can try to separate several things into functions. So, it reduce the code in each function and make it more readable.
One more thing, you could try to use one PR for one purpose (i.e. one PR does only one thing). So, it's easier to track and fix.

I had fix the problem what you said.Is it OK?I was the first time to contribute to the open source project.So my code may be bad.Thanks for your help. @supasate

And my skill is not very well too.

Don't worry. That's the open source way. We learn from each other. I learn a lot from you too :).

^_^Learn from one another.Hope our project will be much better in the future.


Update _core.py

More secure HTTP protocol handling, exception handling was improved to be broader, and unnecessary imports were eliminated.

If an exception occurs the protocol restore will never happen.
New handle:

No offense taken. Obviously any form of coding is subjective/opinionated. I do appreciate you bringing the miss on the finally to my attention. I was trying to work on replicating that error and missed it. I am going to go ahead and close this, though. I implemented the finally, but I don't think I like double wrapping another _request function just as a matter of preference. Same kind of thing with always resetting the versions even if they were never changed is just an opinion thing.


Ranger Docker Build Fails Due to Missing Dependency

Failure to find org.pentaho:pentaho-aggdesigner-algorithm:jar:5.1.5-jhyde
The above dependency is resulting in the Apache Ranger Docker build to fail as this artifact is not present in https://odpi.jfrog.io/odpi/egeria-snapshot/org/ which is set as the repository to pull from in egeria/open-metadata-resources/open-metadata-deployment/docker/build-images/apache/ranger/dist/settings.xml .
I was able to get around this for myself by adding a local repository to the list of repositories in the settings.xml hosting the artifact. Earlier today I saw an empty stub for org/pentaho in artifactory, but it is no longer there so something a bit strange appears to be going on there.
To fix properly the artifact needs to be re-added to artifactory, I do not have permissions to do this so it will need to be fixed by a project maintainer.

Thanks for reporting.
Our automated builds for the docker images are at : https://dev.azure.com/odpi/Egeria/_build?definitionId=13&_a=summary - these are still ok.

Only master is built currently
Whilst we deploy ranger in the 'vdc' helm chart, it's not configured to talk to the other components out of the box - that needs setting manually
There are two ranger builds - first the base, then another build (with our configuration)
The -build images are only built manually as they contain only a fixed release of code (like ranger 1.2)
Images published to dockerhub under odpi ie https://hub.docker.com/repository/docker/odpi/apache-ranger-admin and https://hub.docker.com/repository/docker/odpi/apache-ranger

There are some changes I hope to make

Ensure the charts/notebooks used 'released' versions of the docker builds like 1.2 not latest
Consider making the docker builds more fine grained (with most focus on our egeria specific ones) rather than build in a single process (except -build images)
move out non-egeria code to a different repository - we've already done this with the connectors. For the core ranger build ideally this is independent of egeria

Now specifically the issue you found.... our build pipelines do use our own artifactory. Can you confirm where exactly you saw the above error - which image was it building? And how was the build invoked?
I've kicked off a ranger build now to check what I see locally

I invoked the build with the example command from the docker directory:
~ cd ./egeria/open-metadata-resources/open-metadata-deployment/docker
~ mvn -Ddocker -Ddocker.repo=odpi -Ddocker.registry=localhost:5000 clean install

Per the README.md instructions in that directory. The image it was building was the Hive plugin in the Ranger build. Here's the error from the build log, sorry about the formatting that's how it was output into my terminal.
[INFO] [INFO] -----
[INFO] -------------------------------------------------------------------
[INFO] [INFO] ------------------------------------------------
[INFO] ------------------------
[INFO] [INFO] Reacto
[INFO] r Summary for ranger 1.2.0:
[INFO] [
[INFO] INFO]
[INFO] [INFO] ranger ............................................. SUCCESS [ 35.
[INFO] 409 s]
[INFO] [INFO] Jdbc SQL Connector ..............................
[INFO] ... SUCCESS [  5.496 s]
[INFO] [INFO] Crede
[INFO] ntial Support ................................. SUCCESS [ 26.443 s]
[INFO] [INFO] Audit Com
[INFO] ponent .................................... SUCCESS [ 17.868 s]
[INFO] [INFO] Common library for Plug
[INFO] ins ......................... SUCCESS [ 12.697 s]
[INFO] [INFO] Installer Support Component ..................
[INFO] ...... SUCCESS [  1.503 s]
[INFO] [INFO] Credential Builder ................................. SUCCESS [
[INFO]   3.985 s]
[INFO] [INFO] Embedded Web Server Invoker ........................ SUCCESS [  5.168 s]
[INFO] [INFO] Key Management Serv
[INFO] ice ............................. SUCCESS [ 20.582 s]
[INFO] [INFO] ranger-plugin-classloader ......
[INFO] .................... SUCCESS [  2.511 s]
[INFO] [INFO] HBase Security Plugin Shim ......................... SUCCESS [ 23.462 s]
[INFO] [INFO] HBase Security Plugin ....................
[INFO] .......... SUCCESS [ 11.268 s]
[INFO] [INFO] Hdfs Securit
[INFO] y Plugin ............................... SUCCESS [ 12.376 s]
[INFO] [INFO] Hive Security Plugin .............................
[INFO] .. FAILURE [03:08 min]
[INFO] [INFO] Knox Security Plugin Shi
[INFO] m .......................... SKIPPED
[INFO] [INFO] Knox S
[INFO] ecurity Plugin ............................... SKIPPED
[INFO] [INFO] Storm Security Plugin ............
[INFO] .................. SKIPPED
[INFO] [INFO] YARN
[INFO]  Security Plugin ........................
[INFO] ....... SKIPPED
[INFO] [INFO] Ranger Util ................
[INFO] ........................ SKIPPED
[INFO] [INFO] Unix Authentication Client .......
[INFO] .................. SKIPPED
[INFO] [INFO] Security Admin Web Application ..................... SKIPPED
[INFO] [IN
[INFO] FO] KAFKA Security Plugin ...............
[INFO] ............... SKIPPED
[INFO] [INFO] SOLR Security Plugin ...................
[INFO] ............ SKIPPED
[INFO] [INFO] NiFi Security Plugin ............................... SKIPPED
[INFO] [INFO] NiFi Registry Security Plugin ...
[INFO] ................... SKIPPED
[INFO] [INFO] Unix User Group Synchronizer ....................... SKIPPED
[INFO] [INFO] Ldap Config Check Tool .....
[INFO] ........................ SKIPPED
[INFO] [INFO] Unix Auth
[INFO] entication Service ........................ SKIPPED
[INFO] [INFO] KMS Security Plugin
[INFO] ................................ SKIPPED
[INFO] [INFO] Tag Synchronizer ....................
[INFO] ............... SKIPPED
[INFO] [INFO] Hdfs Security Plugin Shim ..........................
[INFO]  SKIPPED
[INFO] [INFO] Hive Security Plugin Shim .......................... SKIPPED
[INFO] [INFO] YARN Security Plugin Shim .....................
[INFO] ..... SKIPPED
[INFO] [INFO] Storm Security Plugin shim
[INFO] ......................... SKIPPED
[INFO] [INFO] KAFKA Security Plugin Shim .....
[INFO] .................... SKIPPED
[INFO] [INFO] SOLR Security Plugin Shim ....
[INFO] ...................... SKIPPED
[INFO] [
[INFO] INFO] Atlas Security Plugin Shim ......................... SK
[INFO] IPPED
[INFO] [INFO] KMS Security Plugin
[INFO]  Shim ........................... SKI
[INFO] PPED
[INFO] [INFO] ranger-examples .................................... SKIPPED
[INFO] [INFO] Ranger Examples
[INFO] - Conditions and ContextEnrichers .. SKIPPED
[INFO] [INFO] Ran
[INFO] ger Examples - SampleApp .....................
[INFO] ... SKIPPED
[INFO] [INFO] Ranger Examples - Ranger Plugin for SampleApp
[INFO]  ...... SKIPPED
[INFO] [IN
[INFO] FO] Ranger Tools ....................................... SKIPPED
[INFO] [
[INFO] INFO] Atlas Security Plugin .................
[INFO] ............. SKIPPED
[INFO] [INFO] Sqoop Security Plugin .............................. SKIPPED
[INFO] [INFO] Sqoop Security Plugin Shim ......
[INFO] ................... SKIPPED
[INFO] [INFO] Kylin Security Plugin ......................
[INFO] ........ SKIPPED
[INFO] [INFO] Kylin Security Plugin Shim .....................
[INFO] .... SKIPPED
[INFO] [INFO] Unix Native Authenticato
[INFO] r .......................... SKIPPED
[INFO] [INFO] -------------------------
[INFO] -----------------------------------------------
[INFO] [INFO] BUILD FAILURE
[INFO] [INFO] ----------------------------
[INFO] --------------------------------------------
[INFO] [INFO] Total tim
[INFO] e:  06:15 min
[INFO] [INFO] Finished at: 2019-12-10T19:39:39Z
[INFO] [INFO] ----------------------------------------
[INFO] --------------------------------
[INFO] [WARNING] The requested profile "all" could not be activated because it d
[INFO] oes not exist.
[INFO] [ERROR] Failed to execute goal on project ranger-hive-plugin: Could not resolve dependencie
[INFO] s for project org.apache.ranger:ranger-hive-plugin:jar:1.2.0: Could not find artifact org.pentaho:pen
[INFO] taho-aggdesigner-algorithm:jar:5.
[INFO] 1.5-jhyde in odpi-snapshots (https
[INFO] ://odpi.jfrog.i
[INFO] o/odpi/egeria-snapshot/) -> [He
[INFO] lp 1]
[INFO] [ERROR]
[INFO] [ERROR] To see the full stack trace
[INFO]  of the errors, re-run Maven with the
[INFO] -e switch.
[INFO] [ERROR] Re-run Maven using the -X switch to enabl
[INFO] e full debug logging.
[INFO] [
[INFO] ERROR]
[INFO] [ERROR
[INFO] ] For more information about
[INFO] the errors and possible so
[INFO] lutions, please read the
[INFO] following articles:
[INFO] [ERROR]
[INFO] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[INFO] [ERROR]
[INFO] [ERROR] After correcting the problems, you can resume the build with the command
[INFO] [ERROR]   mvn <goals> -rf :ranger-hive-plugin
[ERROR] The command '/bin/sh -c mvn -Pall -DskipTests=true clean compile package install assembly:assembly' returned a non-zero code: 1
[WARNING] An attempt failed, will retry 1 more times
org.apache.maven.plugin.MojoExecutionException: Could not build image
    at com.spotify.plugin.dockerfile.BuildMojo.buildImage (BuildMojo.java:247)
    at com.spotify.plugin.dockerfile.BuildMojo.execute (BuildMojo.java:135)
    at com.spotify.plugin.dockerfile.AbstractDockerMojo.tryExecute (AbstractDockerMojo.java:265)
    at com.spotify.plugin.dockerfile.AbstractDockerMojo.execute (AbstractDockerMojo.java:254)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: com.spotify.docker.client.exceptions.DockerException: The command '/bin/sh -c mvn -Pall -DskipTests=true clean compile package install assembly:assembly' returned a non-zero code: 1
    at com.spotify.plugin.dockerfile.LoggingProgressHandler.handleError (LoggingProgressHandler.java:105)
    at com.spotify.plugin.dockerfile.LoggingProgressHandler.progress (LoggingProgressHandler.java:63)
    at com.spotify.docker.client.DefaultDockerClient$BuildProgressHandler.progress (DefaultDockerClient.java:312)
    at com.spotify.docker.client.ProgressStream.tail (ProgressStream.java:77)
    at com.spotify.docker.client.DefaultDockerClient$ResponseTailReader.call (DefaultDockerClient.java:2754)
    at com.spotify.docker.client.DefaultDockerClient$ResponseTailReader.call (DefaultDockerClient.java:2738)
    at java.util.concurrent.FutureTask.run (FutureTask.java:264)
    at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)
    at java.lang.Thread.run (Thread.java:834)

And the reactor summary for maven:
[INFO] Reactor Summary for Open Metadata Docker Images 1.2:
[INFO]
[INFO] Open Metadata Docker Images ........................ SUCCESS [  2.664 s]
[INFO] Docker build-time images ........................... SUCCESS [  0.053 s]
[INFO] Docker build-time images for Apache ................ SUCCESS [  0.054 s]
[INFO] Docker build-time image - Apache Atlas ............. SUCCESS [  4.249 s]
[INFO] Docker build-time image - Apache Ranger ............ FAILURE [10:54 min]
[INFO] Docker runtime image - Apache Atlas ................ SKIPPED
[INFO] Docker runtime image - Apache Ranger (admin) ....... SKIPPED
[INFO] Docker image - Configuration ....................... SKIPPED
[INFO] Docker image - Egeria .............................. SKIPPED
[INFO] Docker image - Gaian ............................... SKIPPED
[INFO] Docker image - OMRS Monitor ........................ SKIPPED

Let me know if there's anything else I can provide :)

Thanks. I did reproduce the build failure. will investigate.
I should point out that the build image will rarely change (it's just ranger 1.2), also we only use in the vdc helm chart & it's not actually configured. So whilst there's no question it should work, you could skip it for now.

See #958

This is fixed now


Horixontal level indicator

Checklist

[ x] I am running the latest version of the card
[x ] I checked if there isn't another feature request opened with the same request
(not that I could find...)
[? ] I checked that the feature is not already available in the dev branch
(unfortunately I do not quite know how to do that...)

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Not a problem, just a feature request

Describe the solution you'd like
A clear and concise description of what you want to happen.

From Home Assistant user point of view, in automation world some kind of horizontal "level indicator" is very useful, that being a straight, horizontal line going from one end to another. The level value should be configurable also by variable (sensor etc. )

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

This could be achieved with mixed chart, where there is separate horizontal line drawn along the desired values, However, this would require giving these value points separately from beginning to the end for each data point.
There might be other ways to achieve that as well?

Additional context
Add any other context or screenshots about the feature request here.

You can do that using annotations
apex_config:
  annotations:
    yaxis:
      - y: 13
       ...

More complete example here
Also for make it variable or dependant on a sensor, you can use the config-template-card

So, with apexcharts using variable as annotations y-value is not possible?
Quickly checking config-template-chart, it does not have the visual elements I need and also I have to rewrite my "case" again, so it is not much an option.

It is not supported directly in apexcharts-card but your use case can definitely be achieved combining config-template-card and apexcharts-card. I don't understand what is blocking you?

I didn't test, but that should give you a good idea:
type: 'custom:config-template-card'
variables:
  SENSOR_STATE: states['sensor.whatever'].state
entities:
  - sensor.whatever
card:
  type: custom:apexcharts-card
  apex_config:
    annotations:
      yaxis:
        - y: '${Number(SENSOR_STATE)}'
  series:
    - entity: sensor.temperature


added function term map and function triples map

In an attempt to (partially) solve the discussions at #11

I'm wondering why we need to define the "function triples map" as "a specific type of triples map"?  More specifically, why should we go for specifying the logical source and subject map of a [=function triples map=] is optional instead of having both mandatory as the triplesMap does? IMO, a. providing the logical source makes the implementation follow the same generic logics (self-join or joinCondition) we have for triplesMap and b. having the subjectMap brings the usage of output parameter from the ontology definition (FnO) into the mappings which from my experience, it makes the understanding of the functions in mappings easier for users.

I'm trying to visualize an example of mappings based on new definitions and compare it with what we had discussed before. What I had in mind was sth like this:
`

rml:logicalSource [ rml:source "data.csv"; ];
rr:subjectMap [
	rr:template "www.blabla/{**Func1**_Output}";];

    rr:predicateObjectMap [
        rr:predicate fno:executes ;
        rr:objectMap [ rr:constant bla:**Func1**  ] ];

    rr:predicateObjectMap [
        rr:predicate bla:input_parameter;
        rr:objectMap [ rml:reference "column"  ] ].

In this way the reference fromobjectmapwill follow the same as reference to anotherTriplesMap(rr:parentTriplesMap with/without joinCondition). However in the case of subjectMapwe needFunctionTermMapto help us reference to theFunctionTripleMap` through it. Would be great if you also visualize the definitions that you already provided with an example to further discuss it.

Closed in favor of latest draft at https://kg-construct.github.io/fnml-spec/


feat(route): Add Sidebar examples page & stories, resolving #53 #56

Adds the following examples for Sidebars:

[x] Default sidebar
[x] Multi-level dropdown
[x] Content separator

The following can't be finished yet, because the
component needs work:

[x] CTA button
[x] Logo branding

Once #72 is accepted I can finalize this PR.
This resolves #53.
Also adds Storybook stories for Sidebar, resolving #56.

This branch is up to date now and ready to merge instantly. I didn't consider this consequence of tying it to the other PR, sorry about that.


bug: enable immediately blanks the screen

Describe the bug
The instant I call enable when running in simulator (even targeting a real device) I get the blank screen or image specified.
To Reproduce
Sample Repo

Clone the repo and follow the instructions on the README to set it up and build it for iOS.
Click the Enable button
See that the page itself is now blanked, rather than blanking for a screenshot or recording or in the task switcher.

Expected behavior
The blank screen/overlay should only show when the user is taking a screenshot/recording/viewing the task switcher.
Desktop (please complete the following information):
N/A
Smartphone (please complete the following information):

Device: iPhone 14 Pro Max (real), iPhone 15 Pro Max (simulated)
OS: 17.0.2
Browser n/a

Sorry, wrong repo...


Can resize maintain the aspect ratio?

You can use outputImage.get_width to get the image width for calculation.


unable to import zone file

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az network dns zone import
Errors:
argument of type 'NoneType' is not iterable
Traceback (most recent call last):
Local\Temp\pip-unpacked-wheel-49qlvzn7\knack\cli.py, ln 215, in invoke
azure\cli\core\commands\__init__.py, ln 654, in execute
azure\cli\core\commands\__init__.py, ln 718, in _run_jobs_serially
azure\cli\core\commands\__init__.py, ln 711, in _run_job
AppData\Local\Temp\pip-unpacked-wheel-tle01379\six.py, ln 703, in reraise
azure\cli\core\commands\__init__.py, ln 688, in _run_job
azure\cli\core\commands\__init__.py, ln 325, in __call__
pip-unpacked-wheel-03qxfwck\azure\cli\core\__init__.py, ln 784, in default_command_handler
azure\cli\command_modules\network\custom.py, ln 2050, in import_zone
cli\command_modules\network\zone_file\parse_zone_file.py, ln 413, in parse_zone_file
cli\command_modules\network\zone_file\parse_zone_file.py, ln 305, in _add_record_names
cli\command_modules\network\zone_file\parse_zone_file.py, ln 205, in _serialize
TypeError: argument of type 'NoneType' is not iterable

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az network dns zone import -g {} -n {} -f {}

Expected Behavior
Environment Summary
Windows-10-10.0.19041-SP0
Python 3.6.8
Installer: MSI

azure-cli 2.14.0 *

Additional Context

Name
Type
Data
Record Source
Principal
Protected
Comment
Monitored Since
Last Queried
Reclaimable
Creation Time

A Record
<IP_ADDRESS>
Static

No
1.02E+08
Not Monitored
Not Monitored
No
2020-01-16 21:24:08 AST

mail
A Record
<IP_ADDRESS>
Static

No

Not Monitored
Not Monitored
No
2020-01-16 21:24:08 AST

webmail
A Record
<IP_ADDRESS>
Static

No

Not Monitored
Not Monitored
No
2020-01-16 21:24:08 AST

autodiscover
CNAME Record
autodiscover.outlook.com
Static

No

Not Monitored
Not Monitored
No
2020-01-16 21:24:08 AST

enterpriseenrollment
CNAME Record
enterpriseenrollment.manage.microsoft.com
Static

No

Not Monitored
Not Monitored
No
2020-01-16 21:24:08 AST

enterpriseregistration
CNAME Record
enterpriseregistration.windows.net
Static

No

Not Monitored
Not Monitored
No
2020-01-16 21:24:08 AST

lyncdiscover
CNAME Record
webdir.online.lync.com
Static

No

Not Monitored
Not Monitored
No
2020-01-16 21:24:08 AST

msoid
CNAME Record
clientconfig.microsoftonline-p.net
Static

No

Not Monitored
Not Monitored
No
2020-01-16 21:24:08 AST

sip
CNAME Record
sipdir.online.lync.com
Static

No

Not Monitored
Not Monitored
No
2020-01-16 21:24:08 AST

www
CNAME Record
seturtm.trafficmanager.net
Static

No
89020282 / 102095838
Not Monitored
Not Monitored
No
2020-06-25 18:38:57 AST

MX Record
1 mx2.aspmsg.net
Static

No

Not Monitored
Not Monitored
No
2020-01-16 21:24:07 AST

MX Record
0 mx.aspmsg.net
Static

No

Not Monitored
Not Monitored
No
2020-01-16 21:24:07 AST

_sip._tls
SRV Record
1 100 443 sipdir.online.lync.com
Static

No

Not Monitored
Not Monitored
No
2020-01-16 21:24:08 AST

_sipfederationtls._tcp
SRV Record
0 5 5061 sipfed.online.lync.com
Static

No

Not Monitored
Not Monitored
No
2020-01-16 21:24:08 AST

TXT Record
"v=spf1 ip4:<IP_ADDRESS> ip4:<IP_ADDRESS> ip4:<IP_ADDRESS>   ip4:<IP_ADDRESS> ip4:<IP_ADDRESS> ip4:<IP_ADDRESS>   include:spf.protection.outlook.com include:euromsg.net -all"
Static

No

Not Monitored
Not Monitored
No
2020-01-16 21:24:07 AST

awverify
TXT Record
setur-setair-web.azurewebsites.net
Static

No

Not Monitored
Not Monitored
No
2020-06-26 17:53:30 AST

awverify.www
TXT Record
setur-setair-web.azurewebsites.net
Static

No

Not Monitored
Not Monitored
No
2020-06-26 17:53:42 AST

it seems because of line starting with space.

network


Alphabet Learning Game

PR Description 📜
Alphabet Learning Game for child
Fixes #2214

Mark the task you have completed ✅

[x] I follow CONTRIBUTING GUIDELINE & CODE OF CONDUCT of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I have followed proper naming convention showed in CONTRIBUTING GUIDELINE
[x] I have added screenshot for website preview in assets/images
[x] I have added entries for my game in main README.md
[x] I have added README.md in my folder
[x] I have added working video of the game in README.md (optional)
[x] I have specified the respective issue number for which I have requested the new game.

Add your screenshots(Optional) 📸

Thank you soo much for contributing to our repository 💗

Thank you @Samriddhi15 ,for creating the PR and contributing to our GameZone 💗
Review team will review the PR and will reach out to you soon! 😇
Make sure that you have marked all the tasks that you are done with ✅.
Thank you for your patience! 😀

Thank you  @Samriddhi15 , for your valuable time and contribution in our GameZone 💗.
It’s our GameZone, so Let’s build this GameZone altogether !!🤝
Hoping to see you soon with another PR again 😇
Wishing you all the best for your journey into Open Source🚀


Public Datasets Should Allow Per-segment Download

Right now several datasets require downloading the whole archive before loading certain segments, making it hard to just download one segment for demo purpose (e.g. WMT). We should break the archives into smaller pieces so that only downloading the target segment is required.

Once the refactoring is complete, transformer notebook should replace the TOY dataset with the specific segment. @cgraywang


Adding my new user in Jenkins Community/Artifactory

Description
https://github.com/jenkinsci/securecn-scanner-plugin @dneduva1
Submitter checklist for adding or changing permissions

Always

[x] Add link to plugin/component Git repository in description above

For a newly hosted plugin only

[ ] Add link to resolved HOSTING issue in description above

For a new permissions file only

[ ] Make sure the file is created in permissions/ directory
[ ] artifactId (pom.xml) is used for name (permissions YAML file).
[ ] groupId / artifactId (pom.xml) are correctly represented in path (permissions YAML file)
[ ] Check that the file is named plugin-${artifactId}.yml for plugins

When adding new uploaders (this includes newly created permissions files)

[x] Make sure to @mention an existing maintainer to confirm the permissions request, if applicable
[x] Use the Jenkins community (LDAP) account name in the YAML file, not the GitHub account name
[x] Make sure to @mention the users being added so their GitHub account names are known if they require GitHub merge access (see below).
[x] All newly added users have logged in to Artifactory at least once

Reviewer checklist (not for requesters!)

[ ] Check this if newly added person also needs to be given merge permission to the GitHub repo (please @ the people/person with their GitHub username in this issue as well). If needed, it can be done using an IRC Bot command
[ ] Check that the $pluginId Developers team has Admin permissions while granting the access.
[ ] In the case of plugin adoption, ensure that the Jenkins Jira default assignee is either removed or changed to the new maintainer.
[ ] If security contacts are changed (this includes add/remove), ping the security officer (currently @Wadeck) in this pull request. If an email contact is changed, wait for approval from the security officer.

There are IRC Bot commands for it

This section is used for artifactory authentication. It's not used for CD. A quick glance over your repository reveals a few CD mistakes.

You forgot to setup release drafter, the action which publishes releases. See https://www.jenkins.io/doc/developer/publishing/releasing-cd/#configure-release-drafter
https://github.com/jenkinsci/securecn-scanner-plugin/blob/ca86182eb11d1fd8c289ac8658b71376fd06a4ca/pom.xml#L38 should be scm:git:https, git:git is deprecated.

Awesome, thank you for all this assistance! I am not sure why the validation didn't go through, I did login with that user

I am not sure why the validation didn't go through

It's refreshed hourly, I'll go ahead and merge it, once it passes.

@NotMyFault Hey I am still getting 403 errors, do you have an idea why? it seems that the setup is abiding by the docs

Looks all good to me: https://repo.jenkins-ci.org/releases/io/jenkins/plugins/portshift-scanner/34.v2a_997225850b/
The release has been published successfully.

Looks all good to me: https://repo.jenkins-ci.org/releases/io/jenkins/plugins/portshift-scanner/34.v2a_997225850b/
The release has been published successfully.

Yup but I am getting the following in the GitHub actions cd:

and not seeing it when I browse for the plugin in the https://plugins.jenkins.io/

Looks all good to me: https://repo.jenkins-ci.org/releases/io/jenkins/plugins/portshift-scanner/34.v2a_997225850b/

The release has been published successfully.

Yup but I am getting the following in the GitHub actions cd:

and not seeing it when I browse for the plugin in the https://plugins.jenkins.io/

I'm not able to look into that right now. I'd recommend you raise an issue on the Helpdesk: https://github.com/jenkins-infra/helpdesk/issues

See https://www.jenkins.io/doc/developer/publishing/releasing-cd/#the-upload-to-the-maven-repository-fails-with-403-forbidden


Seed handling

#33 SeedHandling.
This PR does some code refactoring and I took a close look at the request #33.
I did change the Sketch.wrap(Memory, seed) method so that for SerVer 1 and 2 sketches, instead of throwing an exception, it defaults to the same as if Sketch.heapify(Memory, seed) was called.  I.e., the sketch is moved to the heap.  Also, I decided to change the null behavior of Intersection in that null does not change the internal state of the intersection.  Doing this for AnotB is more complex so I'm not changing its behavior at this time.

Why null input is no longer the same as empty sketch in the intersection?


Folder structure modified

fixes #22
features added:

backend folder created and previous folders transferred into that
frontend folder created and initiated react app in there

well done!


Unsupported auto parallel + int4 quantization on models

System Info
Tensorrt-LLM rel 0.9.0
Who can help?
@Tracin
Information

[X] The official example scripts
[ ] My own modified scripts

Tasks

[X] An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
[ ] My own task or dataset (give details below)

Reproduction
In the 0.9.0 rel version, I try to apply auto parallel + quantization on the Llama 70B model, and both of them work fine independently.
I convert checkpoint using
python3 ./TensorRT-LLM/examples/llama/convert_checkpoint.py --model_dir ./llama-2/llama-2-70b --dtype float16 --output_dir ./model_profile_tmp/ckpt/2 --use_weight_only --weight_only_precision int4
and then I try auto parallel using
trtllm-build --checkpoint_dir ./model_profile_tmp/ckpt/2/ --gemm_plugin float16 --use_custom_all_reduce disable --output_dir ./model_profile_tmp/engine/2/ --workers 8 --max_batch_size 1 --auto_parallel 8 --weight_only_precision int4
Expected behavior
It should build the engine as float16,
actual behavior
However, it fails with:
concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
File "/usr/lib/python3.10/concurrent/futures/process.py", line 246, in _process_worker
r = call_item.fn(*call_item.args, **call_item.kwargs)
File "/usr/local/lib/python3.10/dist-packages/tensorrt_llm/commands/build.py", line 291, in build_and_save
engine = build_model(build_config,
File "/usr/local/lib/python3.10/dist-packages/tensorrt_llm/commands/build.py", line 284, in build_model
return build(model, build_config)
File "/usr/local/lib/python3.10/dist-packages/tensorrt_llm/builder.py", line 669, in build
model = optimize_model(model, use_unfused_qkv_gemm=use_auto_parallel)
File "/usr/local/lib/python3.10/dist-packages/tensorrt_llm/models/modeling_utils.py", line 890, in optimize_model
model = unfuse_qkv_gemm(model)
File "/usr/local/lib/python3.10/dist-packages/tensorrt_llm/models/modeling_utils.py", line 767, in unfuse_qkv_gemm
gemm.weight.value = weight
File "/usr/local/lib/python3.10/dist-packages/tensorrt_llm/parameter.py", line 120, in value
assert v.shape == self._shape,
AssertionError: The value updated is not the same shape as the original. Updated: (8192, 5120), original: (8192, 8192)
additional notes
Looks like auto parallel cannot deal with quantization which changes the dimension in trt

auto parallel does not support to work with quantization right now. Will add assertion to make the error information clearer.


Added Orange and Bold colors

Simple update

@kawsark you forgot to address the comment about color_windows.go above 😅


Gradle gdx-setup not compatible with IntelliJ 14.0.2+

Hi, The generated build.gradle is not compatible with the intelliJ 14.0.2 and 14.0.3 it would seem that the Gradle plugin that the latest (and early release) versions that intelliJ uses is not the same as Android Studio.

Hello!
You have a new message, please read http://ezbazar.co.in/right.php?w9pgd
<EMAIL_ADDRESS>


Allow Meter ID to be stored in secrets.yaml

It would be great to be able to do something like the following in secrets,yaml and then use that in the config to hide the meter IDs in the main config.
--- secrets.yaml ---
meter_elec: 10528282
meter_gas: 52212210
meter_water:<PHONE_NUMBER>

The numbers above are random numbers I created in the moment and are not reflective of an exact meter ID; they are used as examples only.
- id: !secret meter_elec
  protocol: scm
  name: meter_electricity
  format: "#####.##"
  unit_of_measurement: kWh
  icon: mdi:lightning-bolt
  device_class: energy
  state_class: total_increasing
  filters:
    - multiply: 0.01
- id: !secret meter_gas
  protocol: scm
  name: meter_gas
  format: "####.###"
  unit_of_measurement: ft³
  icon: mdi:gas-meter
  device_class: gas
  state_class: total_increasing
  filters:
    - multiply: 0.001
- id: !secret meter_water
  protocol: r900
  name: meter_water
  format: "#######.#"
  unit_of_measurement: gal
  icon: mdi:water
  device_class: water
  state_class: total_increasing
  filters:
    - multiply: 0.1

Please note:  If you want to add Gas or Water to the Energy Dashboard, you MUST change the units to m³.  Once added to the energy dashboard, the units can be changed back.

Another improvement to this would to also be able to support injecting env like this
- id: !env METER_ID
  protocol: r900
  name: meter_water
  format: "#######.#"
  unit_of_measurement: gal
  icon: mdi:water
  device_class: water
  state_class: total_increasing
  filters:
    - multiply: 0.1

Either of these methods for pulling Meter IDs out of the primary config would work for me.

Please note: If you want to add Gas or Water to the Energy Dashboard, you MUST change the units to m³. Once added to the energy dashboard, the units can be changed back.

Can you elaborate on this one?  I've been wondering why my water units aren't showing up in the Energy Dashboard - they are currently in ft³.  Something like this?

Change the units to m³ in rtlamr2mqtt, restart rtlamr2mqtt
Restart homeassistant, see them on the dashboard
Reset units back to ft³ in rtlamr2mqtt, restart rtlamr2mqtt
Restart homeassistant, see them on the dashboard

Either of these methods for pulling Meter IDs out of the primary config would work for me.

Please note: If you want to add Gas or Water to the Energy Dashboard, you MUST change the units to m³. Once added to the energy dashboard, the units can be changed back.

Can you elaborate on this one? I've been wondering why my water units aren't showing up in the Energy Dashboard - they are currently in ft³. Something like this?

Change the units to m³ in rtlamr2mqtt, restart rtlamr2mqtt
Restart homeassistant, see them on the dashboard
Reset units back to ft³ in rtlamr2mqtt, restart rtlamr2mqtt
Restart homeassistant, see them on the dashboard

I don't believe I even had to restart Home Assistant.  I restarted rtlamr2mqtt so many times during the process of getting my config setup that I don't remember if this is required.


Add GitHub issue template

Let's make issue report easier.

Updated, thanks @ljharb

@ljharb sure, done.


Can't get card to show AQI from custom sensor

Before submitting a bug
[x ] I updated to the latest version available
[x ] I cleared the cache of my browser
Describe the bug
I'm trying to get the card to show AQI using a custom sensor that has the state set from an air quality object. It's not displaying on the card though. Is it possible to use the air quality object to display the AQI on the card? I've tried both and it's not working. Here is my code:
- type: 'custom:purifier-card'
    entity: fan.master_bedroom_air_purifier
    aqi:
      - entity_id: sensor.master_bedroom_aqi
        unit: µg/m³

Is my setup correct?

Release: 0.8.1
Browser: All
HomeAssistant version: core-2021.4.0b4

Nevermind, I figured it out

Nevermind, I figured it out

Hey @julianrinaldi! What ended up being the solution? I'm having a similar problem with the aqi and stats objects.

I don't remember specifically what I did to fix it. In my example code the spacing is wrong, but that's just an error with copy and paste or something. It was spaced correctly. Looking at the code that I have that works, I think the - in front of the aqi entity_id was the issue.
type: 'custom:purifier-card'
compact_view: true
stats:
  - entity_id: sensor.master_bedroom_air_purifier_air_quality_nitrogen_dioxide
    unit: µg/m³
    subtitle: N0₂
  - entity_id: sensor.master_bedroom_air_purifier_air_quality_particulate_matter_2_5
    unit: µg/m³
    subtitle: PM2.5
  - entity_id: sensor.master_bedroom_air_purifier_air_quality_particulate_matter_10
    unit: µg/m³
    subtitle: PM10
  - entity_id: >-
      sensor.master_bedroom_air_purifier_air_quality_volatile_organic_compounds
    unit: µg/m³
    subtitle: VOC
aqi:
  entity_id: sensor.master_bedroom_aqi
  attribute: state
  unit: µg/m³
entity: fan.master_bedroom_air_purifier


ros noetic under ubuntu20.04 or ros2 be supported?

When will ros noetic under ubuntu20.04 or ros2 be supported?

@JCRONG96
The ROS Noetic version is now supported and can be cloned in the corresponding branch.


Adding inlet as keyword and allowing height as an alias for both footprints and obs_surface

At the moment, we have an input of inlet for ObsSurface data and height for Footprint data when they should represent the same property (and most of the time will be equivalent).
This update makes the following changes:

Adds "inlet" as an additional input and metadata keyword within the Footprint.read_file() method

This still retains "height" for backwards compatability but this should always be the same as the inlet value
Adds "inlet" to both search_footprints and get_footprint functions. Either inlet or height can be used to search.

Also allows "height" as an alias input for "inlet" within ObsSurface.read_file

"height" is not added to the metadata here as this is not needed for backwards compatability
Adds "height" to both search_surface and get_obs_surface functions. Either "inlet" or "height" can be used to search (both will link to inlet metadata keyword)

Added new util function around inlets to try and apply additional formatting rules to this - should be 'NUM''UNIT' e.g. "20m" not "20magl" or "20". Incorporated into relevant functions mentioned above.

Additional tests added to check this.
Closes #466

Codecov Report

Merging #471 (7d8e9ae) into devel (5501882) will increase coverage by 0.18%.
The diff coverage is 87.13%.

:exclamation: Current head 7d8e9ae differs from pull request most recent head c6911d1. Consider uploading reports for the commit c6911d1 to get more accurate results

@@            Coverage Diff             @@
##            devel     #471      +/-   ##
==========================================
+ Coverage   77.38%   77.57%   +0.18%
==========================================
  Files         166      168       +2
  Lines       11894    12043     +149
==========================================
+ Hits         9204     9342     +138
- Misses       2690     2701      +11

Impacted Files
Coverage Δ

openghg/types/__init__.py
100.00% <ø> (ø)

tests/analyse/test_scenario.py
100.00% <ø> (ø)

openghg/tutorial/_tutorial.py
33.33% <50.00%> (+0.25%)
:arrow_up:

openghg/retrieve/_search.py
80.31% <73.07%> (-2.43%)
:arrow_down:

tests/retrieve/test_access.py
92.30% <75.00%> (-7.70%)
:arrow_down:

openghg/store/_obssurface.py
90.82% <80.00%> (-0.36%)
:arrow_down:

openghg/analyse/_scenario.py
76.79% <85.18%> (+0.27%)
:arrow_up:

openghg/retrieve/_access.py
77.14% <88.88%> (+2.48%)
:arrow_up:

openghg/store/_footprints.py
97.26% <92.30%> (+0.85%)
:arrow_up:

openghg/standardise/surface/_openghg.py
84.09% <100.00%> (+0.18%)
:arrow_up:

... and 12 more

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


Level is not updated for groups that contains more than 1 bulb

Hi,
I have several groups defined; some times with 1 bulb, some other times with more than 1 bulb.
Intrestingly, when having a group with only 1 bulb, the level attribute to this bulb is identical to level of the group.
Now surprisingly, when there is a group with 2 or more bulbs, the level attribute does not get updated.  It stay at 50% while all bulbs within are at 30% for example.
(Group adjusted with Apple Home - Phoscon can see this adjustment for the group - ioBroker not)

I know this is weird, but deConz does not send a websocket message while changing the level of a single light in a group.
If there is only one light in the group the handling is not the same.
In my mind it makes not really sense to set the level of a group to the value of one light, while other can have a complete different level at the same time. So the level for a group is only a element for controling the whole group.


Feature/updatecore2

You did it @dinakarmeda!
Thank you for signing the Anthem Opensource Software CLA.


Deploy a static site on GitHub Pages.

A GitHub Action to deploy a static site on GitHub Pages.
See https://github.com/appleboy/gh-pages-action

This looks like the same/very similar action to "GitHub Actions for deploying to GitHub Pages with Static Site Generators" in the same category. Can you confirm @peaceiris

Yes. The purpose is similar to https://github.com/peaceiris/actions-gh-pages
On the other hand, peaceiris/actions-gh-pages is implemented with TypeScript.

Some different features:

deploy to the custom directory in the branch.
ignore some folder or file list.

My action can do the first one already and the second is in progress.
@jessicalostinspace
Why did you ask me about this? According to #345, this repository merges all pull requests regardless that is awesome or not. And maintainers do regular pruning.

@jessicalostinspace Can you merge this PR?

@jessicalostinspace Can you merge this PR?

Sure, I want to make sure the sha for the lint fix is in here though and that the action for the repo passes, so would you mind pulling master then pushing up again?

@jessicalostinspace Done

@jessicalostinspace I don't know why CI/CD fail.

@appleboy try to add . (dot) in the end of the sentence.


Return type of contentChanges in didChange does not appear to be correct

First of all, thank you for your work.  I would still be reading the lsp spec without much comprehension if it wasn't for your client implementation.  So I am new to pylspclient and lsp in general but believe there is an issue in lsp_client.py:
def didChange(...):
...

return self.lsp_endpoint.send_notification("textDocument/didChange", textDocument=textDocument, contentChanges=contentChanges)

Couldn't get it to work until changed the return to:
return self.lsp_endpoint.send_notification("textDocument/didChange", textDocument=textDocument, contentChanges=[contentChanges])

(may need to scroll the above to the right - contentChanges needs to be in a list)
I find the msft lsp documentation a bit obtuse but assume that the ending [] in the definition below is saying that it needs to be in a list and when I made that change it worked.
contentChanges: TextDocumentContentChangeEvent[];

Hi,
Thanks for opening the issue.
You are right that the function send_notification() receives a list. But there is no need to change contentChanges=[contentChanges] because the contentChanges parameter of the function didChange() is already a list.
Let me know if you think otherwise.

I am probably using the library incorrectly but what I am doing are things like:
lsp_client.didChange(pylspclient.lsp_structs.VersionedTextDocumentIdentifier(uri, 2),
                     pylspclient.lsp_structs.TextDocumentContentChangeEvent(range_, 1, "};"))

(where range_ is constructed from lsp_structs.Position as arguments to lsp_structs.Range.  A complete aside but in a couple places you use the variable identifier range which will overwrite I believe the builtin range function but that is an unrelated issue.)
lsp_structs.TextDocumentContentChangeEvent(...) is a list according to the specification but it will produce a dictionary unless you do what I suggested or probably more sensible would be for lsp_structs.TextDocumentContentChangeEvent to return the list.  Or am I doing something wrong (although with my change I can now successfully communicate with clangd).

@slzatz Each instance of TextDocumentChangeEvent corresponds to one contiguous change to document. Since it's possible that the document has been changed at multiple places, e.g. a bit at the start and a bit at the end, you can specify a list of them. So the function, as far as I can judge, is correct, but the way you call it is not, and should be like this:
lsp_client.didChange(pylspclient.lsp_structs.VersionedTextDocumentIdentifier(uri, 2),
                     [pylspclient.lsp_structs.TextDocumentContentChangeEvent(range_, 1, "};")])