Could we avoid hardcoding brewisms on macOS?

CMakeLists now hardcodes Homebrew-specific paths:
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
  add_compile_definitions(_XOPEN_SOURCE_EXTENDED)
  list(APPEND CMAKE_PREFIX_PATH /usr/local/opt/ncurses)
  list(APPEND CMAKE_PREFIX_PATH /opt/homebrew/opt/ncurses)
  list(APPEND OPENSSL_ROOT_DIR /usr/local/opt/openssl)
  list(APPEND OPENSSL_ROOT_DIR /opt/homebrew/opt/openssl)

It is undesirable to hardcode any paths, alien to the OS itself, unconditionally. Consider that someone has installed both Homebrew and another package manager (MacPorts, pkgsrc or you name it), and installs nmail from the latter. This gonna end up in opportunistic linking to brew libraries.

Hi @barracuda156 - that sounds like a reasonable request. Do you know any example of good practise w.r.t. this?
From a quick googling it seems one can determine MacPorts install prefix with:
dirname $(dirname $(which port))

And brew install prefix with:
brew --prefix

So the naive solution would just be to add those paths (based on presence of brew and port), but the CMakeLists.txt would still need to add them in some order. I'm not sure if there's a method to determine if a program is built from brew or MacPorts? If there is, I suppose it could determine which order to add the paths.

MacPorts does not need any software to inquire or set MacPorts prefix, since MacPorts build system handles that. So just leaving it to CMake works perfectly fine (same goes for OpenSSL install prefix etc.).
I hope Homebrew is smart enough to handle that as well, but I cannot verify that.
If Homebrew cannot handle its own prefix and has no idea where it installs OpenSSL, then passing paths from CMakeLists will be necessary, but only when building with Homebrew, not in a general case.
Paths will be different for pkgsrc also (it is native to NetBSD but supports macOS too), perhaps for Fink (no idea where it installs stuff), then somebody may want to avoid relying on any package manager, which is perfectly possible too.
Since none of mentioned package management systems are a part of macOS, it does not seem logically correct to assume any of those is even present.
If there is a preference to specifically favor Homebrew, then maybe introduce CMake option BREW_BUILD or alike, and then move all brew-specific logic inside that?

Hello - so just to clarify - those hard-coded paths were added not for when building and installing nmail using brew, but for when installing its dependencies using brew and building manually from source. I believe nmail was only added to brew and MacPorts this year, so prior to that one had to build from source - and I, for natural reasons, still build from source. I suspect several others also still do.
Anyway, I agree it would be neat to avoid these hardcoded paths altogether, so I will continue look into it. Perhaps newer CMake versions have better capabilities detecting these dependencies. Having that said, since these are list(APPEND .. (appending to a list of paths, at the end presumably) I would assume the MacPorts (and Brew) builds still would use the appropriate paths first, as I suspect they pass any paths necessary with arguments or environment variables when invoking cmake. I could be wrong though. Do let me know if you've seen build errors/warnings due to them.


Add support for graph

See https://github.com/ros2/rcl/blob/master/rcl/include/rcl/graph.h
Since this is a complex feature, it would be good to have some prior experience with the code base and/or seek early-stage feedback from other contributors.

Closed by #233.


Remove use of HAS_GPU from dispatch functions

Remove use of HAS_GPU from dispatch functions.
Following #211 the variable HAS_GPU no longer includes the information about whether or not cudf is installed. This can result in confusing errors when using the dispatch functions in a GPU enabled environment without cudf available. ('NoneType' object has no attribute 'DataFrame')

It looks like some of the NVT test failures might actually be related to these changes

It looks like some of the NVT test failures might actually be related to these changes

I've updated and resolved these issues. The typehint for read_dispatch suggested that it might only accept a dataframe type, but is also called with strings. Updated to handle that case.
And the functions {random_state, arange, array, zeros} all had the same pattern. Updated to handle RangeIndex type passed as like_df and the base case where like_df is None and we're simply picking between cupy and numpy. The code is more verbose, but is clearer about what it's doing now. Hopefully a further refactor later will remove the need for these altogether


Finished installing correctly, but can't use cudnn

CUDA: V8.0.61
cudnn: 6.0.21
I set PATH.
export CFLAGS=-I~/cuda/include
export LDFLAGS=-L~/cuda/lib64
export LD_LIBRARY_PATH=~/cuda/lib64:$LD_LIBRARY_PATH

And I installed cupy via pip.
pip install cupy --no-cache-dir -vvvv > log
Then, I tried using cudnn.
python
>>> import chainer
>>> chainer.cuda._resolution_error
ImportError('/home/user/anaconda3/lib/python3.6/site-packages/cupy/cuda/cudnn.cpython-36m-x86_64-linux-gnu.so: undefined symbol: cudnnSetFilterNdDescriptor_v3',)

It maybe failed to load cudnn library dynamically. So I tried this issue and add PATH.
LD_LIBRARY_PATH=~/cuda/lib64:/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH
But still I can't use cudnn. (I can use cupy without cudnn.)
This is install log.
https://gist.github.com/dhgrs/be5ec56b62576851757f52c96433d327

As you say, it looks dynamic loading problem. cudnnSetFilterNdDescriptor_v3 is a symbol in libcudnn.so. And you need to set LD_LIBRARY_PATH correctly.
I think you installed libcudnn.so to ~/cuda/lib64, right? Please check it and its version. All cudnn does not have binary compatibility. If your OS tries to link different version of cudnn, it fails.
I can find gcc can link to libcudnn.so here: https://gist.github.com/dhgrs/be5ec56b62576851757f52c96433d327#file-log-L285
So gcc successfully found libcudnn.so. Please check other directories also. I suspect that there are two different versions of cudnn, and gcc uses one and OS tries to load another one.

Yes, I installed cudnn to ~/cuda/ .
And cudnn is installed to /usr/local/cuda-8.0/ for other user. In that directory, there are two versions of cudnn(5.0.5 and 6.0.21).
I think use cudnn in /usr/local/cuda-8.0/ . So I set PATH.
export CFLAGS=-I~/cuda/include
export LDFLAGS=-L~/cuda/lib64
export LD_LIBRARY_PATH=~/cuda/lib64:$LD_LIBRARY_PATH

But in the log, directories are set to /usr/local/cuda-8.0/ .
https://gist.github.com/dhgrs/be5ec56b62576851757f52c96433d327#file-log-L39
I check libcudnn.so is realy in ~/cuda/lib64 .
$ echo $CFLAGS
-I~/cuda/include

$ echo $LDFLAGS
-L~/cuda/lib64

$ echo $LD_LIBRARY_PATH
/home/user/cuda/lib64:/usr/local/DL-Box/torch7/install/lib:/opt/OpenBLAS/lib:/usr/local/lib:/usr/local/cuda-8.0/lib64:/usr/local/cuda-8.0/extras/CUPTI/lib64:/usr/local/DL-Box/digits-4.0/caffe/distribute/lib:

$ ls ~/cuda/lib64
libcudnn.so  libcudnn.so.6  libcudnn.so.6.0.21  libcudnn_static.a

$ ls ~/cuda/include
cudnn.h

As a trial, I removed /usr/local/cuda-8.0/lib64:/usr/local/cuda-8.0/extras/CUPTI/lib64: from LD_LIBRARY_PATH . But the result didn't change.
FYI:
$ which nvcc
/usr/local/cuda-8.0/bin/nvcc

Hum... it is difficult.
I checked the symbol cudnnSetFilterNdDescriptor_v3 and it exists in cudnn v5, but does not in v6. It suggests your compiler and linker used v5.
In this line, the linker searched the library from -L/home/user/anaconda3/lib, -L~/cuda/lib64 and -L/usr/local/cuda-8.0/lib64 in this order, and successfully found the libcudnn.
https://gist.github.com/dhgrs/be5ec56b62576851757f52c96433d327#file-log-L285
Can you check /home/user/anaconda3/lib?

I checked /home/user/anaconda3/lib as below.
$ find /home/user/anaconda3/lib/*cudnn*

But I couldn't find libcudnn.

The problem was solved!
I reset PATH.
export CFLAGS=-I/home/user/cuda/include
export LDFLAGS=-L/home/user/cuda/lib64
export LD_LIBRARY_PATH=/home/user/cuda/lib64:$LD_LIBRARY_PATH

make can't understand ~ as home directory. So linker didn't search /home/user/cuda/lib64 and did search /usr/local/cuda-8.0/lib64 .

Oh, I understand... I'll add a notice about it in the document.


There is no link to the Nuget package

We need to provide readers with the nuget package name that they need to install (Microsoft.AspNetCore.Authentication.Facebook).

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: f2c6faa2-8c65-073b-4988-672c1aa9690c
Version Independent ID: d22d616f-907e-ae62-1f43-88ad176a87d4
Content: Facebook external login setup in ASP.NET Core
Content Source: aspnetcore/security/authentication/social/facebook-logins.md
Service: unspecified
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

@mirsaeedi  thanks, I fixed that.


Feature/http response state

This is a follow-up to pull request #119: since that had been idle for a few months, I rebased @jubarajborgohain's patches onto the tip of the develop branch and resolved the resulting conflicts. After finishing the rebase, I could successfully run make tests, make clean all, and make install on my Linode, so I am pretty sure that I didn't add any breakage.

Okay, pretty sure that never happened. Oh well.


Telnet support

First let me thank you very much for you hard work on this awesome project, I'm a PHP guy and I was looking for the best Looking Glass solution and found some PHP solutions, but when I found your project I felt that it the right choice and the best by far!
I have three question I will be glad if I found their answers:

Does Hyperglass have the support of Telnet connection to routers? I need this feature very much, and found that respawner/looking-glass support it, but I like Hyperglass more than it, If Hyperglass will not support it, does it easy to implement Telnet feature or you have any plans to implement it?

In the Routers list, Can I show the location of group of Routers like other Looking Glass solution do, For example: North America, Asia

Can you tell me please when v1 will be released?

Thanks for the kind words! Answers below:

hyperglass should support whatever Netmiko supports. Some quick googling suggests Kirk added a _telnet modifier to the device type names, but you may want to test this out, as I’ve never tried this.

Coming in 1.0. Already built and works great.

Oof, hard to say. I’ve got a handful of features left to finish implementing before I’m ready to release it. The ole day job has been very demanding lately so I haven’t had much time to work on it. That said, I’m taking next week off for a mental health break, and I’m planning on dedicating some serious time to finishing up 1.0. I hope I can finish up by end of week, but we’ll see.

@checktheroads _telnet modifier work with me, thank you very much and please take care of yourself and take some breaks, that's will be better for your health recovery.
Lastly, I have some ideas I want to share with you, I will be very grateful if we can chat on Telgram or Skype or any other chatting app.

So telnet worked then? If so I will make sure to add that to the docs with the v1 release. For questions/chats - feel free to join us on Keybase! Link to the public team channel is in the readme.


Any available dataset?

When test our ragas, I found the dataset created by gpt-4 may be not that ideal. Any recommend dataset avalible?

I'm hoping this helped? feel free to reopen this if not


move linked_data_platforms to directory

[x] Increment version number in RDF/XML as revision; dct:hasFormat values changing
[ ] run main.py

[x] change $rdf2rdfa_stylesheet to xsl/rdf2htmlrdfa-plusdc.xsl
[ ] check new dct:hasFormat values
[ ] check triples in new serializations against old
[ ] change $rdf2rdfa_stylesheet back to xsl/rdf2htmlrdfa.xsl

[ ] Update DataCite XML

[ ] URL
[ ] Remove version number

20230919_main.py_error.txt
@cspayne sharing terminal error output
I suspect the use of both / and \ in the filepath to directory for processing?

Oh wait, I'm looking at the following:
https://uwlib-cams.github.io/gitrepos_uwlswd/uwlswd_vocabs/linked_data_platforms\linked_data_platforms.rdf does not look like a valid URI, trying to serialize this will break.

That seems like a URL string which combines some of the path to the target directory in my computer's file structure with a base URL portion?

Looking at this now!

@briesenberg07 - will you try replacing line 36 in main.py (where uri_path is set) with:

uri_path = "https://uwlib-cams.github.io/" + file_path_noext.replace("../", "").replace("\\", "/")

Hmmm, stymied! I did two things:

Per L35 comment "assumes top-level directory for file is parallel to uwlswd directory", moved directories on my computer (see * below)
Changed L36 as above

So I'm mystified by the new error message...
20230919_main.py_error_02.txt
...where it says:
https://uwlib-cams.github.io/gitrepos_uwlswd/uwlswd_vocabs/linked_data_platforms\linked_data_platforms.ttl does not look like a valid URI, trying to serialize this will break.

I don't know where gitrepos_uwlswd/ is coming from at this point, as that directory no longer exists on my machine...

* BMR directory structure now/following change
gitrepos/
   uwlswd/
   uwlswd_vocabs/

@briesenberg07 Did this uri potentially end up in the rdf/xml during your first serialization attempt?

Thanks for the above Cypress--this had indeed happened. I ran the script successfully! The expected files were output in the expected place!
But checking dct:hasFormat values:
Input (excerpt):
...
    <void:feature rdf:resource="http://www.w3.org/ns/formats/Turtle"/>
    <dct:hasFormat rdf:resource="https://uwlib-cams.github.io/uwlswd_vocabs/linked_data_platforms.nt"/>
    <dct:hasFormat rdf:resource="https://uwlib-cams.github.io/uwlswd_vocabs/linked_data_platforms.ttl"/>
    <dct:hasFormat rdf:resource="https://uwlib-cams.github.io/uwlswd_vocabs/linked_data_platforms.jsonld"/>
    <dct:hasFormat rdf:resource="https://uwlib-cams.github.io/uwlswd_vocabs/linked_data_platforms.html"/>
    <ldproc:containsEntity rdf:resource="https://doi.org/10.6069/uwlib.55.b.1#Platform"/>
...

Output (excerpt):
...
    <void:feature rdf:resource="http://www.w3.org/ns/formats/Turtle"/>
    <dcterms:hasFormat rdf:resource="https://uwlib-cams.github.io/uwlswd_vocabs/linked_data_platforms.nt"/>
    <dcterms:hasFormat rdf:resource="https://uwlib-cams.github.io/uwlswd_vocabs/linked_data_platforms.ttl"/>
    <dcterms:hasFormat rdf:resource="https://uwlib-cams.github.io/uwlswd_vocabs/linked_data_platforms.jsonld"/>
    <dcterms:hasFormat rdf:resource="https://uwlib-cams.github.io/uwlswd_vocabs/linked_data_platforms.html"/>
    <dcterms:hasFormat rdf:resource="https://uwlib-cams.github.io/uwlswd_vocabs/linked_data_platforms/linked_data_platforms.ttl"/>
    <dcterms:hasFormat rdf:resource="https://uwlib-cams.github.io/uwlswd_vocabs/linked_data_platforms/linked_data_platforms.nt"/>
    <dcterms:hasFormat rdf:resource="https://uwlib-cams.github.io/uwlswd_vocabs/linked_data_platforms/linked_data_platforms.jsonld"/>
    <dcterms:hasFormat rdf:resource="https://uwlib-cams.github.io/uwlswd_vocabs/linked_data_platforms/linked_data_platforms.html"/>
    <ldproc:containsEntity rdf:resource="https://doi.org/10.6069/uwlib.55.b.1#Platform"/>
...

Yay!
The repeat dct:hasFormat output is because of the location change - if you remove or update the dct:hasFormat triples before serialization, then the script will add the correct ones.
It is not set to remove any dct:hasFormat triples that are already in the rdf/xml so that in circumstances where a resource does have additional formats, those are not lost.
This does mean that when the uri is changing, there is the additional step of removing the old dct:hasFormat triples.

@cspayne did your DOI URL update take effect yet? I checked this vocab this morning and DOI dereferenced to new URL (after making DataCite Fabrica updates on Tuesday). So, it takes... something less than 2 days to take effect?

@cspayne did your DOI URL update take effect yet? I checked this vocab this morning and DOI dereferenced to new URL (after making DataCite Fabrica updates on Tuesday). So, it takes... something less than 2 days to take effect?

Yes! I had to clear the cache in my browser and since then it's been pretty instantaneous.


wrong_hash_message comes out for wrong passwords on iPadOS 14 Safari and Chrome

Issue
When wrong passwords are input, instead of showing the wrong_pass_message, the wrong_hash_message
comes out on iPadOS Safari and Chrome, and the content is just disordered code,
when visiting posts on the demo website mhexo.github.io.
Expected Behavior
wrong_pass_message shows up.
Actual Behavior
wrong_hash_message shows up,  and the content is just disordered code.
Steps to Reproduce the Problem

use iPadOS 14 and Safari to one post of demo website mhexo.github.io.
type wrong password for a post
wrong_hash_message shows up.

Specifications
iPadOS 14, Safari or Chrome.

Confirm this bug. Looks like when giving a wrong password, cryptoObj.subtle.decrypt will try to continue instead of throwing a exception on Safari and Chrome.
Fix should be in this week.

Online demo has been updated, and you can try it again.

It is ok now with iPadOS 14 Safari and Chrome about the wrong_pass_message.
I notice that the post empty password now has no encryption effect.

Technically, this is as expacted. If a user doesn't set a password, then we should think that user has no intention to encrypt it.


fix: walletconnect dapps listing and scraping script

Description

Updates the yarn scrape-walletconnect-dapps script to use the WalletConnect Cloud API properly. Everything is requested in one fetch now. Re-using the projectID I've found in image URLs of the registry.json file we had generated. We continue to import all entries except the one with the app_type "wallet" as we do not want to list other wallets.
Updates the registry.json with fresh data from WalletConnect.
Manually fixes two URL we know are outdated in the source data: Zapper and SnapShot.

Notice

[x] Have you followed the guidelines in our Contributing guide?
[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[ ] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[ ] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)

closes #3833
Risk
None.

Testing
Check the listing of dApps for WalletConnect. Verify also 2 specific entries, Zapper and SnapShot, they should have working URLs without redirect.

Engineering
☝

Operations
☝

Screenshots (if applicable)

Just an odd, maybe unrelated, thing happened after running yarn to update the dependencies.
While I was working on the script which uses node-fetch, I had no issue running the script... but after running yarn before making this into a PR, I was able to run the script anymore, it always produced this error:
scripts/scrapeWalletConnectRegistry.ts:2:19 - error TS7016: Could not find a declaration file for module 'node-fetch'. '/home/user/dev/shapeshift/web/node_modules/node-fetch/lib/index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/node-fetch` if it exists or add a new declaration (.d.ts) file containing `declare module 'node-fetch';

I had to use npm i --save-dev @types/node-fetch, and even had to use --force to finally make it work. I did not commit the changes that it would imply on the package.json/lock and yarn.lock, but it seems there might be a dependency issue somewhere. I've also tried to remove the whole node_modules directory and run yarn before this, but the error above was still happening 🤔

thanks @firebomb1 - i added those types back as a dev dependency. i recently ran a tool over the repo and ripped out a bunch of unused stuff, i couldn't see where those types were used at all, but happy to readd them especially as a dev dep that isn't included into the build.
ran the script locally, much faster, and got the same diff output as you (minus the two manually fixed assets).
ideally we'd have an overrides.json type thing we can merge over the top.

@firebomb1 i went ahead and added a list of maintained overrides, instead of manually editing the script output - the next person that does this won't know to manually edit zapper and snapshot, but they can read overrides.

@firebomb1 if you want to check my work by pulling the branch and running the script against to confirm no change in output, happy to merge this.

Works perfectly, great addition! Thanks!


Cannot Install v-3.1.0 msi in windows 10

Windows 10 shows errors while installing the latest package downloaded from https://couchdb.neighbourhood.ie/downloads/3.1.0/win/apache-couchdb-3.1.0.msi.
Description
When the package is Run using UI it shows below error:

To create the log, I have tried command line : msiexec /l* log.txt /i apache-couchdb-3.0.0.msi. Now the error is like below

Steps to Reproduce

Download msi from https://couchdb.neighbourhood.ie/downloads/3.1.0/win/apache-couchdb-3.1.0.msi.
method A : Double click to install
method B : Execute in CMD/PS : msiexec /l* log.txt /i apache-couchdb-3.0.0.msi

Environment

CouchDB version used: 3.1.0
Operating system and version: Win 10

Additional Context
I have downloaded the package multiple times to make sure it is not corrupt on download.
I have installed and uninstalled older version of couchDB and couchbase before, not sure it has anything to do with this.
I have installed dotnetfx35.exe beforehand.

Can you please double-check the checksum of the file after you download it? Use the following:
C:\>fciv -both apache-couchdb-3.1.0.msi
//
// File Checksum Integrity Verifier version 2.05.
//
                MD5                             SHA-1
-------------------------------------------------------------------------
35a1d3e6b4df28e60abb0eef49180769 fbd609aa7d4e7fc796212d3a0c1fe71705ca425a apache-couchdb-3.1.0.msi

The numbers should match mine above.

Can you please double-check the checksum of the file after you download it? Use the following:
C:\>fciv -both apache-couchdb-3.1.0.msi
//
// File Checksum Integrity Verifier version 2.05.
//
                MD5                             SHA-1
-------------------------------------------------------------------------
35a1d3e6b4df28e60abb0eef49180769 fbd609aa7d4e7fc796212d3a0c1fe71705ca425a apache-couchdb-3.1.0.msi

The numbers should match mine above.

It is different for me :
3ea46579a22d9386585b1155113d23d5 5a8479bacb8442473ea36a5dff728935ff809208 apache-couchdb-3.1.0.msi
What will be wrong ?

Your download is corrupted.
Try saving the file to a different drive.
Your browser may have a corrupted download. Try downloading with a different browser, or a command line utility like wget.exe:
wget https://couchdb.neighbourhood.ie/downloads/3.1.0/win/apache-couchdb-3.1.0.msi

I have used Edge browser now to download the file again, still no luck!
Also tried to get it by installing wget, but it is complaining "Unable to establish SSL connection".
Below are my observations, if it anything leads to a conclusion :
*I have tried with packages downloaded using chrome, FF, edge without success (6 times, I think).
*Chrome and Edge showed a safety warning on the file.
*Checksum of all these files are different than that you provided.
*I have successfully installed v.2.3.1 without any glitch, so I cannot suspect browsers.
Thanks @wohali for you time on this!

I don't have a good answer for you here. This is the first time we've seen this reported, and no one is able to reproduce this.

From a host in Japan:
$ wget https://couchdb.neighbourhood.ie/downloads/3.1.0/win/apache-couchdb-3.1.0.msi
--2020-08-08 03:24:05--  https://couchdb.neighbourhood.ie/downloads/3.1.0/win/apache-couchdb-3.1.0.msi
Resolving couchdb.neighbourhood.ie (couchdb.neighbourhood.ie)... <IP_ADDRESS>
Connecting to couchdb.neighbourhood.ie (couchdb.neighbourhood.ie)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://couchdbneighbourhoodie.fra1.digitaloceanspaces.com/downloads/3.1.0/win/apache-couchdb-3.1.0.msi [following]
--2020-08-08 03:24:07--  https://couchdbneighbourhoodie.fra1.digitaloceanspaces.com/downloads/3.1.0/win/apache-couchdb-3.1.0.msi
Resolving couchdbneighbourhoodie.fra1.digitaloceanspaces.com (couchdbneighbourhoodie.fra1.digitaloceanspaces.com)... <IP_ADDRESS>
Connecting to couchdbneighbourhoodie.fra1.digitaloceanspaces.com (couchdbneighbourhoodie.fra1.digitaloceanspaces.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 60686336 (58M) []
Saving to: ‘apache-couchdb-3.1.0.msi’

apache-couchdb-3.1.0.m 100%[==========================>]  57.88M  6.73MB/s    in 11s

2020-08-08 03:24:20 (5.33 MB/s) - ‘apache-couchdb-3.1.0.msi’ saved [60686336/60686336]

$ sha1sum apache-couchdb-3.1.0.msi
fbd609aa7d4e7fc796212d3a0c1fe71705ca425a  apache-couchdb-3.1.0.msi
$ md5sum apache-couchdb-3.1.0.msi
35a1d3e6b4df28e60abb0eef49180769  apache-couchdb-3.1.0.msi
$ ls -la apache-couchdb-3.1.0.msi
-rw-r--r-- 1 joant joant 60686336 May  4 20:03 apache-couchdb-3.1.0.msi

I have the same results from my laptop here in Canada.
If your downloaded file does not match this file's size or checksum, the problem isn't on our end - it's something related to your Internet provider or your connection to the Internet.
The only possibility is that whatever ISP you are behind, in whichever country you are in, is giving you a corrupted, truncated download.

Thanks @wohali for your time on this! I am still struggling on this. Let me try on other options. If anything find success, I'll post here.

Finally I got 3.1.0 installed!
The package from 'digitaloceanspaces' worked - https://couchdbneighbourhoodie.fra1.digitaloceanspaces.com/downloads/3.1.0/win/apache-couchdb-3.1.0.msi
The checksum also matches.
The file from https://couchdb.neighbourhood.ie still seems corrupted.

They are the exact same file. There is no corruption.
Your ISP must have a transparent proxy that cached the first URL truncated.
I bet, if you try the download again in 48 or 72 hours, it will be fine.
In any case I am glad you have a successful download now.

They are the exact same file. There is no corruption.
Your ISP must have a transparent proxy that cached the first URL truncated.
I bet, if you try the download again in 48 or 72 hours, it will be fine.
Sure I'll check on later.
Since this cannot be controlled from user-end, is it good to list all available mirrors in the download page?

There are no mirrors. The URL always redirects to a page under that domain.


Fix shinylive editor example on top-level reference index page

Just need to correct the code fencing

Fixed by #64


imports shifted from uncertainty_traps.py

@AnjuJoon @mmcky
I have a concern about these changes: The stand alone Python files (the *.py files) are being stripped of their imports, which means that they no longer execute correctly unless embedded in the correct notebook.
After yesterday, the file amflss.py already has this property.
I don't like to have broken *.py files in our repo.
I suggest that we take the approach of embedded all the code in the lectures, and dropping the literalincludes.
Then, imports are shifted to the top, like in this PR, and *.py files are deleted.
The only issue is that some *.py files might be used by two separate lectures, which means that if we eliminate all *.py files we end up with repetition.  @AnjuJoon , will this be an issue for any lectures?  Could you please investigate?
Let me know if something isn't clear.

@jstac, yeah I agree with you that it will leave the *.py files broken which is not a good idea, but I will not completely support repetition as well since there are many *.py files which are used in more than 1 lecture.
I think there is a tradeoff, we have to compromise at some place.

Hi @AnjuJoon , how many py files are used in multiple lectures, do you know?
How are they supported?  Each lecture refers to py files in their own folder in lecture_specific.  So if a py file is used multiple times, is it copied to multiple folders?

Hi @jstac I was counting the number of files repeated, it's approximately 8-9 *py files which are used in more than 1 lecture. Also, those py files are not copied to multiple folders. .py file in the folder of one of the lecture is used by the reference of that lecture folder in other lectures. For example-
amlss_scalar.py is in multiplicative_functionals folder and is used in additive_functionals as:
.. literalinclude:: /_static/lecture_specific/multiplicative_functionals/amflss_scalar.py

Thanks @AnjuJoon , that's helpful.
Let's proceed as follows: Near the top of each lecture, just as you have done, we'll start with
Let's start with following imports:
￼￼
￼ .. code-block:: ipython
￼
￼     import matplotlib.pyplot as plt
￼     %matplotlib inline
￼     import numpy as np

and whatever additional imports are required.  So, in this respect, our plan does not change.  For example, I will accept this PR once you acknowledge.
However, in each *.py file, please add the minimum number of imports to allow the code to run.  (In come cases, just import numpy as np will be enough.)
Note that amflss.py needs to be fixed.

Hi @jstac, Sure I would do that. This PR could be merged now then. Thanks!


[404] {"error":"IndexMissingException[[Index_Key] missing]","status":404}

Hi friends.
I have a model
require 'elasticsearch/model'

class Club
  include Mongoid::Document
  include Mongoid::Timestamps
  include Elasticsearch::Model
  include Elasticsearch::Model::Callbacks
  include Mongoid::Attributes::Dynamic

  index_name "club-ygo"

  settings index: { number_of_shards: 1 } do
    mappings dynamic: 'false' do
      indexes :id, index: :not_analyzed
      indexes :name, index: :not_analyzed
    end
  end

  def as_indexed_json(options={})
    as_json(
      only: [:id, :name,  :address, :display, :loc, :country, :city, :updated_at],
      methods: [:search_keys]
    )
  end

When I try to do a search by calling

Club.search('aero')

this error shows [404] {"error":"IndexMissingException[[Index_Key] missing]","status":404}
Did I miss some configuration ? Thanks !

Can you model your question with an executable example like this one: https://github.com/elastic/elasticsearch-rails/blob/master/elasticsearch-model/examples/mongoid_article.rb so I can just run it and see?

Hi @vfa-dunghn ,
Have you created an index for your model Club. If not, this can be a reason for your error. Before searching, you must index your documents by running the following command for each document in your Club model.
Club.each { |club| club.__elasticsearch__.index_document! }
Or you can index all documents of your model by executing these two commands:

Club.__elasticsearch__.create_index!
 Club.import
After indexing your documents you can search them by executing:
Club.search('aero')

Hi @vfa-dunghn can I close this?

Closing issue as there hasn't been activity on it since 2016.


Multithread CPU in Axon Benchmark

I think to accurately measure GPU speedup we should also multithread the CPU implementation

yeah good idea -- can you pull out the thread N as a var so it is easier to experiment with that?
the point of comparing against single thread is just to get an absolute sense of efficiency of the GPU code against a stable baseline, but it will be interesting to see how the threading compares on various platforms.

Where does the 32 number come from? Is it 32 because that's the number of threads in a warp, or for some other reason?

Which number 32?  It is using 64 as the number of gpu threads, right?  as the comment says there, from what I was able to find, NVIDIA and M1 use 32 per warp and AMD uses 64, and most people just go with 64 and it seems to work well.  definitely something to investigate going forward - I haven't played with it.
Meanwhile, it would be even more useful if we can run the 1 thread case always, and then report CPU and GPU ratios relative ot that -- now we don't have anything to compare the CPU threading to!  I got a factor of around 10 btw on my macbook pro for GPU / CPU with 10 CPU threads, so I'm inferring the CPU10 / CPU1 = about 6.. might need to get one of those new M2's they just announced. :)


Add visualization of transition models

This PR implements a Petri net-like visualization of abstract transition models (i.e., the kind that can get compiled into proper Petri nets, ODEs, etc.). Specifically, it does the following:

Improves the get_variable_key() function to include context. I think on a second pass, we might want to also include some more information linking Variable instances back to concepts since this ties the visualization code pretty tightly to the key itself
Adds the SIR and SIR Two City examples. Includes the with_context() function for concepts and Template subclasses
Implements visualization (run the demo with python -m mira.modeling.viz and the following images will go to the desktop)

SIR
SIR 2 City

Awesome! I think it might make sense to make examples a module right from the start instead of just an examples.py file since it will certainly expand over time.

Done in 79f4823, I won't have them all automatically imported just in case some examples require extras


An error occurred: GraphiqlLambdaFunction - Value of property Variables must be an object with String (or simple type) properties.

Followed the specs of the README.md completely and I'm still getting this error. What am I missing? /graphiql endpoint works locally but won't deploy

Ik have the same problem

same pere...


Failed to Build Image

I changed the packages.txt to contain the following other wise I left everything else as is.
isc-dhcp-client rsyslog cron openssh-client nano omxplayer
Please refer to the attached file for the output of building the image.
output.txt

very odd, it's failing in the createimg script, I haven't had this issue.  looks like everything built fine it just failed to make the img.  I'm looking into it see if I can recreate this issue, to track it down.
Can you tell me about the host computer.  Is it debian or ubuntu etc etc?

as far as I can tell there is a difference in the sfdisk we are using, can you do run -v for me?
# sfdisk -v
sfdisk from util-linux 2.27

Oh yes sorry. I ran it on Debian Jessie amd64. I'm not able to access the system right now but tomorrow I'll get the information regarding the sfdisk. If there is anything more that you need let me know.

hmm debian jessie should be fine, I'll build a fresh VM tonight or tomorrow and see if I can replicate the issue, did you run it as a user with sudo, I always run it as root I assumed sudo would be fine but perhaps that is the issue, I'll test that as well and fix it if need be.  It should be able to run as sudo.

Yes I used sudo. Not suppose to use root. Nah that can't be the issue. I use sudo all the time. I of course could do sudo su and try tomorrow.

it's okay I"m trying with sudo from a reg user right now, I'd be extremely surprised that is the issue but I want to figure this out it's making me crazy :)

okay I'm 100% sure that a reg user + sudo works so that isn't it.  Guess I'll wait till tomorrow to get the sfdisk version from you, also please do which sfdisk just to be thorough

Here is the information you were asking for. It appears you must be running Debian Stretch/Sid in order to have sfdisk (util-linux) v2.27.1. I hope this helps.
$ uname -a
Linux keiko 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u6 (2015-11-09) x86_64 GNU/Linux

$ sudo sfdisk -v
sfdisk from util-linux 2.25.2

$ sudo which sfdisk
/sbin/sfdisk

yes I am on Stretch, as said above I'll have to make a jessie box since I have none.  I'm away for most of today but when I get back I"ll work on a jessie box so I can see if I can fix that very small portion of script, I had no idea sfdisk was so different in jessie.  But I'll get it fixed.

I wouldn't think there would be that big of a difference either. Good thing I tested it out :-).

okay I have switched the script to use fdisk, I'm testing it now.  hopefully it'll work out and fix this.  If the test works out I'll commit it so you can give it a shot tomorrow, I didn't have a change to get a jessie system installed today, but I may work on that tomorrow if this doesn't work.

just wondering if you had a chance to try it again since I switched to disk?  I still haven't had a chance to setup a jessie VM, hopefully this week if I don't hear back from you.

I cloned everything again and ran the build process. However the build still failed. Please see the attached output.
output.txt

think we have it now, we a rogue i in the script since I use vi ;)

Awesome, this issue has now been resolved. I have successfully built an image.

Confirmed solved, thank you so much for your patience and feedback it's much appreciated.


Generic methods added.

Hi Ahmad,
I've added generic functionality to the project.
Can you check them please?

By the way I think there is problem with Where clauses. Results getting with sign question. '?'.
For example when you write: new Query("Test").Where("Id", "=", "1")
The result is: SELECT * FROM Test WHERE [Id] = ?

Thank you.

Thanks for the PR, I think it would be better to create a new branch for this, so we can collaborate more on it.
As a starting it's very interesting!, but can't be delivered as stable version for now.
as a quick notes:

For multiple select I think it's better to use Select(x => new {x.Id, x.Name}) instead of Select(x => x.Id, x => x.Name)
We should think how to handle join statements and some edge cases

I will review it deeply later and get back to you

+1 to @ahmad-moussawi 's comments - I will also try to take a good look at this when I can.
Also, it seems you've committed update to the .sln and .csproj, and a failed unit test.

+1 to @ahmad-moussawi 's comments - I will also try to take a good look at this when I can.
Also, it seems you've committed update to the .sln and .csproj, and a failed unit test.

Oops! Sorry. I will handle them right now.

Thanks for the PR, I think it would be better to create a new branch for this, so we can collaborate more on it.
As a starting it's very interesting!, but can't be delivered as stable version for now.
as a quick notes:

For multiple select I think it's better to use Select(x => new {x.Id, x.Name}) instead of Select(x => x.Id, x => x.Name)
We should think how to handle join statements and some edge cases

I will review it deeply later and get back to you

Hi, Yes, branching would be better. I'll create new branch.
About your suggestions:

Select(x => new {x.Id, x.Name}) this is looks better. I'm agree with you.

I'm thinking about joins.


DXI- 30198

JIRA: https://jira.corp.adobe.com/browse/DXI-30198

Phase 1: Update the current search box to allow searching by Program Name, instead of Campaign Name.

Test Urls:
Before: https://rc--adobe-gmo--hlxsites.hlx.page/qa/marketing-dashboard
After: https://dxi-30198--adobe-gmo--hlxsites.hlx.page/qa/marketing-dashboard

@staware30 Update the placeholder text as well to search by Program Name


Request for topic: Aurelia

Probably the best Front-End framework to date, have enjoyed using it and it is extremely powerful while being super simple.

@jaeko44 thanks for your comment. Can you write a post on Aurelia? My next few week topics are finalised. I would love to see your contribution.

Will do so @shekhargulati

@jaeko44 any specific week that you can commit to?


Is it possible to get the range bar curved, instead of a straight line?

Hi there! I want to use the range bar, and for the purposes of my project, I want it to be curved.
What should I do to accomplish it? Is it at all possible?
Example:

This is not possible with material rangebar at the moment, Probably it makes more sense to fork the repository and implement this yourself

@krazykira I would love to contribute to the project in the future, because I like it. The only problem now is that I am just starting with android development and am still learning how the whole thing is happening. It is all new to me and I am unsure what I should use to accomplish the curved shape. It would mean a lot to me if you can at least point me in the right direction.
Cheers!


Choose network interface not closing

Issue
When choosing an interface and clicking the Capture button, the Choose network interface prompt goes into a state, where it still exists but cannot be closed, opened or viewed. Only way to see the hidden prompt is to hover over sala in the windows taskbar.
Current behavior
After Choosing your interface and clicking Capture, the prompt goes into a hidden state.
Expected behavior
After choosing your interface and clicking Capture, the prompt closes itself.
Demonstration of the bug
Hovered

Not hovered

Thanks for reporting!


Consider option to set _link IDs based on data values

As I understand the _link IDs are based on JSON path components and array indices.
In cases like OCDS, it’s helpful to have a unique ID (for something like an award or contract) that works across time (since the same dataset at a different time might re-order these).
One option would be to be able to specify keys (like “id” and “ocid”) to use instead of array indices.
Of course, there would have to be some fallback behavior in case the key is missing. An unlikely (or user-configurable) prefix could perhaps be prepended to the index in these cases.

Makes sense! I'll close this and leave a comment in #6.


Setup JS package

What are the relevant tickets?

Closes #3
Description (What does it do?)
This adds the configuration necessary to compile the library to commonjs and package it as a library.
How can this be tested?

Run yarn pack --dry-run and verify that the output includes dist/, LICENSE, and package.json

@ChristopherChudzicki all set

@ChristopherChudzicki I switched it to pnpm, which still gives node_modules but should be more performant.


Survey Example Not Working

When I run the survey example it doesn't seem to be working on Mac OSX El Capitan 10.11.3
./run.sh
SERVER: SENDING DATE SURVEY REQUEST

So do I in debian 8, I think this is because the server progress send SURVEY REQUEST before the clients setting up, so just add a sleep before the server's loop can fix this problem.
diff --git a/examples/survey/survey.go b/examples/survey/survey.go
index f30b342..a9a9760 100644
--- a/examples/survey/survey.go
+++ b/examples/survey/survey.go
@@ -64,6 +64,7 @@ func server(url string) {
        if err != nil {
                die("SetOption(): %s", err.Error())
        }
+       time.Sleep(time.Second)
        for {
                fmt.Println("SERVER: SENDING DATE SURVEY REQUEST")
                if err = sock.Send([]byte("DATE")); err != nil {

Yeah, that solved the problem. Thanks

This uncovered a separate problem described in #224   I have a fix for both shortly.


apigateway(aws) to ingress alb

Hello, I have some applications (apis) configured in k8s, all of them have a configured ingress controller (alb) , already work normally.
However, as per my company's policy, all external apis, need to go through a gateway.
It was then that I configured the apigateway(aws) pointing to my ingress endpoint(alb). I was not successful, I believe that the apigateway(aws) works only with nlb.
Here we use basic resources of the apigateway (aws), such as auth cognito, acl waf e timeout...
Is it worth saying that ingress (Alb) can be my final endpoint, acting as a gateway?
does anyone have this scenario? if positive, how did you treat?
Thank you all.

Hi, ALB supports cognito & waf.
The missing gap between ALB and APIGW i know is throttling.
So if ALB supports all features you need, then it can be acting as a gateway


[CORE] [COGNITIVE] std::shared_timed_mutex not supported on  iOS simulator

[ 14%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_commandline.cpp.o
/Users/runner/work/1/s/build_ios_simulator64/_deps/azuresdkforcpp-src/sdk/core/azure-core/src/logger.cpp:16:13: error: 'shared_timed_mutex' is unavailable: introduced in iOS 10.0
static std::shared_timed_mutex g_logListenerMutex;
            ^
/Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/shared_mutex:205:58: note: 'shared_timed_mutex' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS _LIBCPP_AVAILABILITY_SHARED_MUTEX shared_timed_mutex
                                                         ^
/Users/runner/work/1/s/build_ios_simulator64/_deps/azuresdkforcpp-src/sdk/core/azure-core/src/logger.cpp:38:27: error: 'shared_timed_mutex' is unavailable: introduced in iOS 10.0
    std::shared_lock<std::shared_timed_mutex> loggerLock(g_logListenerMutex);
                          ^
/Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/shared_mutex:205:58: note: 'shared_timed_mutex' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS _LIBCPP_AVAILABILITY_SHARED_MUTEX shared_timed_mutex
                                                         ^
/Users/runner/work/1/s/build_ios_simulator64/_deps/azuresdkforcpp-src/sdk/core/azure-core/src/logger.cpp:49:25: error: 'shared_timed_mutex' is unavailable: introduced in iOS 10.0
  std::unique_lock<std::shared_timed_mutex> loggerLock(g_logListenerMutex);
                        ^
/Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/shared_mutex:205:58: note: 'shared_timed_mutex' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS _LIBCPP_AVAILABILITY_SHARED_MUTEX shared_timed_mutex
                                                         ^
3 errors generated.
make[2]: *** [_deps/azuresdkforcpp-build/sdk/core/azure-core/CMakeFiles/azure-

Cmake generate:
-- Merging integrated CMake 3.14+ iOS,tvOS,watchOS,macOS toolchain(s) with this toolchain!
-- Building with Xcode version: 12.4
-- Configuring iphonesimulator build for platform: SIMULATOR64, architecture(s): x86_64
-- Using SDK: /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk for platform: SIMULATOR64
-- Using C compiler: /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Using CXX compiler: /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
-- Using libtool: /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool
-- Using a data_ptr size of 8
-- Building for minimum iphonesimulator version: 9.2 (SDK version: 14.4)
-- Version flags set to: -mios-simulator-version-min=9.2
-- Disabling bitcode support.
-- Enabling ARC support.
-- Merging integrated CMake 3.14+ iOS,tvOS,watchOS,macOS toolchain(s) with this toolchain!
-- Building with Xcode version: 12.4
-- Configuring iphonesimulator build for platform: SIMULATOR64, architecture(s): x86_64
-- Using SDK: /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk for platform: SIMULATOR64 when checking compatibility
-- Using libtool: /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool
-- Using a data_ptr size of 8
-- Building for minimum iphonesimulator version: 9.2 (SDK version: 14.4)
-- Version flags set to: -mios-simulator-version-min=9.2

Building the C++ sdk on iOS is not currently in the supported matrix.  Can you work with Daniel to update the required matrix.  We need to discuss the platforms deciding which are supported/unsupported.


feature: ENG-967 - Add dynamic app catalog

Pulls information from our API to show installation instructions for all apps in our catalog. Adding a page of the form /pages/applications/[app-name].mdpart will append extra information to the instructions from the API. If there are any headings in this markdoc file containing the word "configuration" (case-insensitive), the page will show that information in the markdoc file instead of the configuration from the API.
Make sure all pages in the /pages/applications directory end with .mdpart, otherwise the site will not render properly.

I'm noticing a weird behavior on the. deployed preview app:
https://deploy-preview-102--pluraldocs.netlify.app/applications  then click "Back/All docs" doesn't change the URL

Instead it adds an "App catalog" button that flickers a bitthe content

I say we remove that buttonand match the URL accordingly if that's possible easily.

I say we remove that button and match the URL accordingly if that's feasible easily.

That's intended behavior. It's just supposed to navigate the menus, not actually change the page. Maybe it just needs different wording?


[Readme] Fix command to get compile command

The command in readme isn't correct, I finally come out to get the compile command with find python/build -name 'compile_commands.json' | xargs readlink -f. I think although the improvement in readme is trivial but it is helpful for other new comer go through the environment setup easier.

please run pre-commit hook

Thanks @ThomasRaoux


feat: Add Solution to Use the every method - Portuguese

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] All the files I changed are in the same world language (for example: only English changes, or only Chinese changes, etc.)
[x] My changes do not use shortened URLs or affiliate links.

Added solution to challenge: curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/functional-programming/use-the-every-method-to-check-that-every-element-in-an-array-meets-a-criteria.portuguese.md

Added to PR #37161 instead


[bug] Mobile Website UI Issues

On Home Page carousel, arrow buttons are conflicting with title on the card
Increase time between transition for carousel by 2 seconds
Adjust font for News Item on Mobile. Right now the size is big, we're barely able to see more than 2 words
Finance section on Home Page is really small compared to other sections on Home Page
Menu issue: Click on Menu, now to dismiss Menu click outside. Menu is still showing ideally when clicking outside menu should be hidden
Changed Footer, Made with Love by Fafadia Tech. If possible replace Love with Heart in Footer
On articles details page adjust margin left and right. On Android there is ample of space which we can use to increase area where text is getting displayed

@hkacha, please look at screenshot below this is with regards to item 4. Finance section is for some reason smaller than other sections

@hkacha, please look at following screenshot. Note how we still have some pixels to work with on the width end {both on the left and right}


Delete snowplow events for users requesting account deletion

Goal
Delete raw snowplow events for any user who has requested deleting their account in the last 90 days.
Implementation Decisions

Assume that we only need to delete events that were delivered from a logged-in user.
Only worrying about users deleted within the last 90 days. This gives us at least 2 tries at a monthly cadence to delete the event records.  This ensures that if STG_ACCOUNT_DELETIONS grow substantially we are keeping the number of records we are processing to a minimum.

Deployment steps

[ ] Test Snowflake delete command.
[ ] Ensure the Prefect Snowflake user account has delete permissions on the snowplow events schema.
[ ] FOR POCKET DEVELOPERS ONLY - Post in #changelog:

Write a #changelog message using our best practices if this PR (potentially) impacts users. Describe the 'why' and 'what'. @mention relevant teams. Link to this PR.

References
Documentation:

Project doc

@jeshuaborges Will there be an associated task to run this once without the "last 90 days" limit?

We need to put account deletions into a table/schema/db that is protected and will never be cleaned up. This is because we need to know which records we always need to delete.
Tables:

deleted_users (user_id, hashed_user_id) - appended from STG_ACCOUNT_DELETIONS.
deleted_emails(email) - confirmed email addresses for users in deleted_users.


Error Swift_Version missing

This is on top of my Podfile

plugin 'cocoapods-rome',
    :pre_compile => Proc.new { |installer|
        installer.pods_project.targets.each do |target|
            target.build_configurations.each do |config|
                config.build_settings['SWIFT_VERSION'] = '4.0'
            end
        end

        installer.pods_project.save
    },
    :post_compile => Proc.new { |installer|
        puts "Rome finished building all the frameworks"
    }

when i run pod install i get the following
- `AlamofireNetworkActivityLogger-iOS` does not specify a Swift version and none of the targets (<redacted>) integrating it have the `SWIFT_VERSION` attribute set. Please contact the author or set the `SWIFT_VERSION` attribute in at least one of the targets that integrate this pod.
- `AlamofireNetworkActivityLogger-watchOS` does not specify a Swift version and none of the targets (`<redacted>`) integrating it have the `SWIFT_VERSION` attribute set. Please contact the author or set the `SWIFT_VERSION` attribute in at least one of the targets that integrate this pod.
- `Cache` does not specify a Swift version and none of the targets (`<redacted>`) integrating it have the `SWIFT_VERSION` attribute set. Please contact the author or set the `SWIFT_VERSION` attribute in at least one of the targets that integrate this pod.
- `RainbowNavigation` does not specify a Swift version and none of the targets (`<redacted>`) integrating it have the `SWIFT_VERSION` attribute set. Please contact the author or set the `SWIFT_VERSION` attribute in at least one of the targets that integrate this pod.
- `TagCellLayout` does not specify a Swift version and none of the targets (`<redacted>`) integrating it have the `SWIFT_VERSION` attribute set. Please contact the author or set the `SWIFT_VERSION` attribute in at least one of the targets that integrate this pod.
- `netfox` does not specify a Swift version and none of the targets (`<redacted>`) integrating it have the `SWIFT_VERSION` attribute set. Please contact the author or set the `SWIFT_VERSION` attribute in at least one of the targets that integrate this pod.
- `OHHTTPStubs` does not specify a Swift version and none of the targets (`<redacted>`) integrating it have the `SWIFT_VERSION` attribute set. Please contact the author or set the `SWIFT_VERSION` attribute in at least one of the targets that integrate this pod.

same here. how did you fix this?


Allow internal devices to access wireguard client

Problem
So far everything is running, I only have the problem that, apart from the server, no other devices can ping WireGuard peers or generally no communication can be established
My solution
        err = ipt.Append("filter", "FORWARD", "-i", "ens160", "-o", "wg0", "-j", "ACCEPT")
        if err != nil {
                return err
        }

So i added this code in iptables.go before line 29 to allow incoming traffic from interface where everything else is connected to wg0 interface
General solution
There should be a way to allow this, but i do not know really how. How i solved it allows EVERYTHING from internal, thats may not be the best way

Whilst no strictly what you want, we use it to ssh onto clients using ProxyJump in the ssh config.
Host remoteSystem
  ProxyJump witegaurdServer

As long as we can ssh, we can tunnel pretty much anything else.

So. If I'm understanding you correctly, you have your wag server acting as a gateway to an internal network.
In that internal network you want hosts to be able to route through the wag server and talk to the wireguard peers?
You will have to write a wag rule for that of course.
I do see what you mean and I'll have a think about how best to implement that.

Honestly, I was doing a think, and I believe this was just an oversight on my behalf as I dont use wag like this. Im more than happy to just add a blank forward from all interfaces to your wireguard peer interfaces.
Obviously this will still be governed by the wag rules.
E.g something like
iptables -A FORWARD -o wg0 -j ACCEPT

I've put this in unstable branch just for fun. Please give it a go, Im trying to think if this adds any risk or not.
Also @paulb-opusvl I dont suppose you've had time to do anything with the docs page? Do you need a run through or something, could always grab your  and have a chat if you need!

This works as expected!

Awesome. I'll be doing a roll up release soonish to have that as a main branch feature.


Add NL-Blueprint example

Add an example that confirms our code fully enables the nlblueprint workflow.

this is already in the latest version. Marking done.


Error running SET Statement

SET Statement assigns value to the param setting for the current session, using the following syntax
SET param = value

However, when using it with client.query(), we get the following error.
client.query('SET input_format_csv_use_best_effort_in_schema_inference=0')

HTTPDriver url https://xxx.us-west-2.aws.clickhouse.cloud:8443/ returned response code 400)
Code: 62. DB::Exception: Syntax error: failed at position 61 ('FORMAT') (line 2, col 2): FORMAT Native. Expected end of query. (SYNTAX_ERROR) (version <IP_ADDRESS>95 (official build))

Is there a way to get this to work, especially for those that cannot be placed as part of the query statement but needs to be enabled beforehand? e.g. SET allow_experimental_X=1

SET statements should be run using the client.command method and that should work.  But it makes sense to check for them in the query method and not apply a format, so I'll see if I can improve that.

Also a SET statement requires that get_client be created with a session_id.

Release 0.3.2 also sets a session_id by default.


Test OS2 with bonding LAN

Asked by @agracey

First test on a VM with 4 NICs connected to the same LAN:

Installation was done automatically after configuring the node in my Rancher lab. By default each NIC are configured to use DHCP, so basic configuration is working well.
The default route is configured on eth0, as expected:
ros-node-6496:~ # ip route
default via <IP_ADDRESS> dev eth0 proto dhcp
<IP_ADDRESS>/24 dev eth0 proto kernel scope link src <IP_ADDRESS>
<IP_ADDRESS>/24 dev eth1 proto kernel scope link src <IP_ADDRESS>
<IP_ADDRESS>/24 dev eth2 proto kernel scope link src <IP_ADDRESS>
<IP_ADDRESS>/24 dev eth3 proto kernel scope link src <IP_ADDRESS>

But in configuration files we can see that only eth0 is configured:
ros-node-6496:/etc/sysconfig/network # ls -l
total 76
-rw-r--r-- 1 root root  9691 Apr 13 10:38 config
-rw-r--r-- 1 root root 14770 Apr 13 10:38 dhcp
drwxr-xr-x 2 root root  4096 Apr 13 10:38 if-down.d
drwxr-xr-x 2 root root  4096 Apr 13 10:38 if-up.d
-rw------- 1 root root    36 Apr 13 14:03 ifcfg-eth0
-rw------- 1 root root   147 Apr 13 10:38 ifcfg-lo
-rw-r--r-- 1 root root 21738 Apr 13 10:38 ifcfg.template
drwx------ 2 root root  4096 Apr 13 10:38 providers
drwxr-xr-x 2 root root  4096 Apr 13 10:38 scripts

So clearly DHCP by default for all network interfaces.
In current os2 version wicked is used for network configuration, I don't know if this will still be the case in the released version.
AFAIK, cloud-config doesn't support wicked byt default, so some kind of scripts might be needed to achieve an automated bonded configuration.

Maybe this can be done if NetworkManager is used instead of wicked?

Closing for now because

ElementalTeal 5.2 supports SLE wicked, with all its features
ElementalTeal 5.3 might switch to NetworkManager, with all its features

=> non working bonding would be a SLE bug, not an Elemental bug


WIP: Fix Travis CI Linux builds using Docker.

Given both my and @sylvanc's not so great docker knowledge @jemc, go right ahead and merge this whenever its ready.

Merging, as the latest Travis failure was unrelated (broken pipe).


Flutter does not work!

Android sdkmanager tool not found (C:\Users\david\AppData\Local\Android\Sdk\tools\bin\sdkmanager).
Try re-installing or updating your Android SDK,
visit https://flutter.dev/setup/#android-setup for detailed instructions.

Run flutter doctor and post it here. It sounds like you just don't have Android SDK installed properly

I already uninstalled it and installed the Android SDK again but it's still the same
this is my configuration

flutter doctor
Downloading Gradle Wrapper...                                       0,5s
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.12.13+hotfix.9, on Microsoft Windows [VersiÃ³n 10.0.18362.778], locale es-CO)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
X Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed
instructions.
[√] Android Studio (version 3.6)
[√] VS Code (version 1.44.2)
[!] Connected device
! No devices available

Okay so its not Flutter that's broken. Its just not recognizing your Android SDK. I had the same issue before but it was months ago. So I don't remember exactly what solution I found that fixed it but I just googled "Flutter cannot recognize Android SDK." Here are the first few links that might be helpful. Youtube tutorials may also be very helpful. Always google your exact errors.
https://stackoverflow.com/questions/44485848/android-sdk-cannot-be-found-by-flutter?rq=1
https://github.com/flutter/flutter/issues/15114
https://stackoverflow.com/questions/49175231/flutter-does-not-find-android-sdk
https://www.youtube.com/watch?v=lSdcJD7vPs0
https://www.youtube.com/watch?v=Boe45t_uKwc

ok thanks,khari998 i will check the links

i see that is the android license..
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at C:\Users\david\AppData\Local\Android\Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.3
• ANDROID_HOME = C:\Users\david\AppData\Local\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
X Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed
instructions.
the android sdk location is ok

Try this
flutter doctor --android-licenses
And going through the prompts. Found the solution by googling your error "X Android license status unknown." And finding someone who had the same error on github https://github.com/flutter/flutter/issues/16025

thanks khari998, but when execute this line, show this error
flutter doctor --android-licenses
Downloading Gradle Wrapper...                                       0,5s
Android sdkmanager tool not found (C:\Users\david\AppData\Local\Android\Sdk\tools\bin\sdkmanager).
Try re-installing or updating your Android SDK,
visit https://flutter.dev/setup/#android-setup for detailed instructions.

Hmm this is peculiar. I am inclined to say that the SDK is not installed in the right location but Flutter seems to recognize the SDK in the flutter doctor. Try and see if going through any of the other links I sent in my earlier response gets this working for you. If not I'll try chime in more. Also did you follow the instruction steps on https://flutter.dev/setup/#android-setup or did you go through a different set of instructions for the setup?

I have spent all day looking for a solution, I have tried everything, forums, videos, pages.
two days ago flutter was working fine, but from one moment to another this error appeared

I have spent all day looking for a solution, I have tried everything, forums, videos, pages.
two days ago flutter was working fine, but from one moment to another this error appeared

All I can do is try to keep giving you links that may have solutions for you. Try this along with the other links I sent https://github.com/flutter/flutter/issues/20976
It would still help if you went through how you installed the Android SDK

Thanks, i have already intall Android SDK Tools (Obsolete), but the error is the same,
thanks, i will try again

Are you using a mac or pc?
Also I found someone who said it may involve resetting your JAVA_HOME https://github.com/flutter/flutter/issues/16025#issuecomment-377219812

i have pc windows

Okay. Also this may work as well. It may be an unspecified path https://github.com/flutter/flutter/issues/16025#issuecomment-377984231

ok, i will try it

thanks, but the problem is that, sdkmanager.bat not exist in the route C:\Users\MyUser\AppData\Local\Android\Sdk\tools\bin
I don't know where to get the file sdkmanager.bat

thanks, but the problem is that, sdkmanager.bat not exist in the route C:\Users\MyUser\AppData\Local\Android\Sdk\tools\bin
I don't know where to get the file sdkmanager.bat

Yeah I would try reinstalling Android SDK using some of the other instructions in one of my first comments. I haven't found much regarding the sdkmanager.bat file. It should come with the Android SDK when it is installed. Which leads me to believe it may be there but your path is not pointing to the right location to find it. Let me know if you reinstall it using someone the methods in my original comment and you still have the same error. Wipe Android SDK from your system first too.

ok, when i tried install manually the tools android sdk, that have the sdkmanager.bat, https://github.com/flutter/flutter/issues/51712#issuecomment-593721423
later i run flutter --android-licenses and all the flutter doctor is ok, All SDK package licenses accepted. but when executed the project throws other error and that delete the managersdk android licenses again,
Finished with error: Unable to locate gradlew script. Please check that C:\Users\david\AndroidStudioProjects\flutter_appborss\android\gradlew.bat exists or that C:\Users\david\AndroidStudioProjects\flutter_appborss\android can be read.
i think that is an big Bug of flutter

The original reported issue is a duplicate of https://github.com/flutter/flutter/issues/51712, as @Davidromerojimenez already figured out based on the last comment.  It's fixed for Windows in https://github.com/flutter/flutter/pull/54133, which is available in Flutter 1.18.0-dev.3.0 and later.
Please file a new issue for the gradlew issue.  Thanks!

what?? the issue is not resolved.. is other error! jaj
its not fixed,

ok, when i tried install manually the tools android sdk, that have the sdkmanager.bat, #51712 (comment)
later i run flutter --android-licenses and all the flutter doctor is ok, All SDK package licenses accepted. but when executed the project throws other error and that delete the managersdk android licenses again,
Finished with error: Unable to locate gradlew script. Please check that C:\Users\david\AndroidStudioProjects\flutter_appborss\android\gradlew.bat exists or that C:\Users\david\AndroidStudioProjects\flutter_appborss\android can be read.
i think that is an big Bug of flutter

I saw that your version of Flutter in your logs is v1.12.13. Try running Flutter upgrade and switching to the dev channel to get to v 1.18.0-dev.3.0 as suggested. Please report back if this does not work.

I tried with that sdk dev flutter but i have the same error

@Davidromerojimenez The original issue reported was "sdkmanager tool not found" which was fixed on Windows with https://github.com/flutter/flutter/pull/54133 and is available on 1.18.0-dev.3.0 and later.  You worked around the issue by following a comment on https://github.com/flutter/flutter/issues/51712#issuecomment-593721423.
It looks like you are now hitting a new issue "Unable to locate gradlew script".  Please file a new issue for this and completely fill out the template.  We don't track more than one problem in a GitHub issue as they may be duplicates of different existing issues, or may need different teams to look at them.
Thanks!

the only way was by reinstalling windows, it already works

@Davidromerojimenez I'm also facing the same error does re installation of the windows solve the issue? I already try all the things they mention above nothings solve the issue

yes, reset the computer is the solution

This the solution that worked for me :

Open Android-studio and go to SDK manager,
Select SDK tools tab,
Uncheck "Hide Obsolete Packages" in the bottom,
Check "Android SDK Tools (Obsolete)",
Apply.

Then when i did flutter doctor --android-licenses, it worked fine !


Timeout while checking nalgebra 0.33.0

Crate name
peng_quad
Build failure link
https://docs.rs/crate/peng_quad/0.5.1/builds/1351856
Additional details
The package passed docs building CI on github, but it failed on docs.rs

The difference between 0.5.1 and 0.5.0 is showed here: https://github.com/makeecat/Peng/compare/v0.5.0...v0.5.1

From what I see in the logs, it seems to be the issue is https://github.com/dimforge/nalgebra/issues/1437, or to be more exact, https://github.com/rust-lang/rust/issues/130056
I froze the nightly version that docs.rs uses and queued rebuilds for all releases on these nightlies.
I assume when the builders worked through the list we're fine again.
If not, feel free to reopen this issue


Combine endpoints

The endpoints to associate some kind of user with an Organization and to do the same thing via username instead of guid should be combined in to a single endpoint that can take different JSON parameters or Query string fields. e.g.
http://apidocs.cloudfoundry.org/226/organizations/associate_auditor_with_the_organization_by_username.html
http://apidocs.cloudfoundry.org/226/organizations/associate_auditor_with_the_organization.html

Also, please make the documentation for remove/disassociate of the various users in an organization.
I don't care if you use the word disassociate or remove but please be consistent.
e.g.
http://apidocs.cloudfoundry.org/226/organizations/disassociate_auditor_with_the_organization_by_username.html
and
http://apidocs.cloudfoundry.org/226/organizations/remove_auditor_from_the_organization.html

I'm not quite sure because of the way the v2 api works if we're able to support specifying one of username or guid as required.
@utako @zrob Do you know if it's possible to update the newer end points to take a username field or a guid field?
Or perhaps there's another way of combining.
I think the point about the wording on the end points is fair and we should rename disassociate to remove on all these end points.

Thanks, the renaming will help a lot. We don't really care if you go with query parameters or JSON body parameters but someway to combine the endpoints would be great. Obviously we can live with it if it's not possible.

We've made the documentation change, which will be deployed once it makes it through our CI pipeline. This looks to be triggered by a new cf-release release candidate.
We've made some comments in our tracker about combining the endpoints, but will close this ticket for now.


[CI] Fix JVM tests on GH Action

Need some help?

Thank you, I'm trying to resolve the JVM build issue on Windows https://github.com/dmlc/xgboost/pull/10059 Not sure what's updated on GitHub, just adding some logs at the moment and see why the Python package builds fine but the JVM package doesn't.

The latest Windows runner image 20240218.2.0 is somehow broken. The CI was fine for the previous version 20240211.1.0.

Considering the Python package is working fine, it might be caused by a conflict in environment variables between the setup-java action and the new image, but I can't be sure, just making random trial and error at the moment. It seems we can't downgrade or freeze the image version https://stackoverflow.com/questions/64882287/specify-runner-version-within-github-actions

I was able to fix the pipeline. For some reason, you can run cmake .. -G"Visual Studio 17 2022" outside create_jni.py, but running the same command inside create_jni.py leads to an error. It looks like subprocess.run does not have access to all environment variables.

Merging this to unblock the CI.


Lesters/revert revert resolving input types

Fixes https://github.com/vespa-engine/vespa/pull/11763

Merging this now as having this out also breaks factory due to the PR with the new unit test.


improve SELECT FOR UPDATE

Re: SELECT FOR UPDATE
Issue Description
This page could be improved to better educate users on two salient points:

ON UPDATE locks are exclusive locks (see here), so scanning rows FOR UPDATE also blocks reads to those rows that don't specify FOR UPDATE.
Predicates aren't always pushed down to the KV layer, so more locks may be taken out than expected. Ultimately, it matters which KV rows are scanned FOR UPDATE, not which ones are then matched by predicates in the SQL query.

Both are illustrated in this comment.
Suggested Resolution
Docs update :-)

:information_source: Hello!  Look at my very human username! :robot: :notes:
:thinking: Although I tried very hard to figure out what to do with this issue, more powerful human brains will need to help me. (specifically: Both Github and Jira issues were modified after exalate problems) :confounded:
:arrows_counterclockwise: Please visit this issue's mirror at DOC-3276 and try to sync the two sides up manually. :star2:
:white_check_mark: When you're finished, open Exalate from the right-hand menu of the mirror issue in Jira, then choose Connect and enter this issue's URN: cockroachdb/docs-13556 :link:
:no_entry_sign: Note that until this is done, this issue is not and will not be synced to Jira with Exalate. :no_entry_sign:
:sweat_smile: Feeling lost? Don't worry about it! A member of @cockroachdb/exalate-22-cleanup-team will be along shortly to help! :+1:
:pray: Thank you for your compliance, my fellow humans! :robot: :wave:

:information_source: Hello!  Look at my very human username! :robot: :notes:
:thinking: Although I tried very hard to figure out what to do with this issue, more powerful human brains will need to help me. (specifically: Both Github and Jira issues were modified after exalate problems) :confounded:
:arrows_counterclockwise: Please visit this issue's mirror at DOC-3276 and try to sync the two sides up manually. :star2:
:white_check_mark: When you're finished, comment saying as much asn a member of Developer Infrastructure will be along to finish linking. :link:
:no_entry_sign: Note that until this is done, this issue is not and will not be synced to Jira with Exalate. :no_entry_sign:
:sweat_smile: Feeling lost? Don't worry about it! A member of @cockroachdb/exalate-22-cleanup-team will be along shortly to help! :+1:
:construction_worker: Developer Infrastructure members: when ready, open Exalate from the right-hand menu of the mirror issue in Jira, then choose Connect and enter this issue's URN: cockroachdb/docs-13556. Either way, delete this comment when you're done. :key:
:pray: Thank you for your compliance, my fellow humans! :robot: :wave:


How to calc 'MEAN_DEPTH_PER_LEVEL' and 'STD_DEPTH_PER_LEVEL'

@dennis-park-TRI Hi, I have some question about mean_depth_per_level and std_depth_per_level in config/train_datasets/kitti_3d.yaml。how to calc them,can you provide some supports for me ?Many thanks...

+1

+1

+1

+1


Add ability to change snippets icon

I would like to colorize or optionally add a own icon for snippets.
Use Case:
I have snippets, which "converts" to hex codes. I don't want to write a whole extension, just to see the color of the outcoming hex code.
Example Image:

A solution to add styling could be :
"Material Active Icon Light": {
	"prefix": "md-active-icon-light",
	"body": [
		"rgba(255, 255, 255, 1)"
	],
        "display": {
                 "style" : {
                         "background-color": "green"
                 }
        }
}

I like how it looks is Atom

You can achieve this when not using snippets but a CompletionItemProvider that returns completions of type color. Our css/less/sass tooling does exactly that.

@jrieken Thanks for the response!
I know that it is possible using CompletionItemProvider. But do you consider adding this option also to a snippets configuration? So it would be easy for everyone to add color preview.

@jrieken That's a bit much for most use cases don't you think? Custom colors/icons would be a great way to make use of the limited text space with snippets.

So it would be easy for everyone to add color preview.

I'd learn more about this. It seems you think having a completion item provider isn't easy? Why is that? You shouldn't need much more than this
    vscode.languages.registerCompletionItemProvider('abc', new class implements vscode.CompletionItemProvider {
        provideCompletionItems(doc, pos) {

            return [
                this._createColorItem('$color-accent', 'rgb(0, 122, 204)'),
                this._createColorItem('$color-bg-dark', '#0000cc'),
                this._createColorItem('$color-bg-light', 'HSL(30%, 100%, 50%)'),
            ];
        }
        private _createColorItem(label: string, color: string) {
            let item = new vscode.CompletionItem(label);
            item.documentation = color;
            item.kind = vscode.CompletionItemKind.Color;
            return item;
        }
    }());

I was wondering why this has been layed off. I would love to have the option to add the default icons VSCode uses.
Having a visual help to differentiate between methods, objects and properties is great. And an additional JSON-key to add a background-color to snippets would make it clear which snippets are user defined.


Adding events and cron management

Hey @ncb000gt,
Would you have any interest in accepting a PR that adds some management capabilities?
I've written a "cron-master" module that adds some neat features and helps enforce better management of cron jobs in a codebase, adds events, and prevents a cron instances from performing concurrent ticks. It could possibly be added to this module, but also works fine separately. It's a little opinionated perhaps.

I guess it would depend on what you are talking about. That said, I've been fairly inactive on this project for a while because I don't have a lot of free time. So, I'm more likely to accept PR's than decline them unless I don't like the direction. :)

Probably best to keep these separate for now. Thanks for the feedback


Fix grid axis appearing on top of the lines

Thank you for contributing a pull request.
Please ensure that you have signed the CLA.

[x] I have signed the CLA

Do you have an example chart that exposes the problem that you are trying to address in this pull request?

Sure, simply add gridColor: 'red' to one of the line graphs in either axisX or axisY, and change the color to a lighter one like white so that you can spot if the grid axis overlaps the lines and regions.

Before
After

The answer to this may be obvious but I will ask anyways - did you consider moving this: <Axis key="x" scale={chart.xscale} options={options.axisX} chartArea={chartArea} />           <Axis key="y" scale={chart.yscale} options={options.axisY} chartArea={chartArea} /> before this:
          {areas}
          {lines}
          {points}```
in Line.js vs. the added complexity of splitting out "GridAxis" from Axis and moving it before `{regions}`as you did?
I'm sure you probably considered this - I would like to understand what the downside is.

(Side note for comparison: Interestingly enough in Bar.js, Axis comes before `{lines}` while Scatterplot.js is the opposite - the ordering is certainly inconsistent among chart types)

Based on the side note above, if we address the first point above, would you be willing to fix this in the remainder of the chart types that use Axis (Bar & Scatterplot)?

Thanks for the careful review!
My reasoning was that in Axis you also have ticks and labels, and you probably don't want these to be in the background:

Sure, I'll also do this for Bar and Scatterplot 👍

Before
After

Thank you. I appreciate you contributing this improvement to the library.


Getting started fails at https://docs.litmuschaos.io/docs/next/getstarted.html#observe-chaos-results

What happened:
Follow the getting started guide at https://docs.litmuschaos.io/docs/next/getstarted.html.
With both clean installed Google GKE and local microk8s I find this fails at step https://docs.litmuschaos.io/docs/next/getstarted.html#run-chaos;
$ kubectl describe chaosresult nginx-chaos-container-kill -n nginx
Error from server (NotFound): chaosresults.litmuschaos.io "nginx-chaos-container-kill" not found

If you switch to https://docs.litmuschaos.io/docs/next/rancher-litmus/ for a slightly different approach, then you get further, principally because the LIB_IMAGE value in chaosengine.yaml is newer; gaiaadm/pumba:0.7.2. Here you get to step https://docs.litmuschaos.io/docs/next/getstarted.html#observe-chaos-results. The transcript below is for gaiaadm/pumba:0.7.4, but it is the same for 0.7.2:
$ kubectl describe chaosresult nginx-chaos-container-kill -n nginx
Name:         nginx-chaos-container-kill
Namespace:    nginx
Labels:       name=nginx-chaos-container-kill
Annotations:  <none>
API Version:  litmuschaos.io/v1alpha1
Kind:         ChaosResult
Metadata:
  Creation Timestamp:  2020-09-09T13:54:30Z
  Generation:          3
  Resource Version:    3979
  Self Link:           /apis/litmuschaos.io/v1alpha1/namespaces/nginx/chaosresults/nginx-chaos-container-kill
  UID:                 bae66f5d-ee3e-43c2-9339-6ee8047d3370
Spec:
  Engine:      nginx-chaos
  Experiment:  container-kill
Status:
  Experimentstatus:
    Fail Step:  Executing pumba lib for the container-kill
    Phase:      Completed
    Verdict:    Fail
Events:
  Type     Reason   Age   From                         Message
  ----     ------   ----  ----                         -------
  Warning  Summary  119s  container-kill-ml5o5y-cmkdg  container-kill experiment has been Failed
$ kubectl get pods -n nginx
NAME                          READY   STATUS               RESTARTS   AGE
container-kill-737du8-pjwhc   1/1     Running              0          20s
container-kill-omfulj         0/1     ContainerCannotRun   0          14s
nginx-554b9c67f9-vj28w        1/1     Running              0          13m
nginx-chaos-runner            1/1     Running              0          32s

with the failing container like this;
$ kubectl describe pod container-kill-omfulj -n nginx
Name:               container-kill-omfulj
Namespace:          nginx
Priority:           0
PriorityClassName:  <none>
<..>
Events:
  Type     Reason   Age    From                                                       Message
  ----     ------   ----   ----                                                       -------
  Normal   Pulling  9m33s  kubelet, gke-mfo-litmus-200909-default-pool-6176e6ec-sqdn  Pulling image "gaiaadm/pumba:0.7.4"
  Normal   Pulled   9m29s  kubelet, gke-mfo-litmus-200909-default-pool-6176e6ec-sqdn  Successfully pulled image "gaiaadm/pumba:0.7.4"
  Normal   Created  9m29s  kubelet, gke-mfo-litmus-200909-default-pool-6176e6ec-sqdn  Created container container-kill
  Warning  Failed   9m29s  kubelet, gke-mfo-litmus-200909-default-pool-6176e6ec-sqdn  Error: failed to start container "container-kill": Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"pumba\": executable file not found in $PATH": unknown

What you expected to happen:
Cf. https://docs.litmuschaos.io/docs/next/rancher-litmus/#observe-chaos-results;
Status:
  Experimentstatus:
    Fail Step:  N/A
    Phase:      Completed
    Verdict:    Pass
Events:         <none>

How to reproduce it (as minimally and precisely as possible):
Follow https://docs.litmuschaos.io/docs/next/getstarted.html or https://docs.litmuschaos.io/docs/next/rancher-litmus but for a normal gke or microk8s cluster. Fails identically on both.
Anything else we need to know?:
No. I'd like litmus to work so I might see if it fits into our SRE setup. :-)

cc: @ispeakc0de

Hi @yarcyarc,
Thanks for pointing out this issue. The value of LIB_IMAGE is older/depreciated(not update in getting started docs). Can you please change try it by setting the value of LIB_IMAGE env as litmuschaos/go-runner:1.7.0
you can also refer: https://docs.litmuschaos.io/docs/container-kill/#supported-experiment-tunables

Thanks for a reply. Tried with
      value: 'litmuschaos/go-runner:1.7.0'

in the chaosengine.yaml.
That seems to possibly get me further but no cigar yet.
It runs;
$ kubectl get pods -n nginx
NAME                          READY   STATUS    RESTARTS   AGE
container-kill-km1p8h-sr8gp   1/1     Running   0          105s
nginx-chaos-runner            1/1     Running   0          2m1s
nginx-f89759699-w9wpm         1/1     Running   3          44h

Then finishes, apparently nicely;
$ kubectl get pods -n nginx
NAME                    READY   STATUS    RESTARTS   AGE
nginx-f89759699-w9wpm   1/1     Running   3          44h

But the result is not satisfactory
$ kubectl describe chaosresult nginx-chaos-container-kill -n nginx
Name:         nginx-chaos-container-kill
Namespace:    nginx
Labels:       name=nginx-chaos-container-kill
Annotations:  <none>
API Version:  litmuschaos.io/v1alpha1
Kind:         ChaosResult
Metadata:
  Creation Timestamp:  2020-09-09T10:44:16Z
  Generation:          5
  Managed Fields:
    API Version:  litmuschaos.io/v1alpha1
    Fields Type:  FieldsV1
    fieldsV1:
      f:metadata:
        f:labels:
          .:
          f:name:
      f:spec:
        .:
        f:engine:
        f:experiment:
      f:status:
        .:
        f:experimentstatus:
          .:
          f:failStep:
          f:phase:
          f:verdict:
    Manager:         container-kill
    Operation:       Update
    Time:            2020-09-11T06:53:58Z
  Resource Version:  3416788
  Self Link:         /apis/litmuschaos.io/v1alpha1/namespaces/nginx/chaosresults/nginx-chaos-container-kill
  UID:               b9cae2e5-b90a-438b-b203-13e14d04f133
Spec:
  Engine:      nginx-chaos
  Experiment:  container-kill
Status:
  Experimentstatus:
    Fail Step:  Executing pumba lib for the container-kill
    Phase:      Completed
    Verdict:    Fail
Events:
  Type     Reason   Age   From                         Message
  ----     ------   ----  ----                         -------
  Warning  Summary  22s   container-kill-km1p8h-sr8gp  container-kill experiment has been Failed

The container-kill is gone, so I guess I'm not at liberty to look at the logs. Mind you, I have no insight into the project or how this is stitched together, I'm simply doing the "getting started" to make a preliminary assessment whether our team should look more closely at this. So I might be doing silly things or there might be really obvious remedies you @ispeakc0de see immediately. Bear over with me. :-)

I had some more time this afternoon. I log tailed the container-kill;
$ kubectl logs --follow container-kill-uh04tm-mw684 -n nginx
W0911 10:36:16.437914       1 client_config.go:541] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
time="2020-09-11T10:36:16Z" level=info msg="[PreReq]: Getting the ENV for the  experiment"
time="2020-09-11T10:36:16Z" level=info msg="[PreReq]: Updating the chaos result of container-kill experiment (SOT)"
time="2020-09-11T10:36:16Z" level=info msg="The application information is as follows" Ramp Time=0 Namespace=nginx Label="app=nginx"
time="2020-09-11T10:36:16Z" level=info msg="[Status]: Verify that the AUT (Application Under Test) is running (pre-chaos)"
time="2020-09-11T10:36:16Z" level=info msg="[Status]: Checking whether application containers are in running state"
time="2020-09-11T10:36:16Z" level=info msg="The running status of container are as follows" Pod=nginx-f89759699-w9wpm Status=Running container=nginx
time="2020-09-11T10:36:18Z" level=info msg="[Status]: Checking whether application pods are in running state"
time="2020-09-11T10:36:18Z" level=info msg="The running status of Pods are as follows" Pod=nginx-f89759699-w9wpm Status=Running
time="2020-09-11T10:36:20Z" level=info msg="[Info]: Details of application under chaos injection" ContainerName=nginx PodName=nginx-f89759699-w9wpm NodeName=yarc-mainii
time="2020-09-11T10:36:20Z" level=info msg="restartCount of target container before chaos injection: 3"
time="2020-09-11T10:36:20Z" level=info msg="[Status]: Checking the status of the helper pod"
time="2020-09-11T10:36:20Z" level=info msg="[Status]: Checking whether application containers are in running state"
time="2020-09-11T10:36:22Z" level=info msg="[Status]: Checking whether application pods are in running state"
time="2020-09-11T10:36:24Z" level=info msg="The running status of Pods are as follows" Pod=container-kill-lppwhx Status=Running
time="2020-09-11T10:36:26Z" level=info msg="[Wait]: Waiting for the 20s chaos duration"
time="2020-09-11T10:36:46Z" level=info msg="[Cleanup]: Deleting the helper pod"
time="2020-09-11T10:38:34Z" level=info msg="restartCount of target container after chaos injection: 3"
time="2020-09-11T10:38:34Z" level=error msg="Chaos injection failed due to Target container is not restarted , err: Target container is not restarted\n"

@yarcyarc You are getting this from micro-k8s or GKE?

Good call. It was microk8s. Did it over gcp now, and that works;
Status:
  Experimentstatus:
    Fail Step:  N/A
    Phase:      Completed
    Verdict:    Pass
Events:
  Type    Reason   Age   From                         Message
  ----    ------   ----  ----                         -------
  Normal  Summary  86s   container-kill-qhi2p9-z29zw  container-kill experiment has been Passed

So, it works in gcp. Doesn't in microk8s. That's weird I guess, but I'm happy. gcp suffices. :-)
Thanks for your support and patience.

cool @yarcyarc ...It should work with micro-k8s as well as microk8s have containerd run-time environment
we just need to change the CONTAINER_RUNTIME to containerd(engine) LIB value to litmus if its pumba(experiment).

Would've been nice if it worked on microk8s as well. Less scaffolding for experimental use. I looked for the CONTAINER_RUNTIME but couldn't really find that, on the github project or on litmuschaos.io. Is this something I can add in a yaml file or similar @uditgaurav or is this something deep under the hood? :-)

Hello,
I am facing the same issue .
`root@master-node:~#` kubectl describe chaosresult nginx-chaos-container-kill
Error from server (NotFound): chaosresults.litmuschaos.io "nginx-chaos-container-kill" not found

Given below the commands which I followed :
#kubectl apply -f https://litmuschaos.github.io/litmus/litmus-operator-v1.7.0.yaml
#kubectl get pods -n litmus
#kubectl get crds | grep chaos
Install Chaos Expermiment - container-kill
#kubectl apply -f https://hub.litmuschaos.io/api/chaos/1.7.0?file=charts/generic/container-kill/experiment.yaml
vim rbac.yaml
#kubectl apply -f rbac.yaml
vim chaosengine.yaml
#kubectl apply -f chaosengine.yaml
#watch -n 1 kubectl get pods -n litmus
#kubectl describe chaosresult nginx-chaos-container-kill -n nginx
Output which I got after describing chaos operator :
Events:
Type     Reason     Age                   From                 Message

Normal   Pulled     12m                   kubelet, slave-node  Successfully pulled image "litmuschaos/chaos-operator:1.7.0" in 3.976277407s
Normal   Pulled     12m                   kubelet, slave-node  Successfully pulled image "litmuschaos/chaos-operator:1.7.0" in 3.752989184s
Normal   Pulled     11m                   kubelet, slave-node  Successfully pulled image "litmuschaos/chaos-operator:1.7.0" in 3.913858715s
Normal   Scheduled  10m                   default-scheduler    Successfully assigned litmus/chaos-operator-ce-6996ddd78d-6ckjb to slave-node
Normal   Pulled     10m                   kubelet, slave-node  Successfully pulled image "litmuschaos/chaos-operator:1.7.0" in 3.973767981s
Normal   Started    10m (x4 over 12m)     kubelet, slave-node  Started container chaos-operator
Normal   Created    10m (x4 over 12m)     kubelet, slave-node  Created container chaos-operator
Normal   Pulling    9m2s (x5 over 12m)    kubelet, slave-node  Pulling image "litmuschaos/chaos-operator:1.7.0"
Normal   Pulled     8m58s                 kubelet, slave-node  Successfully pulled image "litmuschaos/chaos-operator:1.7.0" in 3.998879853s
Warning  BackOff    2m47s (x29 over 11m)  kubelet, slave-node  Back-off restarting failed container
``

@sakshigupta-29 can you please do a kubectl describe chaosengine -n <ns> & also share the logs of the chaos-operator/runner?

@ksatchit
 root@master-node:~# kubectl logs chaos-operator-ce-6996ddd78d-phspf -n litmus {"level":"info","ts":1600083943.25164,"logger":"cmd","msg":"Go Version: go1.10.3"} {"level":"info","ts":1600083943.2516992,"logger":"cmd","msg":"Go OS/Arch: linux/amd64"} {"level":"info","ts":1600083943.2517161,"logger":"cmd","msg":"Version of operator-sdk: v0.15.2"} {"level":"info","ts":1600083943.2517338,"logger":"leader","msg":"Trying to become the leader."} root@master-node:~# kubectl logs -f chaos-operator-ce-6996ddd78d-phspf -n litmus {"level":"info","ts":1600083992.0587275,"logger":"cmd","msg":"Go Version: go1.10.3"} {"level":"info","ts":1600083992.0587652,"logger":"cmd","msg":"Go OS/Arch: linux/amd64"} {"level":"info","ts":1600083992.0587788,"logger":"cmd","msg":"Version of operator-sdk: v0.15.2"} {"level":"info","ts":1600083992.0587957,"logger":"leader","msg":"Trying to become the leader."} {"level":"error","ts":1600084022.0599606,"logger":"cmd","msg":"","error":"Get https://<IP_ADDRESS>:443/api?timeout=32s: dial tcp <IP_ADDRESS>:443: i/o timeout","stacktrace":"github.com/litmuschaos/chaos-operator/vendor/github.com/go-logr/zapr.(*zapLogger).Error\n\tsrc/github.com/litmuschaos/chaos-operator/vendor/github.com/go-logr/zapr/zapr.go:128\nmain.main\n\tsrc/github.com/litmuschaos/chaos-operator/cmd/manager/main.go:65\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:198"}

@ksatchit
root@master-node:~# kubectl describe chaosengine -n litmus Name:         nginx-network-chaos Namespace:    litmus Labels:       <none> Annotations:  <none> API Version:  litmuschaos.io/v1alpha1 Kind:         ChaosEngine Metadata:   Creation Timestamp:  2020-09-14T16:25:05Z   Generation:          1   Managed Fields:     API Version:  litmuschaos.io/v1alpha1     Fields Type:  FieldsV1     fieldsV1:       f:metadata:         f:annotations:           .:           f:kubectl.kubernetes.io/last-applied-configuration:       f:spec:         .:         f:annotationCheck:         f:appinfo:           .:           f:appkind:           f:applabel:           f:appns:         f:auxiliaryAppInfo:         f:chaosServiceAccount:         f:engineState:         f:experiments:         f:jobCleanUpPolicy:         f:monitoring:     Manager:         kubectl-client-side-apply     Operation:       Update     Time:            2020-09-14T16:25:05Z   Resource Version:  881244   Self Link:         /apis/litmuschaos.io/v1alpha1/namespaces/litmus/chaosengines/nginx-network-chaos   UID:               5b081df8-0dbc-4165-8096-879fba633403 Spec:   Annotation Check:  true   Appinfo:     Appkind:              deployment     Applabel:             app=nginx     Appns:                default   Auxiliary App Info:   Chaos Service Account:  pod-network-loss-sa   Engine State:           active   Experiments:     Name:  pod-network-loss     Spec:       Components:         Env:           Name:         TARGET_CONTAINER           Value:        nginx           Name:         LIB_IMAGE           Value:        litmuschaos/go-runner:latest           Name:         NETWORK_INTERFACE           Value:        eth0           Name:         NETWORK_PACKET_LOSS_PERCENTAGE           Value:        100           Name:         TOTAL_CHAOS_DURATION           Value:        60   Job Clean Up Policy:  delete   Monitoring:           false Events:                 <none>


🌱 Bump osv scanner workflow to v1.8.5

OSV Scanner workflow is broken with the following error
[Invalid workflow file: .github/workflows/osv-scanner-scan.yml#L21](https://github.com/metal3-io/ip-address-manager/actions/runs/10883636309/workflow)
error parsing called workflow
".github/workflows/osv-scanner-scan.yml"
-> "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@4a318af4a84899723625da2927c30fcfb7247126"
: failed to fetch workflow: workflow was not found.

In an attempt to solve this issue, this PR also bumps the workflow to use v1.8.5 workflow file from osv scanner upstream.
Note that the current way of running the workflow file from upstream repo is not optimal and we should use osv-scanner github actions instead in future. We will follow up with that soonish in a separate PR.

/hold
testing

/hold cancel

/override metal3-centos-e2e-integration-test-main  metal3-centos-e2e-integration-test-main

/cc @tuminoid

/override metal3-ubuntu-e2e-integration-test-main

/lgtm

/override metal3-centos-e2e-integration-test-main  metal3-ubuntu-e2e-integration-test-main


linux-raspberrypi: bump to 5.4.50 since upstream was force-pushed

Signed-off-by: Christopher Clark<EMAIL_ADDRESS>Fixes the build since the upstream branch was force-pushed, so the
commit referenced in the SRCREV was no longer present in the branch.
Briefly boot-tested on a Raspberry Pi 4 with Xen via meta-virtualization.

Can one of the admins verify this patch?

Merged. Thanks.


get api notes

GET /api/notes should read the db.json file and return all saved notes as JSON.

Added code to read the db.json and return all the notes as json.
only wrote it in the main server.js file, will need to modularize it into api-route.js later.

DONE!


Integration tests in CI

Run integration tests in CI.

Remove check for OPENAI_API_KEY because this key is actually not required
Create ES service in GitHub Action environment
Check if a model is deployed in ES to determine if a test needs to be skipped
Some refactoring for the previous point
Remove obsolete compile test

Appreciate the feedback @efriis!

It seems your integration tests don't rely on any secrets, so this could work.

Exactly they don't and I would argue that for this Elasticsearch package we can keep secrets out of the tests going forward since we can stub the other parts (like embeddings).

my light suggestion would be to reformat some of these "integration tests" as "unit tests" (if you want to rename those two folders to "pr tests" and "release tests" that works for me)

I had a look through the integration tests but didn't find an instance that could be ported to a unit test (that can run without ES). Regarding the distinction between PR pushes and merges to main: the integration tests currently take less than a minute in CI including ES setup. From my perspective this is acceptable to run on each push to a PR.

That way you can keep the integration testing folder if you ever wanted to run release integration tests to make sure cloud connection is working [...]

It's still possible to run the integration tests locally pointing at a cloud instance so I think we don't loose this option with this PR.