Add Support for Genero Business Development Language

Add support for Genero and Genero Forms. The grammars are different for these two "languages" which is why they have been separated out. Genero Forms is a markup for Genero which allows the rendering of Genero programs in Windows, Android, iOS, or the Web. There was no need to add heuristics as there were no languages using either the 4gl or per extension.
Description
Adding support for the Genero Business Development Language from FourJs. This language is the evolution of the language Informix 4GL. There is still a lot of Informix 4GL code out there and Genero 4GL code which is being maintained so it would be useful to have language detection and syntax highlighting in GitHub.
Checklist:

[x] I am adding a new language.

[x] The extension of the new language is used in hundreds of repositories on GitHub.com.

Search results for each extension:

https://github.com/search?utf8=✓&type=Code&ref=searchresults&q=extension%3A4gl+import fgl+NOT+nothack
https://github.com/search?q=extension%3Aper+layout+NOT+nothack&type=code

[x] I have included a real-world usage sample for all extensions added in this PR:

Sample source(s):

https://github.com/alienriver49/linguist/blob/master/samples/Genero/hello-world.4gl
https://github.com/alienriver49/linguist/blob/master/samples/Genero/edit-form.4gl
https://github.com/alienriver49/linguist/blob/master/samples/Genero Forms/edit-form.per

[x] I have included a syntax highlighting grammar: see it in action

Unfortunately, popularity on GitHub for both extensions is far from meeting our requirements of:

We try only to add languages once they have some usage on GitHub. In most cases we prefer that each new file extension be in use in hundreds of repositories before supporting them in Linguist.

... where hundreds is considered over 200 unique user/repo combos, for inclusion in the immediate future. .4gl comes in at only being spread across 22 unique user/repos and .per across 130, but quite a few of those don't look like the samples in this PR so probably not the same language and thus likely to be less popular.

Unsubcribed thanksEl 4 nov. 2020 11:43, Colin Seymour<EMAIL_ADDRESS>escribió:
Unfortunately, popularity on GitHub for both extensions is far from meeting our requirements of:
We try only to add languages once they have some usage on GitHub. In most cases we prefer that each new file extension be in use in hundreds of repositories before supporting them in Linguist.
... where hundreds is considered over 200 unique user/repo combos, for inclusion in the immediate future. .4gl comes in at only being spread across 22 unique user/repos and .per across 130, but quite a few of those don't look like the samples in this PR so probably not the same language and thus likely to be less popular.
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or unsubscribe.

@lildude This has had conflicts resolved and has been updated with a better example. Let me know if there are other pieces which need to be addressed.


Add zsv/setup-action for GHA workflows

Add custom GHA composite action to install zsv+zsvlib
Add CI workflow to test it
Add its README
Update main README with an example and link

Signed-off-by: Azeem Sajid<EMAIL_ADDRESS>

@liquidaty: Please review. Thanks!
Test from an external repo:
https://github.com/iamazeem/test/actions/runs/11293554137/job/31411946477


Add default_branch api field

As brought up in #511, the default_branch option is available on create and update in the pipelines endpoint, but wasn't listed in the docs.
This PR adds default_branch as well as alphabetising the attribute tables.

The UI already mentions the pipeline page filtering! 👍🏻 I've added to this as well. Thanks @toolmantim!


Allow bypassing the variable default type checks; PlatformData passthroughs

Allow overriding platformdata
Allow bypassing the variable default type check
Properly pass platformdata into native code

yep


code style: else block verification

Add an example of preferred code style with explicitly failing else block with undetermined value. Add link to real-life bug from not following this pattern.

Can I request that we add a note not to emulate existing code like this that uses the exception message of "Invariant".  I find that language confusing.  Maybe something like "Cases are inexhaustive" or something like that would be better.

The example exception in this PR works for you though, @davesque ?

@carver Yeah, for sure.  No problem with that.  I just thought I'd use the opportunity to comment on that pattern that I've seen in a number of places.  I think it spread around because it's easy to copy and paste existing code without making changes.  So maybe a note below the section added in this PR would be useful to call it out explicitly.  I'll make a separate PR to show what I mean.

It might also make sense to just make PRs to replace those exception messages if there aren't too many of them.


Implement new data downloads page

As part of #1411, we will implement a new data downloads page that allows users to download a larger list of files. The implementation is based on each data file being included in a JSONlines file that will be produced by the ETL pipelines.
Can we please implement a new data downloads page based on the following specification (v2.4)?
User visits /downloads/data page

At the top of the page, please display the following text:

The Open Targets Platform is committed to open data and open access research and all of our data is publicly available for download and can be used for academic or commercial purposes. Please see our Licence documentation for more information.
Current data version: 21.04
Access archived datasets via FTP

Please link "Licence documentation" to https://platform-docs.opentargets.org/licence and please link "FTP" to http://ftp.ebi.ac.uk/pub/databases/opentargets/platform/.
The data version is available by calling the GraphQL meta endpoint and requesting dataVersion.year and dataVersion.month (e.g. sample query returning 21.02).
The list of datasets are available in a JSONlines file based on the output of the ETL pipeline - list-of-datasets.json. The dataset labels, description, show/hide status, and order are available in a JSON file - dataset-mapping-file.json. Both files share the same id value so that using the id from the list-of-datasets.json file will correspond with an entry in the dataset-mapping-file.json file.
json-files-for-data-downloads-page.zip
Please integrate both JSON files and show in a data table (include search and show more rows functionality).
Within the dataset-mapping-file.json file,  please use the include_in_fe boolean to determine if the file should be shown in the data table and use the order to determine the order the files should be shown.

Table column
Value
Example

Dataset
nice_name from dataset-mapping-file.json
Associations - direct (overall score only)

Description
description from dataset-mapping-file.json
Overall scores for direct target-disease associations

Formats
resource.format from list-of-datasets.json
json

User clicks on any of the chips in the "Format(s)" column

Please use the drawer component to open up a view with tabs for each format. Within each tab, please provide the relevant URLs for FTP and Google Cloud Access and the Font-Awesome copy icon that copies the URL to the user's clipboard.
FTP
baseUrl: ftp.ebi.ac.uk/pub/databases/opentargets/platform/
dataVersion.year: use GraphQL API meta endpoint to retrieve dataVersion.year
dataVersion.month: use GraphQL API meta endpoint to retrieve dataVersion.month
filePath: use resource.path value
The format of the URL should be baseUrl + dataVersion.year + . + dataVersion.month + /output/ETL/ + filePath
For example, ftp.ebi.ac.uk/pub/databases/opentargets/platform/21.04/output/ETL/associationByOverallDirect
Google Cloud
baseUrl: gs://open-targets-data-releases/
dataVersion.year: use GraphQL API meta endpoint to retrieve dataVersion.year
dataVersion.month: use GraphQL API meta endpoint to retrieve dataVersion.month
filePath: use resource.path value
The format of the URL should be gsutil ls + baseUrl + dataVersion.year + . + dataVersion.month + /output/ETL/ + filePath
For example, gsutil ls gs://open-targets-data-releases/21.04/output/ETL/associationByOverallDirect

@mirandaio we have updated the list of datasets and the dataset mapping file - the structure remains the same but we have updated some of the fields (e.g. descriptions). Please use the files below:
json-files-for-data-downloads-page-version-2.zip

Some decisions on the meeting today:

Contact BE to check metadata containing the files
Display format(s) JSON and Parquet as 2 chips
When opening the drawer: No-tab would be needed as they would be specific of json or parquet
The content of the widget can contain 3 sections
.1 FTP link - This will contain a link in the form http://ftp.ebi.ac.uk/pub/databases/opentargets/platform/21.02/output/...
.1 wget command - This will contain the command wget -r -np -nH --cut-dirs 7 ftp://ftp.ebi.ac.uk/pub/databases/opentargets/platform/21.02/output/ETL_parquet/diseases
.1 Google Cloud Platform (paywalled) - This will contain the command gsutil -m cp -r gs://open-targets-data-releases/21.04/output/etl-parquet/diseases .

Also, please update the URL of the downloads page to /downloads

Looks great @mirandaio! 👍  Can we please make a few changes and then open a PR?

[ ] In the text section, after the first paragraph, add a new paragraph

For sample scripts to download and parse datasets using Python or R, please visit our Data Downloads documentation

[ ] Standardise the formatting of the chips to JSON and Parquet

[ ] Within the drawer, update the options available and the URL based on a common URL pattern of baseURL + / + dataVersion + /etl/output/ + datasetFormat + / + datasetName

Option
baseURL

rsync
rsync -rpltvz --delete rsync.ebi.ac.uk::pub/databases/opentargets/platform/

wget
wget --recursive --no-parent --no-host-directories --cut-dirs 7 \ ftp://ftp.ebi.ac.uk/pub/databases/opentargets/platform/

FTP
ftp.ebi.ac.uk/pub/databases/opentargets/platform/

Google Cloud (paywalled)
gsutil -m cp -r gs://open-targets-data-releases/

The datasetFormat value will be either json or parquet depending on which chip is selected.

this looks great. I would reorder the last table to do:

FTP
rsync
wget
Google Cloud (paywalled)
I think this order better represents the number of users that might be interested in each method


feat: simple lemmas about polynomials and their degrees

This PR extracts some lemmas about polynomials that are helpful for the tactic compute_degree (#6221).
The signature of a theorem changed:
theorem coeff_pow_of_natDegree_le (pn : p.natDegree ≤ n) :
    (p ^ m).coeff (n * m) = p.coeff n ^ m  -- <-- the order of the product was `n * m`
    (p ^ m).coeff (m * n) = p.coeff n ^ m  -- <-- and it became `m * n`

Modified files:
Data/Polynomial/Basic.lean
Data/Polynomial/Degree/Lemmas.lean
Data/Polynomial/Degree/Definitions.lean
Data/Polynomial/Coeff.lean  -- for a "`simp` can prove this" golf

[x] depends on: #6483, where eq_and_eq_of_le_of_le_of_mul_le moved earlier in the import hierarchy

bors r+


Writing  Keys from .NET SDK , not able to READ from node js  within  clustered  enviroment

I am writing my Keys from .NET  SDK and  reading it from  NODE JS and my  environment  is  clustered ,
it was  giving  me undefined when  reading KEY

@Himanshu44ec06 Could you please provide more detail:
Which .NET SDK do you use, is reading from .NET SDK normal?
What's the type of the value?
A Minimal reproducible example could help me a lot.

Check if you have CR-LF in your data, it causes bugs
`
#~/memcacheTest# cat test.sh
npm install memcached
echo -n "set keyWithCrLfCrLf 0 0 4\r\n\r\n\r\n\r\n" | nc <IP_ADDRESS> 11211
date
node memcachedtestFAIL.js
date
echo FINISHED
#~/memcacheTest# cat memcachedtestFAIL.js
const memcached = require('memcached');
const server = new memcached('<IP_ADDRESS>:11211', {debug:1});
console.log('START DATA READ');
server.get('keyWithCrLfCrLf', (err, data) => {
if (err) {
console.log(err);
} else {
console.log('Data received', data);
}
process.exit();
});
#~/memcacheTest# chmod +x test.sh
#~/memcacheTest# ./test.sh
npm WARN saveError ENOENT: no such file or directory, open '/root/memcacheTest/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/root/memcacheTest/package.json'
npm WARN memcacheTest No description
npm WARN memcacheTest No repository field.
npm WARN memcacheTest No README data
npm WARN memcacheTest No license field.

<EMAIL_ADDRESS>added 6 packages from 4 contributors and audited 6 packages in 1.425s
found 0 vulnerabilities

STORED
Friday, November  9, 2018 09:49:01 AM UTC
START DATA READ
0 << get keyWithCrLfCrLf
0 >> VALUE keyWithCrLfCrLf 0 4
0 >>
0 >>
0 >>
0 >> END
0 >>
Friday, November  9, 2018 09:49:06 AM UTC
FINISHED
#~/memcacheTest#
`

#~/memcacheTest# cat test.sh
npm install memcached
echo -n "set keyWithCrLfCrLf 0 0 4\r\n\r\n\r\n\r\n" | nc <IP_ADDRESS> 11211
date
node memcachedtestFAIL.js
date
echo FINISHED
#~/memcacheTest# cat memcachedtestFAIL.js
const memcached = require('memcached');
const server = new memcached('<IP_ADDRESS>:11211', {debug:1});

console.log('START DATA READ');
server.get('keyWithCrLfCrLf', (err, data) => {
        if (err) {
                console.log(err);
        } else {
                console.log('Data received', data);
        }
        process.exit();
});

#~/memcacheTest# chmod +x test.sh
#~/memcacheTest# ./test.sh
npm WARN saveError ENOENT: no such file or directory, open '/root/memcacheTest/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/root/memcacheTest/package.json'
npm WARN memcacheTest No description
npm WARN memcacheTest No repository field.
npm WARN memcacheTest No README data
npm WARN memcacheTest No license field.

+<EMAIL_ADDRESS>added 6 packages from 4 contributors and audited 6 packages in 1.425s
found 0 vulnerabilities

STORED
Friday, November  9, 2018 09:49:01 AM UTC
START DATA READ
0 << get keyWithCrLfCrLf
0 >> VALUE keyWithCrLfCrLf 0 4
0 >>
0 >>
0 >>
0 >> END
0 >>
Friday, November  9, 2018 09:49:06 AM UTC
FINISHED
#~/memcacheTest#


Add additional rotation options

any comments to this pull request?

I forked it and added the customization for rotation icon and placement for my own needs, just submitting the PR to contribute back if others need. Feel free to close if you don't think that's the case -- thanks for maintaining the project!

Cheers


Automated OpenEBS version update 3.9.0

Automated changes by the cron-openebs-update GitHub action
Adds [OpenEBS add-on](https://kurl.sh/docs/add-ons/openebs) version 3.9.0.

https://github.com/replicatedhq/kURL/blob/d9571c3a20c3dbcbfda408bae0b8594a3b9293dd/scripts/common/yaml.sh#L34 is why I think this might be failing with the migrate-then-update codepath - we're adding 1.27 patches but k8s is still 1.19


Separate data storage

Abstractions and implementations to separate region behavior from allocation patterns. This PR introduces a Storage trait that allows to abstract allocations and hide them behind a common interface. Implementations need to accept items using a PushStorage trait (which is semantically equivalent to Timely's PushInto trait, but cannot be used due to the dependency graph), and items can be extracted using Index implementations. The OffsetContainer is an extension to Storage specialized to storing usize values.
The API is based on how flat container uses its storage, but little work has been put into making it a nice API -- it needs to support various specific types, and due to the lack of specialization, we need to have different functions to enable efficient copying.

728e96e (#19) contains some ideas that we could resurrect if we want to. Specifically, it contains a Doubling storage container, which doesn't reallocate.


VR: return err as nil when requeue not required without spec change

If spec.dataSource.kind, spec.replicationState is not correct there is
no need to requeue it again. As recocile will always fails unless user
changes spec.
Signed-off-by: Nitin Goyal<EMAIL_ADDRESS>

commit message and PR title need to be updated

Done


Synopsis Example Doesn't Run

zoffix@zoffix-VirtualBox:~/CPANPRC/Music$ cat music1.p6
use Audio::PortMIDI;

my $pm = Audio::PortMIDI.new;

my $dev = $pm.default-output-device;

say $dev;

my $stream = $pm.open-output($dev, 32);

# Play 1/8th note middle C
my $note-on = Audio::PortMIDI::Event.new(event-type => NoteOn, channel => 1, data-one => 60, data-two => 127);
my $note-off = Audio::PortMIDI::Event.new(event-type => NoteOff, channel => 1, data-one => 60, data-two => 127);

$stream.write($note-on);
sleep .25;
$stream.write($note-off);

$stream.close;

$pm.terminate;

zoffix@zoffix-VirtualBox:~/CPANPRC/Music$ perl6 music1.p6
  0 :  Midi Through Port-0              ALSA  --   Out   ----
Cannot unbox a type object
  in method CALL-ME at /home/zoffix/.rakudobrew/moar-nom/install/share/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03 (NativeCall) line 301
  in method write at /home/zoffix/.rakudobrew/moar-nom/install/share/perl6/site/sources/A688BF27953F8314D3EEAD1A6FB88D0E0FC811AC (Audio::PortMIDI) line 940
  in block <unit> at music1.p6 line 16

zoffix@zoffix-VirtualBox:~/CPANPRC/Music$

Yes, bug in the example, needs a timestamp in the event.  I'll fix in the morning.

Hi,
I've fixed the synopsis (and added the test for the same code.)  I've also made a small change such that the write method won't fail quite so rudely if the timestamp is omitted.


Helpful hint for anyone having a link tag below injected style tags

I'm using both tailwind and emotion style mui components and ran into an issue using remix-island where the generated tailwind CSS was getting appended to the bottom of head and mui style tags were at the top and getting overwritten by tailwind. I wrote this little function to relocate the tailwind script tag and sharing here in case anyone else is experiencing the same or similar problems:
          body.write(
            `<!DOCTYPE html><html><head>${head}</head><body><div id="root">`
          );
          pipe(body);
          body.write(`

          `);
        ```

Where in `root.tsx` the tailwind link is set up like

{ rel: "stylesheet", id: "TAILWIND", href: stylesheet },

Will close as this isn't actually an issue.

Cool thanks for sharing. Have you tried adding your tailwind styles like so?
 body.write(
  `<!DOCTYPE html>
      <link rel="stylesheet" href="${tailwindStylesHref}" />
      ${head}

`
);

I did but MUI injects its script tags to the top of head after the app has initialized

that's odd 🤔 really hope we'll get rid of this workaround soon 🤞 and glad you fond a way to make it work for you!


#30: Schema owner support

added schema owners support
added examples model objects based on example files
added test of loading an app model from files

Closes #30
Depends on #46

This item depends on:

AbsaOSS/ultet#46
By Dependent Issues.

This item depends on:

AbsaOSS/ultet#46
By Dependent Issues.


error: unable to recognize "dataVolume.yaml": no matches for kind "DataVolume" in version "cdi.kubevirt.io/v1beta1"

What happened:
in my k3s, i have deployed kubevirt-operator and kubevrit-cr.  in kubevirt-cr.yaml, i have added feature "- HotplugVolumes"
kubevirt-cr.yaml like this :
apiVersion: kubevirt.io/v1
kind: KubeVirt
metadata:
name: kubevirt
namespace: kubevirt
spec:
certificateRotateStrategy: {}
configuration:
developerConfiguration:
featureGates:
- LiveMigration
- DataVolumes
- HotplugVolumes
customizeComponents: {}
imagePullPolicy: IfNotPresent
workloadUpdateStrategy: {}
infra:
replicas: 1
when i create DataVolume, got the error:
error: unable to recognize "dataVolume.yaml": no matches for kind "DataVolume" in version "cdi.kubevirt.io/v1beta1"
this is my datavolume yaml:
apiVersion: cdi.kubevirt.io/v1beta1
kind: DataVolume
metadata:
name: example-blank-dv
spec:
source:
blank: {}
pvc:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
What you expected to happen:
A clear and concise description of what you expected to happen.
How to reproduce it (as minimally and precisely as possible):
Steps to reproduce the behavior.
Additional context:
Add any other context about the problem here.
Environment:

KubeVirt version (use virtctl version):
Client Version: version.Info{GitVersion:"v0.58.1", GitCommit:"3951090bffaf56814889bcf44ec8db53a4e0b24e", GitTreeState:"clean", BuildDate:"2023-02-10T20:08:40Z", GoVersion:"go1.17.8", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{GitVersion:"v0.51.0", GitCommit:"a6a84d0388b12d8c812e19cb7cc88f5193e42bdf", GitTreeState:"clean", BuildDate:"2022-03-08T21:17:05Z", GoVersion:"go1.17.5", Compiler:"gc", Platform:"linux/amd64"}

Kubernetes version (use kubectl version):
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.13+k3s1", GitCommit:"99eadcc10bce2527ae1ab0964b540a4f52a53504", GitTreeState:"clean", BuildDate:"2021-07-22T20:29:55Z", GoVersion:"go1.15.14", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.13+k3s1", GitCommit:"99eadcc10bce2527ae1ab0964b540a4f52a53504", GitTreeState:"clean", BuildDate:"2021-07-22T20:29:55Z", GoVersion:"go1.15.14", Compiler:"gc", Platform:"linux/amd64"}

VM or VMI specifications: N/A

Cloud provider or hardware configuration: N/A

OS (e.g. from /etc/os-release):  Centos7

Kernel (e.g. uname -a): N/A

Install tools: N/A

Others: N/A

Hi @denniedeng,

in my k3s, i have deployed kubevirt-operator and kubevrit-cr.

Have you also deployed CDI? https://kubevirt.io/user-guide/operations/containerized_data_importer/

when i upgraded my k3s to v1.25.6+k3s1 and install CDI,  this problem was solved. thanks.


GA BochsDisplayForEFIGuests

What this PR does
Promote Boshs display as default for EFI x86 guests.
For retaining the compatibility (in case some guest
need direct access) we provide kubevirt.io/vga-display-efi-x86
annotation on the Kubevirt CR that needs to be set
before cluster upgrade.

Fixes #
Special notes for your reviewer

Release note

BochsDisplayForEFIGuests is GAed, use  "kubevirt.io/vga-display-efi-x86" annotation on Kubevirt CR before upgrading in case you need retain compatibility.

/lgtm

/cc

/lgtm

/unhold

@fossedihelm Rebased

/lgtm
Thanks

use  "kubevirt.io/vga-display-efi-x86" annotation on Kubevirt CR before upgrading in case you need retain compatibility.

This is a bad hack which has been suggested in several scenarios and sometime successfully stoped.
I understand we have not agreed yet about using such API patterns.

use  "kubevirt.io/vga-display-efi-x86" annotation on Kubevirt CR before upgrading in case you need retain compatibility.

This is a bad hack which has been suggested in several scenarios and sometime successfully stoped.
I understand we have not agreed yet about using such API patterns.

We don't have API patterns afaik. There is precedence of using annotations, especially for hacks/escape hatch


Docker compose standalone

delivers case 2 from #390 :

a non-programmer who just wants to run Saltcorn, but for whatever reason they don't want to use the SQLite database.

Thank you!


rollup ?

【译】教程：如何通过 Rollup 来打包 JavaScript

插件列表

哈哈，这非常关键

Plugins allow you to customise Rollup's behaviour by, for example, transpiling code before bundling, or finding third-party modules in your node_modules folder.
List of plugins

alias - define aliases when bundling packages
amd - convert AMD modules to ES6
angular - angular2 template and styles inliner
ascii – rewrite non-ASCII characters in string literals
async - replaces async functions with generators for use in modern browsers or most versions of node.js
auto-transform – applies Browserify transforms automatically based on a key in the package.json, just like Browserify does
babel – transpile code with Babel
bower-resolve – use the Bower resolution algorithm with Rollup
browserify-transform – use Browserify transforms as plugins
buble – transpile code with Bublé (like Babel but much faster)
cleanup – remove comments (conditionally), trim trailing spaces, compact empty lines, and normalize line endings to win/mac/unix in .js files.
coffee-script – convert CoffeeScript to JS
coffee-react - convert .cjsx and .coffee to JS
commonjs – convert CommonJS modules to ES6
conditional – A proxy for conditionally executing rollup plugins
css-only – output plain and simple CSS
eslint - verify entry and imported scripts
filesize - show file size of the bundle in the cli
flow - remove Flow type annotations
hypothetical - import modules from an imaginary filesystem
html - import html files as strings into code
image – import JPG, PNG, GIF and SVG images
includepaths – provide base paths to resolve imports from
inject – detect dependencies and inject them
istanbul – Instruments code for code coverage with Istanbul
jscc – Conditional compilation (and declaration of ES6 imports) for rollup
json – convert JSON to ES6
jst - compile _.template's
jsx - compile React JSX and other JSX-like components
livereload – refresh the page when your bundle changes
less - import and compile less files
memory - load entry from memory
modular-css - alternative implementation of CSS Modules w/ rollup support
multi-entry – allows multiple 'entry points' instead of just one
md - import and compile markdown files
node-builtins - Allow to use Node.JS built-in packages with rollup
node-globals - injects the same node globals browserify does (i.e process, Buffer, etc)
node-resolve – use the Node.js module resolution algorithm (e.g. modules from node_modules, installed with npm)
pegjs - import PEG.js grammars as parsers
postcss - compile postcss and insert to head
pug - transforms .pug and .jade templates in es6 modules
ractive – precompile Ractive components
relink - copies and adjusts asset references to new relative location in destination folder
replace – replace occurrences of a set of strings
riot - compile Riot.js tag file
root-import - import modules by absolute path relative to entry
serve – serve your bundle just like webpack-dev-server
sourcemaps – load external source maps from sourceMappingURLs
string – import text files as strings
strip – remove debugger statements and functions like console.log
stub - stub module.exports at runtime
stylus-css-modules – compile Stylus and inject CSS modules
typescript - compile TypeScript just like JavaScript
uglify - minify generated bundle
vinyl - import from Vinyl files
vue - compile Vue components
vue2 - compile Vue 2.0 components
yaml – import data from YAML files
sass - import and compile sass files

Using plugins
Rollup accepts an array of plugins:
import { rollup } from 'rollup';
import nodeResolve from 'rollup-plugin-node-resolve';

rollup({
  entry: 'main.js',
  plugins: [ nodeResolve({ jsnext: true, main: true }) ]
}).then(...);

Consult each plugin's documentation for detailed documentation.
Creating plugins
Your plugin package should export a function that returns an object with one or more of the following properties:

name – the name of the plugin, for use in error messages and warnings
options – a function that replaces or manipulates the options object passed to rollup.rollup
load – a custom id => code loader. Returning null or undefined defers to other load functions (and eventually the default behavior of loading from the file system).
resolveId – a custom ( importee, importer ) => id resolver (useful for e.g. locating third-party dependencies). Returning null or undefined defers to other resolveId functions (and eventually the default resolution behavior); returning any other falsy value signals that importee should be treated as an external module and not included in the bundle.
transform – a source => code or source => { code, map } module transformer function
transformBundle – a ( source, { format } ) => code or ( source, { format } ) => { code, map } bundle transformer function
intro – a function for generating intro text
outro – a function for generating outro text
banner – a string, or a function that returns a string
footer – a string, or a function that returns a string

More properties may be supported in future, as and when they prove necessary.
Conventions

Plugins should have a clear name with rollup-plugin- prefix.
Include rollup-plugin keyword in package.json.
Plugins should be tested. We recommend mocha or ava which support promises out of the box.
Use asynchronous methods when it is possible.
Document your plugin in English.
Make sure your plugin outputs correct source mappings if appropriate.
If your plugin uses 'virtual modules' (e.g. for helper functions), prefix the module ID with \0. This prevents other plugins from trying to process it

Transformer plugins (i.e. those that return a transform function for e.g. transpiling non-JS files) should support options.include and options.exclude, both of which can be a minimatch pattern or an array of minimatch patterns. If options.include is omitted or of zero length, files should be included by default; otherwise they should only be included if the ID matches one of the patterns.
Use rollup-pluginutils to implement this:
import { createFilter } from 'rollup-pluginutils';

export default function myPlugin ( options = {} ) {
  var filter = createFilter( options.include, options.exclude );

  return {
    transform ( code, id ) {
      if ( !filter( id ) ) return;

      // proceed with the transformation...
      return {
        code: generatedCode,
        map: generatedSourceMap
      };
    }
  };
}

If a plugin transforms source code, it should generate a sourcemap automatically, unless there's a specific sourceMap: false option. Rollup only cares about the mappings property (everything else is handled automatically). If it doesn't make sense to generate a sourcemap (e.g. rollup-plugin-string, return an empty sourcemap:
return {
  code: transformedCode,
  map: { mappings: '' }
};

If you create a plugin that you think would be useful to others, please publish it to npm and add it to this page!


[ERROR] Uncaught TypeError: Cannot read properties of undefined (reading 'forEach')

Context
This package was suggested in the vue-class-component repository as "working". So I decided to try it.
Installed it from npm. Didn't work. So copied all the files directly into my stackblitz.com project.
Got this error:
ref.ts:14 Uncaught TypeError: Cannot read properties of undefined (reading 'forEach')
    at build (ref.ts:14:9)
    at Component (component.ts:20:3)
    at __decorateClass (App.vue:7:57)
    at App.vue:8:1

Script:
import HelloWorld from './components/HelloWorld.vue';
import { Component, Ref, Base } from './vue-decorator';

@Component
export default class App extends Base {
  mounted() {
    //vue lifecycle
    console.log(this.ref, this.prop, this.supProp, this.getter, this.supGetter);
  }
}

So logically, tried to match my project's tsconfig.json with this package's one. No success.
Then tried to add options to the component decorator:
@Component({
  components: {
    HelloWorld,
  },
})

Got a different issue:
utils.ts:19 Uncaught TypeError: Cannot read properties of undefined (reading 'Symbol(vue-facing-decorator-slot)')
    at getSlot (utils.ts:19:12)
    at obtainSlot (utils.ts:23:18)
    at build (computed.ts:6:18)
    at Component (component.ts:18:3)
    at App.vue:7:2

Thanks for your reporting. First version 1.0.1 has released now. Bug fixed.

@angelhdzmultimedia Use npm install -S vue-facing-decorator

vue-facing-decorator

Works now, thanks. We'll keep testing the following days and help you report any further issue. I have faith in this projects, as is only 1 package with everything needed for Vue Class-based Components.

@angelhdzmultimedia Thanks for your help. Many people will need these features.


how to train a flying, dancing dragon model

great job! Can you tell me how to train a flying or dancing dragon model.

To train a flying dragon you can use this bvh file Wyvern-Fly.bvh.
You can also use the utils/fbx2bvh.py script to convert any fbx provided in the truebones dataset to bvh format.
Then use the training command:
python -m train.train_sinmdm --arch qna --dataset bvh_general --save_dir <path_to_save_models>  --sin_path <path to .bvh file>


default router

resolves #108

I'm planning to return to this effort in the near future.

My plan for this is to administratively create a router named like "default-router" when the controller is deployed. The router enrollment token and any required config inputs should be stored in a k8s secret or configmap with a predictable name so that it's practical to orchestrate deploying a router chart to source that token and config as template inputs.

This won't unblock anything, and it better accomplished by an operator.


[SPARK-29643][SQL] ALTER TABLE/VIEW (DROP PARTITION) should look up catalog/table like v2 commands

###What changes were proposed in this pull request?
Add AlterTableDropPartitionStatement and make ALTER TABLE/VIEW ... DROP PARTITION go through the same catalog/table resolution framework of v2 commands.
Why are the changes needed?
It's important to make all the commands have the same table resolution behavior, to avoid confusing end-users. e.g.
USE my_catalog
DESC t // success and describe the table t from my_catalog
ALTER TABLE t DROP PARTITION (id=1)  // report table not found as there is no table t in the session catalog

Does this PR introduce any user-facing change?
Yes. When running ALTER TABLE/VIEW ... DROP PARTITION, Spark fails the command if the current catalog is set to a v2 catalog, or the table name specified a v2 catalog.
How was this patch tested?
Unit tests.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/17803/
Test PASSed.

Test build #112880 has started for PR 26303 at commit ea3c66c.

Test build #112880 has finished for PR 26303 at commit ea3c66c.

This patch fails due to an unknown error code, -9.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test build #112992 has started for PR 26303 at commit 12a8ad6.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/17915/
Test PASSed.

Please also update the PR title (adding VIEW).

Test build #112992 has finished for PR 26303 at commit 12a8ad6.

This patch fails due to an unknown error code, -9.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/112992/
Test FAILed.

retest this please

Test build #113004 has started for PR 26303 at commit 12a8ad6.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/17927/
Test PASSed.

Test build #113004 has finished for PR 26303 at commit 12a8ad6.

This patch fails SparkR unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/113004/
Test FAILed.

retest this please

Test build #113026 has started for PR 26303 at commit 12a8ad6.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/17948/
Test PASSed.

Test build #113026 has finished for PR 26303 at commit 12a8ad6.

This patch fails SparkR unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/113026/
Test FAILed.

retest this please

retest this please.

Test build #113040 has started for PR 26303 at commit 12a8ad6.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/17961/
Test PASSed.

Test build #113040 has finished for PR 26303 at commit 12a8ad6.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/113040/
Test PASSed.

Test build #113049 has started for PR 26303 at commit faa2361.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/17970/
Test PASSed.

Test build #113049 has finished for PR 26303 at commit faa2361.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/113049/
Test PASSed.

Test build #113076 has started for PR 26303 at commit 07dbe47.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/17995/
Test PASSed.

Test build #113076 has finished for PR 26303 at commit 07dbe47.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/113076/
Test PASSed.

thanks, merging to master!

Thanks! @cloud-fan @viirya @imback82


Enable functionality to limit maximum number of rows to select

Closes #751.
Interface change:
Before:

isRowSelectable: (dataIndex) => boolean;

Now:

isRowSelectable: (dataIndex, selectedRows) => boolean;

Coverage decreased (-0.004%) to 75.343% when pulling e44fa14ad2ab479bb827c37953b6a1a2b6d2bfb5 on endrjuskr:feature/issue-751 into a5ab0daf36e28394b69e0831d15b5f87bed8a407 on gregnb:master.

Question: How we would like to handle a situation (quite common) when a maximum number of selected rows is lower than a number of rows and a user clicks on the header (select all)?
Current behavior: Selects all and unclicking any of row disables this row to be selected again.

Hello @endrjuskr. Thank you for taking an interest in contributing to the project!
I've been thinking about this feature, and I think what I'd like to do instead, is extend the functionality of isRowSelectable to include the selectedRows object. This way, devs can use that information to insert any custom logic that they want to enable/disable selecting a particular row. As of this moment, isRowSelectable only tracks the dataIndex of the current row about to be selected. Although all the selected rows could be tracked separately by the dev, adding this argument would make it easier.
The advantage this has is that it allows customization based any logic the dev wants, and it extends an already existing API rather than create a new one. I'm a little wary of creating new APIs if we can use existing ones to do the same job, as I want to be careful about creating an API that is so big and complex that it's difficult to reason about and lacks discoverability for those new to the project.
How does that sound?

Sounds reasonable. To be honest, I was not fully convinced about the approach that I proposed, mostly due to selecting all rows from header.

@endrjuskr Almost there! We're still missing the selectedRows argument in what is now this line: https://github.com/gregnb/mui-datatables/blob/master/src/MUIDataTable.js#L1034.

Hey @endrjuskr, thanks for the update, however, if you look at the comment, I was actually referring to the test on line 274. :)

I hope this time I fixed correct test :)
Also split one test to check exactly if isRowSelectable actually determines selectability of row.


picocrypt: 1.40 -> 1.41

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/Picocrypt/Picocrypt/releases.
meta.description for picocrypt is: Very small, very simple, yet very secure encryption tool, written in Go
meta.homepage for picocrypt is: https://github.com/Picocrypt/Picocrypt
meta.changelog for picocrypt is: https://github.com/Picocrypt/Picocrypt/blob/main/Changelog.md
Updates performed

Golang update

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.41 in filename of file in /nix/store/3kbigcgkrlwbizia10bmsh6bar9kdbmh-picocrypt-1.41

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

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

picocrypt

Instructions to test this update (click to expand)

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

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

Or:
nix build github:r-ryantm/nixpkgs/34246768cf64063c3439dc0fc6a6dade84400b96#picocrypt

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

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

1 package built:

picocrypt

Maintainer pings
cc @ryand56 for testing.

[!TIP]
As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

Add a :+1: reaction to pull requests you find important.

@NixOS/nixpkgs-merge-bot merge


Add Patrons Onboarded on stats

Proposed Changes
for #1193

Implementation

add PATRONS ONBOARDED card. added next to OSS PROJECTS ONBOARDED

It has already been merged into the main branch in the PR https://github.com/dev-protocol/stakes.social/pull/1227.
This PR will be closed.


When there is both a video and an image, only the image is downloaded

Hi, first of all thank you for this great add-on, I discovered it six months ago!!! Until last week I used it without problems, now the arrow to download doesn't show, I just updated to version 3.2.4 (on Firefox 125.0.3).
What could this be due to?
Can it be fixed?
Thanks in advance

Now the browser offered me a new update (3.2.5), and it is working again, Thanks!!
But there is one thing that could be fixed: when there is both a video and an image, only the image is downloaded

Yes, we will investigate and take action.

I didn't see any problems with my test tweets.
Could you please check the issue again? The link is below.
https://x.com/lesenic/status/1793612756433936530

I didn't see any problems with my test tweets.
Could you please check the issue again? The link is below. https://x.com/lesenic/status/1793612756433936530

Hi, after upgrading to version 3.2.6 and going to the link you provided, I clicked the download button and this time it worked for all four files. Also I tried other mixed tweets with images and videos and also with only 4 images.
It works on all of them.
Thanks again for your work and helpfulness


add my name

Add my full name and GitHub profile URL in README.md. Serial 1553.

Please can you update so that your name is in alphabetical order - it should go up to line 1488

I don't understand. i did it as alphabetical order

@SaraJaoude now i update and bring my name at the top of N list.

@SaraJaoude now i update and bring my name at the top of N list.

@NafiRahim what we mean by alphabetical order is not just the first letter but the whole name.  I have moved yours from the top of the list to where it should be placed alphabetically and can now merge your PR.

@SaraJaoude now i update and bring my name at the top of N list.

@NafiRahim what we mean by alphabetical order is not just the first letter but the whole name. I have moved yours from the top of the list to where it should be placed alphabetically and can now merge your PR.

Thank you very much. you help me to understand.


c# Node.Connect() not working on predefined signals when called from code

Godot version:
3.0.2 Stable
OS/device including version:
Windows 10
Issue description:
When calling connect on a node's predefined signal (for example mouse_entered signal for a Label) nothing happens.
Steps to reproduce:

Create new project
Add a Node then add a Label to the node (rename them if you want)
Attach script to the parent node
Get access to the label in _Ready() then try connecting a local class method to a predefined signal (mouse_entered or mouse_exited)
Start the scene and try hovering over the label.

Minimal reproduction project:
SharpLabelMouseHover.zip

Your label is set to ignore the mouse (mouse_filter = 2) so mouse_entered and mouse_exited will never fire.
I have successfully connected to some built-in signal with C# in code (if i remember correctly to button_toggled)

@Duehok Yeah you're right setting mouse filter to "stop" fixes this, going to close this for now @neikeq


Separate language files

Related issue https://github.com/scrapinghub/dateparser/issues/166
Summary:

Split languages.yaml file into different files, one for each language, placed in data/languages folder.
Each language file is named according to it's code with .yaml extension
Language file inherits from base.yaml by having the !include directive

Closing this pull request in favour of https://github.com/scrapinghub/dateparser/pull/171/commits/7df96c67bc35f10b47516fa39adf96004efd602c


Add Attributes view

Add a new Metadata view for nft attributes.
Summary
Adds a new metadata view that can be used to obtain nft attributes. This approach follows the general guidelines of the OpenSea Metadata spec here which should be a format much of the NFT ecosystem understands.
Discussion about this view can be found in #74 as Attributes are part of an overall NftView which will come later.
Tests

One test has been added to evaluate the result of this new Attributes view.
make ci passes

Would it be possible to add some helper functions to ease creating attributes. Like addStringValue(name:value) or something like that?

Would it be possible to add some helper functions to ease creating attributes. Like addStringValue(name:value) or something like that?

Not opposed! Thinking about other usual types, do we want wrappers for all of them or just the more common of them? What comes to mind:

String
Bool
UInt64
Int64
UFix64
Fix64
Address

I guess this depends on how we want the Attributes view to be used. Is it going to aggregate data from other views into this or are we supposed to add data to it directly.
Come to think of it one issue that might occur with this view is that projects are going to use the same Attribute name with given types. So one project might have "rarity" as a number while another might have "rarity" as the string "Legenday".
Not sure if that is a big problem or not though as you can know the type of the data.

I guess this depends on how we want the Attributes view to be used. Is it going to aggregate data from other views into this or are we supposed to add data to it directly.
Come to think of it one issue that might occur with this view is that projects are going to use the same Attribute name with given types. So one project might have "rarity" as a number while another might have "rarity" as the string "Legendary".
Not sure if that is a big problem or not though as you can know the type of the data.

We can't predict or enforce all the kinds of attributes that will be used, so I don't think we can reasonably expect that a view per attribute can be made that will get rolled into this. Attributes are akin to a metadata dictionary like on TopShot plays:
https://github.com/dapperlabs/nba-smart-contracts/blob/master/contracts/TopShot.cdc#L147
The NftView which will be a separate PR is meant to roll-up the important views we want to show into one structure. Attributes are different though. In the end, attributes are what map to properties on sites like OpenSea:

I'd say that unbounded attributes shouldn't matter, I don't think it's up to us to define what each kind of attribute is allowed to be. Rarity makes sense as an example where things can be disjointed, but that very issue is why I think we should be hands off, who are we to decide what a valid value for rarity is? It could be a score of 1/100, 1/10000, 1/totalSupply, or just a string like TopShot's Tier. Evaluating the type of the attribute should be enough to ensure that dapps can use it.
Related to #60, if something is worthy of being elevated to a first-class citizen such as ExternalUrl and Display, then we'd aggregate it into the NftView.

This looks suspiciously like a {String: AnyStruct} view. Why do it like this instead of that?

This looks suspiciously like a {String: AnyStruct} view. Why do it like this instead of that?

This is to follow a well-known pattern which is OpenSea's metadata standard, some discussion of that is in #74. A key/value pair isn't necessarily enough, some NFTs on Ethereum also like to specify how the variable should be used which is what the display type is for. It is probably worth checking out their standards page if you haven't before, it can be found here

I have been thinking alot on this Attribute view and personally I think it is the wrong primitive to expose directly. Having code that can transfer the other views into Attributes i see as a way better option.
My reasoning is that we are basically back to {String:AnyStruct} and that is what we made this standard to avoid. OpenSea does what OpenSea does because they do not have anything that is richer. I think we can do better.

I have been thinking alot on this Attribute view and personally I think it is the wrong primitive to expose directly. Having code that can transfer the other views into Attributes i see as a way better option.

Translating other views into attributes is not what this is meant to be. This view should yield all the metadata of an NFT, not different formats of that metadata in a non-standard manner. Going the route you propose here would render this view unviable for the two use cases this solves. Those are:

Enable creating contract-level features based solely on the metadata of the NFT. A composition of arbitrary views is just not the same here.
Platforms showing NFTs are told exactly how to show them. No more special logic for each NFT, and Collection owners themselves have more say in the customization and expression of those items.

My reasoning is that we are basically back to {String:AnyStruct} and that is what we made this standard to avoid. OpenSea does what OpenSea does because they do not have anything that is richer. I think we can do better.

I would like more reasoning here, please. Why is {String: AnyStruct} so bad when you're also proposing yielding arbitrary views instead? If I'm doing a transaction using this view in my contract, I cannot know the underlying type of the view given to me in your proposed option because if I did that I'd need to import every collection I want to support and that just isn't viable, it's why I started discussion on all this in the first place in-fact. Attributes are fundamentally not defined, they must be arbitrary. Every collection can do them differently, and we need a view that can encapsulate that.
If we can do better, I'd like to hear how while also still solving my two use cases because they are both things Flowty needs to be able to address
This view will complete the general things you need for a larger standard NFTView. All dapps would know:

How to show the nft on a card
Where the nft is stored
How to form backlinks for the nft back to its creators' site
What data exists on the NFT and how to display it/operate on it.

This view should yield all the metadata of an NFT, not different formats of that metadata in a non-standard manner.

OpenSea is using a json format because it has no other option, since this is stored in IPFS or behind some other tokenURI scheme. On flow we can use the type system and the richness it provides to make this better.
The above statments also  suggests that developers duplicate data from the typed views into this untyped view, but that could very well just be made in code.

Enable creating contract-level features based solely on the metadata of the NFT. A composition of arbitrary views is just not the same here.

I have a hard problem reasoning about this. In my eyes having typed views are better for discovering features then a loosly typed set of Attributes. You never know if a project uses the same keys or the same types for fields.

Platforms showing NFTs are told exactly how to show them. No more special logic for each NFT, and Collection owners themselves have more say in the customization and expression of those items.

Typed views will also tell plattforme exactly how to show things. There is no specific logic for each NFT. I fail to see where this attribute view adds any value on this regard.

I would like more reasoning here, please. Why is {String: AnyStruct} so bad when you're also proposing yielding arbitrary views instead?

Because views have a type, a context and a meaning. You know that if you expose ExternalUrl(url:String) it is an external URL.

if I'm doing a transaction using this view in my contract, I cannot know the underlying type of the view given to me in your proposed option because if I did that I'd need to import every collection I want to support and that just isn't viable, it's why I started discussion on all this in the first place in-fact.

I think we are starting to get into the gist of the problem here. The intend behind the MetadataStandard is that views that are used for interoperability between different consumers and producers are not in their own contracts. It is in a shared place so that people can reason about it.
I totally agree that there should be some form of Attribute view for things that are not covered in the standard views, but I do not think it should duplicate the data that is already structured and already there.

How to show the nft on a card

This is the exact use-case behind the Display view. If you have an arabitrary Attribute view, how do you know what keys to show in a card? Because no keys are mandatory some people can use different keys. And then cards will be displayed differently all over the place.

How to form backlinks for the nft back to its creators' site

The new CollectionDetailView have a externalURL link to a collection and the ExternalUrl view have a link back to the actual NFT on another page. This is structured data that you know how to guess. You do not have to guess an Attribute key.

What data exists on the NFT and how to display it/operate on it.

For arbitraty data that is not part of the other views i totally agree. This is needed.

@austinkline
I am super confused to be honest, we started with MetadataViews, now we ended up with:

Why is {String: AnyStruct} so bad ?

I mean I think we need to be honest to each other, if what you need is  {String: AnyStruct} trying to shape MetadataViews to  {String: AnyStruct} is not the correct approach. Then you should be against MetadataViews from the ground.
All purpose of metadataviews is to use cadence type system for metadata.
I understand your need, and support your fight, but the way to do this, is not to make metadataviews an abomination.

Closing this, not going to argue all this in a PR, that isn't what this was supposed to be. @psiemens I will circle back to #74 since clearly things are not as agreed to as I thought.


grafana for prometheus

fixes Issue #52
grafana for prometheus based on https://github.com/mrsiano/grafana-ocp

cc @mrsiano as this is based on your work 🙇

Any chance to have this addon to be released?

Can one of the admins verify this patch?

please consider that some things were changed.
I suggest you to use https://github.com/openshift/openshift-ansible/tree/master/roles/openshift_grafana
or
https://github.com/openshift/origin/tree/master/examples/grafana

@mrsiano , thanks for recommendations


Table support

For now, the length operator # implementation for table calls Table.len function
https://github.com/epatrizio/ola/blob/93425d7f0b25e96711d75d2d7b1f872acf86a763/src/interpret.ml#L364
This operator must return the border of the table, note len. It's not exactly the same.
https://www.lua.org/manual/5.4/manual.html#3.4.7

After #20 merge : the length operator is better managed but does not yet follow the full specification.
For now, it's enough.

About stdlib_basic function ipairs, there is a bug :
local tbl = {1, 2, 3, nil, 5}

tbl[4] = nil must not be considered!
And this bug is linked to the length operator (border = 3 not 5).


Allow provider_binary to be specified

The path to ffmpeg / avconv cannot always be discovered from the system $PATH.  In these cases, it becomes necessary for the end-user to provide the path to provider_binary explicitly.

Hi again!  Would it be possible to accept this pull request by the end of this week?  The company that I'm working for needs this functionality by the beginning of next week, and I'd like to avoid maintaining a separate fork of this library if possible.  Thanks!

How does binary_path sound?

I think provider_binary_path would fit in. Otherwise solid PR and a useful addition - it would even have helped me with running specs on Travis if I had a suitable binary (avconv static builds don't have X11 support and avconv packaged with Ubuntu 12.04 on Travis is buggy.
Please rename and I'll merge&release asap.

Alright, I just renamed the field.  The travis-ci build has already passed on my copy of the repo, but it's slightly delayed on this pull request for some reason.
Thanks for following up on this pull request so quickly!


Cse/remove templates pr branches

Testing pr lookup

Repoman Generation Results
Repoman pushed changes to remotes for the following projects:
Project: todo-nodejs-mongo
Remote: azure-samples
Branch: pr/8
You can initialize this project with:
azd init -t kaizentm/todo-nodejs-mongo -b pr/8

View Changes | Compare Changes

Project: todo-python-mongo
Remote: azure-samples
Branch: pr/8
You can initialize this project with:
azd init -t kaizentm/todo-python-mongo -b pr/8

View Changes | Compare Changes


A toggleable 'back' button in front of the breadcrumbs

Fixes issue #136

Wouldn't this make more sense in a directive on it's own? So I can decide
where to place it?
On Jul 8, 2015 4:28 PM, "Vincent Sels"<EMAIL_ADDRESS>wrote:

Fixes issue #136 https://github.com/infrabel/themes-gnap/issues/136
You can view, comment on, or merge this pull request online at:
https://github.com/infrabel/themes-gnap/pull/137
Commit Summary

A toggleable 'back' button in front of the breadcrumbs, for use in
mobile apps

File Changes

M custom/gnap-angular/css/develop/gnap.css
https://github.com/infrabel/themes-gnap/pull/137/files#diff-0 (13)
M custom/gnap-angular/js/develop/gnap/breadcrumbs.directive.js
https://github.com/infrabel/themes-gnap/pull/137/files#diff-1 (15)

Patch Links:

https://github.com/infrabel/themes-gnap/pull/137.patch
https://github.com/infrabel/themes-gnap/pull/137.diff

—
Reply to this email directly or view it on GitHub
https://github.com/infrabel/themes-gnap/pull/137.

Most applications seem to put it there (browsers, windows explorer), so I think this is the most intuitive location where users would expect to find such a button. I didn't really find another appropriate 'candidate' location to put it (inside the framework). Do you see a better or equivalent option ?

Just a separate directive, and then include it at that spot if you want it.
It has nothing to do with breadcrumb imho. Maybe someone would like the
back button at the top and bottom of their content for example.
It's more about making little modules with a sane setup, instead of
bundling things together.
On Jul 9, 2015 10:07 AM, "Vincent Sels"<EMAIL_ADDRESS>wrote:

Most applications seem to put it there (browsers, windows explorer), so I
think this is the most intuitive location where users would expect to find
such a button. I didn't really find another appropriate 'candidate'
location to put it (inside the framework). Do you see a better or
equivalent option ?
—
Reply to this email directly or view it on GitHub
https://github.com/infrabel/themes-gnap/pull/137#issuecomment-119867096.

I agree it'd be better as a separate directive, but the problem is, if it were, you wouldn't be able to include it at that spot in the nav bar, which is, imo, the most logical place to put it, as it's generally done in browsers & file explorers.
GNaP (or rather, the Ace theme) pretty much 'imposes' a certain lay-out... I don't think it's so terrible to also 'impose' the location of this optional back button.
But maybe it's just me - a third opinion would be welcome :) @koenmetsu @ArneD @sroosen ?

I don't see why you wouldn't be able to include it at that spot? You just
put it in the main before breadcrumbs?
On Jul 9, 2015 8:26 PM, "Vincent Sels"<EMAIL_ADDRESS>wrote:

I agree it'd be better as a separate directive, but the problem is, if it
were, you wouldn't be able to include it at that spot in the nav bar, which
is, imo, the most logical place to put it, as it's generally done in
browsers & file explorers.
GNaP (or rather, the Ace theme) pretty much 'imposes' a certain lay-out...
I don't think it's so terrible to also 'impose' the location of this
optional back button.
But maybe it's just me - a third opinion would be welcome :) @koenmetsu
https://github.com/koenmetsu @ArneD https://github.com/ArneD @sroosen
https://github.com/sroosen ?
—
Reply to this email directly or view it on GitHub
https://github.com/infrabel/themes-gnap/pull/137#issuecomment-120095314.

And anyone who wants to add it there then needs to add quite a bit of tricky css and override some bootstrap and ace css... and I still haven't been able to get it as smooth as with just another
 in the breadcrumbs
 (doesn't seem possible to get it perfect)... But if you're that much against it, I'll do it the manual way & post the css here FFR... I just thought it'd be nice to have in the framework.

I think a directive and an additional showBackButton: '=' on the breadcrumb bar is best.
The directive can consist of <\/i><\/a> with the back functionality.
And the showBackButton could be
"
\n" +
"

\n" +
"        <\/li>\n" +

This way your markup still applies to the breadcrumb and the button can be placed anywhere when needed.


Sql Catalog: Implement _commit_table

Feature Request / Improvement
This would be nice :)

Haven't updated my main :)


Problem with subscription

Hello, I have a problem with Graphql subscription. When I try with graphql playground - all works fine: on the server I receive an answer about subscription, but when I trying to connect in flutter - I'm getting only loading true on the client, but nothing on the server.
import 'package:flutter/material.dart';
import 'package:flutter_graphql/flutter_graphql.dart';

void main() async {
  socketClient = await SocketClient.connect('ws://address',
    headers: {
      'authorization': "accessTokenHere"
    }
  );

  runApp(MyApp());
}

class MyApp extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    final title = 'WebSocket Demo';
    return MaterialApp(
      title: title,
      home: MyHomePage(
        title: title,
      ),
    );
  }
}

class MyHomePage extends StatefulWidget {
  final String title;

  MyHomePage({Key key, @required this.title})
      : super(key: key);

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  TextEditingController _controller = TextEditingController();

  static String operationName = "notification";
  String query = """subscription $operationName{
    notification{
      messageCount
    }
  }""".replaceAll('\n', ' ');

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Padding(
        padding: const EdgeInsets.all(20.0),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: <Widget>[
            Form(
              child: TextFormField(
                controller: _controller,
                decoration: InputDecoration(labelText: 'Send a message'),
              ),
            ),
            Subscription(
              operationName,
              query,
              variables: {},
              builder: ({
                bool loading,
                dynamic payload,
                dynamic error,
              }) {
                print(loading);
                print(payload);
                print(error);
                if (payload != null) {
                  return Text(payload['requestSubscription']['requestData']);
                } else {
                  return Text('Data not found');
                }
              }
            ),
          ],
        ),
      ),
    );
  }

}

I am gonna take a look at that later today. @Goolpe But I am sure there will be a working demo later this week


Class 22 - Week 2+3 Project

Please leave below a comment with a link to your week 2 project.
Instructions

Fork the repo https://github.com/HackYourFutureBelgium/node-template
Follow the instructions in the readme to setup the project locally
This week, focus on setting up the database and creating the routes and controllers for the recipes. Ignore the user related features and all the authentication.

here you can find my forked repo : https://github.com/alasaidi/node-app

my repo for week 2 project : https://github.com/jgchoti/recipe-node-js

Here is my repo for week 2

my link week 2 project  https://github.com/Lishan6/node-template/blob/main/routes/recipe.js

MY Repo is here

My forked repo: https://github.com/edinssa/node-template

My forked repo week 2 : https://github.com/betulaydinturkk/node-template

My repo is https://github.com/MishaShevchenko/node-template

Here you go: https://github.com/younes8888/Recipes-Project

here is my repo

https://github.com/Mamine777/node-template ### my repo

here is my repo  https://github.com/Mamine777/node-template.git


Update aspnetcore-spa generator to create projects with ASP.NET Core 2.0

There is no "dotnet new aurelia". We still need "yo" to generate aspnet core with JavaScriptServices for Aurelia

The template is there, but the docs are lagging behind a bit.
If you have the .NET Core 2.0 SDK, then you need to do this:
dotnet new --install Microsoft.AspNetCore.SpaTemplates::*

... and then you will be able to dotnet new aurelia.


two models with identical parameters give different prediction AUC on the same dataset

Hi, I try to replicate a registered XGBoost model A on databricks, and I get model B, with identical following parameters from tuning:
alpha, colsample_bytree, gamma, lambda, learning_rate, max_delta_step, max_depth, min_child_weight,best_iteration
I notice that the two models have slightly different feature importance values.
When I predict on the same test dataset, two models give me two different model AUC on test data, 0.8 vs 0.75
I am curious what can be the reasons behind the two different predictions?
Did I overlook some other parameters here?

Could you please share some more information, what's the versions of XGBoost used to train these models? What's the number of workers used to train these models? How did you train the model, like which interface are you using?

@trivialfis thank you for the reply.
what are the version of XGBoost is 1.6.1
python version 3.8.10
I train the model using Microsoft Azure Databricks, the Databricks Runtim version is 10.4 LTS ML (10.4.x-cpu-ml-scala2.12) . the cluster has 2-4 workers.
, I use hyperopt for tuning. and I register my model using mlflow (version 1.28).

hmm .. I can't really debug it:

tree models are sensitive to data (hence known to over-fit). One split difference in an early tree can lead to all the following trees being different.
AUC is not a particularly robust metric in a distributed environment, as documented in the auc metric from xgboost's doc.
xgboost might change training results if the number of workers is different between two training sessions.

Thanks again for the update. Can I ask why AUC is not a robust metric in this case, and if you have any advice for a walk-around or alternative to AUC as a metric here?

Hi again,
I try to replicate the same result as the model with 80% AUC in test data. I use the same training data, and train the same way, and register a model with the same hyperparamters listed above from the 80% AUC model. And again the newly created model only gives 75% AUC on the same test data. Not sure what else, apart from the "unstability" from distrubted environment and randomness, that can explain the difference here. The 5% difference is quite substaintial.. Appreciate any comment/tips, thanks!

any chance you can show me how to reproduce it?

Unfortunately it is not possible due to regulatory issue, but thanks for asking and the help here. I close the issue for now.


Usage with SASS

Sorry if not a real issue, but how would I go about using element queries with SCSS?
I mainly write in SCSS and compile it, obviously now if I use element queries it throws and error during compilation. What would you recommend?

Hey Marco! Thanks for the interest, and that’s definitely a good question. I don’t have a lot of experience with SASS/SCSS since at the end of the day - it is simply a method for outputting a large volume of regular CSS. I prefer to hand-write only the CSS which I need for a layout, so adding in a compilation stage between writing my CSS and being able to view it in the browser is a major stumbling block to productivity, and greatly limits the devices and situations where I am free to experiment with writing code.
The premise of EQCSS is to extend CSS to reach the things that regular CSS can’t reach or help you with - so using a tool that outputs large volumes of regular CSS doesn’t get you any closer to that target. After dabbling with SASS/SCSS I find it to be most useful for a few specific cases:

Browser prefixing, especially with complicated CSS animations where the properties are also different by browser
Expressing CSS design patterns at a higher level when teaching/demonstrating them to others
Creating modifiable source code pattern for the purpose of outputting many similar CSS files (theme/widget builders)

I may not be able to show you how integrate EQCSS with SASS/SCSS, but if you can explain to me what you’re trying to accomplish by using SCSS I’m sure I can show you a simpler way of accomplishing the same thing with CSS alone, or CSS plus EQCSS.
With element queries and scoped styles your CSS comes alive when the page loads! That’s not where things end, that’s the beginning. Styles can change as the user scrolls, clicks, types, or as new elements are added or removed from the layout. These are all things that regular CSS (and thus SASS and SCSS) are powerless to style.
Writing EQCSS can be a shift in how you approach writing CSS, and for many that shift may represent the freedom to leaving behind preprocessors like Less/Sass/Stylus and the workflow of compiling CSS before being able to preview it in browser.
I’d love to help, could you put a snippet of your SCSS styles up on Codepen with an explanation of what you would like to do that I can try to refactor to CSS + EQCSS? That might be the best way of bridging the gap between your knowledge and mine.

Hey Tom, sorry for the late reply.
Yes I respect your choice of not using SCSS personally, but nowadays a very big slice of frontend devs use it daily, so that it's considered standard in the industry, even over other preprocessors.
I personally like it for the nesting capabilities so that I can keep my code readable and DRY, and not worrying about vendor prefixes as you said.
I just want to use eqcss in my SCSS.
Yes the problem are the $this $root and $prev as you said, since $ means variable in SCSS, I can't think of a workaround to this, I tried with interpolation on your example, but it didn't work.

I think this may be a question for SCSS folks. If you can find a way to embed EQCSS in SCSS and have the compiler it ignore and bypass it and output it as-is, or if you can find a way to write valid SCSS and convince the compiler to output the corresponding correct EQCSS it will work when loaded in the browser with EQCSS.js
Perhaps when you want to make use of style scoping and the meta-selectors you could include those styles in separate stylesheets? EQCSS also supports the loading of styles under the <script type=text/eqcss> type, so if you have a stylesheet named styles.eqcss you could also load it like this:
<script src=styles.eqcss></script>

And the contents of the .eqcss file would be the same as CSS, or CSS with added EQCSS features. Some problems I use EQCSS to solve amount to just a few lines per website, like wrapper-free responsive videos.
Hope the SCSSlings can shed some light on this for you :)


Integrated Windows Security?

Is there any way to get the Task Scheduler Managed Wrapper to recognize Windows Integrated Security?  I'm writing a Windows Forms based UI that will allow tasks across multiple servers to be enabled and disabled quickly and easily, and I'd like to be able to access TaskScheduler methods under the user's rights without asking the user to re-enter her own password.
Originally posted: 2011-04-15T12:14:21

Sorry, but no. I tried to get this to work, but the base COM library does not support the use of tokens and, for good reason, you can't pull a password out of a token. I have seen groups used under V2 as a mechanism to do this successfully but then you loose the identity of the user making the request. You could put the user in as the author and not the principal.
Originally posted: 2011-04-15T13:04:37


Issues with the Overview window after upgrading to vignette 5.0

After upgrading to vignette 5.0, depending on the environment,  the Overview windows either shows nothing at all (emitting lots of error messages module 'PIL.ImageOps' has no attribute 'exif_transpose') or some of the thumbnails show wrong orientation.
The cause is the following change in vignette 5.0, cite CHANGELOG.md: "for image source files, EXIF orientation is respected when creating thumbnail". If using Pillow as backend, vignette implements this by calling PIL.ImageOps.exif_transpose(). This method has been added to Pillow in version 6.0. If Pillow is older than that, creating the thumbnails fails and in this case, we see the first variant of the issue. (Unfortunately, vignette does not document this version requirement.) If Pillow is recent enough (or if another backend is used) and the image has any other orientation than Horizontal (normal), the thumbnail is rotated twice to account for the orientation, once by vignette and once by photoidx, which is the cause for the wrong orientation for some images in the Overview window.

Obviously, we can't fix the issue with vignette >= 5.0 being incompatible with Pillow < 6.0 here. It has been fixed upstream: vignette 5.1.1 properly documents the requirement on Pillow >= 6.0.


Need my Google account to show up in Sync

My Google account which I've added when setting up android, isn't showing up when turning on sync system in Thorium. It takes me to add new google account, but when I add my existing Google account there, it shows account already exists. I can add other google account but not the account I've already added to phone when setting up android.

Expected: My existing google account should show in sync option like Chrome.

Google doesn't support it in 3rd party browsers.


[Grafana] Security hole in helm chart

Same as https://github.com/istio/istio/issues/7447
Grafana includes a dashbord, and cluster admin need configure username and password in values.yaml as https://github.com/istio/istio/blob/release-1.0/install/kubernetes/helm/istio/values.yaml#L396-L397  , this is a security hole, as the operator or the cluster viewer who can run helm get --tls values istio will be able to get the username and password for Grafana.
Seems we do not have a good solution for now, but a possible solution is we can update the README by highlighting if user want to use Grafana, they may want to create a secret first, and then let Grafana deployment use the pre-created secret. This can avoid configuring username and password in values.yaml.
/cc @sdake @costinm @douglas-reid

This seems like a terrible feature for helm to have.  But I don't see why it is a problem for the operator to be able to get the username and password that they would have set up?

The admin password should only be known by the admin user but not other users, like operator etc. Otherwise, the Grafana dashboard will be out of contorl, as for some security issue, we do not want non-admin users to view all resources in the cluster from Grafana.

[repeating the comment from issue #7447]
Kiali itself already uses a secret to store its user/pass - the example secret is here: https://github.com/kiali/kiali/blob/master/deploy/kubernetes/kiali-secrets.yaml
We would need the helm templates to use that secret and possibly have the user be able to override the user/pass in that secret. I'm not that familiar with helm, but I have to believe this is something that could be done, but I honestly don't know.


Feedback comment (delete and edit feature)

Replies will be held off for a bit longer since I don't find an exact need for it right now

Edit feature done

I added the delete feature, I think we don't need to worry about the edit feature anytime soon looking at the traffic of people sending feedbacks


Tween interpolation default, incorrect context

A tween's interpolationFunction property defaults to Phaser.Math.linearInterpolation, like this:
this.linearInterpolationFunction = Phaser.Math.linearInterpolation
This results in an error "Uncaught TypeError: undefined is not a function", I think because the above line of code shifts the context of .linearInterpolation from Phaser.Math to the tween. Should the above not be set as it is by tween.interpolation, like this?:
function(v, k) { return Phaser.Math.linearInterpolation(v, k); })

True, this is relatively easy to fix - however the bigger problem imho is that I don't think it should be using the interpolation function at all. In the original tween.js if you provided an array it copied the two arrays together and then passed it to the ip function in Tween.update, which only ever worked on the first element in the array.
In my mind I think if you give an array of values it should apply the tween to all elements of that array (providing they have correspondingly set start values), rather than just the first element of an array.
Also you should still provide an object to Tween.to, it should never be an array  (although I guess technically it won't hurt).

Here's another thought.. maybe the interpolation function should only ever be used if you give an array to Tween.to. For example this would use the approach I outlined above:
    obj = { "data": [ 100, 200, 300 ] };

    var tween = game.add.tween(obj).to( { data: [ 200, 300, 400 ] }, 2000, "Linear", true);

Whereas this would use interpolation:
    var tween = game.add.tween([ 100, 200, 300 ]).to( [ 200, 300, 400 ], 2000, "Linear", true);

Ignore the above :) I'm going with the way tween.js does it and this is now working properly in the dev branch.


TypeError: unsupported operand type(s) for -: 'int' and 'NoneType'

Hello, I want to make a TextCNN model for text classification, and my code is below:
def TextCNN_model_1(x_train, y_train, x_test, y_test):
    main_input = Input(shape=(140,), dtype='float64')
    embedder = Embedding(len(vocab_list)+1, 300, input_length=140, trainable=False, weights=[embeddings_matrix])
    embed = embedder(main_input)
    cnn1 = Conv1D(256, 3, padding='same', strides=1, activation='relu')(embed)
    cnn1 = MaxPooling1D(pool_size=48)(cnn1)
    cnn2 = Conv1D(256, 4, padding='same', strides=1, activation='relu')(embed)
    cnn2 = MaxPooling1D(pool_size=47)(cnn2)
    cnn3 = Conv1D(256, 5, padding='same', strides=1, activation='relu')(embed)
    cnn3 = MaxPooling1D(pool_size=46)(cnn3)
    cnn = concatenate([cnn1, cnn2, cnn3], axis=1)
    flat = Flatten()(cnn)
    drop = Dropout(0.2)(flat)
    main_output = Dense(2, activation='softmax')(drop)
    model = Model(inputs=main_input, outputs=main_output)
    model.compile(loss='categorical_crossentropy', optimizer='adam', metrics=['accuracy'])
    one_hot_labels = keras.utils.to_categorical(y_train, num_classes=2)
    model.fit(x_train, one_hot_labels, batch_size=40, epochs=10)
    result = model.predict(x_test)
    result_labels = np.argmax(result, axis=1)
    y_predict = list(map(str, result_labels))
    print(keras.metrics.accuracy(y_test, y_predict))

Following is Trackback info:
Traceback (most recent call last):
  File "/home/songyuqiu/anaconda3/envs/portrait/lib/python3.6/site-packages/keras/engine/training.py", line 692, in _prepare_total_loss
    y_true, y_pred, sample_weight=sample_weight)
  File "/home/songyuqiu/anaconda3/envs/portrait/lib/python3.6/site-packages/keras/losses.py", line 73, in __call__
    losses, sample_weight, reduction=self.reduction)
  File "/home/songyuqiu/anaconda3/envs/portrait/lib/python3.6/site-packages/keras/utils/losses_utils.py", line 166, in compute_weighted_loss
    losses, None, sample_weight)
  File "/home/songyuqiu/anaconda3/envs/portrait/lib/python3.6/site-packages/keras/utils/losses_utils.py", line 76, in squeeze_or_expand_dimensions
    elif weights_rank - y_pred_rank == 1:
TypeError: unsupported operand type(s) for -: 'int' and 'NoneType'

I've only recently started to come into contact with machine learning and deep learning, and a lot of knowledge is not quite understood. Hope to get your help, thanks a lot.

@zhangjie1982 Please refer to this link for your reference to text classification. In order to expedite the trouble-shooting process, please provide a code snippet to reproduce the issue reported here. Thanks!

Closing this issue due to lack of recent activity & assuming this issue as resolved .Please feel free to reopen if you still have concern.Thanks!


Port tests in test_transforms_video.py to pytest

Refactor test_transforms_video.py to pytest as mentioned in #4033

Thanks @DevPranjal !!

Thanks for the fix.


Reset values if inverter is switched off

I am using a Pheonix inverter that is not always on.
If the inverter has been on, and then is switched off, it would be good to get all values to N/A or 0 again..  is this possible

This is a feature request. A timer/timeout should be implemented. If the component doesn't receive new measurements for about 5 seconds the states should be updated to unknown.

Ok feature request then!!  I see it as a bug.,.. as currently if the inverter has been on, then gone off... i would want to see that its not on anymore ...


Update/Correct Documentation

node_modules/.bin/sequelize db:migrate
It's not in the path!!

Hi @drphipps
Please install sequelize with global flag or use it directly
npx sequelize db:migrate


Timta/inherit common types

MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Contribution checklist:

[ ] I commit to follow the Breaking Change Policy of “no breaking changes
[ ] I have reviewed the documentation for the workflow.
[ ] Validation tools were run on swagger spec(s) and errors have all been fixed in this PR. How to fix?

If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist

[ ] Ensure to check this box if one of the following scenarios meet updates in the PR, so that label “WaitForARMFeedback” will be added automatically to involve ARM API Review. Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs, all “removals” and “adding a new property” no more require ARM API review.

Adding new API(s)
Adding a new API version
Adding a new service

[ ] If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist
If there are following updates in the PR, ensure to request an approval from API Review Board as defined in the Breaking Change Policy.

[ ] Removing API(s) in stable version
[ ] Removing properties in stable version
[ ] Removing API version(s) in stable version
[ ] Updating API in stable version with Breaking Change Validation errors
[ ] Updating API(s) in preview over 1 year

Please follow the link to find more details on PR review process.

/azp run automation - sdk

Can one of the admins verify this patch?

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

Abandoning PR since change has no added value and is significantly breaking

Actually, before I close this out I want to check on this.
@weidongxu-microsoft This work item came up in this PR. Is this change necessary? If so, how can we work to resolve the breaking changes in python and such?

@timothyta12 Yes, it is recommended to use the shared Resource definition (BTW, there is a v2 now https://github.com/Azure/azure-rest-api-specs/blob/master/specification/common-types/resource-management/v2/types.json).
The usual solution to breaking changes is delay that to next api-version.
It is kind of trade of between necessity and impact. If the change is critical (e.g. without it the swagger is just not working), or impact is minimal (API is just released for a week, or very few customer is using the API, or SDK is not broadly released), it is OK to do a breaking changes.
But the general guideline is not break in stable. If you do, you need to give a good reason and mention the impact.

Hi, @timothyta12. The PR has be closed for a long time and it's related branch still exist. If no further used for over 14 days, I will delete this related branch. Please tell me if you still need this branch.

Hi, @timothyta12. The PR has be closed for a long time and it's related branch still exist. Please tell me if you still need this branch or i will delete it in 14 days.


Missing condition to check if body is loaded at StyleContext.tsx

Hello,
We are converting our React components to WebComponents (with AntDesign 4 everything worked fine). We've upgraded to V5, and when we build the React components then we include the built file in our sites written in pure HTML (included in the <head>).
But as in the screenshot below, an error is detected. I think the condition in file src/StyleContext.tsx:13 is missing the document.body check, this will avoid some issues in the future, as V5 of antd has just been released.
I thank you for your work, and for the correction that you could bring 🙏.

Having the same problem

I have exactly the same problem


One of my file myteriously rolled back to it's earlier version after update

Issue Type: Bug
So I update my vscode yesterday being 06-06-2018 and today being 07-06-2018 (DD-MM-YYYY)
I boot up my local node server and started getting an error log on terminal  and I noticed that this particular file content is not of yesterday or two days before yesterday.
I don't know how that happened.
How to reproduced ? I don't know
VSCODE version: 1.24 (lastest version)
NODE version: 10.3.0
OS : Ubuntu 18.04 LTS
VS Code version: Code 1.24.0 (6a6e02cef0f2122ee1469765b704faf5d0e0d859, 2018-06-06T17:37:01.579Z)
OS version: Linux x64 4.15.0-23-generic

System Info

Item
Value

CPUs
Intel(R) Core(TM) i3-2348M CPU @ 2.30GHz (4 x 1209)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwarerasterization: disabled_softwarevideo_decode: unavailable_softwarevideo_encode: enabledvpx_decode: unavailable_softwarewebgl: enabledwebgl2: enabled

Load (avg)
2, 1, 1

Memory (System)
7.69GB (1.05GB free)

Process Argv
/usr/share/code/code --unity-launch

Screen Reader
no

VM
0%

Extensions (33)

Extension
Author (truncated)
Version

markdown-toc
Ala
1.5.6

bracket-pair-colorizer
Coe
1.0.58

minify
Hoo
0.3.0

uikit-3-snippets
Ken
1.2.2

emoji
Per
0.0.3

nativescript
Tel
0.7.4

Bookmarks
ale
0.19.1

copy-relative-path
ale
0.0.2

npm-intellisense
chr
1.3.0

path-intellisense
chr
1.4.2

gitlens
eam
8.3.4

vscode-great-icons
emm
2.1.33

prettier-vscode
esb
1.5.0

auto-close-tag
for
0.5.6

auto-rename-tag
for
0.0.15

vue-snippets
hol
0.1.7

dotenv
mik
1.0.1

python
ms-
2018.5.0

sublime-keybindings
ms-
4.0.0

debugger-for-chrome
msj
4.5.0

vetur
oct
0.12.5

laravel-blade
one
1.18.0

polacode
pnp
0.2.2

live-sass
rit
1.3.0

LiveServer
rit
4.1.0

vue-vscode-extensionpack
sdr
0.1.2

vue-vscode-snippets
sdr
1.3.0

markdown-preview-enhanced
shd
0.3.5

vscode-status-bar-format-toggle
tom
1.3.0

vscode-jumpy
wma
0.3.1

JavaScriptSnippets
xab
1.6.0

markdown-pdf
yza
1.2.0

markdown-all-in-one
yzh
1.4.0

(3 theme extensions excluded)

I just noticed, I still have compiled version of the file with every changes I have made intact

Sorry for that, but without good steps to reproduce there is not much I can look into.


Support for CSS Custom Variables

Would be nice to support and convert css custom variables
https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables

Since email clients have generally poor support for CSS variables, it would be nice if Juice would inline them using getComputedStyle.

I agree - passing on the variable doesn't work, so computing it and inlining the computed value would be stellar. I have tested variables and it didn't work as expected, with missing styles on the email client side.

For anyone looking for some rudimentary support for replacing CSS variables after juice is done, try this:
function replaceCssVariables(str: string): string {
  const match = str.match(regex);
  if (!match) {
    return str;
  }
  const { index } = match;
  const [found, key, value] = match;
  const alreadyProcessed = str.slice(0, index! + found.length);
  const remaining = str.slice(index! + found.length).replace(new RegExp(`var\\(--${key}\\)`, 'g'), value);
  return `${alreadyProcessed}${replaceCssVariables(remaining)}`;
}

  const inlined = juice.inlineContent(html, css);
  const replaced = replaceCssVariables(inlined);

It works excellent for my use cases, but YMMV.

Here's a solution for replacing the CSS variables after juice is done, using cheerio:
const variableUsageRegex = /:\s*var\((--[a-zA-Z0-9-_]+)\);*/g;
const variableDefRegex = /(--[a-zA-Z0-9-_]+):\s*([^;]+);/g;

/**
 * Returns an array of variable usages.
 * Usages look like var(--name)
 */
function findCssVariableUsages(str = ''): string[] {
  const matches = Array.from(str.matchAll(variableUsageRegex));
  return matches.map((match) => match[1]);
}

/**
 * Returns a map of variable defs.
 * Defs look like --name: foo
 */
function findCssVariableDefs(str = ''): Map<string, string> {
  const matches = Array.from(str.matchAll(variableDefRegex));
  return matches.reduce((defs, [_, key, value]) => {
    defs.set(key, value);
    return defs;
  }, new Map<string, string>());
}

/**
 * Replaces CSS variables by iterating through each element and for each one,
 * if variable usages are found in its style,
 * walk up its ancestors to find the variable definitions
 * and replace the usages with the definitions.
 */
function replaceCssVariables(html = ''): string {
  const $ = cheerio.load(html, null, false);
  $('*').each((index, el) => {
    let $el = $(el);
    let style = $el.attr('style') || '';
    let variables = findCssVariableUsages(style);
    while (variables.length && ($el = $el.parent())) {
      const defs = findCssVariableDefs($el.attr('style'));
      variables.forEach((variable) => {
        if (defs.has(variable)) {
          style = style.replace(new RegExp(`var\\(${variable}\\)`, 'g'), defs.get(variable) || '');
          variables = variables.filter((v) => v !== variable);
        }
      });
    }
    $(el).attr('style', style);
  });
  return cheerio.html($.root());
}

Here's a solution for replacing the CSS variables after juice is done, using cheerio:
const variableDefRegex = /^(--[a-zA-Z0-9-_]+)$/;
const variableUsageRegex = /var\((--[a-zA-Z0-9-_]+)(?:\)|,\s*(.*)\))/;
/**
 * Resolves any variable usages found in a style value to their definitions.
 */
export function resolveCSSVariables(defs: Map<string, string>, styleValue = ''): string {
  let match;
  while (match = styleValue.match(variableUsageRegex)) {
    const [found, variableName, fallback] = match;
    const { index } = match;
    const before = styleValue.slice(0, index);
    const after = styleValue.slice(index! + found.length);
    const replacement = defs.has(variableName)  ? defs.get(variableName) : fallback;
    styleValue = `${before}${resolveCSSVariables(defs, replacement || '')}${after}`;
  }
  return styleValue;
}

/**
 * Walks the tree depth-first,
 * collecting variable definitions and then resolving any usages found.
 */
export function replaceCSSVariables($: CheerioAPI, $el : Cheerio<any>, defs = new Map<string, string>()) {
  const styles = $el.css();
  if (styles) {
    /**
     * Collect the defs first.
     */
    Object.entries(styles).forEach(([key, value]) => {
      if (variableDefRegex.test(key)) {
        defs.set(key, value);
      }
    });
    /**
     * Resolve any usages.
     * Done separately from above in case any defs and usages are found on the same element.
     */
    Object.entries(styles).forEach(([key, value]) => {
      styles[key] = resolveCSSVariables(defs, value);
    });
    $el.css(styles);
  }
  $el.children().each(
    (index, el) => replaceCSSVariables($, $(el), new Map<string, string>(defs)),
  );
}

export default function inlineWithVariablesReplaced(html: string, css: string): string {
  const inlined = juice.inlineContent(html, css, { inlinePseudoElements: true });
  const $ = cheerio.load(inlined, null, false);
  const $root = $.root();
  replaceCSSVariables($, $root);
  return cheerio.html($root);
}

This is great. Am I correct in understanding, though, that if the variable is defined in various classes that apply to an element, this will just use the most-recently-encountered variable definition that matches, rather than the definition from the highest-priority class?


Duplicated items on *.Modules.Application

Hi Kamil,
I see that there are some items located in each module and completely the same except their namespaces. For instance, CommandBase, ICommand, IQuery etc.
I would like to ask about this approach. What could be wrong if we put them in a common library (for instance "CompanyName.MyMeetings.Modules.Common.Application") to avoid code duplication?
Thank you.

Hi @denizkanmaz
This duplication was created purposely to avoid executing Commands / Queries which particular Module doesn't handle. In other words - interface of each module is very strict and you will receive compilation error if you would try to execute Command/Query which is not part of Contract of this module.
Example:
await _userAccessModule.ExecuteCommandAsync(new RegisterNewUserCommand(request.Login, request.Password,
    request.Email, request.FirstName, request.LastName)); // OK, this command is part of User Access Module

await _userAccessModule.ExecuteCommandAsync(new ProposeMeetingGroupCommand(
    "name", "description", "city", "country")); // Compile error, this command is part of Meeting Module