REFERENCED ONE TO MANY are forbidden in embedded document

Hello,
I had a classical error, and I would like to have a clear explanation from the maintainer of the library, as I could still not understand the rational behind the choice.
example
Mongoid::Errors::MixedRelations: Account document from the User document via a relational association is not allowed since the Account is embedded.
class Portfolio
  embeds_many :account
  referenced_in   :user
end

class Account
  referenced_in    :user
  embedded_in    :portfolio, inverse_of => :account
end

class User
  references_many :portfolios
  references_many :accounts
end

From a design (and the JSON equivalent which is not extremely complex I think) I do not see why these should not be valid.
I know that the question has been asked already, but still I do not understand why you need to throw an error in this
I found few posts of people which are changing their db design to workaround this limitation, but I could not find a real explanation why this behavior is forbidden.
I see Nick's comment in https://github.com/mongoid/mongoid/issues/1487 and  I do not understand it. :-)
For me the above is a one-to-many relation (http://mongoid.org/docs/relations/referenced/1-n.html). One user might have one (or more) account, albeit these accounts are embedded in an higher Portfolio level.
And knowing that the Account will never be accessed individually (therefore embed should be the good choice), but the owner of the account is typically someone different from the portfolio manager.
Thanks in advance for the explanation and regards,
Marco

In your case, for a User to reference an embedded Account, it not only needs to know the id of the Account, but it's parent Portfolio as well. A manual setup of this would look something like:
class User
  include Mongoid::Document

  def accounts
    portfolios = Portfolio.where("accounts.user_id" => id)
    portfolios.map(&:accounts).flatten.select do |account|
      account.user_id = id
    end
  end
end

This is just one level deep. If Mongoid were to support this, then it would have to support cases for any number of levels deep it could be embedded. This code is too much of a hassle to maintain, would not be performant, and is essentially a hack since MongoDB does not support references to specific locations in a document.
If Mongo were to implement "virtual" collections for embedded documents, then Mongoid will support this too since we would be in line with what is a feature of the actual database itself. There is a Jira issue for this, but I don't see it happening anytime in the near future.
https://jira.mongodb.org/browse/SERVER-142
Please in the future post questions of this nature to the mailing list, as this is not an issue, and is easier for others to get these types of explanations without having to search through Github.
Thanks!

Hello Durran,
First, apologies, for having post in the wrong place.
And thank you for the prompt detailed explanation and the reference to the jira, I am going to monitor it.
As I still have an open question on this subject (from the original mongoDB documentation), I will continue it on the mailing list.
As for the development we can proceed thanks to your suggestion, I can have more driver-oriented discussion. :-)
regards,
Marco


Multiline shell (with backslash) is highlighted incorrectly

The following piece of shell is incorrectly syntax highlighted. Only the first line is correctly highlighted, the rest is gray:
$ echo "foo \
    bar"

This is happening since version 2.8.0 and also happens in the online demo page on pygments.org: https://pygments.org/demo/?lexer=console&code=%24 echo "foo \
    bar"
The last correct version was 2.7.4
Example effect for Sphinx documentation with Pygments version 2.9.0

Example effect for Sphinx documentation with Pygments version 2.7.4

Diffing between 2.7.4 and 2.8.0. lead me to #1672.
The change for this type of input which does not contain the PS2 prompt (>) may have been intentional, or the usecase was never considered.

Yeah, it's a bit unfortunate.  I can understand why it's bothersome to show the secondary prompt, especially with long lines.
If it's possible without too many problems to reinstate the old behavior for this use case, I'm +1.


Run next function in route handler

Issue https://github.com/thiagobustamante/typescript-rest/issues/68

Coverage decreased (-0.1%) to 83.208% when pulling 39c380b82ecc2ee7c9e1cf0567cc86d470ac3dc3 on ruslan-sh-r:master into b704dbf4a4bf0f4fc9640a4f1ee5301e681a5fc3 on thiagobustamante:master.


3.0.0 testing

this PR implements the deployer configuration via the package.json file as described in issue nuvolaris#142

Hello @sciabarracom i've done all the modifications you requested. Need to better understand with your support what is not working properly in deployer so to fix it.


assert((offset_in-group_size) <= SDIV(queryLength, 2) * 2);

Why do we have this assertion in the float_kernels.cuh, function computeMiddlePass?
It prevents from running align program with query sequences smaller than 63 characters long!
`        const int final_out = queryLength % 64;
const int from_thread_id = 32 - ((final_out+1)/2);
    assert((offset_in-group_size) <= SDIV(queryLength, 2) * 2);

    if (threadIdx.x>=from_thread_id) {
        checkHEindex(offset_out-from_thread_id, queryLength, __LINE__);
        assert((offset_in-group_size) <= SDIV(queryLength, 2) * 2);
        devTempHcol[offset_out-from_thread_id]=H_temp_out;
        devTempEcol[offset_out-from_thread_id]=E_temp_out;
    }

`

Hi, this looks like leftover debug code.

I pushed a fix. Could you check if this works for you?

Hi! Yes, it will work. I did the same fix.


Add data model for cells

This PR adds a cell data model that is stored as an item. It is currently created with the create_sample endpoint.
https://www.youtube.com/watch?v=ZRcpnM26nJM

🔋

interlinked


Processing HTML, AsciiDoc and Markdown with the File Repository

As a developer I want to be able to use files (e.g. HTML, AsciiDoc, Markdown) as the source of documentation for LivingDoc.

Background:
With LivingDoc 2 we want to give our users the option to use any kind of documentation source (Confluence, Jira, HTML files etc.). For this we define the concept of repositories. A repository is an abstraction over any kind of datastore (be it remote or local). Currently we plan at least two repositories for the release of version 2.0:

File Repository
Confluence Repository

This story covers the implementation of a File Repository. This repository will handle files checked in with the source code. Currently planned formats are: HTML, AsciiDoc and Markdown. Implementing a Confluence repository first would take much longer and does not give us any advantages for proofing LivingDoc 2’s quality.
Scope:
This story covers two things which need implementing:

The Document class. This is an abstraction over all possible documentation input. Any source documentation needs to be transformed / parsed into this data structure. It is also the basis for further processing of the documentation as examples.
The FileRepository class. This is the implementation of DocumentRepository for the file system.

There is a base implementation of this in PR #75.
Requirements for the Document implementation:

Any textual information which is not an example is still available for processing.
can represent DecisionTable as well as Scenario examples
The data structure and its parser are extensible (there will be changes and additions to the structure in the future.
The Document class contains all the information of the source document, but not necessarily all formatting. Line breaks and paragraphs in texts should be kept, but colours and other mark-up does not have to be considered.

Requirements for the FileRepository implementation:

Provide fun getDocument(documentIdentifier: String): Document? for document lookup
Support for different DocumentFormat (HTML, Markdown, AsciiDoc)
Root directory and DocumentFormat can be specified in the repository configuration

@BalazsAtWork @Alexander-Miller This is your story :) At least to get you started. I'll add some more acceptance criteria next week and maybe some examples.
@Alexander-Miller Feel free to correct any spelling errors you find ;)

Feels pretty epic to me :)
Why not split the LocalRepository into different repositories depending on format?

@bitterblue lets workshop this on friday

We discussed today that DocumentRepository should be responsible for access to a data store (Confluence, local file system) and provide a stream of content to a DocumentFormat instance (HtmlDocumentFormat, MarkdownDocumentFormat, ...). The responsibility of DocumentFormat is to parse a content stream into our object model of a Document.

Now that we have working parser implementations, and for the sake of getting closer to running an end-to-end test, let's have a look a the existing class hierarchy. I do believe there are questions that need to be answered and improvements and refactorings that can be made.
At the top there's the DocumentRepository which may or may not return a Document. Questions:

Why is the returned Document nullable?
What is the documentIndentifier that needs to be supplied?

The concrete implementations of the DocumentRepository have a DocumentFormat which knows how to provide a Document (non-nullable), given that they receive an appropriate InputStream. Who is responsible for supplying that InputStream?
I would also like to propose some refactoring. As I see it there's 2 questions that need answering that I think are badly answered with the current types: where is the Document and what type of Document is it? I propose we introduce interface(s) for both. The former, let's call it DocumentLocation could know how to supply an InputStream, the latter is already available as the DocumentFormat. A repository would then no longer need subtypes but could simply be instantiated with appropriate references.


"Steam profile is not public" but it definitely is

I recently built a new computer, and am in the process of setting up Playnite on it. I downloaded 1.0 and then 1.1 this morning, and both times I got the error message above. However, my profile is definitely public. I even tried setting it to private and then back to public, no dice. I also tried deleting success story from the appdata folder, and reinstalled it, still no dice. Any ideas on what I could do? Thanks!

Have you "My profile" and "Game details" on "public"?

Yes, attached is a screenshot of my settings
https://imgur.com/a/QDyRamx

I published a new release with more debug information.
Can you try again and post your Playnite.log?

playnite.log

You log indicates that you have a forbidden access.
Have you check that your Steam ID and API key is correct in Steam Library plugin?

Somehow, despite my profile being Public not Private, entering the API Key fixed the problem. Thank you!


fix: Correct pass custom properties into Input component. close #73

Coverage remained the same at 89.431% when pulling 610d8e92058574844365f0516122a2855686e000 on fix-input into 823c3b1290c996da3ccb8c9a52df35f4bbf66216 on master.


Expose resolveProxyProvider function as we expose resolveProxyProviders

Is it possible to expose resolveProxyProvider as we expose resolveProxyProviders? It gives us the flexibility of resolving the providers properly when needed.

I had that idea in my mond for a while, too. Do you mean resolving proxy providers individually?
I think it could work if we added an array of proxy provider injection tokens as an array to the resolveProxProviders method, which would only resolve those that were supplied. If none are passed, then resolve all that have not been resolved yet. Would that work for your use case?

it could be useful in some scenarios

I'm not a fan of adding features unless they solve a concrete problem. Let's start with selective resolution of proxy providers only.

Released in 4.3.0


how to use FPDF_SaveAsCopy

how to use FPDF_SaveAsCopy

This is how I use SaveAsCopy in my code:
    public void SaveAsCopy(string filePath, SaveFlags flags = 0)
    {
        FileStream? fileStream = null;

        try
        {
            fileStream = File.Open(filePath, FileMode.Create);

            var fileWrite = new FPDF_FILEWRITE_
            {
                Version = 1,
                WriteBlock = (IntPtr pThis, IntPtr pData, uint size) =>
                {
                    byte[] managedArray = new byte[size];
                    Marshal.Copy(pData, managedArray, 0, (int)size);
                    fileStream.Write(managedArray, 0, (int)size);
                    return 1;
                }
            };
            var result = fpdf_save.FPDF_SaveAsCopy(Document, fileWrite, (uint)flags);
        }
        catch
        {
            throw;
        }
        finally
        {
            fileStream?.Close();
        }
    }


Improved ql:has-relation versatility.

ql:has-relation can now be used like any other predicate, with the pattern trick still being used to answer queries matching its specific requirements.
I also ran clang-format on the entire repository which changed a handful of files and added those in the last commit of this pr.

Can you add queries covering the different uses of ql:has-relation to the End-to-End Test Queries in this PR? I think we're still not testing this feature there at all so this would be doubly beneficial.


[QUESTION] Is possible to get the module where the type is defined?

I was not able to find documentation for this, is it possible to get the name of the module where the type was defined? That way I could do something like this:
Original type on ModuleA:
import Whatever

struct CoolStruct {
  // Stuff
}

Generated code on ModuleB:
import ModuleA

let coolStruct = CoolStruct()
// Do something with CoolStruct

yes if you use pbxproj / target integration, each type has module optional field.
Not if you just use source paths  since how could Sourcery know in that case

Hum... I think I see the problem... I use trough command line because the source code is on Package and de generated code will be used on the Package too. Do you know of any way I could do that?

If there is no target information provided Sourcery can't really know what module it's scanning, there is path on Type but that wouldn't really help.
We'll be adding SPM support as one of the config options in near future

There is path on Type? It doesn't appear on the reference. It could be enough since SPM follows a pretty rigid structure, but I guess Stencil doesn't allow for the level of string manipulation that I would required right?
Basically extracting only the content between Source/ and the next /.... And transforming Module-A into Module_A. From what I researched Stencil does not support RegExes right?

If stencil supported the regex then it would be so cool!
Btw do have have a workaround now for SPM packages? For modules integrated with pbxproj/target works fine.
❓

we'd either need to add scanning of Package.swift or we could add support for injecting module name for a given source path

yes if you use pbxproj / target integration, each type has module optional field.
Not if you just use source paths since how could Sourcery know in that case

Is it possible to get the target within the module for the type?

@rus64 confused what you mean, module is a target isn't it?


Save user preferences: favorites sort order

Save user preferences to new database table

sort order for each home page
instrument of choice for tabs

Updated in code, pending test and deploy


Introduce CanonicalConstantFieldName bug checker

Suggested commit message:
Introduce `CanonicalConstantFieldName` check (#794)

(I didn't check the comments before reviewing; sorry.)

In addition to class variables within the same compilation unit, should we also match on constants imported from other classes ?
Ideally, the checker will suggest the fix in that class 🤔

Error Prone doesn't support this; for cases like that OpenRewrite would be better suited. (But for now, let's just focus on the private fields.)

@Stephan202 suggested the use of TreeScanner as in this example but I could not seem to make this work 😓

Anywhere we can see the code that doesn't work; perhaps I can take a look.

@Stephan202 I covered your first pass comments, however, I still could not make use of the TreeScanner. Or in other words, I couldn't find what advantage does the TreeScanner give that the TreeMatcher does not.
AFAIU, the suggested fix builder used in this PR will execute what you are suggesting in this comment:

IIUC this change will suggest many distinct fixes. It might work in practice, but it'll be nicer if there's a single report against the field, which, when applied, renames all references to that Symbol. (That's why offline I suggested using a TreeScanner :)

Happy to hear your thoughts (again? 😅) 🙏

I had 15 spare minutes 😄 so did some small tweaks.
This is going in the right direction! Very nice man. More in depth review soon to follow.

@rickie tweaks LGTM, Thanks ❤

I see I approved, that was not my idea yet haha sorry for that.

Thanks for review @rickie 🙏
I pushed a commit to address your comments.
However, I get this dependency analysis error from maven
[ERROR] Used undeclared dependencies found:
[ERROR]    org.jetbrains:annotations:jar:24.1.0:provided

Any clue why ?

/integration-test

Thanks @rickie , changes LGMT 🚀

Thanks for suggestions @rickie . LGTM 🚀

I'm not sure what your style guide is, but fwiw Google's is popular and does not follow this rule (e.g. logger not LOGGER as this suggests). Of course not an issue as trivial to suppress or disable, just fyi that this may be considered overly broad as  broaches into style vs quality.
https://google.github.io/styleguide/javaguide.html#s5.2.4-constant-names

Thanks for sharing @ben-manes! I suppose this one of the (likely few) ways in which inside Picnic we deviate from the Google style guide. In version 0.19.0 we also landed #783, which by default will suggest LOG for SL4FJ loggers. In that case we support an override (though while still going UPPER_SNAKE_CASE) for static loggers). For this one a flag would have to unlock significantly more advanced heuristics, and it'd never be perfect. Indeed disabling may be best for some (most?) users. :thinking:


[Sonar] Fix invalid fetch query to sonarqube >=6.6

Closes #5882

Messages

:book:
:sparkles: Thanks for your contribution to Shields, @rafalmaciejewski!

  Generated by :no_entry_sign: dangerJS against d1d47166c50ac83a542d96edda32e926ae730133

Thanks for submitting this patch. Do you know of an example of a public sonar instance running >=6.6 that we could use as a test case for this?

I don't think we have any existing tests for other instances (all mocked), but I can deploy an instance of this branch and test against such a SonarQube instance on the intranet.
I'm wondering if we may be getting to a point where it'd be worth investigating some kind of sandbox env (preferably container based) where we can run a few instances of some of the self-hosted tools (or spin them up dynamically as needed for tests)

Just in case you're looking for an instance for an one-time manually test: You can use a project, e.g. de.chkpnt:truststorebuilder-gradle-plugin, in my personal instance at https://sonar.chkpnt.de, which is running SonarQube 8.9.1 and publicly readable.

Just in case you're looking for an instance for an one-time manually test

Beautiful, thank you @chkpnt!
https://shields-staging-pr-6636.herokuapp.com/sonar/quality_gate/de.chkpnt:truststorebuilder-gradle-plugin?server=https%3A%2F%2Fsonar.chkpnt.de&sonarVersion=6.6

I'm going to assume the choice of "one-time manually" phrasing was very deliberate, but going to ask you a follow up question anyway :smile:
We run our full suite of integration tests twice daily against (mostly) live targets of upstream services/platforms/etc. Is your SonarQube instance typically internet facing and anonymously accessible (or did you perhaps temporarily make it so for this thread?), and if so, would you be opposed to us using your SonarQube instance for one of the Sonar tests?
That would mean a grand total of two http requests sent to your instance from us per day. The ability to target live instances with our test runs helps us catch issues like this more quickly when vendors change their API contracts, as Shields integrates with far too many services and platforms for our team to be up to date with breaking changes upstream.

@calebcartwright I just phrased it this way to not be blamed for breaking tests ☺
As you see in the size of my SonarQube and the size of the scanned projects, it's just a hobby instance for my own pet projects, so there is no HA (although it's normally running 24/7). But of course, if you're just looking for a real-world public readable instance, you are free to use it, as there is no difference in using it for the badges in my own READMEs.
Just wanted to throw in another link: I knew the Apache Foundation were hosting it's own SonarQube instance... but it has certainly turned out, that they sunsetted their service.


Update oceandb.py

from swarms.memory.oceandb import OceanDB -->  from swarms.memory.ocean import OceanDB

Thank you for contributing to Swarms!
Replace this comment with:

Description: a description of the change,
Issue: the issue # it fixes (if applicable),
Dependencies: any dependencies required for this change,
Tag maintainer: for a quicker response, tag the relevant maintainer (see below),
Twitter handle: we announce bigger features on Twitter.

Please make sure your PR is passing linting and testing before submitting. Run make format, make lint and make test to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/kyegomez/swarms/blob/master/CONTRIBUTING.md
If you're adding a new integration, please include:

a test for the integration, preferably unit tests that do not rely on network access,
an example notebook showing its use.

Maintainer responsibilities:

General / Misc / if you don't know who to tag<EMAIL_ADDRESS>DataLoaders / VectorStores / Retrievers<EMAIL_ADDRESS>swarms.models<EMAIL_ADDRESS>swarms.memory<EMAIL_ADDRESS>swarms.structures<EMAIL_ADDRESS>
If no one reviews your PR within a few days, feel free to email Kye at<EMAIL_ADDRESS>See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/kyegomez/swarms

@vyomakesh09 you have submitted a pr with thousands of lines of changes and not just the change you made, so don't mistake this next time


Support Prometheus for metrics collection

Description:
Currently, Siddhi only supports console and RDBMS matrics reporting, these are not optimal for cloud-based deployments and hence we have to support Prometheus for metrics collection and probably Grafan to view the statistics in the dashboard.

Prometheus reporter added: https://github.com/siddhi-io/distribution/pull/706
Mapping to the metrics added for easy querying: https://github.com/siddhi-io/distribution/pull/796


HASS (Z-WaveJS) detects a device, which doesn't respond though

Issue
Similar to/Same as the issue I ran into while working on https://github.com/130s/hut_10sqft/issues/680. I'm now seeing:

Z-Wave inclusion on HASS never notifies that it found a device.
Despite no notification, the list view of Z-Wave devices adds a "Node X" (X is number). Status: Alive, Ready: Yes.
Operation on HASS doesn't seem to trigger anything on the device.

What's done so far to resolve

Factory reseting the device.
Specified the security (both S2, S0) upon Z-Wave inclusion on HASS.

Situation detail

This is for https://github.com/130s/30y-130s_life/issues/1465.
Same devices involved as https://github.com/130s/hut_10sqft/issues/680.
One difference is the distance from, and the number of physical obstacles between, the Z-Wave controller/hub's antenna. It's a few meters further away.

One thermometer device is in the same garage room that seems to be able to communicate w/o an issue.
There's one powered Z-Wave device in the middle in between.

Situation detail

This is for https://github.com/130s/30y-130s_life/issues/1465.
Same devices involved as https://github.com/130s/hut_10sqft/issues/680.
One difference is the distance from, and the number of physical obstacles between, the Z-Wave controller/hub's antenna. It's a few meters further away.

One thermometer device is in the same garage room that seems to be able to communicate w/o an issue.
There's one powered Z-Wave device in the middle in between.

Today I installed another device of a same kind in another garage that is a few meters closer to the Z-Wave hub. I'm seeing the same.
Extra things I have done so far in an attempt to resolve (but to fail):

Moved the hub out of the room and closer to the device.
Set S2 encryption keys at http://%Z2M%:8091/settings.
On Z-Wave inclusion on HASS, select/deselect S2 security level -> Search.
Reboot HASS.
Reboot OS.

Log of an interview
2022-08-12T20:31:19.428Z DRIVER   destroying driver instance...
2022-08-12T20:31:19.534Z DRIVER   driver instance destroyed
2022-08-12T20:31:24.622Z DRIVER   ███████╗ ██╗    ██╗  █████╗  ██╗   ██╗ ███████╗             ██╗ ███████╗
                                  ╚══███╔╝ ██║    ██║ ██╔══██╗ ██║   ██║ ██╔════╝             ██║ ██╔════╝
                                    ███╔╝  ██║ █╗ ██║ ███████║ ██║   ██║ █████╗   █████╗      ██║ ███████╗
                                   ███╔╝   ██║███╗██║ ██╔══██║ ╚██╗ ██╔╝ ██╔══╝   ╚════╝ ██   ██║ ╚════██║
                                  ███████╗ ╚███╔███╔╝ ██║  ██║  ╚████╔╝  ███████╗        ╚█████╔╝ ███████║
                                  ╚══════╝  ╚══╝╚══╝  ╚═╝  ╚═╝   ╚═══╝   ╚══════╝         ╚════╝  ╚══════╝
2022-08-12T20:31:24.623Z DRIVER   version 10.0.0-beta.3-pr-4836-a1a47a5
2022-08-12T20:31:24.624Z DRIVER
2022-08-12T20:31:24.624Z DRIVER   starting driver...
2022-08-12T20:31:24.631Z DRIVER   opening serial port /dev/ttyUSB0
2022-08-12T20:31:24.654Z DRIVER   serial port opened
2022-08-12T20:31:24.655Z SERIAL » [NAK]                                                                   (0x15)
2022-08-12T20:31:24.675Z DRIVER   loading configuration...
2022-08-12T20:31:24.677Z SERIAL « 0x01100004001c0a3202a1422f33003c2f3e1f                              (18 bytes)
2022-08-12T20:31:24.679Z DRIVER   Dropping message because the driver is not ready to handle it yet.
2022-08-12T20:31:24.680Z SERIAL » [ACK]                                                                   (0x06)
2022-08-12T20:31:24.686Z SERIAL « 0x0110000400150a3202a14a0002002200000f                              (18 bytes)
2022-08-12T20:31:24.687Z DRIVER   Dropping message because the driver is not ready to handle it yet.
2022-08-12T20:31:24.688Z SERIAL » [ACK]                                                                   (0x06)
2022-08-12T20:31:24.694Z CONFIG   Using external configuration dir /var/snap/zwavejs2mqtt/408/.ext-config
2022-08-12T20:31:24.695Z CONFIG   version 10.0.0-beta.3-pr-4836-a1a47a5
2022-08-12T20:31:27.574Z DRIVER   beginning interview...
2022-08-12T20:31:27.577Z DRIVER   added request handler for AddNodeToNetwork (0x4a)...
                                  1 registered
2022-08-12T20:31:27.578Z DRIVER   added request handler for RemoveNodeFromNetwork (0x4b)...
                                  1 registered
2022-08-12T20:31:27.578Z DRIVER   added request handler for ReplaceFailedNode (0x63)...
                                  1 registered
2022-08-12T20:31:27.578Z CNTRLR   querying controller IDs...
2022-08-12T20:31:27.599Z SERIAL » 0x01030020dc                                                         (5 bytes)
2022-08-12T20:31:27.601Z DRIVER » [REQ] [GetControllerId]
2022-08-12T20:31:27.605Z SERIAL « [ACK]                                                                   (0x06)
2022-08-12T20:31:27.608Z SERIAL « 0x01080120d9b5ad0b011d                                              (10 bytes)
2022-08-12T20:31:27.610Z SERIAL » [ACK]                                                                   (0x06)
2022-08-12T20:31:27.612Z DRIVER « [RES] [GetControllerId]
                                    home ID:     0xd9b5ad0b
                                    own node ID: 1
2022-08-12T20:31:27.626Z CNTRLR   received controller IDs:
                                    home ID:     0xd9b5ad0b
                                    own node ID: 1
2022-08-12T20:31:27.627Z CNTRLR   querying API capabilities...
2022-08-12T20:31:27.639Z SERIAL » 0x01030007fb                                                         (5 bytes)
2022-08-12T20:31:27.640Z DRIVER » [REQ] [GetSerialApiCapabilities]
2022-08-12T20:31:27.646Z SERIAL « [ACK]                                                                   (0x06)
2022-08-12T20:31:27.649Z SERIAL « 0x012b01070420000000010001fe81ff88cf1f0000fb9f7da067008080008086000 (45 bytes)
                                  000e87300000e000060000003
2022-08-12T20:31:27.651Z SERIAL » [ACK]                                                                   (0x06)
2022-08-12T20:31:27.657Z DRIVER « [RES] [GetSerialApiCapabilities]
                                    payload: 0x0420000000010001fe81ff88cf1f0000fb9f7da067008080008086000000e8730
                                  0000e0000600000
2022-08-12T20:31:27.666Z CNTRLR   received API capabilities:
                                    firmware version:    4.32
                                    manufacturer ID:     0x00
                                    product type:        0x01
                                    product ID:          0x01
                                    supported functions:
                                    · GetSerialApiInitData (0x02)
                                    · SetApplicationNodeInformation (0x03)
                                    · ApplicationCommand (0x04)
                                    · GetControllerCapabilities (0x05)
                                    · SetSerialApiTimeouts (0x06)
                                    · GetSerialApiCapabilities (0x07)
                                    · SoftReset (0x08)
                                    · GetProtocolVersion (0x09)
                                    · SetRFReceiveMode (0x10)
                                    · UNKNOWN_FUNC_SET_SLEEP_MODE (0x11)
                                    · FUNC_ID_ZW_SEND_NODE_INFORMATION (0x12)
                                    · SendData (0x13)
                                    · SendDataMulticast (0x14)
                                    · GetControllerVersion (0x15)
                                    · SendDataAbort (0x16)
                                    · FUNC_ID_ZW_R_F_POWER_LEVEL_SET (0x17)
                                    · UNKNOWN_FUNC_SEND_DATA_META (0x18)
                                    · FUNC_ID_ZW_GET_RANDOM (0x1c)
                                    · GetControllerId (0x20)
                                    · UNKNOWN_FUNC_MEMORY_GET_BYTE (0x21)
                                    · UNKNOWN_FUNC_MEMORY_PUT_BYTE (0x22)
                                    · UNKNOWN_FUNC_MEMORY_GET_BUFFER (0x23)
                                    · UNKNOWN_FUNC_MEMORY_PUT_BUFFER (0x24)
                                    · UNKNOWN_FUNC_FlashAutoProgSet (0x27)
                                    · UNKNOWN_FUNC_UNKNOWN_0x28 (0x28)
                                    · GetNVMId (0x29)
                                    · ExtNVMReadLongBuffer (0x2a)
                                    · ExtNVMWriteLongBuffer (0x2b)
                                    · ExtNVMReadLongByte (0x2c)
                                    · ExtExtWriteLongByte (0x2d)
                                    · GetNodeProtocolInfo (0x41)
                                    · HardReset (0x42)
                                    · FUNC_ID_ZW_REPLICATION_COMMAND_COMPLETE (0x44)
                                    · FUNC_ID_ZW_REPLICATION_SEND_DATA (0x45)
                                    · AssignReturnRoute (0x46)
                                    · DeleteReturnRoute (0x47)
                                    · RequestNodeNeighborUpdate (0x48)
                                    · ApplicationUpdateRequest (0x49)
                                    · AddNodeToNetwork (0x4a)
                                    · RemoveNodeFromNetwork (0x4b)
                                    · FUNC_ID_ZW_CREATE_NEW_PRIMARY (0x4c)
                                    · FUNC_ID_ZW_CONTROLLER_CHANGE (0x4d)
                                    · FUNC_ID_ZW_SET_LEARN_MODE (0x50)
                                    · AssignSUCReturnRoute (0x51)
                                    · FUNC_ID_ZW_REQUEST_NETWORK_UPDATE (0x53)
                                    · SetSUCNodeId (0x54)
                                    · DeleteSUCReturnRoute (0x55)
                                    · GetSUCNodeId (0x56)
                                    · UNKNOWN_FUNC_SEND_SUC_ID (0x57)
                                    · FUNC_ID_ZW_EXPLORE_REQUEST_INCLUSION (0x5e)
                                    · RequestNodeInfo (0x60)
                                    · RemoveFailedNode (0x61)
                                    · IsFailedNode (0x62)
                                    · ReplaceFailedNode (0x63)
                                    · UNKNOWN_FUNC_UNKNOWN_0x66 (0x66)
                                    · UNKNOWN_FUNC_UNKNOWN_0x67 (0x67)
                                    · UNKNOWN_FUNC_UNKNOWN_0x78 (0x78)
                                    · GetRoutingInfo (0x80)
                                    · UNKNOWN_FUNC_LOCK_ROUTE_RESPONSE (0x90)
                                    · UNKNOWN_FUNC_GET_PRIORITY_ROUTE (0x92)
                                    · UNKNOWN_FUNC_SET_PRIORITY_ROUTE (0x93)
                                    · UNKNOWN_FUNC_UNKNOWN_0x98 (0x98)
                                    · UNKNOWN_FUNC_UNKNOWN_0xB4 (0xb4)
                                    · UNKNOWN_FUNC_WATCH_DOG_ENABLE (0xb6)
                                    · UNKNOWN_FUNC_WATCH_DOG_DISABLE (0xb7)
                                    · UNKNOWN_FUNC_WATCH_DOG_KICK (0xb8)
                                    · UNKNOWN_FUNC_UNKNOWN_0xB9 (0xb9)
                                    · UNKNOWN_FUNC_RF_POWERLEVEL_GET (0xba)
                                    · UNKNOWN_FUNC_GET_LIBRARY_TYPE (0xbd)
                                    · UNKNOWN_FUNC_SEND_TEST_FRAME (0xbe)
                                    · UNKNOWN_FUNC_GET_PROTOCOL_STATUS (0xbf)
                                    · UNKNOWN_FUNC_UNKNOWN_0xD2 (0xd2)
                                    · UNKNOWN_FUNC_UNKNOWN_0xD3 (0xd3)
                                    · UNKNOWN_FUNC_UNKNOWN_0xD4 (0xd4)
                                    · undefined (0xee)
                                    · UNKNOWN_FUNC_UNKNOWN_0xEF (0xef)
2022-08-12T20:31:27.677Z SERIAL « 0x0110000400150a3202a14a00000004000229                              (18 bytes)
2022-08-12T20:31:27.678Z SERIAL » [ACK]                                                                   (0x06)
2022-08-12T20:31:27.683Z DRIVER     the node is unknown or not initialized yet, discarding...
2022-08-12T20:31:27.721Z CNTRLR   Performing soft reset...
2022-08-12T20:31:27.740Z SERIAL » 0x01030008f4                                                         (5 bytes)
2022-08-12T20:31:27.741Z DRIVER » [REQ] [SoftReset]
2022-08-12T20:31:27.744Z SERIAL « [ACK]                                                                   (0x06)
2022-08-12T20:31:27.757Z CNTRLR   Waiting for the controller to reconnect...
2022-08-12T20:31:29.259Z CNTRLR   Waiting for the Serial API to start...
2022-08-12T20:31:32.929Z SERIAL « 0x010c00040024063105014a1e14a0                                      (14 bytes)
2022-08-12T20:31:32.932Z SERIAL » [ACK]                                                                   (0x06)
2022-08-12T20:31:32.938Z DRIVER     the node is unknown or not initialized yet, discarding...
2022-08-12T20:31:34.261Z CNTRLR   Did not receive notification that Serial API has started, checking if it respo
                                  nds...
2022-08-12T20:31:34.281Z SERIAL » 0x01030015e9                                                         (5 bytes)
2022-08-12T20:31:34.282Z DRIVER » [REQ] [GetControllerVersion]
2022-08-12T20:31:34.290Z SERIAL « [ACK]                                                                   (0x06)
2022-08-12T20:31:34.293Z SERIAL « 0x011001155a2d5761766520342e3035000197                              (18 bytes)
2022-08-12T20:31:34.294Z SERIAL » [ACK]                                                                   (0x06)
2022-08-12T20:31:34.296Z DRIVER « [RES] [GetControllerVersion]
                                    payload: 0x5a2d5761766520342e30350001
2022-08-12T20:31:34.308Z CNTRLR   Serial API responded
2022-08-12T20:31:34.454Z CNTRLR   querying version info...
2022-08-12T20:31:34.472Z SERIAL » 0x01030015e9                                                         (5 bytes)
2022-08-12T20:31:34.473Z DRIVER » [REQ] [GetControllerVersion]
2022-08-12T20:31:34.476Z SERIAL « [ACK]                                                                   (0x06)
2022-08-12T20:31:34.483Z SERIAL « 0x011001155a2d5761766520342e3035000197                              (18 bytes)
2022-08-12T20:31:34.485Z SERIAL » [ACK]                                                                   (0x06)
2022-08-12T20:31:34.486Z DRIVER « [RES] [GetControllerVersion]
                                    payload: 0x5a2d5761766520342e30350001
2022-08-12T20:31:34.495Z CNTRLR   received version info:
                                    controller type: Static Controller
                                    library version: Z-Wave 4.05
2022-08-12T20:31:34.495Z CNTRLR   querying protocol version info...
2022-08-12T20:31:34.512Z SERIAL » 0x01030009f5                                                         (5 bytes)
2022-08-12T20:31:34.513Z DRIVER » [REQ] [GetProtocolVersion]
2022-08-12T20:31:34.516Z SERIAL « [ACK]                                                                   (0x06)
2022-08-12T20:31:34.518Z SERIAL « 0x0107010900040500f1                                                 (9 bytes)
2022-08-12T20:31:34.520Z SERIAL » [ACK]                                                                   (0x06)
2022-08-12T20:31:34.522Z DRIVER « [RES] [GetProtocolVersion]
                                    payload: 0x00040500
2022-08-12T20:31:34.539Z CNTRLR   received protocol version info:
                                    protocol type:             Z-Wave
                                    protocol version:          4.5.0
2022-08-12T20:31:34.542Z CNTRLR   supported Z-Wave features:
2022-08-12T20:31:34.542Z CNTRLR   querying controller capabilities...
2022-08-12T20:31:34.556Z SERIAL » 0x01030005f9                                                         (5 bytes)
2022-08-12T20:31:34.557Z DRIVER » [REQ] [GetControllerCapabilities]
2022-08-12T20:31:34.564Z SERIAL « [ACK]                                                                   (0x06)
2022-08-12T20:31:34.567Z SERIAL « 0x0104010514eb                                                       (6 bytes)
2022-08-12T20:31:34.569Z SERIAL » [ACK]                                                                   (0x06)
2022-08-12T20:31:34.571Z DRIVER « [RES] [GetControllerCapabilities]
                                    payload: 0x14
2022-08-12T20:31:34.578Z CNTRLR   received controller capabilities:
                                    controller role:      primary
                                    is the SUC:           true
                                    started this network: true
                                    SIS is present:       true
                                    was real primary:     false
2022-08-12T20:31:34.579Z CNTRLR   finding SUC...
2022-08-12T20:31:34.594Z SERIAL » 0x01030056aa                                                         (5 bytes)
2022-08-12T20:31:34.595Z DRIVER » [REQ] [GetSUCNodeId]
2022-08-12T20:31:34.598Z SERIAL « [ACK]                                                                   (0x06)
2022-08-12T20:31:34.601Z SERIAL « 0x0104015601ad                                                       (6 bytes)
2022-08-12T20:31:34.602Z SERIAL » [ACK]                                                                   (0x06)
2022-08-12T20:31:34.604Z DRIVER « [RES] [GetSUCNodeId]
                                    payload: 0x01
2022-08-12T20:31:34.611Z CNTRLR   This is the SUC
2022-08-12T20:31:34.612Z CNTRLR   querying additional controller information...
2022-08-12T20:31:34.624Z SERIAL » 0x01030002fe                                                         (5 bytes)
2022-08-12T20:31:34.625Z DRIVER » [REQ] [GetSerialApiInitData]
2022-08-12T20:31:34.631Z SERIAL « [ACK]                                                                   (0x06)
2022-08-12T20:31:34.683Z SERIAL « 0x0125010205081d31801b08ccff402010000000000000000000000000000000000 (39 bytes)
<PHONE_NUMBER>02d
2022-08-12T20:31:34.688Z SERIAL » [ACK]                                                                   (0x06)
2022-08-12T20:31:34.690Z DRIVER « [RES] [GetSerialApiInitData]
                                    payload: 0x05081d31801b08ccff40201000000000000000000000000000000000000000000
                                  500
2022-08-12T20:31:34.710Z CNTRLR   received additional controller information:
                                    Z-Wave API version:         5 (legacy)
                                    Z-Wave chip type:           ZW050x
                                    node type                   Controller
                                    controller role:            primary
                                    controller is the SIS:      true
                                    controller supports timers: false
                                    nodes in the network:       1, 5, 6, 16, 17, 18, 20, 21, 28, 35, 36, 39, 40,
                                   41, 42, 43, 44, 45, 46, 47, 48, 55, 62, 69
2022-08-12T20:31:34.909Z DRIVER   Cache file for homeId 0xd9b5ad0b found, attempting to restore the network from
                                   cache...
2022-08-12T20:31:35.759Z DRIVER   Restoring the network from cache was successful!
2022-08-12T20:31:35.765Z CNTRLR   setting serial API timeouts: ack = 1000 ms, byte = 150 ms
2022-08-12T20:31:35.779Z SERIAL » 0x01050006640f97                                                     (7 bytes)
2022-08-12T20:31:35.780Z DRIVER » [REQ] [SetSerialApiTimeouts]
                                    payload: 0x640f
2022-08-12T20:31:35.784Z SERIAL « [ACK]                                                                   (0x06)
2022-08-12T20:31:35.786Z SERIAL « 0x01050106960f64                                                     (7 bytes)
2022-08-12T20:31:35.788Z SERIAL » [ACK]                                                                   (0x06)
2022-08-12T20:31:35.789Z DRIVER « [RES] [SetSerialApiTimeouts]
                                    payload: 0x960f
2022-08-12T20:31:35.798Z CNTRLR   serial API timeouts overwritten. The old values were: ack = 1500 ms, byte = 15
                                  0 ms
2022-08-12T20:31:35.798Z CNTRLR   Interview completed
2022-08-12T20:31:35.799Z DRIVER   Network key for S0 configured, enabling S0 security manager...
2022-08-12T20:31:35.801Z DRIVER   At least one network key for S2 configured, enabling S2 security manager...
2022-08-12T20:31:35.813Z DRIVER   driver ready
2022-08-12T20:31:35.819Z DRIVER   Checking for configuration updates...
2022-08-12T20:31:37.565Z CNTRLR » [Node 069] pinging the node...
2022-08-12T20:31:37.575Z SERIAL » 0x010800130501002501c4                                              (10 bytes)
2022-08-12T20:31:38.008Z SERIAL « 0x010b0004001005800346000020                                        (13 bytes)
2022-08-12T20:31:38.011Z SERIAL » [ACK]                                                                   (0x06)
2022-08-12T20:31:38.012Z SERIAL « [CAN]                                                                   (0x18)
2022-08-12T20:31:38.015Z CNTRLR   Failed to execute controller command after 1/3 attempts.   Related or not, I'm irritated by https://github.com/130s/hut_10sqft/issues/673 anyways. Might as well just do that one first and come back at this.

As I've swapped the HASS hub that cannot be upgraded with the  new version with upgrade ability https://github.com/130s/hut_10sqft/issues/644, I was able to include the one of the garage controllers that was included without fully being recognized same as https://github.com/zwave-js/node-zwave-js/discussions/4705. I now see its manufacturer info etc. on HASS.
Yet, problem:

Command from HASS to move up/down the garage shutter doesn't trigger the shutter to move nor even trigger the beep sound.
Not just this node that was limbo but also the node that had been functioning with the old HASS https://github.com/130s/hut_10sqft/issues/680.

I noticed Highest security: None for both nodes, even though I thought I set S2 un/authenticated keys on Z-WaveJS server, from Android app. Turned out from the web browser on an Ubuntu laptop that the security keys were still empty. So I (re-)populated fom the laptop, factory-reset the garage opener device, made sure when starting an inclusion from Android app that S2 security is a priority (press an optional link that says something like "how do you want to add nodes"), exclude S0 security that is for "legacy" devices, then HASS surely starts inclusion process with this garage opener device that seems to require security.
Done with all 3 garage shutters.
Some issues I ran into but managed to resolve:

After I included 2 garage openers today with proper security setting, I saw on Lovelace 4 devices where I expected 2. Turned out those were the same devices but included previously so the node info still remained on Z-WaveJS server hence still appeared on HASS-Lovelace. On HASS I removed those as "remove failing device".
3rd garage finished inclusion, Z-Wave status was alive and ready, but garage shutter status showed both ↑ and ↓ (up/down arrows highlighted. Usually only one of them is highlited and the other one grays out), and clicking either of them didn't seem to start anything.

Solution: I found out the tilt sensor was installed in a wrong direction: It has upward facing arror sign that needs to face toward up. ALSO, its lid needs to face the same direction. community.smartthings.com/#27167/9 explains it.

So I (re-)populated fom the laptop, factory-reset the garage opener device, made sure when starting an inclusion from Android app that S2 security is a priority (press an optional link that says something like "how do you want to add nodes"), exclude S0 security that is for "legacy" devices, then HASS surely starts inclusion process with this garage opener device that seems to require security.

Once the handshake is started, HASS/ZWaveJS asks for a pin, which is 5-digit that is printed on a sticker on the (back of garage door) device. Screenshots:

Garage-2
Garage Highlander
Garage Minivan


Revert "DOCS-8304-mmasync-v42-duke"

Reverts mulesoft/docs-mule-runtime#1476

not happening. this is overkill. we're instead going to remove migration-munit* files and links to them via a different PR.


Make _WidgetsAppState.basicLocaleListResolution public

Use case
We are using flutter in the background (we create new FlutterEngine in the native code and start new flutter instance that runs independently from the visible Flutter).
Some of the code in this background isolate needs access to the current user's locale. We need some way of determining it.
In UI side, we use WidgetsApp that handles all locale stuff. However, on the background isolate, we cannot use widgets, since there is no UI. We must determine locale manually. After some digging, we determined that primary method for resolving user's locale is _WidgetsAppState.basicLocaleListResolution. But we cannot call that method from our background isolate, because it reside in a private _WidgetsAppState class.
As a workaround, we copied this whole method and we call our copy, but it is pretty hacky solution.
Proposal
Move basicLocaleListResolution to a public class or provide some other way for background isolates to resolve user's locale without relying on UI widgets.

CC @shihaohong

Hi! I just want to make sure I understand the need here -- Basically, you need to access the _WidgetsAppState .basicLocaleListResolution method because you need to be able to resolve the current locale based on the list of preferred locales (coming from the native device/platform) and the list of supported locales (coming from the Flutter code)?
I guess we could expose the default locale resolution as a standalone function through widgets/app.dart instead of having it as a static method of a private class. WDYT @HansMuller?

Moving the static basicLocaleListResolution method to WidgetsApp seems reasonable. Might be a good time to sort out the docs a little with @template and @macro. Maybe some of the extra info provided in the doc for supportedLocales should be included in the API doc for basicLocaleListResolution.

Basically, you need to access the _WidgetsAppState .basicLocaleListResolution method because you need to be able to resolve the current locale based on the list of preferred locales (coming from the native device/platform) and the list of supported locales (coming from the Flutter code)?

Exactly


'image' must be three-dimensional

Hi, sorry to interrupt you , I got another problem when running the program as follows :
Traceback (most recent call last):
File "main.py", line 42, in
main(config)
File "main.py", line 28, in main
config.data_format, config.split)
File "/home/chikiuso/Downloads/BEGAN-tensorflow/data_loader.py", line 48, in get_loader
queue = tf.image.crop_to_bounding_box(queue, 50, 25, 128, 128)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/image_ops_impl.py", line 473, in crop_to_bounding_box
assert_ops += _Check3DImage(image, require_static=False)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/image_ops_impl.py", line 131, in _Check3DImage
raise ValueError("'image' must be three-dimensional.")
ValueError: 'image' must be three-dimensional.

You need to install nightly build of TensorFlow as I mentioned in README.md. See README.md of TensorFlow.

You can also use tf.map_fn; something like:
tf.map_fn(lambda i: tf.image.crop_to_bounding_box(i, 50, 25, 128, 128), queue)

The following nightly worked for me (linux/gpu):
pip install --ignore-installed --upgrade \
http://ci.tensorflow.org/view/Nightly/job/nightly-matrix-linux-gpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON2,label=gpu-linux/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow_gpu-1.1.0rc1-cp27-cp27mu-linux_x86_64.whl

@fwiffo  thank you

I am using python3.6 & tensorflow 1.01. I dont want to upgrade yet, so was trying to work with minor modifications. For anyone else using this on older tensorflow + newer python, below are my edits to get it running.
In addition to @fwiffo edits above, I also had to change import StringIO to import io in trainer.py.
Also for some reason, I had to cast np.prod([8, 8, hidden_num]) to an int like int(np.prod([8, 8, hidden_num])) twice in models.py (line 7, line 39 as of now)

The built @dribnet mentioned worked for me, but I used a different url
https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-linux-gpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON2,label=gpu-linux/499/artifact/pip_test/whl/tensorflow_gpu-1.1.0-cp27-cp27mu-linux_x86_64.whl


add log_path flag to command line utility

as directed by the README, the command
python -m baselines.run --alg=ppo2 --env=PongNoFrameskip-v4 --num_timesteps=2e7 --save_path=~/models/pong_20M_ppo2
saves the learning curve logs by default to /tmp/, or otherwise set by the env variable $OPENAI_LOGDIR. This was not immediately obvious to me, so I thought it would improve the command-line usage to include a flag for specifying the log directory. Additionally, since both save_path and load_path rely on flags and not on env variables, I thought it would be best to keep log_path in line with that same functionality/behavior.

OK. I updated the doc with an example, and included a note in case there were gotchas about its usage.

Awesome, thanks! Merging


Updated bug report template

Codecov Report

Merging #18 (d421136) into master (9c05586) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #18   +/-   ##
=========================================
  Coverage     50.98%   50.98%
  Complexity       64       64
=========================================
  Files             6        6
  Lines           759      759
  Branches         69       69
=========================================
  Hits            387      387
  Misses          351      351
  Partials         21       21

Continue to review full report at Codecov.

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


Integrate simple dependency injection container into common bootstrap

Provides a path to replace a service's global variables with instances managed by the DIC which are injected into controller methods.
Dependent upon completion of #1801, #1802, #1803, #1804, #1807, #1808, #1809, and #1810.

Now dependent upon #1858

TSC discussed during Geneva pre-wire F2F and voted to allow core to merge this prior to Fuji release.


That's really unfortunate. I'll see if I can figure something out.

That may not be desirable or doable, but I've noticed that discourse uses ActiveSupport::Cache without cache entries altogether. It also doesn't support versioning, and the expiry is done in Redis directly. But for a String, you may be able to skip the Array altogether in EntryCoder?

Unfortunately storing the TTL is necessary for race_condition_ttl which IMO is an important feature.
But I think we can handle both by moving the versioning lower.


Cohort five slide changes

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)

Some image updates
Some typos
changes "module" to "session" throughout
one SQL error, if you can imagine such a thing :P
updated dates in external file

Checklist

[x] I can confirm that my changes are working as intended

hopefully i wasnt stupid in forking from the assignment change fork....

updates made


Test failed

I am running Sapphire and Sapphire Ice on master.
Firedrake commit 0a7f0cc82e8dfba9cbce6b0d4f84b458bf602de0 on master.
  These values maybe updated by
                       accessing the property of the same name.
        """
        # Init also called in mesh constructor, but expression can be built without mesh
        if code is not None:
>           raise ValueError("C string Expressions have been removed! See: https://www.firedrakeproject.org/interpolation.html#c-string-expressions")
E           ValueError: C string Expressions have been removed! See: https://www.firedrakeproject.org/interpolation.html#c-string-expressions

/home/sajid3900/firedrake/src/firedrake/firedrake/expression.py:77: ValueError
=================================================== warnings summary ===================================================tests/test__regression__freezing_water_in_cavity.py::test__validate__freeze_water__regression
  /usr/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: numpy.ufunc size changed, may indicate binary incompatibility. Expected 192 from C header, got 216 from PyObject
    return f(*args, **kwds)

For the record: We now have Travis-CI testing with the latest Firedrake (via Docker) as of commit f0fae97b476c952008236cb2eb6c5749b3a01fb5 .


Raiplay - Site Updated - Dowload do not start

From few days Raiplay website is changed and now youtube-dl ca not dowload is stream
$ youtube-dl -v https://www.raiplay.it/video/2017/01/Il-quinto-potere-df98d885-128b-40d8-8e7c-118eef7a0e79.html
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://www.raiplay.it/video/2017/01/Il-quinto-potere-df98d885-128b-40d8-8e7c-118eef7a0e79.html']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.10.29
[debug] Python version 2.7.15+ (CPython) - Linux-4.15.0-65-generic-x86_64-with-LinuxMint-19.1-tessa
[debug] exe versions: ffmpeg 3.4.6, ffprobe 3.4.6
[debug] Proxy map: {}
[RaiPlay] df98d885-128b-40d8-8e7c-118eef7a0e79: Downloading video JSON
ERROR: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 627, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2237, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python2.7/urllib2.py", line 435, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 473, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

I tested with https://www.raiplay.it/video/2017/11/La-strada-di-casa--S1E1-d3652f8b-a7f8-453e-8f45-9654ff1411ad.html and it works fine:

Not work


fix(module:empty): consistent empty style

PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows our guidelines: https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/CONTRIBUTING.md#commit
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Application (the showcase website) / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?
The empty component is not consistent, it has a smaller image, but when used in some other component it has a different style (bigger image and different color of description).
Issue Number: #6905
What is the new behavior?
It will have disabled-color (0.25 black opacity) for description text and image height of 100px, equal to .ant-empty-image class for normal state. This is similar to small state with different image size.
Does this PR introduce a breaking change?
[ ] Yes
[x] No

Other information

I'm sure the problem is not in the styles file which is synced from ant-design, it's caused by missing ant-empty-normal


documentation

Closing this issue as there's no description here. Feel free to re-open with additional info.


Too slow even with provisioned provisioned concurrency

Hello
I have added 4 provisioned concurrencies, with 650MB, but even so, I notice its too slow to start, is there any recommendations? Is there anyone used with Rails app in a good performance ?

Have you read this guide? https://lamby.custominktech.com/docs/cold-starts?
At a minimal, your Rails Lambda should be at 1792 which is 1vCPU. I'd be curious to hear why you need provisioned concurrency too. Lots of details please.

FYI, I just transferred the docs site to lamby.cloud. So that link above might have been broken for a few hours. Should be working now with redirects.

Thanks @metaskills , that was useful to point out, I have set memory to 1792, much faster, but still can be faster if I use the right web server, currently, I am using Puma as the web server, built for parallelism, but it will not useful to use in AWS Lambda.
Do you recommend any fast web server other than Puma? Any suggestions to make the Rails app bootstrapping faster would be appreciated.

Thanks for explaining, as I have already deployed my Rails app to an EC2 cluster, I was relying on a web server, I just forgot that I will not needed it on Lambda as being a Rack application.

Cool, let me know what you find out with the cold starts and how your workloads might differ from the assessment in the guides. We can always amend them with other's knowledge and use cases.


Update zenodo for chip seq xi

Per a user complaint, cc @bgruening

Awesome, we ping jekyll to <4, which gets installed, but something is pulling in jekyll-4 just a few lines later https://travis-ci.org/galaxyproject/training-material/jobs/577850831#L1451

It seems like there is again a conflict between the gem dependencies. I am investigating

@bebatut it seem we are not using the lock file, can this be?

we are not using the lock file on Travis, just for Heroku


map loss data

(you don't have to strictly follow this form)
Bug Report
Briefly describe the bug
Data in map type fields will be lost

The result you expected
normal data query
How to Reproduce
create table SQL
CREATE TABLE datax.test_map_01 (    c_dateDate,    c_datetimeDateTime64(3),    s_mapMap(String, String),    i_mapMap(String, Int64),    f_mapMap(String, Float64) ) ENGINE = CnchMergeTree PARTITION BY c_date ORDER BY c_date TTL toDate(c_date) + toIntervalDay(30) SETTINGS index_granularity = 8192;
insert data SQL
insert into datax.test_map_01(c_date, c_datetime, s_map, i_map, f_map) values ('2023-04-14', '2023-04-14 13:16:17', {'s_a': 'abc', 's_b': 'ffff', 's_c': '123', 's_d': '1233', 's_e': '1234', 's_f': '1234'}, {'age': 18},         {'price': 10.20000003});
query SQL
select * from datax.test_map_01;
At the beginning, the query is normal. After about 20 minutes, the data will loss
Version

@skyoct it's a merge issue. Data will be lost after merging parts.

@canhld94 got it, thx


Copying and pasting?

I can not seem to find anything regarding implementing copying and pasting on native apps. I would really appreciate if someone could point me to an example or documentation for that.
Thanks!

I just commented in a similar issue: https://github.com/hecrj/iced/issues/295#issuecomment-617297365
I am closing this in favour of that one.

I just commented in a similar issue: #295 (comment)
I am closing this in favour of that one.

NP! Thank you for your anwser.


Distribute SL7 .spec file in repo, as requested by A. Mercer

See https://bugs.ligo.org/redmine/issues/4759#note-2.
Yay, more PRs!

Looks good to me.


Refactor internal executor scripts

Move all scripts to files distributed with the package

Provide a dataclass Script to easily define new scripts

Introduce TMT_REBOOT_REQUEST env var to remove the need
to generate the script on the fly

Copy the scripts to the target, set their permissions
via rsync

Drop the setup and tierdown scripts, drop backup of the
possibly rewritten files (I do not consider this use case
valid enough to complicate the code)

Update documentation

TODO

[x] passing tests
[x] container provisioner
[x] dataclasses on python 3.6
[x] push all scripts in one push
I do not see a speed benefit here worth looking improving this
[x] add coreos testing
so Fedora CoreOS does not work via testcloud, so I am afraid we cannot add tests in this MR
the good information is, that the path /usr/local/bin is writable :guitar:
[x] document overwriting of restraint scripts

Signed-off-by: Miroslav Vadkerti<EMAIL_ADDRESS>

@FrNecas, please have a look and share your thoughts on the proposed changes.

I do believe this is finally ready for review, I got burned for few hours on enumerate usage. I added comment for future reviewers of the code, who would be wondering why the hack enumerate is not used for iterating over tests :dancers:

@pfdaly there go my plans for Monday :( Sorry for the delay, but it is finally all green and ready to be used as a base for your work.

:rocket: thanks all for review and the appreciation, I am happy we made it simple. I am now a bit less worried about tmt not being able to mock restraint :)


[GithubLastCommit] [GitlabLastCommit] [GiteaLastCommit] Support file path for last commit

Closes #7351
Adds support to resolve last commit for a given file path, for GitHub, GitLab and Gitea services.

Thanks. This looks good, but I think we could do with improving the error handling/messages slightly.
On the GitLab and GitHub APIs, if we specify a path that doesn't exist, we get back an empty array. This means the response fails schema validation.
Tbh, I suspect this probably also happens for a repo with zero commits, but this is not something that has come up before.
It would be nice to throw a more informative error in this cases. My suggestion would be we remove the .min(1) requirement from the schema and then after we fetch we throw a NotFound('no commits found') if there are zero items in the array (to cover both situations).
With the Gitea API, if the path doesn't exist, we get a 404 back and throw the error "user or repo not found". I think for this case, we can just amend the error message to "user, repo or path not found"
We should also have test cases for the errors.

Just looking over your other similar PR for bitbucket, you've already adopted the same pattern I described for the error handling there :+1:

@chris48s I've made the suggested changes - tests are passing locally so not sure why they are failing in CI (can't see from the log).

Thanks. This looks good.
Looks like the test failures were just a transient failure with some requests timing out.


goeland: 0.11.0 -> 0.12.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/slurdge/goeland/releases.
meta.description for goeland is: "An alternative to RSS2Email written in golang with many filters."
meta.homepage for goeland is: "https://github.com/slurdge/goeland"
meta.changelog for goeland is: ""
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.12.0 with grep in /nix/store/cv04w5zikkbzhrjg6li7ilgrkkjb67b0-goeland-0.12.0
found 0.12.0 in filename of file in /nix/store/cv04w5zikkbzhrjg6li7ilgrkkjb67b0-goeland-0.12.0

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
goeland

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/cv04w5zikkbzhrjg6li7ilgrkkjb67b0-goeland-0.12.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A goeland https://github.com/r-ryantm/nixpkgs/archive/b96034553d562ff1180447405ec1f6a217a17ed7.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/cv04w5zikkbzhrjg6li7ilgrkkjb67b0-goeland-0.12.0
ls -la /nix/store/cv04w5zikkbzhrjg6li7ilgrkkjb67b0-goeland-0.12.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

goeland

Maintainer pings
cc @sweenu for testing.

0.12.1 is out, I'll close this MR


Anything Goes - Extreme Tier Shift

I've been playing ETS and I thought:
Wouldn't it be 10/10 if this could be used on AG?
So I made it, here it is, ANYTHING GOES, EXTREME TIER SHIFT Edition.

No. If you would like to submit this metagame to Smogon, read this.

ogay.

*okay


[SpeedDial] - remove unecessary 'onKeyDown' prop sent to SpeedDialAction

I added a 'zero warnings' unit test to catch out the error and then removed the setting of the (seemingly) no-longer-needed prop on the child SpeedDialAction children. I also manually tested on my own app.
closes #12159

@zanerock I'm not sure that this is redundant, so much as that Tooltip broke SpeedDialAction keyboard interaction at some point (#12361), so that it doesn't currently do anything. That doesn't mean it isn't needed...

Thanks for the link to #12361, I get it. I expect to have time to take another run at it later this week.

I took another run at fixing it, but I cannot tell what 'onKeyDown' being added by SpeedDial is doing. It looks like the only other place for it to go is the Button created by SpeedDialAction, but it's not. But if the idea from #12361 is to be able to tab to the action buttons, then the tabIndex={-1} would seem to break that. I tested manually, and I could tab to the FAB just fine, but I couldn't tab to the action buttons as expected.
@mbrookes Is it possible the problem causing #12159 (warnings from Tooltip) was introduced by a partial fix to #12361 (FAB actions not tab accessible)?


Which Exception is thrown?

These methods "throw an exception if there is not exactly one element in the sequence." It would be great if it was documented which exception was thrown so that I could catch it.

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

ID: d3b7deb0-a592-b6dc-1564-fba73a4dcb4c
Version Independent ID: 1836b7d9-419e-d8a4-51ff-09f504a56462
Content: EntityFrameworkQueryableExtensions.SingleAsync Method (Microsoft.EntityFrameworkCore)
Content Source: dotnet/xml/Microsoft.EntityFrameworkCore/EntityFrameworkQueryableExtensions.xml
Product: entity-framework-core
GitHub Login: @dotnet-bot
Microsoft Alias: divega

Duplicate of https://github.com/dotnet/efcore/issues/20086


[Bug] Headline hidden when navigating to anchor link

Problem:
When I click on a link in the left nav, the headline is hidden under the persistent navigation.
Proposed Solution:
Add invisible margin/padding top to headline anchor link?

Solved by e6b969768b5808873b0b271b436f34560e7a2721


Install the docker machine will delete the original images

I have create and pull some images. when I install the docker-machine, all images before disappear.
how can i found the images before?

Last year I had some docker containers disappear on me when updating docker-compose.  Docker was using aufs as a storage driver.  While docker had forgotten about them, my files were still there under /var/lib/docker/aufs, so I was able to locate the relevant layer with tools like find and grep and then copy the files into a new image.

I am experiencing this as well - I am preinstalling docker and pulling the latest version of my custom build docker image for a Gitlab CI setup on Google Cloud.  This is to improve the spin-up time of CI builders/runners.
When docker-machine runs it skips through the Docker install part pretty quickly, but will then re-pull the docker image every time, as it doesn't seem to be there anymore when I run "docker images"

It looks like all of these issues are the same thing - docker machine using a different storage engine from what is being used by docker.
While there is a way to configure docker machine to avoid this issue, the default storage engine choice is inconsistent with docker defaults.
Can these defaults be changed?

I noted above similarity to issues with docker-compose disconnecting images from their containers.  I'm wondering if storage driver mismatches makes sense there?
I can identify docker's storage driver with docker info.  What's the equivalent for docker-machine?  And for docker-compose if that makes sense?


Integrate logic from osm2pgsql-tuner to allow offline processing

Details
Suggested by @jacopofar on #186, thank you!
The Docker image should include the logic for the osm2pgsql command locally to remove the need for a network call to osm2pgsql-tuner.com.  The biggest benefit is true-offline processing becomes possible.  A secondary benefit is removing any concern that there's any sort of tracking/analytics/stalking via that API (there isn't, just standard nginx logs).
Approach
Should be trivial to clone the osm2pgsql-tuner repo into the image and change the logic from calling the API to importing the osm2pgsql.py module and using the recommendation class.  This task will likely come with improvements to the tuner project to make it easier for PgOSM Flex to make the customization needed for this project.

Ended up making the recommendation engine a package via PyPI.  #195 makes the switch without changing any functionality.


[MM-18768] Remove deprecated lifecycle methods from channel info

Summary
Remove deprecated lifecycle methods from channel_info and edit_channel
Ticket Link
Fixes https://github.com/mattermost/mattermost-server/issues/12351

Thanks @hmhealey and @enahum for your suggestions and patience

Build Apps for PR label detected. Will generate the app if build succeeds (checks pass and no conflicts with base branch).

Build the App failed. See the logs for more information.

@hmhealey @enahum Can either of you help with a build to test this PR? Thank you!

@prapti to be honest I don’t this needs a build, perhaps running it on a Sim is enough?

@prapti to be honest I don’t this needs a build, perhaps running it on a Sim is enough?

@enahum I don't have sims set up on my end. In that case, would it be enough if only devs approved?

@prapti I'll build the PR. be on the lookout for the builds in the QA channel

Sounds good. Thank you @enahum !

@hmhealey this one is ready to be merged!


docs: release-notes: Add release entry for OSDP

Patch adds release notes for mgmt/osdp
Related to: #75933

@kartben please take another look :)


Unexpected Code Block Indentation

Under current styling, the beginning and end of text within multi-line code elements are indented as seen here:

This is due to the horizontal padding found here: https://github.com/mrin9/RapiDoc/blob/759a18340e49ad7eddaa24953608bdf136625e27/src/styles/font-styles.js#L97
As code is expected to be reproduced verbatim, this styling implies to users that there is a preceding or trailing space in the code.  I propose we shrink the padding to eliminate this misperception.

Yep, there are other issues too.

Multiline code block shouldn't be red color  thats for inline mono-spaced font
background color should be spanning the whole block instead of limiting it to text-span

Something like below

The PR you submitted wont cover all the cases plus it will disturb the other cases
will get it fixed soon in a separate commit


shethshlok

The Readme file is currently lengthy and complex, making it challenging for newcomers to comprehend how to contribute effectively to the project.
To enhance accessibility and clarity, I propose relocating the Contributing section to the beginning of the Readme file and streamlining its content where feasible.
I kindly request assistance from anyone willing to dedicate time to address this issue and improve the project's accessibility for all contributors. Thank you!

Hello Developers, My name is Shlok Sheth, I am a full stack developer completing my masters in Computer Science at Northern Arizona University, in Flagstaff. I am in enrolled in CS 599 - Open Source Development class. This is is my first issue in this repository and my goal is to resolve and redefine the README file so that user and new visitors have a clear idea about the project especially the contributing section.

Hey @caiton1, I would appreciate your advise, given your contribution to this project and expertise, could you recommend me any specific changes I should make to the README file. Here is what I think:

Shift the Contributing section to the top.
Add more images or flow chart to the read me to explain it to a new visitor
Add installation instruction for different operating systems.

I have resolved the issue and filed a pull request #109


Does not work with local files

I wanted to use this to see what is making up the size of a local HTML file - how much of it is images, how much is scripts, how much is just HTML etc etc.
I am not interested in its network performance as it is just loading from local disk.
When I click on the extension icon I get the message
Cannot attach to this target.

This is a limitation of the system. chrome.debugger.attach() denies attaching to local files.
Serve the local files via http server (like "python3 -m http.server") and then inspect.

Thanks Tomi, no problem.


Data can't be edited inline after double click

System information:

Operating system (distribution) and version Ubuntu 22.04
DBeaver version 22.1.0

Steps to reproduce, if exist:

Double-click on any cell in data editor
Input something

Expected: Data in a cell is replaced with the input
Actual: Nothing happens

#5322

It's a Wayland-specific issue.

Yep, confirmed on Debian Gnome on Wayland. And was not reproduced in Debian KDE on X11


Rotate List to practice skills section

📥 Pull Request
Description
Rotate List to practice skills section
Fixes #1770
Type of change

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

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules

@ajay-dhangar Okay, I'll give the update by eod.

@ajay-dhangar I tried reforking and cloning the repository as there is problem with syncing and updation, and I'm not able to clone the website it is showing like this.

@ajay-dhangar I tried reforking and cloning the repository as there is problem with syncing and updation, and I'm not able to clone the website it is showing like this.

I'm sorry, but you must delete the algo project from your machine or system and reclone our repo with the latest commit. If you get errors, please read this Stack Overflow question: [Error: "1824 bytes of body are still expected" while cloning repository from GitHub]

@ajay-dhangar I tried to make the changes in a new pull request, can you please review it.
https://github.com/ajay-dhangar/algo/pull/1834


docs: improve description of rev requirements for post/put document

PR summary
The goal of this PR is to improve the description of _rev/rev requirements for post/put document. I also fixed the ornamentation comment lines to 82 char length because I caught those not shared the same length. I also tried to explain where _id/docId is necessary similarly to _rev/rev.
I decided to use /*...code is here...*/ for code comments and ornamentation lines before and after the explanation plus the commented out codes because with this way maybe the eyes can catch what belongs to what. Something like this:
// ========================================================================
// Note: the next code bla bla bla..:
/*
 code is here
*/
// ========================================================================

❗ REVIEWERS ❗
Please read the Other information section before review
PR Checklist
Please make sure that your PR fulfills the following requirements:

[x] The commit message follows the
Angular Commit Message Guidelines.
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

PR Type

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] New tests
[ ] Build/CI related changes
[x] Documentation content changes
[ ] Other (please describe)

What is the current behavior?
Lack of explanation around the usage of id and rev fields in CUD operation examples.
What is the new behavior?
Explanation in example code how to use putDocument along with postDocument and:

_id is a MUST at CREATE for putDocument
_id is OPTIONAL at CREATE for postDocument
_id is generated at CREATE when it is not provided postDocument
_id and _rev is a MUST at UPDATE
id parameter is a MUST at UPDATE for putDocument
rev parameter can be replaced by _rev in the document object both for postDocument and putDocument
id and rev parameter is a MUST at DELETE

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information
❗ REVIEWERS ❗
I would like to ask you to review only *.js files in the first round. This way we can discuss wording in one place and I will fix them in both .js and .ts files. Thanks in advance!

Thanks for the reviews @emlaver and @tomblench. I'm about to merge this!


Needs more tests

The current test suite has very poor coverage.  Before it will be production ready, this project needs much better coverage.  This bug will track progress as the test suite is improved:

[x] readdir returns "." and ".." entries (#40)
[x] lookup works on "." and ".." entries (#40)
[x] lookup
[x] Read data from dense files that use XFS_DINODE_FMT_EXTENTS (#67)
[x] Read data from dense files that use XFS_DINODE_FMT_BTREE (#67)
[x] Read data from sparse files (#91)
[ ] Read data from reflinks
[ ] lseek with SEEK_HOLE/SEEK_DATA
[ ] lseek with SEEK_HOLE should return ENXIO when the offset points past EoF
[x] stat can read all file metadata (#61)
[x] Timestamps from before the Epoch are reported correctly. (#64)
[x] readlink on a short form symlink (#54)
[x] readlink on an extent symlink (#54)
[x] stat on a short form symlink (#62)
[x] stat on an extent symlink (#62)
[x] stat works for fifos, sockets, blk, and chr devices. (#64)
[x] hardlinks work.  stat should return the same metadata for each and the link count should be correct.  lookup via both paths should return the same ino. (#62)
[x] A XFS_DINODE_FMT_LOCAL file's extended attributes can be listed. (#47)
[x] A XFS_DINODE_FMT_EXTENTS file's extended attributes can be listed.  (#47)
[ ] A file's extended attributes can be listed if they are stored in a BTree (XFS_DA3_NODE_MAGIC)
[ ] A XFS_DINODE_FMT_BTREE file's extended attributes can be listed.
[ ] Extended attributes that use short form and XFS_DINODE_FMT_LOCAL can be read.
[ ] Extended attributes that use leaf and XFS_DINODE_FMT_EXTENTS can be read.
[ ] Extended attributes that use node and XFS_DINODE_FMT_EXTENTS can be read.
[ ] Extended attributes that use btrees and XFS_DINODE_FMT_BTREE can be read.
[ ] Extended attributes both version 1 and 2 can be read.
[x] Attempt to get a non-existent extended attribute fails gracefully. (#65)
[x] statfs and statvfs return reasonable values for all fields. (#63)

Since this list is mostly complete, I'm going to close the issue.  The remaining items are tracked as separate issues: #106 #113  and #114 .


Reorder Utility Patches for Go 1.20 and 1.21

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/approve


Better Handling of SegFaults

Current behavior is a blocking infinite loop (not ideal).  We need to, at the very least, reboot on a hardfault.  A better approach would be to add a hot_init flag to the modules that does intelligent (fast) initialization.
The current reboot time is something like 0.5 seconds.  Wouldn't work well on a multirotor, but would totally work on a fixedwing.  Then again, we hope that there aren't any segfaults at all, but in the case we do have them, we need to do something a lot better than what we are doing now.
(This is coming from @BillThePlatypus flying a mis-matched version of the airbourne library that caused a segfault under certain circumstances)
Also, it would be way nicer if the registers captured in the prvGetRegistersFromStack function were forwarded to rosflight_io after a crash, so we can actually debug the hardfault.

Closed by #334


Add response_retriever option to support proxied scraping

Added response_retriever option when constructing the Scraper, to make configuring proxies etc. a bit easier (or using something like ScraperBox)
Defaults to the existing standard requests call, just gives some more options!

LGTM!


Unsticky function not working :(

I tried to remove sticky using $('#element').unsticky(), but the console return the error: Uncaught TypeError: $(...).unsticky is not a function.
Why the console is returning this warning message?

I found the error, I didn't even notice that I was using a Y at the end of the function ...


System reboot pulls new cilium/cilium:latest image, resulting in crashloopbackoff with wireguard interface

Bug report
Summary
One of my kubernetes nodes rebooted unexpectedly - which has in the past been fine/recoverable. Today though, it pulled a new cilium image (cilium/cilium:latest) because the ImagePullPolicy is Always, instead of IfNotPresent. This new image resulted in a crash loop for cilium, breaking my cluster until I figured out the image changed and I tagged the prior image and edited the daemonset to force it to be used.
There are three problems here:

I don't believe a system reboot should silently upgrade the cilium docker image to the latest one, potentially breaking the node as it did in my case (i.e. the ImagePullPolicy should be IfNotPresent, rather than Always)
Even if the ImagePullPolicy needs to be Always for security updates, installing Cilium using this helm chart should not have picked cilium/cilium:latest, rather than cilium/cilium:v1.7.
Both latest and v1.7 are broken on my system. I am connecting my nodes together with WireGuard, which does not have a MAC address. The current script seems to die trying to find its mac address, which was apparently not needed in the past.

General Information

Cilium version

Client: 1.7.90 822a64e46 2020-04-13T14:48:20-07:00 go version go1.14.2 linux/amd64
Daemon: 1.7.90 822a64e46 2020-04-13T14:48:20-07:00 go version go1.14.2 linux/amd64

Kernel version : 5.3.0-59-generic
Orchestration system version in use: Kubernetes/Kubeadm

Server Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.3", GitCommit:"06ad960bfd03b39c8310aaf92d1e7c12ce618213", GitTreeState:"clean", BuildDate:"2020-02-11T18:07:13Z", GoVersion:"go1.13.6", Compiler:"gc", Platform:"linux/amd64"}

Original installation process was basically:

helm repo add cilium https://helm.cilium.io/
helm install cilium cilium/cilium --version 1.7.0 \
    --namespace kube-system \
    --set global.kubeProxyReplacement=strict \
    --set global.k8sServiceHost=<IP_ADDRESS> \
    --set global.k8sServicePort=6443 \
        --set global.nodePort.range='3300\,32000'```

Working docker image:

cilium/cilium (ID: 0d45ffd70126 from 2020-04-24T02:57:19.607562726Z)

Broken docker images:

cilium/cilium:latest (ID: a396a542ce1d from  2020-06-13T04:25:34.540406702Z)
cilium/cilium:v1.7 (ID: 00ccab104fb9 from 2020-06-12T13:05:47.387468634Z)

Log from cilium pod as it tries to start up and fails:
https://gist.github.com/Combustible/2868225d86b3080d460478745c718b49
Relevant snippet:
level=warning msg="++ ip link show wg0" subsys=datapath-loader
level=warning msg="++ grep ether" subsys=datapath-loader
level=warning msg="++ awk '{print $2}'" subsys=datapath-loader
level=warning msg="+ MAC=" subsys=datapath-loader
level=error msg="Error while initializing daemon" error="exit status 1" subsys=daemon
level=fatal msg="Error while creating daemon" error="exit status 1" subsys=daemon
level=info msg="All pre-existing resources related to policy have been received; continuing" subsys=k8s-watcher
level=info msg="regenerating all endpoints" reason="one or more identities created or deleted" subsys=endpoint-manager

Actual output from ip link show wg0:
5: wg0: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/none

In general latest tag is not recommended practice for production systems with the most of the docker images unless this is what you truly desire. You should pinpoint images to use minor and patch versions to avoid that issue. You can find references for that from several articles, for example https://docs.docker.com/develop/dev-best-practices

When building images, always tag them with useful tags which codify version information, intended destination (prod or test, for instance), stability, or other information that is useful when deploying the application in different environments. Do not rely on the automatically-created latest tag.

Additionally for reboot, the same issue can happen then you add new nodes to Kubernetes cluster meaning that you have different versions of images for same service.
I only wonder if you used helm-chart to install Cilium, you already locked to release --version 1.7.0. Is it possible that you changed image to latest manually?

@Combustible you should really avoid using latest as recommended per https://kubernetes.io/docs/concepts/containers/images/#image-names. Anyway, I'm wondering how did you end up using latest considering that you specified --version 1.7.0.
Re wireguard: Do you use the wireguard tunnel for communication among k8s nodes?

Anyway, I'm wondering how did you end up using latest considering that you specified --version 1.7.0.
This is what I'm wondering too :) - I am almost certain I never specified latest myself. I know the recommendation is not to do this, for exactly the breakage reasons I experienced here. I assumed that the helm chart would set me to a reasonable docker image (i.e. using 1.7.0 would point to v1.7). If the image pull policy was set to IfNotPresent, there would never have been any updating, even within the same major version - it'd have just re-used the locally present image. I'd have noticed the problem with the 1.7 docker image/wireguard when I went to add a new node, but that would have been much less disruptive.

Re wireguard: Do you use the wireguard tunnel for communication among k8s nodes?
Yes, I use wireguard for all of my inter-node communication between k8s nodes. My setup is somewhat simple - I have two nodes - a master and an auxiliary, both baremetal servers hosted on the public internet, with a public link between them. The auxiliary has no externally accessible ports - all of the IPTables rules allow only connections from the wireguard interface or 10.x.x.x that kubernetes tunnels over it. All external traffic goes to the master node. This took some fiddling to get set up but seems to work very nicely, and performance is adequate for my needs.  I have a lot of NFS mounts between the two servers, which is why I'm using wireguard to protect everything instead of cilium's built-in encryption scheme. I'm sure this is entirely overkill, but I appreciate having my internal traffic between nodes be integrity protected / encrypted.

I'm running a ton of stuff, the vast majority on the master node, and primarily using the auxiliary node for overflow when the master server doesn't have enough RAM.
I use 172.30.200.x for my wireguard subnet, and 10.x.x.x for the kubernetes CIDR.

Closing in favor of https://github.com/cilium/cilium/issues/12317.


feat: inserted user role into the pdf manager.

Description
Passing User Role into the PDF template, so that contents can be rendered based on the user role using if conditions.
Motivation and Context
To filter content based on User Role.
How Has This Been Tested
Manually

For now it is fine by me. I see that the role is only passed through but it is not used yet.

Yeah. The role is handled in the handlebar template, that we write in the editor. So it will not be a part of the code.

@mutambaraf @martin-trajanovski This PR has new commit: Using Header and Footer from the Request rather than the static files. This is for Custom PDF generation. For Auto PDF generation, the header and footer are still from the static files only(header.hbs and footer.hbs).

https://github.com/UserOfficeProject/user-office-factory/assets/132274772/18dd599f-e0e1-4c2d-9cee-4a5c6ed26fd6

Screen.Recording.2023-07-21.at.16.08.21.mov

@yoganandaness just wanted to be sure about footer. As I see on the video I can't see the Footer text that was in the template. Is this not ready yet or it is there but it is my misunderstanding.

LGTM

Its taken care. Thanks a ton.


Error resolving referenced formulae ( zcl_excel_common=>determine_resulting_formula )

The following program demonstrates the error
REPORT.
DATA: lv_resulting_formula  TYPE string,
lv_referenced_formula TYPE string.
lv_referenced_formula = '=IF($G$2=1,R27+U27+Y27+AC27+AG27+AK27+AO27+AS27+AW27+BA27+BE27+BI27,0)+IF($G$2=2,R27+V27+Y27+AC27+AG27+AK27+AO27+AS27+AW27+BA27+BE27+BI27,0)'.
lv_resulting_formula = zcl_excel_common=>determine_resulting_formula( iv_reference_cell     = 'G26'
iv_reference_formula  = lv_referenced_formula
iv_current_cell       = 'G27' ).
WRITE:/ lv_referenced_formula.
WRITE:/ lv_resulting_formula.
Resulting formula is truncated

Reason:  ZCL_EXCEL_COMMON=>SHIFT_FORMULA uses a textfield of length 132 which truncates the result

Hi Stefan,
when you patch that problem please add or extend the unit test for ZCL_EXCEL_COMMON=>SHIFT_FORMULA.
Best regards
Gregor

Fixed with revision 406
Gregor: I'll update this comment after lunch to respond to you


Crash with fp16 in pytorch 1.11

Crash due to new signature of autocast.__exit__() in pytorch 1.11
See below, now args are required:
https://github.com/pytorch/pytorch/blob/0b1f3bd158bec2cf4ab6bfde573d691c65b0742d/torch/autocast_mode.py#L201
Error:
Traceback (most recent call last):
 File "/Midgard/home/mrabadan/anaconda3/envs/multitask/lib/python3.8/contextlib.py", line 120, in __exit__
    next(self.gen)
  File "/Midgard/home/mrabadan/anaconda3/envs/multitask/lib/python3.8/site-packages/accelerate/accelerator.py", line 573, in autocast
    autocast_context.__exit__()
TypeError: __exit__() missing 3 required positional arguments: 'exc_type', 'exc_val', and 'exc_tb'

Could you explain how you got this error? Executing a few examples with mixed precision with PyTorch 1.11 and I didn't get it.

I run as pytorch -m torch.distributed.run myscript and I set the fp16 argument in the Accelerator to true. Using master.

Like I said, I have no problem with this, so I need a clear reproducer to be able to help.

There you go. Tried on three different machines with fresh installs.
Minimal conda env:
name: test
channels:
  - pytorch
dependencies:
  - cudatoolkit=11.3
  - pip
  - pytorch
  - pip:
    - accelerate
    - packaging

Example script to reproduce:
import torch
import accelerate

accelerator = accelerate.Accelerator(fp16=True)

a = torch.ones((2,10)).cuda()
criterion = torch.nn.CrossEntropyLoss()

with accelerator.autocast():
    out = criterion(a,a)

Result:
Traceback (most recent call last):
  File "/home/miquelmr/multitask/test2.py", line 10, in <module>
    out = criterion(a,a)
  File "/home/miquelmr/miniconda3/envs/test/lib/python3.9/contextlib.py", line 126, in __exit__
    next(self.gen)
  File "/home/miquelmr/miniconda3/envs/test/lib/python3.9/site-packages/accelerate/accelerator.py", line 573, in autocast
    autocast_context.__exit__()
TypeError: __exit__() missing 3 required positional arguments: 'exc_type', 'exc_val', and 'exc_tb'

Thanks a lot, I understand the problem now! Will fix this today.


evaluate dataset

Can you give me instruction to evaluate vot2020 dataset?

Please refer to my answer in #13 and follow the instructions to integrate Alpha-Refine as an external library.


DTube logo doesn't lead to right page

Only applies to embed links that passes JSOUN as parameter rather than author/permlink format


Number representation mismatch

Although similar to this sage-jena issue
and concerning roughly the same queries:
aggregates/agg - avg, min, max, and sum, this version of the bug is one step removed.
when running any of the aforementioned query, we get those kind of results:
<?xml version="1.0" encoding="UTF-8"?>
<sparql xlmns="http://www.w3.org/2005/sparql-results#">
  <head>
    <variable name="s"/>
    <variable name="avg"/>
  </head>
  <results>
    <result>
      <binding name="s">
        <uri>http://www.example.org/mixed2</uri>
      </binding>
      <binding name="avg">
        <uri>0.2</uri>
      </binding>
    </result>
    <result>
      <binding name="s">
        <uri>http://www.example.org/mixed1</uri>
      </binding>
      <binding name="avg">
        <uri>1.6</uri>
      </binding>
    </result>
    <result>
      <binding name="s">
        <uri>http://www.example.org/ints</uri>
      </binding>
      <binding name="avg">
        <uri>2</uri>
      </binding>
    </result>
</results>
</sparql>

instead of those:
<?xml version="1.0"?>
<sparql xmlns="http://www.w3.org/2005/sparql-results#">
  <head>
    <variable name="s"/>
    <variable name="avg"/>
  </head>
  <results>
    <result>
      <binding name="s">
        <uri>http://www.example.org/mixed1</uri>
      </binding>
      <binding name="avg">
        <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">1.6</literal>
      </binding>
    </result>
    <result>
      <binding name="s">
        <uri>http://www.example.org/mixed2</uri>
      </binding>
      <binding name="avg">
        <literal datatype="http://www.w3.org/2001/XMLSchema#double">2.0E-1</literal>
      </binding>
    </result>
    <result>
      <binding name="s">
        <uri>http://www.example.org/ints</uri>
      </binding>
      <binding name="avg">
        <literal datatype="http://www.w3.org/2001/XMLSchema#decimal">2.0</literal>
      </binding>
    </result>
  </results>
</sparql>

The matter lies in the fact that numbers are not represented using scientific notation at all.
This behavior is accentuated whith numbers that go in the thousands or more.
This bug affects a dozen of queries.
While fixing this query, watch out for the same issue linked at the top; namely using lowercase 'e' for powers of ten, rather than the expected uppercase 'e'.

Remaining number representation mismatches are common with jena and sage-jena, the others have been fixed