peripheral.id is different based on OS

I'm running a simple discovery on both my OSX Sierra and my Raspberry PI 3 with the following code (node 6.4.0 on both, tried also 7.2.0):
var noble = require('noble');

noble.on('stateChange', function(state) {
  if (state === 'poweredOn') {
    noble.startScanning();
  } else {
    noble.stopScanning();
  }
});

noble.on('discover', function(peripheral) {
  console.log(peripheral.id, peripheral.advertisement);
  return;
});

For a particular device I am interested in, on OSX I get:
779fbc01ffe54d80b0422e1270cd8851 { localName: 'DreamScreen',

And on RI3:
d0b5c2c27ac3 { localName: 'DreamScreen',

This also affects the direct discovery mechanic. The ID of the device is 0000ff60-0000-1000-8000-00805f9b34fb. Discovering directly with noble.startScanning(['0000ff60-0000-1000-8000-00805f9b34fb']) works on OSX but not on RI3

The id differences are expected, CoreBluetooth/blued creates a per machine unique id on OS X. On Linux the BT address without colons is used for the id.
As for the start scanning issue, it's possible a duplicate of #331 - can you try again but remove the dashes from the UUID?

i did try both formats, still didn't manage to connect on the raspberry pi (i'm assuming you mean without dashes). there it seems is more a matter of the ID being a lot smaller on linux that OSX
also worth mentioning the ID matches the one specified by the device vendor on osx

@smirea please provide an HCI dump capture from the Raspberry Pi: sudo hcidump -t -x

Closing this for now due to lack of activity.


Obscure h5netcdf http serialization issue with python's http.server

What is your issue?
In Pangeo Forge, we try to test our ability to read data over http. This often surfaces edge cases involving xarray and fsspec. This is one such edge case. However, it is kind of important, because it affects our ability to reliably test http-based datasets using python's built-in http server.
Here is some code that:

Creates a tiny dataset on disk
Serves it over http via python -m http.server
Opens the dataset with fsspec and xarray with the h5netcdf engine
Pickles the dataset, loads it, and calls .load() to load the data into memory

As you can see, this works with a local file, but not with the http file, with h5py raising a checksum-related error.
import fsspec
import xarray as xr
from pickle import dumps, loads

ds_orig = xr.tutorial.load_dataset('tiny')
ds_orig

fname = 'tiny.nc'
ds_orig.to_netcdf(fname, engine='netcdf4')

# now start an http server in a terminal in the same working directory
# $ python -m http.server

def open_pickle_and_reload(path):
    with fsspec.open(path, mode='rb') as fp:
        with xr.open_dataset(fp, engine='h5netcdf') as ds1:
            pass

    # pickle it and reload it
    ds2 = loads(dumps(ds1))
    ds2.load()

open_pickle_and_reload(fname) # works
url = f'http://<IP_ADDRESS>:8000/{fname}'
open_pickle_and_reload(url) # OSError: Unable to open file (incorrect metadata checksum after all read attempts)

full traceback
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
~/Code/xarray/xarray/backends/file_manager.py in _acquire_with_cache_info(self, needs_lock)
    198             try:
--> 199                 file = self._cache[self._key]
    200             except KeyError:

~/Code/xarray/xarray/backends/lru_cache.py in __getitem__(self, key)
     52         with self._lock:
---> 53             value = self._cache[key]
     54             self._cache.move_to_end(key)

KeyError: [<class 'h5netcdf.core.File'>, (<File-like object HTTPFileSystem, http://<IP_ADDRESS>:8000/tiny.nc>,), 'r', (('decode_vlen_strings', True), ('invalid_netcdf', None))]

During handling of the above exception, another exception occurred:

OSError                                   Traceback (most recent call last)
<ipython-input-2-195ac3fcdb43> in <module>
     24 open_pickle_and_reload(fname) # works
     25 url = f'[http://<IP_ADDRESS>:8000/{fname}'](http://<IP_ADDRESS>:8000/%7Bfname%7D'%3C/span%3E)
---> 26 open_pickle_and_reload(url) # OSError: Unable to open file (incorrect metadata checksum after all read attempts)

<ipython-input-2-195ac3fcdb43> in open_pickle_and_reload(path)
     20     # pickle it and reload it
     21     ds2 = loads(dumps(ds1))
---> 22     ds2.load() # works
     23
     24 open_pickle_and_reload(fname) # works

~/Code/xarray/xarray/core/dataset.py in load(self, **kwargs)
    687         for k, v in self.variables.items():
    688             if k not in lazy_data:
--> 689                 v.load()
    690
    691         return self

~/Code/xarray/xarray/core/variable.py in load(self, **kwargs)
    442             self._data = as_compatible_data(self._data.compute(**kwargs))
    443         elif not is_duck_array(self._data):
--> 444             self._data = np.asarray(self._data)
    445         return self
    446

~/Code/xarray/xarray/core/indexing.py in __array__(self, dtype)
    654
    655     def __array__(self, dtype=None):
--> 656         self._ensure_cached()
    657         return np.asarray(self.array, dtype=dtype)
    658

~/Code/xarray/xarray/core/indexing.py in _ensure_cached(self)
    651     def _ensure_cached(self):
    652         if not isinstance(self.array, NumpyIndexingAdapter):
--> 653             self.array = NumpyIndexingAdapter(np.asarray(self.array))
    654
    655     def __array__(self, dtype=None):

~/Code/xarray/xarray/core/indexing.py in __array__(self, dtype)
    624
    625     def __array__(self, dtype=None):
--> 626         return np.asarray(self.array, dtype=dtype)
    627
    628     def __getitem__(self, key):

~/Code/xarray/xarray/core/indexing.py in __array__(self, dtype)
    525     def __array__(self, dtype=None):
    526         array = as_indexable(self.array)
--> 527         return np.asarray(array[self.key], dtype=None)
    528
    529     def transpose(self, order):

~/Code/xarray/xarray/backends/h5netcdf_.py in __getitem__(self, key)
     49
     50     def __getitem__(self, key):
---> 51         return indexing.explicit_indexing_adapter(
     52             key, self.shape, indexing.IndexingSupport.OUTER_1VECTOR, self._getitem
     53         )

~/Code/xarray/xarray/core/indexing.py in explicit_indexing_adapter(key, shape, indexing_support, raw_indexing_method)
    814     """
    815     raw_key, numpy_indices = decompose_indexer(key, shape, indexing_support)
--> 816     result = raw_indexing_method(raw_key.tuple)
    817     if numpy_indices.tuple:
    818         # index the loaded np.ndarray

~/Code/xarray/xarray/backends/h5netcdf_.py in _getitem(self, key)
     58         key = tuple(list(k) if isinstance(k, np.ndarray) else k for k in key)
     59         with self.datastore.lock:
---> 60             array = self.get_array(needs_lock=False)
     61             return array[key]
     62

~/Code/xarray/xarray/backends/h5netcdf_.py in get_array(self, needs_lock)
     45 class H5NetCDFArrayWrapper(BaseNetCDF4Array):
     46     def get_array(self, needs_lock=True):
---> 47         ds = self.datastore._acquire(needs_lock)
     48         return ds.variables[self.variable_name]
     49

~/Code/xarray/xarray/backends/h5netcdf_.py in _acquire(self, needs_lock)
    180
    181     def _acquire(self, needs_lock=True):
--> 182         with self._manager.acquire_context(needs_lock) as root:
    183             ds = _nc4_require_group(
    184                 root, self._group, self._mode, create_group=_h5netcdf_create_group

/opt/miniconda3/envs/pangeo-forge-recipes/lib/python3.9/contextlib.py in __enter__(self)
    117         del self.args, self.kwds, self.func
    118         try:
--> 119             return next(self.gen)
    120         except StopIteration:
    121             raise RuntimeError("generator didn't yield") from None

~/Code/xarray/xarray/backends/file_manager.py in acquire_context(self, needs_lock)
    185     def acquire_context(self, needs_lock=True):
    186         """Context manager for acquiring a file."""
--> 187         file, cached = self._acquire_with_cache_info(needs_lock)
    188         try:
    189             yield file

~/Code/xarray/xarray/backends/file_manager.py in _acquire_with_cache_info(self, needs_lock)
    203                     kwargs = kwargs.copy()
    204                     kwargs["mode"] = self._mode
--> 205                 file = self._opener(*self._args, **kwargs)
    206                 if self._mode == "w":
    207                     # ensure file doesn't get overridden when opened again

/opt/miniconda3/envs/pangeo-forge-recipes/lib/python3.9/site-packages/h5netcdf/core.py in __init__(self, path, mode, invalid_netcdf, phony_dims, **kwargs)
    719                 else:
    720                     self._preexisting_file = mode in {"r", "r+", "a"}
--> 721                     self._h5file = h5py.File(path, mode, **kwargs)
    722         except Exception:
    723             self._closed = True

/opt/miniconda3/envs/pangeo-forge-recipes/lib/python3.9/site-packages/h5py/_hl/files.py in __init__(self, name, mode, driver, libver, userblock_size, swmr, rdcc_nslots, rdcc_nbytes, rdcc_w0, track_order, fs_strategy, fs_persist, fs_threshold, fs_page_size, page_buf_size, min_meta_keep, min_raw_keep, locking, **kwds)
    505                                  fs_persist=fs_persist, fs_threshold=fs_threshold,
    506                                  fs_page_size=fs_page_size)
--> 507                 fid = make_fid(name, mode, userblock_size, fapl, fcpl, swmr=swmr)
    508
    509             if isinstance(libver, tuple):

/opt/miniconda3/envs/pangeo-forge-recipes/lib/python3.9/site-packages/h5py/_hl/files.py in make_fid(name, mode, userblock_size, fapl, fcpl, swmr)
    218         if swmr and swmr_support:
    219             flags |= h5f.ACC_SWMR_READ
--> 220         fid = h5f.open(name, flags, fapl=fapl)
    221     elif mode == 'r+':
    222         fid = h5f.open(name, h5f.ACC_RDWR, fapl=fapl)

h5py/_objects.pyx in h5py._objects.with_phil.wrapper()

h5py/_objects.pyx in h5py._objects.with_phil.wrapper()

h5py/h5f.pyx in h5py.h5f.open()

OSError: Unable to open file (incorrect metadata checksum after all read attempts)
(external_url)

Strangely, a similar workflow does work with http files hosted elsewhere, e.g.
external_url = 'https://power-datastore.s3.amazonaws.com/v9/climatology/power_901_rolling_zones_utc.nc'
open_pickle_and_reload(external_url)

This suggests there is something peculiar about python's http.server as compared to other http servers that makes this break.
I would appreciate any thoughts or ideas about what might be going on here (pinging @martindurant and @shoyer)
xref:

https://github.com/pangeo-forge/pangeo-forge-recipes/pull/373
https://github.com/pydata/xarray/issues/4242
https://github.com/google/xarray-beam/issues/49

Python's HTTP server does not normally provide content lengths without some extra work, that might be the difference.

The http.server apparently does not accept range requests. That could well related. However, I don't understand why that would affect only the pickled version. If the server doesn't support range requests, how are we able to load the file at all? But this works:
with fsspec.open('http://<IP_ADDRESS>:8000/tiny.nc', mode='rb') as fp:
    with xr.open_dataset(fp, engine='h5netcdf') as ds1:
        ds1.load()

Can you please explicitly check the type and __dict__ of fp?

with fsspec.open('http://<IP_ADDRESS>:8000/tiny.nc', mode='rb') as fp:
    with xr.open_dataset(fp, engine='h5netcdf') as ds1:
        print(type(fp))
        print(fp.__dict__)
        ds1.load()

<class 'fsspec.implementations.http.HTTPFile'>
{'asynchronous': False, 'url': 'http://<IP_ADDRESS>:8000/tiny.nc', 'session': <aiohttp.client.ClientSession object at 0x18bcdddc0>, '_details': {'name': 'http://<IP_ADDRESS>:8000/tiny.nc', 'size': 6164, 'type': 'file'}, 'size': 6164, 'path': 'http://<IP_ADDRESS>:8000/tiny.nc', 'fs': <fsspec.implementations.http.HTTPFileSystem object at 0x110059dc0>, 'mode': 'rb', 'blocksize': 5242880, 'loc': 1075, 'autocommit': True, 'end': None, 'start': None, '_closed': False, 'kwargs': {}, 'cache': <fsspec.caching.BytesCache object at 0x18eda16d0>, 'loop': <_UnixSelectorEventLoop running=True closed=False debug=False>}

Following up on the suggestion from @shoyer in to not use a context manager, if I redefine my function as
def open_pickle_and_reload(path):
    of = fsspec.open(path, mode='rb').open()
    ds1 = xr.open_dataset(of, engine='h5netcdf')

    # pickle it and reload it
    ds2 = loads(dumps(ds1))
    ds2.load()

...it appears to work fine.


Rpi2 1.2 2.x

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

connect https://github.com/resin-os/meta-resin/issues/519


hello-dotnetbot is not for Windows

Which lab is it that you're having issues with?
https://github.com/docker/labs/tree/master/windows/hello-dotnetbot
Description
This tutorial is in the Windows category, so I expected it would run on Windows.
But it does not work on Windows, so it should have more details in the README.
Steps to reproduce the issue, if relevant:

docker build -t dotnetbot .

Describe the results you received:
PS C:\projects\labs\windows\hello-dotnetbot> docker build -t dotnetbot .
Sending build context to Docker daemon 8.192 kB
Step 1/7 : FROM microsoft/dotnet:latest
latest: Pulling from microsoft/dotnet
image operating system "linux" cannot be used on this platform

Describe the results you expected:
I expected stuff in the windows folder to run on Windows. I think this should be moved or at least the README should be better.
Additional environment details (AWS, Docker for Mac, Docker for Windows, VirtualBox, physical, etc.):
Windows Server 2016 in VirtualBox.

@sixeyed @spara please determine if we should be preserving this lab and if so where to put it

I think we should remove it.


🐛 Bug Report: Validation Failed when adding a team collaborator - action: publish:github

📜 Description
I'm very new to backstage :(.
Publishing a private github repo, I'm getting a Validation Failed error when team collaborators are trying to be added to the repo:
warn: Skipping Admin access for myOrg/admins_all_dg, Validation Failed
warn: Skipping Read access for myOrg/archts_all_dg, Validation Failed

The Team format is: githubOrg/githubTeam
Here is the code block:
- id: publish-k8s-d
      if: ${{ parameters.k8s and parameters.apptype === "d" }}
      name: Publish K8s (d) Type.
      action: publish:github
      input:
        allowedHosts: ['github.company.net']
        description: This is ${{ parameters.name }}
        repoUrl: ${{ parameters.ghHost }}?owner=${{ parameters.org }}&repo=iscp-${{ parameters.apptype }}-${{ parameters.name }}-k8s-tmpl
        requireCodeOwnerReviews: true
        defaultBranch: main
        gitCommitMessage: "Template created by backstage"
        gitAuthorName: "myself"
        allowMergeCommit: true
        allowSquashMerge: true
        repoVisibility: private
        requiredApprovingReviewCount: 1
        protectDefaultBranch: true
        collaborators:
          - team: "${{ parameters.org }}/admins_all_dg"
            access: Admin
          - team: "${{ parameters.org }}/archts_all_dg"
            access: Read
          - team: "${{ parameters.org }}/devops_all_dg"
            access: Read
          - team: "${{ parameters.org }}/devops_tst01"
            access: Write
          - team: "${{ parameters.org }}/obsrvs_all_dg"
            access: Read

Any clue will be appreciated :)
👍 Expected behavior
All teams specified be added as the repository collaborators.
👎 Actual Behavior with Screenshots
Publishing a private github repo, I'm getting a Validation Failed error when team collaborators are trying to be added to the repo:
warn: Skipping Admin access for myOrg/admins_all_dg, Validation Failed
warn: Skipping Read access for myOrg/archts_all_dg, Validation Failed

👟 Reproduction steps
Use this block on the Kind: Template
- id: publish-k8s-d
      if: ${{ parameters.k8s and parameters.apptype === "d" }}
      name: Publish K8s (d) Type.
      action: publish:github
      input:
        allowedHosts: ['github.company.net']
        description: This is ${{ parameters.name }}
        repoUrl: ${{ parameters.ghHost }}?owner=${{ parameters.org }}&repo=iscp-${{ parameters.apptype }}-${{ parameters.name }}-k8s-tmpl
        requireCodeOwnerReviews: true
        defaultBranch: main
        gitCommitMessage: "Template created by backstage"
        gitAuthorName: "myself"
        allowMergeCommit: true
        allowSquashMerge: true
        repoVisibility: private
        requiredApprovingReviewCount: 1
        protectDefaultBranch: true
        collaborators:
          - team: "${{ parameters.org }}/admins_all_dg"
            access: Admin
          - team: "${{ parameters.org }}/archts_all_dg"
            access: Read
          - team: "${{ parameters.org }}/devops_all_dg"
            access: Read
          - team: "${{ parameters.org }}/devops_tst01"
            access: Write
          - team: "${{ parameters.org }}/obsrvs_all_dg"
            access: Read

📃 Provide the context for the Bug.

Local environment: LOG_LEVEL=debug yarn dev
Github PAT token configured with full scope.

🖥 Your Environment
OS: WSL Ubuntu
backstage: v1.19.6
yarn run v1.22.19
$ concurrently "yarn start" "yarn start-backend"
$ yarn workspace backend start
$ yarn workspace app start
$ backstage-cli package start
$ backstage-cli package start

👀 Have you spent some time to check if this bug has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Are you willing to submit PR?
None

please, anyone ?... I can't find where this Validation Failed come from when assigning collaborator teams.

@msoranno I have a small hunch that the orgs should be prefixed with @. Can you try prefixing the input? "@${{ parameters.org }}/admins_all_dg" or something?
If that doesn't work then I suggest that we add some logging into the node_modules folder to try and get some more information about that validation failed error messages which is pretty ambiguous.

@benjdlambert Thank you very much, I will try it asap and let you know the outcome.

@msoranno I had the same issue and it was solved by using lower case letters for the collaborator role, e.g.:
access: 'admin' or access: 'maintain'.
collaborators:
          - team: "${{ parameters.org }}/admins_all_dg"
            access: 'admin'

Validation seems to fail if a first capital letter is used for the role (e.g. access: 'Admin')...

@msoranno I had the same issue and it was solved by using lower case letters for the collaborator role, e.g.: access: 'admin' or access: 'maintain'.
collaborators:
          - team: "${{ parameters.org }}/admins_all_dg"
            access: 'admin'

Validation seems to fail if a first capital letter is used for the role (e.g. access: 'Admin')...

thanks @raydenpan123 I'll try that asap.... :)

I am having a similar issue, were you able to resolve this ? I set the collaborator and team but it doesn't pick up when creating the repository.

@caglarkorkmaz did you try out some of the responses from @raydenpan123  or @msoranno?


syntax error at index.ts at line 2

I have an error index.ts at line 2.
export { ImageCropperModule } from './src/imageCropperModule';
Why???

Can you please paste the error? If everything compiles ok then this is an IDE problem and you should move the issue on their side

@cstefanache
thanks for review.
Sorry, actually I was uninstalled img-cropper...
but i want to use this.
maybe error is syntax error

Please reopen if you face this problem again


refactor: Split out Validators and Utils from Helpers to TypeScript

Summary
Split out Validators and Utils from Helpers to TypeScript. These are methods that do not require any mParticle instance so they can be split out into independent modules.
Testing Plan
Run automated and manual tests
Master Issue
Closes https://go.mparticle.com/work/SQDSDKS-4094

:tada: This PR is included in version 2.16.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


GitHub release note links are broken (404)

The links of the release notes are following this scheme: https://github.com/FriendsOfShopware/FroshTools/blob/2.4.2/628f9db
But when opening any of those links I'm taken to a GitHub 404 page.
See: https://github.com/FriendsOfShopware/FroshTools/releases

I created a PR #439 that will fix this issue. Sadly existing changelogs will not be touched by this change. I hope I was able to help anyways.


Remove wormhole dataRetrieval

Pull Request Test Coverage Report for Build 1582

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+2.6%) to 75.983%

Totals

Change from base Build 1580:
2.6%

Covered Lines:
1852

Relevant Lines:
2302

💛  - Coveralls

Pull Request Test Coverage Report for Build 1583

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+2.6%) to 75.983%

Totals

Change from base Build 1580:
2.6%

Covered Lines:
1852

Relevant Lines:
2302

💛  - Coveralls

:tada: This PR is included in version 1.14.6 :tada:
Your semantic-release bot :package::rocket:


[Bug] Return Unknown column when left join a view within multiple inner join query statement.

Search before asking

[X] I had searched in the issues and found no similar issues.

Version
doris 1.1.3-rc02
What's Wrong?
MySQL [db]> select
->      f1.k1
-> from (
->          select
->               t2.c as k1
->           from t5
->           inner join t2 on t2.x=t5.x
->           inner join t4 on t2.a=t4.a and t2.x in ('ZCR', 'ZDR')
->  ) f1
-> left join v1 on f1.k1=v1.k1;
ERROR 1054 (42S22): errCode = 2, detailMessage = Unknown column 'x' in 't5'
What You Expected?
No error and do the query.
How to Reproduce?
DROP table if exists t1;
DROP table if exists t2;
DROP table if exists t4;
DROP table if exists t5;
DROP view if exists v1;
CREATE TABLE t2 (
a varchar(1) NULL COMMENT "",
x varchar(1) NULL COMMENT "",
c varchar(1) NULL COMMENT ""
) ENGINE=OLAP
UNIQUE KEY(a)
DISTRIBUTED BY HASH(a) BUCKETS 8;
CREATE TABLE t5 (
x varchar(5) NULL COMMENT "",
d varchar(3) NULL COMMENT ""
) ENGINE=OLAP
UNIQUE KEY(x)
DISTRIBUTED BY HASH(x) BUCKETS 8;
CREATE TABLE t4 (
a varchar(1) NULL COMMENT "",
e varchar(1) NULL COMMENT ""
) ENGINE=OLAP
UNIQUE KEY(a)
DISTRIBUTED BY HASH(a) BUCKETS 8;
CREATE TABLE t1 (
k1 varchar(20) NULL COMMENT "",
dt date NULL COMMENT ""
) ENGINE=OLAP
UNIQUE KEY(k1)
DISTRIBUTED BY HASH(k1) BUCKETS 6;
CREATE VIEW v1
AS
SELECT k1
FROM t1
WHERE dt = (
SELECT max(dt)
FROM t1
);
select
f1.k1
from (
select
t2.c as k1
from t5
inner join t2 on t2.x=t5.x
inner join t4 on t2.a=t4.a and t2.x in ('ZCR', 'ZDR')
) f1
left join v1 on f1.k1=v1.k1;
Anything Else?
No response
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

mysql> select
    -> f1.k1
    -> from (
    ->
    -> select
    -> bbb.c as k1
    -> from t5 aaa
    -> left join t2 bbb on bbb.x=aaa.x
    -> left join t4  ccc on bbb.a=ccc.a and bbb.x in ('ZCR', 'ZDR')
    -> ) f1
    -> left join v1 on f1.k1=v1.k1;
Empty set (0.01 sec)

The inner join bug
Left join is normal

It can be avoided by rewriting sql first
select
f1.k1
from (
select
t2.c as k1
from t5
inner join t2 on t2.x=t5.x
inner join t4 on t2.a=t4.a WHERE t2.x in ('ZCR', 'ZDR')
) f1
left join v1 on f1.k1=v1.k1;


problem of multi_layer_feature map output shape(mobilenet ssd)

Hi,
I'm confuced about the last layers of the feature map with stride 2 and kernel size =3,and I also visualize the network with the infer_shape showed as below,How can 1X1 feature map can convolve with stride 2 and kernel size =3 ? And also the output shape is also wierd.
Thanks!!
elif network == 'mobilenet':
from_layers = ['conv_12_relu', 'conv_14_relu', '', '', '', '', '']
num_filters = [-1, -1, 512, 256, 256, 256, 256]
strides = [-1, -1, 2, 2, 2, 2, 2]
pads = [-1, -1, 1, 1, 1, 1, 1]
sizes = get_scales(min_scale=0.15, max_scale=0.9, num_layers=len(from_layers))
ratios = [[1,2,.5], [1,2,.5,3,1./3], [1,2,.5,3,1./3], [1,2,.5,3,1./3],
[1,2,.5,3,1./3], [1,2,.5], [1,2,.5]]
normalizations = -1
steps = []
return locals()

are you using large enough data shape, say 512?

Hi,
yes, I use 512, in the last two extra layers is in the same scale(1X1 feature map)
I think 1X1 feature map can convolve with stride 2 and kernel size =3 just padding 0's around feature map. However, if the scale of the feature map is the same, the anchor's map to the original image will also be the same(or similiar due to the different size,same ratio in your symbol_factory.py).
I also visualize data shape 608 ,and it is more reasonable that the feature map size is different(2X2 and 1X1)
sizes = get_scales(min_scale=0.15, max_scale=0.9, num_layers=len(from_layers))
ratios = [[1,2,.5], [1,2,.5,3,1./3], [1,2,.5,3,1./3], [1,2,.5,3,1./3], [1,2,.5,3,1./3], [1,2,.5], [1,2,.5]]
thanks!!

data shape = 512

data shape = 608


Hi! Italian Computer Science teacher here!

Hello,
I'm a Computer Science teacher at a public school in Camaiore, Lucca, Italy. I'd like to qualify for Student/Teacher licenses for Clion.
Thank you!
Francesco Volpi.

@francesco-volpi-d Pull request merged. Thank you!


rqlite 8.23.0

Thank you for wanting to submit a Pull Request to the Civo Kubernetes Marketplace repository!
If your pull request is to submit a new application to the marketplace, please answer the following questions:

[X] Have you followed the guidelines in our Contributing document in setting up the application?
[X] Have you checked that the application your submission is proposing to add does not yet exist on the Marketplace, or as a pull request to be processed?
[ ] Have you tested your application on the Civo managed Kubernetes service? Please include a screenshot.
[X] Can you confirm that the software you are submitting licensed for use in a publicly-available Kubernetes marketplace?
[X] Have you included the specific version of the application to be installed?

If your pull request concerns an existing Marketplace application, please make sure you have:

[X] Notified the Maintainer of the application in this pull request so that they are aware of your proposal.
[ ] Outlined the changes you are proposing, and the reasons these are required (e.g. stability, compatibility with new versions of Kubernetes implementations, etc).
[ ] Tested that the application works with the proposed updates applied (including a screenshot).
[X] Updated the version number of the app if that has changed.

Verified install script with new versions on a k3s v1.29.2 cluster.


Not receiving events on the main thread for an app running in the background on macOS

Hey folks,
so I've built a small GUI using druid, and it's working rather well as long as it's in the foreground or generally visible on screen. If it's not visible on the screen, however, it stops or slows down significantly in receiving events. This behaviour can be easily observed by running the druid timers example and inserting some output / logging around here.
The events I'm receiving are sent from a different thread I spawn in the beginning, and unfortunately I really need them to be sent and processed in the main thread because they trigger macOS accessibility functionality that can only be dispatched from there.
I initially expected that this is some macOS specific behaviour caused by some NS* class, but I've come up short on my search. Is this expected druid / macOS behaviour, and does anyone know if it can be fixed?

Interesting, I do not have any idea what's going on here. I would not expect this behaviour for a cocoa application, and I suspect we're doing something funky when we get sent into the background, but I'm really not sure.
I would maybe start out by just verifying that if you make a simple dummy cocoa app timers continue to work as expected when that app is in the background, and then we can try to dig into what's going on here?

Interesting, I do not have any idea what's going on here. I would not expect this behaviour for a cocoa application, and I suspect we're doing something funky when we get sent into the background, but I'm really not sure.
I would maybe start out by just verifying that if you make a simple dummy cocoa app timers continue to work as expected when that app is in the background, and then we can try to dig into what's going on here?

Sounds good, I'll go ahead with that and report back. Just wanted to make sure that I'm not missing something really obvious first :D

Sounds good, I'll go ahead with that and report back. Just wanted to make sure that I'm not missing something really obvious first :D

After creating an Objective-C project in Xcode and adding the following to the AppDelegate, I can indeed confirm that appears to be expected behaviour in macOS when creating an NSTimer:
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
    [NSTimer scheduledTimerWithTimeInterval:0.1
        target:self
        selector:@selector(targetMethod)
        userInfo:nil
        repeats:YES];
}

-(void)targetMethod {
    NSLog(@"tick tock");
}

Reading this question on StackOverflow it seems like this is expected behaviour. One of the answers suggests a workaround, though for iOS so I'm not sure if it'd be applicable (or desirable) on macOS. I also haven't examined Windows or Linux, but I'm assuming they're not exhibiting similar behaviour?

After creating an Objective-C project in Xcode and adding the following to the AppDelegate, I can indeed confirm that appears to be expected behaviour in macOS when creating an NSTimer:
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
    [NSTimer scheduledTimerWithTimeInterval:0.1
        target:self
        selector:@selector(targetMethod)
        userInfo:nil
        repeats:YES];
}

-(void)targetMethod {
    NSLog(@"tick tock");
}

Reading this question on StackOverflow it seems like this is expected behaviour. One of the answers suggests a workaround, though for iOS so I'm not sure if it'd be applicable (or desirable) on macOS. I also haven't examined Windows or Linux, but I'm assuming they're not exhibiting similar behaviour?

this shouldn't be hard, you should be able to use the use the objc-rs msg_send! macro directly here, there's lots of examples of calling into cocoa/objc in druid-shell/platform/src/mac and in the piet repo's mac backend as well.

this shouldn't be hard, you should be able to use the use the objc-rs msg_send! macro directly here, there's lots of examples of calling into cocoa/objc in druid-shell/platform/src/mac and in the piet repo's mac backend as well.

It took some fiddling but in the end I arrived at a solution that seems to work, and is essentially a copy of what this author did.
I wrapped this into a crate for convenient usage: macos-app-nap.
Since this is not a druid related problem I suppose this issue can be closed 🤔

It took some fiddling but in the end I arrived at a solution that seems to work, and is essentially a copy of what this author did.
I wrapped this into a crate for convenient usage: macos-app-nap.
Since this is not a druid related problem I suppose this issue can be closed 🤔

Glad you sorted this out, and it will be good to know for next time. :)

Glad you sorted this out, and it will be good to know for next time. :)


[Angular] Model Manager Service inclusion unncessary

https://github.com/adobe/aem-spa-project-archetype/blob/4ce2eaa02d49cedef6e68a29a5f613360862d9a0/src/main/resources/archetype-resources/angular-app/src/app/components/model-manager.service.ts#L21
It is unclear why the ModelManagerService is included - it does not appear useful or necessary.
As a general rule, any code included that isn't self-documenting should be well documented in the comments.

The service is used in [0] to have each page pre-populated with data. We should definitively document that service as well as its usage in the MainContentComponent
[0] https://github.com/adobe/aem-spa-project-archetype/blob/master/src/main/resources/archetype-resources/angular-app/src/app/components/main-content/main-content.component.ts#L36


Option to allow forwarded ips

Hi crazy-max,
I tried the container last night and missed the option to set forwarded_allow_ips = * env variable.
The variable is necessary for me because I am using the container behind a nginx reverse proxy.
The need for this option is here documented:
https://mozilla-services.readthedocs.io/en/latest/howtos/run-sync-1.5.html
And also in the gunicorn docs:
https://github.com/benoitc/gunicorn/blob/9cf5b13f93a3ac712cbabb3b41e34eb6ec9d5eb6/docs/source/deploy.rst#nginx-configuration
What do you think about my commit?

Hi @b00bob, looks good to me except one little thing. Thanks for your contrib :)


[dxvk 1.8] Overwatch won't launch with proper dll locations

Overwatch starts in a black screen before crashing on manjaro linux 5.10. I was able to fix this by swapping the 32bit and 64bit dlls in their respective folders.

Where exactly did you put the dlls respectively?
The 64 bit dlls go into system32 and the 32 bit ones into syswow64. (Yes, very intuitive.)

Yeah, except that you're probably using wined3d now.
Instead of coming up with this syswow64 nonsense from #1942 yet again, how about you post information about your system and tell us what kind of problem you have?


[Security] Depends on vulnerable version of jsrsasign

Acme client depends on version ^10 of jsrsasign. The vulnerability was patched in version 11.0.0.
View https://github.com/advisories/GHSA-rh63-9qcf-83gf for more information.

Fixed in 1b9493d6ccfff563d356f4048b3abd68f78f77ea and published with v5.1.0.


Added Nmap

Related Issue
Closes #847

Description

Powerful network scanning tool for exploration and security auditing
Screenshots

Checklist

[x] My code adheres to the established style guidelines of the project.
[x] I have included comments in areas that may be difficult to understand.
[x] My changes have not introduced any new warnings.
[x] I have conducted a self-review of my code.

Hello, contributors! This is Jason speaking. Due to some workflow issues, we will be closing all the PRs today. Therefore, I kindly request all of you to create new PRs tomorrow, as the currently open ones will be closed by our team. I apologize for any inconvenience caused. Also, please make sure to check the titles when creating the PRs. You can refer to the README.md for more details. Thank you.


add cocoapods package

This is the PR to fix https://github.com/zeux/pugixml/issues/84

My understanding is that LICENSE file is not used - is this accurate?
It's a bit of a shame that the license exists in a lot of copies, but since it already does and you have to embed it in the spec file as well, might as well not have a LICENSE file...

When pushing podspec to cocoapods repo it validates the podspec and sources, and during that it checks if there is a license, If there  is a LICENSE file it is ok. Other approach is to embed the license right into the podspec, then it will also pass the validation even without LICENSE file.
It is preferred to have LICENSE file and not have the license embedded in podspec. The only reason  I embedded it is that for now I used 1.7 tag to package sources for cocoapods (podspec refers to 1.7 git tag) and 1.7 tag does not have the LICENSE file.
So, the embedded license should be removed from podspec when LICENSE file is merged to master and a new version tag is created.

Ok. I don't see much of a point of having another place to put the license in at the top level since it's already in two readme files and in every source file. IMO if a package manager requires a license and allows embedding it into a configuration file that's perfect.
Thanks for the PR!

For the same reason, I prefer to have one LICENSE file and no license in every source file or any other places. But no problem, if it is more convenient for you :).
Your're welcome!

Yeah, I'd very much prefer just once license boilerplate but unfortunately people have asked me before to add it verbatim to sources so that when they embed the sources in their codebase it's obvious that it's legal, it has to be in documentation and I'm not sure if documentation formats I'm using support file includes, it has to be there in the README.md since people want to know, etc. etc. :)


Support recompiling on test run

Hi there,
would it be possible to execute a pre build step before a test run?
At the moment I always have to build my binary by hand and then use neotest, but it would make my life much easier if I could specify a prebuild task via the lets say ConfigureGtest command or a new ConfigureGtestBuild command or something, which could instead execute make or something similar and then the binary on every test run.
BTW: Thank you for this awesome plugin which makes my life already so much better :)

Hey @thejezzi
I was hoping to do this as part of CMake support (so by default this hook would try to find the relevant target through CMake), but that proved to be a bit more difficult than I thought (see this issue).
I suppose as an intermediate step I can add a user hook.
Would something like recompile = function(file_path, project_root) be good enough for the time being?

I don't think this plugin should depend on CMake.
Callback should be enough. Building can be done by a task plugin e.g. overseer.
Consider adding binary as a parameter, so it could be passed to the build system to speed up building (build only the binary containing test).
Another idea would be to use compile_commands and bypass the build system altogether. Although it's probably not very wise.


DATAJDBC-256 - Run integration tests with Oracle.

An Oracle database is started in Docker using Testcontainers.
Tests that don't work yet are skipped using the TestDatabaseFeatures which allows central control, which database supports which feature.
A suitable oracle image is deployed on DockerHub as  "springci/spring-data-oracle-xe-prebuild:18.4.0".
The official Oracle docker images as described here https://github.com/oracle/docker-images/blob/master/OracleDatabase/SingleInstance/README.md are not suitable since it needs about 15min to start and also TestContainers seems to break it by trying to us it to early.
The referenced image was created based on these instructions: https://github.com/oracle/docker-images/tree/master/OracleDatabase/SingleInstance/samples/prebuiltdb
The following features don't yet work for Oracle:

Loading of date like properties.
Ids with custom names.
Array support.
Boolean properties.
BigDecimals and BigInteger is limited to what fits into Oracles NUMBER data type.
Entities that use a join during load time, i.e. with a one to one relationship.

See DATAJDBC-256.

We could make use of JdbcUtils.getResultSetValue(…) and the actual property type to delegate result value conversion to the driver

Sounds very promising.  I didn't know that method! But I'd leave that to DATAJDBC-569 and limit this PR to the just getting the very basics working as agreed before if that is ok.

@mp911de
I addressed the various comments.
I left the migration to annotation based assumptions in a separate commit.
It actually doesn't look as bad as I expected :-)
I also rebased on the current master and removed the alias for join with as since that is already resolved.
For the CI build stability I increased the maximum wait time to 5minutes for the Oracle db to start up.
Let's see if that helps or if we have to come up with something else.

That's merged and polished now.


python311Packages.fido2: 1.1.1 -> 1.1.2

Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 250400 run on x86_64-linux 1

4 packages marked as broken and skipped:

python310Packages.solo-python
python310Packages.solo-python.dist
python311Packages.solo-python
python311Packages.solo-python.dist

6 packages failed to build:

gimme-aws-creds
gimme-aws-creds.dist
python310Packages.ctap-keyring-device
python310Packages.ctap-keyring-device.dist
python311Packages.ctap-keyring-device
python311Packages.ctap-keyring-device.dist

54 packages built:

aws-adfs (python310Packages.aws-adfs)
aws-adfs.dist (python310Packages.aws-adfs.dist)
dvc (python310Packages.dvc)
dvc-with-remotes
dvc-with-remotes.dist
dvc.dist (python310Packages.dvc.dist)
gen-oath-safe
healthchecks
home-assistant-component-tests.asuswrt
onlykey-agent
onlykey-agent.dist
onlykey-cli
onlykey-cli.dist
pynitrokey
pynitrokey.dist
python310Packages.aioasuswrt
python310Packages.aioasuswrt.dist
python310Packages.asyncssh
python310Packages.asyncssh.dist
python310Packages.dvc-ssh
python310Packages.dvc-ssh.dist
python310Packages.dvclive
python310Packages.dvclive.dist
python310Packages.fido2
python310Packages.fido2.dist
python310Packages.onlykey-solo-python
python310Packages.onlykey-solo-python.dist
python310Packages.scmrepo
python310Packages.scmrepo.dist
python310Packages.sshfs
python310Packages.sshfs.dist
python311Packages.aioasuswrt
python311Packages.aioasuswrt.dist
python311Packages.asyncssh
python311Packages.asyncssh.dist
python311Packages.aws-adfs
python311Packages.aws-adfs.dist
python311Packages.dvc-ssh
python311Packages.dvc-ssh.dist
python311Packages.fido2
python311Packages.fido2.dist
python311Packages.onlykey-solo-python
python311Packages.onlykey-solo-python.dist
python311Packages.scmrepo
python311Packages.scmrepo.dist
python311Packages.sshfs
python311Packages.sshfs.dist
yubikey-manager
yubikey-manager-qt
yubikey-manager.dist
yubikey-manager4
yubikey-manager4.dist
yubioath-flutter
yubioath-flutter.debug

Result of nixpkgs-review pr 250400 run on x86_64-linux 1

4 packages marked as broken and skipped:

python310Packages.solo-python
python310Packages.solo-python.dist
python311Packages.solo-python
python311Packages.solo-python.dist

2 packages failed to build:

pynitrokey
pynitrokey.dist

58 packages built:

aws-adfs (python310Packages.aws-adfs)
aws-adfs.dist (python310Packages.aws-adfs.dist)
dvc (python310Packages.dvc)
dvc-with-remotes
dvc-with-remotes.dist
dvc.dist (python310Packages.dvc.dist)
gen-oath-safe
gimme-aws-creds
gimme-aws-creds.dist
healthchecks
home-assistant-component-tests.asuswrt
onlykey-agent
onlykey-agent.dist
onlykey-cli
onlykey-cli.dist
python310Packages.aioasuswrt
python310Packages.aioasuswrt.dist
python310Packages.asyncssh
python310Packages.asyncssh.dist
python310Packages.ctap-keyring-device
python310Packages.ctap-keyring-device.dist
python310Packages.dvc-ssh
python310Packages.dvc-ssh.dist
python310Packages.dvclive
python310Packages.dvclive.dist
python310Packages.fido2
python310Packages.fido2.dist
python310Packages.onlykey-solo-python
python310Packages.onlykey-solo-python.dist
python310Packages.scmrepo
python310Packages.scmrepo.dist
python310Packages.sshfs
python310Packages.sshfs.dist
python311Packages.aioasuswrt
python311Packages.aioasuswrt.dist
python311Packages.asyncssh
python311Packages.asyncssh.dist
python311Packages.aws-adfs
python311Packages.aws-adfs.dist
python311Packages.ctap-keyring-device
python311Packages.ctap-keyring-device.dist
python311Packages.dvc-ssh
python311Packages.dvc-ssh.dist
python311Packages.fido2
python311Packages.fido2.dist
python311Packages.onlykey-solo-python
python311Packages.onlykey-solo-python.dist
python311Packages.scmrepo
python311Packages.scmrepo.dist
python311Packages.sshfs
python311Packages.sshfs.dist
yubikey-manager
yubikey-manager-qt
yubikey-manager.dist
yubikey-manager4
yubikey-manager4.dist
yubioath-flutter
yubioath-flutter.debug

Result of nixpkgs-review pr 250400 run on x86_64-linux 1

4 packages marked as broken and skipped:

python310Packages.solo-python
python310Packages.solo-python.dist
python311Packages.solo-python
python311Packages.solo-python.dist

72 packages built:

aws-adfs (python310Packages.aws-adfs)
aws-adfs.dist (python310Packages.aws-adfs.dist)
dvc (python310Packages.dvc)
dvc-with-remotes
dvc-with-remotes.dist
dvc.dist (python310Packages.dvc.dist)
gen-oath-safe
gimme-aws-creds
gimme-aws-creds.dist
healthchecks
home-assistant-component-tests.asuswrt
onlykey-agent
onlykey-agent.dist
onlykey-cli
onlykey-cli.dist
pynitrokey
pynitrokey.dist
pyocd (python310Packages.pyocd)
pyocd.dist (python310Packages.pyocd.dist)
python310Packages.aioasuswrt
python310Packages.aioasuswrt.dist
python310Packages.asyncssh
python310Packages.asyncssh.dist
python310Packages.ctap-keyring-device
python310Packages.ctap-keyring-device.dist
python310Packages.dvc-ssh
python310Packages.dvc-ssh.dist
python310Packages.dvclive
python310Packages.dvclive.dist
python310Packages.fido2
python310Packages.fido2.dist
python310Packages.onlykey-solo-python
python310Packages.onlykey-solo-python.dist
python310Packages.pylink-square
python310Packages.pylink-square.dist
python310Packages.scmrepo
python310Packages.scmrepo.dist
python310Packages.spsdk
python310Packages.spsdk.dist
python310Packages.sshfs
python310Packages.sshfs.dist
python311Packages.aioasuswrt
python311Packages.aioasuswrt.dist
python311Packages.asyncssh
python311Packages.asyncssh.dist
python311Packages.aws-adfs
python311Packages.aws-adfs.dist
python311Packages.ctap-keyring-device
python311Packages.ctap-keyring-device.dist
python311Packages.dvc-ssh
python311Packages.dvc-ssh.dist
python311Packages.fido2
python311Packages.fido2.dist
python311Packages.onlykey-solo-python
python311Packages.onlykey-solo-python.dist
python311Packages.pylink-square
python311Packages.pylink-square.dist
python311Packages.pyocd
python311Packages.pyocd.dist
python311Packages.scmrepo
python311Packages.scmrepo.dist
python311Packages.spsdk
python311Packages.spsdk.dist
python311Packages.sshfs
python311Packages.sshfs.dist
yubikey-manager
yubikey-manager-qt
yubikey-manager.dist
yubikey-manager4
yubikey-manager4.dist
yubioath-flutter
yubioath-flutter.debug


lifted-async 0.10

lifted-async-0.10.0 is out of bounds for:

[x] async-timer-<IP_ADDRESS> (>=<IP_ADDRESS> && < 0.10). Moritz Schulte<EMAIL_ADDRESS>@mtesseract. @mtesseract. Used by: library, test-suite
[ ] hedgehog-0.5.2 (>=0.7 && < 0.10). Jacob Stanley<EMAIL_ADDRESS>@jystic. @hedgehogqa. Used by: library

Hi,
I have pushed a new version of async-timer to Hackage: https://hackage.haskell.org/package/async-timer-<IP_ADDRESS>.
Thanks!
Moritz

Fixed in hedgehog-0.5.3

https://www.stackage.org/nightly-2018-03-15/package/lifted-async-<IP_ADDRESS>


orm error after update from 0.12.1 to 0.12.2

Sails version: 0.12.2
Node version: 5.10.0
NPM version: 3.8.5
Operating system: GNU/Linux 4.4.5-1-ARCH

```
$ sails lift
info: Starting app...
debug: hookPath: /home/scippio/projects/up-time/web/node_modules/sails-auth/dist/api/hooks/auth
debug: marlinspike (auth): loading config from /home/scippio/projects/up-time/web/node_modules/sails-auth/dist/config
debug: hookPath: /home/scippio/projects/up-time/web/node_modules/sails-permissions/dist/api/hooks/permissions
debug: marlinspike (permissions): loading config from /home/scippio/projects/up-time/web/node_modules/sails-permissions/dist/config
debug: marlinspike (auth): loading Services from /home/scippio/projects/up-time/web/node_modules/sails-auth/dist/api/services...
debug: marlinspike (auth): loading Models...
debug: marlinspike (auth): loading Controllers...
debug: marlinspike (auth): loading Policies...
warn: sails.getBaseUrl() is deprecated and will be removed in Sails v1.0.  See http://sailsjs.org/documentation/reference/application/sails-getbaseurl for more info.
debug: marlinspike (permissions): loading Services from /home/scippio/projects/up-time/web/node_modules/sails-permissions/dist/api/services...
debug: marlinspike (permissions): loading Models...
debug: marlinspike (permissions): loading Controllers...
debug: marlinspike (permissions): loading Policies...
error: A hook (orm) failed to load!
error: Error: on mapping custom foreign keys: role->user. Attribute: roles does not exist on: collection: user
at JoinTables.parseAttribute (/usr/lib/node_modules/sails/node_modules/waterline-schema/lib/waterline-schema/joinTables.js:150:11)
at /usr/lib/node_modules/sails/node_modules/waterline-schema/lib/waterline-schema/joinTables.js:83:22
at Array.forEach (native)
at JoinTables.buildJoins (/usr/lib/node_modules/sails/node_modules/waterline-schema/lib/waterline-schema/joinTables.js:82:24)
at new JoinTables (/usr/lib/node_modules/sails/node_modules/waterline-schema/lib/waterline-schema/joinTables.js:40:23)
at new module.exports (/usr/lib/node_modules/sails/node_modules/waterline-schema/lib/waterline-schema.js:33:17)
at [object Object].Waterline.initialize (/usr/lib/node_modules/sails/node_modules/waterline/lib/waterline.js:104:17)
at buildWaterlineOntology (/usr/lib/node_modules/sails/node_modules/sails-hook-orm/lib/build-waterline-ontology.js:45:19)
at Array.async.auto._buildOntology (/usr/lib/node_modules/sails/node_modules/sails-hook-orm/lib/initialize.js:388:7)
at listener (/usr/lib/node_modules/sails/node_modules/sails-hook-orm/node_modules/async/lib/async.js:605:42)
at /usr/lib/node_modules/sails/node_modules/sails-hook-orm/node_modules/async/lib/async.js:544:17
at _arrayEach (/usr/lib/node_modules/sails/node_modules/sails-hook-orm/node_modules/async/lib/async.js:85:13)
at Immediate.taskComplete (/usr/lib/node_modules/sails/node_modules/sails-hook-orm/node_modules/async/lib/async.js:543:13)
at tryOnImmediate (timers.js:534:15)
at processImmediate [as _immediateCallback] (timers.js:514:5)

fixed... (making bot happy)

And... now? :D

And now? :(

+1 Same issue, after rolling back to 0.12.1 the issue disappeared

@scippio Thanks for the report.  And @bountyx, thanks for verifying on 0.12.1.
From your error stack, it looks like you're using a 3rd party module I'm not familiar with.  That module is not using any documented plugin system of Sails, so while I'm sorry for the inconvenience, I can't spend very much time looking into it since I haven't been able to replicate any similar problems using Sails by itself.
However, I did spend an hour looking into it this morning, which reveals that this plugin monkey patches models without waiting for the ORM hook to load.  This appears to have worked prior to the extrapolation of the ORM hook, but it was never the intended behavior-- the plugin should wait to register models until after the ORM hook has loaded using sails.after() (example of that here).
The extrapolation of the ORM hook, and a lot of the other work we've been doing around internal documentation, is motivated by an interest in providing documented, reliable interfaces for developers building plugins on top of Sails core.  The core events and hooks interface has been a part of Sails core since v0.9, and became officially available for use with plugins in 2015.  We recently pulled out all of the relevant internal documentation into a documentation page on sailsjs.org.  If you are interested in a core mechanism for programmatically attaching models and/or controllers to Sails apps, I'm happy to help as much as I can (please make a proposal PR and link to it from here).

Thanks for the quick response. I'm not using marlinspike and still get a similar ORM error after upgrading from 0.12.1 to 0.12.2 (downgrading also reverts the issue). Here's my stack dump --do you think this is a different issue, or still related to a third-party module?
> sails lift<EMAIL_ADDRESS>
info: Starting app...

verbose: logger hook loaded successfully.
verbose: request hook loaded successfully.
verbose: Loading the app's models and any custom adapters...
verbose: Loading app models...
verbose: Loading app adapters...
verbose: views hook loaded successfully.
verbose: Loading blueprint middleware...
verbose: blueprints hook loaded successfully.
verbose: responses hook loaded successfully.
verbose: controllers hook loaded successfully.
verbose: Loading policy modules from app...
verbose: Finished loading policy middleware logic.
verbose: policies hook loaded successfully.
verbose: services hook loaded successfully.
verbose: csrf hook loaded successfully.
verbose: cors hook loaded successfully.
verbose: i18n hook loaded successfully.
verbose: session hook loaded successfully.
verbose: Loading app Gruntfile...
verbose: Tracking new grunt child process...
verbose: grunt hook loaded successfully.
verbose: Setting default Express view engine to ejs...
verbose: http hook loaded successfully.
verbose: Preparing socket.io...
verbose: sockets hook loaded successfully.
verbose: Autoreload watching:  [ 'app/api/controllers',
  'app/api/models',
  'app/api/services',
  'app/config/locales' ]
verbose: autoreload hook loaded successfully.
verbose: Loading adapter (`sails-mongo`) from this app's `node_modules/` directory...
verbose: Starting ORM...
error: A hook (`orm`) failed to load!
verbose: Lowering sails...
verbose: Sent kill signal to child process (68641)...
verbose: Shutting down HTTP server...
verbose: HTTP server shut down successfully.
error: TypeError: Cannot convert undefined or null to object
    at hasOwnProperty (native)
    at exports.object.hasOwnProperty (app/node_modules/waterline-schema/lib/waterline-schema/utils.js:48:14)
    at Attributes.autoAttributes (app/node_modules/waterline-schema/lib/waterline-schema/attributes.js:182:8)
    at Attributes.normalize (app/node_modules/waterline-schema/lib/waterline-schema/attributes.js:72:8)
    at app/node_modules/waterline-schema/lib/waterline-schema/attributes.js:37:23
    at Array.forEach (native)
    at new Attributes (app/node_modules/waterline-schema/lib/waterline-schema/attributes.js:36:15)
    at new module.exports (app/node_modules/waterline-schema/lib/waterline-schema.js:27:17)
    at Waterline.initialize (app/node_modules/sails-hook-orm/node_modules/waterline/lib/waterline.js:104:17)
    at buildWaterlineOntology (app/node_modules/sails-hook-orm/lib/build-waterline-ontology.js:45:19)
    at Array.async.auto._buildOntology (app/node_modules/sails-hook-orm/lib/initialize.js:388:7)
    at listener (app/node_modules/sails-hook-orm/node_modules/async/lib/async.js:605:42)
    at app/node_modules/sails-hook-orm/node_modules/async/lib/async.js:544:17
    at _arrayEach (app/node_modules/sails-hook-orm/node_modules/async/lib/async.js:85:13)
    at Immediate.taskComplete (app/node_modules/sails-hook-orm/node_modules/async/lib/async.js:543:13)
    at processImmediate [as _immediateCallback] (timers.js:383:17)

P.S. I tried removing sails-hook-autoreload, no change in the behavior.

I don't know what module it is... I just have this dependencies:
  "dependencies": {
    "coffee-script ": "^1.10.0",
    "ejs": "2.3.4",
    "grunt": "0.4.5",
    "grunt-contrib-clean": "0.6.0",
    "grunt-contrib-coffee": "0.13.0",
    "grunt-contrib-concat": "0.5.1",
    "grunt-contrib-copy": "0.5.0",
    "grunt-contrib-cssmin": "0.9.0",
    "grunt-contrib-jst": "0.6.0",
    "grunt-contrib-less": "1.1.0",
    "grunt-contrib-sass": "^0.9.2",
    "grunt-contrib-uglify": "0.7.0",
    "grunt-contrib-watch": "0.5.3",
    "grunt-sails-linker": "~0.10.1",
    "grunt-sync": "0.2.4",
    "include-all": "~0.1.6",
    "rc": "1.0.1",
    "sails": "0.12.2",
    "sails-auth": "^2.1.3",
    "sails-disk": "~0.10.9",
    "sails-mysql": "^0.11.5",
    "sails-permissions": "^2.2.0"
  },

@scippio sails-auth pulls in marlinspike dependency which is doing the monkey patching @mikermcneil was mentioned. It appears that sails-auth is no longer maintained and therefore not compatible with newer versions of sails.


Game crash and spamming world seed

Client: 1.15.2 on linux using openjdk version "1.8.0_242"
mod installed: fabric-api-0.10.1+build.307-1.15, Wurst-Client-v7.1.2-MC1.15.2, seedcracker-0.1.0-beta
server 1.14.4 paper using ViaVersion
When trying to get the overworld seed with the dungeon it freeze the game and spam the logs with a bunch of world seed
latest.log
Here the complete log of that session ( most of it is a "found world seed" spam )
I have been able to reproduce it 100% of the times
Step to reproduce:

Go to nether
/seed data clear
disable every category
enable dungeon finding
go to overworld
search around for dungeon

Since the server is 1.14.4 the hashed seed will be wrong and cause the biome search to explode. And even if it didn't explode it wouldn't have worked anyway. I only support 1.15.X servers, you're on your own.


Verify Hairpin proxy scenarios

e2e tests that are failing related to hairpin connectivty
one node cluster tests fail consistently, for some of the e2e service endpoint tests

@hanamantagoudvk is digging into this

Looking at this w hanamant, hes saying that this jump is failing....
@mcluseau suggesting that this may be related to the way we are using nft fib , or the way fib itself works (docs arent clear)
/**
*
*       chain hook_nat_prerouting {
                type nat hook prerouting priority filter; policy accept;
                jump z_dnat_all
                fib daddr . iif type local jump nodeports <-- possible bug in the way were using fib/ docs arent clear  ?
		}

		chain nodeports {
                tcp dport 30358 counter packets 0 bytes 0 dnat to <IP_ADDRESS>:5678
                tcp dport 30359 counter packets 0 bytes 0 dnat to <IP_ADDRESS>:5679
        }
*
*
*/

I enabled trace on nft and see this path the packet is taking.
root@kpng-proxy-worker:/# nft monitor trace
trace id d2b90229 ip k8s_svc trace_chain packet: iif "calib3f8f4ebdf2" ether saddr 2e:dc:73:55:f1:f3 ether daddr ee:ee:ee:ee:ee:ee ip saddr <IP_ADDRESS> ip daddr <IP_ADDRESS> ip dscp cs0 ip ecn not-ect ip ttl 64 ip id 22963 ip length 60 tcp sport 59476 tcp dport 32458 tcp flags == syn tcp window 64800
trace id d2b90229 ip k8s_svc trace_chain rule meta nftrace set 1 (verdict continue)
trace id d2b90229 ip k8s_svc trace_chain verdict continue meta mark 0x00040000
trace id d2b90229 ip k8s_svc trace_chain policy accept meta mark 0x00040000
trace id d2b90229 ip k8s_svc hook_nat_prerouting packet: iif "calib3f8f4ebdf2" ether saddr 2e:dc:73:55:f1:f3 ether daddr ee:ee:ee:ee:ee:ee ip saddr <IP_ADDRESS> ip daddr <IP_ADDRESS> ip dscp cs0 ip ecn not-ect ip ttl 64 ip id 22963 ip length 60 tcp sport 59476 tcp dport 32458 tcp flags == syn tcp window 64800
trace id d2b90229 ip k8s_svc hook_nat_prerouting rule jump z_dnat_all (verdict jump z_dnat_all)
trace id d2b90229 ip k8s_svc z_dnat_all verdict continue meta mark 0x00040000
trace id d2b90229 ip k8s_svc hook_nat_prerouting verdict continue meta mark 0x00040000
trace id d2b90229 ip k8s_svc hook_nat_prerouting policy accept meta mark 0x00040000

I am executing curl on node-ip:node-port (i.e curl http://node-ip:3xxxx) from client pod.
Packet from client pod reaches worker node on calib3f8f4ebdf2 interface (as seen below).
May be fib daddr . iif type local  trying to search node-ip (i.e <IP_ADDRESS>) on calib3f8f4ebdf2  instead of eth0.
The worker node out is given below
root@kpng-proxy-worker:/# ifconfig
cali2a219098aa2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1480
        ether ee:ee:ee:ee:ee:ee  txqueuelen 0  (Ethernet)
        RX packets 3027212  bytes 261322594 (261.3 MB)
        RX errors 0  dropped 2  overruns 0  frame 0
        TX packets 3096529  bytes 832462192 (832.4 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

calib3f8f4ebdf2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1480
        ether ee:ee:ee:ee:ee:ee  txqueuelen 0  (Ethernet)
        RX packets 120  bytes 8370 (8.3 KB)
        RX errors 0  dropped 2  overruns 0  frame 0
        TX packets 88  bytes 6496 (6.4 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

caliba77f79951e: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1480
        ether ee:ee:ee:ee:ee:ee  txqueuelen 0  (Ethernet)
        RX packets 34  bytes 2668 (2.6 KB)
        RX errors 0  dropped 2  overruns 0  frame 0
        TX packets 20  bytes 1402 (1.4 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet <IP_ADDRESS>  netmask <IP_ADDRESS>  broadcast <IP_ADDRESS>
        inet6 fe80::42:acff:fe12:4  prefixlen 64  scopeid 0x20<link>
        inet6 fc00:f853:ccd:e793::4  prefixlen 64  scopeid 0x0<global>
        ether 02:42:ac:12:00:04  txqueuelen 0  (Ethernet)
        RX packets 4292829  bytes<PHONE_NUMBER> (3.3 GB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4296970  bytes 526896885 (526.8 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet <IP_ADDRESS>  netmask <IP_ADDRESS>
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 5130559  bytes 353950789 (353.9 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 5130559  bytes 353950789 (353.9 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

tunl0: flags=193<UP,RUNNING,NOARP>  mtu 1480
        inet <IP_ADDRESS>  netmask <IP_ADDRESS>
        tunnel   txqueuelen 1000  (IPIP Tunnel)
        RX packets 7091  bytes 638899 (638.8 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 6870  bytes 583837 (583.8 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@kpng-proxy-worker:/#

This may work only for external traffic where packets will arrive on an eth0 . But whenever pod tries to access node-port service within cluster may not work.

https://github.com/K8sbykeshed/k8s-service-lb-validator/ <-- cool can we verify the hairpins work in all cases ?


Add Envoy preStop hook

When a pod is terminating there is a time lag before the pod's removal is propagated to all envoys of the mesh. During this time, requests may still be sent to the terminating pod.
Adding a preStop hook to envoy to wait for the pod's removal to be propagated before shutting down would be a way to solve this problem.

Hey @quentinplessis, if I understand correctly you're trying to keep the pod alive until all inbound connections have drained and the downstream clients are no longer making requests to it?
One way to get there would be to hit the Envoy's admin /healthcheck/fail path, which will start connection draining on the listener and force downstream health checks to start failing (so they'll eject the endpoint from the cluster).
Some (old) info on connection draining in Envoy: https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/operations/draining
A preStop hook makes sense. The caveat I see is there is no easy way to determine when all connections have been drained and the downstreams have eliminated the pod from their list of endpoints.

@bcelenza Thank you for your reply !

if I understand correctly you're trying to keep the pod alive until all inbound connections have drained and the downstream clients are no longer making requests to it?

Yes that's exactly what I would like to do.
I understand that accurately determining when all downstream envoys have eliminated the pod from their list of endpoints is not possible. If there is some sort of App Mesh SLI indicating how long a change in App Mesh configuration takes to be propagated to all downstream clients, it could be used as a waiting period in the preStop hook.
Also, inbound connections being currently handled by the pod may trigger outbound connections as well (request comes to service A that sends request to service B ...). When terminating the pod, outbound connections should be allowed until all inbound connections have completed.
I guess something like this would be the best:

pod is marked as terminating
preStop hook is triggered

wait for all downstream clients to have eliminated the pod from their list of endpoints (cannot be done flawlessly). During this time, keep accepting inbound and outbound connections
drain envoy: do not accept new inbound connections but keep processing current inbound connections and allow for new outbound connections
when all inbound connections have been gracefully stopped (or after a timeout), finish prestop hook

k8s sends SIGTERM to envoy

Some related issue: https://github.com/istio/istio/issues/7136

I don't think the preStop hook can fully solve this problem. Hopefully the Sidecars feature will land in Kubernetes 1.19. But EKS is so far behind, even if the sidecars will be available in Kubernetes, I think we'll have to wait a year for EKS to catchup.

@stefanprodan Correct me if I'm wrong, but the sidecars feature is more related to container dependencies within a single pod? That will help in cases where the Envoy needs to terminate prior to the application, but the issue of draining for the whole pod feels separate to me.
In other words, a preStop hook will help drain connections, while the sidecars feature will ensure the Envoy terminates prior to the app.
Or will the sidecars feature also expose a mechanism to allow draining with a pause?

That will help in cases where the Envoy needs to terminate prior to the application, but the issue of draining for the whole pod feels separate to me.

From sidecars KEP:

During pod termination sidecars will be terminated last:
Containers sent SIGTERM
Once all Containers have exited: Sidecars sent SIGTERM

Envoy can start draining on SIGTERM since Kubernetes stopped the app container before sending SIGTERM to the sidecar.

In other words, a preStop hook will help drain connections, while the sidecars feature will ensure the Envoy terminates prior to the app.

I think it is the other way around: the sidecars feature will ensure Envoy terminates after the app is terminated. With sidecars, SIGTERM will be first sent to the app container, then when the app is terminated SIGTERM will be sent to envoy which will terminate (at that point there shouldn't be any connections left to drain).
The sidecars feature will help solve this dependency issue but it won't help with ensuring all downstreams have removed the pod from their list of endpoints.
With sidecars feature I think the following is desirable:

pod is marked as terminating
in app prestop hook: wait for all downstreams have removed the pod from their list of endpoints ( = wait for a few seconds / dozens of seconds)
SIGTERM is sent to app (and not to envoy thanks to sidecars feature)
app terminates
SIGTERM is sent to envoy which drains connections (there shouldn't be any left)

Without sidecars feature:

pod is marked as terminating
in envoy prestop hook: wait for app to terminate
in app prestop hook: wait for all downstreams have removed the pod from their list of endpoints ( = wait for a few seconds / dozens of seconds)
SIGTERM is sent to app
app terminates
envoy prestop hook finishes
SIGTERM is sent to envoy which drains connections (there shouldn't be any left)

Thanks for the clarifications, that makes sense to me.


why change chaincode name and function name unsuccessfully?

I run the sample "fabcar" and test successfully " peer chaincode query -C mychannel -n fabcar -c '{"Args":["QueryAllCars"]}' "
then I modify the config.yaml like such:
channel: mychannel
chaincode: fabcar
args:

QueryAllCars

why it return the error like this:
time="2022-04-16T22:54:16-07:00" level=error msg="Err processing proposal: %!s(), status: 500, message: Function CreateAsset not found in contract SmartContract, addr: localhost:9051 \n"

please check your value carefully. :-)
ref CI
https://github.com/Hyperledger-TWGC/tape/runs/5888215910?check_suite_focus=true#step:5:889
https://github.com/Hyperledger-TWGC/tape/runs/5888216566?check_suite_focus=true#step:5:812
value assignment works.

this issue been closed as sample in CI works for now. if you are able to reproduce it via CI by a PR. or the CI fails in coming schedule running, then it makes sense to reopen it.

what mean about CI and PR?

what mean about CI and PR?

continue integration and pull request....

I use the instruct "./tape -c config.yaml -n 20"
and the config.yaml is :
Definition of nodes
addr address for node
tls_ca_cert tls cert
peer1: &peer1
addr: localhost:7051
tls_ca_cert: ../organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp/tlscacerts/tlsca.org1.example.com-cert.pem
peer2: &peer2
addr: localhost:9051
tls_ca_cert: ../organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/tlscacerts/tlsca.org2.example.com-cert.pem
peer3: &peer3
addr: localhost:22051
tls_ca_cert: ../organizations/peerOrganizations/org3.example.com/peers/peer0.org3.example.com/msp/tlscacerts/tlsca.org3.example.com-cert.pem
peer4: &peer4
addr: localhost:21051
tls_ca_cert: ../organizations/peerOrganizations/org4.example.com/peers/peer0.org4.example.com/msp/tlscacerts/tlsca.org4.example.com-cert.pem
peer5: &peer5
addr: localhost:23051
tls_ca_cert: ../organizations/peerOrganizations/org5.example.com/peers/peer0.org5.example.com/msp/tlscacerts/tlsca.org5.example.com-cert.pem
peer6: &peer6
addr: localhost:24051
tls_ca_cert: ../organizations/peerOrganizations/org6.example.com/peers/peer0.org6.example.com/msp/tlscacerts/tlsca.org6.example.com-cert.pem
peer7: &peer7
addr: localhost:25051
tls_ca_cert: ../organizations/peerOrganizations/org7.example.com/peers/peer0.org7.example.com/msp/tlscacerts/tlsca.org7.example.com-cert.pem
peer3: &peer8
addr: localhost:26051
tls_ca_cert: ../organizations/peerOrganizations/org8.example.com/peers/peer0.org8.example.com/msp/tlscacerts/tlsca.org8.example.com-cert.pem
orderer1: &orderer1
addr: localhost:7050
tls_ca_cert: ../organizations/ordererOrganizations/example.com/msp/tlscacerts/tlsca.example.com-cert.pem
policyFile: ./test/andLogic.rego
Peer Nodes to interact with as endorsement Peers
endorsers:

*peer1
*peer2
*peer3
*peer4
*peer5
*peer6
*peer7
*peer8

Peer Nodes to interact with as Commit Peers as listening
committers:

*peer1
*peer2
*peer3
*peer4
*peer5
*peer6
*peer7
*peer8

we might support multi-committer in the future for more complex test scenario.
i.e. consider tx committed only if it's done on >50% of nodes.
Give your commit Threshold as numbers for peers here.
commitThreshold: 8
orderer Nodes to interact with
orderer: *orderer1
Invocation configs
channel: mychannel
chaincode: basic
chain code args below, in a list of str
we provides 3 kinds of randmon
uuid
randomString$length
randomNumber$min_$max
args:

CreateAsset
randomString8
randomString8
randomNumber0_50
randomString8
randomNumber0_50

Tx submiter information
mspid: Org1MSP
private_key<EMAIL_ADDRESS>sign_cert: ../organizations/peerOrganizations/org1.example.com/users/User1<EMAIL_ADDRESS>network traffic control
num_of_conn: 2
client_per_conn: 2
now return the error
time="2022-04-17T05:42:22-07:00" level=error msg="rpc error: code = Unavailable desc = closing transport due to: connection error: desc = "error reading from server: EOF", received prior goaway: code: ENHANCE_YOUR_CALM, debug data: "too_many_pings""

received prior goaway: code: ENHA

you'd better debugging your own network by yourself.

I can invoke chaincode in cmd correctly.


(ZSH?) JAVA_HOME isn't set correctly when installed to the system profile

Basic info
To make sure that we are on the same page:

Kernel: Linux madoka.brage.info 4.4.2 #1-NixOS SMP Wed Feb 17 20:31:25 UTC 2016 x86_64 GNU/Linux
System: 16.03pre77568.40c586b (Emu)
Nix version: nix-env (Nix) 1.11.2
Nixpkgs version: "16.03pre77568.40c586b"

Describe your issue here
environment.systemPackages includes openjdk. However, the JAVA_HOME environment variable is not set. While this isn't a problem for scripts run through nix-shell -i bash, it breaks scripts that aren't. Possibly part of the reason for this is my use of ZSH as a default shell.
Expected result
JAVA_HOME should be set.
Actual result
It is not set.
Steps to reproduce
echo $JAVA_HOME.
Notice that it isn't set.

This is quite likely to be an ZSH issue. The exact same (simple) script fails if I use -i zsh, whereas it works with -i bash.

Nope. Not an ZSH issue. I'm not sure why I got the behaviour above earlier, but now I can't reproduce it.

Ha! I've got jdk on my systemPackages, but my $JAVA_HOME is not set, neither in zsh nor in bash.
With nix-shell -p jdk, it is set. I didn't even know about that hook. How is it not present for systemPackages?

@bendlas Good question! :)
I've got a temporary fix in the PR referenced above, but if you're comfortable enough with applying that locally then you can probably just use nix-shell until it's fixed properly. Whatever "properly" turns out to mean.

Just to clarify, when you use nix-shell -p the packages gets added to your shell dependencies and their respective setup-hooks are introduced into the environment. When they are aggregated into a profile they are not dependencies of your shell. I'm not convinced that it is a good idea to introduce the setup-hook when added to a profile but I also don't think that your issue is unreasonable.

I'll take that up on the mailing list.
The issue is, though, that if JAVA_HOME isn't set then a lot of Java applications just won't work... And every other distribution does set the variable by default, so we should too.
I'm not sure how to deal with upgrades. Possibly it'll need another symlink in /run. Anyway, mailing list...

JAVA_HOME should not be set globally. There should be some java wrapper which sets it to whatever value of JAVA_HOME is desirable for that application.
As a concrete test case: env | grep -q JAVA_HOME should return an exit status of 1 regardless of how it is installed in any shell like zsh or bash.

Would like to know if there is a well documented workaround for this somewhere, trying to install sbt-ensime and it complains with this error, not sure if this is something that can be fixed the "nix way"... correct me if I'm wrong please.

I am not convinced that nix shouldn't handle environment variables for user profiles, but maybe I could be convinced. A common situation, not unrelated to the current issue, is that apparently nix-shell has some downsides for graphical applications (not speaking from personal experience, but citing someone who seems to know more about nix than me):

And another nitpick. You'll soon find very incovenient to launch IDE from shell every time. It seems a good idea to specify, that some package is used for development, but nix-shell doesn't work well for non-cli applications. Not to mention occasional problems with Nix GC and nix-shell. You'd better install IDE globally or per-user, it is better long-term solution.

nix-env already defines our environment by defining what is effectively in our PATH, so why not allow it to define other parts of our environment, rather than having to devise our own solutions on a case-by-case basis? I'm not saying it will work for everything, but I would think it could easily work for common cases such as this.

@roman My solution for now, which may be an OK way to do this:
I have the following script, nix-env-dynamic.sh:
#!/bin/bash

export JAVA_HOME=$(readlink -e $(which javac) | sed  -e 's/\/bin\/javac//g')
export IDEA_JDK=/usr/lib/jvm/zulu-8-amd64
ln -sf $JAVA_HOME $ENVSDIR/JDK

A couple of extra lines there to make intellij happy - first to give it its own JVM that works well with it, and second, to provide a path I can easily fine for the current nix JDK, since IntelliJ doesn't like to use the environment's JAVA_HOME to find JDKs.
I have a docker container running nix/nixpkgs that has its entrypoint do some configuration to .bashrc; the related part for this is shown next, but I assume most aren't using docker, so just add it to your .bashrc normally in that case (e.g. source $HOME/workspace/nix-env-dynamic.sh)
SET_DYNAMIC_ENV="source $HOME/workspace/nix-env-dynamic.sh"
grep -q -F "${SET_DYNAMIC_ENV}" $HOME/.bashrc || printf "\n$SET_DYNAMIC_ENV\n" >> $HOME/.bashrc

That said, I'd like to do as little bash/perl programming as possible - I suspect you can relate ;). So, I still think it might be nice for Nix to handle this at some level.

@bbarker this saves you the sed:
export JAVA_HOME="${$(readlink -e $(type -p java))%*/bin/java}"

@NeQuissimus I'm so inured to which that I hadn't even thought of it as a dependency, but I can see that it is probably not something used much in Nix - I feel sed is probably more standard. I couldn't quite get your command to work and am not good enough with bash to easily fix, so I went with replacing which with type -p - thanks!:
export JAVA_HOME=$(readlink -e $(type -p javac) | sed  -e 's/\/bin\/javac//g')

On NixOS
programs.java.enable = true;

now sets up JAVA_HOME system-wide.

@aij A question on behalf of a friend newer to Nix :) ... what file does programs.java.enable = true; belongs in?

@xpe https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/programs/java.nix
The easiest way I know of to find where an option is defined is to look at man configuration.nix or search the online documentation, though I also often have success with ripgrep.
Finding the source of ${cfg.package}/nix-support/setup-hook is a bit harder...
The above file has
package = mkOption {
        default = pkgs.jdk;

so I looked up pkgs/top-level/all-packages.nix and chased the definitions to ../development/compilers/openjdk/16.nix, which writes it as
      mkdir -p $out/nix-support
      cat <<EOF > $out/nix-support/setup-hook
      if [ -z "\''${JAVA_HOME-}" ]; then export JAVA_HOME=$out/lib/openjdk; fi
      EOF

So, it's still just setting the $JAVA_HOME environment variable... I seem to remember it being less convoluted last time I looked, but looking at git history tells me I'm probably wrong.

@aij Do your comments above apply...

in the context of developing a Nix package?
for an (introductory) user? (e.g. looking to configure their JAVA_HOME)

@xpe Oops, I assumed a new user trying to understand the code... For a new user trying to configure NixOS, they'd want to put programs.java.enable = true; in /etc/nixos/configuration.nix


api: missing V1InterfaceBridge type

After python client generation using current api definition there is
type missing which makes it impossible to manage VMIs. The missing type
seems to be placeholder and it do not contain any definition. It seems
like it is not used and content for it is unknown so changing it to be
a string fixes the issue.
Fixes: https://github.com/kubevirt/client-python/issues/21
Signed-off-by: Piotr Kliczewski<EMAIL_ADDRESS>

/cc @vladikr

@pkliczewski I open a PR to fix this issue.
I am not sure if making it a string is the right way.
It is good to have a struct that handle the bridge object because in the future we may want to add optional parameter to it.

@pkliczewski Does this PR still relevant or can I close it?

I think it makes sense to reconsider the PR despite a short-term fix for the client issue was merged already.
In the past, we assumed that we will need a lot of additional options per binding type, so we designed the API so that we pass a map of attributes as a value for the per-binding attributes. Now that we spent some time thinking about and building the API, we discovered that we may not have many of these options if at all. Which resulted in usually-empty maps as values to these attributes (bridge: {}; slirp: {}; etc.) This raises the question whether the initial decision of making these attributes map-typed is correct. I don't think so anymore.
So in this regard, I agree that this API deficiency should be fixed.
In your PR, you convert each of attributes (bridge, slirp) to string. It's not exactly clear how the value of the string is supposed to be interpreted though. If it's just a flag where a non-empty value means that the particular binding type is to be used then I don't think we need a per-type attribute in the first place. Instead, we could introduce a new attribute (perhaps called binding or just type) of string type, and allow it to accept values from the list of supported binding types (meaning, one of slirp, bridge, direct, ...) Then also remove bridge and slirp attributes from API schema since they are superseded by the unified type attribute.
What do you think?

ping?

ping?

We can work with the code as it is for now.


[bug?] Multiple config files

Hi, I'm trying to use multiple tailwind.js config files using Laravel mix. But seems impossible.
Only works the first tailwind.js config file. And throws an error when in the second function I call a var from the second tailwind.js config file.
This is my webpack:
let mix = require('laravel-mix');
let exec = require('child_process').exec;
let path = require('path');
let glob = require('glob');
var fs = require('fs');
let tailwindcss = require('tailwindcss');
let atImport = require('postcss-import');

// Urls
let frameworkPath = "resources/framework/",
    themesPath    = "resources/themes/",
    modulesPath   = "resources/modules/**/",
    publicPath    = "public/themes/";
    tailwind_path = '';

    // Themes items
    let themes = glob.sync('resources/themes/*').map(function(componentDir) {
        return path.basename(componentDir);
    });

    themes.forEach(function(name) {
        let theme_path = 'resources/themes/'+name+'/assets/sass/style.scss';
        let tailwind_path = './tailwind.js';
        if (fs.existsSync(theme_path)) {

            tailwind_theme_path = 'resources/themes/'+name+'/tailwind.js';
            if (fs.existsSync(tailwind_theme_path)) {
                tailwind_path = tailwind_theme_path;
            }

            mix.sass(theme_path, 'public/themes/'+name+'/assets/css')
              .options({
                processCssUrls: false,
                postCss: [
                    // atImport(),
                    tailwindcss(tailwind_path)
                ],
              }).version();
        }
    });

    //builder
    mix.sass('resources/builder/sass/builder.scss', 'public/css/')
      .options({
        processCssUrls: false,
        postCss: [ tailwindcss('./tailwind.js') ],
      }).version();

Is giving me an error in builder process. Can not find a class from './tailwind.js' file.
Some help?
Thanks

This is a limitation of Mix unfortunately; you can't call .options with PostCSS options multiple times and have them all work, it either keeps only first options or only the last options, can't remember off hand.
I don't think there's an issue open about it on the Mix repo so feel free to start a discussion there and see if there's any plans to support that.

Thanks @adamwathan. I created an issue on Laravel Mix issues page: https://github.com/JeffreyWay/laravel-mix/issues/1688


Icons are not loaded if UI Icons is off (at start)

Describe the bug

To Reproduce

1.Today I updated WebStorm, then opened the project and found that the icon was gone, and then tried to disable Atom, the icon was displayed, so I think it may be the problem of atom
Expected Behavior

when i disable atom plugin

Environment

Screenshots

default ： disable ui icon

enable ui icon

The icon is also missing

and here

I can confirm that this is a bug. Workaround: Disable the plugin, start webstorm, enable plugin. You need to do it everytime you restart webstorm.

I haven't updated yet, I have still a branch in progress. Sorry for the troubles.

Updated Goland, have the same bug on Ubuntu

I can't reproduce guys. Is it on MacOS ?

i am windows

I can't test on windows at the moment. For Mac it doesn't reproduce.

I work on windows. If you explain how to test a prerelease I can give it a try on Tuesday
Beste Grüße
Maximilian Beckenbach

Von: Elior Boukhobza @.>
Gesendet: Thursday, April 14, 2022 4:20:27 PM
An: mallowigi/a-file-icon-idea @.>
Cc: Maximilian Beckenbach asuro GmbH @.>; Comment @.>
Betreff: Re: [mallowigi/a-file-icon-idea] Icon bug when opening project (Issue #276)
I can't test on windows at the moment. For Mac it doesn't reproduce.
—
Reply to this email directly, view it on GitHubhttps://github.com/mallowigi/a-file-icon-idea/issues/276#issuecomment-1099237180, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AYWHM6ZOPKZ3NABMN66VNXTVFASSXANCNFSM5TFURKKQ.
You are receiving this because you commented.Message ID: @.***>

I can't reproduce guys. Is it on MacOS ?

Yes, Monterey, Mac M1.
First disappear started from some action, can't reproduce, but now i have everytime like below.
JetBrains Rider 2022.1 EAP 10
61 version of plugin

I can't reproduce guys. Is it on MacOS ?

Yes, Monterey, Mac M1.
JetBrains Rider 2022.1 EAP 10 61 version of plugin

P.S. "Workaround: Disable the plugin, start app, enable plugin" is worked, but after some action it will break.
also Mac M1
IntelliJ IDEA 2021.3 (Ultimate Edition)
Atom Material Icons 61.0.0

I'm also using M1 and not M1, and I don't have this problem. Are you using JDK 17?

Can you please provide the list of all plugins you use ?

Can you please provide the list of all plugins you use ?

I'm also using M1 and not M1, and I don't have this problem. Are you using JDK 17?

This helpful for you?

So... not really :/

Still unable to reproduce. I'm afraid this will go unfixed.

I also encountered this problem, many icons became invisible after enabling "Atom Icons".

Step to reproduce for my setup:

Open Rider, disable plugin, close Rider
Open Rider, enable plugin, icon works until you close Rider
Open Rider, icons break

i'm update version 61.0.0, still have this problem

Steps to reproduce:

Open WebStorm
Enable plugin
Completely close WebStorm
Open WebStorm
Badges will disappear

Uploading rider.mp4…
What am I missing?

Didn't seem to miss anything, but try the same thing in WebStorm 2022.1

I'm using Webstorm all the time, and I never encountered this neither

Thank you for looking into this. In case this is of any help, I do encounter the exact same behaviour described by the other users above in the following environment:

WebStorm 2022.1

Atom Material Icons 61.0.0
All non bundled plugins disabled

macOS Montery 12.3.1

(not on M1 chip)

rider.mp4
What am I missing?

https://user-images.githubusercontent.com/22286246/163574422-d746199a-1d2e-4ccd-bb89-fa2c1b943b2b.mp4
my screen recording

@mallowigi I try to run the project, but there are some errors that I don't know how to fix

Can you post your atom material icons settings xml file ?

Can you post your atom material icons settings xml file ?

no, xml, it's important.

where do i find it

https://intellij-support.jetbrains.com/hc/en-us/articles/206544519-Directories-used-by-the-IDE-to-store-settings-caches-plugins-and-logs

what file in which directory

in the configuration, and it should be named somehting like atom_material.xml or something like that

i only found this

I need to go, please try to google it. If others can help that would be great too.,

I search for atom in the installation directory of Webstorm

@mallowigi I try to run the project, but there are some errors that I don't know how to fix

@mallowigi Or can you teach me to solve this problem and I try to run the code?

Can you post your atom material icons settings xml file ?

/Users/rushelex/Library/Application Support/JetBrains/WebStorm2022.1/jba_config/a-file-icons.xml
<application>
  <component name="AtomFileIconsConfig">
    <option name="enabledPsiIcons" value="false" />
    <option name="enabledUIIcons" value="false" />
    <option name="isEnabledUIIcons" value="false" />
    <option name="monochromeColor" value="546e7a" />
    <option name="isEnabledPsiIcons" value="false" />
  </component>
</application>

Can you post your atom material icons settings xml file ?

/Users/rushelex/Library/Application Support/JetBrains/WebStorm2022.1/jba_config/a-file-icons.xml
/Users/rushelex/Library/Application Support/JetBrains/WebStorm2022.1/jba_config/atom-icon-associations.xml
/Users/rushelex/Library/Application Support/JetBrains/WebStorm2022.1/options/a-file-icons.xml
/Users/rushelex/Library/Application Support/JetBrains/WebStorm2022.1/options/atom-icon-associations.xml

@rushelex  oh, how do you get this format

@mofada just click here 🙂

or
<details>
    <summary>Details</summary>

    Content here

</details>

Understood, thanks ( •̀ ω •́ )y

<application>
  <component name="AtomFileIconsConfig">
    <option name="enabledPsiIcons" value="false" />
    <option name="enabledUIIcons" value="false" />
    <option name="isEnabledUIIcons" value="false" />
    <option name="monochromeColor" value="546e7a" />
    <option name="isEnabledPsiIcons" value="false" />
  </component>
</application>

Managed to reproduce. I'll update when i find the culprit

FYI - looks like you might need both UI and PSI icons enabled to workaround this issue at startup. Enabling only UI wasn't enough for me.

A fix that allows disabling the UI icons would be amazing! Thank you @mallowigi for being so responsive and providing a workaround.

yes，when Eenable   UI icons  and PSI icons ,the icons appear.
But when only  enable  UI icons ,the icons disappear.

FYI - looks like you might need both UI and PSI icons enabled to workaround this issue at startup. Enabling only UI wasn't enough for me.

Yes，when Eenable UI icons and PSI icons ,the icons appear.
But when only enable UI icons ,the icons disappear.

Atom Material Icons-61.1.0.zip
can you test this and tell me if it solves the problem? I don't want to release an update right now as I need to cleanup the project a bit

Atom Material Icons-61.1.0.zip
can you test this and tell me if it solves the problem? I don't want to release an update right now as I need to cleanup the project a bit

it works fine

61.1.0 looks to be working fine here too.

I can also confirm that 61.1.0 works fine on Windows.

Published!

Amazing! Thank you!


docs: add status for expansion-panel

Seems to be missing from the README that expansion-panel is being worked on.
(If you'd rather update status yourself, then you can just close this PR)

Didn't add the PR since there were no other PR's linked.
Thanks for your work!  🎉

please rebase

@mmalerba That should do the trick. Since the table looked resorted, I moved it to where it seems most logical in the merge.


[CI/Build] Enable entrypoints tests to be run in a single command

By setting gpu_memory_utilization to a low value for tests that only use small models, all entrypoints tests can now be run in a single command.
However, I now get this warning when running test_oot_registration_for_api_server after changing multiprocessing to use the 'spawn' start method instead of the default 'fork':
/usr/lib/python3.10/multiprocessing/resource_tracker.py:224: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown

Does this mean the OS has to restart in order to clean this memory leak? Hopefully it won't become a significant issue.

With the change in #4328, entrypoints tests cannot be run in a single command anyway. I have switched to using pytest markers to separate the tests in that PR.

With the change in #4328, entrypoints tests cannot be run in a single command anyway. I have switched to using pytest markers to separate the tests in that PR.


Source containers: render plugins configuration

TODO:

[x] unittests

Maintainers will complete the following section:

[x] Commit messages are descriptive enough
[x] "Signed-off-by:" line is present in each commit
[ ] Code coverage from testing does not decrease and new code is covered
[x] JSON/YAML configuration changes are updated in the relevant schema
[x] Changes to metadata also update the documentation for the metadata
[x] Pull request includes link to an osbs-docs PR for user documentation updates

force pushed to poke travis and run build


Xcode fix

Description
Despite the name the Xcode jobs in the GitHub actions CI don't really use the Xcode generator, and it turns out there are some issues with it where absolute paths are expected, and a conversation from float to sf::Angle.
This adds tests for the Xcode generator and fixes those issues

SFMLBuildMaster: Build this please.

Thanks for spotting it and thanks for fixing it! 🥳


Adding UnityToolbag link

UnityToolbag is a collection of scripts and utilities for Unity 5.0 that I've written. All MIT open source and free for anyone to use.

Looks great, thanks Nick!