[SH] New partitioning syntax

Background: https://airtable.com/tblD3oZPLJgGhCmch/viw1DKmbKhg2MIECH/rec6WkrR0y6cUsfML
Description: You can now partition a table and all of its secondary indexes with one simple command. CRDB still provides comprehensive tools for maximum flexibility. It simply pairs that with default table settings which will be used by the majority of deployments.
Note, we are iterating on this syntax and the majority of the work will be in its design.
It is very easy to miss partitioning of a secondary index when geo-partitioning a table today. If a table has 10+ indexes, partitioning by hand will require large amounts of copy pasting or typing commands, and it is easy to accidentally skip over a secondary index that needs to be partitioned.
Beyond this, when a table has a secondary index that was accidentally not partitioned, it can be difficult to determine that it is the root cause for latency spikes in certain kinds of queries.
Having a simple way to partition a table and its secondary indexes in the same exact way improves the UX by reducing repetition and eliminating opportunities for mistakes.
In addition to missing secondary indexes, the current syntax can require hundreds of lines of SQL to accomplish a conceptually simple goal: partitioning a table into the known localities.
Team: Andrew Woods, Richard Loveland, Jordan Lewis, Solon Gordon
Github Tracking Issue: https://github.com/cockroachdb/docs/issues/4797

@awoods187
I don't see this on the JIRA roadmap. Should we close this issue for now?

yup


Save Logs of Different Panes

Can we have some utility using which we can save logs of different panes in a file without dumping to the host machine(i.e. on which script is executing)
e.g. Some commands lets say (log_start(filename)) starts saving logs to filename and log_stop stops the logs.

please refer to automux_log apis in readme


mobile_show_parent_link doesn't exist?

In the documentation for the topbar it mentions this option. But looking at the Javascript file for the topbar this doesn't seem to exist.
foundation/js/foundation/foundation.topbar.js
// ...
    settings : {
      index : 0,
      sticky_class : 'sticky',
      custom_back_text: true,
      back_text: 'Back',
      is_hover: true,
      scrolltop : true, // jump to top when sticky nav menu toggle is clicked
      sticky_on : 'all'
    },
// ...

Is this on purpose? This seems like a really useful feature for when you have a mobile site.

Looks like that's been added in
{
sticky_class : 'sticky',
custom_back_text: true, // Set this to false and it will pull the top level link name as the back text
back_text: 'Back', // Define what you want your custom back text to be if custom_back_text: true
is_hover: true,
mobile_show_parent_link: false, // will copy parent links into dropdowns for mobile navigation
scrolltop : true // jump to top when sticky nav menu toggle is clicked
}


script working in serve but not on device or run

Hi, I have a script that behaves very strange, it works fine when I use it in serve but when I push it to test app or run it in simulator its just empty..
what could be causing this?

Greetings @stellanhaglund!
My sensors indicate that you need to update your issue through our custom issue form. We are now requiring all issues to be submitted this way, to ensure that we have all of the information necessary to fix them as quickly as possible.
Click Here To Update Your Issue
I will have no choice but to close this issue if it is not resubmitted through the form. Please fill out the rest of the form, so that I may use my friendly robot powers to assist you.
Thank you!

Greetings @stellanhaglund!
I've closed this issue because my sensors indicated it was old and inactive, and may have already been fixed in recent versions of Ionic. However, if you are still experiencing this issue, please feel free to reopen this issue by creating a new one, and include any examples and other necessary information, so that we can look into it further.
Thank you for allowing me to assist you.


wording and comma fix

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Mods: too little changed

Please don't make multiple tiny PRs. make all of your changes, then put in a pr. (#26989, #26994)

Quality Standards
In line with Hacktoberfest value #2 (Quantity is fun, Quality is key), we have provided examples of the quality standards we encourage. This applies mainly to beginners.

PRs that are automated e.g. scripted opening PRs to remove white space / optimize images.
PRs that are disruptive e.g. taking someone else's branch/commits and making a PR.
PRs that are regarded by a project maintainer as a hindrance vs. helping.
Something that's clearly an attempt to simply +1 your PR count for October.

Learn more at https://hacktoberfest.digitalocean.com/details


[Oracle] Code completion in select table or view

System information:

Windows 10 x64
DBeaver version - <IP_ADDRESS>910061950
Additional extensions

Connection specification:

Database name and version  - Oracle 11g
Driver name
Do you use tunnels or proxies (SSH, SOCKS, etc)?

Describe the problem you're observing:
When writing in a query and using the table/view completion, an "AS" is being wrongly added between the table/view name which generates an ORA-00933 error. Example SELECT * FROM PARTNER AS p.
Steps to reproduce, if exist:
Include any warning/errors/backtraces from the logs

Hi @norlancd ,
btw, you can disable table aliases inserting in Preferences - Databases - SQL Editor - SQL Completion (for all connections) or  from context menu in SQL editor for defined connection.

We'll disable this option by default.

verified

We'll disable this option by default.

@serge-rider. Include the alias as the option selected by default is not bad. The error is that when the option "Insert table aliases (in FROM clause)" is selected in ORACLE, only the alias should be included without the "AS".

Wrong

SELECT * FROM "Partner" AS p

Right

SELECT * FROM "Partner" p


removing delivery strategy field from RecordMetadata

Removing deliveryStrategy from RecordMetadata trait; it should not be at that level and it wasn't used anywhere.

Codecov Report

Merging #11 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master      #11   +/-   ##
=======================================
  Coverage   90.19%   90.19%
=======================================
  Files         104      104
  Lines        1519     1519
  Branches       55       56    +1
=======================================
  Hits         1370     1370
  Misses        149      149

Impacted Files
Coverage Δ

...ain/scala/hydra/sandbox/transport/FileRecord.scala
100% <ø> (ø)
:arrow_up:

...ra/kafka/producer/PropagateExceptionCallback.scala
100% <100%> (ø)
:arrow_up:

.../scala/hydra/sandbox/transport/FileTransport.scala
95.45% <100%> (ø)
:arrow_up:

...ala/hydra/kafka/transport/KafkaProducerProxy.scala
89.47% <100%> (ø)
:arrow_up:

...ala/hydra/kafka/producer/KafkaRecordMetadata.scala
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Release version 0.0.25

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

Comparison is base (ba25614) 100.00% compared to head (9b721de) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #310   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           41        41
  Lines         1633      1633
  Branches       333       333
=========================================
  Hits          1633      1633

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Support for other colors like brown?

Describe the problem
I would like to display other colors that are not available in Pastel, but which my terminal supports, such as brown.  I can get this to work in pry with puts "\033[38;2;150;75;0mfoo", but it doesn't seem to be possible to replicate this with Pastel.  At least my attempts to do so have failed.
For example, pastel.undecorate("\033[38;2;150;75;0mfoo") returns
=> [{:text=>"38;2;150;75;0mfoo"}]

The same is true if I change \033 to \e.
There doesn't seem to be a way to define new colors.  I couldn't find anything in the README, and both of these experiments failed with a Pastel::InvalidAttributeNameError:
pastel.decorate("brown", "\e[38;2;150;75;0m")
pastel.alias_color(:brown, "\e[38;2;150;75;0m")

How would the new feature work?
I think it would be very useful if Pastel provided a way to define new colors, such as
pastel.define(:brown, "\e[38;2;150;75;0m")

It might also be valuable to have the ability to detect whether the current terminal is capabale of displaying colors beyond those that Pastel normally provides.  That might be done by something like this:
pastel.extended?

Drawbacks
Can you see any potential drawbacks?
The potential drawbacks are very small, and the pay-off seems very significant.  Pastel already handles the huge complexity of making terminal color escape sequences easy to manage from Ruby.  Adding the ability to go beyond 16 colors (while still allowing it to be used in minimalistic terminals that can't support more than 16 colors) would greatly extend its versatility.
To bring the drawbacks almost to zero, every definition could possibly have a secondary "fallback" definition to use in cases where the main definition can't be used:
pastel.define(:brown, "\e[38;2;150;75;0m", fallback: [:red, :dark, :bold])

This would allow those using Pastel to avoid having to constantly use pastel.extended? and manually type code to provide an alternative if it's false.

Hi Brandon, 👋
Thanks for taking an interest in pastel.
The pastel works with 16 ANSI colours. It's complete in this sense. It doesn't miss any colours.
Do I plan to extend pastel to work with 256 ANSI colours palette or the Truecolor? That's always been a plan. Why it hasn't happened yet? It's not because I'm unaware of terminal capabilities. It's also not because I don't know what the API could look like. The answer is more mundane, it wasn't critical for the development of other tty components and requires investment of time which is a scarce commodity.
The addition of richer colour palettes to  pastel would open up more possibilities for other gems including tty components. To give you a glimpse into what I'm thinking, the API wouldn't change that much. It definitely wouldn't involve knowing anything, and forbid, specifying any ANSI codes manually. That wouldn't be a user-friendly API. Fundamentally, the basic colours would be used the same, for example, pastel.red but produce different ANSI based on the terminal colour support(this could be overridden). Collorarly, any new colour names like pastel.crimson or pastel.brown would automatically display the correct ANSI codes. It's not a trivial change though.
As for when I cannot promise anything. But this is a higher priority for me nowadays due to slideck and the many benefits it would bring.

Okay, that's very unfortunate but of course I understand time being short.
Also, thanks for reminding me of Slideck.  I had forgotten about it (but since I had it starred I was obviously aware of it at some point in the past 😅).


amd64 image does not work with already used data ssd

I want to swith my Raspiblitz 1.7.2 from raspberry pi to a pc with core i5 cpu and 8gb of ram. Following @openoms instructions i setup a new node with the pc, everything went well, started syncing blockchain for couple of hours so i stop it. Flashed the os ssd again and connected the data ssd to the pc, but now it doesn't work, it keeps rebooting 5 seconds after i type the admin password. This is what raspiblitz.log says

I'll try to connect the data ssd via usb and see if works.
UPDATE:
Connecting via usb doesnt work
Switching SATA ports doesnt work
Booting without connecting to the monitor doesnt work
Its something in the system init script that is not allowing the initial setup with an already used data disk connected

@wchancao is this still relevant? Closing for now, if it's still relevant, please re-open


Backlinks: show surrounding context

The extension's backlinks panel currently displays only context after the link (see https://github.com/svsool/vscode-memo/issues/29#issuecomment-661337531), however in practice the context both before and after the link is relevant when navigating notes by backlinks, especially if the link is used in passing in the middle of a whole sentence (eg: "Here is a sentence which is the whole [[context]] for the link in it"; vscode-memo will display [[context]] for the link in it in backlinks panel, which is obviously incomplete).

What do you think would be a sensible limit for the surrounding context in case of long paragraphs? Showing the whole paragraph/sentence before/after a link might be irrelevant in some cases.

This seems like a reasonable option. I don't know what a sensible limit would be though - perhaps something that could be user-configurable?

Surrounding paragraph with a hardcoded limit that makes sense for UX?
You can checkout the backlinks in https://notes.andymatuschak.org/About_these_notes?stackedNotes=z3SjnvsB5aR2ddsycyXofbYR7fCxo7RmKW2be for some ideas.
This is something I need to figure out for neuron as well, when implementing https://github.com/srid/neuron/issues/190

I need to play around with this idea. For starters, something like "n" words before/after with some reasonable min/max limits in the settings probably would do the thing.

I went with the approach of including entire surrounding "block" element, which is usually paragraph or a list item. You can see it in action in any of the neuron pages, eg: https://neuron.zettel.page/cerveau.html

I left some related remarks in this mostly-dup report of mine https://github.com/svsool/vscode-memo/issues/478.


Follow link doesn't work for local file in terminal

In the xterm.js codebase (the file is relative to the opened folder):

fyi @jmbockhorst

Happens outside of remote workspaces apparently https://github.com/microsoft/vscode/issues/91294

I am working on a fix so that the widget uses the existing link handlers to open the link instead of the generic opener service. This way, Follow Link will be handled the same way as Ctrl + Click for all types of links (Local, hyperlink, diff, and custom).

@jmbockhorst sounds great! 🙂

Found a separate but related issue while working on this: #91479.


Update to jasmine-expect 3.0.1

https://github.com/JamieMason/Jasmine-Matchers/releases/tag/3.0.1

https://github.com/JamieMason/karma-jasmine-matchers/releases/tag/3.0.1


GSD Request

--- GSD JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from  to before v4.4.297",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=0bbdd62ce9d44f3a22059b3d20a0df977d9f6d59"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "0bbdd62ce9d44f3a22059b3d20a0df977d9f6d59",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "phonet/pep: refuse to enable an unbound pipe\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v4.4.297 by commit 0bbdd62ce9d44f3a22059b3d20a0df977d9f6d59. For more details please see the references link."
}
--- GSD JSON ---

This issue has been assigned GSD-2021-1002775


[HxDropdownDivider] Divider line not connected to the dropdown border

@crdo, probably a v5.3 regression in our library?
https://getbootstrap.com/docs/5.3/components/dropdowns/#dividers

That is on purpose/as designed as we override the look of dropdowns in our build. There is a padding added to the dropdown menu and the DropdownItems are rounded instead of full-width in default.

ok


Add support for reading from objects and multiple sources

I've implemented an ObjectSettingsReader and MultipleSourceSettingsReader (https://gist.github.com/droyad/809e97e5c969f4c4e851) in my project. The object comes from NDesk.Options, but could also be from a config file section, etc.
They are generic, so do you want me to integrate them and send a PR?

I've pulled in your gist for the ObjectSettingsReader (thank you :) ) and will merge it to master shortly.
There's separate functionality for overriding settings so that we can ensure that base-level settings still exist before overriding them. I gave some thought to the generic MultipleSourceSettingsReader approach a while ago and worried that it would be setting traps for people for the common case. I'll give that some more thought, though :)


How much VRAM is required to run it without CPU offloading? Specifically, will it work on an RTX 3060 with 12GB of VRAM without relying on the CPU?

We haven't tested it on the 3060, but we have received reports that it won't run on a 24GB GPU with fp32 (instead of bf16) without CPU offloading. This suggests that it may not run on a 12GB GPU with bf16.


ScrollView: make sure import does not load a window.

@akshayaurora, looks great. :dancer:
It also fixes https://github.com/kivy/kivy/issues/4232.
I'll open a separate issue for the config issue we discussed.

Seems like it would be better to fix the root problem - that importing Window creates a window.

There must be an issue opened about agressive kivy imports.

This was also one of them: https://github.com/kivy/kivy/issues/2480
But i also remember a general one.


exit execution if an error occurred

@sorpaas Currently if any substrate error occur it will be ignored and execution will continue to revert without any message. I'm not sure if there's any specific reason to that. Hopefully this will fix it.

@ermalkaleci This is unfortunately how EVM is designed -- each call frame can decide, if a sub-call frame errors out, whether it wants to continue the execution. As a result, if you try to execute this PR with https://github.com/rust-blockchain/evm-tests, you'll notice several tests will fail.
I'll send a PR that modifies the precompile interface so that it can return ErrorFatal. That is the approriate way to handle fatal errors.


Update BNCKeyChain kSecAttrAccessible value

Same effect as previous setting, but disallows being restored (from backup) to a different device.
More secure this way.
When adding these items to the Keychain, the App does not explicitly exclude the items from device backups, which will allow sensitive data to get exported to iTunes and iCloud backups.
Having sensitive data sent to iCloud exposes it to both Apple, Inc. and an attacker with the ability to compromise the user's iCloud account (similarly to the iCloud celebrity hack, described in http://en.wikipedia.org/wiki/August2014celebrityphotoleaks/).
Additionally, exporting data to iTunes backups allows an attacker with physical access to the device and its passcode to use the iTunes encrypted backup functionality to extract all the Keychain items (that are flagged for backups) from the device.

@E-B-Smith @echo-branch - Would you mind having a quick look at this please?

Hi,
The change looks reasonable, however we don't store sensitive data in keychain.  It's just install timestamps and bundle id to help with attribution.  We have a backlogged ticket to look into moving this out of keychain since there's no reason for it to be in a secure store.

Ok, thank you!


Package URL

d3f:PackageURL
I'm not exactly sure how to best model this yet, but I think it's important to have a way to represent package URLs and be able to make queries based on the type of the package (Maven, NPM, etc.) and its data components (namespace, name, version, qualifiers, subpath).
Before I open a PR for this I wanted to get feedback on the approach I'm taking and if this would be useful to others. I plan on using these properties to annotate software composition analysis with D3FEND and would like to use PURLs to uniquely identify software packages across databases.
Definition
@prefix d3f: <http://d3fend.mitre.org/ontologies/d3fend.owl#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

d3f:PackageURL a owl:Class ;
    rdfs:label "Package URL" ;
    rdfs:subClassOf d3f:Identifier,
        [ a owl:Restriction ;
          owl:onProperty d3f:identifies ;
          owl:someValuesFrom d3f:SoftwarePackage
        ],
        [ a owl:Restriction ;
          owl:onProperty d3f:package-type ;
          owl:someValuesFrom d3f:PackageURLType
        ] ;
        [ a owl:Restriction ;
          owl:onProperty d3f:package-namespace ;
          owl:someValuesFrom xsd:string
        ],
        [ a owl:Restriction ;
          owl:onProperty d3f:package-name ;
          owl:someValuesFrom xsd:string
        ],
        [ a owl:Restriction ;
          owl:onProperty d3f:package-version ;
          owl:someValuesFrom xsd:string
        ],
        [ a owl:Restriction ;
          owl:onProperty d3f:package-qualifiers ;
          owl:someValuesFrom xsd:string
        ],
        [ a owl:Restriction ;
          owl:onProperty d3f:package-subpath ;
          owl:someValuesFrom xsd:string
        ] ;
    d3f:definition """purl stands for package URL.

A purl is a URL composed of seven components:

scheme:type/namespace/name@version?qualifiers#subpath

Components are separated by a specific character for unambiguous parsing.

The definition for each components is:

* scheme: this is the URL scheme with the constant value of \"pkg\". This is not modeled in the RDF representation as it is tautological.
* type: the package \"type\" or package \"protocol\" such as maven, npm, nuget, gem, pypi, etc. Required.
* namespace: some name prefix such as a Maven groupid, a Docker image owner, a GitHub user or organization. Optional and type-specific.
* name: the name of the package. Required.
* version: the version of the package. Optional.
* qualifiers: extra qualifying data for a package such as an OS, architecture, a distro, etc. Optional and type-specific.
* subpath: extra subpath within a package, relative to the package root. Optional.

Components are designed such that they form a hierarchy from the most significant component on the left to the least significant component on the right.""" ;
    rdfs:isDefinedBy <https://github.com/package-url/purl-spec/blob/master/PURL-SPECIFICATION.rst> ;
    rdfs:seeAlso <https://github.com/package-url/purl-spec> .

d3f:PackageURLType a owl:Class ;
    rdfs:label "Package URL Type" ;
    rdfs:seeAlso <https://github.com/package-url/purl-spec> ;
    d3f:definition """Each package manager, platform, type, or ecosystem has its own conventions and protocols to identify, locate, and provision software packages.

The package type is the component of a package URL that is used to capture this information with a short string such as maven, npm, nuget, gem, pypi, etc.""" .

# Example individual for Maven, the PURL structured value for the type is stored using the rdf:value property

d3f:PackageURLType-Maven a owl:NamedIndividual, d3f:PackageURLType ;
    rdfs:label "Maven" ;
    rdf:value "maven" ;
    rdfs:isDefinedBy <https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst#maven> ;
    rdfs:comment "maven for Maven JARs and related artifacts" ;
    skos:example<EMAIL_ADDRESS>
        "pkg:maven/org.apache.xmlgraphics/batik-anim@1.9.1?type=pom",
        "pkg:maven/org.apache.xmlgraphics/batik-anim@1.9.1?classifier=sources",
        "pkg:maven/org.apache.xmlgraphics/batik-anim@1.9.1?type=zip&classifier=dist",
        "pkg:maven/net.sf.jacob-projec/jacob@1.14.3?classifier=x86&type=dll",
        "pkg:maven/net.sf.jacob-projec/jacob@1.14.3?classifier=x64&type=dll" ;
    rdfs:seeAlso <https://repo.maven.apache.org/maven2> ;
    d3f:definition """The default repository is https://repo.maven.apache.org/maven2.

    The group id is the ``namespace`` and the artifact id is the ``name``.

    Known qualifiers keys are: ``classifier`` and ``type`` as defined in the POM documentation. Note that Maven uses a concept / coordinate called packaging which does not map directly 1:1 to a file extension. In this use case, we need to construct a link to one of many possible artifacts. Maven itself uses type in a dependency declaration when needed to disambiguate between them.""" .

d3f:package-property a owl:ObjectProperty ;
    rdfs:subPropertyOf d3f:associated-with ;
    rdfs:domain d3f:SoftwarePackage ;
    rdfs:label "package-property" ;
    d3f:definition "x package-property y: The package x has the object property y." .

d3f:package-data-property a owl:DatatypeProperty ;
    rdfs:subPropertyOf d3f:d3fend-artifact-data-property ;
    rdfs:domain d3f:SoftwarePackage ;
    rdfs:label "package-data-property" ;
    d3f:definition "x package-data-property y: The package x has the data property y." .

d3f:package-type a owl:ObjectProperty, owl:FunctionalProperty ;
    rdfs:subPropertyOf d3f:package-property ;
    rdfs:range d3f:PackageURLType ;
    rdfs:label "package-type" ;
    skos:example "maven", "npm", "nuget", "gem", "pypi" ;
    d3f:definition "x package-type y: The package x has the type y." .

d3f:package-namespace a owl:DatatypeProperty, owl:FunctionalProperty ;
    rdfs:subPropertyOf d3f:package-data-property ;
    rdfs:label "package-namespace" ;
    d3f:definition "x package-namespace y: The package x has the namespace y." .

d3f:package-name a owl:DatatypeProperty, owl:FunctionalProperty ;
    rdfs:subPropertyOf d3f:package-data-property ;
    rdfs:label "package-name" ;
    d3f:definition "x package-name y: The package x has the name y." .

d3f:package-version a owl:DatatypeProperty, owl:FunctionalProperty ;
    rdfs:subPropertyOf d3f:package-data-property ;
    rdfs:label "package-version" ;
    d3f:definition "x package-version y: The package x has the version y." .

d3f:package-qualifiers a owl:ObjectProperty ;
    rdfs:subPropertyOf d3f:package-data-property ;
    rdfs:label "package-qualifiers" ;
    skos:example "arch=i386", "platform=java", "repository_url=gcr.io" ;
    d3f:definition "x package-qualifiers y: The package x has the qualifiers y." .

d3f:package-subpath a owl:DatatypeProperty, owl:FunctionalProperty ;
    rdfs:subPropertyOf d3f:package-data-property ;
    rdfs:label "package-subpath" ;
    d3f:definition "x package-subpath y: The package x has the subpath y." .

d3f:purl a owl:ObjectProperty, owl:InverseFunctionalProperty ;
    rdfs:subPropertyOf d3f:package-property ;
    rdfs:range xsd:anyURI ;
    rdfs:label "purl" ;
    d3f:definition "A package URL (purl) is a URL for identifying software packages." .

Examples
<pkg:bitbucket/birkenfeld/pygments-main@244fd47e07d1014f0aed9c> a d3f:PackageURL .
<pkg:deb/debian/curl@7.50.3-1?arch=i386&distro=jessie> a d3f:PackageURL .
<pkg:docker/cassandra@sha256:244fd47e07d1004f0aed9c> a d3f:PackageURL .
<pkg:docker/customer/dockerimage@sha256:244fd47e07d1004f0aed9c?repository_url=gcr.io>
a d3f:PackageURL .

asserting triples:
:jruby-launcher d3f:purl <pkg:gem/jruby-launcher@1.1.2?platform=java> .

could materialize:
<pkg:gem/jruby-launcher@1.1.2?platform=java> a d3f:SoftwarePackage .

<#curl-debian> a d3f:SoftwarePackage ;
    d3f:package-type d3f:PackageURLType-Deb ;
    d3f:package-namespace "debian" ;
    d3f:package-name "curl" ;
    d3f:package-version "7.50.3-1" ;
    d3f:package-qualifiers "arch=i386", "distro=jessie" .

<#batik-anim> a d3f:SoftwarePackage ;
    d3f:package-type d3f:PackageURLType-Maven ;
    d3f:package-namespace "org.apache.xmlgraphics" ;
    d3f:package-name "batik-anim" ;
    d3f:package-version "1.9.1" .

References

https://github.com/package-url/purl-spec

Definition
@prefix d3f: <http://d3fend.mitre.org/ontologies/d3fend.owl#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

d3f:PackageURL a owl:Class ;
    rdfs:label "Package URL" ;
    rdfs:subClassOf d3f:Identifier,

^ Should be subclass of d3f:URL

    [ a owl:Restriction ;
      owl:onProperty d3f:identifies ;
      owl:someValuesFrom d3f:SoftwarePackage
    ],
    [ a owl:Restriction ;
      owl:onProperty d3f:package-type ;
      owl:someValuesFrom d3f:PackageURLType

...

skos:example<EMAIL_ADDRESS>
    "pkg:maven/org.apache.xmlgraphics/batik-anim@1.9.1?type=pom",
    "pkg:maven/org.apache.xmlgraphics/batik-anim@1.9.1?classifier=sources",
    "pkg:maven/org.apache.xmlgraphics/batik-anim@1.9.1?type=zip&classifier=dist",
    "pkg:maven/net.sf.jacob-projec/jacob@1.14.3?classifier=x86&type=dll",
    "pkg:maven/net.sf.jacob-projec/jacob@1.14.3?classifier=x64&type=dll" ;
rdfs:seeAlso <https://repo.maven.apache.org/maven2> ;
d3f:definition """The default repository is https://repo.maven.apache.org/maven2.

The group id is the ``namespace`` and the artifact id is the ``name``.

Known qualifiers keys are: ``classifier`` and ``type`` as defined in the POM documentation. Note that Maven uses a concept / coordinate called packaging which does not map directly 1:1 to a file extension. In this use case, we need to construct a link to one of many possible artifacts. Maven itself uses type in a dependency declaration when needed to disambiguate between them.""" .

d3f:package-property a owl:ObjectProperty ;
rdfs:subPropertyOf d3f:associated-with ;

^^ This is key and something we've needed to decide on. This issue is forcing me to decide :)
These are more "schema" oriented fields versus our intent with d3f:associated-with. Associated for us is sort of short hand for "inferentially associated with". We use these to produce all of our various inferred relationships. We almost need a high-level property called something like d3f:schema-property to indicate its a bit outside of our general model. This is where we'd want to fold in OCSF fields as well, I think you've had some other content that might fall under there, you had a OCSF property generation script. I'd like to see them be in our proper namespace, but with links back to OCSF. CC @smithmj
In general most of these we'd want to be in sync with OCSF. If we uncover an issue with OCSF, we should engage them to help improve OCSF to make it ontologically sound.

rdfs:domain d3f:SoftwarePackage ;
rdfs:label "package-property" ;
d3f:definition "x package-property y: The package x has the object property y." .

d3f:package-data-property a owl:DatatypeProperty ;
rdfs:subPropertyOf d3f:d3fend-artifact-data-property ;
rdfs:domain d3f:SoftwarePackage ;
rdfs:label "package-data-property" ;
d3f:definition "x package-data-property y: The package x has the data property y." .
d3f:package-type a owl:ObjectProperty, owl:FunctionalProperty ;
rdfs:subPropertyOf d3f:package-property ;
rdfs:range d3f:PackageURLType ;
rdfs:label "package-type" ;
skos:example "maven", "npm", "nuget", "gem", "pypi" ;
d3f:definition "x package-type y: The package x has the type y." .
d3f:package-namespace a owl:DatatypeProperty, owl:FunctionalProperty ;
rdfs:subPropertyOf d3f:package-data-property ;
rdfs:label "package-namespace" ;
d3f:definition "x package-namespace y: The package x has the namespace y." .
d3f:package-name a owl:DatatypeProperty, owl:FunctionalProperty ;
rdfs:subPropertyOf d3f:package-data-property ;
rdfs:label "package-name" ;
d3f:definition "x package-name y: The package x has the name y." .
d3f:package-version a owl:DatatypeProperty, owl:FunctionalProperty ;
rdfs:subPropertyOf d3f:package-data-property ;
rdfs:label "package-version" ;
d3f:definition "x package-version y: The package x has the version y." .
d3f:package-qualifiers a owl:ObjectProperty ;
rdfs:subPropertyOf d3f:package-data-property ;
rdfs:label "package-qualifiers" ;
skos:example "arch=i386", "platform=java", "repository_url=gcr.io" ;
d3f:definition "x package-qualifiers y: The package x has the qualifiers y." .
d3f:package-subpath a owl:DatatypeProperty, owl:FunctionalProperty ;
rdfs:subPropertyOf d3f:package-data-property ;
rdfs:label "package-subpath" ;
d3f:definition "x package-subpath y: The package x has the subpath y." .
d3f:purl a owl:ObjectProperty, owl:InverseFunctionalProperty ;
rdfs:subPropertyOf d3f:package-property ;
rdfs:range xsd:anyURI ;
rdfs:label "purl" ;
d3f:definition "A package URL (purl) is a URL for identifying software packages." .

## Examples

```turtle
<pkg:bitbucket/birkenfeld/pygments-main@244fd47e07d1014f0aed9c> a d3f:PackageURL .
<pkg:deb/debian/curl@7.50.3-1?arch=i386&distro=jessie> a d3f:PackageURL .
<pkg:docker/cassandra@sha256:244fd47e07d1004f0aed9c> a d3f:PackageURL .
<pkg:docker/customer/dockerimage@sha256:244fd47e07d1004f0aed9c?repository_url=gcr.io>
a d3f:PackageURL .

asserting triples:
:jruby-launcher d3f:purl <pkg:gem/jruby-launcher@1.1.2?platform=java> .

could materialize:
<pkg:gem/jruby-launcher@1.1.2?platform=java> a d3f:SoftwarePackage .

<#curl-debian> a d3f:SoftwarePackage ;
    d3f:package-type d3f:PackageURLType-Deb ;
    d3f:package-namespace "debian" ;
    d3f:package-name "curl" ;
    d3f:package-version "7.50.3-1" ;
    d3f:package-qualifiers "arch=i386", "distro=jessie" .

<#batik-anim> a d3f:SoftwarePackage ;
    d3f:package-type d3f:PackageURLType-Maven ;
    d3f:package-namespace "org.apache.xmlgraphics" ;
    d3f:package-name "batik-anim" ;
    d3f:package-version "1.9.1" .

References
* https://github.com/package-url/purl-spec

Thank you for your feedback! Will be taking what you said into consideration and come up with a pass at this I'll throw at a PR.
Here is the OCSF extension branch for reference (a bit out of date, for 1.1.0-dev, but same concepts apply): https://github.com/aamedina/d3fend-ontology/tree/aamedina/ocsf/extensions/ocsf, which uses SPARQL-Generate to produce https://github.com/aamedina/d3fend-ontology/blob/aamedina/ocsf/extensions/ocsf/dataset/ocsf.ttl
An advantage of OCSF's dictionary design is that is plays well with the RDF notion of how properties are related to classes. OCSF classes can have their own "restrictions" which pull in OCSF dictionary properties. We don't need to have process specific or package specific properties, but we could have one single super property that indicates OCSF alignment and have the process/package etc properties (whatever they end up looking like) inherit from that (like d3f:schema-property or d3f:ocsf-property to indicate OCSF provenance for the property semantics.)

Schema property could be used to unify and relate the various schemas, thus generic d3f:schema property is more appropriate.
If we intend to assert provenance, we can do an rdfs:definedBy


The PreChargePeriod/VcomhDeselect commands are incorrect

While fixing the addressing I went through all the other commands as well to see if they match up with the datasheet and the two commands in the title seem to be incorrect. I honestly don't know what they do, so I didn't touch them, but I can see the values don't correspond with the ones in the datasheet.

Was this fixed in #6? Please close if so :+1:

Nope, it wasn't. I don't really know what those commands do, they're probably just being ignored by the controller as unknown commands, but I'm not sure. I'm pretty sure the datasheet doesn't mention them though.

They can probably go then. Perhaps I shouldn't have based this crate off the SSD1306 one :sweat_smile:. PRs welcome or I'll check the datasheet cram a commit into master to remove them.

I got you a PR that fixes this. (https://github.com/jamwaffles/sh1106/pull/23)

Closed by #23


How can I solve the problem "RuntimeError: Mask tensor can take 0 and 1 values only at..." with Pytorch 1.2.0

Excuse  me, I encounter the problem that "RuntimeError: Mask tensor can take 0 and 1 values only at /pytorch/aten/src/TH/generic/THTensorEvenMoreMath.cpp:580"  when training the model with Pytorch 1.2.0.
Do you have any solution to this problem? Thanks.

OK，I solved it.

Sorry for the late reply. Glad to see you solved it. :)

OK，I solved it.

Can you please tell me how you solved this problem? thanks!!!

@bott1eee Switching to pytorch 1.0.1 will solve the problem. I'll update the latest version compatible implementation when I get some time.

@bott1eee fix in the master branch (05d572e30801b235e989c78c95dd24d5f5d35f74)


WW-4355 - Replace deprecated HTML attributes with CSS

Changed HTML5 deprecated attributes to CSS in templates.

Please re-open this PR against master branch


Tooltip is not present on remote selected li items

We moved a standard select2 to using remote data source. Our tests that verify functionality broke and we traced it to the fact that when the data source was inline, title attributes (tooltips) are added for both preselected options and newly selection options. However, when we moved to a remote data source, the title tags remain present for preselected options, but are NOT present for newly selected items from the remote source.
We saw this on version 4.0.0 and upgraded to 4.0.13 and the issue remains. This can be reproduced via this jsbin: https://jsbin.com/bonahevepu/1/edit?html,js,output

This is because the options are not being mapped to have a text or title property on the remote data. This is something which we call out in the 4.x migration documentation as well as in the AJAX section where we do this for the GitHub example to ensure it is mapped properly.

@kevin-brown Thx for getting back. Would you mind sharing what migration docs you are talking about? I was able to hunt down this one, but it doesn't really mention what you are talking about. It also links to changelogs, which also don't really mention this. So, not sure if I'm missing something, or if the documentation you're referring to is somewhere else. Thx.

This is primarily called out in https://select2.org/data-sources/formats, given that the Select2 data format is what Select2 expects from the AJAX results. You can also see a brief snippet showing it at the AJAX pagination section at https://select2.org/data-sources/ajax#pagination. In the migration docs is where it calls out that these attributes are strictly enforced now (since they previously weren't in 3.x) at https://select2.org/upgrading/migrating-from-35#the-id-and-text-properties-are-strictly-enforced.
This is something where I'd welcome PRs that automatically detected this an spit out a warning in debug mode if text is missing on objects in AJAX responses (or data adapter responses in general, also acceptable). We don't see the issue getting reported often so it hasn't been super high on my list of things to fix.


SHIORI - armv7 not supported

why you not add support for armv7?
shiori support it...

Fixed (I think). Need to refresh addon store.
You can always download an addon into your /addons directory, and make the change yourself. If it works, do a PR.

i tried to make my own shiori addon.... but it doesn't work.... your take me the same error:
Impossibile installare il componente aggiuntivo
Can't install ghcr.io/go-shiori/shiori:1.6.1: 500 Server Error for http+docker://localhost/v1.43/images/create?tag=1.6.1&fromImage=ghcr.io%2Fgo-shiori%2Fshiori&platform=linux%2Farm%2Fv7: Internal Server Error ("manifest unknown")

I get the same error on X86. They must have changed something. I have not used it in a while. I will look into it.

exit fixed


Predict function is showing error

Hi,
Thank you for this interactive demo of VQA. Anyway while running the prediction cell:
`y_output = model_vqa.predict([question_features, image_features])
labelencoder = joblib.load(label_encoder_file_name)
for label in reversed(np.argsort(y_output)[0,-5:]):
print str(round(y_output[0,label]*100,2)).zfill(5), "% ", labelencoder.inverse_transform(label)`
Then it showing some error just as below:
`ValueError                                Traceback (most recent call last)
 in ()
----> 1 y_output = model_vqa.predict([question_features, image_features])
2
3 # This task here is represented as a classification into a 1000 top answers
4 # this means some of the answers were not part of training and thus would
5 # not show up in the result.
/usr/local/lib/python2.7/dist-packages/Keras-1.0.2-py2.7.egg/keras/models.pyc in predict(self, x, batch_size, verbose)
454         if self.model is None:
455             raise Exception('The model needs to be compiled before being used.')
--> 456         return self.model.predict(x, batch_size=batch_size, verbose=verbose)
457
458     def predict_on_batch(self, x):
/usr/local/lib/python2.7/dist-packages/Keras-1.0.2-py2.7.egg/keras/engine/training.pyc in predict(self, x, batch_size, verbose)
1117         f = self.predict_function
1118         return self._predict_loop(f, ins,
-> 1119                                   batch_size=batch_size, verbose=verbose)
1120
1121     def train_on_batch(self, x, y,
/usr/local/lib/python2.7/dist-packages/Keras-1.0.2-py2.7.egg/keras/engine/training.pyc in _predict_loop(self, f, ins, batch_size, verbose)
837                 ins_batch = slice_X(ins, batch_ids)
838
--> 839             batch_outs = f(ins_batch)
840             if type(batch_outs) != list:
841                 batch_outs = [batch_outs]
/usr/local/lib/python2.7/dist-packages/Keras-1.0.2-py2.7.egg/keras/backend/theano_backend.pyc in call(self, inputs)
505     def call(self, inputs):
506         assert type(inputs) in {list, tuple}
--> 507         return self.function(*inputs)
508
509
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.pyc in call(self, *args, **kwargs)
869                     node=self.fn.nodes[self.fn.position_of_error],
870                     thunk=thunk,
--> 871                     storage_map=getattr(self.fn, 'storage_map', None))
872             else:
873                 # old-style linkers raise their own exceptions
/usr/local/lib/python2.7/dist-packages/theano/gof/link.pyc in raise_with_op(node, thunk, exc_info, storage_map)
312         # extra long error message in that case.
313         pass
--> 314     reraise(exc_type, exc_value, exc_trace)
315
316
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.pyc in call(self, *args, **kwargs)
857         t0_fn = time.time()
858         try:
--> 859             outputs = self.fn()
860         except Exception:
861             if hasattr(self.fn, 'position_of_error'):
ValueError: total size of new array must be unchanged
Apply node that caused the error: Reshape{3}(Elemwise{Add}[(0, 0)].0, TensorConstant{[ -1  30 512]})
Toposort index: 49
Inputs types: [TensorType(float32, matrix), TensorType(int64, vector)]
Inputs shapes: [(3, 512), (3,)]
Inputs strides: [(2048, 4), (8,)]
Inputs values: ['not shown', array([ -1,  30, 512])]
Outputs clients: [[Join(TensorConstant{2}, Reshape{3}.0, Reshape{3}.0, Reshape{3}.0, Reshape{3}.0)]]
Backtrace when the node is created(use Theano flag traceback.limit=N to make it longer):
File "/usr/local/lib/python2.7/dist-packages/Keras-1.0.2-py2.7.egg/keras/engine/topology.py", line 341, in create_input_layer
self(x)
File "/usr/local/lib/python2.7/dist-packages/Keras-1.0.2-py2.7.egg/keras/engine/topology.py", line 485, in call
self.add_inbound_node(inbound_layers, node_indices, tensor_indices)
File "/usr/local/lib/python2.7/dist-packages/Keras-1.0.2-py2.7.egg/keras/engine/topology.py", line 543, in add_inbound_node
Node.create_node(self, inbound_layers, node_indices, tensor_indices)
File "/usr/local/lib/python2.7/dist-packages/Keras-1.0.2-py2.7.egg/keras/engine/topology.py", line 148, in create_node
output_tensors = to_list(outbound_layer.call(input_tensors[0], mask=input_masks[0]))
File "/usr/local/lib/python2.7/dist-packages/Keras-1.0.2-py2.7.egg/keras/layers/recurrent.py", line 219, in call
preprocessed_input = self.preprocess_input(x)
File "/usr/local/lib/python2.7/dist-packages/Keras-1.0.2-py2.7.egg/keras/layers/recurrent.py", line 729, in preprocess_input
input_dim, self.output_dim, timesteps)
File "/usr/local/lib/python2.7/dist-packages/Keras-1.0.2-py2.7.egg/keras/layers/recurrent.py", line 38, in time_distributed_dense
x = K.reshape(x, (-1, timesteps, output_dim))
File "/usr/local/lib/python2.7/dist-packages/Keras-1.0.2-py2.7.egg/keras/backend/theano_backend.py", line 283, in reshape
return T.reshape(x, shape)
HINT: Use the Theano flag 'exception_verbosity=high' for a debugprint and storage map footprint of this apply node.`

It seems the model  is not being loaded. Did you download the VGG weights file (see this) ?

VGG weights file is downloaded and the image features are also extracted.
My theano version is 0.8.2.
Keras version is 1.0.2.
image_features dimenstion = (1, 4096)
question_features dimension = (1, 7, 300)

First make sure you are running the code of this repo, which was updated to make changes to work with Keras 1+ (do a git pull origin master ) if you need to get the latest.

Run the command using following theano flag
 THEANO_FLAGS='exception_verbosity=high' python demo.py
and then paste the error here. It seems some variable size mis-match but I do not get the same error.

Now this error appears:
`Using Theano backend.
Loading image features ...
Loading question features ...
Traceback (most recent call last):
File "demo.py", line 114, in
main()
File "demo.py", line 95, in main
question_features = get_question_features(unicode(args.question, 'utf-8'))
File "demo.py", line 72, in get_question_features
word_embeddings = spacy.load('en', vectors='en_glove_cc_300_1m_vectors')
File "/home/iqbal/.local/lib/python2.7/site-packages/spacy/init.py", line 16, in load
vectors_package = get_package_by_name(vectors, via=via)
File "/home/iqbal/.local/lib/python2.7/site-packages/spacy/util.py", line 41, in get_package_by_name
lang = get_lang_class(name)
File "/home/iqbal/.local/lib/python2.7/site-packages/spacy/util.py", line 28, in get_lang_class
raise RuntimeError('Language not supported: %s' % lang)
RuntimeError: Language not supported: en_glove_cc_300_1m_vectors
`
I tried to put spacy.set_lang_class('en_glove_cc_300_1m_vectors', 'vectors')  #this line is added by me but that didn't work [it worked for the jupyter demo; when the same error was over there]

You might need to update your spacy or change the model, see here https://github.com/iamaaditya/VQA_Demo/issues/6

Try this two commands to get your glove vectors running
sputnik --name spacy --repository-url http://index.spacy.io install en==1.1.0
sputnik --name spacy en_glove_cc_300_1m_vectors

Thanks @anujshah1003 and @iqbal-chowdhury
Close #7


application stop to getting updates.

sometimes, after some actions, my application stop to getting updates.
E.g. when, i send some message to somebody in my native android application (made by telegram) - my application (where i logged also) stoping getting update for some time (for 1 minute or more) but after  i close my application and login to it again, then i'll getting all old updates...
Anybody kown why? it is very strange.
Please help me with it.

First, you need to check whether you have an active connection. The client receives updateConnectionState for that. Also, make sure that you properly set option "online" to true whenever you use the application. If this doesn't help then enable TDLib logs with verbosity level 3 to see, what's going on.

@merlinkory Have you solved the problem? It seems that you are from Russia, so you may need to add a proxy using addProxy method to have a stable connection.

@levlam My app hosted on Amazon (EU). What is option "online", is it some parametrs for "setTdlibParameters" ? And do i can updating my connection state?
Thank you

@merlinkory Options are set through setOption method. See https://core.telegram.org/tdlib/options for the full list of available options.
The only purpose of updateConnectioneState is to show the connection state to the user. You can't affect it, except completely disabling network via setNetworkType method.

@levlam Thank you very much!!!


Comments do not load when navigating via Next Story

The comment counter changes to the real number of comments, but they don't show up.
I've tried to click on Next Story more times, and this behavior is consistent.

Thank @tibonova for reporting the issue.


ds test: changes directory to $BASE_PATH.

$BASE_PATH now can be determined from evn variable #4312.
Makes ds test available from any path by cd'ing to $BASE_PATH dir.
Note: test software is not available yet, see https://github.com/DoSomething/ansible-dosomething-dev/issues/2. This PR is to help testing proper installation of this software.

Seems good to me!

Thanks!


[Diagnostics] Special case requirement failures related to return statement/expression

Add a new locator path element to track conformance requirements
to avoid loosing track of source of the conditional requirements introduced
into the constraint system. Especially important for protocol composition types
since all of the conformance requirements are anchored at the same locator base.

Make sure that "affected" declaration is recognized as the one
to which result type is attached to if the requirement failure
is originated in contextual type of return statement/expression.

Resolves: SR-13992
Resolves: rdar://72819046
Resolves: rdar://57789606

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test Linux platform

@swift-ci please smoke test Linux platform


Update deploy-master.md

I found that on Container Linux by CoreOS stable (1298.7.0) the kubelet-wrapper is actually in this location /usr/lib64/coreos/kubelet-wrapper

Thank you for your update. This page has since been rewritten. Closing this PR.

Thank you for your update. This page has since been rewritten. Closing this PR.


java spring fapi in Java languaje

Does Java language exist (non-kotlin)?

Currently we only have the Kotlin implementation. The codebase is not large, though, so it should be fairly easy to convert it to Java. If you don't care about readability you can even convert the code automatically in IntelliJ: https://www.baeldung.com/kotlin/convert-to-java


Feature/rpc and serialize fixes

Problem
Missing unmarshal function for TXType and missing parametrization for "getblock" so it can return pure bytes
...
Solution
this patchset
...

And it would be nice to improve 4798d6c commit message, because it's adding unmarshalling for specific data type. Not critical, though.

done


unreads: Don't add messages with "read" flag to unreads.

Previously, the main (only?) case where we wouldn't add a message to
unreads was if we were the one who sent it. This check was not correct -
instead, we want to check to see if the message has the "read" flag,
which is set by the server.
In the past, these checks were very close to the same (with the
exception of "Notification Bot" announcing a stream that you created,
which would be "read" for you), but with the addition of muted users,
the check is now incorrect.
This commit removes the logic to not mark a message as read when we are
the one who sent it, and instead just looks at the server flag, since
that should be the canonical place for that information to be.

Previously, the main (only?) case where we wouldn't add a message to
unreads was if we were the one who sent it.

Hmm, there is a good question here! Were there any other cases where we wouldn't add the message to unreads?
The answer I wanted to give was: no, there weren't -- the other conditions that exist in the three sub-reducers for "streams", "pms" meaning 1:1 PMs, and "huddles" meaning group PMs, are a partition of the space of possibilities.
But looking closer, that is not quite so! After the message.type split between 'stream' and 'private', here's the conditions for "huddles" and "pms" respectively:
   if (recipientsOfPrivateMessage(action.message).length < 3) {
     return state;
   }

   if (recipientsOfPrivateMessage(action.message).length !== 2) {
     return state;
   }

What those still leave out is the case where the number of recipients is 1 -- i.e., the self-1:1 thread.
I think it's pretty unlikely that will ever matter -- i.e. that we'll ever have a case where you can receive a self-1:1 that isn't already read. Still, as part of completely fixing this bug, it'd be good to excise that flawed logic too.
Would you add a test that says if we get a self-1:1 and it isn't read, it does show up in the unreads state? And then fix that condition so the test passes. (This probably goes as a separate commit from the existing one.)

Added a follow-up commit to fix that, and removed the (only?) in the first commit.
Should be ready for another review :)

Thanks for the review @chrisbobbe! Added typechecking. I'm confused about the invariant thing, left a reply about that.

Added the comment you requested @chrisbobbe, would appreciate you looking it over :)

Going to go ahead and merge this, since there's no response and IIRC I only added a comment since the last review.

Thanks @WesleyAC and @chrisbobbe! I added a reply on the thread above at https://github.com/zulip/zulip-mobile/pull/4710#discussion_r637661856 .


Make response properties required

Problem description
Make response properties "latestSimChange" and "swapped" required since they will always be returned

Hello @fernandopradocabrillo
Are we sure for latestSimChange as this is not the outcome of https://github.com/camaraproject/SimSwap/issues/16 ?
My apologies if I missed a conversation within the team to agreed on this. Not a blocker for me but wanting to be sure we have agreement.
cc @trehman-gsma

Hi @bigludo7
I assume this was the agreed outcome since we haven't had any new update and Toyeeb's summary pointed in that direction. I missed that meeting but there seemed to be a consensus.
From TEF we have actually implement in this direction using the null as preferred option.

Hello @fernandopradocabrillo
But option 2 of the #16 is:
# 2 - an empty body returned because latestSimChange is an optional attribute
{

}

I'm fine to remove this option but probably let's wait a formal discussion in next meeting - wdyt?

Hello @bigludo7
Sure, let's discuss on the next meeting. Maybe I was too fast in assuming the outcome, the empty body option is feasable for us too, I just thought it was out of the table.


Doesn't correctly sort files when unzip a ZIP files.

Have a structure:
/zip
   |30.zip
   |            |_1.png
   |            |_2.jpg
   | ....
   |            |_13.jpg
   |            |_20.png
   | ....
   |40.zip
   |            |_1.png
   |            |_2.jpg
   | ....
   |            |_13.jpg
   |            |_22.png

And in output i get in ./images:
   | 1.png  | ok
   | 2.jpg  | but its 10.jpg 30.zip
   | 3.jpg  | but its 11.jpg 30.zip
   | 4.jpg  | but its 12.jpg 30.zip
   | 5.jpg  | but its 12.jpg 30.zip
   | ...
   | 12.jpg | but its 2.jpg  30.zip
   | 13.jpg | but its 20.png 30.zip
   | 14.jpg | but its 3.jpg  30.zip
   | 15.jpg | but its 4.jpg 30.zip
   | ...
   | 20.jpg | but its 9.jpg  30.zip

Check pull request.

@safarirat nice
had no time to finally debug this:)
thank you


Fix luma to CMYK conversion

The luma value is basically the "amount of white" but the CMYK values are rather an "amount of darkness" so it should be inverted. Previously cmyk(black) would return white (and the other way around).
This was also included in #2661 but then forgotten.

Thanks!


How to ask mstest to stop once it finds a discovery failure like UTA007

Description
We had bunch of test that their signature was async, but return types where void.
So we were receiving errors like this Azure DevOps test step
2018-10-11T06:06:39.0663002Z [MSTest][Discovery][x.dll] UTA007: Method Test1 defined in class Class1 does not have correct signature. Test method marked with the [TestMethod] attribute must be non-static, public, return-type as void  and should not take any parameter. Example: public void Test.Class1.Test(). Additionally, if you are using async-await in test method then return-type must be Task. Example: public async Task Test.Class1.Test2()
The question here is what parameter we could pass to vstest.console.exe to break/stop on these errors. We basically didn't know these tests was not running for a long time

A similar problem where discovery failure doesnt report as error and tests silently fail to run is apparently correctable by using package reference. Are you using package ref or packages config for your test project?

This is asp.net core project using package ref

@sadjadbp , currently this by design, both test platform, & framework try to run as many test as possible, until some fatal error occurs.

@sadjadbp , there is no backlog currently to add such a feature to vstest.console, as we intend to run as many test as possible for user, however for such cases users can always generate trx file via passing --logger:trx. The report of this can ve analyzed in vsts, or VS IDE as per user convenience, where an appropriate warning is shown for such methods.

@mayankbansal018 - The user intention here is clearly to execute the code marked with [TestMethod] (and without an [Ignore]) as a test, and expects that test to either pass or fail.
It cannot be by design to report a successful overall result when there is a failure to execute any test.

Yes thanks @StingyJack that's exactly my point. Doesn't seems to be a good answer. We didn't know we had a failing/missing test.

I agree with the user intention to be able to run test not marked as Ignored, but so far the test adapter throws a warning for such adapters, giving user a chance to correct them. Taking a fix here, & failing such tests not could potentially break other customers, who might be aware of it, since adapter has already thrown a warning, & also it is logger in trx files if it is enabled.
I'll talk to team internally, & discuss is it okay to take such a fix, which we can break other customers.
If we are in-fact okay to take a fix, is it possible for one of you take this work, & create a PR?

I'm fine with warning as long as I would have an option to "treat warnings as errors" and that's my original ask here.

If we are in-fact okay to take a fix, is it possible for one of you take this work, & create a PR?

@mayankbansal018 - if you can take a fix for the older QualityFramework dll, then possibly. As I've noted in other issues, MSTest2 is not an option for me as it currently requires using nuget PackageReference in order to avoid the "silently skipped tests" issue at topic here.
I'm not sure who would be depending on tests to not be executed and would complain about fixing this. If fixing this breaks someone's code, then that is code that needs to be broken.  This is really not something to warn people about, the program cannot comply with the user request ("run all the tests defined"). Its not the same as the program running sub-optimally.
Also a warning about a test adapter (any warning really) is easily missed in any project with more warnings than the build summary or errors list can show in a single page view (I am currently experiencing one type of warning that requires about 10 pages of scrolling in the error list at its default height).

@sadjadbp  @StingyJack , Apologies for getting delayed on this, I've not been able to spend enough time on it, will try to get back within a day or two.

@jayaranigarg , @cltshivash  I was looking into this issue, & it seems a fair ask, that we report test as failed if we cannot run them. E.g. being if a Test is marked as async, but does not have return type Task, we do not run such tests, & just throw a warning.
We do similar thing for tests that are marked as Ignored, & show them as fail as per users input MapInconclusiveToFailed.
On similar lines we can report not run-able as Failed

Closing this issue. Tests that are not runnable can be failed if specified so using  <MapNotRunnableToFailed>false</MapNotRunnableToFailed> attribute.

@vagisha-nidhi - permitting silent failures is completely unexpected behavior.
It looks like you have released software with broken functionality that is borderline "evil"  and then are trying to avoid fixing it by sitting on the bug report for a few months and trying to sneak-close it. Instead of throwing an exception.
You should ask a few of the other teams at msft if they are ok with some portion of their unit tests just never being executed, and how they feel about not getting an error or any notice when it happens. Try to use my plain, non wordsmithed description when you ask them.

@StingyJack The filter many of the users provide when running tests in the pipelines include assemblies that aren't necessarily test assemblies and discovery failures in these assemblies today don't fail a test run. The change has been made keeping in mind backward compatibility as well in mind. If you do want a stricter enforcement, please specify the option called out above.

@cltshivash - To be clear, this is a program or module that does not heed user instruction. It fails to perform the command issued to it, and does so silently.  And this program is one that acts as a quality gate for software - many times this is the only quality gate after the developers initial testing when coding a change or addition.
I can understand some weird quirk being re-coded into an application to maintain user experience, backward compat, or general business continuity, but this is definitely not one of those weird quirks.  This is directly counter to that last reason; In one case, I had about 500 of a team projects 2K unit tests not being executed and not throwing an error. This was happening while preparing a major releases and a series of updates, and there were other team projects that were /are still affected by this.
The position that people want silent failures in their quality control and testing pipeline, because they are used to the silent failures and expect them, is not very defensible. If there are people who want this specific bug to be kept in, let them ask for it. But for now, they are out-voted 2-0. Please reopen and fix. Thank you.


KNX Climate broken in 0.96.0

Home Assistant release with the issue: 0.96.0
Last working Home Assistant release (if known): 0.95.4
Operating environment (Hass.io/Docker/Windows/etc.): Docker on Synology NAS
Component/platform: KNX Climate
Description of problem:
After update none of the KNX climate instances are working, throwing errors in the log as per bellow traceback.
Problem-relevant configuration.yaml entries:
- platform: knx
  name: Hallway
  temperature_address: 4/6/1
  target_temperature_state_address: 4/5/1
  setpoint_shift_address: 3/3/1
  setpoint_shift_state_address: 4/3/1
  operation_mode_address: 3/1/1
  controller_status_state_address: 4/0/1

Traceback:
2019-07-18 11:57:26 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 365, in _async_add_entity
    await entity.async_update_ha_state()
  File "/usr/src/app/homeassistant/helpers/entity.py", line 226, in async_update_ha_state
    self._async_write_ha_state()
  File "/usr/src/app/homeassistant/helpers/entity.py", line 256, in _async_write_ha_state
    attr.update(self.state_attributes or {})
  File "/usr/src/app/homeassistant/components/climate/__init__.py", line 181, in state_attributes
    if self.target_temperature_step:
  File "/usr/src/app/homeassistant/components/knx/climate.py", line 222, in target_temperature_step
    return self.device.temperature_step
AttributeError: 'Climate' object has no attribute 'temperature_step'

I can see there is an on-going discussion about it:
https://github.com/XKNX/xknx/issues/218

Me too.... All my KNX Thermostats and Temperature sensors broken, same config as above. HASS.IO in Docker running on Intel NUCi3 Ubuntu 18.04

I just checked and many of my other KNX components in HA are also broken.

Certainly a general issue. I've also noticed the Samsung Smarthings Hub that integrates my door lock has lost connectivity to Nabu Casa, despite me rolling back the old version...

With 0.96 knx climate component has an error. There was a timing issue with our pull requests - the one that would require a newer version of xknx wasn't merged in time for 0.96, but others updating for the new climate versions depend on this. Hence the HA knx climate integration expects a newer version of xknx to be loaded than HA provides.
The whole knx platform seems to break after a while when using this climate device. Commenting out knx climate devices in the configuration seems to prevent the other knx devices from failing after some time.

This property was changed in #24931 by @marvin-w
The old temperature step property used to return self.device.setpoint_shift_step, now it's return self.device.temperature_step

Yes this would have required https://github.com/home-assistant/home-assistant/pull/24738 to be merged as well.
Is it possible to to get this PR in the next dot release?

That is a breaking change, which we should not include as part of a patch release. I think that we should make a temporary patch for the RC branch that reverts the property change.

Certainly a general issue. I've also noticed the Samsung Smarthings Hub that integrates my door lock has lost connectivity to Nabu Casa, despite me rolling back the old version...

It was also a general issue for me, until I removed only the climate components of my config. Then all the other KNX components work again.

Hi,
does switch to 0.11.1 as a custom component will fix this problem ? I tried that but I have errors about const (STATE_DRY etc) not found in home assistant climate component. It looks like 0.11.1 is not ready for the big climate HA refactor... Am I right ?

@farmio could you make a PR based off the rc branch that fixes KNX but contains no breaking changes?

@jncanches if you want to use 0.11.1 just switch to the dev branch for now. The climate-1.0 changes are only in HA for now and are not yet merged to the xknx custom component. So the climate component in https://github.com/XKNX/xknx/tree/master is not up to date for 0.96 for now.
@balloob I did and I hope its will work. I'm not using climate devices myself so I can't really test 😶 . Will a PR to rc be merged to 0.97 as well? In other words, do we need a PR that reverts this again for the next release?

@farmio I ended up using the knx component from dev branch in a custom_component.
Works pretty good but I had to fix some bugs in climate.py. Especially for the support_on_off feature.
For example, when clicking on on/off button, you can only turn on the climate by suing HEAT. Or with support_on_off, the returned state is always HEAT. Also, the control modes returned contains HEAT twice.
Otherwise, this work great, even with a 20.105 control mode (it's a great news for me as I can drop my MQTT implementation). I think this was why what you suggested here was not working...
Is there a place where you want me to give my little bugfixes ? In this thread or in xknx github repo ?

@jncanches wherever you like.

@farmio So here are my fixes ( I think they are not perfect at all )
def hvac_mode(self) -> Optional[str]:
    """Return current operation ie. heat, cool, idle."""
     if self.device.supports_on_off and not self.device.is_on:
        return HVAC_MODE_OFF
	"""if self.device.supports_on_off and self.device.is_on:"""
	"""    return HVAC_MODE_HEAT"""
    if self.device.mode.supports_operation_mode:
	return OPERATION_MODES.get(
	    self.device.mode.operation_mode.value, HVAC_MODE_HEAT)
    return None`

I commented the elif that always return HEAT if on_off_supported.
def hvac_modes(self) -> Optional[List[str]]:
    """Return the list of available operation modes."""
    _operations = [OPERATION_MODES.get(operation_mode.value) for
                             operation_mode in
                             self.device.mode.operation_modes]

    if self.device.supports_on_off:
        """ _operations.append(HVAC_MODE_HEAT)"""
        _operations.append(HVAC_MODE_OFF)

        return [op for op in _operations if op is not None]

Only add OFF if on_off_supported instead of HEAT and OFF
async def async_set_hvac_mode(self, hvac_mode: str) -> None:
    """Set operation mode."""
    if self.device.supports_on_off and hvac_mode == HVAC_MODE_OFF:
        await self.device.turn_off()
        """elif self.device.supports_on_off and hvac_mode == HVAC_MODE_HEAT:"""
        """    await self.device.turn_on()"""
    elif self.device.mode.supports_operation_mode:
        from xknx.knx import HVACOperationMode
        knx_operation_mode = HVACOperationMode(
            OPERATION_MODES_INV.get(hvac_mode))
        await self.device.turn_on()
        await self.device.mode.set_operation_mode(knx_operation_mode)
        await self.async_update_ha_state()

Commented elif that just turn on device when HEAT is selected. Instead, ensure a call to turn_on before setting the requested operation_mode.
Hope this will help.
JN

@farmio It seems that "often" (sorry I haven't a way to reproduce it clearly) the controller_mode is not restored after an HA restart. I have state_updater: true in my config.
That's weird because all my switches/sensors etc are ok.
I have another question. How can I manage correctly the "AWAY" status (by default it's always on).
My device is a Instesisbox KNX-Fujitsu which does not have an operation_mode control. Instead I have an on/off address for eco mode, which I would like to use for the HA AWAY preset mode. (I haven't specify any of the comfort, night or frost protection address.) Do you plan to add kind a operation_mode_away_address or something like that ? (Code in climate.py seems to do a mix between operation_mode and preset_mode but maybe I completely misunderstood it, if it's the case, my apologies)
This component rocks :)

@jncanches we haven't planned anything like this because we didn't know such devices exist. I think all xknx devs only own operation_mode devices, so we can't really test these things...
Can you please open a feature request issue in the xknx repo?
For your state not being read you could record your udp traffic, collect some logs and open an issue as well. state_updater: true should be default if I recall right.

@farmio I have merged back master into dev and all is set for the next release 👍

HI! When you say "Next release" do you mean 0.97.x? or the current 0.96.5. Thanks!

Just tried with 0.96.5 and still plenty of issues with the release. Lots the KNX Thermostat modes (bit at leat the entities are recognised) Another issue is the release has broken the Tesla and BMW integrations, have to wait until 0.97 and see if this is still an issue, until then its back to 0.95.4

Hi @G8YTZ also facing a broken tesla integration on 0.96.5, do you happen to know if an issue is submitted for this, I couldn't find one. tx

Guys, this issue has nothing to do with Tesla. Please keep it on topic.
Feel free to open a new issue.


CRT Enhancements

This PR merges a collection of recent enhancements to the CRTTransferManager to improve both durability and throughput in the CLI/Boto3 when opted into this feature.

Codecov Report
Attention: 123 lines in your changes are missing coverage. Please review.

Comparison is base (cc9345a) 85.36% compared to head (403184d) 83.01%.

Files
Patch %
Lines

s3transfer/crt.py
0.00%
123 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #285      +/-   ##
===========================================
- Coverage    85.36%   83.01%   -2.36%
===========================================
  Files           16       16
  Lines         2719     2796      +77
===========================================
  Hits          2321     2321
- Misses         398      475      +77

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Retry tests on appveyor

Some tests are timing out randomly. This will retry the testsuite.
Since this is a upstream problem this is the best we can do for now (travis retries as well).

AppVeyor makes that nice and clean.

I reduced the error timeouts on my machine to see the output of random failing tests. It looks like they're failing because the hardcoded ports are sometimes not available.
I think I open a issue on the upstream repo 😁.

portfinder to the rescue?

Yup probably


Key remapping using xkbd options broke with the keybinding changes in 1.11

VSCode Version: 1.11.0
OS Version: Ubuntu 16.10

I originally commented in #24057 but was told to open a separate issue.
I use the xkb option caps:swapescape to map my ESC key to the caps lock key in my keyboard layout because I like to use Vim mode for editing in VSCode. Since 1.11.0 VSCode caps lock does nothing (not even switch capitalization). The ESC key actually acts as an ESC key in VSCode but switches captitalization.
Since 1.11 can now read the keyboard layout it probably just does not handle options on it and therefore gets the key mapping wrong.

Same issue here!

This interferes with any custom keyboard layout mapping for X11 using e.g. xmodmap. For instance, remappings that fix inappropriate/broken keyboard layouts. The key-mappings remain available across the bulk of MSCode (dialogs, etc), but not in the text editor window. (I'm on Kubuntu 16.10 w/ MSCode 1.11.0)
Test case (assumes a regular US-english keyboard layout):
$ xmodmap -e "keycode 105 = End"
Now your right-control key should be remapped to act like the End key (test to be sure before proceeding, if not, use xev to discover the keycode of your right-control key). Start MSCode, open a text file and you'll find it doesn't act as an End key in the text editor.

@mcfletch Confirmed here.. I use xmodmap to map my esc key to caps lock.
Distro: Arch Linux

Is this all with U.S. English keyboard layouts?

@chrmarti the keyboard layout shouldn't change the behaviour, it just controls the keycode's used in setting up the test case for replication. In my case, yes, us-english XPS 15.

I just want to add that this also affects the default Colemak keyboard layout on Ubuntu 16.04, which assigns the caps lock key to backspace. I'm not sure how Ubuntu handles that under the hood, but it's at least another datapoint to check.

Also having the same problem as @Wehrdo, but on Arch Linux with Cinnamon.

Affects Swiss and US keyboard layouts here.

It may already be known, but I bisected throw 1.10.2 and 1.11.1 and found out that commit d1023963 introduced this problem.
I'll have a look myself and see if I contribute fixing it, but as I have zero experience with the stack I can't make any promises, which is why I'm focusing on sharing what I've found out so far.

Duplicate of #23991. A workaround is detailed in https://github.com/Microsoft/vscode/issues/23991#issuecomment-292336504


fix check for available modules

What does this PR do?
Fixes #770
Before submitting

[x] Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
[x] Did you read the contributor guideline, Pull Request section?
[x] Did you make sure to update the docs?
[x] Did you write any new necessary tests?

PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃

I was running it locally, but not much as it is the function that would be used for pytest skipif for testing... so loop :confused:


Module not found: Error: Can't resolve 'jupyterlab-ihaskell'

I'm having trouble installing the jupyterlab-ihaskell extension.  I spent an evening trying to figure this out but failed to do so.  Any ideas about how to fix this would be appriciated.
When I run jupyter labextension install --log-level=DEBUG jupyterlab-ihaskell, I get the following error.
ERROR in resolving fallback for shared module jupyterlab-ihaskell
Module not found: Error: Can't resolve 'jupyterlab-ihaskell' in '/home/adamsmd/.local/share/virtualenvs/jupyter-pipenv-fwoNqfwc/share/jupyter/lab/staging/build'

The complete output is as follows.  (The file /tmp/jupyterlab-debug-_lnyugbm.log contains the same except it doesn't have some of the lines at the start and end.)
Searching ['/home/adamsmd/o/jupyter/jupyter-pipenv', '/home/adamsmd/.jupyter', '/home/adamsmd/.local/share/virtualenvs/jupyter-pipenv-fwoNqfwc/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files
Looking for jupyter_config in /etc/jupyter
Looking for jupyter_config in /usr/local/etc/jupyter
Looking for jupyter_config in /home/adamsmd/.local/share/virtualenvs/jupyter-pipenv-fwoNqfwc/etc/jupyter
Looking for jupyter_config in /home/adamsmd/.jupyter
Looking for jupyter_config in /home/adamsmd/o/jupyter/jupyter-pipenv
Looking for lab_config in /etc/jupyter
Looking for lab_config in /usr/local/etc/jupyter
Looking for lab_config in /home/adamsmd/.local/share/virtualenvs/jupyter-pipenv-fwoNqfwc/etc/jupyter
Looking for lab_config in /home/adamsmd/.jupyter
Looking for lab_config in /home/adamsmd/o/jupyter/jupyter-pipenv
Node v12.18.2

Yarn configuration loaded.
> /usr/bin/npm pack jupyterlab-ihaskell
npm notice
npm notice 📦<EMAIL_ADDRESS>npm notice === Tarball Contents ===
npm notice 0     style/index.css
npm notice 1.2kB package.json
npm notice 464B  README.md
npm notice === Tarball Details ===
npm notice name:          jupyterlab-ihaskell
npm notice version:       0.0.12
npm notice filename:      jupyterlab-ihaskell-0.0.12.tgz
npm notice package size:  866 B
npm notice unpacked size: 1.6 kB
npm notice shasum:        2922b8d1c37b6376287744d97d2357ad228c5297
npm notice integrity:     sha512-FXE3KGNNRadi7[...]0FNX+8H/AalEg==
npm notice total files:   3
npm notice
jupyterlab-ihaskell-0.0.12.tgz

Fetching URL: https://registry.yarnpkg.com/jupyterlab-ihaskell
> /usr/bin/npm pack<EMAIL_ADDRESS>npm notice
npm notice 📦<EMAIL_ADDRESS>npm notice === Tarball Contents ===
npm notice 0     style/index.css
npm notice 1.2kB package.json
npm notice 464B  README.md
npm notice === Tarball Details ===
npm notice name:          jupyterlab-ihaskell
npm notice version:       0.0.12
npm notice filename:      jupyterlab-ihaskell-0.0.12.tgz
npm notice package size:  866 B
npm notice unpacked size: 1.6 kB
npm notice shasum:        2922b8d1c37b6376287744d97d2357ad228c5297
npm notice integrity:     sha512-FXE3KGNNRadi7[...]0FNX+8H/AalEg==
npm notice total files:   3
npm notice
jupyterlab-ihaskell-0.0.12.tgz

Node v12.18.2

Yarn configuration loaded.
Building jupyterlab assets (production, minimized)
> node /home/adamsmd/.local/share/virtualenvs/jupyter-pipenv-fwoNqfwc/lib/python3.8/site-packages/jupyterlab/staging/yarn.js install --non-interactive
yarn install v1.21.1
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info<EMAIL_ADDRESS>The platform "linux" is incompatible with this module.
info<EMAIL_ADDRESS>is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning "@jupyterlab/extensionmanager ><EMAIL_ADDRESS>has incorrect peer dependency<EMAIL_ADDRESS>warning "@jupyterlab/json-extension ><EMAIL_ADDRESS>has incorrect peer dependency<EMAIL_ADDRESS>|| ^15.0.0 || ^16.0.0".
warning "@jupyterlab/json-extension ><EMAIL_ADDRESS>has incorrect peer dependency<EMAIL_ADDRESS>warning "@jupyterlab/json-extension ><EMAIL_ADDRESS>has incorrect peer dependency<EMAIL_ADDRESS>warning "@jupyterlab/ui-components > @blueprintjs/core ><EMAIL_ADDRESS>has incorrect peer dependency<EMAIL_ADDRESS>|| ^15.0.0 || ^16.0.0".
warning "@jupyterlab/ui-components > @blueprintjs/core > react-popper ><EMAIL_ADDRESS>has incorrect peer dependency<EMAIL_ADDRESS>|| ^15.0.0 || ^16.0.0".
warning "@jupyterlab/vdom ><EMAIL_ADDRESS>has incorrect peer dependency<EMAIL_ADDRESS>warning " ><EMAIL_ADDRESS>has unmet peer dependency<EMAIL_ADDRESS>[5/5] Building fresh packages...
success Saved lockfile.
Done in 2.27s.

> node /home/adamsmd/.local/share/virtualenvs/jupyter-pipenv-fwoNqfwc/lib/python3.8/site-packages/jupyterlab/staging/yarn.js yarn-deduplicate -s fewer --fail
yarn run v1.21.1
$ /home/adamsmd/.local/share/virtualenvs/jupyter-pipenv-fwoNqfwc/share/jupyter/lab/staging/node_modules/.bin/yarn-deduplicate -s fewer --fail
Done in 0.28s.

> node /home/adamsmd/.local/share/virtualenvs/jupyter-pipenv-fwoNqfwc/lib/python3.8/site-packages/jupyterlab/staging/yarn.js run build:prod:minimize
yarn run v1.21.1
$ webpack --config webpack.prod.minimize.config.js
assets by status 10 MiB [cached] 114 assets
orphan modules 4.69 MiB [orphan] 1237 modules
runtime modules 99.3 KiB 14 modules
built modules 13.3 MiB (javascript) 4.47 KiB (consume-shared) 4.43 KiB (share-init) [built]
  modules by path ./node_modules/ 13.3 MiB
    cacheable modules 13.3 MiB 975 modules
    3 modules
  consume-shared-module modules 4.47 KiB
    modules by path consume shared module (default) @jupyterlab/ 3.53 KiB 41 modules
    modules by path consume shared module (default) @lumino/ 588 bytes 14 modules
  provide-module modules 4.43 KiB 108 modules
  modules by path ./build/ 23.3 KiB
    ./build/bootstrap.js 3.78 KiB [built] [code generated]
    ./build/index.out.js + 1 modules 19.5 KiB [built] [code generated]
  4 modules

WARNING in ./node_modules/vega-lite/build/src/index.js 5:0-30
Should not import the named export 'version' (reexported as 'version') from default-exporting module (only default export is available soon)
 @ consume shared module (default<EMAIL_ADDRESS>(strict) (fallback: ./node_modules/vega-lite/build/src/index.js)
 @ ./node_modules/vega-embed/build/vega-embed.module.js 6:0-44 189:15-29
 @ consume shared module (default<EMAIL_ADDRESS>(strict) (fallback: ./node_modules/vega-embed/build/vega-embed.module.js)
<EMAIL_ADDRESS>166:28-48
 @ consume shared module (default<EMAIL_ADDRESS>(strict) (fallback<EMAIL_ADDRESS> @ ./build/index.out.js 171:16-54
 @ ./build/bootstrap.js

ERROR in resolving fallback for shared module jupyterlab-ihaskell
Module not found: Error: Can't resolve 'jupyterlab-ihaskell' in '/home/adamsmd/.local/share/virtualenvs/jupyter-pipenv-fwoNqfwc/share/jupyter/lab/staging/build'

webpack 5.19.0 compiled with 1 error and 1 warning in 31788 ms

asset index.css 16.1 KiB [compared for emit] (name: index)
asset index.js 0 bytes [compared for emit] [minimized] (name: index)
Entrypoint index 16.1 KiB = index.css 16.1 KiB index.js 0 bytes
<EMAIL_ADDRESS>50 bytes [built] [code generated]
css<EMAIL_ADDRESS>15.3 KiB [code generated]
css<EMAIL_ADDRESS>472 bytes [code generated]
css<EMAIL_ADDRESS>342 bytes [code generated]
webpack 5.19.0 compiled successfully in 2060 ms

asset index.css 15 KiB [compared for emit] (name: index)
asset index.js 0 bytes [compared for emit] [minimized] (name: index)
Entrypoint index 15 KiB = index.css 15 KiB index.js 0 bytes
<EMAIL_ADDRESS>50 bytes [built] [code generated]
css<EMAIL_ADDRESS>14.2 KiB [code generated]
css<EMAIL_ADDRESS>472 bytes [code generated]
css<EMAIL_ADDRESS>342 bytes [code generated]
webpack 5.19.0 compiled successfully in 2058 ms
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

JupyterLab failed to build
Traceback (most recent call last):

  File "/home/adamsmd/.local/share/virtualenvs/jupyter-pipenv-fwoNqfwc/lib/python3.8/site-packages/jupyterlab/debuglog.py", line 47, in debug_logging
    yield

  File "/home/adamsmd/.local/share/virtualenvs/jupyter-pipenv-fwoNqfwc/lib/python3.8/site-packages/jupyterlab/labextensions.py", line 132, in start
    build(clean_staging=self.should_clean,

  File "/home/adamsmd/.local/share/virtualenvs/jupyter-pipenv-fwoNqfwc/lib/python3.8/site-packages/jupyterlab/commands.py", line 469, in build
    return handler.build(name=name, version=version, static_url=static_url,

  File "/home/adamsmd/.local/share/virtualenvs/jupyter-pipenv-fwoNqfwc/lib/python3.8/site-packages/jupyterlab/commands.py", line 678, in build
    raise RuntimeError(msg)

RuntimeError: JupyterLab failed to build

An error occured.
RuntimeError: JupyterLab failed to build
See the log file for details:  /tmp/jupyterlab-debug-_lnyugbm.log
Exiting application: lab

Yeah the instructions about jupyterlab-ihaskell are obsolete. Please read https://github.com/gibiansky/IHaskell/issues/1202

Thank you for the pointer.  I'm using the latest ihaskell in Hackage and LTS, which seems to be from before that change.  I was hoping to avoid an unmanaged install of ihaskell, but it sounds like that might have to be what I do.


chore(deps): update common-dev-assets digest to 89ff022

This PR contains the following updates:

Package
Update
Change

common-dev-assets
digest
e137274 -> 89ff022

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

:tada: This PR is included in version 2.1.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


[Program Filtering] Add a "My Applications" card section on the homepage

Description
Adding a section to the top of the homepage program card list titled “My Applications”.  It will include any programs that the user has applied to, whether they are in progress or submitted. Cards in this section differ from those in the other sections because they don't include the program image or the category tags. The current “In progress” or “Submitted” sections will be combined into one. Note that the status badge will have different styles as shown in the mocks, we will no longer show the word "Status:" and we will include the submission date if available on the badge.

This is behind the PROGRAM_FILTERING_ENABLED feature flag.
Instructions for manual testing

Go to the Dev Tools and click "Seed programs and categories".
Log in as a CF and Programs Admin.
Edit 2-3 programs by adding a few categories and an image.
Go back to the admin programs list.
In the kabob menu, click on "Manage application statuses".
Add a new default status.
Publish all programs.
Go back to the homepage.
Start applying to one program.
Finish applying to the program with the status.
Notice that cards in the My Applications section don't have images or category tags and that the status badge shows either "In progress", "Submitted xx/xx/xx" or " (Submitted xx/xx/xx)"

Issue(s) this completes
Fixes #8137

lgtm! not blocking: It might be nice to round the corners on the tags in the cards so they look a little less harsh

I thought so too, but deferred to the mocks.  In any case, this is only a temporary design until the North Star.


[Content]: It's unclear what permissions should the private API key have

What article on segment.com/docs is affected?
https://segment.com/docs/connections/destinations/catalog/actions-klaviyo/
What part(s) of the article would you like to see updated?
Credentials are invalid: 403 Forbidden error is produced when activating Klaviyo Action. However, it works well when all write access is given to the key.
Please provide a list of permissions the integration requires. A list of endpoints it's using is also sufficient as it would help to figure out which and what kind of permissions are needed.
Additional information
No response

Thank you!


StaticArray/Array improvements (map_with_index!) 2

cf: #3356
(misusage of git on my side, I had to recreate a new PR, my bad)
Aims: have map_with_index! in the StaticArray

I don't understand, why is StaticArray so special that you're making it the only class that has map_with_index!?

It should be map_with_index (without !), right?

Nevermind, I got confused. It's with ! because it ends up calling to_unsafe.map!, which mutates. @oprypin  are you objecting against this PR not including a map_with_index! for the common Array?

It would be cool to have map_with_index! in the Array too

Cool! Would you add map_with_index! to Array then?

Anything else that should be added / changed ?

No, looks good to me! Thank you!

Since map! is actually implemented in Pointer, why not implement there the logic and let StaticArray forward the call as in map!
Also, in Array#map_with_index! I think there should be no U, just T, since it is an inplace replacement. Forcing a T in the block will give a different and clearer error message.

You're right ! I fix that.

In StaticArray#map_with_index!, Pointer#map_with_index! & Array#map_with_index! the yield keywork should be replaced by block.call IMO.
Or remove the block parameter, and use only yield ?
We shouldn't mix named block & yield.

The block parameter is only used as documentation for the block types. Using block.call instead of yield will be uglier and perform much much worse.

I see, for Pointer#map_with_index! the block argument has no documentation, but is still there though.


Fixed errors in Gitgo.py

Fixed no "main()" function found
Fixed tow time use of .text attribute on requests
Added sys module so that we van pass commad line argument in it
Added print statement to check the working of program

@ViAsmit Thanks we have resolved that.


again wrong path for eglext.h

https://github.com/erincatto/Box2D/blob/master/Box2D/glfw/glx_platform.h#L37

Old issue. I've updated glfw and changed the build system to premake.


Error response from daemon: could not select device driver "nvidia" with capabilities: [[gpu]]

Hello,
I have an nvidia RTX 3060 12gb card with proprietary nvidia drivers installed, but I am getting the following issue:
I first run:
docker-compose build
docker-compose up

Then I am getting the following output:
Attaching to stablediffusion-infinity-sd-infinity-1
Error response from daemon: could not select device driver "nvidia" with capabilities: [[gpu]]

Try running
docker run -it --gpus=all --rm nvidia/cuda:11.4.2-base-ubuntu20.04 nvidia-smi
Does that run successfully and list your GPU? If not then somethings not setup on your end.


the watch example seems significantly slower than webpack --watch

Is it meant to have the same performance, or is it doing something different?  It's not entirely clear from the docs.

@gtrak Yes, it's true. I did some performance test and the results were the same using the same options.
gulp watch --no-color
[10:42:13] Using gulpfile ~/Developer/src/github.com/gulp-webpack-build/gulpfile.js
[10:42:13] Starting 'watch'...
[10:42:13] Finished 'watch' after 17 ms
[10:42:18] Waiting changes for webpack config ~/Developer/src/github.com/gulp-webpack-build/test/fixtures/test01/webpack.config.js
[10:42:18] Progress for webpack config ~/Developer/src/github.com/gulp-webpack-build/test/fixtures/test01/webpack.config.js
[10:42:18] 0% compile
[10:42:18] 10% 0/1 build modules
[10:42:18] 70% 1/1 build modules
[10:42:18] 40% 1/2 build modules
[10:42:18] 30% 1/3 build modules
[10:42:18] 50% 2/3 build modules
[10:42:18] 70% 3/3 build modules
[10:42:18] 73% optimize
[10:42:18] 75% hashing
[10:42:18] 76% create chunk assets
[10:42:18] 78% additional chunk assets
[10:42:18] 80% optimize chunk assets
[10:42:18] 90% optimize assets
[10:42:18] 95% emit
[10:42:18] 100%
[10:42:18] Stats for webpack config ~/Developer/src/github.com/gulp-webpack-build/test/fixtures/test01/webpack.config.js
[10:42:18]
Hash: 5727f6d0f4aed4efffc6
Time: 60ms
       Asset  Size  Chunks             Chunk Names
    test1.js  1840       0  [emitted]  test1
test1.js.map  2195       0  [emitted]  test1
chunk    {0} test1.js, test1.js.map (test1) 151 [rendered]
    [0] ./test/fixtures/test01/index.js 63 {0} [built]
    [1] ./test/fixtures/test01/modules/1.js 44 {0} [built]
    [2] ./test/fixtures/test01/modules/2.js 44 {0} [built]

webpack --config test/fixtures/test01/webpack.config.js --watch --progress --d
Hash: 5727f6d0f4aed4efffc6
Version: webpack 1.5.3
Time: 77ms
       Asset  Size  Chunks             Chunk Names
    test1.js  2304       0  [emitted]  test1
test1.js.map  2204       0  [emitted]  test1
   [0] ./test/fixtures/test01/index.js 63 {0} [built]
   [1] ./test/fixtures/test01/modules/1.js 44 {0} [built]
   [2] ./test/fixtures/test01/modules/2.js 44 {0} [built]

Closed for now, please reopen it if you have any issues.


breaking(Dropdown): Multi-select customization

Breaking Change:
Removes the removable prop from Label. This isn't in SUI-core and the functionality is replaced via the addition of the removeIcon prop. This lets you customize the icon that triggers the onRemove and as per our normal shorthand pattern, passing null will cause it to not be rendered at all.

Multiple improvements to <Dropdown multiple />

Set label to "active" on click
Allow custom rendering of labels
Add handler for label click

Active

Custom Label

Also adds an active prop to the Label element. This is actually a valid class name in SUI-core for Label outside of the context of a Dropdown:

The one on the right has the active class applied.
Also adds removeIcon prop to be able to customize the icon that triggers onRemove

Current coverage is 99.54% (diff: 100%)

No coverage report found for master at 064b921.

Powered by Codecov. Last update 064b921...f6b69dc

@levithomason - The tests were failing are related to assertValidShorthand. This generates an element via createShorthand using some default props (shorthandDefaultProps) and ensures that it's in the shallow rendering of the element.
This works when the values of shorthandDefaultProps are literals, however there's no way to make this work when the component passes an event handler to the shorthand like this PR is trying to do: https://github.com/Semantic-Org/Semantic-UI-React/pull/809/files#diff-fde3c67bba82fd0efc2088a5fe1a4686R207
Icon.create(removeIcon, { onClick: this.handleRemove })

One option would be to lighten the expectation:
-const renderedShorthand = createShorthand(ShorthandComponent, mapValueToProps, value, shorthandDefaultProps)
const element = createElement(Component, { ...requiredProps, [propKey]: value })

-shallow(element).should.contain(renderedShorthand)
+ shallow(element).should.have.descendants(name)

although you lose some granularity in the test with that approach. Also may get false positives since the selection isn't specific (e.g. if a component renders two Icons a test that should fail may pass).
For now I've tests for the removeIcon manually. If we run into this again we may want to address the issue here.

Ugh, my review has been pending here for a day.  I apparently didn't hit submit, so I'll submit yesterday's now and take another look at your latest.  Apologies!

For now I've tests for the removeIcon manually. If we run into this again we may want to address the issue here.

Agreed, some of the common tests (like this one) are getting pretty hairy.  We could assert each of their prop names/values match, except for props with function values where we'd only assert the prop name matches and the value is "a function".  Will let this one cook for now.

@levithomason - Addressed the feedback, should be g2g 👍
For the removeIcon prop I added a more clear description explaining that the icon would trigger onRemove and also added .demand(['onRemove']) since the removeIcon is only rendered if onRemove is provided.

@jcarbo would mind adding a simplified before / after migration guide to the PR description?  You can reference https://github.com/Semantic-Org/Semantic-UI-React/pull/805.

Released in<EMAIL_ADDRESS>

Now <Label content="test" /> triggers  Failed prop type: 'removeIcon' prop in 'Label' requires props: 'onRemove.' ;(

Thanks @meze. I've opened #827 for this problem.


hat::member_at documentation inside of README

split this into its own section

looks good 2 merge @ZeroMemes

yeyhehe OK buddy


Create onHeaderClick and onSubHeaderClick callbacks

Originally I thought I could just use the onBoundChange to accomplish what I was trying to do, but it fires on when the user scrolls left/right and changes the timeline bounds that way.
So, I propose adding two callbacks as props:

onHeaderClick(time, unitOfTime, event)
onSubHeaderClick(time, unitOfTime, event).

They would pass the header/subheader datetime, the current "unit" of time in the timeline (hour, day, month, year), and the click event as args. I need this to track changes in the unit of time in my container component.
Working on a PR for this right now.

@brentoneill any progress on this? Thinking I may need this as well and could possibly help.

This can be achieved by leveraging Custom headers like the following.
https://codesandbox.io/s/x9m2r5941p

released in 0.25.0


Newly created 'Contract Definition' is not reflected in 'Catalog Browser'

Bug Report
Describe the Bug
When a new contract definiton is created on "Contract Definitions" page, it does not appear in the "Catalog Browser"
Expected Behavior
When a new contract definition is created it has to appear in the Catalog Browser.
Steps to Reproduce
Steps to reproduce the behavior:

Go to 'Contract Definitions'
Click on 'Create contract definition'
Insert required properties
Click on 'Create'
See new item in list
Go to 'Catalog Browser'
See missing contract

Context Information
Add any other context about the problem here.

Used version

[DataDashboard #8c178ad]
[EDC v0.2.0]

OS: [Windows/CentOS7]

Detailed Description

Likely will be fixed by #54

The leftOperand of the AssetSelector has the wrong value.
Thats why a Asset is not mapped by a Contract Definition.