Master

@v-kents,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

globalization/country-region-list.md
:white_check_mark:Succeeded

globalization/encoding/data-encoding.md
:white_check_mark:Succeeded

globalization/encoding/encoding-overview.md
:white_check_mark:Succeeded

globalization/index.md
:white_check_mark:Succeeded

globalization/input/console-globalization.md
:white_check_mark:Succeeded

globalization/input/font-technology.md
:white_check_mark:Succeeded

globalization/input/input.md
:white_check_mark:Succeeded

globalization/input/mirroring.md
:white_check_mark:Succeeded

globalization/input/overlay.md
:white_check_mark:Succeeded

globalization/input/text-input.md
:white_check_mark:Succeeded

globalization/input/text-rendering.md
:white_check_mark:Succeeded

globalization/locale/handling-calendars-in-dotnet-framework.md
:white_check_mark:Succeeded

globalization/locale/handling-calendars-in-win32.md
:white_check_mark:Succeeded

globalization/locale/locale-and-culture.md
:white_check_mark:Succeeded

globalization/locale/locale-names.md
:white_check_mark:Succeeded

globalization/locale/number-formatting-in-dotnet-framework.md
:white_check_mark:Succeeded

globalization/locale/number-formatting-in-win32.md
:white_check_mark:Succeeded

globalization/locale/number-formatting.md
:white_check_mark:Succeeded

globalization/locale/telephone-number.md
:white_check_mark:Succeeded

globalization/locale/time-formatting-and-time-zones-in-dotnet-framework.md
:white_check_mark:Succeeded

globalization/locale/time-formatting-and-time-zones-in-win32.md
:white_check_mark:Succeeded

globalization/localizability/avoid-run-time-composite-strings.md
:white_check_mark:Succeeded

globalization/localizability/do-not-compound-several-variables.md
:white_check_mark:Succeeded

globalization/localizability/dotnet-framework-string-format.md
:white_check_mark:Succeeded

globalization/localizability/element-resizing.md
:white_check_mark:Succeeded

globalization/localizability/localizability.md
:white_check_mark:Succeeded

globalization/localizability/mirroring-awareness.md
:white_check_mark:Succeeded

globalization/localizability/mirroring-in-dotnet-ramework.md
:white_check_mark:Succeeded

globalization/localizability/mirroring-in-win32.md
:white_check_mark:Succeeded

globalization/localizability/string-handling.md
:white_check_mark:Succeeded

globalization/localizability/when-variables-are-necessary.md
:white_check_mark:Succeeded

globalization/localizability/win32-formatmessage.md
:white_check_mark:Succeeded

globalization/localization/localization-elements.md
:white_check_mark:Succeeded

globalization/localization/localization.md
:white_check_mark:Succeeded

globalization/mui/multilingual-content-in-web-pages.md
:white_check_mark:Succeeded

globalization/mui/resource-handling-in-the-dotnet-framework.md
:white_check_mark:Succeeded

globalization/testing/globalization-of-the-test.md
:white_check_mark:Succeeded

globalization/testing/globalizing-your-test-data.md
:white_check_mark:Succeeded

globalization/testing/quality-assurance-for-world-readiness.md
:white_check_mark:Succeeded

globalization/testing/sample-international-test-cases.md
:white_check_mark:Succeeded

globalization/testing/testing-for-world-readiness.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Gradient accumulation trainer

Ordinary trainer and Serial trainer can be used in ScaleManager.
Scale scenario becomes more flexible.


Error when resolving anchors. No callback received.

We are having an AR application which saves the cloud anchor ids in the backend and then retrieves it & tries to resolve the anchor.
private func resolvedAnchors() {
guard let deviceLastLocation = deviceLastLocation else { return }
    self.mementosVM.getAllMementos().forEach {[weak self] memento in
        guard let self = self else { return }

        if let anchorId:String = memento.anchor_id {
            printObj("AnchorId: "+anchorId)

            self.googleSession?.resolveCloudAnchor(anchorId: anchorId)
        }
    }
}

and I don't get any failure callbacks in didFailToResolve but sometimes when it is able to fetch the anchor I do receive didResolve callback.
Used to work fine like a month ago. Suddenly the resolving is taking too long & fails to resolve multiple calls.

Hi Vishal, can you provide a minimum reproducible sample project? Also, do you see the same behavior when using the asynchronous APIs e.g. https://developers.google.com/ar/reference/ios/category/GARSession(CloudAnchors)#resolvecloudanchorwithidentifier:completionhandler:error:

Sample.zip
@15kingben
Here is the sample app. You will need to add your google-info.plist and api key.  I have used local storage (UserDefaults for anchor Ids) in this.

Is this issue related to https://github.com/google-ar/arcore-unity-extensions/issues/56, cloud anchors not hosting when TTL = 365?

No. It's not. It is regarding slow resolving and sometimes not resolving in case of multiple anchor resolving request simultaneously.

Also receiving the following state for anchors: GARCloudAnchorStateErrorInternal in the callback


Update add plugin/rule scripts

Adjusted some file locations and changed to use pathlib instead of os.path.

Thank you, PRs very welcome to improve these :)


Could not install typings files for JavaScript language features.

Title says all, NPM is in path etc

VSCode Version:
OS Version: Windows 10

Steps to Reproduce:

Open VSCode via Start Menu or Desktop Icon
Receive said error

Turns out opening VSCode from Command Prompt or Powershell fixes this issue, but its a pain to have to open cmd or PS to do so.

Duplicate of #24961  We're looking into a mitigation for VS Code 1.13 and also into moving away from requiring npm longer term
To help investigate your issue:

Did you install npm using nvm or n?
Can you also please run the Developer: Toggle Developer Tools command and then evaluate process.env['PATH'] in the console and see if the correct path is included

Thanks

Hey there,
I installed npm directly using the binary installer for windows.
And yes I can confirm that the correct path is included

See https://github.com/Microsoft/vscode/issues/24961#issuecomment-305040579
The latest insiders build adds a typescript.npm setting that you can use to tell VSCode where you have npm installed if it is not getting picked up correctly from your PATH.
Closing as duplicate of #24961

i install the node js and when i open the templete then i faced the same issue.
any one is there who help me.


"Found no images anywhere..." for every b!random query

Sorry for the third bug request, but since the new update a few hours ago the b!random query no longer works and says "Found no images anywhere...".

Can reproduce it, I changed the logic for searching slightly with the last update so it's not 100% unexpected.
I'm busy, but I'll try and fix it ASAP (most likely on Friday though)

No problem! Thank you for your quick replies.

Fixed
Changed how search worked and since random search uses that it broke. Changes are live now

Awesome! Just tested it and @everyone'd my Booru Bot channel >:) Thank you for fixing it.


Example client crashes on songs from offline playlist

I can play songs from my playlist with the example client just fine, but if the playlist is available offline, the following error occurs:

thread '' panicked at 'assertion failed: (left == right) (left: 0, right: 16)', src\util\spotify_id.rs:45
thread '' panicked at 'called Result::unwrap() on an Err value:
IoError(Error { repr: Os { code: 10053, message: "Eine bestehende Verbindung wurde softwaregesteuert\r\ndurch den Hostcomputer abgebrochen." } })

(An established connection was aborted by the software in your host machine.)

I remember running into this the other day, but can't reproduce it anymore.
Are you sure it's related to offline playlists ? I can play some fine.
Do you have a link to the problematic playlist ?

I have similar issues but not with an offline playlist.
Played a few tracks from an online playlist without any problems and then suddenly i can't play tracks remotely anymore. After further investigation, it depends on the track that I'm playing...
After starting the application:

If i play this track, it works every time.
Switching to this song, it still works
If I try switching to this one, it fails

All the tracks aren't offline available.
The message i get when playing the third track is the following:
kMessageTypeLoad *device* *is the hash needed?* 3 0
thread '<unnamed>' panicked at 'assertion failed: `(left == right)` (left: `0`, right: `16`)', root/.cargo/git/checkouts/librespot-fc1a303e790f7b1b/master/src/util/spotify_id.rs:46
Chunk 22
Chunk 23
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: "SendError(..)"', ../src/libcore/result.rs:688
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: "PoisonError { inner: .. }"', ../src/libcore/result.rs:688
Segmentation fault

Small update:
After investigating further... and assuming left: 0, right: 16 are the audio channels...
I'm not sure what is happening there, but assert_eq!(data.len(), 16); causes the problem? I've noticed that the not working track begins with output on the right audio channel only, and after a few seconds both audio channels are used.
May that cause the problem?

The crashes aren't directly related to tracks from offline playlists it seems. All tracks of the following playlist appear to make librespot panic: https://goo.gl/QbfV3j
If I add any of the crashing tracks to a new playlist and download the songs ("make available offline"), then try to play the same tracks, everything works like a charm! That's pretty odd.

I think I figured it out: it crashes on any track in a playlist, if that playlist contains a local file.
How did a local file get in there? Well, the Spotify client on Windows indexes local files and you can add them to playlists. The Android client is not able to play them, unless you make that playlist available offline - then it will actually download the file from your PC to the phone and you can play it there.
To libspotify, it doesn't matter what track you play, it somehow goes over the list of all tracks in the playlist, won't find a spotify ID for the local track and panic. It should either ignore these files, or someone would have to add support for local file playback.

This was fixed by #34 I believe.
For the moment the file is just ignored. I'll have to investigate how the file is transferred between clients later.

Would be pretty cool if librespot could request offline tracks on demand from any available desktop client. It would set it ahead of the Android client.
On the other hand, one could use subsonic or a create a home-made music indexing solution and stream music with librespot from these kind of sources. Spotify would become just one of the sources it could play.

Would it not be a better idea to implement that separately, along with other ideas such as controlling spotify connect from the reciever? I figure it might be better in terms of compatibility for projects just looking to replace libspotify_embedded with an open source replacement, though i may be alone...

maybe we could do something with the conditional compilation of rust http://rustbyexample.com/attribute/cfg.html. Just like the dns-sd problem right now. Or would that be a nightmare to debug? Considering changes need to be compatible with all feature combinations..


The libdftatom.so is linked against systemwide libgfortran.so instead of the conda-forge

Issue:
The $CONDA_PREFIX/lib/libdftatom.so shared library is built against the system Fortran runtime, not Conda's runtime:
$ ldd $CONDA_PREFIX/lib/libdftatom.so
	linux-vdso.so.1 (0x00007fff249e9000)
	libgfortran.so.4 => /usr/lib/x86_64-linux-gnu/libgfortran.so.4 (0x000014bc4385e000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x000014bc434c0000)
	libgcc_s.so.1 => /home/certik/ext/miniconda3/envs/test15/lib/./libgcc_s.so.1 (0x000014bc43dd3000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x000014bc432a1000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x000014bc42eb0000)
	libquadmath.so.0 => /home/certik/ext/miniconda3/envs/test15/lib/./libquadmath.so.0 (0x000014bc43d99000)
	/lib64/ld-linux-x86-64.so.2 (0x000014bc43c3d000)

As you can see, the gcc runtime is correctly linked from Conda, but libgfortran.so is not.
This is caused by https://github.com/conda-forge/gfortran_osx-64-feedstock/issues/3

Environment (conda list):

$ conda list
# packages in environment at /home/certik/ext/miniconda3/envs/test15:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                        main
dftatom                   1.0.4                h4333106_0    conda-forge
libgcc-ng                 9.1.0                hdf63c60_0
libstdcxx-ng              9.1.0                hdf63c60_0

Details about  conda and system ( conda info ):

$ conda info
     active environment : test15
    active env location : /home/certik/ext/miniconda3/envs/test15
            shell level : 1
       user config file : /home/certik/.condarc
 populated config files : /home/certik/.condarc
          conda version : 4.7.5
    conda-build version : not installed
         python version : 3.7.3.final.0
       virtual packages :
       base environment : /home/certik/ext/miniconda3  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/certik/ext/miniconda3/pkgs
                          /home/certik/.conda/pkgs
       envs directories : /home/certik/ext/miniconda3/envs
                          /home/certik/.conda/envs
               platform : linux-64
             user-agent : conda/4.7.5 requests/2.22.0 CPython/3.7.3 Linux/4.15.0-54-generic ubuntu/18.04.2 glibc/2.27
                UID:GID : 15148:15148
             netrc file : None
           offline mode : False

@wolfv I discovered this issue. It's caused by a bug I reported some time ago, but I don't know how to fix it.

This is incorrect. You are building with gfortran 4.8.5 which was built by anaconda inc and then copied into the conda-forge channel. It is not the bug you are reporting above.
Here is the exact line from the build.

gfortran_osx-64: 4.8.5-h22b1bf0_8           conda-forge

Note also that the bug you reported is standard, expected behavior given how the compilers are shipped and conda in general.

It looks like on linux, the dependency libgfortran-ng is not added. Definitely a conda-build bug

@beckermr thanks for the feedback. Can you be more specific what you mean by "You are building with gfortran 4.8.5"? The dftatom package is built by conda-forge on the CI with (what I assume) are conda-forge compilers.
@isuruf when I do conda install -c conda-forge libgfortran-ng, it still links against the system-wide runtime.

@certik, this is an issue when the package is being built. If libgfortran-ng is not in host when the package is being built, then manually installing it wouldn't help

@isuruf I see. How do we fix it? By adding it as a dependency explicitly into dftatom?

You could do that, but conda-build should do it automatically. Not sure why

There are two versions of gfortran in the conda-forge channels. See the packages here: https://anaconda.org/conda-forge/gfortran_osx-64/files
The version 4.8.5 package was added by @isuruf manually and I assume matches that from defaults.
The version 7.3.0 package was built in the feedstock you linked and contributed by myself.
Conda-forge is globally pinned at version 4.8.5 of gfortran at the moment. See the global conda-forge pinning file.
Thus the problem you are finding is not an issue with the gfortran 7.3.0 build. In fact, if you check the build logs on azure for osx, you will see that the version 7.3.0 package is not even used.

@beckermr, we use 4.8.5 of gfortran only for OSX. gfortran 7.3.0 is used in Linux builds. This issue is about a linux build, not OSX.

 I missed this was linux. :( Ignore everything I said.

Given that the linked issue is on osx build, this is definitely not an issue in that feedstock!

Most like a result of conda/conda-build#3610.

@beckermr Thanks for your help and my apologies I didn't mean to insinuate that there is anything wrong with your package or your work, I simply thought the underlying cause is the same (that gfortran doesn't automatically set rpath to the correct runtime library), both on macOS and Linux. Btw, here is how GCC has to be patched to produce the correct rpath:
https://github.com/hashdist/hashstack/blob/cc69c4b8ddbf82fe2410c4188f5d6ad2980c768b/pkgs/gcc/rpath.patch
We have used this in Hashdist, and it works great.
I don't fully understand the Conda requirements and constraints, so I don't know if this patch would be viable. I also don't understand how the rpath could be set without this patch: does Conda somehow patches the binaries?

I also don't understand how the rpath could be set without this patch: does Conda somehow patch the binaries?

Yes, conda patches the binaries to fix the rpath.

@isuruf I know Conda patches the binaries for hardcoded paths that are within the build directory, however the Fortran's runtime library typically does not link into the build directory, and so that's why I am surprised that Conda can figure this out.

Ah, we have -L$PREFIX/lib, -Wl,-rpath,$PREFIX/lib in LDFLAGS, so libgfortran.so is found.

no worries @certik! My apologies for coming off as prickly. :)

@isuruf I see. And on user's computer, the $PREFIX gets rewritten, so it still finds the correct libgfortran.so. Ok, that should work, once the conda-build issue is fixed.


fix: questioning a few lines that force an ORDER clause

SUMMARY
I'm questioning the need for these 2 lines here, and would like to understand what they are about. It seems like this should be handled by the caller if/when needed.
There's nothing really wrong about doing the unnecessary sort apart for the extra cost on the database backend. In the case of the line chart, it may make more sense to sort on time DESC [if anything] to make the forced row LIMIT to show something more consistent.
before

after

Codecov Report

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

@@            Coverage Diff             @@
##           master   #11153      +/-   ##
==========================================
- Coverage   65.84%   61.52%   -4.33%
==========================================
  Files         827      827
  Lines       39051    39046       -5
  Branches     3673     3673
==========================================
- Hits        25715    24024    -1691
- Misses      13229    14841    +1612
- Partials      107      181      +74

Flag
Coverage Δ

#cypress
?

#javascript
62.21% <ø> (ø)

#python
61.11% <ø> (-0.20%)
:arrow_down:

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

Impacted Files
Coverage Δ

superset/connectors/sqla/models.py
89.53% <ø> (-0.30%)
:arrow_down:

superset-frontend/src/SqlLab/App.jsx
0.00% <0.00%> (-100.00%)
:arrow_down:

superset-frontend/src/explore/App.jsx
0.00% <0.00%> (-100.00%)
:arrow_down:

superset-frontend/src/dashboard/App.jsx
0.00% <0.00%> (-100.00%)
:arrow_down:

superset-frontend/src/explore/index.jsx
0.00% <0.00%> (-100.00%)
:arrow_down:

superset-frontend/src/dashboard/index.jsx
0.00% <0.00%> (-100.00%)
:arrow_down:

superset-frontend/src/setup/setupColors.js
0.00% <0.00%> (-100.00%)
:arrow_down:

superset-frontend/src/chart/ChartContainer.jsx
0.00% <0.00%> (-100.00%)
:arrow_down:

superset-frontend/src/setup/setupFormatters.js
0.00% <0.00%> (-100.00%)
:arrow_down:

superset-frontend/src/explore/reducers/index.js
0.00% <0.00%> (-100.00%)
:arrow_down:

... and 170 more

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 3d76f81...cad8a1d. Read the comment docs.

Can you think of other things that may break from this? Why is it there in the first place? Maybe the table viz?

@villebro ^^^ ?

I checked and this changes the default behavior of the "Table" visualization where currently, by default is sorts descending on the first metric.
I feel like the right thing to do is to identify the visualization that do rely on this behavior and to explicitly do it for those.

I added the default behavior logic of sorting by main metric DESC in Table when not specified as part of that visualization logic.

@mistercrunch sorry, I've been having trouble with notifications on GH. I'll review this asap.

Codecov Report

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

@@            Coverage Diff             @@
##           master   #11153      +/-   ##
==========================================
- Coverage   65.56%   62.40%   -3.16%
==========================================
  Files         832      438     -394
  Lines       39393    14681   -24712
  Branches     3592     3592
==========================================
- Hits        25828     9162   -16666
+ Misses      13456     5338    -8118
- Partials      109      181      +72

Flag
Coverage Δ

#cypress
?

#javascript
62.40% <ø> (ø)

#python
?

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

Impacted Files
Coverage Δ

...tend/src/views/CRUD/data/database/DatabaseList.tsx
82.05% <ø> (ø)

superset-frontend/src/SqlLab/App.jsx
0.00% <0.00%> (-100.00%)
:arrow_down:

superset-frontend/src/explore/App.jsx
0.00% <0.00%> (-100.00%)
:arrow_down:

superset-frontend/src/dashboard/App.jsx
0.00% <0.00%> (-100.00%)
:arrow_down:

superset-frontend/src/explore/index.jsx
0.00% <0.00%> (-100.00%)
:arrow_down:

superset-frontend/src/dashboard/index.jsx
0.00% <0.00%> (-100.00%)
:arrow_down:

superset-frontend/src/setup/setupColors.js
0.00% <0.00%> (-100.00%)
:arrow_down:

superset-frontend/src/chart/ChartContainer.jsx
0.00% <0.00%> (-100.00%)
:arrow_down:

superset-frontend/src/setup/setupFormatters.js
0.00% <0.00%> (-100.00%)
:arrow_down:

superset-frontend/src/explore/reducers/index.js
0.00% <0.00%> (-100.00%)
:arrow_down:

... and 558 more

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 8e58730...22aa5c9. Read the comment docs.


Error response from daemon: OCI runtime create failed: container_linux.go:370

Hi,
I was trying to convert a local docker image(xxx.tar) to singularity one, but I got the following error on my linux server. I am new to docker and might make some really basic mistakes since I failed to find any information related to this output.

docker: Error response from daemon: OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "tail": executable file not found in $PATH: unknown.
Any info on how to convert a docker image to singularity image would also be highly appreciated.
And if there is any additional information I could provide to help, please just let me know.
Thanks.

The way that we keep the container started and running is with tail (see https://github.com/singularityhub/docker2singularity/blob/master/docker2singularity.sh#L131), so you can:

ensure tail is installed in your Docker container before conversion
edit the docker2singularity.sh and rebuild the docker2singularity container to use another method to keep the container running
test a different container entirely that has tail.

The way that we keep the container started and running is with tail (see https://github.com/singularityhub/docker2singularity/blob/master/docker2singularity.sh#L131), so you can:

ensure tail is installed in your Docker container before conversion
edit the docker2singularity.sh and rebuild the docker2singularity container to use another method to keep the container running
test a different container entirely that has tail.


Waiting too long while writing a method call triggers error highlighting and completion becomes useless (fixed in GDScript 2.0)

Godot 3.2 alpha3
I ended up again in a case like this one:

Argument hints don't work, Ctrl+Click to lookup the method doesn't work. Even though the script editor surely knows what method it is (I gave a type to the variable), it looks like it just forgot or something? I'm left having to lookup the method manually to remember what arguments it takes. Or rewrite it until I get completion.
I'm noticing this quite often and it breaks my flow. Not all script assists should be turned off in this situation.
Update: in fact even after I fixed the error, Ctrl+Click on the method still doesn't work, so looks like two issues in here.

This is resolved in master with the GDScript rewrite, but it's unlikely that this can be fixed in 3.x.

Let's close as fixed in 4.0 then, it's not a critical issue that requires spending too much time on 3.x specifically (but if any contributor wants to work on it, feel free to).


Smart chunking

When it is possible to detect file type with the extension name, we should select an appropriate chunking strategy. This improves deduplication, data transfer speed and makes the network overall more efficient.
Here's some general guidelines:

Audio and video content should have trickle layout and chunk sizes of 1MB.
Images, compressed archives (.zip etc), size splitter with 1MB chunks, balanced layout.
Text, JSON etc. Buzhash chunker with balanced layout and 16kb chunks for best deduplication.
We can probably experiment with different params but this seems to be reasonable efforts.

I'm considering using this lib : https://github.com/gabriel-vasile/mimetype to detect mimetype using the first 512 bytes of a file.
Using the lib should give us more accuracy at the price of adding some slight delay when importing a file (need to be benchmarked).
We could also use both approch, where we first try based on extension name, if none is given, we use the library.

@gallexis yeah we use that lib for detecting the type when posting to the HTTP server so that should work fine.

@tchardin chunk.NewBuzhash(r io.Reader) only takes a reader, I can't set its chunk size, is it ok?
https://github.com/ipfs/go-ipfs-chunker/blob/master/buzhash.go#L24


pip install fails with "unable to execute './Modules/ld_so_aix' ..."

I am familiar with the GNU autotools making a command ld_so_aix, and the python package has one in it as well, but not in ./Modules (assuming during the build a cd to the python root has occurred).
Anyway, all is looking well - except I do not know where to find (so how to correct) how the call to ld_so_aix is made.
The key bits:
Python-2.7.11, xlC v11, 64-bit build mode
root@x064:[/data/prj/aixtools/pyzmq-15.2.0]find / -fstype jfs2 -name ld_so_aix
/opt/lib/python2.7/config/ld_so_aix

And from pip:
root@x064:[/data/prj/aixtools/pyzmq-15.2.0]pip install zmq
Collecting zmq
  Using cached zmq-0.0.0.tar.gz
Collecting pyzmq (from zmq)
  Using cached pyzmq-15.2.0.tar.gz
Installing collected packages: pyzmq, zmq
  Running setup.py install for pyzmq
    Complete output from command /opt/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-LqOTOe/pyzmq/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-sb86XM-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.aix-5.3-2.7
    creating build/lib.aix-5.3-2.7/zmq
    copying zmq/__init__.py -> build/lib.aix-5.3-2.7/zmq
    copying zmq/asyncio.py -> build/lib.aix-5.3-2.7/zmq
    copying zmq/error.py -> build/lib.aix-5.3-2.7/zmq
    creating build/lib.aix-5.3-2.7/zmq/auth
    copying zmq/auth/__init__.py -> build/lib.aix-5.3-2.7/zmq/auth
    copying zmq/auth/asyncio.py -> build/lib.aix-5.3-2.7/zmq/auth
....
    copying zmq/backend/cython/utils.pxd -> build/lib.aix-5.3-2.7/zmq/backend/cython
    copying zmq/devices/monitoredqueue.pxd -> build/lib.aix-5.3-2.7/zmq/devices
    copying zmq/utils/buffers.pxd -> build/lib.aix-5.3-2.7/zmq/utils
    copying zmq/utils/getpid_compat.h -> build/lib.aix-5.3-2.7/zmq/utils
    copying zmq/utils/ipcmaxlen.h -> build/lib.aix-5.3-2.7/zmq/utils
    copying zmq/utils/pyversion_compat.h -> build/lib.aix-5.3-2.7/zmq/utils
    copying zmq/utils/zmq_compat.h -> build/lib.aix-5.3-2.7/zmq/utils
    copying zmq/utils/zmq_constants.h -> build/lib.aix-5.3-2.7/zmq/utils
    running build_ext
    running configure
    Settings obtained from pkg-config: {'libraries': [u'zmq'], 'library_dirs': [u'/opt/lib'], 'include_dirs': [u'/opt/include']}
    {'libraries': [u'zmq'], 'extra_link_args': [], 'runtime_library_dirs': [], 'library_dirs': [u'/opt/lib'], 'include_dirs': [u'/opt/include']}
    xlc -I/opt/include -O2 -I/opt/buildaix/includes -DNDEBUG -O -I/opt/include -c build/temp.aix-5.3-2.7/scratch/check_sys_un.c -o build/temp.aix-5.3-2.7/scratch/check_sys_un.o
    xlc build/temp.aix-5.3-2.7/scratch/check_sys_un.o -L/opt/lib -R/opt/lib -o build/temp.aix-5.3-2.7/scratch/check_sys_un
    ld: 0706-027 The -R /opt/lib flag is ignored.
    Configure: Autodetecting ZMQ settings...
        Custom ZMQ dir:
    ************************************************
    xlc -I/opt/include -O2 -I/opt/buildaix/includes -DNDEBUG -O -I/opt/include -Izmq/utils -Izmq/backend/cython -Izmq/devices -c build/temp.aix-5.3-2.7/scratch/vers.c -o build/temp.aix-5.3-2.7/scratch/vers.o
    xlc build/temp.aix-5.3-2.7/scratch/vers.o -L/opt/lib -R/opt/lib -lzmq -o build/temp.aix-5.3-2.7/scratch/vers
    ld: 0706-027 The -R /opt/lib flag is ignored.
        ZMQ version detected: 4.1.4
    ************************************************
    building 'zmq.devices.monitoredqueue' extension
    creating build/temp.aix-5.3-2.7/zmq
    creating build/temp.aix-5.3-2.7/zmq/devices
    xlc -I/opt/include -O2 -I/opt/buildaix/includes -DNDEBUG -O -DHAVE_SYS_UN_H=1 -I/opt/include -Izmq/utils -Izmq/backend/cython -Izmq/devices -I/opt/include/python2.7 -c zmq/devices/monitoredqueue.c -o build/temp.aix-5.3-2.7/zmq/devices/monitoredqueue.o
        1500-030: (I) INFORMATION: __pyx_f_3zmq_7backend_6cython_7checkrc__check_rc: Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 8192.
    ./Modules/ld_so_aix xlc -bI:./Modules/python.exp build/temp.aix-5.3-2.7/zmq/devices/monitoredqueue.o -L/opt/lib -R/opt/lib -lzmq -o build/lib.aix-5.3-2.7/zmq/devices/monitoredqueue.so
    unable to execute './Modules/ld_so_aix': No such file or directory
    error: command './Modules/ld_so_aix' failed with exit status 1

    ----------------------------------------
Command "/opt/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-LqOTOe/pyzmq/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-sb86XM-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-LqOTOe/pyzmq

Thank you for your consideration!

pyzmq doesn't pick these commands, they are provided by Python itself, and typically are the commands used to build Python. How did you install Python? If it's from a package manager, is there perhaps a python-dev package containing extra files needed for building Python extensions?

Hi. I am a lot "smarter" these days - about how python provides this - and shall update the post accordingingly. Better, I shall provide an AIX install format (installp) (not so far to have it as a wheel, but very close).

@minrk - your observation was 100% correct:
There is (soon was I hope) an incorrect setting variable in _sysconfigdata.py. The variable LDSHARED should have the fullpath, e.g., something like:
_sysconfigdata.py: 'LDSHARED': '/opt/lib/python2.7/config/ld_so_aix xlc_r -bI:/opt/lib/python2.7/config/python.exp',


Fixed search 404 caused by URL encoding change

Hey, I just made a Pull Request!
This fixes the 404 error you would get when trying to search. This was due to #17152 which added encodeURIComponent to getBaseUrl. But also it was probably bad form to use getBaseUrl the way it was. I did a search for other cases like this but did not find any.
Error before this fix:

In the console you would then see attempts to use: api/search%2Fquery?term=
:heavy_check_mark: Checklist

[x] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[x] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[x] All your commits have a Signed-off-by line in the message. (more info)

Thanks @camilaibs, will be nice once the build issues are all sorted :)

Thank you @awanlin, I'll figure out why the e2e test is failing, have you rebased on the latest version of the master branch?  @backstage/maintainers I know you were waiting for a fix from octokit, is that done?

Thanks @freben and @camilaibs and @benjdlambert! 🚀


🔑 [Create Password Feature]

📲 What
This is a Create password feature branch
🤔 Why
Allows users who signed up for a KSR account through Facebook to create password and login with email/password credentials in addition to their FB login.
⏰ TODO

[x] Merge #607 - Extend ServiceType
[x] Merge #577 - Screen Layout
[x] Merge #606 - Account Screen
[x] Merge #625 - Form Validation
[x] Merge #637 - Graph Mutation Call on Save
[x] Merge #643 - Error handling
[x] Merge #641 - Koala tracking

Did a sanity check...lgtm but will wait for @ifbarrera & @Scollaco to sign-off


Tourofbeam+infrastructure

PR resolves (to be updated)
Purpose of PR: Tour of Beam infrastructure spin-up (both Backend and Frontend) using Terraform and Kotlin Gradle scripts
R: @olehborysevych
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

Closed as new duplicated PR has been created to maintain clean commit history
New PR: https://github.com/apache/beam/pull/25793
CC: @olehborysevych


Create an iterator interface for alternating_update

An iterator interface for alternating_update could allow advanced users more fine-grained control over iterating through region updates and sweeps, for example allow them to change the sweep pattern based on the current state of the solver, perform custom printing, move objects back and forth between different devices (i.e. CPU, GPU, disk, etc.) based on properties of the current state, etc.
Additionally, higher level function interfaces like alternating_update can be implemented as loops over those iterators, which could improve the code logic.
For example, alternating_update could be implemented like this:
sweep_iterator = AlternatingUpdateIterator(projected_operator, init_state, sweep_plans)
for (; region_iterator, which_sweep) in sweep_iterator # Iterate over sweep updates
  @show which_sweep # Custom printing
  for (; state, region) in region_iterator # Iterate over the region updates of the sweep
    @show region # More custom printing
    # Perform some logic, like if maxlinkdim(state) > 1000, move from GPU to CPU
    if maxlinkdim(state) > 1000
      sweep_iterator.state = cpu(state)
    end
  end
end

That's just a rough outline and example, I'm sure the interface won't be exactly like that.
This design approach could also help us rethink the sweep plan logic, which is a bit of a mess right now, and we'll also have to think about how it interfaces with the observer system (I think it fits in well, and would allow users to inject calls to the observer in a more custom way, while right now the calls are hardcoded at certain points in the code logic).
See these references for examples of iterative algorithms based around iterators:
https://docs.sciml.ai/DiffEqDocs/stable/basics/integrator
https://iterativesolvers.julialinearalgebra.org/dev/iterators
https://discourse.julialang.org/t/ann-optimkit-jl-a-blissfully-ignorant-julia-package-for-gradient-optimization/41063/3
@emstoudenmire @JoeyT1994

I like this. If I'm thinking about it correctly, the current design is based around an iterable data structure, so this idea would be conceptually a "superset" of the current one.
That is, one could still implement this new iterator design by just filling up a data structure and returning that, but one would not have to do it that way and could also have the freedom to write a set of functions that pass a stateful object to each other, which might be much shorter and cleaner to code and more 'dynamic'. These functions could check certain states and decide to do more steps on the fly or change keywords or other things like that.
Also we would probably make the default sweep_iterator be more of the "stateful function" design since that would be well suited for simple iteration patterns, like just walking a tree.


How do you feel to convert to OOP

Hey, I had the genius idea to convert the code to OOP. I have began refactoring on my fork but I vastly underestimated the amount of work needed. At first I thought it will be easy I will be done in like a day, it will take me much more time than that. So in the spirit of me not wasting my time to refactor and it being rejected, I thought to cut my losses and ask if you would entertain OOP.
Currently the code is spaghetti, it is typed but I don't know, I don't feel it.
Do you think it will be easier to maintain it if it is OOP? Should I continue or just give up?

Yes, that sounds like a lot of effort. In my opinion, it is very opinionated. You can produce spaghetti code with functional code as well as with OOP, one does not exclude the other. And since it would be a big effort to convert everything to OOP, I would rather leave it as it is. Are there a few places that we can improve so that it no longer looks like spaghetti code, but still corresponds to functional code?

Okay! I'm glad I asked before I was in too deep.

Wow, I didn't even realize the codebase was migrated to TypeScript, love to see it @PKief! Sorry I haven't been able to help out more with this transition, I've been absolutely slammed with work for the past couple weeks. But the TypeScript conversion is actually something I had been planning to propose anyway, so I'm glad you pushed that through! After working with TypeScript for a while it's hard to jump back into vanilla JS haha.


Managed Data Source view

Refactor the managed data source view to show to the user what we see.
Currently we show only top-level resources for Notion and Google Drive but will add hierarchy exploration as a follow-up PR.
Centralize the Edit Permission in that view (directly send to Notion/Google/Github or open the popup for Slack since we have a layer of internal permission edition).
Simplify greatly to Managed data source settings screen.
Add a search button to managed data sources since some users may still be relying on it.
add filterPermission to the connectors API in preparation for Google Drive cc @lasryaric


Pin SSH-Key

I think it would be a nice idea to pin specific ssh-keys. If I'm really certain, that I want only one key, I could provide it's fingerprint instead of using sshkeyscan.
ssh_known_hosts:
  - name: srv.example.org
    fingerprint: AAAAE2VjZHNhLXNoYTItbmlzdHAyN...
    aliases:
      - srv

Hi.
Thank you for raising this. I have thought about this already but have not been able to decide. There is a built-in Ansible module that does something similar. Here:
https://docs.ansible.com/ansible/latest/known_hosts_module.html
Have you looked at it? Does it already do what you suggest? Or something close? I would like to figure out if the built-in is sufficient or deficient before merging the PR.
Thank you.

actually, the known_hosts module would be a good place for this, but it doesn't support using aliases by now. also, there are some strange issues like https://github.com/ansible/ansible/issues/29319

Merged! Thank you.


Top50 and Top50Duration are identical

Now that Duration is total duration and not SelfDuration then both views are identical so one of them can be removed to avoid confusion and processing
Top50 sorts on percentage of duration/totalduration while Top50Duration sorts by highest duration. AFAIK they will always return the same list.

Yup you are right. I was thinking about that as well. They were identical before as well, pretty much. Just that Percent used more rounding.


vault{,-bin}: 1.8.3 -> 1.8.4

Motivation for this change
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

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

[x] Fits CONTRIBUTING.md.

@ofborg eval

Result of nixpkgs-review pr 141675 at d8a98827 run on aarch64-linux 1

2 packages built successfully:

vault
vault-bin


Setting an MD5 Hashfile = Token length exception

Always getting the error "Hash '/root/.hashcat/hashes/hash': Token length exception" when trying to use Mode 0 with an "hash" File, in the File is simply an Hash stored, nothing more. How to fix that?

Are you sure you're using a proper MD5 hash in the hash file you've specified? Try using a website like this one to make sure you've got the right hash type in that file.

I'm definitely sure that i put a simple MD5 in an File, yes, because i've generated a simple one myself (the word Test123!) just for testing :)

Could you send the file and the hashcat command you're using to crack?

@Shazgul the simplest way to ensure that your file is the hash and nothing else (like a stray hidden character that could mess up the parser) would be to make the file on the command line, like so:
echo "hash_goes_here" > filename_goes_here.hash


Lightweight Network configuration and documentation (rampup).

New Dune profile introduction: lightnet;
Mina Local Network Manager scripts and README updates.

!ci-build-me

!ci-build-me

!ci-build-me

!ci-build-me

Changes to local test network script only, not used in any CI job. Force merging


Strange WARN message not related to my index.sql or other sql files.

On running sqlpage.bin it gives this 'WARN' message on the terminal. None of this is related to the index.sql or other sql files used in this instance. The site works as intended though:
WARN  sqlpage::webserver::database::sql] Failed to prepare "WITH nums (x) AS (SELECT 1 UNION SELECT 2 UNION SELECT 3 UNION SELECT 4 UNION SELECT 5 UNION SELECT 6 UNION SELECT 7 UNION SELECT 8 UNION SELECT 9 UNION SELECT 10) SELECT a.x || ' times ' || b.x AS title, CASE a.x % 4 WHEN 0 THEN 'red' WHEN 1 THEN 'green' WHEN 3 THEN 'yellow' ELSE 'blue' END AS color, a.x || ' x ' || b.x || ' = ' || (a.x * b.x) AS description, 'This is basic math' AS footer, '?x=' || a.x AS link FROM nums AS a, nums AS b WHERE CAST(? AS CHAR) IS NULL OR b.x = CAST(CAST(? AS CHAR) AS DECIMAL) ORDER BY a.x, b.x": Failed to prepare SQL statement: 'WITH nums (x) AS (SELECT 1 UNION SELECT 2 UNION SELECT 3 UNION SELECT 4 UNION SELECT 5 UNION SELECT 6 UNION SELECT 7 UNION SELECT 8 UNION SELECT 9 UNION SELECT 10) SELECT a.x || ' times ' || b.x AS title, CASE a.x % 4 WHEN 0 THEN 'red' WHEN 1 THEN 'green' WHEN 3 THEN 'yellow' ELSE 'blue' END AS color, a.x || ' x ' || b.x || ' = ' || (a.x * b.x) AS description, 'This is basic math' AS footer, '?x=' || a.x AS link FROM nums AS a, nums AS b WHERE CAST(? AS CHAR) IS NULL OR b.x = CAST(CAST(? AS CHAR) AS DECIMAL) ORDER BY a.x, b.x': error returned from database: 1054 (42S22): Unknown column 'b.x' in 'field list': 1054 (42S22): Unknown column 'b.x' in 'field list'
There appears to be a "somewhat" similar closed issue, but this had a very different message: https://github.com/lovasoa/SQLpage/issues/23
EDIT: sorry, forgot to add that this was detected on version 0.10.0 and just confirmed on 0.10.2.

Hello and thank you for the report! This looks like a problem with our default index.sql that displays the "it works" page. Which database server and version are you using?

Thanks for the quick reply! MariaDB 10.4.12 on CentOS-7.

The latest version of MariaDB works, but indeed, I get this message with old versions too. I'll see what I can do.


[FLOC-4085] Tighten constraints on CloudFormation user Inputs

CloudFormation user can leave {AmazonAccessKeyID, AmazonSecretAccessKey, EC2KeyPair} Inputs empty, leading to failure in stack creation, and subsequent trouble in triaging cause of failure (due to stack rollback being default action).
This PR attempts to impose stricter constraints around user Inputs. The constraints are gathered from Amazon documentation.
Master copy of CloudFormation template has been updated with the changes in this PR in order to facilitate testing.
Testing:

Manual tests passed

Endtoend test passed:

ubuntu@ip-172-31-25-23:~/flocker/admin/installer$ KEEP_STACK=1 CLOUDFORMATION_TEMPLATE_URL=https://s3.amazonaws.com/installer.downloads.clusterhq.com/flocker-cluster.cloudformation.json KEY_PAIR=$KEY ACCESS_KEY_ID=$ACCESS_KEY_ID SECRET_ACCESS_KEY=$SECRET_ACCESS_KEY VOLUMEHUB_TOKEN='' trial flocker.acceptance.endtoend.test_installer
flocker.acceptance.endtoend.test_installer
  DockerComposeTests
    test_docker_compose_up_postgres ... Warning: Permanently added '<IP_ADDRESS>' (ECDSA) to the list of known hosts.
                                   [OK]

-------------------------------------------------------------------------------
Ran 1 tests in 751.492s

PASSED (successes=1)
ubuntu@ip-172-31-25-23:~/flocker/admin/installer$

Thanks @myechuri
The validation patterns don't seem to work for me.
Looking at the JSON template it looks like the regexp we supply to Troposphere is being mangled:
    "Parameters": {
        "AmazonAccessKeyID": {
            "AllowedPattern": "[\\w]+",
            "Description": "Your Amazon AWS access key ID (mandatory)",
            "MaxLength": "32",
            "MinLength": "16",
            "NoEcho": true,
            "Type": "String"
        },
        "AmazonSecretAccessKey": {
            "Description": "Your Amazon AWS secret access key (mandatory)",
            "MinLength": "1",
            "NoEcho": true,
            "Type": "String"
        },
        "EC2KeyPair": {
            "AllowedPattern": "[ -~]*",
            "ConstraintDescription": "can contain only ASCII characters.",
            "Description": "Name of an existing EC2 KeyPair to enable SSH access to the instance (mandatory)",
            "MaxLength": "255",
            "MinLength": "1",
            "Type": "String"
        },
        "VolumeHubToken": {
            "Default": "",
            "Description": "Your Volume Hub token (optional). You'll find the token at https://volumehub.clusterhq.com/v1/token.",
            "Type": "String"
        }
    },

the min and max length constraints don't seem to work either. I was able to enter a single character in each field and proceed to the stack creation.
I made one or two other suggestions above.
Let's see if we can make this better before merging.

Ah, the Splunk Cloudformation template work around the lack of required parameters by specifying a default for each of those fields:

https://github.com/splunk/splunk-aws-cloudformation/blob/master/templates/splunk_cluster.template

So perhaps we could say :+1:
secret_access_key_param = template.add_parameter(Parameter(
    "AmazonSecretAccessKey",
    Description="Your Amazon AWS secret access key (mandatory)",
    Type="String",
    NoEcho=True,
    MinLength="1",

))

@myechuri I tried it again after logging out and back in again.
As you said, the validation takes place when you click create and the patterns do seem to catch empty and invalid fields.
So merge when you've answered or addressed my latest review comments above.
Thanks.

Endtoend test with the latest commit:
ubuntu@ip-172-31-25-23:~/flocker/admin/installer$ KEEP_STACK=1 CLOUDFORMATION_TEMPLATE_URL=https://s3.amazonaws.com/installer.downloads.clusterhq.com/flocker-cluster.cloudformation.json KEY_PAIR=$KEY ACCESS_KEY_ID=$ACCESS_KEY_ID SECRET_ACCESS_KEY=$SECRET_ACCESS_KEY VOLUMEHUB_TOKEN='' trial flocker.acceptance.endtoend.test_installer
flocker.acceptance.endtoend.test_installer
  DockerComposeTests
    test_docker_compose_up_postgres ... Warning: Permanently added '<IP_ADDRESS>' (ECDSA) to the list of known hosts.
                                   [OK]

-------------------------------------------------------------------------------
Ran 1 tests in 670.570s

PASSED (successes=1)
ubuntu@ip-172-31-25-23:~/flocker/admin/installer$


How to connect to a remote alias?

Hi,
I have many Clients, they connect to a MSSQL Server (let me name it DBS_01). Everything work fine!
Now I want to move the DB to another maschine DBS_02. DBS_02 is outside our network and i need a VPN connection to connect to it.
On DBS_01 i created an alias to DBS_02 and i can connect. But only from the DBS_01, not from the clients!
I have tried the alias also with the name of the machine (DBS_01\newDB). But nothing works.
What shell I do, to connect the clients to the alias?
Thank you so much
Jo A. Kim
Dokumentdetails
⚠ Bearbeiten Sie diesen Abschnitt nicht. Er ist für die Verknüpfung von docs.microsoft.com zum GitHub-Artikel erforderlich.

ID: b465c6c5-a14a-1190-ed27-3bf4b3b51fa5
Version Independent ID: 5c375e20-d566-90fe-f19a-f3fc5fbc864a
Content: Erstellen oder Löschen eines Serveralias für die Verwendung durch einen Client - SQL Server
Content Source: docs/database-engine/configure-windows/create-or-delete-a-server-alias-for-use-by-a-client.md
Product: sql
Technology: configuration
GitHub Login: @markingmyname
Microsoft Alias: maghan

@derbuchmann -- Jo, thank you for your question.  Please consider these resources:

SQL Server on Microsoft Q&A
DBA Stack Exchange
Stack Overflow

Let me know if you are still blocked afterward.


Allow devices to expose the host, port and secure info for each forwarder session

The io.edgehog.devicemanager.ForwarderSessionsState Astarte interface advertises the state of each session, exposing the status on the property /%{session_token}/status.
However there is no info about the host and port of the Forwarder used by that session.
It would be useful to find a way to expose those information in a reliable manner.
Also, if in the future multiple instances of the cloud Forwarder exist, it would become hard to know which one is used by a specific session token.

One option could be to query the Astarte interface io.edgehog.devicemanager.ForwarderSessionRequest and filter for the session token, in order to retrieve the initial request along with the other info. However with this approach it is not clear how many datastream events should be fetched in order to find the matching one.
Another option could be to update the interface and add /%{session_token}/host, /%{session_token}/port and /%{session_token}/secure endpoints. However these endpoints are updated one at a time by the device, so it might happen that some properties are missing when Edgehog queries the interface.
Another option could be to update the interface so that the device publishes object properties instead of individual properties. However, at the time of writing, this approach is not feasible since the functionality is not implemented in Astarte, see issue: astarte-platform/astarte#503.
Another option could be to update the interface so that an endpoint like  /%{session_token}/%{host}/%{port}/%{secure}/status can be published. However this approach should be validated and it would lead to an odd property structure.
Another option could be to update the interface so that an endpoint like  /%{session_token}/state contains a JSON with all the necessary info. However this approach does not support type definitions and validation.


Curve with Color/image filter on GPUImage

Hi,
I have Room image , I want to select a portion of wall to blend with color/image. I read uibezier interpolation curve to create a curve but i don't know how to filter/blend the curve portion on gpuimage.
Regards
Sathiya

See your other issue.


Error when trying to Insert Pandas Dataframe into Redshift with 'INTEGER' type

awswrangler version 0.3.2
We noticed that when trying to insert a pandas Dataframe into Redshift, we get an error when specifying a cast column of type 'INTEGER'.
Redshift Schema
create table test.test_cast
(
    col_int_null int
);

Dataframe Creation and function call
df = pd.DataFrame({
    'col_int_null': [None, 1],
})

wr.pandas.to_redshift(
    dataframe=df,
    path='s3_path',
    table='test_cast',
    schema='test',
    connection='test_connection',
    iam_role='iam_role',
    mode="append",
    preserve_index=False,
    cast_columns={
        'col_int_null': 'INTEGER',
    },
)

Stack Trace and Debug Messages
cast_columns: {'col_int_null': 'int'}
partition_cols: []
procs_cpu_bound: 1
procs_io_bound: 24
Casting column col_int_null Int64 to float64
Casting column col_int_null (0) to bigint (int64)
Traceback (most recent call last):
  File "script.py", line 341, in <module>
    run()
  File "script.py", line 337, in run
    'col_int_null': 'INTEGER',
  File "/Users/username/.virtualenvs/test_cast-qMgZg6ug/lib/python3.6/site-packages/awswrangler/pandas.py", line 1157, in to_redshift
    raise ex
  File "/Users/username/.virtualenvs/test_cast-qMgZg6ug/lib/python3.6/site-packages/awswrangler/pandas.py", line 1150, in to_redshift
    varchar_lengths=varchar_lengths)
  File "/Users/username/.virtualenvs/test_cast-qMgZg6ug/lib/python3.6/site-packages/awswrangler/redshift.py", line 278, in load_table
    cursor.execute(sql)
  File "/Users/username/.virtualenvs/test_cast-qMgZg6ug/lib/python3.6/site-packages/pg8000/core.py", line 861, in execute
    self._c.execute(self, operation, args)
  File "/Users/username/.virtualenvs/test_cast-qMgZg6ug/lib/python3.6/site-packages/pg8000/core.py", line 1909, in execute
    self.handle_messages(cursor)
  File "/Users/username/.virtualenvs/test_cast-qMgZg6ug/lib/python3.6/site-packages/pg8000/core.py", line 1976, in handle_messages
    raise self.error
pg8000.core.ProgrammingError: {'S': 'ERROR', 'C': 'XX000', 'M': 'S3 Query Exception (Fetch)', 'D': "\n  -----------------------------------------------\n  error:  S3 Query Exception (Fetch)\n  code:      15001\n  context:   Task failed due to an internal error. File 'https://s3.amazonaws.com/test_bucket/tmp/2c4c6c9dba344264a5965a07a4116d6b.snappy.parquet  has an incompatible Parquet schema for column 's3://test_bucket/\n  query:     1548333\n  location:  dory_util.cpp:1138\n  process:   fetchtask_thread [pid=25245]\n  -----------------------------------------------\n", 'F': '/home/ec2-user/padb/src/sys/xen_execute.cpp', 'L': '8653', 'R': 'pg_throw'}

This appear to be because of the athena2pandas mapping all Athena integer types to Int64 dtypes.
https://github.com/awslabs/aws-data-wrangler/blob/master/awswrangler/data_types.py#L19-L20
When switch athena2pandas to map integers more specifically, (i.e. Athena int to dtype Int32) we no longer get this error:
    if dtype in ("bigint",):
        return "Int64"
    elif dtype in ("int", "integer", "smallint", "tinyint"):
        return "Int32"

Just to note, smallint and tinyint may need more specific mappings. We were just testing with integer.

Also just a note, if we were to change the athena2pandas to map more specifically, the below code would no longer apply to anything either than a 'bigint'. It is now currently applying to every integer type in Athena as every Athena int type is mapped to 'Int64' dtype:
https://github.com/awslabs/aws-data-wrangler/blob/master/awswrangler/pandas.py#L1020-L1024
I'm not sure what the purpose of this code snippet is though.

Hi @GroovyDan, thank you for the awesome troubleshooting!
It makes a lot of sense, and we will address this integers specification in the new 1.0.0 version.
We will also try to remove the code snippet at https://github.com/awslabs/aws-data-wrangler/blob/master/awswrangler/pandas.py#L1020-L1024.
It was necessary in the past because at least at that time PyArrow didn't accept the new Int64 (with capital "I") pandas data type, so the purpose was workaround this limitation casting the pandas column to float64 during the conversion to then convert it back to integer in the Arrow Table.
So, version 1.0.0 is coming with tons of others improvements and simplifications. If you want I can let you know when this functionality will be ready to be tested.

Hi! We will release AWS Data Wrangler 1.0.0 on April 10 and we are collecting as much feedback as possible.
This issue should be resolved with this release. So, please test it if possible, and any feedback about the docs, the library or this specific functionality will be very welcome.

Install: pip install<EMAIL_ADDRESS>Docs: https://aws-data-wrangler.readthedocs.io/en/dev-1.0.0/
Code: https://github.com/awslabs/aws-data-wrangler/tree/dev-1.0.0

Thank you for the contribution. Please, reopen the issue if it persists even after the version 1.0.0.


FileNotFoundError: [Errno 2] No such file or directory: '/home/tqminh/codes/AmodalSeg/data/datasets/COCOA/cocoa_cat_list'

FileNotFoundError: [Errno 2] No such file or directory: '/home/tqminh/codes/AmodalSeg/data/datasets/COCOA/cocoa_cat_list'

Hi! you can handle this issue with https://github.com/UARK-AICV/AISFormer/issues/2.


Strided rolling

This PR adds a stride parameter to the rolling function of DataArray and Dataset . It basically extends the stride functionality being available for core.rolling.DataArrayRolling.construct  and core.rolling.DatasetRolling.construct to the other methods of DataArrayRolling and DatasetRolling.
Note: it makes the arguments of DataArrayRolling and DatasetRolling inconsistent with the respective rolling arguments of pandas Series and DataFrame (They do not support stride).
Moreover, it does not solve the issue addressed in this pandas issue (Efficient stride computation).

[x] Tests added
[x] Passes black . && mypy . && flake8
[x] Fully documented, including whats-new.rst for all changes and api.rst for new API

@niowniow
Thank you for your contribution!
I think stride option is a good idea.
One thing is how to implement this efficient nan-reduction method.
Currently, we use 'bottleneck' if it is installed for speeding up nan-ops, but bottleneck does not support stride option.
Another problem is inefficiency of nan-ops of numpy for strided arrays; he copies the strided array into full array and replace np.nan by zero before the reduction.
One way we could do is

skip using 'bottleneck' if stride is other than 1
implement our nan-ops for rolling.
For example, for nansum, we can replace np.nan by 0 before creating the strided arrays and apply usual sum for the strided array.

In rolling.count, we did a similar thing.

Hello @niowniow! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file xarray/core/rolling.py:

Line 485:74: E241 multiple spaces after ','
Line 528:17: E222 multiple spaces after operator

Is that still wanted?
It seems like a useful feature to have.


fix: correct loc of comments, add offset into loc point

related https://github.com/mdx-js/eslint-mdx/issues/380

Initial checklist

[x] I read the support docs
[x] I read the contributing guide
[x] I agree to follow the code of conduct
[x] I searched issues and couldn’t find anything (or linked relevant results below)
[x] If applicable, I’ve added docs and tests

Description of changes
As title

It seems it has been handlered incorrectly in visit.

I don’t understand what you did? Why did you stop? Is this project not used in eslint-mdx? Which visit do you mean?


⚠ ClamAV has degraded performance

In 12c6c3a, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 106 ms

Resolved: ClamAV performance has improved in 72768d0.


Plugin for local coordinate system selectors

This adds a new plugin that adds 3 new axes to use in selectors, the local X, Y, and Z. It's pretty intrusive on how it monkey patches than how I'd like, and basically uses globals to inject the local axis vectors into the string selector parsing logic, so please let me know if you guys think there's a better way to do it

I think it should be good for final review now

@cactorium The lint check is still failing. Please be sure you are running the same black version as this plugin repo, which follows the core CQ repo.
pip install git+https://github.com/cadquery/black.git@cq

Ah, whoops, thank you

@cactorium The lint check is green now, so I think everything is ok. Thanks for the contribution!


WARN: No gulpfile found!

Note: for support questions, please use one of these channels:
https://forum.ionicframework.com/
http://ionicworldwide.herokuapp.com/
Short description of the problem:
When I run ionic serve
WARN: No gulpfile found!
If your app requires a build step, you may want to ensure it runs before serve.
What behavior are you expecting?
Steps to reproduce:
1.
2.
3.
insert any relevant code between the above and below backticks (```)

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
Run ionic info from terminal/cmd prompt: (paste output below)

Please install the latest version of the CLI before running the conference app:
npm install -g ionic

The CLI version installed should be 2.1.1. You can check the version by running ionic -v from a terminal. If you are still seeing the wrong version, try uninstalling it before reinstalling it using npm uninstall -g ionic. Thanks! :)


ID 73bb5308-d754-4ef2-b058-6b1b90e4cc8c

          ID 73bb5308-d754-4ef2-b058-6b1b90e4cc8c

Wallet:0xe4025DF65DdF62Bcf234e186484c7302D20FE121@43114
Originally posted by @Johnson1s in https://github.com/neodyme-labs/solana-security-txt/issues/7#issuecomment-1935132755

          ID 73bb5308-d754-4ef2-b058-6b1b90e4cc8c

Wallet:0xe4025DF65DdF62Bcf234e186484c7302D20FE121@43114
Originally posted by @Johnson1s in #7 (comment)


IIIF predicates on books and pages

Somewhat related to #32 in that these must be editable fields, though not descriptive properties. Will be required for #21.
(sc = http://iiif.io/api/presentation/2#)
Scanned Books need:
Viewing Direction (sc:viewingDirection). The value/object must be one of:

left-to-right (sc:leftToRightDirection) (default)
right-to-left (sc:rightToLeftDirection)
top-to-bottom (sc:toToBottomDirection)
bottom-to-top (sc:bottomToTopDirection)

Viewing Hint (sc:viewingHint). The value/object must be one of:

individuals (sc:individualsHint) (default)
paged (sc:pagedHint)
continuous (sc:continuousHint)

Pages need:
Viewing Hint (sc:viewingHint). The value/object must be one of:

non-paged (sc:nonPagedHint)
facing-pages (sc:facingPagesHint)

Label (rdfs:label)

All dropdowns.

@jpstroop I don't see the URIs for the acceptable values (IE sc:leftToRightDirection) in the spec, so I assume they won't resolve. Rather I just see literals as stand-ins - is this work that's in progress?

Hmm. The URIs are used in the the JSON-LD context, and I thought that they did resolve to this ontology.
Paging @azaroth42: Any reason we can't make this so?

Oh, that's interesting. The JSON-LD context layers a URI on the literal

While URIs SHOULD resolve to their appropriate term definitions, what's the requirement in particular?
left-to-right is sc:leftToRightDirection is http://iiif.io/api/presentation/2#leftToRightDirection
So it's a URI ... which doesn't resolve.
I put in a redirect from 2 to 2/ontology.xml on the iiif.io server and created a "Update the ontology" issue:  https://github.com/IIIF/iiif.io/issues/551

@azaroth42 :+1: That'll fix resolution. Thank you.
@jpstroop Use the URIs for the forms? I ask because transforming the string http://iiif.io/api/presentation/2#leftToRightDirection to an RDF::URI in the right circumstances will require a number of overrides.

For now I think it's good enough help people know that the ontology exists. Thanks Rob!

Advanced by 8bc054d92edaad04324d10231d9768a8c78abd42 and 4c135a2915f0773142af9a6ece6b231bea192be2. Closing this and opening a new issue for form fields (#62).


Order rules with exact terms higher than those with specializers

With this policy:
f(x: Integer);
f(1);

g(1);
g(x: Integer);

You get:
query> f(1)
[debug]   QUERY: f(1), BINDINGS: {}
[debug]     APPLICABLE_RULES:
[debug]       f(x: Integer);
[debug]       f(1);
...
query> g(1)
[debug]   QUERY: g(1), BINDINGS: {}
[debug]     APPLICABLE_RULES:
[debug]       g(x: Integer);
[debug]       g(1);
...

The version with a specializer is considered more specific in both version, even though 1 is more specific than Integer.
(In general it makes sense to consider concrete values first I think?)

Offending code:
https://github.com/osohq/oso/blob/main/polar-core/src/vm.rs#L2484-L2486

I'd like to go ahead and claim this issue 🙂
Where in the code should I start digging into to address this?

Thanks @seanchen1991 ! This has started a larger architectural discussion within Oso about how all this should work. I'll take care of this one.

Just so that any architectural discussion keeps the original issue in mind, this was reported for the case where an enum variant was unexpectedly considered to be less specific than the enum type.
This meant I could not write a rule that would match first for Permission::READ_ONLY (an Oso constant registered from a Rust enum variant) as a rule for Permission (the same Rust enum, registered as an Oso class) was matched instead.


Spectral Range Features

This is a somewhat vague one, capturing as a place-holder.
If you use Google Maps, Apple Maps etc, they give you the option to show overlays of different types of features.  Want to see terrain?  Here you go.  How about traffic?  Sure.  Weather, restaurants, house prices?  Knock yourself out.  But all of them relevant and specific to where you are, your "current neighborhood."
My thought is an extra widget in the ControlPanel, "Spectral Feature Overlays" or something like that, with dynamically appearing checkboxes listing "features of interest" visible within the current technique and passband (spectral range).
For instance, if you can see the water absorbance line around 930nm, then that could appear.  If you can see the Raman peaks for air and water, those should appear.  Perhaps standard fluorescent room lights should always be included.  The actual list of names, whether each is Raman or emission, and peaks should be drawn from a JSON file, so application scientists can update the set over time without changing code.  Perhaps we could even label peaks within a feature.
A sample file might look like:
{
  "Technique": {
    "Raman": {
        "Water": [
            { "Shift": 3250, "Label": "asymmetric –OH stretch" },
            { "Shift": 3410, "Label": "symmetric –OH stretch" },
          ],

          "Air": [
             { "Shift": 1556.4, "Label": "O2" },
             { "Shift": 2331, "Label": "N2" },
             { "Shift": 4152, "Label": "H2" },
          ]
     },
  },

  "Absorbance": {
     "Water": [
        { "Wavelength": 930 },
        { "Wavelength": 1553, "Label": "so-called 'eyesafe' lasers" }
      ],

     "Chlorophyll": [
        { "Wavelength": 424, "Label": "A" },
        { "Wavelength": 464, "Label": "B" },
        { "Wavelength": 615, "Label": "B" },
        { "Wavelength": 667, "Label": "A" }
       ]
    }
}

I feel this has been adequately addressed with the EmissionLines and RamanLines plugins.  Yeah we can do an AbsorbanceLines too when we're playing with non-Raman.


Fix CircleCI badge and add Go Report badge

Codecov Report

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

@@           Coverage Diff           @@
##           master       #1   +/-   ##
=======================================
  Coverage   94.93%   94.93%
=======================================
  Files           6        6
  Lines         158      158
=======================================
  Hits          150      150
  Misses          4        4
  Partials        4        4

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 5ebbb61...6837ab4. Read the comment docs.


Update azure-stack-edge-gpu-activation-key-vault.md

Added a point around browsing to the Azure Key Vault

@shijojoy : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@shijojoy Minor tweak suggested. Thanks!

@alkohli I applied the revision you requested. (I used lowercase "key vault" because it looks like you are choosing an instance of Azure Key Vault, a key vault.)

#sign-off


Parent directory Stable-diffusion does not exist

Having this suddenly. I believe it's from an update. It was working find 4 hours ago.
Converting to CKPT ...
Traceback (most recent call last):
  File "/content/convertosd.py", line 228, in <module>
    torch.save(state_dict, checkpoint_path)
  File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 422, in save
    with _open_zipfile_writer(f) as opened_zipfile:
  File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 309, in _open_zipfile_writer
    return container(name_or_buffer)
  File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 287, in __init__
    super(_open_zipfile_writer_file, self).__init__(torch._C.PyTorchFileWriter(str(name)))
RuntimeError: Parent directory /content/gdrive/MyDrive/sd/stable-diffusion-webui/models/Stable-diffusion does not exist.
Something went wrong, try again

try with a new sd folder and the latest colab

solved follwing your instruction, thanks.


Integrate Error Prone checking to spring-gcp

Integrates Error Prone (http://errorprone.info) to the compilation process for spring-gcp.
This detects issues at compile time.
Here, we make an explicit capture of an ignored return value with a comment: http://errorprone.info/bugpattern/CheckReturnValue
Additionally, in a test where a Stream is opened with Files.list(), we use try-with-resources to ensure the directory stream is closed (per documentation): http://errorprone.info/bugpattern/StreamResourceLeak

Thanks @nglorioso. It was a conscious decision to be using checkstyle instead of error prone.
@meltsufin @artembilan wdyt about adding error prone to the project, besides checkstyle? Overkill?

@joaoandremartins Errorprone addresses somewhat different concerns than checkstyle. I think we should add this. Thanks for the contribution @nglorioso!

Yes, I think we can add this as well.
@nglorioso ,
Before starting review we need a confirmation from you that CLA is signed: https://cla.pivotal.io/
Thank you so far!

@artembilan, @nglorioso is a Googler. So, I think he's covered by the corporate CLA.

OK. But that isn't clear by his GitHub account :smile:

True! @nglorioso I think you'll need to make your organizations membership public for this to be accepted.

Thanks for the thumbs up! I've made that membership public now.

@nglorioso can you please update your branch with the latest on master? That should fix the Travis build by disabling integration tests. Thank you!

Rebased on top of spring-cloud-gcp/master


Add meetingbot

err-meetingbot looks quite good from skimming the code.
Needs to be tested locally, then added to corobo's default setup.
Would also be good to add some info to the README.md upstream

Also https://github.com/Team488/meeting-bot , which provides meeting planning capability.

Alternative https://github.com/pythiannunez/err-pythianbot
(which also provides https://github.com/coala/corobo/issues/375)

https://github.com/markusj/titlebot-ng

manual testing didn't work out that well so far:

https://github.com/ersiko/err-meetingbot generated errors on install (python3)
https://github.com/Team488/meeting-bot didn't make any commands available in !help
https://github.com/errbotio/err-poll creates votes all right but crashes on voting