SSH Permission denied

Hello,
I am getting an error when trying to connect to SSH. I have the docker running and connected to freedomrobotics successfully (I can publish custom topics and see them in the web interface). However, when I try to connect to SSH with the command from the online interface and type 'root' as the password I get this:

Is there some different password other than 'root'?

Paste the output of the ssh command with -vvv option. (ssh -vvv<EMAIL_ADDRESS>

robert@robert-GL702VMK:~$ ssh -vvv<EMAIL_ADDRESS>-p 13251
OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n  7 Dec 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolving "0.tunnel.freedomrobotics.ai" port 13251
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 0.tunnel.freedomrobotics.ai [<IP_ADDRESS>] port 13251.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /home/robert/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/robert/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/robert/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/robert/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/robert/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/robert/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/robert/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/robert/.ssh/id_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
debug1: match: OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to 0.tunnel.freedomrobotics.ai:13251 as 'root'
debug3: put_host_port: [0.tunnel.freedomrobotics.ai]:13251
debug3: hostkeys_foreach: reading file "/home/robert/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file /home/robert/.ssh/known_hosts:10
debug3: load_hostkeys: loaded 1 keys from [0.tunnel.freedomrobotics.ai]:13251
debug3: order_hostkeyalgs: prefer hostkeyalgs: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c
debug2: host key algorithms: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm<EMAIL_ADDRESS>debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm<EMAIL_ADDRESS>debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,zlib@openssh.com,zlib
debug2: compression stoc: none,zlib@openssh.com,zlib
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1
debug2: host key algorithms: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm<EMAIL_ADDRESS>debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm<EMAIL_ADDRESS>debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos<EMAIL_ADDRESS>debug2: compression stoc<EMAIL_ADDRESS>debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher<EMAIL_ADDRESS>MAC:  compression: none
debug1: kex: client->server cipher<EMAIL_ADDRESS>MAC:  compression: none
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:oQB+CS6qx+jDSsFXSZTVezXVEZij7/pwg+q2qh0rNJc
debug3: put_host_port: [<IP_ADDRESS>]:13251
debug3: put_host_port: [0.tunnel.freedomrobotics.ai]:13251
debug3: hostkeys_foreach: reading file "/home/robert/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file /home/robert/.ssh/known_hosts:10
debug3: load_hostkeys: loaded 1 keys from [0.tunnel.freedomrobotics.ai]:13251
debug3: hostkeys_foreach: reading file "/home/robert/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file /home/robert/.ssh/known_hosts:11
debug3: load_hostkeys: loaded 1 keys from [<IP_ADDRESS>]:13251
debug1: Host '[0.tunnel.freedomrobotics.ai]:13251' is known and matches the ECDSA host key.
debug1: Found key in /home/robert/.ssh/known_hosts:10
debug3: send packet: type 21
debug2: set_newkeys: mode 1
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: SSH2_MSG_NEWKEYS received
debug2: set_newkeys: mode 0
debug1: rekey after 134217728 blocks
debug2: key: /home/robert/.ssh/id_rsa ((nil))
debug2: key: /home/robert/.ssh/id_dsa ((nil))
debug2: key: /home/robert/.ssh/id_ecdsa ((nil))
debug2: key: /home/robert/.ssh/id_ed25519 ((nil))
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password
debug3: start over, passed a different list publickey,password
debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/robert/.ssh/id_rsa
debug3: no such identity: /home/robert/.ssh/id_rsa: No such file or directory
debug1: Trying private key: /home/robert/.ssh/id_dsa
debug3: no such identity: /home/robert/.ssh/id_dsa: No such file or directory
debug1: Trying private key: /home/robert/.ssh/id_ecdsa
debug3: no such identity: /home/robert/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: /home/robert/.ssh/id_ed25519
debug3: no such identity: /home/robert/.ssh/id_ed25519: No such file or directory
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
<EMAIL_ADDRESS>password:
debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
<EMAIL_ADDRESS>password:


SslConfigs SSL_PROTOCOL_CONFIG wrong value

SSL_PROTOCOL_CONFIG property in class SslConfigs has value "ssl.protocol". But for ssl connection to kafka we need to use "security.protocol" value.

Please use JIRA to report Kafka project issues
https://issues.apache.org/jira/browse/KAFKA

Besides, you're using the wrong config class
https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/clients/CommonClientConfigs.java#L99

Hi Jordan. Thank you for your reply. Ok, sorry. Apparently I didn't pay enough attention to reading documentation. Could I ask one question - why don't class, that you mentioned, contains truststore, keystore parameters?

Thank you very much for your answers. Good luck )


Grant the IAM policy controller SA access to query for OpenShift groups

This relates to:
open-cluster-management/backlog#14166
open-cluster-management/iam-policy-controller#66

@hanqiuzh could you please review?

/approve
/lgtm


FDP-112 ~ Fixes link to section.

Signed-off by<EMAIL_ADDRESS>

All is well.

All is well.


Feature request: allow certain users

Hi,
I was thinking about using your action to prevent someone from adding changed *.lock (eg. from yarn, packages, composer) to PRs. This should prevent that someone sneaks in new packages not updated by the core maintainer.
BUT: when I would now configure your action to fail on *.lock I wouldn't be able myself to create new PRs with updated dependencies. Or dependabot for example.
Not sure if your action was made to cover that use-case, but maybe you would consider to add a feature where certain users are allowed to override the pattern?
Not sure about the wording for the new setting I was thinking about, but I imagined something like that:
- name: Prevent file change
  uses: xalvarez/prevent-file-change-action@v1
  with:
    githubToken: ${{ secrets.GITHUB_TOKEN }}
    pattern: .*.lock
    maintainer: kevinpapst, xalvarez, dependabot

With that setting applied, the 3 users kevinpapst, xalvarez and dependabot would be allowed to pass the pattern rule.
What do you think?
Edit:
Or is there some other way to achieve the same goal with native Github actions features?
P.S: this is not a bug, the label was added automatically.

Good idea :+1: I can work on that in the weekend or next week

Thanks for the quick and positive response @xalvarez 😄
In the meantime I tried to use this in my action:
    if: ${{ github.actor != 'kevinpapst' && github.actor != 'dependabot[bot]' }}
    steps:
        - name: Prevent file change
          uses: xalvarez/prevent-file-change-action@v1
          with:
            githubToken: ${{ secrets.GITHUB_TOKEN }}
            pattern: .*.lock

So only running your action if the user is neither me nor dependabot.
That would achieve the same goal, but:

The skipped status will lead to problems when branch protection is activated with Status checks are required. There are workarounds existing, but I believe handling this inside the action is a much cleaner solution.
I can help testing, just give me a ping!

Hi @kevinpapst, I've just released v1.1.0 including the suggested enhancement. I named the input variable trustedAuthors. If you have time, please try it out :slightly_smiling_face:

Awesome, thank you so much for quickly adding this new feature 👍
I  tried a new PR without a changed lock file and it said

Now I have to wait for a user adding or updating an existing PR for the real fun 😁 and will report back for the use-cases I want this action for: making s

I'll close this feature request. Thanks again @xalvarez - just shared your great action (which needs much more stars!) on Twitter


create footer section and add all social media of our community.

Twitter
Discord
Instagram

Hey, I would like to do this. Can you assign it to me, please?

Sure @rafaelaqueirozg


Feature request: adjust target colors for IR cameras

I have an IR camera (no IR filter and IR lights that are always on) which is black/white, maybe a pinkish hue. I'm able to get this project working, but only if I shine a bright light directly on the gauge.
It detects the line segments easily (they come across as black), but the float is white with just the IR lights.
Is there a way to have it look for shades of white as opposed to shades of red?
I looked through gauge.py and found the following lines which I might be able to adjust:
ind_lower_red = np.array([145,112,0])
ind_upper_red = np.array([179,255,255])

I'm not sure what the values would be once converted to HSV.
Thanks.

Hi @timnunes,
Since the IR camera is essentially black and white, it might take a different approach to detect the position of the indicator than the one I used to find red pixels.  I'm not sure an HSV range will work well.
A good first step would be to get an unprocessed image from your setup.  Easiest thing to do would be to stop the gauge-cv service via systemctl and then run raspistill --width 800 --height 608 --encoding png --output test.png
Once you've got test.png, you can drop it into a comment here, e.g.:

Thanks for the reply.
First a picture with the just the built in IR lights:

Next is a picture with a lamp shining directly on the gauge:

For fun, a screenshot of the web app with the lamp turned OFF:

...and a screenshot of the web app with the lamp turned ON:

I may not be a smart man, but it seems that I have figured out how to adjust gauge.py to fit my needs. I'll add my edits below for anyone else looking.
In summary, I commented out the line that converts to HSV, adjusted the HTML color codes to match my camera output, and changed the reference to "ind_crop_hsv" to "ind_crop", since I'm skipping the conversion to HSV.
Thanks @tangentaudio, not only for this really great project, but also for pointing me in the right direction.
        # find the red indicator with a mask and range
        #ind_crop_hsv = cv2.cvtColor(ind_crop, cv2.COLOR_BGR2HSV) (commented out so no conversion happens. Optional, since we remove reference to "ind_crop_hsv" further down)

        #use an online tool to find the html colors of the float indicator in your image and adjust accordingly
        ind_lower_red = np.array([183,130,204])
        ind_upper_red = np.array([255,255,255])

        #Changed the reference from "ind_crop_hsv" to "ind_crop".
        ind_red_mask = cv2.inRange(ind_crop, ind_lower_red, ind_upper_red)

Glad to hear you got it working!  At some point I will make a round of improvements to the code and try to make it flexible enough to work with a setup like yours without code changes.  Cheers.


Task 01 check_result runtime error

How to reproduce:
TASK=01 make run_cks_task
ssh ubuntu@ip_address
make steps from the SOLUTION
check_result
Result:
ubuntu@worker:~> check_result
 ✓ 0  Init

1 test, 0 failures
Runtime error (func=(main), adr=9): Divide by zero
 result =  %   ok_points=0  all_points=0
time_left=270 minutes
you  spend 29 minutes

it is ok . This lab don't have  auto test . Use SOLUTION file


JackOLantern 🎃 🧙 🎃

JackOLantern (Jack-O'Lantern)

update 🎃

Happy Early AllHallowedEve!

https://spacedock.info/mod/2261/Jack-O'-Lantern

https://github.com/zer0Kerbal/JackOLantern

https://forum.kerbalspaceprogram.com/index.php?/topic/189466-*

Hey, are you sure about the removal of the ModuleManager dependency? Validation reports that there is a Tags.cfg file that uses MM syntax.
The remote version file URL is broken currently: https://github.com/zer0Kerbal/Jack-O-Lantern/JackOLantern.version
Try e.g. https://raw.githubusercontent.com/zer0Kerbal/JackOLantern/master/JackOLantern.version instead

Also is there a chance you could clean up your Git branches / rebase them on upstream master, please? All these stray, unrelated commits are a bit irritating. Thanks!

chuckle the one on SD is from 2019, so I'd say it has some dust on it. ;p It is updated in the new archive.

@HebaruSan unintentional - was cleaning out the shrubbery per @DasSkelett request and got a little chop happy with the Husqvarna 592 XP... same goes for the Halloween PR

Thanks for the updates!

Thanks for the updates!

trying to help out. will try to continue to improve and push updates to CKAN as I update / adopt.


<EMAIL_ADDRESS>export Packet and fixed test

https://github.com/moscajs/aedes-cached-persistence/pull/30

This is the first one that should be merged and released in a patch release, than same for aedes-cached-persistence with a major release, mqemitter-redis and at the end aedes-persistence-redis


fix lua array behaviour

lua-style-arrays Pull Request
Describe what your pull request does
This PR fixes the behaviour of lua-styled arrays by doing the following:

Creating a new LuaArray class which extends array for prototype overrides and instance checking
Changing the index 0 of an array to undefined instead of null, which is what is expected when trying to access an index which does not exist
Override shift and unshift to take in account the fact that the array is 1-indexed
Update test.js to test for the above changes

Why should it be accepted?
Because previously, this module only half-implemented lua-styled arrays.
Screenshots/animated GIFs
https://stop-it.get-some.help/534945.gif
I have

[x] made sure there are no pull requests that add this functionality.
[x] read and followed the contribution guidelines.
[x] read and followed the Code of Conduct.

Looks like this is the better solution over #5 since the custom implementation of the LuaArray prevents a bug that I was going to fix this morning where you could unshift again and screw up the array.
No breaking API changes however this will be released as a minor change over patch due to the size of the commit and to the fact that it creates a completely new type for the array.
Thanks for your commit! 👍


Adding standard error and sample size.

Closes #112

Thanks for giving it a look, @karlaspuldaro !


context

surrounding vs. previous only?
if surrounding: take only sentences as slices?

This is deprecated.


Support for silent blocks

It would be nice to have support for blocks that evaluate, but do not produce any markdown output.
I'm writing some tutorial for a library in mdx, and need to have a snippet of code of 20-30 lines to present to the reader. Writing it in toplevel block directly is not very convenient as it won't get automatically formatted. Making it a file block solves the problem of formatting, but the code is not evaluated in mdx context. My best approach so far it to load it into toplevel via #use directive, but it outputs a lot of signatures along the way. Once loaded, I can present separate sections of the file via file blocks and then show some toplevel evaluation of the constructs defined in the file. With silent block I could load it without extra noise in the markdown output.

I am a bit confused, given the idea of MDX is to essentially present a fixed point of evaluation (modulo non-deterministic blocks), in that case not rendering the block would make it disappear from the next run. That's also why MDX files can be promoted using dune, so documents using silent blocks would silently promote into documents missing these blocks altogether.
Also, if it doesn't produce any output, how would error reporting work, if the block never renders anything? So whether it is correct or not would not yield any feedback to the documentation writer.

Silent block changes the environment and if consecutive blocks depend on it, diff & promotion workflow will work as expected. So far I worked around this via summary/details markdown tags (see this gist) to collapse the output of #require and #use at the beginning of my markdown file and hide this from the reader.

How will it work? If the block is silent, it will be missing in the output, thus promotion will promote a version that doesn't feature it, thus breaking the document.

I currently have the following block at the start of my mdx (using 2 backticks to not mess the outer markdown):
``ocaml
# #require "ppx_yojson_conv";;
# #require "my-lib";;
# #use "test/Mdx_parts.ml";;
``

It does produce some output, as Mdx_parts.ml has some modules and functions defined, but I want to hide inferred signatures from the reader at this point.
Later on in my document I expand on some subject, and output a relevant piece of Mdx_parts.ml like this:
<!-- $MDX file=test/Mdx_parts.ml,part=myCodePart -->
``ocaml
``

This shows a piece of code to the reader, and after I presented this code, I want to show how one can use it with toplevel blocks.
Probably I could just move that Mdx_parts.ml into a separate library that I can #require from toplevel block, this will avoid printing of module signatures when I don't want that. Library with example code for mdx sounds a bit counterintuitive at first though.
Both Rmarkdown [1] and IPython [2] do support supressing block output, so probably this feature is considered useful for side effects of some computation.
[1] https://bookdown.org/yihui/rmarkdown-cookbook/hide-all.html
[2] https://ipython.org/ipython-doc/3/interactive/tips.html#suppress-output

Mdx already supports this kind of block, simply remove the prefixes #:
``ocaml
(* Comment to prevent Mdx from interpreting the '#'. *)
#require "ppx_yojson_conv";;
#require "my-lib";;
#use "test/Mdx_parts.ml";;
``

@Julow but I want the block to be actually executed, just the output to not be emitted in the document.

It is:
```ocaml
let x = 42
```

```ocaml
# x ;;
- : int = 42
```

Oh, nice! Probably it's worth mentioning in the documentation explicitly that one can add a silent block that still evaluates.


Review of our OpenAI based API

The backend MIG running our OpenAI API service, detailed here has, apparently, a constant traffic of 0 requests.
We need to verify with the platform analytics whether this service is actually being used and, in case it is, check the usage profile to verify that this backend receives no traffic from the global load balancer due to the configured CDN (if active).
The @opentargets/data-team and @opentargets/fe-team can also provide insights from the OpenAI API token usage by looking into our OpenAI dashboard details.

The dashboard shows a mild usage of the app: ~600 requests in Feb, 300 in January, none in January. Moreover, the use is not constant, but rather in peaks.

Since we developed this, Langchain has launched a deployment service called Langserve that integrates with lambda functions in GCP. I haven't worked with it, but it is an alternative BE you might want to take into consideration.


fix: issue #4736

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


Use digests when pulling mkimage images.

With DOCKER_CONTENT_TRUST=1 docker run :
the docker command will print on stdout something like:
Tagging  with ... on the first pull which then ends
up the in the output image.
Pulling with digest stops that message
Signed-off-by: Rolf Neugebauer<EMAIL_ADDRESS>

This seems OK as a workaround for now, but this shouldn't be needed -- I think it is a moby bug if it is logging to stdout when it is not a tty, since it breaks the docker run image:tag cat foo use case. Shall we have a moby/moby or moby/cli bug to go with it?

Hrm. should we be using --attach=STDIN rather than -i? Maybe this is our fault?

I’m on a bus to an airport so can’t test.  But if you have a better fix that would be great

On 20 Oct 2017, at 15:59, Ian Campbell<EMAIL_ADDRESS>wrote:
Hrm. should we be using --attach=STDIN rather than -i? Maybe this is our fault?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

I'm having a play now.

I can't seem to repro the behaviour seen in https://github.com/linuxkit/linuxkit/pull/2612 with 17.09 or 17.10, either with moby tool with
moby build -format gcp linuxkit.yml

or manually with:
$ moby build -format tar-kernel-initrd linuxkit.yml
$ cat linuxkit-initrd.tar |  docker run --network=none --rm -i linuxkit/mkimage-gcp:d1883809d212ce048f60beb0308a4d2b14c256af  > bar

Maybe it is related to the version of docker? I'll try some older versions.

I needed to docker rmi more thoroughly to provoke the pull and print. I can now reproduce with 17.06 and 17.10.

Using --attach=stdin --attach=stdout doesn't work at all. Combining with -i doesn't avoid the issue seen here, which is due to https://github.com/docker/cli/blob/master/cli/command/image/trust.go#L358.
Doing the pull separately first does avoid the issue, which might be better than having to mess around with digests until Docker CLI can be fixed, it's slightly racy in that someone could delete the image between the pull and the run, but that seems unlikely...

Reported at https://github.com/docker/cli/issues/631.
I have an alternative workaround at #171.

Closing as merged #171


Feature/persist conflicts

Checklist

[x] I run yarn run webpack:build:main: the project builds without errors.
[x] I run yarn lint: the project builds without code style warnings.
[x] I updated the documentation and models.
[x] I tested the changes and all related features on the test server https://artemistest.ase.in.tum.de.
[x] ~I added (end-to-end) test cases for the new functionality.~

Motivation and Context

Integrates conflict resolution view into assessment workflow and persists upcoming conflicts in database
Description

Enables the tutor to review upcoming conflicts besides each other and decide wether to apply the already existing assessment of an element to his own assessment or escalate the conflict.
Updated Gatling files to syntax of version 3.1
Added gatling ConflictSimulation for creating new course with exercise with 2 submissions and 1 assessment
Added and extended conflict related integration tests

Steps for Testing

Log in to ArTEMiS
Navigate to Course Administration
Produce Conflict
Use Resolve Conflicts button to enter new view

Screenshots

Sorry, I did not have time yet to review this. I suggest we add this to the next big release 3.2.0.
Would be great if you could fix the merge conflicts and we review this together next week, when I am back in Munich


[Errno 2] No such file or directory: 'data/cocotalk_fc/522418.npy'

I ran into this error when i ran the train.py. Does anyone know why this error occured.

maybe missing images in the dataset.

But i found this image in the val2014 folder

@KahHwa Rename those directory to cocotalk_fc

Hello, have you made it work?

Hello, have you made it work?

I have the same problem, can you find the solution?

I have the same problem, can you find the solution?


Monitor hopping of consensus messages

Describe what you want implemented
Add timestamp of hopping directly inside the consensus messages
Describe "Why" this is needed
This would help in gathering information about network state in case of problems (i.e. the consensus split)
Describe alternatives you've considered
If the payload would increase significantly and impact the analysis, an alternative would be to simply add a counter that gets incremented at every single hop
Additional context
This issue is related to the consensus network split #1156

Rather than adding monitoring information directly in the payload or the header, a simpler and cleaner solution would be to log the message hash together with a timestamp. The monitoring of the hops and the various processing is then carried out directly in the Kibana dashboard

No extra logging is required as far as we are able to reproduce the consensus split


More integration tests with mainstream sidecars

Like placed together with istio sidecars etc in pods. :-)

We will make a plan to integrate it, but I think the more efficient solution is that users commit a pr to resolve it.


[FEATURE] Add Zhipu Ai integration

ZhipuAI is a large model focusing on Chinese cognition.
#558

#558

Was added in 0.28.0


Wolfram language code format automatically.

I'm try to find the plugin which can format Wolfram language code automatically and not sure if this feature should be and have been supplied by this plugin.
Regards,
HY

There's no canonical style to do code formatting in Wolfram Language and it is hard to accommodate everyone's appetite. CodeFormatter` somehow provides a way to do the formatting, but not in my favor. Probably someday I will integrate it into the language server if it can provide a finer granularity of format settings like what I have discussed in #23 .

Duplicate of #21


Don't cache certain elements on page (like alert & notice)

When I sign in to my page I get a notice "Successfully Signed In". When I then navigate to an other sub-page of my site and navigate back with my back-button my notice is shown again.
How can I prevent this? Basically setting some element in the page I want not to be cached.

Add data-turbolinks-temporary to DOMs you don't want to cache, not tested though :) Playing with turbolinks now a days.

Thanks for your suggestion. Unfortunately I am not able to not cache certain parts of my DOM.
I tried data-turbolinks-temporary and data-no-turbolink. Both without success.
While using partial replacement with JS according to the docs I can:
Turbolinks.visit(url, { cacheRequest: false });

My idea is you could add a data-cache-request=false. Or one of the above to work. For now I'll just live with notices reappearing every once in a while...

Ok, maybe its just browser cache. Did you closed the alert before navigating to other page?

Yeah, I did. It just caches the element in the current state. I'm not sure if it is possible to cache the whole page except some element.
For that one would need to remove the element first and then cache it. Maybe worth considering in a future version of turbolinks :smiley:

:+1: same in my case I trying to deal with cached notices.
Maybe there's now any solution for this problem :question:

I haven't had a look on the new turbolinks, but maybe it's handled differently with that one.?

Gem version:
Using turbolinks 5.0.0.beta2
I'm testing now Preparing the Page to be Cached perhaps this is the solution.


[Page] People - Initial Complete Design

Context
This issue tracks the progress of the first design and its implementation for the people page of sveltevietnam.dev

tracked in figma


Ignore if English translations couldn't been loaded (Fix #28)

I see what you're getting at, but one of those files should exist, so I'd rather find out why it's not being loaded. Closing in favor of #28


GH-2839: Add support for PublishReadyToRunShowWarnings property in DotNetCorePublish

Resolves #2839
DotNetCorePublish("./src/MyApp/MyApp.csproj", new DotNetCorePublishSettings
{
    // ...
    PublishReadyToRun = true,
    PublishReadyToRunShowWarnings = true, // <<<
});

@augustoproiete This looks good to be, could you please rebase against latest develop, or Allowing changes to a pull request branch created from a fork.

@devlead rebased on top of develop
Unfortunately the option to allow changes to a pull request branch created from a fork is not available for me (I suspect it's because my fork is in inside of an organization instead of a regular user)

@augustoproiete your changes have been merged, thanks for your contribution 👍


ADDED CODE FOR Red Black Tree (Insertion and Deletion operation).cpp …

Greetings sir/Mam,
I would like to contribute the code for this issue in C++/CPP.
The code is ready. I have added the code , along with proper explanation of the algorithm , test cases , time complexity and space complexity of the same, as per the guidelines.
Kindly assign it to me.
This is regarding letsgrowmore.in/soc/21.
I have made Pull Request for the same #907
Kindly Check and merge.
Regards,
Hitain Kakkar
Programming language

[ ] C
[x] C++
[ ] Java
[ ] Python

You created text file .Create copy file for merge

Made a new PR #1354 .
Kindly check.


New minimal "semantic" data model for sessions

In a recent discussion between @quaat, @jesper-friis and myself, we decided to move in a direction where the session object is not used to transfer data in any way, but rather reference semantic objects (like DLite collections or OSP-Core entities) in which the data is put/stored, which can then be referenced and invoked in the individual strategies as needed.
A first step to moving in this direction is to expand the SessionUpdate pydantic model with some minimum fields that may not be overwritten in sub-classes and are information complete with respect to retrieving the semantic object and understanding which framework to use (DLite, OSP-Core, etc.).

Why is it needed? Isn't it a big change for the framework? Will it destroy compatibility with previous plugins?

We're trying to not destroy compatibility with previous plugins, but only for a while. Our intention is to move to a more minimalized session, and keep data in a semantic container, in the default case a DLite collection. However, it could be using any framework for this, internally.

See also the description of session_type/session_id in suggested in issue #177.
In addition to them, the download strategy needs a standard way to communicate how to retrieve the downloaded content, e.g. the key under which the content is stored in the data cache. Note that the download strategy has no idea about the meaning of the downloaded content, so it make no sense for it to try to use session_id to store (the reference to) the content with the underlying interoperability platform.
Would would introducing standard download_type/download_key fields in the session be sufficient? For example
download_type="datacache"
download_key="7e9a7074-a72b-4ccd-9580-7cfd7be516c0"  # a hash of the downloaded content used as key in the datacache

When splitting the dataresource datamodel into download (may be called dataresource) and parse, it was suggested that mediaType should be in the download datamodel. But its value is needed by the parse strategy, so the download needs somehow to also communicate this to the parse strategy. Maybe yet a new standard download_mediaType field in the session is required for this?
It may be generalised to download_configuration if we expect that the parse strategy may utilise more fields from the download configuration.

In addition to session_type and session_id suggested in issue #177, we may also need a session_configuration field of type dict. For instance, for a "dlite" session on a distributed system, we need to specify which storage to store the collection in for communication between strategies. Such information could go into session_configuration.

An important question that has not been answered here is where the session_type, session_id and session_configuration should be provided. These fields are unrelated to the data documentation and therefore doesn't belong to the configuration of the individual strategies.
This is the same question as addressed in issue #211.


Comparison of kernels - Figure 8

I'm curious what value of \gamma was inferred for the Rational quadratic kernel as
this approaches the Squared Exponential kernel as \gamma -> \infty.   I find it interesting
that the Squared Exponential was so strongly preferred relative to the Matérn-3/2 given
that these kernels look so similar.  The squared-exponential kernel decreases more steeply
at larger time separations, so I'm wondering if the better agreement of the squared exponential
is caused by the late data predictions which are poorer in the case of the Matern-3/2 since
that kernel would cause the predicted data to continue trending in the same direction?
It's also interesting that the Exponential Squared predicts a U-turn right at the end of the
observed data - but maybe this is being drawn back by the mean?  What if the mean value is
allowed to vary?  Would that give less preference for the squared exponential over Matern?
https://github.com/dfm/araa-gps/blob/a659c2ccdcbd30bacf6bb52e845f071ebae08a1f/src/tex/ms.tex#L707-L717

Here are the parameter inferences for the rational quadratic kernel:

What if the mean value is allowed to vary? Would that give less preference for the squared exponential over Matern?

Good question! We didn't experiment with this, but I will say that our results were not really sensitive to the random seed or how we chose to leave out the data, so I don't think that it is just luck of the draw that the differences are so strong!

@dfm  Thanks for sharing that.  I'm still unclear on why the differences in Bayesian evidence between the first two kernels and the third is so strong...  and, FWIW, I think this would be good to understand this in order to give the reader a deeper intuition as to why these kernels can be distinguished.   I still suspect that the reason the Bayesian evidence is so similar for squared exponential & rational quadratic is that the kernels are probably very similar.


Device dependent login feature

I would like to to implement a feature that, using only specific device i can generate the login code from given qr code. Please let me know if this is possible or not.

Anything's possible. You can implement whatever you want.


fix test failures for Agentic RAG recipe

FYI @fayvor and @rawkintrevo

@AnnaGutowska I can probably help with this. Can you tell me which version of Python you are using to get this to run successfully? It fails with Python 3.10.12 and 3.10.15.

Hi @fayvor, I am able to run it locally with Python 3.11.9 as well as on Colab without any errors (granted that the user inputs their api key and project id where instructed)

@AnnaGutowska I think it may pass sometimes on Colab if the libraries are installed in a certain order. Once I get it to run, I can specify a version range for the faulty package.

@AnnaGutowska I was able to get Agentic_RAG to run on Colab (and use the Colab secrets) with these changes:
https://github.com/ibm-granite-community/granite-snack-cookbook/pull/45

Great, thank you so much! @fayvor I see the tests fail at the authentication step now and not at the package imports anymore.

No problem! Yes, we'll need to add the WatsonX keys to the Github Action environment.

Those are already in place

#45 merged

Now we're getting this "token_quota_reached" failure in Agentic_RAG:
ApiRequestFailure: Failure during generate. (POST ***ml/v1/text/generation?version=2024-10-14)
Status code: 403, body: {"errors":[{"code":"token_quota_reached","message":"Request of 1 token(s) from quota was rejected","more_info":"https://cloud.ibm.com/apidocs/watsonx-ai"}],"trace":"fd0b0ed54e2cf8b523574b4c3b30a2df","status_code":403}

https://github.com/ibm-granite-community/granite-snack-cookbook/actions/runs/11484241158/job/31961540469?pr=46

@fayvor I am receiving the same error in this PR. Is the API key used by the org attached to a free account of watsonx? This is likely the reason for the error.


Single node asg trimming

overall, looks good. A few nit-picky things:

please keep whitespace fixups to their own commit
it helps with readability (both in the GH UI as well as cli-based views of the git history), if the first line of the commit message is a concise / short summary, leaving sentences and longer explanations to the 3rd line and beyond. Most editors and git tooling help with that.
I just updated master a little while ago, and am a fan of rebasing so git history is super readable (some consider me to be crazy, and I won't object).

none of these are blockers, just tweaks that help UX with git.
usually I leave the dev to merge as they see fit, so feel free to do so. You have my :+1:

@ketzacoatl Thank you for the quick response.
Sorry about the whitespace. I have auto terraform fmt set up on saving, so I'll turn that off while I edit and re-do the commit and re-base. Will need to make sure to squash then, before merging.

oh dear. That didn't work. Let me try again.

There you go. I rebased ontop of master, squashed the changes and fixed the commit message. Is there anything left that you dislike?

looks great!


132 - Verify this repos isn't a submodule before invoking install-git-hooks

Thanks, @ericpromislow! This replaces the just-closed #133?
Best,
Eric

Yes, exactly. There were unintended changes in https://github.com/cloudfoundry-incubator/diego-release/pull/133 that got committed.

Merged this in separately -- I screwed up the merge commit somehow, but the code made it in :)


Replace PlatformAbstractions with RuntimeInformation

Part of https://github.com/aspnet/PlatformAbstractions/issues/34

:shipit: once Travis passes.

Please wait, I'm still reviewing this.

:shipit: after my feedback.

:shipit:

:shipit:


A future-based drain for the asynchronous future

With futures and async coming into the rust standard library, proper, perhaps slog-async should grow some support for a Future to act as the other end of a Drain? This would allow one to spawn all of the logging on an executor which will inevitably exist in any Rust project of 2020.
This is what code would end up looking like:
let (drain, future) = slog_async::Something::new();
runtime.spawn(future); // don’t have to think about this again, and runs on the same runtime as everything else.
let logger = slog::Logger::root(drain, ...);

Implementation wise Drain will likely become the sender end of some async-friendly implementation of channel, whereas the future would be implemented in a way resembling this:
async {
    loop {
        let message = async_channel.pop().await;
        some_fd.poll_write(..., message).await;
    }
}

Sadly, this likely cannot be done in a composable manner with other already existing drains, as those are synchronous.

Hello
This is more of my own view than the projects view of the thing, but…
If I follow you correctly, you want to save that one thread that just submits the logs to a file or somewhere. While I myself don't like having too many threads around, I'm not sure this is worth the effort, at least right now.

This would allow one to spawn all of the logging on an executor which will inevitably exist in any Rust project of 2020.

I kind of doubt that. While async is a big hype now, not everyone needs that and not everyone needs an executor therefore.
Second, async logging is used not only to avoid the IO, but to offload the CPU overhead of formatting the messages.
But most importantly, as you said, this needs changes in other parts of the slog infrastructure. Currently, the Async is not in the place of the final drain. It feeds the messages to other drains and it only does the offloading to other thread. While you certainly could define some new structure that plays the role of the very final drain and runs on an executor, this is quite far from what slog-async does and could as well go to its own crate.
On the other hand, I'd certainly see some advantage in supporting the warn! and debug! macros to be async on top of any drain. But again, that's a whole project feature.
So, as this seems to be somewhat bigger problem, do you think it makes sense to discuss it in the context of the whole slog?

So, as this seems to be somewhat bigger problem, do you think it makes sense to discuss it in the context of the whole slog?

Maybe, I filled it out here, as it seemed more appropriate here at first, and the rest I investigated while typing down the issue text.

Since such drains would not compose with existing drains, they might as well be a part of a different ecosystem alog or aslog or something.
Well.. maybe we could add async fn log_async(...) with a default impl to a trait Drain...
But then there's a lot of other stuff to glue with it. There's a whole tracing crate for tokio IIRC. Something to consider.
And all in all, I would like to reiterate @vorner - I would still prefer to have a separate thread to offload the cpu load, and one additional thread for the whole application is not a problem. So I don't know how much value there is in such an endeavor.

I don't think the point should be to avoid creating a thread.
Instead, my concern is that in async code we should optimally not block.
I think it would be appropriate to at least provide a futures module which provides the same functionality as in the blocking version, but using futures where it would otherwise block, for example when sending things on a channel.

AFAIK, slog-async already doesn't block unless you tell it to https://docs.rs/slog-async/2.6.0/slog_async/enum.OverflowStrategy.html

Oh, true.
So slog is currently perfectly suitable for use in async applications.

AFAIK, yes.


AIBOM

Instead of creating a custom JSON file, maybe we could leverage some AI BOM format.

Explore a Software Package Data Exchange (SPDX)

https://spdx.dev/


Add Getting Started section to README

README UPDATE
Please add a Getting started section to the README so folks know how to start with this project.

Added Getting Started section in README file.


create test dataset

Hi, my created 128*128 image has a black margin, and this problem is confused me! I want to ask you about the reasons behind it.

Hi, could you give some examples, e.g. original images and processed images ?


fix relative paths

Purpose
fix relative paths

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


Add possibility for user to create a .svg directly from his own Python node/tree class

It would be nice for the user to use his own node/tree class to draw the .svg file from, without having to adapt to our node class implementation. This implies that his node/tree class respect a few requirements with:

Necessary methods

Method to get the current node left child and right child, or to get a list of the current node children if it is not a binary tree.
...

Optional methods

Method to get the current node value.
Valid __str__() and __repr__() method.
...

We would need to implement a wrapper, or converter transforming his tree implementation to ours and then create the .svg from our known node class. Something that one would use like:
# return a NodeSVG
convert_implementation(
    custom_node_class = UserNodeClass,
    get_left = UserNodeClass.left(),  # or None
    get_right = UserNodeClass.right(),  # or None
    get_children = None,  # or UserNodeClass.children() if the two previous are None
    # ...,
)

Project closed.


TypeError: Converting circular structure to JSON 7.20.4

When running my lint command in CircleCI I get the following error:
PASS   lint  server/middlewares/inject-next.js
internal/child_process.js:778
    const string = JSON.stringify(message) + '\n';
                        ^

TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'Node'
    |     property 'left' -> object with constructor 'Node'
    --- property 'parent' closes the circle
    at JSON.stringify (<anonymous>)
    at process.target._send (internal/child_process.js:778:25)
    at process.target.send (internal/child_process.js:676:19)
    at reportError (/root/code/node_modules/create-jest-runner/node_modules/jest-worker/build/workers/processChild.js:87:11)
    at reportClientError (/root/code/node_modules/create-jest-runner/node_modules/jest-worker/build/workers/processChild.js:71:10)
    at execFunction (/root/code/node_modules/create-jest-runner/node_modules/jest-worker/build/workers/processChild.js:142:5)
    at execHelper (/root/code/node_modules/create-jest-runner/node_modules/jest-worker/build/workers/processChild.js:124:5)
    at execMethod (/root/code/node_modules/create-jest-runner/node_modules/jest-worker/build/workers/processChild.js:128:5)
    at process.messageListener (/root/code/node_modules/create-jest-runner/node_modules/jest-worker/build/workers/processChild.js:46:7)
    at process.emit (events.js:210:5)
internal/child_process.js:778
    const string = JSON.stringify(message) + '\n';

It only occurs in my PR's that are using version 7.20.4, PR's using version 7.20.3 are passing. It's running on yarn version 1.21.1 and on node version v12.14.0. I'm not sure if this is enough info since I'm not sure what to provide but I can provide more info if needed :)

What would really help is the code that it's failing to lint, an error stack trace using eslint on the command line (as opposed to a jest runner), and which eslint parser you're using. Thanks!

@ljharb hey man, totally forgot about this issue. It seems that version 7.20.5 fixed this! Thanks for replying anyway :)


fix react rollup config

Closes #
Fix React components
Changelog
Changed

Fix React components

New beta version is released
<EMAIL_ADDRESS>


Updated fish scss file with new colour scheme.

I added some background/font colours so the participant UI is all the proper shades of blue/green.
Also should we be including the *.css.map files? They don't seem to be in the gitignore file and I'm not sure what the best practice is regarding them.
Closes #160

I usually don't track the generated CSS sourcemap files in git, but some people do. This page does a good job explaining how they can be useful: https://developer.chrome.com/devtools/docs/css-preprocessors

Great thanks for the info Norm, I'll give it a read.
I'm fine tracking it or not, though I think I'd probably prefer not to since it's just a blob of data that'll get re-made if someone changes the stylesheet anyways (if I understand correctly). I just included them this time so we could discuss it.
If we decide not to we should make sure it's in the .gitignore file though.
I'll wait and see if @jorgearanda  has an opinion on it.

Cool, thanks!
The only thing I don't like about not tracking the css files is that it adds a non-npm dependency for deploying fish (ruby and the sass gem), but we've already declared those as dependencies so it should be fine.
I'll just merge this and we can add the css to the gitignore file on a later commit.

@jorgearanda I think we could still track the .css to avoid that. But there's also a .css.map file, just not sure if we need that too


25444 - Shilha - EA match update; Metadata changes for songs 3290, 3291, 9601

Kate matched society 25444 (Shilha) to EA society Cc15 (Drawa) with the following note:
"Could be matched to EA society Cd5 Shluh or Cc15 Drawa. Spatially the society and song lat longs for GJB 25444 Shilha are both closer to the lat long for EA Cc15 Drawa. For now linked to EA Cc15 Drawa. Cd5 Shluh linked to GJB 62298 "Moroccan Tuareg" based on more similar lat/lon."
I looked into each song assigned to Shilha. Three songs (3290, 3291, 9601) seemed too far away from where Shilha are known to be located. The others all seemed reasonable, and tape notes confirmed that they are all by Shilha people. Here are my corrections/suggestions for those three songs:
3290 - Currently assigned location "Middle Atlas" with lat-lon (33.5, -4.5), which is quite far north of where Shilha are supposed to be located. However, nothing in the tape notes indicates that this is where the recording was made. I think it may have been assigned arbitrarily. Tape notes do explicitly say that performers are Shilha. So, I suggest changing lat-lon to society lat-lon and making note in metadata.
3291 - Incorrect song metadata. Current song metadata is for the previous track on the tape, from Imilchil. Correct metadata has location listed as "Saharan on the Algerian border." Based on where Shilha are located, I would place the lat-lon somewhere south of the Anti-Atlas region, near the Algerian border.
9601 - Tape notes say this song is by Arabs, not Shilha. Should reassign to society 62565. Location should probably be Moulay Yacoub, based on other songs grouped with this one on the tape.
After these corrections, I think it makes sense to match 25444 with EA Cd5 Shluh.

One more note: Drawa seems to refer to Berbers dwelling in the Draa valley. The only song here that is located in the Draa valley is song 3297, from Zagora. That song could technically be split off, assigned a newly created Drawa society, and matched to Drawa, since the EA Shluh society has a focus in the Grand Atlas mountains.

Corrections made. Songs 3291 and 3297 reassigned to Drawa.


CustomData  in rasa actions file

Hi All,
I am very new to python and industry , I have created a chatbot to get different type of leaves ,For now I want the front end to send the Employe ID to rasa , which I am using to Make so API calls .
I am running the app using Script as below.

// Or you can replace latest with a specific version

Also please ans is brief .
Thank you

Hello,
Try passing custom data through the initPayLoad. This supports multiple entities too.
Ex:
initPayload: '/get_started{"name":"John"}'
In Domain.yml:
entities:
- name
slots:
name:
type: unfeaturized
initial_value: "human"
Thanks,
Srinath

Hey @Aashaybane Did you get the custom data called back in the API.? I'm like stuck for over a week now. I'm doing the same thing like you i want to send the emp number to rasa from my website and use it to call in API. I want to know how to get it and replace it in the API as well.

Hey @srinathgnath . Can you paste a code snippet? Also can you tell me how do i get this customData value in API body?

Does anyone find solution.


Reducing the Number of StoreExceptions for checking mount path

The disk healthchecker will check if the mount is accessible every 60s, so if a mount is inaccessible, the logs will be crowded with repeated exceptions of disks being inaccessible. With this change, we reduce the number of exceptions. So, we only throw an exception, if the previous state wasn't MOUNT_NOT_ACCESSIBLE.The initial state for diskHealthStatus will be null to trigger that initial Store Exception, if the mount isn't accessible. Build was successful

I'm not super familiar with this code - where do the 180 seconds come from?
It's actually 60 seconds. I had mistaken it for 180 seconds
https://github.com/linkedin/ambry/blob/master/ambry-api/src/main/java/com/github/ambry/config/DiskManagerConfig.java#L55

Codecov Report
Base: 53.49% // Head: 14.48% // Decreases project coverage by -39.01% :warning:

Coverage data is based on head (43d709d) compared to base (0cd86f7).
Patch coverage: 25.00% of modified lines in pull request are covered.

Additional details and impacted files
@@              Coverage Diff              @@
##             master    #2381       +/-   ##
=============================================
- Coverage     53.49%   14.48%   -39.01%
+ Complexity     7154     2333     -4821
=============================================
  Files           770      771        +1
  Lines         59742    59809       +67
  Branches       7316     7333       +17
=============================================
- Hits          31957     8665    -23292
- Misses        24960    50630    +25670
+ Partials       2825      514     -2311

Impacted Files
Coverage Δ

.../main/java/com/github/ambry/store/DiskManager.java
70.74% <25.00%> (-0.60%)
:arrow_down:

.../src/main/java/com/github/ambry/store/Message.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...rc/main/java/com/github/ambry/named/PutResult.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...rc/main/java/com/github/ambry/quota/QuotaMode.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...rc/main/java/com/github/ambry/quota/QuotaName.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...rc/main/java/com/github/ambry/rest/RestMethod.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...c/main/java/com/github/ambry/commons/Notifier.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...c/main/java/com/github/ambry/config/KMSConfig.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...c/main/java/com/github/ambry/config/SSLConfig.java
0.00% <0.00%> (-100.00%)
:arrow_down:

.../main/java/com/github/ambry/named/NamedBlobDb.java
0.00% <0.00%> (-100.00%)
:arrow_down:

... and 503 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Form add interface takes unreasonably long to render/appear ...

... but only on the first time its render/display is requested. Doesn't seem to be due to the request to the server for /add data (needed by OLD backends)

I think this is because renderFieldViews in resource-add-widget.coffee doesn't use a documentFragment. Fix this and the speed-up should be noticeable.

This was fixed by a commit some time ago. The cause, if I remember, was a lot of needless/redundant Backbone-wide event triggers.


ML: House Price Prediction #7861 Resolved

Description 📜
Added ML Project
Fixes #7861

Type of change 📝

[ ] Au#dio (Should be in mp3 format Includes speech clarity, Concise ,Low distortion)
[ ] Vi#deo (Animations, screen-recordings, presentations and regular explanatory films are all possibilties etc)
[X] Documentation (Content Creation in the form of codes or tutorials)
[ ] Other (If you choose other, Please mention changes below)

Domain of Contribution 📊

[ ] Android Dev #(Flutter)
[ ] Android Dev #(Java)
[ ] Android Dev #(Kotlin)
[ ] Backend Dev #(Java)
[ ] Backend Dev #(.NET)
[ ] Backend Dev #(PHP)
[ ] Backend Dev #(Python)
[ ] C/#CPP
[ ] Competitive #Programming
[ ] Cyber #Security
[ ] DS#A
[ ] Data#base
[ ] Datascience with #Python
[ ] Datascience with #R
[ ] Frontend Dev #HTML/CSS/JS
[ ] Frontend Dev #React/Angular/Vue
[ ] Go#lang
[ ] Interview #Prep
[ ] Java_#Domain
[ ] JavaScript_#Domain
[ ] ME#RN
[X] Machine Learning
[ ] Open #Source
[ ] Python_#Domain
[ ] Ru#st
[ ] Statis#tics
[ ] UI/#UX

Checklist ✅

[x] I follow Contributing Guidelines & Code of conduct of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I'm GWOC'21 contributor

As majority of projects submitted have a common set of algorithms used, I have used various types of regression algorithms to make this project a little different.

Required Changes

Put all the .csv and .dat files inside the Dataset folder, Don't create another folder named as Data inside the Dataset folder. Push the files directly inside the Dataset folder
In the conclusion section of Model/README.md file, provide the accuracy scores of all the models you've created and then compare them all. After that put the conclusion, which model is the better one with the accuracy score.
Rename the requirements.txt.txt file to requirements.txt.

Please do the needful @VidhiBhatt01

@abhisheks008 I have made the required changes. Please Review them.

@abhisheks008 shall I create a new PR for updating the readme of project folder??

Which one? @VidhiBhatt01

Which one? @VidhiBhatt01

The one in which list of all projects and their respective links are there.

Don't worry we'll do it 😄


Are there any unit tests available

I package this project in Fedora Linux and I prefer to run unit tests during the RPM build to ensure everything has built properly and will work with the modules installed in Fedora. However, I cannot find any unit tests in this repository.
Are the tests held somewhere else or does this module not have any tests? Thanks!

This module contains only automatically generated stubs (the_pb2.py files) by protoc from corresponding .proto files. The correctness of the automatically generated code is supposed to be tested by the corresponding tests in the generator (protoc), not by generating/writing test for the generated code. So yes, this module does not have tests by design.


Example in annotation

Hi! Now there is a functional of declaring an example for a swager through the creation of an object. But it adds a lot of template code to the routes.
Can we add our own @Example annotation above the DTO fields? Or support swagger @Content annotation, but I'm not sure if the json-schema generator supports it. It seems to me that it looks more appropriate there and doesn't overloads routes.
data class Person(
  @Example("Jack")
  val name: String,
)

Hi,   currently, i am just passing a generic object (Any) to swagger, so im not 100% sure (yet) what this supports and how flexible this is. Also, i am intentiannly trying to keep the dsl/library as annotation free as possible/necessary.
I'll check what is possible and what can be done (a @Example swagger-annotation already seems to exist, so maybe not too much has to be changed).

So, after some research, i think this feature is pretty complex and out of scope for this library. As far as i know, I'd either have to write a java-class-to-swagger-example-conversion-system-thing from scratch, which would not be a trivial task with many edge-cases to cover; or use another third-part library (which i haven't really found yet).
Regarding the problem of overloading the routes, the (in my opinion) easiest and clean way would be to offload the examples into another class/file.
Maybe i'll have another look at this in the future - maybe as an extension or addon.
Thanks for the suggestion tough. If you see another option or some way to solve this, please let me know.

That sounds similar to next project for scala (https://github.com/swagger-akka-http/swagger-scala-module):
data class Person(
  @Schema(example = "Jack")
  val name: String,
)

using swagger annotations
https://docs.swagger.io/swagger-core/v2.2.0/apidocs/io/swagger/v3/oas/annotations/media/Schema.html#example--

i think one (simpler option than the one i had in mind) is to have one annotation with the example object only on the top-level class. That way, no reflection-magic is required and the example-definitions would be with the class, not in the routing.

After some experimentation, i managed to get it to work with the jsonschema-generator. In its current form, it might be a bit limited and with some edge-cases not working-correctly, but i think as a first step, it could work.
I am planning to rework how schhemas are handled in general, which would allow for more refinement or options/features of this type in the future.
The snapshot can be tested with
 implementation 'com.github.SMILEY4:ktor-swagger-ui:feature~example-annotation-SNAPSHOT'
An example can be found here: ExampleAnnotationExample.kt
I would like to hear your feedback and thoughts on this.

The closest I can find in swagger-core is @ExampleObject
Imo it is important to make design decision here.
One of the ways is to natively support swagger-core annotations. I would prefer that way to avoid support annotations and keep DSL clean and separate.  It might be a separate module or even compile dependency bridge (user should provide swagger-core as a dependency to let it work).
Another way (as in SMILEY4's example) is to have own annotations (ktorswaggerui.annotations package might be a better domain separation). It will require more efforts to support, but fully feature request driven solution.
It might be ok to support both as well with ktorswaggerui annotations priority.
Regarding Example(s) annotation it will be great to cover multiple requests/responses examples with example name.

Another annotation i found is @Schema which i think is closer to what we want/need here. I would propose to support examples via @Schema (maybe in addition to some other possible parameters of this annotation) and the custom and more lightweight/minimal @Example annotation with higher priority.
This would then cover the basic need regarding "inline" examples and could then be extended in the future (via more custom annotation or support for more of the core swagger-annotations).


how to sum of data in table in react js

Describe the bug

Your minimal, reproducible example
vscode
Steps to reproduce
i am unable to resolve this problem
Expected behavior
i am unable to resolve this problem
How often does this bug happen?
Only once
Screenshots or Videos
No response
Platform
linux
react-table version
18.2.0
TypeScript version
4.9.5
Additional context
No response
Terms & Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

I assume you have the data since you have shown it in the table. Calculate the sum of the amount using the data and show it in the ui. You can have a look at this
{
  accessorKey: 'accessor_key',
  footer: ({ table }) => table.getFilteredRowModel().rows.reduce((total, row) => total + row.getValue('accessor_key'), 0),
}```

@talatkuyuk how do we use the built in aggregatorSum?

@talatkuyuk how do we use the built in aggregatorSum?

I've got this same question. There's mention of several built-in functions.


Insufficient balance condition should be for sell asset only

fixed and now insufficient balance condition is only for sell asset
https://github.com/soroswap/frontend/assets/56497105/ae77ef29-5aef-403c-866e-08536484d055


gNMI-1.9: Fuzz-test configuration application

This test has been descoped.  A new test for gRIBI fuzz testing will be introduced


Authentication Framework+Google

Choose an authentication system for the backend to manage the logged users. The current options for this system are:

Auth0
OAuth
Default one

The chosen system must be consensual and chosen according to requirements. Other systems can be proposed also if any of this fits in NexONG.
After the decision of the authentication system, it should be implemented in the app. Note that if the chosen system lacks social account support, the integration should be done manually.
Finally, it is required to integrate at least the Google Register and Sign-in method for the project.

Story Points: 13
See the discussion in Backend S2
Powered by Parabol


execv() AND vfork()

  Description: There is a problem when vfork() calls execv() (or execl()) to
               start a new application:  When the parent thread calls vfork()
               it receives and gets the pid of the vforked task, and *not*
               the pid of the desired execv'ed application.

               The same tasking arrangement is used by the standard function
               posix_spawn().  However, posix_spawn uses the non-standard, internal
               NuttX interface task_reparent() to replace the child's parent task
               with the caller of posix_spawn().  That cannot be done with vfork()
               because we don't know what vfork() is going to do.

               Any solution to this is either very difficult or impossible without
               an MMU.
  Status:      Open
  Priority:    Low (it might as well be low since it isn't going to be fixed).

Now Implement：vforked process create a new task(https://github.com/apache/nuttx/blob/master/binfmt/binfmt_execmodule.c#L271) and exits(https://github.com/apache/nuttx/blob/master/sched/task/task_execve.c#L135)
Can wo and a new exec_module function that run cmd in current process? Looks like It doesn't matter with MMU.

let's try it


Is it possible to modify 5 second undo cooldown?

Thank you for the library.
If I try to to swipe multiple entries without waiting for the 5 second undo "cooldown", it only deletes the first entry that was swiped. Is there a better  way to handle this other than reducing the time?

@pcodemang I've just checked again, it should delete all items that have been swiped away (say e.g. the first three items all at once). Can you specify the system you are testing this on.
The swipe delay can't be customized currently, you can track progress in issue #12.

@TR4Android Yeah, I double checked the sample and realized I must have messed up somewhere.  Perhaps I am going about the wrong way of deleting items?
https://gist.github.com/pcodemang/a8a96a5c5bb7713dfb6bd1e22c80d97f
Here is the specific method I use for deleting items.
ShotsModel is a SQL table.
`    public void deleteItems (int position, int direction){
try{
        final ShotsModel shot = shots.remove(position);
        //shots.remove(position);

        shot.delete();
        notifyItemRemoved(position);
        notifyDataSetChanged();
    } catch (IndexOutOfBoundsException e){
        notifyDataSetChanged();
        e.printStackTrace();
    }
    Toast toast = Toast.makeText(context, "Deleted item at position " + position, Toast.LENGTH_SHORT);
    toast.show();

}`

OK, I believe I found a partial solution. I commented out  //shots.remove(position); When I put it back in, I can now multi-delete entries, although it only works if the user takes a second between each swipe. AT this point, I believe the problem is coming from the way I am calling my database in the fragment that the adapter is called in

You might want to try something similiar to this (no guarantees though):
public void deleteItems (int position, int direction) {
    final ShotsModel shot = shots.remove(position);
    notifyItemRemoved(position);
    // delete the shot from the database
    shot.delete();
}

There's no need to call notifyDataSetChanged if you're using notifyItemRemoved, in fact it will make the adapter loose the knowledge about any pending swipes (i.e. items that are in countdown) as it cannot keep track of the dataset.

@TR4Android The reason I keep notifyDataSetChangedis that  this error appears as I attempt to delete items without it.
09-27 15:48:35.764 16191-16191/com.slifers.dailyfreethrowtracker E/AndroidRuntime: FATAL EXCEPTION: main                                                                                Process: com.slifers.dailyfreethrowtracker, PID: 16191                                                                                java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{a7ed489 position=2 id=-1, oldPos=3, pLpos:3 scrap [attachedScrap] tmpDetached no parent}                                                                                at android.support.v7.widget.RecyclerView$Recycler.validateViewHolderForOffsetPosition(RecyclerView.java:4858)                                                                                at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4989)                                                                                at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4970)                                                                                at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2029)                                                                                at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1414)                                                                                at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1377)                                                                                at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:578)                                                                                at android.support.v7.widget.RecyclerView.dispatchLayoutStep1(RecyclerView.java:3266)                                                                                at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3122)                                                                                at android.support.v7.widget.RecyclerView.consumePendingUpdateOperations(RecyclerView.java:1549)                                                                                at android.support.v7.widget.RecyclerView$1.run(RecyclerView.java:305)                                                                                at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)                                                                                at android.view.Choreographer.doCallbacks(Choreographer.java:580)                                                                                at android.view.Choreographer.doFrame(Choreographer.java:549)                                                                                at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)                                                                                at android.os.Handler.handleCallback(Handler.java:739)                                                                                at android.os.Handler.dispatchMessage(Handler.java:95)                                                                                at android.os.Looper.loop(Looper.java:135)                                                                                at android.app.ActivityThread.main(ActivityThread.java:5254)                                                                                at java.lang.reflect.Method.invoke(Native Method)                                                                                at java.lang.reflect.Method.invoke(Method.java:372)                                                                                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)                                                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

Is there any solution please ?


Split.dictionary - allow to work with JSON

Currently only works with a python dictionary.

This is actually already true. The failure was due to genuine dictionary being saved as a text representation like {'key': 'value'}


All coverpoints in the category: Exceptions/Interrupts/Debug

[x] Exception from instruction fetch error (covered by the FetchError instruction category).

[x] Exception from instruction PMP violation.

[x] Exception from illegal instruction (covered by the illegal instruction categories).

[x] Exception from memory fetch error.

[x] Exception from memory access PMP violation.

[x] Unaligned access cases (both accesses saw error, first or second only saw error, or neither saw error) for both kinds of memory exceptions.

[x] Interrupt raised/taken.

[x] Interrupt raised/taken for each available interrupt line. For cross coverage, the precise interrupt that’s raised/taken is not relevant and it only needs to be grouped by NMI vs non-NMI.

[x] Interrupt raised/taken the first cycle an instruction is in ID/EX or some other cycle the instruction is in ID/EX.

[ ] External debug request.

[ ] Instruction executed when debug single step enabled.

[ ] Instruction matches hardware trigger point.

[ ] Instruction matching trigger point causes exception

[x] Ibex operating in debug mode.

[x] Debug and Interrupt whilst sleeping with WFI

[x] Cover with global interrupts enabled and disabled

[x] Cover with specific interrupt enabled and disabled (Should exit sleep when interrupt is enabled but global interrupts set to disabled, should continue sleeping when both are disabled).

[x] Debug and interrupt occurring whilst entering WFI

[x] Covering period between WFI entering ID/EX stage and going into sleep

[x] Double fault

Will be resolved with #1670


Wizard step error state

Select one ...  (check one with "x")
[ ] bug
[ ] feature request
[x] enhancement

Description
Enhancement to the wizard component to add an error state to the wizard step states.
Wizard step states:

Inactive
Active
Complete
Error (new state addition)

Documentation
Wizard step state that displays when an error has occurred once the wizard is saved/submitted/published. This addresses two primary scenarios:

Once wizard steps are complete, on save/submit/publish the information is sent to a server/service to be validated and incorrect input(s) need to be reported back to the corresponding step(s).
When selections in a later step in the wizard invalidate an entry in earlier steps.

The error state utilizes a color change in the progress indicator, an alert icon, and subtle border between other steps to draw attention to the error status. See below for specs:
Error reported:

Error state active:

Description
Enhancement to the wizard component to add an error state to the wizard step states.
Wizard step states:

Inactive

Active

Complete

Error(new state addition)

Error Reported
When an error occurs, replace the step number with the error icon to ensure consistency with the stepper design. Change the progress indicator to red and add a one-px gap above and below the red bar for accessibility.

Error State Active
Indicate clearly why the error occurs on the error step.

Error Resolved
The progress indicator changed back to green once all errors are resolved.

Hey,
Any insight into how we could accomplish this while it is still being developed? I see @coryrylan updated the docs but not sure how we can change the page number since it is not exposed in the template...

@Only1MrAnderson
The current page of the wizard can be set by using wizard.goTo() or by setting the currentPage property in the navService.

@mathisscott thanks for the reply.  I understand that, but how does one modify the UI as it defaults to the number of the page? I am referring to this image here. There is nothing in the documentation about overriding that.

The image with the red icon next to Very beautiful images is the mockup / design that needs to be implemented. I know it looks like the real thing but I believe it is an image from Sketch.
Does using form validation help the wizard user address errors and issues before moving on to the next step? Even though this hasn't yet been implemented yet?
It does sound like this feature is important the app. Would you be interested in contributing here?

@hippee-lee I agree it is very beautiful. I would be interested in contributing. Let me give contributing.md a quick read 👍

Is there a timeline for implementation.

This feature is still in the backlog queue.

Are there any plans to remove this from the official documentation since it's not implemented yet?  A little text giving a warning to readers would even suffice.  Unfortunately I spent time refactoring some of my code base to implement this feature but when the time came, found out that it was not even a feature in Clarity although it has a fairly large section under the wizard documentation.

I'm working on this issue, can you assign me please?


🐛 [Bug report]: Chaning the firebase version to 9.9.0

Descrcibe the bug?
facing issue with firebase version and error occurs thus changing the version
Steps to reproduce the bug?
as above
Expected behavior
as above
Desktop (Please provide your system information)
Ubuntu
Mobile (Please provide your device information)
No response
Screenshot / Screenshare
No response
Relevant log output
No response
Code of Conduct

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

@atapas


tf.random.poisson hangs on nan input

Running on colab.research.google.com (v2.8.0-0-g3f878cff5b6 at time of writing).
Looking at this code.
import tensorflow as tf
import math

print(tf.version.GIT_VERSION, tf.version.VERSION)

for lam in [3.2,-3.2,math.inf,-math.inf,math.nan]:
  print(lam,tf.random.poisson((1,),tf.convert_to_tensor(lam).numpy()))

Describe the current behavior
tf.random.poisson currently seems to handle nonsensical input as follows

Negative values --> return 0
+infinite values --> return infinity
-infinite values --> return 0
nan values --> freeze program completely (presumably running some rejection sampling algorithm forever??)

All of these seem okay except the last one.
Describe the expected behavior
I have no strong opinions here.  I suppose my intuition would be

Negative values --> return nan
+infinite values --> return infinity
-infinite values --> return nan
nan values --> return nan

But there may be good reasons for other behavior.
At minimum, I suppose something should be added to the documentation indicating what expected behavior is (or that behavior is undefined in some cases).

@chunduriv ,
I was able to reproduce the issue in tf v2.8, v2.7 and nightly.Please find the gist of it here.

This problem remains on tensorflow 2.15.0. Please check the code below.
input = tf.constant(-1, dtype='int64')
p = tf.constant(np.nan, dtype='float64')

out = tf.random.poisson(shape=input.shape, lam=p, dtype=tf.float32)  # Program is frozen here.

Hi,
Thank you for opening this issue. Since this issue has been open for a long time, the code/debug information for this issue may not be relevant with the current state of the code base.
The Tensorflow team is constantly improving the framework by fixing bugs and adding new features. We suggest you try the latest TensorFlow version with the latest compatible hardware configuration which could potentially resolve the issue. If you are still facing the issue, please create a new GitHub issue with your latest findings, with all the debugging information which could help us investigate.
Please follow the release notes to stay up to date with the latest developments which are happening in the Tensorflow space.


RealmMapView requires a mechanism to filter results

RealmMapView would be even more awesome if it was possible to provide a predicate to filter the results.
E.g. I might only want to show those pins on a map for a specified object.type

Isn't it?
RLMResults *r = [Dog objectsWhere:@"age > 8"];
r = [r objectsWhere:@"name contains 'rex'"];

That works for Realm, but the request is for RealmMapView as described in this tutorial.
Currently there is no mechanism to filter the query that is used to populate the map.

@xcodewarrier thanks for bringing this up, and it definitely should have this feature. I just added it via a property on ABFRealmMapView/RealmMapView called basePredicate. If you set an NSPredicate for the property in which it filters the objects the map is searching on, it will combine the predicate with generated bounding box location predicate, so that the map only displays results that match your filter in the map area.


Linear solvers for Ipopt

@PierreMartinon @gergaud @ocots Many thanks @amontoison for your input on this. To summarise:

[ ] we should add to our direct solve an option allowing to change the linear solver used by Ipopt: the default is mumps, but there (at least) the other options below: ma27 and ma57 from HSL[^1], and spral from STFC/RAL:

stats = ipopt(nlp, linear_solver="mumps")
stats = ipopt(nlp, linear_solver="spral")

using HSL_jll
stats = ipopt(nlp, linear_solver="ma27")
stats = ipopt(nlp, linear_solver="ma57")

[ ] we should default to spral instead of mumps in our code, provided that Julia $\geq$ 1.9 is used and that the user defined environnement variables below are set:

export OMP_CANCELLATION=TRUE
export OMP_PROC_BIND=TRUE

[^1]: free academic license available on request
Extra
Users on Intel processors (and Julia $\geq$ 1.9 that has libblastrampoline) can change their OpenBLAS backend to the Intel one:
using MKL  # Replace OpenBLAS by Intel MKL

To display the current backend, do
import LinearAlgebra
LinearAlgebra.BLAS.lbt_get_config()

See also
Performance tips

Agreed. Would be interesting to check with some benchmarking.

@PierreMartinon Do you use the function ipopt only in solve.jl?
I can open a PR to easily support HSL solvers.

@amontoison I think we use Ipopt only here

Done in https://github.com/control-toolbox/CTDirect.jl/pull/113 @jbcaillau 😉

@ocots @0Yassine0 @amontoison guys, I need a serious update, here:

the initial post above goes back to Sep. 2023: are the information still up to date?
is it really as simple as using HSL? what about importing HSL_jll? licensing...? not clear to me
what about using spral instead of mumps? (I had noticed Ipopt was compiled with it for >= 1.9)

@ocots @0Yassine0 @amontoison guys, I need a serious update, here:

the initial post above goes back to Sep. 2023: are the information still up to date?

Yes, the information are still correct.
For the BLAS / LAPACK backends, I recently updated the README of Ipopt to expiain how to use other backends (like BLIS) and that I recommend a sequential BLAS / LAPACK with MA86/MA97.

after Support HSL solvers #113 is it really as simple as using HSL? what about importing HSL_jll licensing...? not clear to me

HSL_jll.jl has two versions, the official ones that is available of the website of RAL and a dummy one that contains one C routine and that available in the Julia registry.
Because we have the have the dummy version, HSL_jll.jl is an official Julia package and we use it as any depenendency of a Julia package.
Thanks to the routine available in the dummy version, we can determine if the dummy or official HSL_jll.jl is installed. The C routine is LIBHSL_isfunctional and returns a boolean.
In HSL.jl, I did a Julia wrapper to easily check that at the Julia level:
https://github.com/JuliaSmoothOptimizers/HSL.jl/blob/main/src/C/libhsl.jl#L1
and also take care of loading a BLAS / LAPACK backend for the user if he didn't loaded one before (like MKL or AppleAccelerate):
https://github.com/JuliaSmoothOptimizers/HSL.jl/blob/main/src/HSL.jl#L16
Conclusion: If the user has installed the official HSL_jll.jl, we automatically use MA57 here otherwise we use MUMPS as a fallback but everything is transparent for the user.

what about using spral instead of mumps? (I had noticed Ipopt was compiled with it for >= 1.9)

SPRAL requires two environnement variables related to OpenMP. Becasue CTDirect.jl requires at least Julia 1.9, I don't check the Julia version but I ensure that the two environnement variables are well defined if the user wants to use it.
I think MUMPS is more efficient than SPRAL so I don't dispatch to it automatically but we need some benchmarks to verify that.
Note that I compiled MUMPS 5.7.2 yesterday with Yggdrasil. I wait a new release of SPRAL and I will recompile Ipopt with the updated linear solvers.

🙏🏽 @amontoison now I get it. Actually, you probably already the dummy routine trick, but did not remembered it so was not able to figure where licensing was coming into play. having a try (before forgetting it again 🤞🏽)

@ocots @PierreMartinon @0Yassine0 As discussed now with @amontoison 🙏🏽: for sparse problems, typically for constraints resulting from discretising $\dot{x} = f(x,u)$ according to sth like
x_i+1 = x_i + h_i / 2 * ( f(x_i, u_i) + f(x_i+1, u_i+1) )

one has very sparse Hessians and @amontoison suggests that ma27 should perform better than ma57. TBT.

@0Yassine0 @ocots I installed HSL lib on a linux server, dev-ed HSL_jll.jl on the corresponding path but still git the following error (falling back to MUMPS, then):

Can you please share how you did the install end to end?

@0Yassine0 @ocots I installed HSL lib on a linux server, dev-ed HSL_jll.jl on the corresponding path but still git the following error (falling back to MUMPS, then):
Can you please share how you did the install end to end?

I didn't use HSLpackage from @JuliaSmoothOptimizers for the matter.
The installation steps are explained here in details.
To use it with OptimalControl:
import HSL_jll
sol = OptimalControl.solve(Model,linear_solver="maXX" , hsllib=HSL_jll.libhsl_path)

@0Yassine0 @ocots I installed HSL lib on a linux server, dev-ed HSL_jll.jl on the corresponding path but still git the following error (falling back to MUMPS, then):
Can you please share how you did the install end to end?

@jbcaillau You have an old version HSL_jll.jl, please download the last one.
We renamed JULIAHSL into LIBHSL and in your version you only have the routine JULIAHSL_isfunctional.
You can directly download the new version of HSL_jll if you go to my order on the HSL website.

@0Yassine0 @ocots I installed HSL lib on a linux server, dev-ed HSL_jll.jl on the corresponding path but still git the following error (falling back to MUMPS, then):
Can you please share how you did the install end to end?

@jbcaillau You have an old version of HSL_jll.jl (the first one!!), please download the last one. We renamed JULIAHSL into LIBHSL and in your version you only have the routine JULIAHSL_isfunctional. You can directly download the new version of HSL_jll if you go to my order on the HSL website.

@amontoison outdated me 🙃
MKL + HSL set 🙏🏽

Started a basic benchmarking script. SPRAL does seems slower than MUMPS
julia> include("test/benchmark.jl")
Profile: linear_solver=mumps

Settings: tol=1e-08 grid_size=100 precompile=true

Precompilation step
goddard param

Benchmark step
goddard              completed in   1.81 s
param                completed in   2.74 s

Total time (s):   4.56

julia> include("test/benchmark.jl")
Profile: linear_solver=spral

Settings: tol=1e-08 grid_size=100 precompile=true

Precompilation step
goddard param

Benchmark step
goddard              completed in   9.69 s
param                completed in  12.20 s

Total time (s):  21.90

@PierreMartinon nice. what about ma57 and ma27 (the last might be better for our problems according to @amontoison)

@PierreMartinon I suggest to

[ ] go back to MUMPS as default (same as Ipopt default), even if HSL is installed; for instance, our Goddard tuto does not work properly (small change needed but still...) with ma57
[ ] AFAIK passing symbols (:mumps...) instead of strings is more julianic

I am ok with symbols. We can provide with the description.

@jbcaillau What is the issue with MA57?
Is it an error in the linear solver?

@amontoison just a slightly deprecated / less precise convergence for this particular case that is not compatible with some further solution analysis.

Did you tune the tolerance of the optimization solver?
I don't think that the issue is the linear solver.

only difference between the two runs = linear solver. same params otherwise (tols, etc.)
as we cannot be sure that a user will have HSL installed, it is safer to ensure that the default (= MUMPS) for Ipopt gives the requested precision for post computation. minor point, though.

I am ok with symbols. We can provide with the description.
ok for symbols as well (should we set this as a general rule ?)

As for the default choice, this is a 1-line change here, so pretty straightforward
https://github.com/control-toolbox/CTDirect.jl/blob/a9ae483a57382d44dba0612af914d78275fd6d7a/src/CTDirect.jl#L21


slides: Add center-image class

Adds center-image section class which horizontally centers images in the slide. This can be easily used in conjunction with other classes as long as they don't affect img tags as well.
Note: I realize this class name has a different styling to twoCols. Canonically, CSS classes should be in this hyphenated style, but not sure what the preference is here. I can easily change this to centerImage or change twoCols to two-cols, whichever is preferred.

I'll change it to two-cols. Thanks for letting me know!


exclude non-64-bit-modules from 64 bit builds

This is a temporary fix to make 64-bit builds usable "out of the box" without commenting out anything in sol.cfg
closes #243
closes #353
This is not a replacement for the missing modules. It just prevents CMAKE from packaging non-working 32-bit DLLs with OOx64

Let me know when this is ready for merge.


Endpoint crash on task launch.

blind with syntax, sry.

Mode should be either 'convert' or 'cdc'