Confusion in the documentation: How to store labels with many different values?

In http://prometheus.io/docs/practices/naming/, there is a large warning:

CAUTION: Remember that every unique key-value label pair represents a new time series, which can dramatically increase the amount of data stored. Do not use labels to store dimensions with high cardinality (many different label values), such as user IDs, email addresses, or other unbounded sets of values.

But if not labels, what should I use?

http://prometheus.io/docs/practices/instrumentation/#do-not-overuse-labels
You should use a general purpose processing system, such as Hadoop or Spark. Prometheus is intended as a real-time monitoring system that you can easily run and depend on in an emergency. High cardinality metrics tend to only grow and require work disproportionate to the benefit they bring you in such a system, and dealing with them in a less-realtime fashion is more appropriate.

@xiegeo How large is the cardinality of your intended label values? What matters most in the end is the total cardinality of what you're selecting in queries...

For my current project the values are going to be small, I am mostly concerned about the correct way to do things such that the tools can present and analyze my data without too much modification, and as an learning experience.
If I understand correctly, Prometheus is for someone who already have a Hadoop cluster or such to do the number crunching for the business side and uses Prometheus to monitor such clusters. My problem is different but the solution can be similar so I want to gave Prometheus a try.
I have 2 servers for redundancy and locality. I will put the Prometheus client on them since anything interesting the users do will go though them. The two servers run independently of each other. I want to build a dashboard that shows what going on on both servers using Prometheus.
I only have around 10 users (associates in a highly specialized field, so it will never get large). I also need to know where they are connecting from (ip addresses in the 100s, preferably also allow me to follow each tcp connection) and what projects (10s per user) they are working on, and other events (errors, commands of different types, bandwidth usage, network delay) should be easy to add when need.

I think you've going to be near the edge of what a single Prometheus server can handle, and I wouldn't track individual TCP connections. If you're looking for network flow tracking there are tools out there designed for that purpose. I'd more generally recommend something like the ELK stack as this sounds more like an event logging use case than a timeseries monitoring use case.

So there is no way to put unique metadata per event in Prometheus? I am open to writing something my self that can take advantage of the go process monitoring, data collection and some of the graphing features of Prometheus, without the weight of a large mammal sized stack.

So there is no way to put unique metadata per event in Prometheus?

No, Prometheus isn't an event logging database. Have you considered InfluxDB?

No, I did not. In my preliminary searches I dismissed InfluxDB as a cloud database provider. Now that you propped me for a better look, it does look like want I need.

Great, glad that we could help you.


Filtered Query Block

Overview
This block should extend the existing Query Loop block by adding a list of categories above the posts.
Scope
Functionality outline:

Adds a list of post categories (as a button block?) above the post loop
Shows all categories available resulting from the current query
Clicking a category will filter post results
Pagination would need to be executed at the block level (no page reload)
Ability to pre-select a category on page load

Settings/Options

Ability to show/hide result count # in category button
Order category list buttons

highest # of results
alphabetical

Show/hide pagination
Filter overflow:

wrap
scrolled

Filter selection: limit to just one selection at a time (default), or add ability select multiple filters at once?
Ability to edit the “No results...” message
Styling options for post count

Inline or pill
Or, ability to style counts with the Style tab? If not possible, should be easily able to target with CSS (number should be in a <span>)
Category Filter curation

Ability to curate which categories are displayed in the filter (eg: you just want to show your top 3 categories, not all 24)
Possibly add ability to show all categories for current post type, vs the ones resulting from current query (although I think this would be an edge case need, since some filter buttons may provide no results)

Layout options

Default layout: categories above posts
Category list stacked on side

Styling

Filter should be editable via a Button
Inherits the default outline and filled button styles for the theme, but should be able to be overridden

Architecture
How the block architecture might make sense; this way the filters and Query Loop layout are separate pieces, easier to make custom layouts:

Front end examples
From this Figma page.
Styling

Layouts

👋 I've looked a bit into this today, from a "progressive enhancement" angle.
I'd think of the role of the Filtered Query block as something that simply renders a bunch of <a> links that point to the respective URLs for each category's archive page. (This is essentially what the Categories List block does.)
The client-side navigation is the "enhancement" part -- it can be added to intercept any clicks on navigation links and turn them into client-side transitions instead.
The good news is, most of the pieces should be available already! As it happens, the Query Loop block has a toggle called "Force Page reload" that's enabled by default. Disabling it will cause it to use client-side navigation instead! As a bonus, we then get pagination etc. for free from the Query Loop block.

The bad news is, there's a number of limitations to this. The toggle is wired such that it can't be disabled if there are any blocks present that are known to interfere with client-side navigation (i.e. any block that doesn't have block-support set for interactivity.clientNavigation in its block.json), most notably the Post Content block; meaning that any archive template that wants its Query Loop block to opt into client-side navigation must not use the Post Content block (but e.g. the Post Excerpt block instead).
This might still cover a decent number of use cases, but it won't work e.g. for a video archive template where each post object contains a Youtube embed that's supposed to be shown in the archive. As a work-around for this latter case, one might need to get creative and e.g. use a post meta to set the Youtube video URL, and have the template display it via Block Bindings.
Furthermore, in addition to the "hard" requirement of blocks being compatible with client-side navigation, there's also some heuristics run on the frontend that determines if there are any other things that might interfere with client-side navigation, and will disable it if that's the case. In practice, I seem to keep running into that, so I'll need to ask my more Interactivity-API-savvy teammates how to track down the reason 😅

Furthermore, in addition to the "hard" requirement of blocks being compatible with client-side navigation, there's also some heuristics run on the frontend that determines if there are any other things that might interfere with client-side navigation, and will disable it if that's the case. In practice, I seem to keep running into that, so I'll need to ask my more Interactivity-API-savvy teammates how to track down the reason 😅

@luisherranz kindly helped me figure this out. In short, we only support region-based (rather than full-page) client-side navigation for now, which means that it's only the contents of the Query Loop block that are being updated. This means that clicking on pagination links triggers client-side navigation; clicking on individual items in the archive list doesn't (as they'd point to a different page).

The good news is that it should be fairly straight-forward to make this work with the Categories List block (or any similar block inspired by it) 😄 Here's a PoC:


screen resolution code FIXED

this PR adds the screen resolution (that bbpanzu tried to add in the past)
the screen resolution option in this pr goes from 360p to 4K
UNFORTUNATELY, still doesn't work with fullscreen mode. Maybe i'll try to make it some time l8r
(edit: it's actually IMPOSSIBLE to work with fullscreen, because haxeflixel is fucked)
enjoy!

This only changes when on options menu tho

 where fix

i forgot to solve it, i recovered my pc just yesterday lmao

Broke


✨ Rename PageController to EasterEggController and update routes

This pull request renames the PageController to EasterEggController and updates related files to reflect this change. It also introduces a new HomeLive module for the root path.
Key changes:

Renamed PageController to EasterEggController
Created EasterEggHTML module to replace PageHTML
Moved and renamed template files to match the new controller name
Updated the router to use HomeLive for the root path
Added a new route for /easter-egg using the EasterEggController

These changes improve the organization of the code by separating the easter egg functionality from the main page logic and introducing a live view for the home page.

#139
#138  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @RTLS and the rest of your teammates on  Graphite


Access to weights and resources

Could you store weights at some international resource?
I am from Russia and it's unclear how to register in QQ or WeChat.
In order to register in QQ I must have a Chinese phone number, and in order to register in WeChat I must have a friend in WeChat ((

Google Drive links are updated in the instructions. @ArseniuML


[SPARK-14049] [CORE] Add functionality in spark history sever API to query applications by end time

What changes were proposed in this pull request?
Currently, spark history server REST API provides functionality to query applications by application start time range based on minDate and maxDate query parameters, but it  lacks support to query applications by their end time. In this pull request we are proposing optional minEndDate and maxEndDate query parameters and filtering capability based on these parameters to spark history server REST API. This functionality can be used for following queries,

Applications finished in last 'x' minutes
Applications finished before 'y' time
Applications finished between 'x' time to 'y' time
Applications started from 'x' time and finished before 'y' time.

For backward compatibility, we can keep existing minDate and maxDate query parameters as they are and they can continue support filtering based on start time range.
How was this patch tested?
Existing unit tests and 4 new unit tests.

Can one of the admins verify this patch?

cc @squito @zhuoliu

Hi @paragpc , since this is related to UI, could you upload some screenshots for your changes? Thanks.

Hi @zhuoliu,
In this pull request, my proposal is specific to spark history server REST API. This is intended for the users who use REST API directly. As you mentioned, we can use this extended API to display filtered results on Spark history server UI too, but this request is not intended for spark history server UI and we can have separate Jira for the same. Let me know if you have any questions/suggestions.

Hi @zhuoliu,
Can you or any other admin verify this patch?

I am +1 to your change. @tgravescs @rxin , could any of you verify this patch?

Hi @tgravescs / @rxin,
Can you kindly verify this patch or provide any suggestions?

@paragpc could you update this PR? This change sounds good to me.

Hi @zsxwing,
I have updated the PR. Can you kindly verify it?

ok to test

Test build #71537 has started for PR 11867 at commit 5380792.

Test build #71537 has finished for PR 11867 at commit 5380792.

This patch fails Spark 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/71537/
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/71577/
Test FAILed.

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/71578/
Test FAILed.

Merged build finished. Test FAILed.

I am not sure why the build is failing with following error,
stderr: fatal: unable to access 'https://github.com/apache/spark.git/': Failed connect to github.com:443; Operation now in progress

at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1640)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1388)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:62)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:313)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:152)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:145)
at hudson.remoting.UserRequest.perform(UserRequest.java:120)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
at ......remote call to amp-jenkins-worker-04(Native Method)
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
at hudson.remoting.UserResponse.retrieve(UserRequest.java:220)
at hudson.remoting.Channel.call(Channel.java:781)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:145)
at sun.reflect.GeneratedMethodAccessor287.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:131)
at com.sun.proxy.$Proxy58.execute(Unknown Source)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:761)
... 11 more

Error does not seem related to my changes, can anyone help? cc @vanzin, @zsxwing, @squito

retest this please

Test build #71611 has started for PR 11867 at commit 04c7c34.

Test build #71611 has finished for PR 11867 at commit 04c7c34.

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/71611/
Test PASSed.

Test build #71690 has started for PR 11867 at commit 3bb7553.

Test build #71690 has finished for PR 11867 at commit 3bb7553.

This patch fails Spark 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/71690/
Test FAILed.

Test build #71699 has started for PR 11867 at commit 38ebece.

Test build #71699 has finished for PR 11867 at commit 38ebece.

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/71699/
Test PASSed.

Test build #71872 has started for PR 11867 at commit a140336.

lgtm, will merge when tests pass

Test build #71872 has finished for PR 11867 at commit a140336.

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/71872/
Test PASSed.

thanks @paragpc
merged to master

thanks @squito :)


[FAB-17517] Only Initialize specified provider

Type of change

Bug fix

Description
Code currently tries to initialize multiple providers based on
provided config Opts being nil or not.
This update ensures that only specified provider is initialized
based on ProviderName.
This fixes "Failed initializing PKCS11.BCCSP %!s()" error
when the code complied with PKCS11 enabled expect
configuration to not be nil even when Provider is set to SW.
Signed-off-by: Ahmed Sajid<EMAIL_ADDRESS>Related issues
https://jira.hyperledger.org/browse/FAB-17517
https://github.com/hyperledger/fabric-ca/pull/113
https://github.com/hyperledger/fabric/pull/769
https://github.com/hyperledger/fabric/pull/821
https://github.com/hyperledger/fabric/pull/822

@mastersingh24 can you please review this?
Or maybe someone else can?
Its the same as the one submitted to Fabric repo.

We don't update vendored code directly in the tree.  You'll need to update the version of the dependency itself


Check if autoload nodes are != NULL before deleting them

The editor crashed when deleting an autoload script that has been disabled (Singleton: disabled) and then trying to reopen the project.
Fixes #27854

Thanks!

Cherry-picked for 3.1.2.


Fix Dropped Errors

There were some places where an err variable was being set but nothing was being done with it. This is a PR to fix those occurrences.

Coverage decreased (-0.03%) to 64.407% when pulling 1417dbbc6fb5db83b77a9915b4225897d7854191 on alrs:no-dropped-errors into 84dcb1a0ffa029bc89814571b307c38b0d89715b on Avalanche-io:master.

Great, thanks for the contribution.


update for mongodb 3.0.x, closes #61

as per
https://github.com/mongodb/node-mongodb-native/blob/master/CHANGES_3.0.0.md#api-changes

Seems like there is a race condition that is causing the tests to fail, if I remove the dropDatabase call all tests pass. My guess would be the database is being dropped before some queries are complete, couldn't pin point the location though.

closing channels explicitly fixed the tests


Jitsi opens many instances when clicking start call

My Setup

Operating System: Gentoo
App Version: 3.1.1
Installation type: flatpak

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

Description

How to reproduce: click on start voice call, wait, voila
Current Behavior

Jitsi is opened multiple times
Expected Behavior

Jitsi should open once

same here

Not experienced that on Windows
@philipprogramm @stasiop please mention your Jitsi server version - it could be very important.

Not experienced that on Windows
@philipprogramm @stasiop please mention your Jitsi server version - it could be very important.
I don't know the Jitsi version as i'm using the open instance meet.jit.si, but I would say it's the newest version

Probably this is not a desktop issue. Maybe will  helpful to read this #20946

Please test if the latest release did solve this. If not please reopen the issue or create a new one and tell us. I will be closing this one for now.
Thank you!


Initial support for non-tetrahedral stereochemistry

This adds initial support for square planar, trigonal bipyramidal, and octahedral stereochemistry to the RDKit. It's work done together with @rogersayle.
Information about what is currently supported here can be found in #4851 as well as the "Support for non-tetrahedral atomic stereochemistry" section of RDKit_Book.rst.
The representation is derived from what we're already using for tetrahedral chirality: there are now tags like ChiralType::CHI_OCTAHEDRAL. The additional required information is carried in an atom property which tracks the permutation order of the ligands. This is documented in the RDKit_Book as well as the OpenSmiles documentation.
This is far from done, and I was originally planning to hold off on releasing anything until we made a bit more progress, but I think it's worth getting the initial version out there to start to collect some feedback and gather some experience on working with these systems. That would also make the code review even more daunting.
The additions here should not change the behavior of existing software or break any existing code unless that code is relying on the RDKit's previously incorrect behavior when it comes to parsing non-tetrahedral tags in SMILES.

One minor comment on something which is pretty tricky to change is putting this under the umbrella of "chirality" is a bit of a misnomer - however I see the synergy "CHI_OCTAHEDRAL" fits nicely with "CHI_TETRAHEDRAL" etc.

Yeah, there are elements of chirality there (at least "non-superimposable on mirror image" applies to some of the permutation pairs and I think that falls into the bucket of chirality), but there's more to it than that. Unfortunately at the atomic level getChiralTag() is what we've got.

Looks good :-) nice coverage of features - e.g. handling add/remove H etc.

Oh, and thanks for the online version of your depictor... without that it would have been WAY more painful to work out what the various permutations all mean.


Insufficient flexibility of LDAP Proxy Auth

Insufficient flexibility of LDAP Proxy Auth
I noticed that in the Ldap Validator object, the username passed in during authentication queries will be set to cn. However, in our AD, CN is highly likely to be a Chinese name. Is there a solution to pass in other keys, such as SamAccountName
https://github.com/mitmproxy/mitmproxy/blob/main/mitmproxy/addons/proxyauth.py#L212

Not our focus right now, but happy to look at a PR for this. :)


Add section on documentation for explaining SLO period windows

Fixed on https://github.com/slok/sloth-website/pull/5


DL-4139 Adding functionality for IABD 59 POST request

DL-4139
Checklist
Reviewee (Replace with your name)

[x]  I've made every effort to commit high quality, clean code and I have executed relevant static analyses to be sure
[x]  I've included appropriate tests with any code I've added (Unit, Integration, Acceptance etc.)
[x]  I've executed the acceptance test pack locally to ensure there are no functional regressions
[x]  I've added my code using logical, atomic commits, squashing as appropriate - including the JIRA issue number in the commit message
[ ]  I've run a dependency check to ensure all dependencies are up to date

Reviewer (Replace with your name)

[ ]  I've confirmed that every effort has been made to commit high quality, clean code and I have executed relevant static analyses to be sure
[ ]  I've confirmed appropriate tests has been included with any code added (Unit, Integration, Acceptance etc.)
[ ]  I've executed the acceptance test pack locally to ensure there are no functional regressions
[ ]  I've confirmed code was added using logical, atomic commits, squashing as appropriate - including the JIRA issue number in the commit message
[ ]  I've run a dependency check to ensure all dependencies are up to date

Tested locally.


Creating excel file and writing to it with ExcelJS

I wrote a script that creates a new excel file with ExcelJS. Adds 3 headers and inserts 2 rows. Then saves that file to disk.
In the next step it should read that previously saved file, add 1 row and save it again under a new name. I can't find the reason why the second part where I try to add 3rd row never happens. Both files look the same and there are no errors in console.
const Excel = require('exceljs');

async function exTest(){
  const workbook = new Excel.Workbook();
  const worksheet = workbook.addWorksheet("My Sheet");

  worksheet.columns = [
    {header: 'Id', key: 'id', width: 10},
    {header: 'Name', key: 'name', width: 32},
    {header: 'D.O.B.', key: 'dob', width: 15,}
  ];

  worksheet.addRow({id: 1, name: 'John Doe', dob: new Date(1970, 1, 1)});
  worksheet.addRow({id: 2, name: 'Jane Doe', dob: new Date(1965, 1, 7)});

  // save under export.xlsx
  await workbook.xlsx.writeFile('export.xlsx');

  // load a copy of export.xlsx
  const newWorkbook = new Excel.Workbook();
  await newWorkbook.xlsx.readFile('export.xlsx');

  const newworksheet = newWorkbook.getWorksheet('My Sheet');
  newworksheet.addRow({id: 3, name: 'New Guy', dob: new Date(2000, 1, 1)});

  await newWorkbook.xlsx.writeFile('export2.xlsx');

  console.log("File is written");
};

exTest();

Seems nobody knows what is wrong, even on stack:(
https://stackoverflow.com/questions/55132760/creating-excel-file-and-writing-to-it-with-exceljs

Solved it by adding array to describe columns in second part of the code. Then the 3rd row was added successfully.

async function exTest(){
  const workbook = new Excel.Workbook();
  const worksheet = workbook.addWorksheet("My Sheet");

  worksheet.columns = [
    {header: 'Id', key: 'id', width: 10},
    {header: 'Name', key: 'name', width: 32},
    {header: 'D.O.B.', key: 'dob', width: 15,}
  ];

  worksheet.addRow({id: 1, name: 'John Doe', dob: new Date(1970, 1, 1)});
  worksheet.addRow({id: 2, name: 'Jane Doe', dob: new Date(1965, 1, 7)});

  // save under export.xlsx
  await workbook.xlsx.writeFile('export.xlsx');

  //load a copy of export.xlsx
  const newWorkbook = new Excel.Workbook();
  await newWorkbook.xlsx.readFile('export.xlsx');

  const newworksheet = newWorkbook.getWorksheet('My Sheet');
  newworksheet.columns = [
    {header: 'Id', key: 'id', width: 10},
    {header: 'Name', key: 'name', width: 32},
    {header: 'D.O.B.', key: 'dob', width: 15,}
  ];
  await newworksheet.addRow({id: 3, name: 'New Guy', dob: new Date(2000, 1, 1)});

  await newWorkbook.xlsx.writeFile('export2.xlsx');

  console.log("File is written");

};

exTest();```


Disable signature function

@kherock I've spent way more time than I wanted to trying to make this work, so I'm just going to add the ability to turn off signature checking altogether.
My staging server is still having issues despite my last PR and best efforts, I'll leave the other issue open for your perusal. If you want to put a fix out, let me know and I'll try it.

also, your tests randomly break by the looks of it...

It's likely because of the runaway Promise you now have in the .callback() - the bucket configurations that were supposed to be set for the last test are only taking effect by the time the next test runs.

Ah ok I'll fix it

Looks like this wasn't enough to fix the issue, likely due to the path issue going beyond just how the signature is calculated... im closing this and reverting to a fork of the older version sorry, as I said I'll try any fix attempts you have.
If you get stuck, I'll do a hail mary and fire up a cloud9 instance and invite you into it for repro.
It's really remote server using domain name + using middleware in express subpath, wouldn't be hard to fire something up for that. Let me know if you need help


Unexpected eternal CPU RAM growth during training

Bug description
Description
At each training batch, CPU memory increases a bit until I run out of memory (total RAM: 376 GB). After that I cannot even ssh into the machine the jupyter notebook server I was using was served (nor see any errors caused). I cannot understand where or why memory is being cached forever. It seems to be in the dataloader though.
I have written a minimal example code shared below.
Setup
The cluster I use is managed by SLURM and it uses a lustre filesystem. Training is performed using an NVidia GPU.
My python 3.8.15 is from a Debian bullseye official docker image, which I pull and use with Singularity (have to as my cluster does not allow docker).
Other information
With this setup the bug was only sensible using the Xarray based dataset. I still wanted to post it here because in my real case scenario, I have tried changing data to NPZ format, but the same problem happened, so it did not seem to be an Xarray problem. Also, sometimes the bug just doesn't happen for some minutes. I don't know why. I am experiencing this behavior for some months already now :S
Workaround
One workaround we use is using more workers to load data. So the memory is forced to be free when the epoch ends because the threads are dead I suppose. So for a while I can force that less batches are trained per epoch.
How to reproduce the bug
Dependencies

numpy==1.22.4 (also tested on 1.23.5)
xarray==2022.11.0 (also tested on 2022.12.0)
h5netcdf==1.0.2 (also tested on 1.1.0)
torch==1.13.0 (also tested on 1.13.1)
pytorch-lightning==1.6.5 (also tested on 1.8.6)
scipy==1.8.1

Code
# Imports

from pathlib import Path
import numpy as np
import xarray as xr
import torch
import pytorch_lightning as pl
from scipy.ndimage import gaussian_filter

# Generating data

data_dir = Path.cwd() / "data"

def generate_fake_sample(shape):
    x = np.random.normal(size=shape)
    x = gaussian_filter(x, 8)
    x_min, x_max = x.min(), x.max()
    x = (x - x_min) / (x_max - x_min)
    x = x.astype(np.float32)
    y = (x > .7).astype(np.int8)
    return {"x": x, "y": y}

# Here 2 equivalent datasets are defined, based on
# - Xarray's NetCDF4 files
# - Numpy's NPZ files

class XarrayDataset(torch.utils.data.Dataset):

    def __init__(self,
                 data_dir=None,
                 transform=None,
                 shape=(128, 128, 128),
                 name="sample",
                 size=1):
        """
        Dataset made of NC files.
        """
        self.data_dir = Path(data_dir)
        self.data_path = self.data_dir / f"{name}.nc"
        self.transform = transform
        self.shape = shape
        self.size = size
        self.prepared = False

    def __len__(self):
        return self.size

    def __getitem__(self, idx):
        ds = xr.open_dataset(self.data_path)

        sample = dict(ds.data_vars)
        for var, val in sample.items():
            sample[var] = torch.from_numpy(val.data)
        ds.close()

        if self.transform:
            sample = self.transform(sample)
        return sample

    def prepare_data(self):
        if self.data_path.exists():
            return
        self.data_dir.mkdir(exist_ok=True)

        sample = generate_fake_sample(self.shape)
        ds = xr.Dataset({
            var: xr.DataArray(arr) for var, arr in sample.items()
        })
        ds.to_netcdf(self.data_path)
        ds.close()

class NpzDataset(torch.utils.data.Dataset):

    def __init__(self,
                 data_dir=None,
                 transform=None,
                 shape=(128, 128, 128),
                 name="sample",
                 size=1):
        """
        Dataset made of NPZ files.
        """
        self.data_dir = Path(data_dir)
        self.data_path = self.data_dir / f"{name}.npz"
        self.transform = transform
        self.shape = shape
        self.size = size
        self.prepared = False

    def __len__(self):
        return self.size

    def __getitem__(self, idx):
        if not self.prepared:
            self.prepare_data()

        npz = np.load(self.data_path)

        sample = dict(npz)
        for var, val in sample.items():
            sample[var] = torch.from_numpy(val)

        if self.transform:
            sample = self.transform(sample)
        return sample

    def prepare_data(self):
        if self.data_path.exists():
            return
        self.data_dir.mkdir(exist_ok=True)

        sample = generate_fake_sample(self.shape)
        np.savez_compressed(self.data_path, **sample)

# Choose dataset kind

ChosenDataset = XarrayDataset
#ChosenDataset = NpzDataset

# Transforms

class ComposedTransform():

    def __init__(self, transforms):
        self.transforms = transforms

    def __call__(self, sample):
        for transform in self.transforms:
            sample = transform(sample)
        return sample

class AddAxisTransform():

    def __init__(self, keys=(), axis=0):
        self.keys = keys
        self.axis = axis

    def __call__(self, sample):
        for key in self.keys:
            sample[key] = torch.unsqueeze(sample[key], axis=self.axis)
        return sample

class ConcatenateTransform():

    def __init__(self, key_groups, axis=0):
        self.key_groups = key_groups
        self.axis = axis

    def __call__(self, sample):
        for new_key, old_keys in self.key_groups.items():
            old_tensors = [sample[k] for k in old_keys]
            new_tensor = torch.concat(old_tensors, axis=self.axis)
            for old_key in np.unique(old_keys):
                del sample[old_key]
            sample[new_key] = new_tensor
        return sample

# Model

SimpleModel = torch.nn.Sequential(
    torch.nn.Conv3d(in_channels=2, out_channels=1, kernel_size=1),
    torch.nn.Sigmoid(),
)

# Lightning module

class TrainableSegmenter(pl.LightningModule):
    def __init__(self, data_dir):
        super().__init__()
        self.save_hyperparameters()

        self.data_dir = Path(data_dir)

        self.model = SimpleModel
        self.loss = torch.nn.CrossEntropyLoss()

        self.learning_rate = 1e-2
        self.batch_size = 64

        self.loader_cpus = 0
        self.prefetch_factor = 2
        self.persistent_workers = False
        self.pin_memory = False

        self.shuffle = True
        self.drop_last = True

        self.pre_processing_transforms = [
            AddAxisTransform(keys=["x", "y"], axis=0),
            # Although strange, this is similar to what I need to accomplish in my case
            ConcatenateTransform({"x": ["x", "x"], "y": ["y"]}, axis=0),
        ]
        self.augmentation_transforms = []

    def forward(self, x):
        return self.model(x)

    def configure_optimizers(self):
        return torch.optim.Adam(self.parameters(), lr=self.learning_rate)

    def training_step(self, batch, batch_idx):
        X = batch["x"]
        Y = batch["y"]
        Y_pred_proba = self.forward(X)
        loss = self.loss(Y_pred_proba, Y.to(torch.float16))

        self.log_dict({"train_loss": loss}, on_epoch=True)
        return loss

    def validation_step(self, batch, batch_idx):
        X = batch["x"]
        Y = batch["y"]
        Y_pred_proba = self.forward(X)
        loss = self.loss(Y_pred_proba, Y.to(torch.float16))

        self.log_dict({"val_loss": loss}, on_epoch=True)

    def prepare_data(self):
        self.train_dataset = ChosenDataset(
            data_dir=self.data_dir,
            name="train",
            shape=(128, 128, 128),
            size=900,
            transform=ComposedTransform([
                *self.pre_processing_transforms,
                *self.augmentation_transforms,
            ]),
        )

        self.val_dataset = ChosenDataset(
            data_dir=self.data_dir,
            name="val",
            shape=(128, 128, 128),
            size=100,
            transform=ComposedTransform([
                *self.pre_processing_transforms,
            ]),
        )

        self.train_dataset.prepare_data()
        self.val_dataset.prepare_data()

    def train_dataloader(self):
        return torch.utils.data.DataLoader(
            self.train_dataset,
            batch_size=self.batch_size,
            prefetch_factor=self.prefetch_factor,
            num_workers=self.loader_cpus,
            drop_last=self.drop_last,
            pin_memory=self.pin_memory,
            persistent_workers=self.persistent_workers,
            shuffle=self.shuffle,
        )

    def val_dataloader(self):
        return torch.utils.data.DataLoader(
            self.val_dataset,
            batch_size=self.batch_size,
            prefetch_factor=self.prefetch_factor,
            num_workers=self.loader_cpus,
            drop_last=self.drop_last,
            pin_memory=self.pin_memory,
            persistent_workers=self.persistent_workers,
            shuffle=False,
        )

# Training

pl.seed_everything(0)
pl_model = TrainableSegmenter(data_dir=data_dir)

trainer = pl.Trainer(
    accelerator="gpu",
    devices=[0],
    max_epochs=100,
)

trainer.fit(pl_model)

Error messages and logs
Cannot read errors because the computer crashes
Environment

Singularity (from Debian Bullseye based Python 3.8.15 Docker image)
- PyTorch Lightning Version : 1.6.5, 1.8.6
- PyTorch Version: 1.13.0, 1.13.1
- Python version: 3.8.15
- OS: Linux
- CUDA/cuDNN version: CUDA 11.2 / cuDNN 8.2
- GPU models and configuration: Tesla V100 (32 GB VRAM)
- How you installed Lightning: pip

More info
No response
Edit
Adding trials using new lib versions.
cc @justusschock @awaelchli

Using Xarray based dataset: loading data from a DataLoader of batch_size=64 and printing data's shape allocates and deallocates memory well. This is another reason why I don't believe the problem is with Xarray, but in the way lightning might be managing data.

I suggest that you first check if the issue is specific to pl by creating a mock training loop that iterates through the dataloaders for an equivalent number of samples and epochs. Without using pl's abstractions.
If you don't see it happen then, we can start debugging pl with more confidence

In fact, @carmocca. I could reproduce the bug even without lightning. I'm closing this issue here in favor of https://github.com/pydata/xarray/issues/7429.

Just for completeness. I've isolated the bug, and the actual problem is singularity. I don't know why yet, but now I can proceed with my trainings in a virtualenv.


feat: changed title to match yt title

Fixes Issue
Closes #69

Check List (Check all the applicable boxes)

[ x] My code follows the code style of this project.
[ x] My change requires changes to the documentation.
[ x] I have updated the documentation accordingly.
[ x] All new and existing tests passed.
[x ] This PR does not contain plagiarized content.
[ ] The title of my pull request is a short description of the requested changes.

Summary by CodeRabbit

Documentation: Updated the title of the document "How to get into tech and standout" to include the name "Francesco Ciulla". This change provides clarity on the authorship and enhances the document's credibility, offering users a more personalized and trustworthy resource for breaking into the tech industry.

@FrancescoXX I have made the requested changes. Please review


Roll Engine from 0b330467da24 to b3e281fc0c6e (1 revision)

https://github.com/flutter/engine/compare/0b330467da24...b3e281fc0c6e
2020-08-18<EMAIL_ADDRESS>Roll Skia from e9d783c4d235 to 688e0966cb16 (1 revision) (flutter/engine#20584)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/master/autoroll/README.md

Commit queue failed; closing this roll.


Additional authentication call to APIs

Taken from #106 :

think this call could use an API call (without further redirect) to check the validity of the token. Redirection is a possible security threat. For example, (http://localhost/academy?token=SPONGEBOBSQUAREPANTS) creates a valid token in the state, allowing me to view the game (albeit without any relevant content). It is a matter of debate as to when the token is to be validated (as discussed in real life @ningyuansg), but adding an extra check here prevents the user from seeing data that is already present in the website (e.g frontend stuff)

Adding an additional call to the API (for authenticating the validity of a token) would have a performance hit, but would allow for absolutely no content to be loaded until the token is confirmed to be valid. The alternative works as well -- as all content is loaded from the backend, the token will fail there instead, causing the content to not be loaded.

@evansb @rrtheonlyone Do you guys have any input on this?

Closing this because the access token will be used for every content fetch, and the initial IVLE token will be sent to be exchanged for a refresh/access token.


Fixed an error when a relative time filter was added to the chart widget

Description

Fixed an error when a relative time filter was added to the chart widget
Related Issue :

How Has This Been Tested?

Create a chart widget.
Add a filter to the chart widget.
Check that the dashboard is displayed normally.

Need additional checks?
Types of changes

[X] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[ ] I have read the CONTRIBUTING document.
[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have added tests to cover my changes.

Additional Context

deploy to 1


Cannot move while constantly shrinking

Basically if i constantly set my size to be slightly smaller, i cannot really move at all, like i am being teleported back to where i was. I tested using latest beta with only chiseled me. I saw a video on someone doing a challenge using this idea, and i have no idea why it does not work in the latest beta. I tested in the latest release and it works fine there. I have no idea why this is and i hope you can fix this.
Video: https://www.youtube.com/watch?v=mmHdjNOt0sQ
Command used (in repeating command block) /sizeof @a multiply 0.999 (this number is for testing purposes, can be changed)

Also tested using divide instead of multiply, same issue

Ok I'm finally back to working on this project, closing this a duplicate of #66


Table width overflows table wrapper.

I have already asked this on stack overflow:
https://stackoverflow.com/questions/51386463/material-ui-table-overflows-its-table-wrapper
But I am hoping that someone here might be able to provide some insight and direct me toward a solution. Why does the table ignore my width specifications and invisibly flow off the edge of the page? It seems to only ignore widths smaller than (in this instance) 592px. Removing the table element removes the overflow so I do not believe it is a containing element with an errant width.
Here is the inspected table element with my supplied max-width being overwritten by the matieral-ui style:

And here is a gif of the behavior:

@ChrisJVoss Checkout the native table behavior. I'm pretty sure you would get the same issue. Check out the resources on the native table or this demo: https://material-ui.com/demos/tables/#sorting-amp-selecting. I believe we handle the problem.

So for those demos, when viewed on a mobile device, the table width and minWidth are set to 1020px which is far larger than the screen width yet they do not exhibit the same behavior I am experiencing. The computed styles of both the table and tableWrapper appear to be identical.
I'm sorry but what do you mean by native table behavior? This is a web app and the table functions very well down to ~530px screen width.

@ChrisJVoss You can't change the width of a <table> element as you would with a display: block. By native table behavior, I mean the behavior has nothing to do with Material-UI, it's how a disable: table behaves.

I'm having the exact same problem, and getting really frustrated :/
I can't really tell what's going on..  I copied the exact same example (with the scrolling) from the documentation yet the issue is still exist (nothing else is rendered except the demo component)
in the documentation and in codesandbox.io it works flawlessly
** Im running with the latest version - v1.4.0
@ChrisJVoss  did you manage to find the difference?


app is no longer defined

replaced with main.get_app()
PTAL - not sure if wsgi.app is better vs repeated main.get_app(). syntax.
Tested it with createdb / createdata, about to do some other testing shortly

tested with signing in / creating new users / etc.

I should have just added a app = main.get_app() line at the top level of the file.  The goal is to have tests able to import main and replace the app before any other imports happen.

I believe the approach in PR #45 is preferable.


adding/removing from array causes id/for values on all array elements to change

I just came across this too. I'm having to reference the schema.key since this is happening. Looks like it's just an arbitrary ID for the labels???? I'm trying to dynamically add items to the field but so far no luck. That's how I noticed all the ID's change.


How can I change the system prompts so I can make it as  according to me and my requirements for my company bot support and voice support i tried to change prompts.ts code but doesn't work

How can I change the system prompts so I can make it as  according to me and my requirements for my company bot support and voice support i tried to change prompts.ts code but doesn't work

I need to know your specific usage scenario. If you want to create a new assistant, you can only update it by submitting prompt to chat-agents. Custom assistants are not supported yet.
If you want to optimize some of the built-in prompts in the current system, you can modify the utils/prompt.ts file. However, under normal circumstances, no adjustment is required. These prompts are used to optimize the reply content and cannot be used in general scenarios.

I want this ai chatbot should behave as it is the tech support for SVECTOR and it is sync bot and I want it for this and I also tried for changing utils/prompts.ts file the no effect was there @Amery2010

@siddharth-coder8
Are you referring to the service of this website www.svector.co.in?
I roughly understand your idea. If you want to make an AI customer service robot or a similar AI chat robot, you need to modify the file app/api/chat/route.ts, which is the backend service interface. You can add systemInstruction to set the system prompt. This parameter can also be sent directly by the frontend.

Ok thanks
And yes I was referring to www.svector.co.in/


Notification test

Try to see where the notification goes when other user comments this.

Give comment to this issue.

Thank you

Can I ask a question?

Of course, please.

I am still confusing where then notification setup. Only to the right button or also on the top?

As I also do. But do not worry, just proceed to learn.

Ok. Thank you.

Let's see some topic for discussion.

Ping...

Pong..


External DNS resolution issues

Is this a request for help?:
Yes
Is this an ISSUE or FEATURE REQUEST? (choose one):
ISSUE
What version of acs-engine?:
0.8.0

Orchestrator and version (e.g. Kubernetes, DC/OS, Swarm)
Kubernetes 1.7.7
What happened:
Deployed services are having regular issues resolving external DNS records for certain services they reach out to (one in particular is a Cosmos DB instance).  When this occurs, I can access the container, do a DNS cache flush, and then the record will be resolvable.
What you expected to happen:
The DNS record should be resolvable at all times.
How to reproduce it (as minimally and precisely as possible):
Simply wait for the service to throw an error which typically happens within 30 minutes or less of the last DNS cache flush.
Anything else we need to know:

Container nodes are using the default Azure DNS VIP with the subscriptions default domain as a search suffix.
All services have their dnsPolicy set to ClusterFirst
kube-dns was configured with a stubDomain to documents.azure.com and with local DNS servers as upstreams and neither helped this issue.

I am seeing this same issue myself. Complete roadblock for me until I recently came across a temporary mitigation of adding this to my dockerfile:
RUN powershell Set-Service dnscache -StartupType disabled
RUN powershell Stop-Service dnscache

We do not recommend that you disable DNSCache. There are a few potential things at work here:

Windows DNS Client caches both positive (and negative) responses to name resolution requests
When container (or service) names are created (and scaled) through Docker, Docker Engine on Windows registers these names with corresponding IP addresses in a DNS Server owned by Docker. Containers therefore first look at the Docker Engine DNS server for name resolution and then look at other DNS servers configured on the container host (inherited in the container).
By default, the DNS client will cache name-IP resolutions in the running container. If a particular container instance (part of the set of tasks which make up a service) goes down, the IP address is not immediately invalidated. The mapping is removed within the DNS server (owned by Docker engine) but a client will have to re-query the server to get the updated list of valid mappings.
Kubernetes has its own name-IP registration process with Kube-DNS.

We recommend that users set MaxCacheTtl to 0 in the container to inform the DNS client not to cache results (or rather, cache for 0s). We also recommend that users set MaxNegativeCacheTtl to 0 so that any "negative" hits (i.e. DNS resolution requests which returned 0 results) will not be kept in cache therefore instructing the DNS client to always retry resolutions (even if previous resolutions failed).
e.g. in Dockerfile:
RUN powershell New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters' -Name MaxCacheTtl -Value 0 -Type DWord
RUN powershell New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters' -Name MaxNegativeCacheTtl -Value 0 -Type DWord
We have received reports that these two settings do not fix all problems. We have several known bugs which we are investigating and who are in various stages of being fixed.

Thanks for the insight @JMesser81. I have tried the registry key changes you mention and they do make things much better, but don't solve the problem. Whereas stopping the dnscache service does completely resolve it. But given the harsh warnings I've heard from almost everyone I've talked to I would never go to production with that change, which is why this one is so frustrating, I have no real solution.
A little more color: I recently deployed an ACS cluster with Server 2016 v1709 Windows nodes hoping it would magically solve the problems given all of the networking changes in it. Alas it made no difference. In fact it felt like a step backwards as neither the dnscache service stop nor the regi keys solve the problem there. I think there may be some permissions issue with the v1709 version as my dockerfile commands don;t seem to actually apply the changes (removing into my container shows the dnscache still running for example).

Hmm... could you please try and capture logs/traces for us to analyze what's going on? From an elevated command prompt, please do the following:
•	netsh trace start scenario=InternetClient_dbg capture=yes maxSize=1024
•
•	netsh trace stop
share the *.cab/etl file which is generated with our team.

Please repro the problem in between the two netsh commands.

@JMesser81 I'm running my app on a nanoserver which does seem to support netsh trace. Do you have an alternate option for nanoserver? Note I also don't have powershell as I'm using v1709 nanoservers.
And one further question, in order to pull files off a k8s container it appears I need a supported version of tar on my local Windows machine. Can you advise me on how I get that working? I am seeing "invalid tar header" messages when I try to copy files locally today.

Can you try with a windows server container? Presumably, if this is a system issue it will repro equally on both nano and windows server core base images. If it does not repro with windows server core, it may be related directly to nano container base image but that will then help narrow our investigation.
Thanks

@JMesser81 hmm, easier said than done. My app is a DotNet Core 2.0 app and there is no prebuilt windowservercore container with DotNet Core 2.x on it. I'm in the process of migrating the code backwards to DotNet 4.7.1 so I can easily run on windowsservercore.
In the meantime though I have attached to a servercore container and find that if I run this command as requested:
netsh trace start scenario=InternetClient_dbg capture=yes maxSize=1024
I get this error:
'InternetClient_dbg' is not a valid scenario.
One or more parameters for the command are not correct or missing.
Oddly though in looking at the help for netsh, even the example they give fails similarly. Thoughts?

@JMesser81 I was able to get my app running in windowsservercore as a DotNet 4.7.1 app and repro'd the problem. The nettrace commands you asked me to try didn't work but I was able to run the logman commands below that created an etl file. I was given these commands by another resources. Attahced is the resulting nettrace.etl file. Please let me know if this is helpful.
logman -ets start -mode 2 -max 256 internettrace -p "{4E749B6A-667D-4c72-80EF-373EE3246B08}" 0x7FFFFFFF 5 -o nettrace.etl
logman -ets update internettrace -p "{43D1A55C-76D6-4f7e-995C-64C711E5CAFE}" 0x7FFFFFFF 5
logman -ets update internettrace -p "{1A211EE8-52DB-4AF0-BB66-FB8C9F20B0E2}" 0x7FFFFFFF 5
logman -ets update internettrace -p "{B3A7698A-0C45-44DA-B73D-E181C9B5C8E6}" 0x7FFFFFFF 5
logman -ets update internettrace -p "{08F93B14-1608-4a72-9CFA-457EECEDBBA7}" 0x7FFFFFFF 5
logman -ets update internettrace -p "{50b3e73c-9370-461d-bb9f-26f32d68887d}" 0xFFFFFFFFFFFFFFFF 5
logman -ets update internettrace -p "{988ce33b-dde5-44eb-9816-ee156b443ff1}" 0x7FFFFFFF 5
logman -ets update internettrace -p "{41D92334-B49C-4938-85F1-3C22595DB157}" 0x7FFFFFFF 5
logman -ets update internettrace -p "{609151DD-04F5-4DA7-974C-FC6947EAA323}" 0x7FFFFFFF 5
logman -ets update internettrace -p "{1C95126E-7EEA-49A9-A3FE-A378B03DDB4D}" 0xFFFFFFFFFFFFFFFF 5
logman -ets update internettrace -p "{55404E71-4DB9-4DEB-A5F5-8F86E46DDE56}" 0x7FFFFFFF 5
logman -ets update internettrace -p "{0C478C5B-0351-41B1-8C58-4A6737DA32E3}" 0x7FFFFFFF 5
nettrace.zip

Also having this issue. You'd think the documentation would in clude in big red flashing text "WINDOWS CONTAINERS CAN'T COMMUNICATE OUTSIDE OF THE CLUSTER". Even a brief mention of it in the known limitations would suffice.

+1
I've spent days deploying different clusters, trying different windowsservercore:1709 base images and digging this repo issues. Nothing helped. I'd rather concentrate on something else and wait for the issue to be resolved...

I'm able to curl IPs that exist outside of the cluster, but I cannot curl DNS of servers within the same vnet. I'm going to try with a 1.9.1 cluster.

To circle back around on this I now have a Windows v1803 cluster deployed using ACS-Engine v0.20.9 and am no longer seeing any DNS issues with deployed pods. This issue can be closed.


MongoDb issue with association(hasOne)

Is it possible to add Associations (hasOne) in mongoDb using orm module.
In your examples only used mysql, postgresql only, I think that it is not possible with mongodb.
But i am bit confused that anywhere in the document  not mentioned about mongo db relation.
Please tell me, how to achieve one to many relation .
var Person = db.define('person', {
name : String
});
var Animal = db.define('animal', {
name : String
});
Animal.hasOne("owner", Person); // creates column 'owner_id' in 'animal' table
if it is possible ,please explain it with model.create()
otherwise please explain how to achieve this with mongodb as database.
Please help me it is very urgent.....

By using Animal.hasOne('owner', Person), you are creating the owner_id in the animal table as you said.
This means that each 'owner' can have many animals.
Using something like personInstance.getAnimals() should return the animals for the owner.
You have a one-to-many relationship as that Person has many Animals, and Animal hasOne Person.


Specify upperbound for Python version in setup.py

Koalas currently can't support because Spark 2.x does not support Python 3.8. Python 3.8 is supported from Spark 3.

Codecov Report

Merging #1445 into master will decrease coverage by 1.30%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1445      +/-   ##
==========================================
- Coverage   94.00%   92.69%   -1.31%
==========================================
  Files          36       36
  Lines        8342     8342
==========================================
- Hits         7842     7733     -109
- Misses        500      609     +109

Impacted Files
Coverage Δ

databricks/koalas/usage_logging/__init__.py
26.12% <0.00%> (-68.47%)
:arrow_down:

databricks/koalas/usage_logging/usage_logger.py
50.00% <0.00%> (-50.00%)
:arrow_down:

databricks/koalas/__init__.py
84.61% <0.00%> (-7.70%)
:arrow_down:

databricks/koalas/utils.py
93.90% <0.00%> (-2.54%)
:arrow_down:

databricks/conftest.py
94.33% <0.00%> (-1.89%)
:arrow_down:

databricks/koalas/frame.py
95.22% <0.00%> (-0.35%)
:arrow_down:

databricks/koalas/generic.py
96.62% <0.00%> (-0.34%)
:arrow_down:

databricks/koalas/plot.py
94.04% <0.00%> (-0.24%)
:arrow_down:

databricks/koalas/groupby.py
91.64% <0.00%> (-0.21%)
:arrow_down:

databricks/koalas/indexes.py
96.88% <0.00%> (-0.19%)
:arrow_down:

Continue to review full report at Codecov.

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

Thanks! merging.


IHE Template to not number headers

may be a second template used in IHE, where the numbering is dictated by the Technical Framework (RAD, IHE, PCC, QRPH). These domains can use this template that will NOT automatically assign header numbers. Thus these IG using this template will need to manually assign header numbers in the header text. (This is how we do this in WORD today. This is necessary because we use volumes, and assigned chapters).

@costateixeira do I just create another formal IHE template and move this stuff there? Copying this stuff along with each new project is starting to be a problem (not a big one).

We should find a better way to set numbers, or at least an ig parameter or
config variable that turns numbers on or off.
On Wed, 4 May 2022, 15:13 John Moehrke, @.***> wrote:

@costateixeira https://github.com/costateixeira do I just create
another formal IHE template and move this stuff there? Copying this stuff
along with each new project is starting to be a problem (not a big one).
—
Reply to this email directly, view it on GitHub
https://github.com/IHE/supplement-template/issues/16#issuecomment-1117298301,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AD3HUUCPBTJ3SGTZ2Z6ZUOLVIJZXJANCNFSM42T3CNSQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

So, are you suggesting that we push for that, and carry along the project specific templating a bit longer? I like that plan, but need to see that it will happen.
I would agree turning off auto-numbers with a parameter would be nice. I think I did put that requirement into the queue.
Auto numbers given a page specific starting number would be nice, but I don't think it is really needed. For those that are needing to control the numbers, they have controlled numbers in publications for decades.  So this is less important.


E.1 - address _router verification - MADFactoryt721

Will not fix;
there is a circular dependency between MADFactory and MADRouter

MadFactory provides the FactoryVerifier for MADRouter, and it is provided as an argument to MADRouter constructor
MADRouter provides routing functionality to MadFactory.

During script deployment, we first create the factory with an empty (0x0) address, create the router with the factory address, then set the router in the factory.
Once set this is not expected to change; all this is done during deployment of the smart contracts themselves.


Correctly display enums consisting of arrays in the show page

The show page displays correctly enums when they are hashes or arrays of arrays, but it incorrectly displays enums consisting simply of arrays, such as:
['value', 'other_value']

This is the form used in Rails enums. This patch correctly displays such enums.

Fixed by 309a2d1e.


Feature/UI/UX: Add ability to select language on login and registration page

Fixed by e4ff3bc commit


create a yor.tf file with all the tags

Is your feature request related to a problem? Please describe.
When updating yor tags, i get a lot of spam in my merge requests because yor tags live in the resources.
This makes my code review harder as there are a lot of lines to mentally filter out.
Describe the solution you'd like
group all yor tags in a file, for example
# yor.tf
aws_instance_foo_tags = {
"git_commit" = "blah"
}

and merge those tags in where the resource is, for example
# main.tf
resource "aws_instance" "foo" {
...
  tags = merge(local.aws_instance_foo_tags, {
    extra_tags = true
  })

Describe alternatives you've considered
N/A
Additional context
Add any other context or screenshots about the feature request here.

Alternatively, if Yor could use the default_tags parameter on the AWS provider, it would cut down on the huge amount of changes Yor makes.


Manage item trades

User story
As a user offering trades, it must be possible to review the items that are currently list for trade. Additionally it must be possible to see a grouping of offers that are open for a particular item that is listed. It must be possible to either accept or deny one of these offers.
Narrative
A user has a public character that posses an item they'd like to trade, they can simply click a button to offer it to the market. The user is presented with a form that they fill that lists what items they want in return. The user clicks the button to list the item and it will be listed. When another user offers one of their items in exchange that should be listed in the details of the trade. As the issuer of the trade the user can accept the trade, or reject it.
Out of scope
N/A
Acceptance criteria

#
Given
When
Then

1
I am a user with a character which owns items
i fill a form to trade an item
it is listed on the market

2
i am user with a trade list
i accept another user's offer for my item
i receive the offered item and the traded item is given

3
i am user with a trade list
i reject another user's offer for my item
the offer is deleted from the list

You do not need to complete this story, it can be moved out of scope.

Kate Ruscito


pkgsi686Linux.qt5.qtbase fails to build

Issue description
Seems to be related to #36946/#36947. Makes it so I can't use wine, which depends on it for some reason
.obj/qpathsimplifier.o:qpathsimplifier.cpp:function (anonymous namespace)::PathSimplifier::intersectNodes(QDataBuffer<(anonymous namespace)::PathSimplifier::Element*>&, (anonymous namespace)::PathSimplifier::BoundingVolumeHierarchy::Node*, (anonymous namespace)::PathSimplifier::BoundingVolumeHierarchy::Node*): error: undefined reference to '__divmoddi4'
.obj/qpathsimplifier.o:qpathsimplifier.cpp:function (anonymous namespace)::PathSimplifier::intersectNodes(QDataBuffer<(anonymous namespace)::PathSimplifier::Element*>&, (anonymous namespace)::PathSimplifier::BoundingVolumeHierarchy::Node*, (anonymous namespace)::PathSimplifier::BoundingVolumeHierarchy::Node*): error: undefined reference to '__divmoddi4'
.obj/qpathsimplifier.o:qpathsimplifier.cpp:function (anonymous namespace)::PathSimplifier::intersectNodes(QDataBuffer<(anonymous namespace)::PathSimplifier::Element*>&, (anonymous namespace)::PathSimplifier::BoundingVolumeHierarchy::Node*, (anonymous namespace)::PathSimplifier::BoundingVolumeHierarchy::Node*): error: undefined reference to '__divmoddi4'
.obj/qpathsimplifier.o:qpathsimplifier.cpp:function (anonymous namespace)::PathSimplifier::intersectNodes(QDataBuffer<(anonymous namespace)::PathSimplifier::Element*>&, (anonymous namespace)::PathSimplifier::BoundingVolumeHierarchy::Node*, (anonymous namespace)::PathSimplifier::BoundingVolumeHierarchy::Node*): error: undefined reference to '__divmoddi4'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1312: ../../lib/libQt5Gui.so.5.12.0] Error 1
make[2]: Leaving directory '/build/qtbase-everywhere-src-5.12.0/src/gui'
make[1]: *** [Makefile:448: sub-gui-make_first] Error 2
make[1]: Leaving directory '/build/qtbase-everywhere-src-5.12.0/src'
make: *** [Makefile:49: sub-src-make_first] Error 2
builder for '/nix/store/y37l40jih7j4db0n8x9mn0digdxcyp61-qtbase-5.12.0.drv' failed with exit code 2
error: build of '/nix/store/y37l40jih7j4db0n8x9mn0digdxcyp61-qtbase-5.12.0.drv' failed

Steps to reproduce

Update to latest git master nixpkgs
nix-build '<nixpkgs>' -A pkgsi686Linux.qt5.qtbase

Technical details
Please run nix-shell -p nix-info --run "nix-info -m" and paste the
results.

system: "x86_64-linux"
host os: Linux 5.1.15, NixOS, 19.09.git.5500538 (Loris)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.2.2
nixpkgs: /etc/nixos/nixpkgs

Got the same error when rebuilding my system on nixos-unstable channel

I think previously this was fixed by using gcc6 instead of gcc7.

I am also having this problem. I have bisected it to 1a6e572529595d146a259fa433785ebb3215d8d2

I attempted to apply @matthewbauer 's suggestion to only qt packages. The failure is the same. Perhaps a dependency also needs to compile with gcc6? Is there a way to default the i686 packages to gcc6?

--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -7241,7 +7241,7 @@ in
   gerbil-unstable = callPackage ../development/compilers/gerbil/unstable.nix { stdenv = gccStdenv; };

   gccFun = callPackage ../development/compilers/gcc/7;
-  gcc = gcc7;
+  gcc = if stdenv.isi686 then gcc6 else gcc7;
   gcc-unwrapped = gcc.cc;

   gccStdenv = if stdenv.cc.isGNU then stdenv else stdenv.override {

Maybe that would be a usable workaround.
In any case, more in-depth discussion of this was in https://github.com/NixOS/nixpkgs/issues/36947

@vcunat that worked for almost everything. Except packages using -Wno-error=pointer-compare. That causes a failure. EG: dhcp:
configure:3799: checking whether the C compiler works
configure:3821: gcc    conftest.c  >&5
cc1: error: -Werror=pointer-compare: no option -Wpointer-compare
configure:3825: $? = 1
configure:3863: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "DHCP"
| #define PACKAGE_TARNAME "dhcp"
| #define PACKAGE_VERSION "4.4.1"
| #define PACKAGE_STRING "DHCP 4.4.1"
<snip>

I've overrideAttr the dhcp to confirm. There are ~10 other derivations using that warning. Is it necessary to override each individually?

@tadeokondrak FWIW, wine.override { gstreamerSupport = false; } works around this, assuming you don't need gstreamer support of course...

@Shados  gstreamerSupport in wine cause more problems than solve  (concretely -- wrapper with gstreamer specific variables for wine64),  but it completely unrelated for this case

@avnik it is unrelated to the ultimate cause, yes. It is still a useful workaround for the symptom that tadeokondrak was dealing with (being unable to build wine). I mis-judged whether or not that would be clear from context...

qtbase still fails to build on latest unstable and latest unstable-small.

@vcunat Perhaps we can use that fix for now? Otherwise I'm not sure how to handle it without breaking something else.

That might solve on symptom of the problem but not the root cause.
If I try to build wine on my x64 machine it wants to build some version of qtbase and that fails. Even with vcunat's patch it doesn't build.

I was able to compile (almost) the full plasma 5 desktop with:

--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -7241,7 +7241,7 @@ in
   gerbil-unstable = callPackage ../development/compilers/gerbil/unstable.nix { stdenv = gccStdenv; };

   gccFun = callPackage ../development/compilers/gcc/7;
-  gcc = gcc7;
+  gcc = if stdenv.isi686 then gcc6 else gcc7;
   gcc-unwrapped = gcc.cc;

   gccStdenv = if stdenv.cc.isGNU then stdenv else stdenv.override {

To get everything to build required some application of:

https://github.com/coreyoconnor/nixpkgs/commit/fa15d1362f752e985ceecfeee004a8af684041eb

However, while that passes the plasma5 test on my branch I can't actually get plasma to run on my desktop. Nor can I get many QT apps to run. Those issues may be regressions from #64720 until that's verified I'm reluctant to open a PR with those workarounds.
Tho compiling and failing is better than not compiling for dev I suppose...


pcli: validator-governance-subkey subcommand is in the wrong place

Describe the bug
Running pcli init --help describes a validator-governance-subkey command that's only relevant for validators. We already have a place for commands that are only relevant for validators, namely pcli validator, and it should move there.
Prospective contributors: hit up @erwanor here or on Discord if you want to pick this up!

Would like to help with this one @erwanor

Sounds great, thanks! do you have any questions? @kerber0x feel free to open a draft pr early and we can workshop it as we go

This is a bit more squirrelly than anticipated, removed the good-first-issue tag. I will update the issue with a plan at a later time. Apologies for the churn @kerber0x


upgrade to typescript

This PR upgrades to typescript and also auto generates typings

That is some extraordinary work!
Besides TS rewrite there is a lot to thank you for.
I like how you fixed typos, used mongodb-memory-server, introduced ESLint, code coverage,
I'm going to quickly amend the PR. Few reasons:

The README.md states that the new default collection name is "transactions", whereas is must not change. Like ever. :) So, I'm going to fully reverse the README.md changes.
README.md would need some info about the TS support. I'll add some.
Also we need the full list of all breaking changes.
I'll remove console.log statements from the unit tests. Because I like silent tests. No other reasons frankly. :)
Also, I'd need to rewrite before() and after() mocha hooks from callbacks to promises. For consistency.
Also, prettier is a must in all our projects. I'll have to add it back to devDependencies.
Other minor changes I have to do to avoid much breaking changes.

I've changed the base branch for this PR to typescript-migraiton.

Hello @Uzlopak
You have been granted Write access to this repo. Feel free to develop and push right to this repo. This would simplify yours and ours workflows.
The branch typescript-migraiton needs a number of improvements. I haven' done any yet because I lack knowledge.

I pulled the typescript-migraiton and ran using node 12:

rimraf package-lock.json node_modules/ && npm i
npm run build

It doesn't build! :(

ESLint configuration is missing.

The npm run lint command(s) does not work. :(

If we are upgrading to mongoose v6, then we should also upgrade to the latest node LTS range. Meaning medici must support node 12, 14, and 16. The minimum supported is v12.

I tried running it in node 12, and it fails. :( Also CI, TS, ESLint and other tools must support node 12 and corresponding ES version.

I couldn't conduct the proper list of all the breaking changes this PR does. Could you please do it?

We must not rename the default collection name from Medici_Transaction. It must stay. There are too many reasons for that.

Prettier should be used to format all the code.

Minor note.
I'm happy to add TS, ESLint, nyc, etc to the project. They are useful.
This package was trying to be minimalistic on the surrounding tooling. That's why it only has mocha and prettier in devDependencies. Because we find that every dependency results in time waste. For example, I could have merged this whole code to the master branch. But it does not work because of some TS/ES/Node/API/etc version mismatch.
Please, checkout flash-oss:typescript-migration branch and push all the new commits directly to that branch.
Again, thank you very much for all that work! Some minor things left. I really hope you can help us resolving them.


jan: 0.4.14 -> 0.5.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/janhq/jan/releases.
meta.description for jan is: Jan is an open source alternative to ChatGPT that runs 100% offline on your computer
meta.homepage for jan is: https://github.com/janhq/jan
meta.changelog for jan is: https://github.com/janhq/jan/releases/tag/v0.5.0
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.5.0 with grep in /nix/store/wzd9fd0dfj8lk09g8x20v76jp2fm3zsv-jan-0.5.0
found 0.5.0 in filename of file in /nix/store/wzd9fd0dfj8lk09g8x20v76jp2fm3zsv-jan-0.5.0

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

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

jan

Instructions to test this update (click to expand)

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

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

Or:
nix build github:r-ryantm/nixpkgs/500618d21f6d44651e5a06a9ae1696840a3da078#jan

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

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

1 package built:

jan

Maintainer pings
cc @drupol for testing.

Fixup description


How can I write to the blockchain via this library?

I have a smart contract deployed with a function that writes some input data to the blockchain.
How can I call it successfully?
I tried
$contract->at($contractAddress)->send($functionName, $params, $callback);

Which results in
Wrong type of eth_sendTransaction method argument 0.

I expect my issue is that I haven't connected/signed the call and covered the gas costs, but I don't understand how I would sign a call to a custom method.

I figured it out - I had to use $contract->getData(contractParam1, contractParam2, [,])
and send that as the 'data' for a Transaction, sign it with the use of https://github.com/web3p/ethereum-tx and send it via $eth->sendRawTransaction

Hello @JoeMez !

I use as a ganache environment. I found the mistake you made. I was able to make the solution you mentioned. But when I make the transaction I get the following error "Invalid Signature".
The smartcontract method is the following
function stamp(string ots, string file_hash) public {         if (hashstore[ots].blockNumber == 0) {             emit Stamped(msg.sender, file_hash, ots);             hashstore[ots] = Dato({blockNumber: block.number, hash: file_hash});         }     }
And the code of my script is
`<?php
require('vendor/autoload.php');
use Web3\Web3;
use Web3\Contract;
use Web3\Providers\HttpProvider;
use Web3\RequestManagers\HttpRequestManager;
use Web3p\EthereumTx\Transaction;
$web3 = new Web3(new HttpProvider(new HttpRequestManager('HTTP://<IP_ADDRESS>:7545'))); # Use Ganache UI
$testAbi = '*'; # Get by truffle console
$testBytecode = ''; # Get by truffle console
$contract_address = '0xEACFC747e31d2D14398Fb8d5B8c769E3C37835cC'; ## Deploy whit truffle console
$from_address = '0xB11D0403fF02247D985165Be95cDAe524D632715'; ## Get by Ganache
$from_password = '0x7e395bdc8c9c275e5480bc95890c0906468dc3f19d1336a4a189951542ad4359'; ## Get by Ganache
$contract = new Contract($web3->provider, $testAbi);
$data = sprintf('0x%s', $contract->at($contract_address)->getData('stamp', 'Prueba','Prueba')); //getData(function, first param, second param). Should I add x0 ??
$transaction = new Transaction([
'nonce' => '0x01',
'from' => $from_address,
'to' => $contract_address,
'gas' => '0x76c0',
'gasPrice' => '0x9184e72a000',
'value' => '0x9184e72a',
'data' => $data,
]);
$signedTx = $transaction->sign($from_password);
$web3->eth->sendRawTransaction(sprintf('0x%s', $signedTx), function ($err, $tx) {
if ($err !== null) {
echo "Error: " . $err->getMessage() . PHP_EOL; # -> Invalid Signature
}
echo 'TX: ' . $tx . PHP_EOL;
});`
Excuse my writing, I'm Argentine

@JoeMez
I am facing same issue.
Can you please exaplain me in detaills.
I have a ERC20 Smart Contract deployed.
I want to call "transfer" function.
I doing following code.
$contract = new Contract($web3->provider, $ContractMeta->abi);
$contract->at($contractAddress)->send('transfer', $toAccount, 1000, [
'from' => $fromAccountPrivateKey,
'gas' => '0x200b20'
], function ($err, $result) use ($contract, $fromAccount, $toAccount) {
                });
            });


Add support for 32-bit glslangValidator for 32-bit Linuxes

The current code generation chokes with a not very helpful error on 32-bit Linuxes because it tries to start the 64-bit glslangValidator under oryol/tools/linux.
Add a precompiled 32-bit glslangValidator, and detect whether to run 64-bit vs 32-bit Linux in fips-generators/util/glslcompiler.py.

I think it makes sense to not support 32-bit Linux, since other things will break to (e.g. Android NDK doesn't come with 32-bit tools at all). Closing this ticket as 'won't fix'


Fix for best parameters not updating when MCMC finds a better fit than least-squares

Issue is that the least-squares bestp array is currently overwriting the shared-memory array. Since the least-squares bestp array is a normal numpy array, the shared-memory aspect is lost and bestp can't be properly updated by the subprocess chains. Solution is to copy only the values within the least-squares bestp array.

Oh, wow! This is very obscure, good catch, thanks!
I will merge in a minute

Oh, wow! This is very obscure, good catch, thanks!
I will merge in a minute

Hi @rychallener , I had forgotten to upload this fix to pypi, the code it's up to date there now.

Hi @rychallener , I had forgotten to upload this fix to pypi, the code it's up to date there now.


Update Events.md

Fixing typo

Hey @fatherofinvention, this PR needs re-pointing to develop as well :D

S'alright! Merged :)


Add plugin flag to opam-0install

What's this for? I thought the solver was available as a built-in now anyway?

The opam package is named opam-0install which means it's capable of being invoked as a plugin (i.e. as opam 0install with opam automatically delegating the command line to it) and we (opam) had a bug report with it being used that way, so I assumed it intended to be used as a plugin?
There may be errors in assumption at any stage of this!

I was following a regression related to https://github.com/ocaml/opam/issues/4554 - the command shown in there doesn't work in opam 2.1 because opam 2.1 is more pernickety about the plugin flag being specified than opam 2.0.


pageBeforeSend(req) simultaneously gets called in all modules which have inherited apostrophe-pieces-pages

For example there are two modules that extend apostrophe-pieces-pages. As follows:
modules/lib/articles/index.js
module.exports = {
    extend: 'apostrophe-pieces'
    ...
}

modules/lib/articles-pages/index.js
module.exports = {
    extend: 'apostrophe-pieces-pages',
    perPage: 3,
    ....
   construct: function (self, options) {
   var superPageBeforeSend = self.pageBeforeSend;
        self.pageBeforeSend = function(req){
             var pieces = req.data.pieces;
             if(!pieces)
                return superPageBeforeSend(req);
             console.log(pieces) //this also shows profile pieces
        }
}

modules/lib/profiles/index.js
module.exports = {
    extend: 'apostrophe-pieces'
    ...
}

modules/lib/profiles-pages/index.js
module.exports = {
    extend: 'apostrophe-pieces-pages',
    perPage: 3,
    ....
   construct: function (self, options) {
   var superPageBeforeSend = self.pageBeforeSend;
        self.pageBeforeSend = function(req){
             var pieces = req.data.pieces;
             if(!pieces)
                return superPageBeforeSend(req);
             console.log(pieces) //this also shows article pieces
        }
}

So how I know the idea of having Moog type is to isolate the modules from each other, whereas in this case they share the same function.

Hi Karlen,
pageBeforeSend is a method which is invoked on every module that has one, every time a page is rendered. You can see documentation to this effect in the explanation of the method for various modules. This actually has nothing to do with subclassing apostrophe-pieces-pages. It happens because the sendPage method invokes callAll:
      return self.apos.callAll('pageBeforeSend', req, function(err) { ... }

This is intentionally done to give every interested module a chance to load resources just before a page is rendered and optionally attach them to req.data for use by templates.
It is therefore your responsibility when implementing this method to make sure this particular request is relevant to your module, for instance by checking that req.page exists and req.page.type is what you are looking for.


Django 3.1 admin panel fixes: main block and form action parameter

https://github.com/feincms/feincms/issues/689
Merge once ready; quick manual testing for django3.1 has been done but not for all other supported versions. Hope it's fine.

I guess tests fails are not related to the PR itself but more to some flake8 rules upgrade

Yes, looks like it. Thanks!


Improvements

Hey can you merge the changes that pedro-dro made? There are some fixes and nice improvements there such as:

Added "ignore_demos" option in 'settings.json' . All titles with field "isDemo" set to true in "titles.json" are ignored
Added "blacklist.json" support. If present, all titles/dlc in this file are ignored. Ideal to avoid those games you'll never want in your list. Fields -> "Id" (mandatory), "Name", "Region", "Reason"
Added "whitelist.json" support. If present, all content included in this file is always listed. Ideal to add cart only games, homebrew or to redefine an already existing title listed in 'titles.json'. File struct the same 'titles.json' but only ID is mandator
Added TITLEID, REGION and TYPE filter to "LIBRARY" tab
Added TITLEID and REGION filter to "MISSING GAMES" tab
Added TITLEID filter to "MISSING DLC" tab
Added direct access to file update if exists. Just press CONTROL key on keyboard and then click on UPDATE or VERSION value
New export method in MISSING DLC tab. Now creates a row for every missing dlc. The old method is also kept but has been renamed to "export to CSV (compact)"

The filters are great to have! However I wish they could be smarter. Ex: for the game ‘’Super Mario 3D World’’ if you write ‘mario world’ on the filter it will not pick up anything but if you write ‘3d world’ it will show.
The dates on the MISSING GAMES tab needs a fix because they are displayed without spaces between the numbers (unlike the dates on the MISSSING UPDATES tab) making it a bit confusing to read.
Also I don't know if you can add 2 COLUMNS in MISSING GAMES for #number of DLCs available (if any) plus if it has an update available (y/n).
The library is also missing a release date column.
In addition having some extra COLUMNS would be nice:
-Languages
-Publisher
-Developer
-Genre
-Size
-Firmware
-Description of the game (because this can be long, perhaps make it a popup when clicked with screenshots and everything)
Could also add the ability to enlarge the current thumbnails.
I know that all this data can be retrieval because good old NSC_BUILDER does it when scanning the games i think.
Finally can we have a dark mode ?

all these changes are to much for one issue and would need to be broken down in one issue per requested change, but i'll answer some of the things here and then keep it up for a while before i close this issue, but separate issues will be created when working on something from this list

Hey can you merge the changes that pedro-dro made? There are some fixes and nice improvements there such as

are all of them relevant? if you know your way around code, you are more then welcome to lift some of the changes over as a PR

The filters are great to have! However I wish they could be smarter. Ex: for the game ‘’Super Mario 3D World’’ if you write ‘mario world’ on the filter it will not pick up anything but if you write ‘3d world’ it will show.

this is based on a already existing component and i'm not sure this is possible without a lot of changes

Also I don't know if you can add 2 COLUMNS in MISSING GAMES for #number of DLCs available (if any) plus if it has an update available (y/n)

the data is there, just not sure if it would performance wise to make this lookup for all games, as there are a lot of them in this list, but i might be able to look into it to see if its possible

In addition having some extra COLUMNS would be nice

yes, as you stated, all of these fields would be to much to have in the table, so a popup seems like a more real solution for this

Finally can we have a dark mode

the app wasnt really prepared for this functionallity, so it is possible, but will require some work to have working

Unfortunately i'm no coder.
btw should i create a new issue for each request in here or you add to the todo list what you can implement?

that would be optimal, yes
to keep track of code mapped to discussions they need to be as separate issues
otherwise i will create new issues when i start working on them
but keeping them separate will help me not forget items and it will also help others to see what is already requested or are known issues, both for normal users and other developers to let them show whats available to work with if they would like to help

created some new issues from this, so closing this one now


Wish: table of notations and symbols

Your book does seem to use standard notation and symbols, so I'm not having trouble.
However, for utter newbies, it will be harder going for them without a table of notations and symbols used in your book.

Yes I can add this to the next release. (I wrote one a while ago, but excluded it, since I didn't think it was necessary - I guess not...)

Yes I can add this to the next release. (I wrote one a while ago, but excluded it, since I didn't think it was necessary - I guess not...)

just uploaded 2021-01-06 release which has notation chapter in appendix

just uploaded 2021-01-06 release which has notation chapter in appendix


DBAAS 157 set operator version dynamically in d baa s dynamic console plugin

Fetch and parse operator name and version from CSV
JIra: https://issues.redhat.com/browse/DBAAS-157

not sure but I am still seeing the same issue

@redhatHameed Did you pull the latest change, and rebuild the image? Looks like the latest commit is not there

@jeremyary can we merge this if you don't have any further comments thanks


ci: Replace Travis with GH Actions

@wang-boyu @rht  this is ready to merge, so that we can have a functioning CI ASAP. We can fix the flake8 and Black errors in a separate PR.

I don't have the access to merge, but yeah it looks good to me too.


AssertionError when using VGG-net-16

Hi
I created a custom network and used the VGG-net-16 layers...
Digits says "AssertionError: must specify a loss layer" and bails out...

Do you need to upgrade your prototxt? See https://github.com/NVIDIA/DIGITS/issues/39.

@jmozah, did you solve your problem? I'm closing this issue. Please re-open it if you have more questions.


Cert Manager running on different ip as the requested site

Hi,
my cert-manager running in dmz and his public ip is x.x.x.212, now I'll create an certificate for a site, that dns name pointed to ip x.x.x.219.
Both ips will be redirected through the firewall to the ingress controll of my k8s cluster.
If I change the ip of the site to the same ip as ingress controlle, than working this without any problem.
The question is - It is possible??
I get now the error "E1119 13:52:26.434941       1 controller.go:180] certificates controller: Re-queuing item "dmz/gitlab.extern" due to error processing: http-01 self check failed for domain "gitlab-test.extern"
My cert config:
apiVersion: certmanager.k8s.io/v1alpha1
kind: Certificate
metadata:
  name: gitlab.gitlab.external
  namespace: dmz
spec:
  secretName: gitlab.external-https
  dnsNames:
  - gitlab-test.external
  acme:
    config:
    - http01:
        ingressClass: dmz
        #ingress: gitlab.external
      domains:
      - gitlab-test.external
  issuerRef:
    name: letsencrypt-prod
    kind: Issuer

and the error in cert-manager
I1119 13:49:24.929050       1 sync.go:276] Error preparing issuer for certificate dmz/gitlab.external: http-01 self check failed for domain "gitlab-test.external"
I1119 13:49:24.929334       1 sync.go:206] Certificate dmz/gitlab.external scheduled for renewal in 1400 hours

This is expected - cert-manager will perform the HTTP01 self check by querying the public address of your ingress.
I'm going to close this as there's not a specific feature request here. Feel free to re-open a new issue with details on the behaviour you'd expect/like if you feel this isn't sufficient 😄

I think I'm stuck on something similar. I'm trying to set up cert-manager on a cluster which already has a running ingress. cert-manager creates a new ingress for each of the domains I'm trying to get a certificate for, but they're all assigned new public IP addresses.
How can I keep my current ingress (and its public IP) but have cert-manager handle the HTTP01 challenges to /.well-known/*?


Remove rejectUnauthorized:false from download flags

This should resolve https://github.com/sass/node-sass/issues/3067 rejectUnauthorized: false was added in https://github.com/sass/node-sass/pull/567
It would seem more important to resolve the CVE-2020-24025 than to support misconfigured enterprise proxies.

I'd be OK with dropping this, but I think we need some sort of documentation or environment variable opt-in.
I'm not sure if https://stackoverflow.com/questions/35633829/node-js-error-process-env-node-tls-reject-unauthorized-what-does-this-mean covers off the same behaviour, or if a documented NODE_SASS_REJECT_UNAUTHORIZED makes more sense

Thanks for looking at this.
If the libsass opinion is to have it on a switch, I would like to respectfully disagree. HTTP support is absolutely the expected behaviour by end users, and this CVE has prompted us to reevaluate our use of node-sass.
I would personally be in favour of suggesting users download libsass themselves if it cannot be done safely over https- I don't think the documentation would benefit from detail here. I would be more than happy to add something to this effect to TROUBLESHOOTING.md.

How to set one's own custom trusted root certificate instead for poor folks behind SSL intercepting corporate proxies?

As described, they can provide the binary themselves.

The linked SO post suggest NODE_TLS_REJECT_UNAUTHORIZED = "0" npm install node-sass would have the current behaviour. If this can be confirmed then we can ship this with that tip to the troubleshooting guide.

I would prefer if that message were provided by the team, as I don't feel comfortable recommending that users disable HTTPS.

I would prefer if that message were provided by the team, as I don't feel comfortable recommending that users disable HTTPS.

What exactly happens with this pull request if going through, say, SSL-intercepting proxy? What message the users will get? We have to work from there.

Sorry but I have no way of testing this.


Error when creating ES6 functions

Hi. I am writing functions inside the component class in my react js project. when I write like this function:
  saySomething = (something) => {     console.log(something);   }
an error occurs.

What should I do?
Thank you.

Do we have any updates on this? Is there a work around?


ErrorReport is missing getAppVersionName that was in CrashDetails in HockeyApp

With HockeyApp, for our own analytics, we used CrashDetails.getAppVersionName() to discern the version that crashed when an update is released to our App, and user crashed in the previous release. Is there any way to know which version generated the report in AppCenter?

i see it in getDevice

Yep, you can find it here for exampe:
https://github.com/microsoft/appcenter-sdk-apple/blob/bdbc01cb8607a57fcf2d8d0abbfd731f99db4fcb/AppCenter/AppCenter/Model/MSDevice.h#L68


SUGGESTION: Player Status

Is your feature request related to a problem? Please describe.
It's always really tedious having to constantly message friends to organize group activities.
Describe the solution you'd like
Have the ability to hover over a friend's username on the friends list and see a status that they've set. Much like the ones you'd find on discord. E.g. "LFG (looking for group) ToB / Nex. Could be used for a range of things. A way to advertise yourself and your current interests. It would promote socializing between players more.
Describe alternatives you've considered
None
Additional context
Add any other context or screenshots about the feature request here.

This would require some sort of server data storage for arbitrary data, we're not interested in hosting such a service. We recommend using Discord or some external service for this.


perf: use cpu cores more efficently

Made adjustments to number of threads created. Vitest now uses more threads by default.
Implementation is just like in Jest:

In single run mode, this defaults to the number of the cores available on your machine minus one for the main thread. In watch mode, this defaults to half of the available cores on your machine to ensure Jest is unobtrusive and does not grind your machine to a halt.

minThreads is the same as maxThreads for now because of https://github.com/Aslemammad/tinypool/issues/23. This will cause a really small slowdown if number of test files is less than number of CPU cores. When Tinypool is fixed to better handle minThreads and maxThreads in isolate mode minThreads can be adjusted.
This improved performance of https://github.com/EvHaus/jest-vs-jasmine tests suite by 30% on my machine (16 cores)

What Ive observed with Jest is that using --maxWorkers=50% gives quite faster test run, than using all cores - 1. I've tried various numbers and half the cores seem to give a fastest test run for me.
Might worth trying. Maybe vitest has similar sweet spot somewhere lower than CPU cores - 1.


How to run node-inspector along with nodemon to enable live reload?

Doesn't work in my Windows 10 Pro 64. Do you have any standard default way of integration?
node-inspector is running ok, but doesn't display anything in Devtool. A screenshot:

My steps how I start them both:

At first I start node-inspector in a separate terminal window:

$ node-inspector
Node Inspector v0.12.8
Visit http://<IP_ADDRESS>:8088/?port=5859 to start debugging.

Then I start nodemon with --debug option in a separate terminal window:

$ nodemon --debug index.js
[nodemon] 1.9.1
[nodemon] reading config C:\Users\user\app\nodemon.json
[nodemon] to restart at any time, enter `rs`
[nodemon] ignoring: .git .nyc_output .sass-cache bower_components coverage C:\Users\user\app\node_modules/**/* routes/___*.js routes/___*.html
[nodemon] watching: *.*
[nodemon] watching extensions: js,dust,html,css,scss,rb,json,htpasswd
[nodemon] starting `node --debug index.js`
[nodemon] child pid: 11008
[nodemon] watching 3 files
Debugger listening on [::]:5858

Then I open UI for node-inspector in Chrome http://<IP_ADDRESS>:8088/?port=5859.
And there is nothing in Chrome console. Devtools are empty, see a screenshot above.

My config for nodemon:
{
    "restartable": "rs",
    "verbose": true,
    "env": {
        "NODE_ENV": "development",
        "DEBUG": "app:*"
    },
    "ignore": ["routes/___*.js", "routes/___*.html"],
    "debug": true,
    "ext": "js dust html css scss rb json"
}

Config for node-inspector:
{
    "debug-port": 5859,
    "web-port": 8088,
    "debug-brk": true,
    "save-live-edit": true,
    "preload": false,
    "hidden": ["\\test\\.js$", "node_modules\\"]
}

Solved it

@wzup How did you get this working? About to try to dockerize the same situation and can use all the help I can get.  Any tips / suggestions are much appreciated.

@wzup how did you solve it?


Fix: esm and upgrade issues

esm importing issues in .js files
subst does not exist
go-ipfs requires postinstall step
upgrade packages from rc
remove codec as it already exists

Removed debugging and added issue for dockerfile arch detection https://linear.app/3boxlabs/issue/PLAT-959/dockerfile-for-integration-tests-hardcodes-arch-of-the-container

Ok, addressed all comments, merging on Steph's verbal approval above!  @stephhuynh18 I think I invited you to this project but you aren't able to review?


Formatting according to Prettier

Format Test failed so I used prettier in VsCode to format the file.
I took the opportunity to change a subitem of place

@clemlesne I think there may be a step missing in the pipeline, e.g. prettier --write.
Is that right?

In the Develop branch there is a possible solution for this

Oh thanks! I missed it. I quickly pushed the change at: db7622475e15177af9a1c1fc178adf222dcaf465.
For after, you can use make lint to fix the code quality :)