Issues (wrong result) when computing the mean on a NetCDF file

Hi,
I was exploring the use of dask for climate data analysis.
This is a minimal example in iPyhon:
import dask.array as da
from netCDF4 import Dataset
f = Dataset('/opt/data/EOBS/pp_0.50deg_reg_v10.0.mon.nc')
f.variables['pp'][:].mean()
Out[3]: 1014.3992960196152
daskarray = da.from_array(f.variables['pp'], chunks = (1000))
daskarray.mean().compute()
Out[8]: -8371.5934749772732

The final result varies slightly when changing the chunks.
I have tried with several NetCDF files, on two different machines (MacOS with Python 2.7.13 and dask 0.14 and Ubuntu with Python 2.7.12 and the same version of dask)

Ok, an update.
The problem disappears when I use a dataset without NaN but now I have another issue: if I "split" the computation on the time dimension (chunksize < length time dimension) I get the wrong numbers.
Here the code with the new dataset:
f = Dataset('/opt/data/ERAIN/ERAIN-t2m-1983-2012.seasmean.nc')
f.variables['var167'][:].mean()
Out[4]: 278.62466
daskarray = da.from_array(f.variables['var167'], chunks = (1000))
daskarray.mean().compute()
Out[6]: 278.62466
f.variables['var167'][:].shape
Out[9]: (121, 256, 512)
daskarray = da.from_array(f.variables['var167'], chunks = (121,120,512))
daskarray.mean().compute()
Out[13]: 278.26028
daskarray = da.from_array(f.variables['var167'], chunks = (60,256,512))
daskarray.mean().compute()
Out[15]: 1.3058767e+26

Hmmm, that's concerning. Does it fail if you load your dataset into memory beforehand (if it fits?):
da.from_array(f.variables['var167'][:], chunks=(60, 256, 512)).mean()

Can you provide a reproducible example?

The dataset is ~65 MB, here the file https://www.dropbox.com/s/xtj3fm7ihtbwd5r/ERAIN-t2m-1983-2012.seasmean.nc?dl=0
Honestly, I've just tried but I didn't get the error. However, is it normal to have different results when changing the chunk size?

No. That should only matter for poorly conditioned datasets, and reading from disk or in memory shouldn't change things. Thanks, I'll take a look. Are you using the 0.14 dask release or dask from github master?

It's the 0.14.0 installed from macports.

@matteodefelice, you might want to consider trying out xarray, which is designed for working with netcdf-style data and integrates tightly with dask. I would be curious to see what answer you get if you load your data via xarray and do the same mean operation.

It's the 0.14.0 installed from macports.

Dask is distributed through macports?

@mrocklin Yes, look at here: https://www.macports.org/ports.php?by=name&substr=py-dask
@rabernat I have tried (using the last xarray from Github) and the situation looks weirder and weirder:
# With dask
In [13]: f = netCDF4.Dataset('/opt/data/ERAIN/ERAIN-t2m-1983-2012.seasmean.nc')
    ...: f.variables['var167'][:].mean()
    ...:
Out[13]: 278.62466
# With xarray
In [14]: ds = xarray.open_dataset('/opt/data/ERAIN/ERAIN-t2m-1983-2012.seasmean.nc')
In [14]: ds.var167[:].mean()
Out[14]:
<xarray.DataArray 'var167' ()>
array(261.6441345214844)

Same file, different averages...

xarray does not use dask unless you provide the chunks keyword, so this looks like a clue to something inherently odd about the data, perhaps to do with auto-scaling and nan labelling at load time. The variable ds should give you lots of metadata about itself with a simple print.

Well, you are probably right, I have tried with another file and the two averages are almost identical.
Nevertheless, this behaviour worries me because the former dataset hasn't been processed in any particular way, FYI here the output of ds:
Out[22]:
<xarray.Dataset>
Dimensions:    (bnds: 2, lat: 256, lon: 512, time: 121)
Coordinates:
  * lon        (lon) float64 0.0 0.7031 1.406 2.109 2.812 3.516 4.219 4.922 ...
  * lat        (lat) float64 89.46 88.77 88.07 87.37 86.66 85.96 85.26 84.56 ...
  * time       (time) datetime64[ns] 1983-01-31T03:00:00 1983-04-15T21:00:00 ...
Dimensions without coordinates: bnds
Data variables:
    time_bnds  (time, bnds) float64 0.0 1.41e+03 1.416e+03 3.618e+03 ...
    var167     (time, lat, lon) float32 243.053 243.057 243.06 243.064 ...
Attributes:
    CDI: Climate Data Interface version 1.7.2 (http://mpimet.mpg.de/cdi)
    Conventions: CF-1.4
    history: Sun Sep 04 15:15:29 2016: cdo seasmean temp.nc ERAIN-t2m-1983-2012.seasmean.nc
Sun Sep 04 15:15:28 2016: cdo mergetime ERAIN-t2m-1983.grib.mon.nc ERAIN-t2m-1984.grib.mon.nc ERAIN-t2m-1985.grib.mon.nc ERAIN-t2m-1986.grib.mon.nc ERAIN-t2m-1987.grib.mon.nc ERAIN-t2m-1988.grib.mon.nc ERAIN-t2m-1989.grib.mon.nc ERAIN-t2m-1990.grib.mon.nc ERAIN-t2m-1991.grib.mon.nc ERAIN-t2m-1992.grib.mon.nc ERAIN-t2m-1993.grib.mon.nc ERAIN-t2m-1994.grib.mon.nc ERAIN-t2m-1995.grib.mon.nc ERAIN-t2m-1996.grib.mon.nc ...
    institution: European Centre for Medium-Range Weather Forecasts
    frequency: mon
    CDO: Climate Data Operators version 1.7.2 (http://mpimet.mpg.de/cdo)

I suspect ds.var167 has more information too.

Here:
In [28]: ds.var167
Out[28]:
<xarray.DataArray 'var167' (time: 121, lat: 256, lon: 512)>
[15859712 values with dtype=float32]
Coordinates:
  * lon      (lon) float64 0.0 0.7031 1.406 2.109 2.812 3.516 4.219 4.922 ...
  * lat      (lat) float64 89.46 88.77 88.07 87.37 86.66 85.96 85.26 84.56 ...
  * time     (time) datetime64[ns] 1983-01-31T03:00:00 1983-04-15T21:00:00 ...
Attributes:
    code: 167
    table: 128
    grid_type: gaussian

Hm, maybe not... I was expecting something about valid data ranges or missing values like here (page 6). There seem to be a lot of conventions that can apply, CF-1.4 is listed above, that map the numbers in raw binary to usable data.

Whatever is the cause, it is definitely a big concern for me: that dataset has been produced using a common workflow based on CDO and the average obtained with dask is consistent with the one obtained with other tools (e.g. R with ncdf4 library).

Apologies for the long delay here. I'm unable to reproduce using the provided file and the specified packages:
In [1]: import dask.array as da

In [2]: from netCDF4 import Dataset

In [3]: f = Dataset('ERAIN-t2m-1983-2012.seasmean.nc')

In [4]: nx = f.variables['var167']

In [5]: dx = da.from_array(nx, chunks=(121,120,512), lock=True)

In [6]: dx.mean().compute()
Out[6]: 278.62488

In [7]: dx = da.from_array(nx, chunks=(60,256,512), lock=True)

In [8]: dx.mean().compute()
Out[8]: 278.62497

In [9]: dx = da.from_array(nx, chunks=1000, lock=True)

In [10]: dx.mean().compute()
Out[10]: 278.62466

I do get slightly different numbers for different chunk sizes, but that has to do with numeric precision and the fact that you're using float32 (as pointed out in https://github.com/pydata/xarray/issues/1346#issuecomment-290760342).
What version of numpy are you using (python -c "import numpy;print(numpy.__version__)")?

I'm using numpy 1.12.1
I can reproduce your results but...
daskarray = da.from_array(f.variables['var167'], chunks = (121,120,512)
    ...: )
daskarray.mean().compute()
Out[26]: 279.21347

Every time I get random result:
In [27]: daskarray.mean().compute()
    ...:
Out[27]: 278.6846
In [28]: daskarray.mean().compute()
    ...:
Out[28]: 278.255
In [29]: daskarray.mean().compute()
    ...:
Out[29]: 3.1980865e+22
In [30]: daskarray.mean().compute()
    ...:
Out[30]: 279.53751

Instead:
daskarray = da.from_array(f.variables['var167'], chunks = (121,120,512), lock = True)
daskarray.mean().compute()
Out[81]: 278.62488

The lock prevents concurrent reads from the same file. Netcdf4 files can't be safely read concurrently, as the underlying library uses global state. Depending on your build of hdf5 (which underlies netcdf4) you may have a lock at the c level, otherwise you need to use lock=True for things to work properly. I'm surprised your call to compute produces results, my non-threadsafe build fails at a c level assert in the underlying library and kills the process.

Closing for now as stale. It sounds like your issue was solved by specifying lock=True. Feel free to reopen if you're still experiencing problems.


plot 2D/3D points with labels

Is it possible to plot 2d/3d points with labels? That would be useful for visualizing word embeddings for example. Thanks.

You can use the gnuplot.raw() function to enable it.

As an example, for anyone wondering in the future:
    g.pngfigure('plots.png')
    g.title('Plots of data')
    g.raw("plot 'data.txt' using 2:3:(sprintf('(%d)', $1)) with labels point pt 7 offset char 1,1 notitle")
    g.raw("set term png size 1280, 960") -- sets size of plot
    g.xlabel('x')
    g.ylabel('y')
    g.plotflush()

where data.txt might look like this:
1     0.34    0.5
2     0.26    0.6
3     0.11    0.7
...

However, are there ever plans to add labeling support natively? Labels seem important and someone not versed in gnuplot may struggle with finding the right raw command.

@suryabhupa the answer is no, unless someone sends a PR.

While the labeling might be more of a specific case, I can add an example in the docs?

sounds good

See #39.


Excel Formating | Add Companie Name & Studio Location

Add Companie Name
Add Studio location
Merge cells
Center String

Integrated this feature


Add days of the week to the front page

Please change "Oct 15-17th 2016" to "Sat–Mon Oct 15–17, 2016"
at http://www.hackseq.com/

Thanks, Artem!


Pending label containing curly bracket crashes

	<x:pending>
		<x:label>{</x:label>
		<x:scenario label="scenario" />
	</x:pending>

or
	<x:pending label="{">
		<x:scenario label="scenario" />
	</x:pending>

or
<x:scenario label="scenario" pending="{"/>

crashes both on XSLT and XQuery

@AirQuick: I see that you logged several issues related to curly brackets. I found an issue where the compiled test is invalid if //x:context/x:param/@select uses syntax like select="map{'key': 'myvalue'}". Should I log a new issue, or does what I described sound redundant with what's already fixed in #463?

@galtm
Can you log a new issue?
I didn't know the problem you found. If it's already fixed, it's just an incidental result of a certain fix.

@AirQuick
Here is the new issue: https://github.com/xspec/xspec/issues/538


Action cleanup

Applied mkpr on .github/workflows/ci.yml
sed /      - run: npm ci/d

Pull Request Test Coverage Report for Build<PHONE_NUMBER>4
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 95.161%

Totals

Change from base Build<PHONE_NUMBER>7:
0.0%

Covered Lines:
54

Relevant Lines:
56

💛  - Coveralls


Fixing text when reverting changes for deleted file

This fixes https://github.com/Microsoft/vscode/issues/55915
cc: @joaomoreno

Thanks! :beers:


FIX: Two minor amends to #507

Quickfix for two problems:

[x] Pin PyBIDS >=0.10.2 which includes bugfixes to build_path (this did not jump out in pinned smriprep, fmriprep, etc. because those projects are already pinned that way, and because we might not have reproduced the bugs).

[x] Improved stripping of .gz extensions. We were using rstrip with the following caveat:
>>> "some.file.svg".rstrip(".gz")
'some.file.sv'

This PR uses a regexp to ensure this is not occurring. Also, it fixes niworkflows.utils.misc.splitext for the same issue. just adds a couple of doctests to better cover that function.

These changes should be noncontroversial, and since I'm holding poldracklab/smriprep#183 off for this, I'll go ahead and merge.


Added Json serialization sample and local functions C# 7.0 sample

Summary
Describe your changes here.
Fixes #Issue_Number, dotnet/docs#Issue_Number or dotnet/dotnet-api-docs#Issue_Number (if available)

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: yasha14 sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

@yasha14
Did you open this PR in the correct repository? This repo is for samples that we include in the .NET documentation on Microsoft Docs.  I don't see any article that would reference this sample. Is it incomplete? Was it meant for some other location?
Let us know, and we can provide guidance to route you to the correct additions so this is ready to merge.


Update elemental.html to update link to logo on sheet (Bugfix)

Submission Checklist
Required

[x] The pull request title clearly contains the name of the sheet I am editing.
[x] The pull request title clearly states the type of change I am submitting (New Sheet/New Feature/Bugfix/etc.).
[x] The pull request makes changes to files in only one sub-folder.
[x] The pull request does not contain changes to any json files in the translations folder (translation.json is permitted)

New Sheet Details

The name of this game is: <   >  (i.e. Dungeons & Dragons 5th Edition, The Dresden Files RPG)

The publisher of this game is: <   > (i.e. Wizards of the Coast, Evil Hat)

The name of this game system/family is: <   > (i.e. Dungeons & Dragons, FATE)

[ ] I have followed the Character Sheets Standards when building this sheet.

[ ] This sheet has been made on behalf of, or by, the game's publisher.
[ ] This game is not a traditionally published game, but a copy of the game rules can be purchased/downloaded/found at: <   >
[ ] This sheet is for an unofficial fan game, modification to an existing game, or a homebrew system.

Changes / Description

The logo wasn't displaying in the character sheet due to a broken link. Updated link works locally, so should be good to go.

Character Sheet Info Roll20 Internal Use only.


Slack invite link is no longer active.

The link in the README doesn't work for me: https://argoproj.github.io/community/join-slack

+1

Slack link should work now. Feel free to reopen if it still doesn't.


feat: support overlapping marks #34 based on (#52)

This adds support for overlapping marks to both text elements and nodes, it is based on (#52) but is:

based in a much more recent branch which adds node mark support (#157)
supports multiple node marks based on the work set up by (#157)
passes tests

@dmonad Would love for this to be supported! Is this something you'd consider merging?


Specify different extract path

I also need option to extract to different path. I have added code to point to different path, if not set it will point to out-file-path as intended in current code or else to specified path

I just intended to combine these both steps as robinraju/release-downloader action already has code to extract files so I added to specify different directory
- name: Download release artifact
  uses<EMAIL_ADDRESS>  with:
    tag: ${{ steps.latesttag.outputs.tag }}
    fileName: just-${{ steps.latesttag.outputs.tag }}-${{ matrix.TARGET }}.*
    out-file-path: './release'
- name: Extract and Copy Binary
  shell: bash
  run: |
    mkdir -p ./target/${{ matrix.TARGET }}/release
    if [[ ${{ matrix.OS }} == 'windows-2022' ]]; then
      unzip ./release/just-${{ steps.latesttag.outputs.tag }}-${{ matrix.TARGET }}.zip -d ./target/${{ matrix.TARGET }}/release/
    else
      tar -xzf ./release/just-${{ steps.latesttag.outputs.tag }}-${{ matrix.TARGET }}.tar.gz -C ./target/${{ matrix.TARGET }}/release/
    fi


[Feature Request] LaTeX with Chinese support

command
/tex 你好世界

output
png picture generated by TeX compiler

closed due to the misleading readme.md


fixes #1037: ES6: support computed property names

Support for computed property names (#1037).
This also relaxes the restrictions on duplicate property names according to the new ES6 spec. It is a precursor for this change.
I'll fix the AST format after the discussion on the topic.
I will also be happy to rebase after #1036.

Bother... Github stopped to diff the long test.js file... Another reason to break it down!

Looks good now :+1: Can you also rebase @ikarienator?

Rebased.

Rebased again.

Landed. Thank you @ikarienator


Fix history tab refreshing layout issue

Description
The issue was that we weren't hiding the empty layout when there were elements to be rendered.
Related issues
#4219

Merging. Thanks :-)

Can still reproduce with Open Pet Food Facts

actually, it's all fixed. my bad


[libgd] update to 2.3.x and later

Library name: libgd
New version number: 2.3.x
Good morning :)
Thanks for the great work here!
We are the libGd teams and finally cleaning up the building scripts to only rely on CMake and autoconf.
I see that libgd is already in the list of available packages but it seems stuck to 2.2.x.
What would be the process to add our own registry, anything else than https://devblogs.microsoft.com/cppblog/registries-bring-your-own-libraries-to-vcpkg/ ? Given it is in there already.
We have a task for it https://github.com/libgd/libgd/issues/724
Mainly about missing deps. To see where it fits best (libxpm and libimagequant are not yet on vcpkg).
Thanks,
Pierre

@pierrejoye ,Thanks for posting this issue,you can refer [New port] label submit a pr add your registry to vcpkg.

@pierrejoye, we have a PR#20068 to update libgd in vcpkg now.

What would be the process to add our own registry, anything else than https://devblogs.microsoft.com/cppblog/registries-bring-your-own-libraries-to-vcpkg/ ? Given it is in there already.

Does this still be a question for you now?

Hi
On Thu, Sep 9, 2021, 5:27 PM Phoebe @.***> wrote:

@pierrejoye https://github.com/pierrejoye, we have a PR#20068 to update
libgd in vcpkg now.
What would be the process to add our own registry, anything else than
https://devblogs.microsoft.com/cppblog/registries-bring-your-own-libraries-to-vcpkg/
? Given it is in there already.
Does this still be a question for you now?

if I can help with the PR, please let me know.
I looked at the current patch in the vcpkg libgd:

I added the intrinsics header fix on windows already (from current
version)

I am however not sure what are the use od the cmake changes in the
current patch in vcpkg libgd

I am about to release 2.3.3. I will then look at the process to get libgd
in vcpkg from libgd/libgd directly, if possible, hopefully next release
could be live on both libgd/libgd and vcpkg at the same time :)

@PhoebeHui good morning :)
Do I understand correctly that using a registry, users will have to add our registry to use it?
What I am looking for is a way to have the default libgd in vcpkg to use our releases, is it possible?  Or does it have to be done by providing a new PR here on each new release?

@pierrejoye, Registry feature provide a solution for managing your project and dependency conveniently. vcpkg itself is a registry. You can create a registry for using the dependency ports(freetype,tiff, webp..) provided by vcpkg.
Currently we need create new PR in vcpkg for each new release.
Eg: Git registry: users only need create 'vcpkg-configuration.json' and configure it in their projects simply.
Eg: vcpkg-configuration.json:
{
"registries": [
{
"kind": "git",
"baseline": "94a566bc8ea2706dafe1457cdd0682e09fd00416",
"repository": "https://github.com/PhoebeHui/vcpkg-registry",
"packages": [ "beicode"]
}
]
}


Missing file in coverage report (Jest)

Hi,
I'm getting coverage issues with Jest.
When I set mapCoverage: true, some files disapear from the coverage report.
Example:
# mapCoverage:true
src/api                |      100 |      100 |      100 |      100 |                |
  index.js             |      100 |      100 |      100 |      100 |                |
  linkHeaderParser.js  |      100 |      100 |      100 |      100 |                |
  repositories.js      |      100 |      100 |      100 |      100 |                |
src/components         |     7.84 |     2.94 |     5.88 |    11.76 |                |
  FileExplorer.vue     |        0 |        0 |        0 |        0 |... 51,52,53,54 |
  MenuUserRepoList.vue |        0 |        0 |        0 |        0 |... 32,33,34,35 |
  Profile.vue          |        0 |        0 |        0 |        0 |... 57,58,59,60 |
  Readme.vue           |       80 |       50 |       50 |       80 |             23 |

# mapCoverage:false
src/api                |    92.86 |    84.21 |      100 |    92.86 |                |
  index.js             |    84.62 |    66.67 |      100 |    84.62 |          10,26 |
  linkHeaderParser.js  |      100 |      100 |      100 |      100 |                |
  repositories.js      |      100 |      100 |      100 |      100 |                |
  users.js             |      100 |      100 |      100 |      100 |                |
src/components         |     53.4 |    29.73 |    40.74 |    51.61 |                |
  FileExplorer.vue     |        0 |        0 |        0 |        0 |... 51,52,53,54 |
  FooterBar.vue        |    92.86 |       50 |      100 |      100 |        4,5,6,7 |
  MenuNavBar.vue       |      100 |       50 |      100 |      100 |       20,21,22 |
  MenuUserRepoList.vue |        0 |        0 |        0 |        0 |... 32,33,34,35 |
  Profile.vue          |        0 |        0 |        0 |        0 |... 57,58,59,60 |
  Readme.vue           |    94.74 |    57.14 |       80 |    92.86 |             25 |
  RepoListItem.vue     |      100 |       50 |    66.67 |      100 |       45,46,47 |

(I remove some file for a better readability. See full coverage report (link to travis build):
All sources files are available here: https://github.com/maxpou/gitvub and jest config here
Thank you

that would probably an issue to report at https://github.com/eddyerburgh/vue-jest - since it only seems to affect .vue files.

Related to this issue—https://github.com/facebook/jest/issues/4509#issuecomment-344976940
I'll look into this issue, I'm unsure whether it's a problem with vue-jest or jest. @maxpou I'm copying your issue to the vue-jest repo

@eddyerburgh Please link the new issue here and close this one ok? thanks

Issue in vue-jest— https://github.com/eddyerburgh/vue-jest/issues/32
I don't have permission to close this issue 😉

Thanks guys. Then, I will keep an eye on vue-jest issue.


Use name instead of short_id for resource S3 keys

Pre-Flight checklist

[x] Testing

[x] Code is tested
[x] Changes have been manually tested

What are the relevant tickets?
N/A
What's this PR do?
Uses website.name instead of website.short_id for file resources imported from google drive.  Adds a management command for fixing resources that have the wrong s3 keys.
How should this be manually tested?
Run manage.py move_misplaced_s3_keys.  When complete, make sure the WebsiteContent.file fields for existing non-video resources have Website.name instead of Website.short_id (for websites where they are different), that they are publicly viewable, and that the keys are also updated for the resources in github.
Add new files to Google Drive for a site with differing name vs short_id values and sync them.  Make sure their file field values include the name and not the short_id.
Any background context you want to provide?
The management command doesn't modify any existing video file s3 keys because they are not directly linked to in Studio (youtube only).

@abeglova Ready for another look


Styling in Chrome

First off let me just say great work on this library!
I work on a decentralized crypto currency exchange Bitshares where I've used Highstock to build the trading graphs, but I hope to replace it with this library asap.
I've made some basic progress using your docs (which are awesome btw), but I have this weird styling issue in Chrome that I can't quite figure out. It works fine in Firefox, and your examples also have the correct styling in Chrome, but in my own implementation all the svg styling attributes get ignored. Here's a screenshot of what it looks like in Chrome:
https://github.com/cryptonomex/graphene-ui

And in Firefox:

Any idea what's going on here?
My code is here: https://github.com/cryptonomex/graphene-ui/blob/react-stockcharts/web/app/components/Exchange/PriceChartD3.jsx

can you show this somewhere? I recall having this issue long ago if I remember right, it was a missing close tag somewhere.
If you can recreate this on a plunker or a github page, I will look at what is going on

Thanks for the quick reply. I was able to reproduce it in a Plunkr here:
http://plnkr.co/edit/DLRdnckgY4B09K5QRJ2W?p=preview

this is silly :)
move <TooltipContainer> to the next line

Haha I just noticed that as well!

since you are working on a dark background, check out http://plnkr.co/edit/gist:23dd469fe32d7fc1977c?p=preview

Thanks :)


One small issue-- temp display at -1° F shows 255°

See picture below. The current temp displayed on my thermostat is -1° F, but the Infinitive webpage shows 255°

Update: at -2° F, the temp shows as 254° F, so it clearly seems to be a signed/unsigned 8-bit int issue. I haven't read through / understood all of your code, but wondering if this is as simple as changing OutdoorAirTemp (in tables.go, line 26) and OutdoorTemp (in infinitive.go, line 17) from an uint8 to an int8?
I'll try this, probably tonight, but I need to get a Go environment setup first.

Confirmed that it seems to compile and work properly changing these two declarations to int8 instead of uint8. It's not below zero though, so I can't confirm. It's supposed to be below zero again on Friday.
Note: I don't know git well enough to understand how to propose changes. I believe I need to fork, make the change, and then propose a merge to you-- is that correct?

Cheitzig, Mine shows 255 too.  I don't have an outside temp probe set up and my thermostat doesn't show an outside temperature for that reason.   Just giving you my feedback on what I am seeing.

Confirmed today that my fix fixes the negative temperature issue. Slightly amusing backstory though: I was hoping it was going to be < 0° F, and even got up fairly early, but my thermostat showed 0° F when I got up. But it occurred to me to switch the thermostat into metric mode and then we'd be solidly below zero. Tried it both ways and confirmed my proposed fix solves the problem.
Below is temperature display before the change of the uint8 to int8 in two places in the code:

Below is temperature display after the change of the uint8 to int8 in two places in the code:

@cheitzig Have you seen the work that Will1604 has done?  https://github.com/Will1604/infinitive/network
I was reviewing some of his code, and it seems he has taken the interface and API a bit further. The ACD repository doesn't have all of his changes committed yet.

Thanks. I exchanged comments with @Will1604 about his heat pump messages post, so I'll maybe talk to him next weekend when he has some time.


Failed loading gist. Timeout

10000 timeout might be not enough for loading many gist with slow internet connection. It should increase

Mind submitting a patch? Maybe increase to 20000?

On Jun 4, 2016, at 3:32 AM, Dielz98<EMAIL_ADDRESS>wrote:
10000 timeout might be not enough for loading many gist with slow internet connection. It should increase
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.


Add mls-software-openssh

Another choice of openssh. #2414
chocolatey package

I would suggest split parameters into separate strings and rename it to something like openssh-mls

@Ash258

I have tested that. If args are split, the installation would be broken, you could try it by making a copy locally.
The manifest name is the same as the choco's one, which I prefer to keep uniform app name. But if you like.

Work as expected. Did you followed this page?

For that naming. It would be best to keep all these openssh variations together.

Also isntaller for 32bit could useful.

/x86=#   specify set to 1 to force x86 install on x64.
Based on this it's used by default when on 32bit machine, but someone want to install 32bit while using 64bit machine.

I can't reproduce now, the last time I installed without using admin rights, but now it requires admin rights. Besides, there is no naming standard, so there is no best choice. As an user, I will search apps by typing scoop search openssh, so openssh-mls has no difference with mls-software-openssh for me. But if all openssh variations need to be kept together, it's ok to rename it. Like from win32-openssh to openssh-win32...

Tested with separate arguments and unelevated prompt. Work as expected, but UAC popped.

Just changed to extract mode, now say goodbye to UAC, everything works like a charm.


v12-upgrade: non confirmed users fail to be confirmed

Package version (if known): v12.0.0b3.x
Describe the bug
When upgrading to v12, non-confirmed users will fail to be confirmed, because of the domain column being null.
Expected behavior
User domain should be not required or otherwise an upgrade recipe should be created as part of upgrading to v12. The exact failure happens when the domain is being created automatically from the user.domain here.
Additional context
Associated exception
TypeError: 'NoneType' object is not subscriptable
  File "flask/app.py", line 2529, in wsgi_app
    response = self.full_dispatch_request()
  File "flask/app.py", line 1825, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "flask_cors/extension.py", line 176, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "flask/app.py", line 1823, in full_dispatch_request
    rv = self.dispatch_request()
  File "flask/app.py", line 1799, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "flask_resources/resources.py", line 65, in view
    return view_meth()
  File "flask_resources/content_negotiation.py", line 116, in inner_content_negotiation
    return f(*args, **kwargs)
  File "flask_resources/parsers/decorators.py", line 51, in inner
    return f(self, *args, **kwargs)
  File "invenio_users_resources/resources/users/resource.py", line 140, in activate
    self.service.activate(
  File "invenio_records_resources/services/uow.py", line 350, in inner
    res = f(self, *args, **kwargs)
  File "invenio_users_resources/services/users/service.py", line 230, in activate
    user.activate()
  File "invenio_users_resources/records/api.py", line 247, in activate
    return current_datastore.activate_user(user)
  File "invenio_accounts/datastore.py", line 51, in activate_user
    user_confirmed.send(current_app._get_current_object(), user=user)
  File "blinker/base.py", line 307, in send
    result = receiver(sender, **kwargs)
  File "invenio_accounts/domains.py", line 22, in on_user_confirmed
    domain = datastore.create_domain(user.domain)
  File "invenio_accounts/datastore.py", line 123, in create_domain
    return Domain.create(domain, **kwargs)
  File "invenio_accounts/models.py", line 615, in create
    obj = cls(
  File "<string>", line 4, in __init__
  File "sqlalchemy/orm/state.py", line 482, in _initialize_instance
    manager.dispatch.init_failure(self, args, kwargs)
  File "sqlalchemy/util/langhelpers.py", line 70, in __exit__
    compat.raise_(
  File "sqlalchemy/util/compat.py", line 211, in raise_
    raise exception
  File "sqlalchemy/orm/state.py", line 479, in _initialize_instance
    return manager.original_init(*mixed[1:], **kwargs)
  File "sqlalchemy/orm/decl_base.py", line 1200, in _declarative_constructor
    setattr(self, k, kwargs[k])
  File "sqlalchemy/ext/hybrid.py", line 938, in __set__
    self.fset(instance, value)
  File "invenio_accounts/models.py", line 634, in domain
    if value[-1] == ".":

i couldn't reproduce this bug:
Steps

created a user with

invenio users create<EMAIL_ADDRESS>--password 123456 --active

check table accounts_domains. no entry for no-do.org.

check table  accounts_user, column confirmed_at is None

in the administration/users view:
clicked on block user<EMAIL_ADDRESS>

in the administration/users/blocked view:
clicked on activate user<EMAIL_ADDRESS>

Result

no errors
on_user_confirmed function has been called
check table accounts_domains. now entry with no-do.org exists
check table accounts_user, user is confirmed now


[Insets] Applied Navigation bar turns Transparent

I am trying to build a screen with the content starting right behind the navigation bar. However, the navigation bar turns transparent just like in the example from the docs has transparency.
How to make it solid background?

Code To Reproduce
val scrollState = rememberLazyListState()
var isScrollStateChanged by remember { mutableStateOf(false) }
isScrollStateChanged = scrollState.firstVisibleItemScrollOffset != 0

val position by animateFloatAsState(if (isScrollStateChanged) 0f else -45f)
val listItems = (1..100).toList()

ProvideWindowInsets {
    Surface(
        modifier = Modifier
            .fillMaxSize()
            .systemBarsPadding(),
        color = Color.White
    ) {
        Box(Modifier.fillMaxSize()) {
            TopAppBar(
                content = { Text("Hello nav bar!") },
                modifier = Modifier
                    .offset(0.dp, position.dp)
                    .alpha(min(1f, 1 + (position / 45f)))
                    .navigationBarsPadding(bottom = false),
                backgroundColor = Color.Red
            )
            LazyColumn(
                state = scrollState
            ) {
                items(items = listItems) {
                    Text(
                        "Hello $it",
                        Modifier
                            .padding(20.dp)
                            .fillMaxWidth()
                    )
                }
            }
        }
    }
}

Environment:

Android OS version: Android 11
Device: Emulator, Google Pixel 3A
Accompanist version: v0.17.0

Just realized it's a problem with the ordering of components inside the Box().


Automate release

Codecov Report

Merging #9 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             master     #9   +/-   ##
=======================================
  Coverage        58%    58%
  Complexity     1171   1171
=======================================
  Files           129    129
  Lines          4224   4224
  Branches        515    515
=======================================
  Hits           2450   2450
  Misses         1584   1584
  Partials        190    190

Continue to review full report at Codecov.

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


Valencia bikes exercise

This is a new exercise with analysis about parking stations in Valencia, Spain.

I'm going to merge to have this on master but without removing the branch, so we still need your review @ztephm, we can later fix any issues.


Background image for selected index

Is it possible to add an image or colour as background when we select an index item from slide menu?

Can you describe more detail? Or will be better if you provide a screenshot.

I want to change the colour of the selected item. The selected item in screenshot is Messages. Thank you very much for your help in advance.

Just make a subclass from AMSlideMenuLeftTableViewController and set that class to your left menu form storyboard, and change selected color as you do that usually.


Security Vulnerabilities with debug 2.2.0

Hi @flockonus ,
There are some security vulnerabilities with debug 2.2.0. We are currently using express-interceptor and it is very useful for us.
The issues have been fixed with 2.6.9. I can raise a pull request to upgrade it to version 2.6.9. Please let me know if you can approve that. That'll help us with resolving these issues

Hey @abhishek1191  I'm not an admin of the repo anymore, suggest checking with @EricLin2004 or @pierrebeugnot .
Sending a PR with a dependency update seems straight forward, also could be good to link to the issue with debug, without a reference I have a hard time to imagine how this would turn into something critical.


"helm get" always fails if helm service used requires --tls flag

i suspect this might be resolved with the new repo. i'll close this here. let us know, in the new repo if the problem still exists. https://github.com/kui-shell/plugin-kubeui


accurate average gradient and loss

Is your feature request related to a problem? Please describe.
current average algorithm is E = (s1/cnt1 + s2/cnt2 + ...)/partitions， not a really  mean
Describe the solution you'd like
E = (s1 + s2 + ...)/(cn1 + cnt2 + ...)

In fact, we evaluator two methods in some datasets. The results show that the two methods are very close.
But your solution seems to be better mathematically, so we merged your pr.


Update measure_span.lua

Major functional changes to fully incorporate composite measures in every context (that I can conceive) and provide courtesy display time signatures on composite joins. Prettier. Heavily tested but conflicts may yet emerge.

Major upgrade coming - will now preserve or reconstitute ties, slurs and smart shapes in the vicinity.

More major improvements, extending shape ends on "divide", restoration SPAN, improved shape handling, saving expressions on deleted measures. I think this is it now, having been subject to extensive testing.


disabledDates not working

Subject of the issue
I'm trying to disable days passing disabledDates={[ new Date() ]} as props
            <DateRange
              onChange={this.handleRangeChange.bind(this, 'dateRangePicker')}
              disabledDates={[ new Date() ]}
              showSelectionPreview={true}
              moveRangeOnFirstSelection={false}
              className={'PreviewArea'}
              months={2}
              ranges={[this.state.dateRangePicker.selection]}
              direction="horizontal"
              showDateDisplay={false}
            />

[BUG] Bug Reproduce Steps
After adding the disabled data I can select it without any problem
[BUG] Expected behaviour
Environment
Package Version: 1.0.0-beta1/1.0.0-beta2
React version: 16.4.1
Node version: 8:11:4
Browser: chrome

I ran into the same issue. Do you have a working example?

I am having the same issue. Can u guys tell me how you work this out? :+1:

I also ran into this one. Anyone figured out how to solve this?

@mingjunlu  the temporary solution is #231,  clone the master branch and build dist our own.
But I thinks we should publish it to npm asap. Or you could fork the Repo and publish to your own package manage space

@mingjunlu the temporary solution is #231, clone the master branch and build dist our own.
But I thinks we should publish it to npm asap. Or you could fork the Repo and publish to your own package manage space

@bleachdugu Get it! Thanks for your help 👍


Measure power rather than energy

Hello,
This is a question rather than an issue, so apologies if I'm posting in the wrong place. Is there a way to get the tool to report Package and DRAM power data rather than energy? I'm repeatedly triggering the measurement every 51 ms using the -e flag and outputting the measurements to a csv file. Is the best method just to calculate the power myself using the time and energy measurements, or is there a more precise way to measure the power directly? Slightly confused since of course RAPL stands for Running Average Power Limit but all the data reported from the msrs seems to be energy.
Many thanks,
Trevor

Are you talking about CPU Energy Meter? It has an -e option, but it affects only the internal measurement frequency (which is irrelevant for most users and should usually be computed automatically instead) and does not cause repeated output. How are you achieving this?
But yes, the CPU only reports accumulated energy consumption. Power can be computed from this using time and and energy difference, but note that it will be always an average power for the respective time interval. (And for short measurement intervals, a low resolution of the energy measurements could introduce significant errors in the computation, not sure whether this would be the case for 51ms.)
The name Running Average Power Limit refers to something else, actually, namely the possibility to limit how much power the CPU consumes on average, which is apparently what Intel considers to be the main feature of this functionality. Energy measurements are more like a side effect of RAPL.

Thanks for the reply! That's all very helpful. Yes, I'm talking about CPU Energy Meter. To get repeated output I simply copied the line print_results(num_node, cum_energy_J, measurement_start_time, measurement_end_time, fpt) that gets executed on SIGINT or SIGUSR1 to the body of the while loop like so:
static int measure_and_print_results(FILE *fpt) {

  const int num_node = get_num_rapl_nodes();
  struct timeval measurement_start_time, measurement_end_time;
  double prev_sample[num_node][RAPL_NR_DOMAIN];

  // Read initial values
  if (get_total_energy_consumed_for_nodes(num_node, prev_sample, NULL) != 0) {
    return 1;
  }
  gettimeofday(&measurement_start_time, NULL);

  double cum_energy_J[num_node][RAPL_NR_DOMAIN];
  memset(cum_energy_J, 0, sizeof(cum_energy_J));
  const struct timespec signal_timelimit = compute_msr_probe_interval_time();
  const sigset_t signal_set = get_sigset();

  // Actual measurement loop
  while (true) {
    // Wait for signal or timeout
    const int rcvd_signal = sigtimedwait(&signal_set, NULL, &signal_timelimit);

    // print to csv
    print_results(num_node, cum_energy_J, measurement_start_time, measurement_end_time, fpt);
    // handle errors
    if (rcvd_signal == -1) {
      if (errno == EAGAIN) {
        DEBUG("Time limit elapsed, reading values to ensure overflows are detected.%s", "");
      } else if (errno == EINTR) {
        // interrupted, just try again
      } else {
        warn("Waiting for signal failed.");
        return 1;
    }
    // make sure to read in each iteration, otherwise we might miss overflows
    if (get_total_energy_consumed_for_nodes(num_node, prev_sample, cum_energy_J) != 0) {
      return 1;
    }

    // handle signals
    if (rcvd_signal != -1) {
      gettimeofday(&measurement_end_time, NULL);
      DEBUG("Received signal %d.", rcvd_signal);
      if (rcvd_signal == SIGINT) {
        // printf("\nprinting results\n");
        print_results(num_node, cum_energy_J, measurement_start_time, measurement_end_time, fpt);
        break;

      } else if (rcvd_signal == SIGUSR1) {
        print_results(num_node, cum_energy_J, measurement_start_time, measurement_end_time, fpt);

      } else {
        warnx("Received unexpected signal %d", rcvd_signal);
        return 1;
      }
    }
  }

  return 0;
}

In retrospect though that's pretty hackish and probably not exactly what I want to do. Should I be sending a SIGUSR1 signal to the process periodically instead to accomplish what I want?

Yes, I'm talking about CPU Energy Meter. To get repeated output I simply copied the line

Ah I see. Please always indicate if you are using a modified version when reporting issues or asking questions to the developers, otherwise this will inevitably lead to confusion.

Should I be sending a SIGUSR1 signal to the process periodically instead to accomplish what I want?

Depends on what you want to do. As explained, there is no way to get power measurements except by sampling energy measurements (with the inherent measurement overhead and imprecision) and derive the power values.
If you still want to do this and use CPU Energy Meter for it, adding a command-line flag with the output interval would be a solution, probably better than using another process to regularly send intervals (which would add further jitter).
A second flag for output in CSV format (similar to -r) would also be possible.
But I think that we probably would not want to compute the power values in CPU Energy Meter itself, but let the user do this on their own, such that they understand the problems related to it.

Ah got it, sorry for the confusion--I'm a relatively new developer so that's good to know. I should be fine calculating average power outside of CPU Energy Meter. All I'd like to do is get periodic measurements of the energy usage for time periods of ~51-200ms. Just to confirm, when you say add a command line flag with the output interval, you mean a new one, not the -e option that already exists, correct? Thanks for all the help.

Yes, exactly. The -e parameter is mostly a relict from the history and useful for debugging, but there is no reason for users to use it, so we better use a new parameter.

Got it, thanks!


Fix golint issues in maya/cmd/maya-apiserver/app/command/start.go

File: maya/cmd/maya-apiserver/app/command/start.go
Line 97: warning: exported function NewCmdStart should have comment or be unexported (golint)

Resources:
-> Contributors guide: https://github.com/openebs/openebs/blob/master/CONTRIBUTING.md
Complexity: Easy

Is this issue still open ?

Not a valid one anymore.. hence closing


Add Compaction coodinator configuration to Coordinator Dynamic Configuration

Description
Automatic Compaction configurations at coordinator level can be done using API. For example, to increase the slot ratio or max slots we use,
curl -ivL -X POST -H 'Content-Type: application/json' -u admin: -k https://coordinator-node:8081/druid/coordinator/v1/config/compaction/taskslots?ratio=0.2
curl -ivL -X POST -H 'Content-Type: application/json' -u admin: -k https://coordinator:8081/druid/coordinator/v1/config/compaction/taskslots?max=10
Why not include this as part of either Coordindator Dynamic Config page or a as a new page in Druid Console?
Motivation
This would make it easier to manage the compaction settings.

Is it possible to do that operation via an API that is based around posting a JSON payload and not a query parameter in the URL? If not it should be.

Is it possible to do that operation via an API that is based around posting a JSON payload and not a query parameter in the URL? If not it should be.

I can do that, but why should it be the JSON payload?


donated item routes and validators along with the models #24

Pull Request Template
Fixes #24
What was changed?
This update implements API routes and validation logic for managing Donated Items and their Statuses in the backend. It includes the Prisma schema updates, API endpoints, and validation logic to handle creating, retrieving, updating, and deleting Donated Items and their corresponding statuses.
Notable Changes:
-API Routes: Created new endpoints for the DonatedItem and DonatedItemStatus models to support CRUD operations, ensuring proper relation management.

POST /donatedItem: Create a new donated item and its initial status.

GET /donatedItem: Fetch all donated items with their statuses.

PUT /donatedItem/details/{id}: Update the details of an existing donated item.

PUT /donatedItem/status/{id}: Update the status of a donated item.

DELETE /donatedItem/{id}: Delete a donated item and cascade the removal of its statuses.

Prisma Schema Updates: Added reverse relations between DonatedItem and DonatedItemStatus. This allows us to track multiple status updates for a single donated item.
Validation: Added Joi validation to ensure the data integrity of incoming requests, particularly for creating and updating donated items.
Why was it changed?
This implementation provides complete management for donated items and their statuses within the Material Donor Mutual Assist application. The addition of validation and API routes ensures that the data remains clean and structured while enabling the client to interact with the backend effectively. The Prisma schema updates are necessary to handle the many-to-one relationship between donated items and their status updates, which allows us to track changes in item statuses over time.
This is critical for maintaining accurate records of donated items and their processing statuses within the application, which ensures transparency and proper management of the donation lifecycle.
How was it changed?

API Endpoints: Added new routes to donatedItemRoutes.ts to handle the required CRUD operations, including status updates and cascading deletion.

Prisma Schema: Updated the DonatedItem and DonatedItemStatus models with reverse relations and indexes, ensuring relational integrity in the database.

Validators: Integrated Joi validation in a dedicated validators.ts file to enforce proper data formats and avoid invalid input during item creation and updates.

Key updates include:

New API routes for donated items and statuses.

Prisma schema adjustments to handle one-to-many relations between donated items and statuses.

Joi validation for item and status creation and updates.

Ensured cascading deletion between DonatedItem and DonatedItemStatus models.

This update improves the robustness and reliability of the backend, especially when dealing with donated items and tracking their processing statuses.
Screenshots that show the changes (if applicable):

Before:

After:

@miabu-pashh  changes looks good. Thank you.
Please fix merge conflicts to be able to merge.


Feature requests

Great work on this extension! Of the dozen+ note management extensions for VS Code I've tried, yours is by far my favorite. Thank you for putting the time into it.
There are a few things that would make it even more amazing than it already is in my opinion:

The ability to rename notes from within the tree view
The ability to drag and drop notes between folders
The option to assign a keyword (a "prefix" in VS Code's vernacular) to a given snippet to have it auto-expand within the VS Code editor (you can determine the scope based on the file extension)

I hope you'll consider adding these features in the future.
Thanks again for all your work on this.

I just see your comment now. Thanks for the feedback, that is definitely something that I will do in future versions.


Modifications to fix two of the nse APIs

This PR is raised to fix the following two APIs:

nseindices/ratios

nseindices/returns

The following query needs to be added in the requests of both the APIs:
'index_name'

Update the project on apidog and re-trigger build to check if all's well.


Correct typos

Current coverage is 89.36% (diff: 100%)

Merging #2238 into master will not change coverage

@@             master      #2238   diff @@
==========================================
  Files            39         39
  Lines          1467       1467
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           1311       1311
  Misses          156        156
  Partials          0          0

Powered by Codecov. Last update f5405d1...dc23e81

What's wrong with prorerty?

Thanks!


1.4.x into 1.5.x (DEV)

I previously did "master into 1.4.x" and resolved a lot of conflicts caused by prior stuff. We are pulling these resolved conflicts and our commit history straight here to not get caught by conflicts when needing to do hotfixes in the future.


[4.2][Bug fix][Ready] List operation - always have an empty first column

Fixes #2839  by merging @promatik 's PR #2891 and adding very few improvements:

padding on empty table content
padding on the first column is zero only when it's empty

My tests show this is 100% working and ready to be merged. However, since there are changes in list.css and that file does NOT get published by default upon composer update (see #2246 ), people who just run composer update would get the NEW HTML, but keep the OLD CSS. That means that what they see would be this:

The above doesn't look that bad in Categories, but it DOES in other tables. And there are few other quirks.
This means that we cannot merge this as a non-breaking change. We have to wait until 4.2 to launch it, unfortunately 😢

A new inspection was created.

The inspection completed: No new issues

Let's close this in favour of https://github.com/Laravel-Backpack/CRUD/pull/3331 which will get merged into 4.2 🥳

@promatik - heads-up, turns out we did NOT merge this. Notice we deferred this being fixed when we merge #3331


Reduce d3 footprint [leapfrog]

Currently we're requiring the whole d3 package to use only a few helper functions. This was made because in d3 v3 you couldn't require isolated modules. This is now possible so my solution is to require only the needed packages.
This way we go from

to

Reduction
From 146.2K to 24.9K!!!
From 52.5K to 8.7K (gzipped)!!
83% of size reduction. ❗❗ 👏 👏
Tests
I made tests with the previous versions of d3 array functions to get values and check that it remained the same when switching to single packages. I deleted them because they are meaningless outside this refactor.
I added tests to formatter.formatDate. They didn't exist before and it's useful to keep them.

👏


Typo in api-docs (interface: TLSConfig)

There is a typo in: https://github.com/mostafa/xk6-kafka/blob/main/api-docs/docs/interfaces/TLSConfig.md
https://github.com/mostafa/xk6-kafka/blob/fc71c8b09d67a898481a9b640b7c5b89b37d3802/api-docs/docs/interfaces/TLSConfig.md?plain=1#L12
https://github.com/mostafa/xk6-kafka/blob/fc71c8b09d67a898481a9b640b7c5b89b37d3802/api-docs/docs/interfaces/TLSConfig.md?plain=1#L66-L68
serverCertPem should be serverCaPem.

Hey @bertalan-radostyan,
thanks for spotting the typo 🙏. I'll fix it ASAP.

Fixed. ✅ Thanks! 🙏


BUG: scipy.special - Debugged a case of faulty output of hyp2f1 function

In hyp2f1(a,b,c,x)
Consider the condition where c is neg non integer and a,b > 0 and 0 < x < 1.
The function fails at present.
Note : Fixes issue #3479

I'm going to close this due to age.


react-instantsearch-dom is deprecated

package has moved to react-instantsearch

https://www.npmjs.com/package/react-instantsearch-dom

How about this: https://github.com/meilisearch/mini-dashboard/pull/554


about Hash usage

i'm still testing the (newest) 4KU2 versions by compiling them and let them play with several engines in CuteChess (on Linux). I gathered a lot of (weaker) open source engines and i try to match opponents with similar rating - my current guess of 4KU2 rating is 2100. These are all seperate games (10 min + 3 sec bonus), i mean i do no tournament in CuteChess.
i like your minimalistic approach .. although i'm not a C++ programmer (but mainly Python and JS), your code seems very well written and is just one small cpp file! The UCI subset which you use is enough for playing in CuteChess (or similar), it understands just "position startpos moves [...]" and "go wtime 603000 btime 603000 winc 3000 binc 3000" or similar.
i guess 4KU2 is not for playing in terminal, but it can be done. Looking at the games 4KU2 plays in CuteChess, i see it has a natural way of developing the pieces and pawns. Using the same time settings in all games, 4KU2 seems rather consistent in its openings, only a few times it plays another variation (when the opponent played known opening moves). I guess in such case both moves have almost equal eval, maybe the hash 'decided' the "best move" ?  To test a position with different settings, i used terminal by entering the proper (large) move list to reach that position .. i had some odd results, maybe hash is involved ? Then how ? Could such tests help your development ? Can you reproduce them anyway ? - myself i didn't redo the same terminal sessions to see if they would lead to the exact same results .. btw. i use a rather modern avx2 notebook and Xubuntu 22.04
i want to show the terminal output concerning this position :

UCI : position startpos moves e2e4 b8c6 d2d4 d7d5 e4e5
FEN : r1bqkbnr/ppp1pppp/2n5/3pP3/3P4/8/PPP2PPP/RNBQKBNR b KQkq - 0 3

This is a well known position in chess theory. Most positions can be reached by altered move order, but normally the game went like this :

e4 Nc6

This opening is called the Nimzowitch Defence. 4KU2 also prefers e4 on move 1, but with Black it would answer the good standard e7e5 :
ucinewgame
id name 4ku2
id author kz04px
uciok
position startpos moves e2e4
go wtime 603000 btime 603000 winc 3000 binc 3000
bestmove e7e5

Our game continues with :
2. d4 d5
4KU2 prefers Nf3 on move 2, but after 2.d4 it also prefers to answer d5 with Black :
position startpos moves e2e4 b8c6
go wtime 603000 btime 603000 winc 3000 binc 3000
bestmove g1f3
position startpos moves e2e4 b8c6 d2d4
go wtime 603000 btime 603000 winc 3000 binc 3000
bestmove d7d5

Our game continues with :
3. e5 ...
Here 4KU2 prefers not to advance the e-pawn, it likes to keep the initiative by e4xd5 :
position startpos moves e2e4 b8c6 d2d4 d7d5
go wtime 603000 btime 603000 winc 3000 binc 3000
bestmove e4d5
position startpos moves e2e4 b8c6 d2d4 d7d5 e4e5
go wtime 603000 btime 603000 winc 3000 binc 3000
bestmove f7f6

We reached the position of the diagram.

Here, the two moves Bf5 and f6 (which indeed are best according to SF) are both 'best move' after some time, but why do they toggle ?

I suppose the two moves are just scored about equally and 4ku can't really pick between them. Searching on the same position multiple times is not necessarily going to return the same results. Each search still runs in its entirety and uses TT entries from previous searches.

TT size is currently specified in number of entries rather than megabytes. 2 million entries at 32 bytes each is 64 megabytes.
You can find and change the engine "options" here:
const int MAX_TT_SIZE = 2000000;
const int thread_count = 1;

can the Hash / TT be cleared ?

Absolutely. The ucinewgame command will clear the TT entirely. All engines should do this.

maybe a user Hash setting is not useful ?

There are plans to introduce UCI setoption so that hash size and number of search threads can be set when the engine is running, but this hasn't yet been implemented. It'd be useful so 4ku can more easily play in tournaments where these values must be set for fairness.

so, your answer shows that Hash / TT indeed is causing the move 'toggle' ? ... can you elaborate a bit about this (strange?) fluctuating behaviour ?

When searching, positions and information about them like evaluation are entered into the TT (transposition table). Later in the search, or even in a different search entirely, the engine can check whether a position is already stored in the TT. If a position is already in the TT, then the information stored can be used again instead of working it out for a second time. For example, if the position after 1. e3 e6 d3 d6 is searched and stored in the TT, then we can arrive at the same position through transposition with the moves 1. d3 d6 e3 e6. Instead of searching this second (and identical) position twice and wasting time, we can instead use the information inside the TT. This speeds up the search as it's far more efficient.

One could expect the engine giving the same best move everytime, eg. after a restart ..

If you search the same position twice then the TT entries from the first search might change the results of the second search. If you either clear the TT (using ucinewgame) or restart the engine between the two searches, then the output should be more or less the same. There are some things that can still change the outcome though, such as precise timing on how long the engine searched for.

Thanks for this info. When i think about it, i wonder how this Hash / TT mechanism works in practice : when the Hash is big, doesn't it take (too much) time looking for a (transposed) position? And will positions, which can no longer occur, be removed from the Hash ? Therefor i guess the Hash should not be too big, to be efficient ? Some engines have a default Hash 1 Mb, while others use default eg. 256 Mb ..

when the Hash is big, doesn't it take (too much) time looking for a (transposed) position?

The TT entries are stored in an array or equivalent. The hash of the position is used to figure out where in the array the relevant entry might be found. This is usually done in the form index = hash mod num_entries. This means that finding the entry we want always costs the same regardless of the TT's size - one RAM lookup. Of course, the CPU cache might mean this isn't practically true all the time.

And will positions, which can no longer occur, be removed from the Hash ?

No. The only way entries are removed from the TT are if ucinewgame is called, or if they get overwritten by new entries.

i guess the Hash should not be too big, to be efficient ? Some engines have a default Hash 1 Mb, while others use default eg. 256 Mb ..

If a very large TT size is used on a very short search, then the search won't have enough time to fill the TT with useful information - it will be mostly empty. In this sense, I would say the TT is inefficient in its RAM usage.
In terms of strength, I don't see how increasing the TT size could be worse. Though again, perhaps if the TT fits entirely into the CPU's cache things might be different? Engines on very strong hardware, like at the TCEC, will use 10s of GBs for their TT.


Validate variants before downloading php

$ phpbrew install 5.6.9 +undefined
===> phpbrew will now build 5.6.9
===> Loading and resolving variants...
Exception: Variant 'undefined' is not defined.

@marcioAlmada Thanks!


C++ exception in 'nativeFlushQueueImmediate'

Is this a bug report?
YES

Have you read the Contributing Guidelines?
YES
Environment

react-native -v: 0.47.1
node -v: 2.0.1
npm -v: 5.3.0

Then, specify:

Target Platform: IOS

Development Operating System: Mac El-Capitan

Build tools: Xcode

Steps to Reproduce

(Write your steps here:)

The below errors keep coming up randomly when I try to navigate to a screen. I use react native navigation.

Expected Behavior

The errors should not show up randomly
Actual Behavior

Sep 18 18:36:28 assertiond[24518]: assertion failed: 15G1108 13A344: assertiond + 12188 [93893311-6962-33A7-A734-E36F946D8EBA]: 0x1
Sep 18 18:36:29 --- last message repeated 1 time ---
Sep 18 18:36:29  AppName[28907]: C++ exception in 'nativeFlushQueueImmediate'

  Did not get valid calls back from JS: [[78,31],[1,0],[[365,100,1505739989356,false]],3027]
Sep 18 18:36:29  AppName[28907]: Unhandled JS Exception: C++ exception in 'nativeFlushQueueImmediate'

  Did not get valid calls back from JS: [[78,31],[1,0],[[365,100,1505739989356,false]],3027]
Sep 18 18:37:00  routined[24502]: CoreLocation: Error occurred while trying to retrieve motion state update: CMErrorDomain Code:104x

Reproducible Demo

There is no predictible way to reproduce this. It just occurs at random on screen navigation.
(Paste the link to an example project and exact instructions to reproduce the issue.)

I get this error when I'm uploading images to S3
2017-11-13 13:05:41.696 [warn][tid:com.facebook.react.JavaScript] Possible Unhandled Promise Rejection (id: 0):
Error: C++ exception in 'nativeFlushQueueImmediate'

Malformed calls from JS: field sizes are different.

[[58,58,58,58,58,58,15,27],[4,4,4,4,4,4,1,0],[[1],[1],[1],[1],[1],[1],[136,100,1510545939677,false]],5224]
nativeFlushQueueImmediate@[native code]

im having this problem too, using react-navigation, navigating to another screens
we are using setParams (if that helps to debugging)

Same issue here. Reproducable only when set image for title in StackNavigator. If manually set text, everything is fine.

i guess the issue is title doesn't take anything other than a string, i was putting  in the title and that caused the error. I moved the Button to headerRight and the error hasn't appeared since.

I was also experiencing a similar issue with a component as screen title. What I found out is that react-navigation was trying to use that same component as a text for the back button, something that is actually not possible.
The workaround I've found is setting navigationOptions.headerBackTitle explicitly on the screen that triggers the navigation.

Awesome workaround by @albertogasparin - works like a charm.

I'm getting that issue but changing the orientation of the device:
Error: C++ exception in 'nativeFlushQueueImmediate'

Overflow during conversion: "16674997633781072000"

This error is located at:
    in RCTView (at View.js:113)
    in View (at Row.js:184)
    in Row (at index.js:134)
    in RCTView (at View.js:113)
    in View (at Column.js:215)
    in Column (at index.js:133)
    in RCTView (at View.js:113)
    in View (at Row.js:184)
    in Row (at index.js:129)
    in RCTView (at View.js:113)
    in View (at createAnimatedComponent.js:134)
    in AnimatedComponent (at TouchableOpacity.js:239)
    in TouchableOpacity (at index.js:128)
    in RCTScrollContentView (at ScrollView.js:748)
    in RCTScrollView (at ScrollView.js:856)
    in ScrollView (at index.js:127)
    in RCTView (at View.js:113)
    in View (at Row.js:184)
    in Row (at index.js:126)
    in RCTView (at View.js:113)
    in View (at Grid.js:46)
    in Grid (at index.js:124)
    in RCTScrollContentView (at ScrollView.js:748)
    in RCTScrollView (at ScrollView.js:856)
    in ScrollView (at KeyboardAwareScrollView.js:27)
    in KeyboardAwareScrollView (at Content.js:10)
    in Content (at connectStyle.js:384)
    in Styled(Content) (at index.js:123)
    in RCTView (at View.js:113)
    in View (at Container.js:15)
    in Container (at connectStyle.js:384)
    in Styled(Container) (at index.js:99)
    in ProductList (at SceneView.js:31)
    in SceneView (at CardStack.js:405)
    in RCTView (at View.js:113)
    in View (at createAnimatedComponent.js:134)
    in AnimatedComponent (at Card.js:26)
    in Card (at PointerEventsContainer.js:55)
    in Container (at CardStack.js:436)
    in RCTView (at View.js:113)
    in View (at CardStack.js:365)
    in RCTView (at View.js:113)
    in View (at CardStack.js:364)
    in CardStack (at CardStackTransitioner.js:97)
    in RCTView (at View.js:113)
    in View (at Transitioner.js:187)
    in Transitioner (at CardStackTransitioner.js:49)
    in CardStackTransitioner (at StackNavigator.js:60)
    in Unknown (at createNavigator.js:52)
    in Navigator (at createNavigationContainer.js:216)
    in NavigationContainer (at App.js:38)
    in RCTView (at View.js:113)
    in View (at Root.js:14)
    in Root (at connectStyle.js:384)
    in Styled(Root) (at App.js:37)
    in Unknown (at renderApplication.js:35)
    in RCTView (at View.js:113)
    in View (at AppContainer.js:102)
    in RCTView (at View.js:113)
    in View (at AppContainer.js:122)
    in AppContainer (at renderApplication.js:34)

enqueueNativeCall
    MessageQueue.js:231:39
fn
    NativeModules.js:107:38
commitUpdate
    ReactNativeFiber-dev.js:3052:58
commitWork
    ReactNativeFiber-dev.js:2148:92
commitAllHostEffects
    ReactNativeFiber-dev.js:2443:31
_invokeGuardedCallback
    ReactNativeFiber-dev.js:73:23
invokeGuardedCallback
    ReactNativeFiber-dev.js:47:40
commitAllWork
    ReactNativeFiber-dev.js:2478:40
workLoop
    ReactNativeFiber-dev.js:2555:68
_invokeGuardedCallback
    ReactNativeFiber-dev.js:73:23
invokeGuardedCallback
    ReactNativeFiber-dev.js:47:40
performWork
    ReactNativeFiber-dev.js:2593:41
scheduleUpdateImpl
    ReactNativeFiber-dev.js:2728:101
enqueueSetState
    ReactNativeFiber-dev.js:1514:90
setState
    react.development.js:218:31
callback
    Grid.js:36:8
<unknown>
    Grid.js:58:38
_callTimer
    JSTimers.js:156:15
callTimers
    JSTimers.js:411:17
__callFunction
    MessageQueue.js:302:47
<unknown>
    MessageQueue.js:116:26
__guard
    MessageQueue.js:265:6
callFunctionReturnFlushedQueue
    MessageQueue.js:115:17

Thanks in advance, Nicholls

I found some condition which produce same bug:
<View style={[styles.container, { opacity: this.birdOpacity }]}>
bird opacity is dynamically changes by time and it's Animated.Value.
I forgot to change View to Animated.View which produces this bug.

I'm facing this error too... In logcat, I could see the app starts ok, loggin console.log at all (firebase register and auth), the problems occurs when render screen I guess...

I observed nativeFlushQueueImmediate C++ exception error on Android emulator
Environment
react-native-cli: 2.0.1
react-native: 0.55.4
node -v: v8.11.3
yarn -v: 1.7.0
npm -v: 6.2.0
Target Platform: Android
Development Operating System: Mac High Sierra
Build tools: Android studio (3.1.3) > AVD > Emulator (Nexus 5x API 28)
These are two different stack traces of actual issue:


fastly: 5.0.0 -> 5.1.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/fastly/cli/releases.
meta.description for fastly is: Command line tool for interacting with the Fastly API
meta.homepage for fastly is: https://github.com/fastly/cli
meta.changelog for fastly is: https://github.com/fastly/cli/blob/v5.1.0/CHANGELOG.md
Updates performed

Golang update

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 5.1.0 with grep in /nix/store/4mqynmpz2j3g2xhymq4h21glh8848pcx-fastly-5.1.0
found 5.1.0 in filename of file in /nix/store/4mqynmpz2j3g2xhymq4h21glh8848pcx-fastly-5.1.0

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

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
fastly

Instructions to test this update (click to expand)

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

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

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

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

1 package built:

fastly

Maintainer pings
cc @ereslibre @shyim for testing.

Result of nixpkgs-review pr 214120 run on aarch64-darwin 1

1 package built:

fastly


AttributeError: 'NoneType' object has no attribute 'id'

Hi .. I am having trouble when I want to make a post - . After I press the button 'SAVE' I get an error .
The console looks like this - I'm using a pyodbc database - I have checked the 'id' is there.
Can anyone help me with this?
\posts\models.py", line 27, in upload_location     new_id = PostModel.objects.order_by("id").last().id + 1 AttributeError: 'NoneType' object has no attribute 'id' [25/Feb/2016 15:12:07] "POST /admin/posts/post/add/ HTTP/1.1" 500 187276 The thread 0x1040 has exited with code 0 (0x0).

Try this:
new_id = 0
qs = PostModel.objects.order_by("id").exists()
if qs:
new_id = qs.last().id + 1

Hi,  I am having trouble when I want to make a second post.
File "/posts/models.py", line 37, in upload_location
new_id = 1
qs = PostModel.objects.order_by("id").exists()
if qs:
new_id = qs.last().id + 1
AttributeError: 'bool' object has no attribute 'last'
Can anyone help me with this?


Wrong sub/commands types

Issue description
Create new SlashCommandBuilder
then .addSubcommand
-> addStringOption returns 1 instead of STRING
It will throws an error :
DiscordAPIError: Invalid Form Body
options[0].type: This field is required

Re-do same thing but with a ApplicationCommandDataResolvable const and it will work as intended :
const command: ApplicationCommandDataResolvable = {
  name: 'test',
  description: 'Test',
  options: [
    {
      name: 'subcommand',
      description: 'Test subcommand',
      type: 'SUB_COMMAND',
      options: [
        {
          name: 'option',
          description: 'Option',
          required: true,
          type: 'STRING',
        },
      ],
    },
  ],
};

Thank you
Edward T. Bush
Code sample
const command = new SlashCommandBuilder()
      .setName('test')
      .setDescription('Test')
      .addSubcommand((cmd) =>
        cmd
          .setName('subcommand')
          .setDescription('Test subcommand')
          .addStringOption((option) => option.setName('option').setDescription('Option').setRequired(true))
    );

@discordjs/builders version
0.11.0
Node.js version
v16.13.1
Operating system
Windows 10
Priority this issue should have
Medium (should be fixed soon)

I tested your code and discord allows me to give that JSON to the API. Option type 1 isn't an error, that's the type for a subcommand, which is what you specified in your builder. The nested options properly show 3 for string.

I am sorry about that, I didn't have .toJSON() 🤦
It should tell us that it needs it tho...
Thank you !


[improve][broker] First judge whether config is null when standalone start

Modifications
First judge whether config is null when standalone start.
Documentation

[ ] doc
[ ] doc-required
[x] doc-not-needed
[ ] doc-complete

Matching PR in forked repository
PR in forked repository:

Codecov Report

Merging #18681 (5cce72f) into master (b579bb8) will decrease coverage by 10.43%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             master   #18681       +/-   ##
=============================================
- Coverage     47.51%   37.08%   -10.44%
+ Complexity    10520     1968     -8552
=============================================
  Files           698      209      -489
  Lines         68079    14421    -53658
  Branches       7280     1573     -5707
=============================================
- Hits          32351     5348    -27003
+ Misses        32151     8486    -23665
+ Partials       3577      587     -2990

Flag
Coverage Δ

unittests
37.08% <ø> (-10.44%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

.../org/apache/pulsar/client/impl/ConnectionPool.java
37.43% <0.00%> (-1.03%)
:arrow_down:

...apache/pulsar/client/impl/AutoClusterFailover.java
69.44% <0.00%> (-0.56%)
:arrow_down:

...va/org/apache/pulsar/client/impl/ProducerImpl.java
17.00% <0.00%> (-0.02%)
:arrow_down:

.../main/java/org/apache/pulsar/PulsarStandalone.java

...pulsar/broker/admin/impl/PersistentTopicsBase.java

...loadbalance/impl/LeastResourceUsageWithWeight.java

...roker/loadbalance/impl/ModularLoadManagerImpl.java

...lsar/broker/loadbalance/impl/ThresholdShedder.java

.../pulsar/broker/service/AbstractBaseDispatcher.java

...rg/apache/pulsar/broker/service/AbstractTopic.java

... and 482 more

What issue is this PR fixing? It doesn't seem to change the existing behavior.

There is no problem but an optimization.
Because pulsar standalone can exit directly when the configuration is null and it is unnecessary to first determine whether to use zk or rocksdb for metadata, this change occurred in #15478
https://github.com/apache/pulsar/commit/bf194b557c48e2d3246e44f1fc28876932d8ecb8#diff-399556fcde9451e101db2623a732d231d48a6abbfed2db4c0b49e0cc20e634edR269-R289


what's the type of Encryption? AES or others?

what's the type of Encryption? AES or others? I searched the code, but don't see where it is declared.

The Encryption section of the documentation states:

Realm supports encrypting the database file on disk with AES-256+SHA2 by supplying a 64-byte encryption key when creating a Realm.

Thanks, one more question: if I use Realm encryption, as you may know, submitting apps to AppStore will ask you if the app includes encryption, shall I say YES to this option?
I am not in USA and never had encryption feature in my app. Thanks!

You do need to say "yes" to that question. The iTunes Connect documentation on Trade Compliance is the authoritative source for information on this topic.

OK, thanks so much!

Sorry if this is a stupid question, but after reading the linked iTunes Connect documentation, my conclusion is that you need to say "yes" to the App Store question about encryption even if you don't use encrypted realms, since Realm provides it's own encryption code. Is this correct? I am basing this on the following from the iTunes Connect Documentation:

If your application does use, access, implement or incorporate encryption, it may be necessary to submit confirmation of approval [...]

My app doesn't "use" or "access" encryption, but I guess by including Realm it "implements" or at least "incorporates" it?
So if my conclusion is correct, is there a way to not include the encryption code in my build? Seems like a lot of work to get the necessary approvals for apps that don't use the encryption functionality.

On iOS we use CommonCrypto and don't actually have any export-controlled crypto code in the core library itself, so it's basically the same scenario as if you had an app which used NSURLSession for HTTP only.

Oh, OK. After trying to read up I was under the impression that Realm had it's own implementation, but I'm happy I was wrong :)
Thanks for the help, @tgoyne!

Hi,
I am using Realm with encryption enabled.
Can I answer the following Export Compliance question with No?
Does your app implement any standard encryption algorithms instead of, or in addition to, using or accessing the encryption in Apple’s iOS or macOS?


Verify ArchGym install with test train script example (standalone from vizier install)

After this section in the documentation we should have them run like a working example (i.e. train*.py) to verify install is working before going on to the vizier installation. Also the vizier installation should be on a separate page I think cause the setup page feels kind of cluttered at the moment.

@aadyapipersenia04 just tagging you since this is part of what we discussed last Friday

@ShvetankPrakash can we use "train_randomwalker.py" to verify arch-gym installation before testing vizier
This file is located in sims/customenv

Yes, the documentation has been updated, but it's in the documentation branch, we will merge it with the main branch.

Yes this is a good idea @TensorTyrion9001 . Can you and @aadyapipersenia04 make sure this gets updated? @aadyapipersenia04 are you referring to script for testing vizier or script for testing archgym? At the end of this section: https://oss-archgym.readthedocs.io/en/latest/installation.html we should have a script for them to run to verify arch gym installation.


PENV-260: add api handler to get records for jetdrop

- What I did
- How I did it
- How to verify it
- Description for the changelog

Codecov Report

Merging #56 into master will increase coverage by 0.05%.
The diff coverage is 78.22%.

@@            Coverage Diff             @@
##           master      #56      +/-   ##
==========================================
+ Coverage   72.32%   72.38%   +0.05%
==========================================
  Files          41       40       -1
  Lines        2255     2343      +88
==========================================
+ Hits         1631     1696      +65
- Misses        515      527      +12
- Partials      109      120      +11

Impacted Files
Coverage Δ

etl/storage/storage.go
78.57% <72.00%> (-3.56%)
:arrow_down:

api/handlers.go
81.81% <79.79%> (-1.85%)
:arrow_down:

etl/extractor/platform_impl.go
72.44% <0.00%> (-4.73%)
:arrow_down:

etl/models/models.go
87.09% <0.00%> (+32.25%)
:arrow_up:

Continue to review full report at Codecov.

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


[CentOS] Add EOL date for Stream 9

As mentioned on the CentOS Stream page ( https://www.centos.org/centos-stream/ ), the end of life of Stream 9 is the full support of RHEL 9.

This might be worth mentioning in the text as well.

Removed the link to release notes, none have been published as far as I can confirm and the link just provided those for Centos Stream 8.
Changed a bit of releaseLabels/releaseCycle to better showcase data in the API: https://deploy-preview-1255--endoflife-date.netlify.app/api/centos.json.
Need to fix the "duplicate-8" issue, since https://deploy-preview-1255--endoflife-date.netlify.app/api/centos/8.json can only point to either 8-linux or 8-stream.

I was hoping to find the canonical suggestion on how to label them in /etc/os-release. But nopes:
This is the /etc/os-release for CentOS8:
NAME="CentOS Linux"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"

This is what CentOS Stream 8 returns:
NAME="CentOS Stream"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Stream 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"

Both of them re-using the same CPE is 🤯.


CUDA TENSOR RuntimeERROR

🐛 Bug
While Passing a cuda tensor we encounter a RuntimeERROR : Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!
To Reproduce
Run the following code.
Code sample
from torchmetrics import PeakSignalNoiseRatio
import torch
preds = torch.rand([3, 128, 128], generator=torch.manual_seed(42))
target = preds * 0.75
preds = preds.cuda()
target =target.cuda()

psnr_loss = PeakSignalNoiseRatio()
avg_psnr = psnr_loss(preds, target)
print(avg_psnr)

Expected behavior
Should return a tensor of a value.
Environment

TorchMetrics version (and how you installed TM, e.g. conda, pip, build from source): TorchMetrics version 0.8.2
Python & PyTorch Version (e.g., 1.0): python 3.9.12 , pytorch 1.11.0
Any other relevant information such as OS (e.g., Linux):OS : Linux

it is expected, that you need to have also the metric on the sam device or use PL logging which does it for you... :rabbit:
see: https://github.com/PyTorchLightning/metrics/issues/608#issuecomment-963153184

Thank You @Borda

@Borda can you please comment how to use PL logging so that it does this for us?


Body Element is missing class="gjs-dashed"

Dashed outlines are missing

It's strange. I have the same problem.

I fixed this by a piece of code.
const frame = document.getElementsByClassName('gjs-frame')[0]
frame.contentDocument.body.classList.add('gjs-dashed')

Place this after the config object definition.

Click this button

Or run:
var pn = editor.Panels;
pn.getButton('options', 'sw-visibility').set('active', 1);

Hello Everyone.
How can i remove that dashed lines because i don't want to see that dashed lines by default.
Thanks in advance


Rename to Fable.Template.Library?

The reason being this package won't appear when making searches for Fable.Template in nuget.

Think i'm going to also rename the repo to match.


initial reordering of docs architecture

Summary

Labels

Test Plan

Checklist

[ ] If required, I have updated the Plural documentation accordingly.
[ ] I have added tests to cover my changes.
[ ] I have added a meaningful title and summary to convey the impact of this PR to a user.
[ ] I have added relevant labels to this PR to help with categorization for release notes.

To see the specific tasks where the Asana app for GitHub is being used, see below:

https://app.asana.com/0/0/1204605571835354
https://app.asana.com/0/0/1204229144599984
https://app.asana.com/0/0/1204716310445955
https://app.asana.com/0/0/1204716310445942
https://app.asana.com/0/0/1204725973016756
https://app.asana.com/0/0/1204462863691572
https://app.asana.com/0/0/1204172083595986
https://app.asana.com/0/0/1203804230152705

ok @samweaver @michaeljguarino going to let y'all take a look, but tried to incorporate everything here: https://www.notion.so/pluralsh/2023-05-31-Proposed-Docs-Architecture-b3b2015889cc414392e4a8b1c0cdcdb6
@michaeljguarino going to let you own: (1) adding your own/customer docker image (2) add new libraries to the image and (3) rewriting the repo sharing docs


Dashboard: User-Editable Header/Footer Sections

Once XCallback links are clickable on the dashboard, I'd love to be able to create some evergreen links and text in the preferences that will be displayed as a header or footer section. I would use this to have quick access to my frequently used commands (xcallbacks) and links to frequently used documents.
I would suggest that you run the contents of these preference fields through the np.Templating parser so that we could use Templating to adjust them to our liking (e.g. calculate today's date or tomorrow's note or something)

I'll need a bit more convincing that this idea best lives in the Dashboard. There are other third-party utilties, as well as Stream Decks and the like, that are specifically about keeping sets of commonly used things instantly available.  Do you have anything in mind that can't in theory be achieved by x-callback calls?

Closing as no update.


VariablesInAllowedPosition validation rule

Pull Request Test Coverage Report for Build 706

66 of 68 (97.06%) changed or added relevant lines in 5 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.4%) to 80.318%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/Util/TypeComparator.php
28
30
93.33%

Totals

Change from base Build 698:
0.4%

Covered Lines:
3640

Relevant Lines:
4532

💛  - Coveralls

Pull Request Test Coverage Report for Build 706

66 of 68 (97.06%) changed or added relevant lines in 5 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.4%) to 80.318%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/Util/TypeComparator.php
28
30
93.33%

Totals

Change from base Build 698:
0.4%

Covered Lines:
3640

Relevant Lines:
4532

💛  - Coveralls


add: cyberpunk-2077 yaml file

Pull Request Template
Discord username (optional)
If you're in our Discord server, we'd like to give you the Contributor Discord Role, please include your username. Note: It must be labelled like so: username#4747 (make sure to include the #XXXX).
Name of theme
Please include the name of the theme.
How Has This Been Tested?
Have you run the python script? python3 ./scripts/gen_theme_previews.py <folder-name-eg-standard>
Notes
We cannot accept pull request that include custom background images because:

of licensing restrictions
we are trying to keep the binary size of the repo as small as possible (just the yaml files)

If your theme has an intended custom background image, include a comment in the yaml with a link to where people should download it.

Thanks for submitting @NunezGabriel lmk if you're in our discord and I can add the appropriate roles


Automatically activate/deactivate CDC ECM

What target device are you using?
LPC55S69
Which version of Azure RTOS?
6.1
What toolchain and environment?
arm-none-eabi-* + WSL

Hi,
I use Azure RTOS with the netxduo layer to manage TCP/IP sockets. The application exchanges a set of commands through netcat via "Windows sub Linux" on different ports (32071 to 32076) with an ethernet over USB protocol (CDC ECM). In my application, there are different communication buses, wifi / BLE / cellular network / IOT (through cellular or WIFI). When there is an error in one, the whole system is "blocked" (no more inputs from USB but the system is still running). After a delay of 29mins, 2 functions are triggered (ux_slave_class_cdc_ecm_instance_activate and ux_slave_class_cdc_ecm_instance_deactivate) and everything works fine after this. Do you know how to automatically trigger these functions after a few minutes without communication?

Best regards,
Antoine

I guess ux_slave_class_cdc_ecm_instance_activate and ux_slave_class_cdc_ecm_instance_deactivate is triggered by a USB bus reset from host side, maybe you can consider adjust some timeout setting on your host side?
On device side, there is usually some way in device controller hardware that can "detach" from host, there is no API for detaching, but you can try to operate the hardware to "detach" and "attach" again to let host re-enumerate your device.


Indent is confused and disabling the rule doesn't appear to work either

https://s.natalian.org/2018-03-29/standardjs-indent.mp4
Using 11.0.1
Here is the code that triggers it https://github.com/unee-t/frontend/blob/master/imports/ui/dialogs/invite-dialog.jsx#L187

Hey there! Sorry for the delay in responding to you. Looks like this issue is resolved on the latest version of standard. Hope you got it figured out: )


[qol] making leaderboard exps easier to search

This PR makes leaderboard experiments easier to search.
Current limitation
We have

directly searching yields nothing

We have to search by filtering "hf_repo_revision"

This PR
This PR follows the same logic as online dpo / ppo which makes hf_repo_revision as the wandb run name, which make things much easier to search.

LGTM, this will make our life easier. Thanks Costa for adding this.


Select not working with 0.14-rc1

I have a repro here (belle branch).

Hey @luisrudge / @nikgraf ,
I did looked into issue and thats apparently use of method 'isReactElement' in is-component-of-type.js
React RC candidate has got this method removed: https://github.com/facebook/react/pull/4652/files.
This needs to be fixed in belle.

Thanks for the feedback @jpuri

hey @luisrudge - we just released a version ready to work with React 0.14. You can get it by running npm install<EMAIL_ADDRESS>We tested all components. Let us know if you run into any trouble.

ok. I'll try that. thanks!

I'm still seeing an error. I updated my repro repo.

Hey @luisrudge,
Though select is working its showing this error while trying to reposition options (check http://nikgraf.github.io/belle/#/component/select, property: shouldPositionOptions).
PR: https://github.com/nikgraf/belle/pull/207 has the fix.

@luisrudge now it should work :smile:

thaaaaaaaaaaaaaaaaaanks :)


Question: Will there be open9 images again?

AdoptOpenJDK also provided images with openj9 as an alternative to hotspot.
Is the deployment through adoptium also planned again?
It would be good to document the status of openj9-images on the Dockerhub page since Adopt links directly to the page.

@Herr-Sepp - Can you let me know where that link is?

To answer OP's question, Adoptium will not be providing OpenJ9 images due to licensing reasons related to the terms under which the team was licensed the TCK. See here for a rundown of the situation.

Thanks CodingKoopa for that link and the research
@karianna https://hub.docker.com/_/adoptopenjdk
It is hard to comply with the request "Please adjust your usage accordingly." if you have used openj9-image from this repository. There is no mention of openj9-images on the linked eclipse-temurin page.
A little note about IBM Semeru in the deprecation notice would be helpful there.

@gdams - can we add some more context in the deprecation description section? I tried logging in as the adoptopenjdk user but couldn't find a way to update.


Requesting a way to expose workflow IDs from relevant worker request response protos

Is your feature request related to a problem? Please describe.
We would like a way to add the workflow ID as an attribute to spans generated by our GRPC client interceptor. The ID is present in the proto, but we do not always know where it will be and what all of the types are.
At the moment we are doing this using a switch as follows. This is brittle as we dont have internal knowledge and if the API changes.
	switch v := req.(type) {
	case *proto.GetSystemInfoRequest:
	case *proto.RegisterNamespaceRequest:
	case *proto.ListNamespacesRequest:
	case *proto.UpdateNamespaceRequest:
	case *proto.DeprecateNamespaceRequest:
	case *proto.PollWorkflowTaskQueueRequest:
	case *proto.RespondWorkflowTaskCompletedRequest:
	case *proto.RespondWorkflowTaskFailedRequest:
	case *proto.PollActivityTaskQueueRequest:
	case *proto.DescribeNamespaceRequest:
	case *proto.RespondActivityTaskCompletedRequest:
	case *proto.RequestCancelWorkflowExecutionRequest:
		if v.GetWorkflowExecution() != nil {
			id = v.GetWorkflowExecution().WorkflowId
		}
	case *proto.SignalWorkflowExecutionRequest:
		if v.GetWorkflowExecution() != nil {
			id = v.GetWorkflowExecution().WorkflowId
		}
	case *proto.ResetWorkflowExecutionRequest:
		if v.GetWorkflowExecution() != nil {
			id = v.GetWorkflowExecution().WorkflowId
		}
	case *proto.UpdateWorkflowExecutionRequest:
		if v.GetWorkflowExecution() != nil {
			id = v.GetWorkflowExecution().WorkflowId
		}
	case *proto.TerminateWorkflowExecutionRequest:
		if v.GetWorkflowExecution() != nil {
			id = v.GetWorkflowExecution().WorkflowId
		}
	case *proto.DeleteWorkflowExecutionRequest:
		if v.GetWorkflowExecution() != nil {
			id = v.GetWorkflowExecution().WorkflowId
		}
	case *proto.QueryWorkflowRequest:
		if v.GetExecution() != nil {
			id = v.GetExecution().WorkflowId
		}
	case *proto.ResetStickyTaskQueueRequest:
		if v.GetExecution() != nil {
			id = v.GetExecution().WorkflowId
		}
	case *proto.DescribeWorkflowExecutionRequest:
		if v.GetExecution() != nil {
			id = v.GetExecution().WorkflowId
		}
	case *proto.GetWorkflowExecutionHistoryReverseRequest:
		if v.GetExecution() != nil {
			id = v.GetExecution().WorkflowId
		}
	case *proto.GetWorkflowExecutionHistoryRequest:
		if v.GetExecution() != nil {
			id = v.GetExecution().WorkflowId
		}
	case *proto.StartBatchOperationRequest:
		if v.GetExecutions() != nil {
			execution := v.GetExecutions()
			id = execution[0].WorkflowId
		}
	case *proto.StartWorkflowExecutionRequest:
		id = v.GetWorkflowId()
	case *proto.RecordActivityTaskHeartbeatByIdRequest:
		id = v.GetWorkflowId()
	case *proto.RespondActivityTaskCanceledByIdRequest:
		id = v.GetWorkflowId()
	case *proto.RespondActivityTaskFailedByIdRequest:
		id = v.GetWorkflowId()
	case *proto.RespondActivityTaskCompletedByIdRequest:
		id = v.GetWorkflowId()
	case *proto.SignalWithStartWorkflowExecutionRequest:
		id = v.GetWorkflowId()
	default:
		log.Debug(ctx, fmt.Sprintf("Temporal Workflow Service Unknown request. %v\n", req))
	}

Describe the solution you'd like
A function that we can use to pass a request/response and get the workflow ID
Describe alternatives you've considered
The alternative is not to be able to attach workflow ID to these grpc client spans. Or we can continue to use the above switch statement.
Additional context
Add any other context or screenshots about the feature request here.

This is brittle as we dont have internal knowledge and if the API changes.

The API is public, not internal, and doesn't upgrade unless you upgrade the SDK. The SDK, like anyone, consumes https://github.com/temporalio/api/tree/master/temporal/api/workflowservice/v1 (via https://github.com/temporalio/api-go) and may be upgraded when you upgrade the SDK. I am not sure us taking this same switch statement and putting it in the SDK for this specific use case has enough general-purpose value.
I think the approach you are taking here makes sense, and we don't really change existing API (or even add workflow ID somewhere it wasn't before), though we may add some entirely new API with workflow ID upon creation.
What many users do in situations where they need to future proof themselves on new API additions is just have a unit test which reflectively goes over the workflow service interface calling their function with an instantiated version of every request type and asserting none fail (i.e. have your method return false that you can ignore in prod but assert against during test).

Hi @cretz, yes true you make a good point. If you think our current approach is fine, then we will continue to do that switch ourselves and add that unit test.
Thanks again for the suggestions.

:+1: I do think it is best as opposed to us exposing an extract-workflow-id-from-grpc-request in our public lirary API


Why is my fragment overlaying the header and placing at the top?

My fragment is overlaying everything, is not placing correctly, why is this happening?

RecyclerViewMaterialAdapter adapter = new RecyclerViewMaterialAdapter(yourAdapter);
recyclerView.setAdapter(adapter);

sorry can you elaborate your answer ? I have the same problem in two case.
If i use a fragment without a recylcerview, just a standard layout and also if i set 'app:viewpager_hideToolbarAndTitle="false"', as the recyclerview below goes over the header instead of below.

after setting adapter did you registered your recyclerview to material viewpager ??
MaterialViewPagerHelper.registerRecyclerView(getActivity(), recyclerView, null);

good catch


README.md Article Link

Hello, the link to the article is being treated as folder/dir within the repo. The url within the markdown needs to start with https://
Current
**Article: [RISC-Y Business: Raging against the reduced machine](secret.club/2023/12/24/riscy-business.html).**

Correct

**Article: [RISC-Y Business: Raging against the reduced machine](https://secret.club/2023/12/24/riscy-business.html).**

Thanks for the heads-up!


Is this project dead?

Just came across your repo. I've given this a try and I love this editor, awesome work.
Just curious about the 93 open issues and the fact that its been 8+ months since last activities. Is this project dead?

haha, maybe.

yea its buggy and dead, if you know an alternative editor pls reply

No

统一回复：有空就会维护，不定期更新版本，请不要重复提问。


start command for Go

Implement "releasetool start" for Go.
Handles our current state (no go.mod files). Tested by
creating a release CL.
Also some code for go.mod, relatively untested.

@jba do you wanna wait for @jadekler to take another look or would you rather go ahead and get this merged (we can always do follow-up PRs)?

I don't feel the need to wait.

Huh, lint is passing locally but being weird. Let me rebase.


Configuration to control camera target

As of #452 , we will support user configurable camera orbit positions. However, this is limited because the camera will always face the same target (currently fixed to the scene origin).
We should support an attribute (perhaps called camera-target) that allows this "target" to be changed.

This is dependent on #214

The ship has sailed on #214 to some extent (specifically, it sailed when we shipped camera-orbit in #452 ).
My sentiment here is that we should follow a similar strategy to what we did in camera-orbit. The value should support 1, 2 and 3-term forms, and the 3-term form corresponds to coordinate in 3-dimensional space.
For starters, the only unit we need to support is meters.
We can probably use most of the parsing / conversion code we wrote for #452 to handle this case.


Testing with cherry-picked commits from LocalTransaction fix.

Testing with cherry-picked commits from LocalTransaction fix.

This was temp PR. The changes are all in https://github.com/bosagora/agora/pull/2372