2 Issues with the WebUI

First Issue I have is in the Warns I get this message:
Uh oh, we've found an error.
Unknown column 'expires' in 'field list'
And the 2nd Issue is the search bar doesnt work also gives me the error 200 back, can't find the desired player, the rest works fine.
This is my homepage:
http://<IP_ADDRESS>/banmanager/index.php
Just installed everything today
Thanks for your help,

What version of BanManager are you running? It must be somewhat old if you're missing the expires column for warnings.

@confuser Thanks for your great answer, after you told me to check my Version, I just reinstalled the last one on my server and puff everything works fine now :) Thanks


fix(a11y): improve the second part of the donation modal

Checklist:

[x] I have read and followed the contribution guidelines.
[x] I have read and followed the how to open a pull request guide.
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

This PR updates the donation modal to:

Allow closing the modal by pressing Escape when the animation is complete
Automatically focus on the donate button when the second part appears

There are two buttons on the modal: "Become a Supporter" and "Ask me later". The a11y recommendation is to have keyboard focus placed on a default focusable element in the modal. Generally the initial focus is set on the first focusable element, but we're free to decide what should receive the focus. I chose the "Become a Supporter" button because it's the first focusable element, but I'm open to suggestions here.
Ref: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/dialog_role#required_javascript_features

MDN is a good accessibility reference, but it is not authoritative. In this case, I don't think MDN is giving you all of the options for managing focus in a modal dialog. You don't have to place the focus on an element in the dialog, you can place it on the dialog itself. Oh, actually, I just checked, and the MDN page for the dialog element does actually suggest this.
I'm apparently not smart enough to trigger these modals so I can't give you my opinion on where focus should be placed. I just wanted to let you know that it doesn't have to be on either of these buttons.

Thanks for the pr. I might need to AB test this to make sure it does not have any unintended side effects.
But the active state of the donation button came to my attention. It seems like we should either completely remove these or make them more subtle.
I am leaning towards completey removing them similar to the paypal button. What do you think?

The paypal should look similar to patreon as you mentioned. Some of that styles are coming through paypal's iframe.
Feel free to keep the changes introduced in this pr behind a11y-donation-modal flag. I will monitor it for a while to see if it affects donation at all.

Getting the following error for the variation with the new feature:


vulnfeeds: repo mapping not getting the right commits

Looking at https://github.com/google/osv.dev/blob/bf67aafde6fa58618e02a016a505b4a8116f6ca2/vulnfeeds/git/repository_test.go#L78:
and e.g.
				// https://github.com/aide/aide
				{Tag: "v0.17.4", Commit: "49e8faad5e2ed9ab2de54f6858ee223f918abac4"},
				{Tag: "v0.18", Commit: "8ed48ad5ba180cd3ce30a3c41d42bad3779d9f26"},
				{Tag: "v0.18.1", Commit: "5ee3529c3014b4238231885b1403faa3e1affb5c"},

It looks like we're not actually resolving the right commits
for e.g. "v0.18.1", the commit is not "5ee3529c3014b4238231885b1403faa3e1affb5c".
"5ee3529c3014b4238231885b1403faa3e1affb5c" is instead the SHA1 id of the tag itself. We need instead the dereferenced commit SHA from this.
e.g. if I do
$ git show 5ee3529c3014b4238231885b1403faa3e1affb5c

That will give:
commit de5bb24b9b24df7598161a1ce19dc2ce15afa9c6 (tag: v0.18.1)

We can also get this commit SHA from git ls-remote https://github.com/aide/aide:
5ee3529c3014b4238231885b1403faa3e1affb5c        refs/tags/v0.18.1
de5bb24b9b24df7598161a1ce19dc2ce15afa9c6        refs/tags/v0.18.1^{}
d5499cbd3bf4ce6183f5ae3ce18e6e153e48ac9b        refs/tags/v0.18.2
3d5b18b9e5e1c51533ac01d8acd3499b2f9fcc2e        refs/tags/v0.18.2^{}

By picking the hash with the "^{}" after the "refs/tags/*".

Ah, I think this is the good old lightweight versus annotated tag problem. I'll look into it further.

I spent a bit of time digging around in the entrails of the go-git code, and it doesn't look like remote reference listing code currently supports peeled tags, based on my understanding of things (https://github.com/go-git/go-git/issues/749). I'll wait a few days to see if I get a response, and then I might need to do something icky like shelling out to git ls-remote instead :-(


Plugin crashes in Flutter Web last beta when resizing window of browser. (Or for example when open mobile keyboard)

Error: PlatformException(unregistered_view_type, A HtmlElementView widget is trying to create a platform view with an unregistered type: <osm_web_plugin_6>., If you are the author of the PlatformView, make sure registerViewFactory is invoked., null)
The number in this line "osm_web_plugin_6" is always different.
The map in not on a main screen of my app. When I am going to map page it is work fine. But when I start  to resize window in broser or screen keyboard is appeared it crashes to white screen.
And something that possible can help you to fix. When I'm already on map page. When it crashes and i press reload in browser. It will reload correctly and after that it will be work correctly all the time even if you return to main page and then return again to map.
All markers and additional features I've been disabled for tests.
The problem has appeared in last few versions of flutter beta. (don't know which one exactly, or may be one of your dependencies is upgraded). Before that it works correctly all the way and i didn't change nothing in this part of my app.
Plugin version: 0.60.4
Flutter 3.15.0-15.2.pre • channel beta • https://github.com/flutter/flutter.git
Framework • revision 0d074ced6c (2 days ago) • 2023-09-21 10:24:15 -0700
Engine • revision 453411bcf3
Tools • Dart 3.2.0 (build 3.2.0-134.1.beta) • DevTools 2.27.0

that issue is related to flutter
in general the platformview shouldnt be reloaded when resize the screen
but i will check it and see what i can do about it

that issue is related to flutter in general the platformview shouldnt be reloaded when resize the screen but i will check it and see what i can do about it

thanks. I've tried to downgrade to flutter stable. But it didn't help. Seems that one of the last of dependencies upgrade cause this issue. Because early I could easy resize and open keyboard without this problem.

I will investigate the issue why thats happen i will publish hotfix for it

I found the issue , I will publish hotfix for it today

0.60.5 doesn't work for me. The same error in desktop web when resizing and on mobile when keyboard is appeared.

what do you mean by desktop web ? not directly on the browser ?

on the browser on laptop and on mobile browser also

can you provide me sample from your code ?

seems that you have fixed this problem already.  I had some some problems with MapController via Provider also connected to this problem. And when I've refactored this part your fix helps me. Thanks.
P.S. any plans to release new version with major version updates in dependencies?

soon Im facing wierd issue in the web where the hot reload causing restart of the map
which new issue I didnt see it before thats why I'm delaying the new version


Whats the best way to get files out of vDSM?

Hey, thanks for this awesome project!
Im mainly using vDSM within a real DSM to run download station. Would it be possible to share a folder from DSM with the vDSM so downloaded files can be accessed from the DSM?

Thanks! wanted to double check that it was not possible to share a docker volume.


Read video files and transmit use webrtc

I want to ask to as question,how to use Native api to read and transmit video files,
I have been searching for a long time and have not found relevant demors or documents
Have you been exposed to this part of the api can you help provide some suggestions and directions,
Thank You

I don't have knowledge about transmit videos using native API. I will use electron to avoid implement native video transfer in such cases. The code in this project may help you. They only use Japanese and do not provide support, so you need to proceed on your own.

Thank you for you help and support


Ollie: Watch pubg81173(?:@gmail.com)?

Ollie requests the watch of the watch_keyword pubg81173(?:@gmail\.com)?. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

pubg81173(?:@gmail\.com)? has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Spevacus in Charcoal HQ


Hovers have horizontal scrollbar when not needed

This just started very recently.

@eamodio I cannot reproduce. I tried with GitLens v11.0.6 using the insiders:
Version: 1.52.0-insider
Commit: bf21395291146c014220eb70b54fdfc0a15956b5
Date: 2020-12-01T09:20:33.868Z
Electron: 9.3.5
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: <IP_ADDRESS>-electron.0
OS: Darwin x64 19.6.0

Yeah it went away for me in yesterday's insiders. Maybe it went away when we switched back to Electron 9?

Not exactly sure but I only saw it very recently. And it was gone again a day or two ago.

OK, given we cannot reproduce right now, let's close for now and we can reopen if we see it again when we bring back Electron 11.

It's back in the current insiders.


Add Auth server

Purpose

Separate authentication and authorization logic from docker auth extension

Goals

Implement an HTTP server which is having two endpoints for cater authentication and authorization

Approach

User stories

Release note

Documentation

Training

Certification

Marketing

Automation tests

Unit tests

Integration tests

Security checks

Followed secure coding standards in http://wso2.com/technical-reports/wso2-secure-engineering-guidelines? yes
Ran FindSecurityBugs plugin and verified report? yes
Confirmed that this PR doesn't commit any keys, passwords, tokens, usernames, or other secrets? yes

Samples

Related PRs

Migrations (if applicable)

Test environment

Go Lang 1.12.5, cesanta/docker_auth:1.4.0

Learning

Codecov Report

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

@@           Coverage Diff           @@
##           master      #85   +/-   ##
=======================================
  Coverage   16.41%   16.41%
=======================================
  Files          49       49
  Lines        1773     1773
  Branches      336      336
=======================================
  Hits          291      291
  Misses       1335     1335
  Partials      147      147

Continue to review full report at Codecov.

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


require_directory doesn't work like expected

Hey guys,
I have following problem with sprockets: http://stackoverflow.com/questions/7312653/sprockets-require-directory-problem

Got to the same issue : My use case is that I'm going to configure a load_path at runtime (depending on the plugin I'm using), so in the main file I need to configure "require_directory stores", and stores js files will be added depending on the load_path I have configured.
Please think about reopening and fixing this issue.

I agree, this should not be only relative for require_directory, please consider reopening.

kj


Add TiDB Serverless Driver

Hi, I'd like to add a 3rd party dialect called TiDB Serverless Driver and add it to the official 3rd party dialects list https://kysely.dev/docs/dialects#3rd-party-dialects
Is there some necessary process to get this done?

Just create a PR and we'll merge it.

Thanks! I will develop the plugin then open a pr


Add reason testing library documentation

It was suggested by Kent at https://github.com/wyze/bs-dom-testing-library/issues/5 that I move over some of the documentation to the website here. I've done more than just the above since I maintain the bindings around (dom|react)-testing-library for Reason, as well as jest-dom bindings.
Definitely provide feedback on the structure as I wasn't sure the best way to lay it out.
Also, I ran yarn format-docs and looks like there were some changes unrelated to what I made. I'll note those below.

Do you also want to add a link + logon the homepage?

@alexkrolick Changes have been pushed!

Looks good to me!


added count up animation

added react count up animation to the creators page
video:
https://drive.google.com/file/d/1BEKtvUXLzjdigSrOhQtRc5rTBS2Ig-rm/view?usp=sharing
also i resolved an error due to which the website was not loading

you check this error on vercel the blank page is shown  https://decentrade.vercel.app/
so can you add level2 as i did resolved two things  @panwar8279 😁🙃

added react count up animation to the creators page video:
https://drive.google.com/file/d/1BEKtvUXLzjdigSrOhQtRc5rTBS2Ig-rm/view?usp=sharing
also i resolved an error due to which the website was not loading

you check this error on vercel the blank page is shown https://decentrade.vercel.app/
so can you add level2 as i did resolved two things @panwar8279

can you please review this PR @panwar8279

Gentle Reminder 🚨🚨
GSSoC-Ext 24 is going to complete in 2 Days. '
Complete your assigned Issues and PR reviews before time to get Points on Leaderboard. '
It was a great experience working with you all, Don't forget to ⭐ star the Repo (only 12 with 62 forks 💔) .
Thanks💗 for your valuable contributions!

Gentle Reminder 🚨🚨
PA and Mentor nominations have been started for GSSoC-Ext 2k24. '
Do share your experiences and connect on Socials. '
It was a great experience working with you all
Thanks💗 for your valuable contributions!


Color highlight of JS gets confused after regex

Issue Type: Bug
create .js file with this content:
var myWindowsDriveLabel = "D:\";
console.log("This is colour coded");
if (!/^[d-zD-Z]:\?$/.test(myWindowsDriveLabel)) {
console.log("This is NOT colour coded anymore");
}
VS Code version: Code 1.42.1 (c47d83b293181d9be64f27ff093689e8e7aed054, 2020-02-11T14:45:59.656Z)
OS version: Windows_NT x64 10.0.17763

Duplicate of https://github.com/microsoft/TypeScript-TmLanguage/issues/806


GraphQL schema-first: add permission check for Federation's _service query

The _service query (invoked by Apollo Gateway when federating the schema) is generated by federation-jvm.
Like all GraphQL queries, it requires authentication, but currently it does not perform any authorization. We should require specific permissions for it, probably DESCRIBE KEYSPACE / TABLE since it revels information about the underlying CQL schema.

The fetcher is generated here, there is no hook to customize it.
We could rebuild the code registry after the fact to wrap the fetcher (in SchemaProcessor).


add type to "stages" variable

"stages" variable doesn't have "type" annotation. when we don't specify type annotation to a variable, terraform automatically convert it to string. In addition, when iterating over the variable, terraform throw an error:
"A value of type string cannot be used as the collection in a 'for' │ expression."

Fixed in v0.4.39


[INTERNAL] Have greenkeeper-lockfile amend any greenkeeper commit

Otherwise it would use a non-configurable commit message that differs
from our msg style

Pull Request Test Coverage Report for Build 117

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

Totals

Change from base Build 112:
0.0%

Covered Lines:
423

Relevant Lines:
618

💛  - Coveralls


2cf66b08-e49a-429f-99a4-88ac96980909

this is for automated testing

582d76b8-440a-4e8f-a3f7-d68565f3ec08


build(deps): bump quinn-proto from 0.11.3 to 0.11.8 and rustc-hash to…

… 2.0.0

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 62.19%. Comparing base (1d39030) to head (5372808).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1025      +/-   ##
==========================================
- Coverage   63.26%   62.19%   -1.08%
==========================================
  Files          48       45       -3
  Lines        5970     5438     -532
  Branches      154        0     -154
==========================================
- Hits         3777     3382     -395
+ Misses       2193     2056     -137

Components
Coverage Δ

apel_plugin
∅ <ø> (∅)

auditor
68.73% <ø> (ø)

auditor_client
94.38% <ø> (ø)

slurm_collector
67.67% <ø> (ø)

slurm_epilog_collector
0.00% <ø> (ø)

htcondor_collector
∅ <ø> (∅)

priority_plugin
37.82% <ø> (ø)


Changed default page title

Avoids seeing React App when the page is loading.

Thank you, @LoicUV!


Add heat pump capacity and ambient heat input

Whether the heat pumps are large, centralised or small, decentral technology is not defined yet.
Centralised heat can be generated by various technologies. Even for heat from electricity, there are multiple technologies (heat pumps, boilers). Thus, we have a need to differentiate.


Problem with abbreviated-form and language

abbrev-form-lang-pb.zip
I attached a sample map. When published it yields this warning:
             [DOTX058W]: No glossary entry was found associated with key ' KEY ' on abbreviated-form element. The build will try to determine the best display text and hover text for terms and abbreviations.

Looking at the sample content, there is a glossentry:
        <glossentry id="bla" xml:lang="en">
            <glossterm>BLA</glossterm>
            <glossdef>

This is the bla.

            </glossdef>
        </glossentry>

and an abbreviated-form referencing it:
        <topic id="test_topic">
            <title>Test topic</title>

TEST<abbreviated-form keyref="KEY"/>

        </topic>

As the topic which references the glossentry does not have the xml:lang set on it, it's considered to be with "en-US". But the glossentry has xml:lang='en' so in the XSLT stylesheet:
      org.dita.xhtml\xsl\xslhtml\dita2htmlImpl.xsl

the XSLT template called "getMatchingTarget" decides that it should not return the glossentry because of the xml:lang impedance mismatch.
A couple of problems:

The warning is not helpful at all to identify the problem.
Ideally if the language of the source cannot be fully matched with the language of the target we could have some kind of fallback and use the glossentry anyway, maybe give a warning about this.

But why should the "getMatchingTarget" try to match the languages anyway?

Another XSLT problem which I found, the XSLT template:
   <xsl:template match="*" mode="find-keyref-target">

does stuff like this:
               <xsl:value-of select="concat($PATH2PROJ, substring-before($target, '.'), $OUTEXT)"/>

but probably instead of "substring-before" it should use "dita-ot:substring-before-last" as the @href value may have the form "../bla/test.dita" and it seems the template tries to replace its extension so it should preserve anything with comes before the last dot in the string.


multiple usb cameras

hello @duongttr,
i have seen the referenced multi image tracking GitHub project, but i want to use multiple usb cameras and not ip cameras, is there a way to do that with this project (run detection, tracking and counting on multiple usb cameras). thank you.

Hi @YeetMasterYeet,
The answer is YES and NO, you can do it with your USB camera by configuring the parameter video. The default value of your computer's webcam is 0. With USB camera you can run a for loop from 1 to 100 to check the id of that camera set the value for video=id. Unfortunately my project can just run on single camera and can't run parallel on multiple camera. I will update that function if I have time.
Thanks for your question!


README

Mallory Sheehan's Prework Study Guide Webpage
Description
This website reflects what I've learned during the Prework course for the UCLA Coding Bootcamp. I built this site to gain an understanding of HTML, CSS, Javascript, Terminal, VS Code, and GitHub, as these are all things that I will be using in my day to day life as a future developer. Although it was hard, and took me many hours, and lots of research and trial and error, it was a great exercise to give me the too start this bootcamp!
Installation
N/A
Usage
To use this Prework Study Guide, you can review the notes in each section. For suggestions on what to study first, open the Chrome DevTools by pressing Command+Option+I (macOS) or Control+Shift+I (Windows). A console panel should open either below or to the side of the webpage in the browser. There you will see a list of topics we learned from the prework along with a suggestion on which topic to study first.
Credits
N/A
License
Please refer to the LICENSE in the repo
Features
main
feature/starter-code
feature/project-READ ME
feature/add-js
feature/add-html
feature/add-css

Added the README above instead of to the actual README file. But I'm done!

Added the README above instead of to the actual README file. But I'm done!


Feature :  Override Nil on merge

Request feature : override nil, if want to nullify dest with nil value
    dest:= make(map[string]interface{})
src :=make(map[string]interface{})

dest["col1"]=2
dest["col2"]=3
dest["col3"]=3
src["col1"]=nil
src["col2"]=4
src["col2"]=nil

mergo.Merge(&dest, src,mergo.WithOverride)

I tried to change code in order to set nil  line#96
if srcElement.IsNil() {
			if (config.overwrite) {
				dst.SetMapIndex(key, srcElement)
				}
				continue
				}

thanks
Vimal

#89 may help

I hope 128 PR resolve this issue.

This is fixed in master, it will be available in next release 0.3.10.

@imdario, thanks, we will be very grateful for the early release of the new release - 0.3.10.

Need this too

@rusdevops Sorry, I wasn't able to do an early release. I'm working fixing 0.3.9 specific bugs and merging other PRs.

Reopening this issue as PR #105 introduced too many bugs, and this issue isn't fixed with the current state of master.


[Bug] On Debian, with PHP 5.6.26

When starting in Debian, I get the error
apc_store() expects parameter 3 to be long, string given
In lib/base.php line 2261, changing:
return apc_store($ndx,$data, $ttl);
to
return apc_store($ndx,$data, (int)$ttl);
fixed this problem.

You should disable APC PHP plugin if you don´t use it. It is recommended not to use APC because I can´t provide any testing for it.

Ok.
Debian doesn't support PHP 7x yet I don't think, and that's what I use for my server.


Fix tests for PHP 8.3

This PR should fix multiple compatibility issues with PHP 8.3 for test code only.
Example error message:
PHP Fatal error:  Declaration of Slim\Tests\Mocks\SmallChunksStream::close()
must be compatible with Psr\Http\Message\StreamInterface::close(): void in
/home/runner/work/Slim/Slim/tests/Mocks/SmallChunksStream.php on line 41

See here: https://github.com/slimphp/Slim/actions/runs/9737805348/job/26870413208

coverage: 99.429% (+0.002%) from 99.427%
when pulling 9a07ee283264a2709c314ff5d5ddde56aab71d8a on odan:test-php-83
into b8e7b5cf950ac5e35353c569361f1ddc50ee48e5 on slimphp:4.x.

coverage: 99.427%. remained the same
when pulling 5eeaa199ef47a580336de75d813a4a22967531c6 on odan:test-php-83
into b8e7b5cf950ac5e35353c569361f1ddc50ee48e5 on slimphp:4.x.

coverage: 99.429% (+0.002%) from 99.427%
when pulling af2b5ac18d1ffd4d341a1fd1e79f1792c6cffec6 on odan:test-php-83
into b8e7b5cf950ac5e35353c569361f1ddc50ee48e5 on slimphp:4.x.


Errors despite Xorg and nvidia-settings/smi on PATH.

I just looked at this again. I got some weird behavior where I could run it the twice just fine, but then I aborted it with Ctrl+c twice (not a smooth termination of XServers) and now I can no longer run it. On another machine, I get the same error from the start (it never worked):
Traceback (most recent call last):
  File "/home/tim/anaconda3/bin/coolgpus", line 177, in <module>
    run()
  File "/home/tim/anaconda3/bin/coolgpus", line 174, in run
    manage_fans(displays)
  File "/home/tim/anaconda3/bin/coolgpus", line 168, in manage_fans
    assign(display, '[gpu:0]/GPUFanControlState=0')
  File "/home/tim/anaconda3/bin/coolgpus", line 143, in assign
    check_output(['nvidia-settings', '-a', command, '-c', display], stderr=STDOUT)
  File "/home/tim/anaconda3/lib/python3.7/subprocess.py", line 395, in check_output
    **kwargs).stdout
  File "/home/tim/anaconda3/lib/python3.7/subprocess.py", line 487, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['nvidia-settings', '-a', '[gpu:0]/GPUFanControlState=0', '-c', ':0']' returned non-zero exit status 1.

I tried to figure it out but was not able to (Xorg, nvidia-settings, and nvidia-smi are on PATH). The XServers seem to be starting just fine. Do you have any ideas on how to debug this?

For the first computer: I suspect there're some subprocesses from the double-killed launch hanging around. See if sudo ps -ef | grep Xorg shows any processes pointing at cool-gpus configs, like these:
root      26173  26171  0 09:18 tty2     00:00:00 /usr/lib/xorg/Xorg :0 -once -config /tmp/cool-gpu-00000000:08:00.0uwcIr4/xorg.conf
root      26174  26171  0 09:18 ?        00:00:00 /usr/lib/xorg/Xorg :1 -once -config /tmp/cool-gpu-00000000:41:00.0vwvZ53/xorg.conf

then kill them with sudo pkill -f /tmp/coolgpu
For the second computer: I've updated the script to v0.13 and added some subprocess logging. Mind running it again and copy-pasting me the whole output?

On my second system, it seems that it was a running Xorg server issue. It is a headless system but runs a Ubuntu desktop OS which restarts Xorg continuously. What I found works best is to use sudo killall -9 Xorg && sleep 0.5 && sudo $(which coolgpus) --speed 99 99 but even that does not work 100% of the time. However, it worked for me always after a couple of tries, so it seems to be a timing issue. Sometimes the problem is that the Xorg server has not completely shut down yet and the new Xorg servers cannot connect:
Unable to init server: Could not connect: Connection refused

ERROR: Unable to find display on any available system

The first system is actually my desktop computer which has displays but which I was accessing remotely. When I was running the first few commands it still worked (fan control on all GPUs which were not attached to displays), but I cannot get it working again now. But since this is not the main use of the program it should be fine — I was surprised that it was working at all for a headed machine.
I will give you the error messages anyway since it might help you to get more insights into this.
Here the error message anyway. Maybe it might help you to make progress on headed machines. The first error is similar to the one above where a connection is refused, the second one says Invalid MIT-MAGIC-COOKIE-1 key
First:
Starting xserver: Xorg :0 -once -config /tmp/cool-gpu-00000000:09:00.00vtj1bdn/xorg.conf
Starting xserver: Xorg :1 -once -config /tmp/cool-gpu-00000000:0B:00.0doavi8lg/xorg.conf
Starting xserver: Xorg :2 -once -config /tmp/cool-gpu-00000000:43:00.0b0wzrvqj/xorg.conf
Starting xserver: Xorg :3 -once -config /tmp/cool-gpu-00000000:45:00.0ai8xkb2n/xorg.conf
Unable to init server: Could not connect: Connection refused

ERROR: Unable to find display on any available system

ERROR: Unable to find display on any available system

Unable to init server: Could not connect: Connection refused

ERROR: Unable to find display on any available system

ERROR: Unable to find display on any available system

Terminating xserver for display :0
Terminating xserver for display :1
Terminating xserver for display :2
Terminating xserver for display :3
Traceback (most recent call last):
  File "/home/tim/anaconda3/bin/coolgpus", line 172, in manage_fans
    set_speed(display, s)
  File "/home/tim/anaconda3/bin/coolgpus", line 158, in set_speed
    assign(display, '[gpu:0]/GPUFanControlState=1')
  File "/home/tim/anaconda3/bin/coolgpus", line 155, in assign
    log_output(['nvidia-settings', '-a', command, '-c', display])
  File "/home/tim/anaconda3/bin/coolgpus", line 88, in log_output
    raise ValueError('Command ' + ' '.join(command) + ' crashed with return code ' + str(p.returncode) + ':')
ValueError: Command nvidia-settings -a [gpu:0]/GPUFanControlState=1 -c :0 crashed with return code 1:

Second:
Starting xserver: Xorg :0 -once -config /tmp/cool-gpu-00000000:09:00.0s7m3sol5/xorg.conf
Starting xserver: Xorg :1 -once -config /tmp/cool-gpu-00000000:0B:00.0o6sf09o2/xorg.conf
Starting xserver: Xorg :2 -once -config /tmp/cool-gpu-00000000:43:00.06a4wy7j_/xorg.conf
Starting xserver: Xorg :3 -once -config /tmp/cool-gpu-00000000:45:00.07ec89__t/xorg.conf
(EE)
Fatal server error:
(EE) Server is already active for display 0
	If this server is no longer running, remove /tmp/.X0-lock
	and start again.
(EE)
(EE)
Please consult the The X.Org Foundation support
	 at http://wiki.x.org
 for help.
(EE)

X.Org X Server 1.19.6
Release Date: 2017-12-20
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.0-138-generic x86_64 Ubuntu
Current Operating System: Linux tim-uw 4.15.0-65-generic #74-Ubuntu SMP Tue Sep 17 17:06:04 UTC 2019 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.15.0-65-generic root=UUID=c4bc0994-b43e-4f5e-b5a4-96be8e874ac2 ro quiet splash nvidia-drm.modeset=1 vt.handoff=1
Build Date: 25 October 2018  04:11:27PM
xorg-server 2:1.19.6-1ubuntu4.2 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.34.0
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.2.log", Time: Tue Oct 15 20:34:00 2019
(++) Using config file: "/tmp/cool-gpu-00000000:43:00.06a4wy7j_/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"

X.Org X Server 1.19.6
X.Org X Server 1.19.6
Release Date: 2017-12-20

Release Date: 2017-12-20
X Protocol Version 11, Revision 0
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.0-138-generic x86_64 Ubuntu
Build Operating System: Linux 4.4.0-138-generic x86_64 Ubuntu
Current Operating System: Linux tim-uw 4.15.0-65-generic #74-Ubuntu SMP Tue Sep 17 17:06:04 UTC 2019 x86_64
Current Operating System: Linux tim-uw 4.15.0-65-generic #74-Ubuntu SMP Tue Sep 17 17:06:04 UTC 2019 x86_64
Kernel command line: Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.15.0-65-generic root=UUID=c4bc0994-b43e-4f5e-b5a4-96bBOOT_IMAGE=/boot/vmlinuz-4.15.0-65-generic root=UUID=c4bc0994-b43e-4f5e-b5a4-96be8e874ac2 ro quiet splash nvidia-drm.modeset=1 vt.handoff=1
e8e874ac2 ro quiet splash nvidia-drm.modeset=1 vt.handoff=1
Build Date: 25 October 2018  04:11:27PM
Build Date: 25 October 2018  04:11:27PM
xorg-server 2:1.19.6-1ubuntu4.2 (For technical support please see http://www.ubuntu.com/support)
xorg-server 2:1.19.6-1ubuntu4.2 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.34.0
Current version of pixman: 0.34.0
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: Markers: (--) probed, (**) from config file, (--) probed, (==) default setting,
	(**) from config file, (++) from command line, (==) default setting,
	(!!) notice, (++) from command line, (II) informational,
	(!!) notice, (WW) warning, (II) informational,
	(EE) error, (WW) warning, (NI) not implemented, (EE) error, (??) unknown.
(NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Tue Oct 15 20:34:00 2019
(==) Log file: "/var/log/Xorg.3.log", Time: Tue Oct 15 20:34:00 2019
(++) Using config file: "/tmp/cool-gpu-00000000:0B:00.0o6sf09o2/xorg.conf"
(++) Using config file: "/tmp/cool-gpu-00000000:45:00.07ec89__t/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Unable to init server: Could not connect: Connection refused
Invalid MIT-MAGIC-COOKIE-1 key
ERROR: Unable to find display on any available system

Invalid MIT-MAGIC-COOKIE-1 key
ERROR: Unable to find display on any available system

Unable to init server: Could not connect: Connection refused
Invalid MIT-MAGIC-COOKIE-1 key
ERROR: Unable to find display on any available system

Invalid MIT-MAGIC-COOKIE-1 key
ERROR: Unable to find display on any available system

Terminating xserver for display :0
Terminating xserver for display :1
Terminating xserver for display :2
Terminating xserver for display :3
Traceback (most recent call last):
  File "/home/tim/anaconda3/bin/coolgpus", line 172, in manage_fans
    set_speed(display, s)
  File "/home/tim/anaconda3/bin/coolgpus", line 158, in set_speed
    assign(display, '[gpu:0]/GPUFanControlState=1')
  File "/home/tim/anaconda3/bin/coolgpus", line 155, in assign
    log_output(['nvidia-settings', '-a', command, '-c', display])
  File "/home/tim/anaconda3/bin/coolgpus", line 88, in log_output
    raise ValueError('Command ' + ' '.join(command) + ' crashed with return code ' + str(p.returncode) + ':')
ValueError: Command nvidia-settings -a [gpu:0]/GPUFanControlState=1 -c :0 crashed with return code 1:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/tim/anaconda3/bin/coolgpus", line 189, in <module>
    run()
  File "/home/tim/anaconda3/bin/coolgpus", line 186, in run
    manage_fans(displays)
  File "/home/tim/anaconda3/bin/coolgpus", line 180, in manage_fans
    assign(display, '[gpu:0]/GPUFanControlState=0')
  File "/home/tim/anaconda3/bin/coolgpus", line 155, in assign
    log_output(['nvidia-settings', '-a', command, '-c', display])
  File "/home/tim/anaconda3/bin/coolgpus", line 88, in log_output
    raise ValueError('Command ' + ' '.join(command) + ' crashed with return code ' + str(p.returncode) + ':')
ValueError: Command nvidia-settings -a [gpu:0]/GPUFanControlState=0 -c :0 crashed with return code 1:

Thanks for the logs! I think it only looks like it's working on your desktop, because the nvidia-settings calls can hijack the existing X servers. The problem is that the existing X servers might not be numbered in the same order as the GPU bus IDs, in which case the script might set a GPU's fan speed based on another GPU's temperature.
That seems like enough of an issue that I've added a check as to whether any X servers are currently running, and a --kill switch to get rid of any them if you want to. It's only a half-fix though, as it doesn't deal with Ubuntu rebooting the X displays.

That sounds good. Thanks for all your help, Andy. As I said I will advertise your library — it will be useful to a lot of people!

Thanks for the logs! I think it only looks like it's working on your desktop, because the nvidia-settings calls can make use of the existing X servers. The problem is that the existing X servers might not be numbered in the same order as the GPU bus IDs, in which case the script might set a GPU's fan speed based on another GPU's temperature.
That seems like enough of an issue that I've added a check as to whether any X servers are currently running, and a --kill switch to get rid of any them if you want to. It's only a half-fix though, as it doesn't deal with Ubuntu rebooting the X displays. Getting Ubuntu to stop doing that looks complicated and is probably, unfortunately, best left to the user.

Hi andy, thanks for your great work!
I can use it normally at first, but after I stop it and re-run the same command, it reports the same error like above:
ValueError: Command nvidia-settings -a [gpu:0]/GPUFanControlState=0 -c :0 crashed with return code 1:

and the command I use is:
sudo $(which coolgpus) --temp 17 84 --speed 15 90 --kill

Do you have any clue how to fix this? Thank you in advance.

Thanks for the logs! I think it only looks like it's working on your desktop, because the nvidia-settings calls can make use of the existing X servers. The problem is that the existing X servers might not be numbered in the same order as the GPU bus IDs, in which case the script might set a GPU's fan speed based on another GPU's temperature.
That seems like enough of an issue that I've added a check as to whether any X servers are currently running, and a --kill switch to get rid of any them if you want to. It's only a half-fix though, as it doesn't deal with Ubuntu rebooting the X displays. Getting Ubuntu to stop doing that looks complicated and is probably, unfortunately, best left to the user.

Hi andy, thanks for your great work!
I can use it normally at first, but after I stop it and re-run the same command, it reports the same error like above:
ValueError: Command nvidia-settings -a [gpu:0]/GPUFanControlState=0 -c :0 crashed with return code 1:

and the command I use is:
sudo $(which coolgpus) --temp 17 84 --speed 15 90 --kill

Do you have any clue how to fix this? Thank you in advance.

magicall, after I relogin to my server, no error report at all....

The command that's causing the crash is shown there - if it happens again then try running it directly in the terminal, and see if it's any more informative
nvidia-settings -a [gpu:0]/GPUFanControlState=0 -c :0

That aside, the fact that it only crashed after you stopped makes me think you might have hit Ctrl+C twice when stopping it and interrupted the shutdown procedure. There's a note in the readme about this, though it regards a different kind of bug:

You hit Ctrl+C twice and now your fans are stuck at a certain speed: run the script again and interrupt it once, then let it shut down gracefully. Double interrupts stop it from handing control back to the driver. Don't double-interrupt things you barbarian.

The command that's causing the crash is shown there - if it happens again then try running it directly in the terminal, and see if it's any more informative
nvidia-settings -a [gpu:0]/GPUFanControlState=0 -c :0

That aside, the fact that it only crashed after you stopped makes me think you might have hit Ctrl+C twice when stopping it and interrupted the shutdown procedure. There's a note in the readme about this, though it regards a different kind of bug:

You hit Ctrl+C twice and now your fans are stuck at a certain speed: run the script again and interrupt it once, then let it shut down gracefully. Double interrupts stop it from handing control back to the driver.

ok, cool! thank you for your reply!
It's a wonderful tool and I believe it should be known to more people.

The command that's causing the crash is shown there - if it happens again then try running it directly in the terminal, and see if it's any more informative
nvidia-settings -a [gpu:0]/GPUFanControlState=0 -c :0

That aside, the fact that it only crashed after you stopped makes me think you might have hit Ctrl+C twice when stopping it and interrupted the shutdown procedure. There's a note in the readme about this, though it regards a different kind of bug:

You hit Ctrl+C twice and now your fans are stuck at a certain speed: run the script again and interrupt it once, then let it shut down gracefully. Double interrupts stop it from handing control back to the driver.

ok, cool! thank you for your reply!
It's a wonderful tool and I believe it should be known to more people.

btw, already recommended this great repo on my Chinese blog: https://blog.csdn.net/songyu0120/article/details/105912206
http://sdsy888.me/工具-Tools/2020/Nvidia-GPU风扇转速自动调节/

That's fantastic, thanks for both writing it and sharing it back with me. 谢谢! 😄

The command that's causing the crash is shown there - if it happens again then try running it directly in the terminal, and see if it's any more informative
nvidia-settings -a [gpu:0]/GPUFanControlState=0 -c :0

That aside, the fact that it only crashed after you stopped makes me think you might have hit Ctrl+C twice when stopping it and interrupted the shutdown procedure. There's a note in the readme about this, though it regards a different kind of bug:

You hit Ctrl+C twice and now your fans are stuck at a certain speed: run the script again and interrupt it once, then let it shut down gracefully. Double interrupts stop it from handing control back to the driver.

Hi @andyljones , unfortunately, the problem happens again. Here's the log info:
No existing X servers, we're good to go
Starting xserver: Xorg :0 -once -config /tmp/cool-gpu-00000000:05:00.0jting9z8/xorg.conf
Starting xserver: Xorg :1 -once -config /tmp/cool-gpu-00000000:06:00.0wnnwlgxr/xorg.conf
Starting xserver: Xorg :2 -once -config /tmp/cool-gpu-00000000:09:00.0metfkth1/xorg.conf
Starting xserver: Xorg :3 -once -config /tmp/cool-gpu-00000000:0A:00.0artlu8gw/xorg.conf
Unable to init server: Could not connect: Connection refused

ERROR: Unable to find display on any available system

ERROR: Unable to find display on any available system

Unable to init server: Could not connect: Connection refused

ERROR: Unable to find display on any available system

ERROR: Unable to find display on any available system

Terminating xserver for display :0
Terminating xserver for display :1
Terminating xserver for display :2
Terminating xserver for display :3
Traceback (most recent call last):
  File "/media/newhd/ysong/anaconda3/envs/pytorch1.4/bin/coolgpus", line 225, in manage_fans
    set_speed(display, s)
  File "/media/newhd/ysong/anaconda3/envs/pytorch1.4/bin/coolgpus", line 211, in set_speed
    assign(display, '[gpu:0]/GPUFanControlState=1')
  File "/media/newhd/ysong/anaconda3/envs/pytorch1.4/bin/coolgpus", line 208, in assign
    log_output(['nvidia-settings', '-a', command, '-c', display])
  File "/media/newhd/ysong/anaconda3/envs/pytorch1.4/bin/coolgpus", line 91, in log_output
    raise ValueError('Command ' + ' '.join(command) + ' crashed with return code ' + str(p.returncode) + ':')
ValueError: Command nvidia-settings -a [gpu:0]/GPUFanControlState=1 -c :0 crashed with return code 1:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/media/newhd/ysong/anaconda3/envs/pytorch1.4/bin/coolgpus", line 242, in <module>
    run()
  File "/media/newhd/ysong/anaconda3/envs/pytorch1.4/bin/coolgpus", line 239, in run
    manage_fans(displays)
  File "/media/newhd/ysong/anaconda3/envs/pytorch1.4/bin/coolgpus", line 233, in manage_fans
    assign(display, '[gpu:0]/GPUFanControlState=0')
  File "/media/newhd/ysong/anaconda3/envs/pytorch1.4/bin/coolgpus", line 208, in assign
    log_output(['nvidia-settings', '-a', command, '-c', display])
  File "/media/newhd/ysong/anaconda3/envs/pytorch1.4/bin/coolgpus", line 91, in log_output
    raise ValueError('Command ' + ' '.join(command) + ' crashed with return code ' + str(p.returncode) + ':')
ValueError: Command nvidia-settings -a [gpu:0]/GPUFanControlState=0 -c :0 crashed with return code 1:

Also, I didn't use double "ctrl+c" this time to stop the coolgpus. Here's the log after I run nvidia-settings -a "[gpu:0]/GPUFanControlState=0 -c :0".:
Unable to init server: Could not connect: Connection refused

ERROR: The control display is undefined; please run `nvidia-settings --help` for usage information.

(pytorch1.4) ➜  ~ sudo nvidia-settings -a "[gpu:0]/GPUFanControlState=0 -c :0"
Unable to init server: Could not connect: Connection refused

ERROR: The control display is undefined; please run `nvidia-settings --help` for usage information.

Btw, last time when the same problem happens, it just went back to normal somehow. I didn't do anything then. But this time I didn't get luck.
So, do you know how to solve it or in what way can I try next time?
Thank you in advance.

That's weird. I have no idea what's causing it, so I'm gonna give you some pointers on how I'd go about figuring it out.
OK, some treating-the-symptoms first:

Is there anything unusual about your system?
What Python version are you running?
What OS are you running?
Do you have any monitors attached to the server?
Have you tried restarting the server?
Did you manually stop coolgpus previously and it crashed when you tried to start again, or has it been running in the background and it crashed spontaneously?

My spidey-sense is that the X servers the script sets up are either dying or not launching in the first place for some reason, and then nvidia-settings is complaining it can't find them. Two ways to check on the X servers are with nvidia-smi (which should list one per GPU) and ps -ef | grep Xorg. There should be at most one X server per GPU, and there shouldn't be any that look like they were launched by something other than coolgpus. If there are, something is rotten.
Anyway, coolgpus prints out all the commands it uses, so you can replicate it manually in just this kind of situation. So:

What's the output look like from launching one of the Xorg servers yourself? ie, try running
sudo Xorg :0 -once -config /tmp/cool-gpu-00000000:05:00.0jting9z8/xorg.conf
This should work because the tmp directory should have outlived coolgpu's process. If it didn't - if the /tmp/cool-gpu-blah-blah dir no longer exists - you'll need to try the debugger version of all this below.
If the server seems to launch okay, great! Check it turns up in nvidia-smi, then use sudo pkill Xorg to kill the server. Then run all four of the Xorg commands from the logs, and see if any of them 'look weird'. Check they also show up in nvidia-smi/ps -ef " grep Xorg.
If that all worked fine, now run the sudo nvidia-settings command manually and check you get the same error the script does.
If you do all that and there's no error but there is when you run the script, I am stumped.
NB: make sure you run all these commands sudo.

If the tmp dirs have been destroyed, or if it turns out it all works fine when done manually, the next trick is more involved.

Open the script in your preferred text editor. I'd use nvim $(which coolgpus), but you might use something different.
Add breakpoint() after the for bus, display... line. This'll hold the process open with the debugger after all the config files are generated so the tmp dirs don't go anywhere.
Save it and run the edited script as you would normally
Use sudo pkill Xorg to kill all the display servers, then launch them manually in a separate terminal like above.
Run the sudo nvidia-settings command manually, and, if it works, try again from within the debugger with set_speed(display, 100).
If that works but the script as a whole doesn't work, I am stumped.

That's weird. I have no idea what's causing it, so I'm gonna give you some pointers on how I'd go about figuring it out. Read all of this before starting on any part of it; there's likely some combination of what you know and I don't, and what I know but you don't, that will figure this out much more quickly than just following my instructions.
OK, some treating-the-symptoms first:

Is there anything unusual about your system?
What Python version are you running?
What OS are you running?
Do you have any monitors attached to the server?
Have you tried restarting the server?
Did you manually stop coolgpus previously and it crashed when you tried to start again, or has it been running in the background and it crashed spontaneously?

My spidey-sense is that the X servers the script sets up are either dying or not launching in the first place for some reason, and then nvidia-settings is complaining it can't find them. Two ways to check on the X servers are with nvidia-smi (which should list one per GPU) and ps -ef | grep Xorg. There should be at most one X server per GPU, and there shouldn't be any that look like they were launched by something other than coolgpus. If there are, something is rotten.
Anyway, coolgpus prints out all the commands it uses, so you can replicate it manually in just this kind of situation. So:

What's the output look like from launching one of the Xorg servers yourself? ie, try running
sudo Xorg :0 -once -config /tmp/cool-gpu-00000000:05:00.0jting9z8/xorg.conf
This should work because the tmp directory should have outlived coolgpu's process. If it didn't - if the /tmp/cool-gpu-blah-blah dir no longer exists - you'll need to try the debugger version of all this below.
If the server seems to launch okay, great! Check it turns up in nvidia-smi, then use sudo pkill Xorg to kill the server. Then run all four of the Xorg commands from the logs, and see if any of them 'look weird'. Check they also show up in nvidia-smi/ps -ef " grep Xorg.
If that all worked fine, now run the sudo nvidia-settings command manually and check you get the same error the script does.
If you do all that and there's no error but there is when you run the script, I am stumped.
NB: make sure you run all these commands sudo.

If the tmp dirs have been destroyed, or if it turns out it all works fine when done manually, the next trick is more involved.

Open the script in your preferred text editor. I'd use nvim $(which coolgpus), but you might use something different.
Add breakpoint() after the for bus, display... line. This'll hold the process open with the debugger after all the config files are generated so the tmp dirs don't go anywhere.
Save it and run the edited script as you would normally
Use sudo pkill Xorg to kill all the display servers, then launch them manually in a separate terminal like above.
Run the sudo nvidia-settings command manually, and, if it works, try again from within the debugger with set_speed(display, 100).
If that works but the script as a whole doesn't work, I am stumped.

What I'm very much expecting is that when you try to manually run the Xorg command, it complains about some bit of your particular system. What I'm expecting less but still substantially is that the command runs fine and then the corresponding server later mysteriously disappears from nvidia-smi.

thank you for the quick reply! I  solve the problem last time by restarting the machine. The next time it happens, I'll update the result of the solution you provide above.

You can do sudo service gdm stop to stop the X server.


Using a function to fetch the secret fails in runtime

Im using this approach to fetch the secret key:
config :my_app, MyApp.Guardian,
  allowed_algos: ["RS512"],
  secret_key: {MySecretKey, :fetch}

In v1.0.0-beta1 this does not work and fails with:
(FunctionClauseError) no function clause matching in :jose_jwk.from/1
        (jose) src/jose_jwk.erl:134: :jose_jwk.from({MySecretKey, :fetch})

However if a supply an argument to the fetch function it works
 secret_key: {MySecretKey, :fetch, []}

Expected:
Should be possible to provide a function which takes no arguments to resolve the secret key.

Howdy @drowzy!  Thanks for the report but this is functioning as intended.
This was discussed quite a bit when we were working on v1 (see discussion here: https://github.com/ueberauth/guardian/pull/377#discussion_r135806789) and the decision was made to remove {MySecretKey, :fetch} since {{MySecretKey, :fetch, []} accomplishes the same goal while reducing the amount of code to maintain.


Test of standard Transcrypt install fails

After installing transcrypt 3.7.16.  I try to test the installation (as described in the doco):
In the directory ../transcrypt/development/automated_tests/transcrypt/ I run transcrypt -b -c -da autotest. This succeeds.
Then I run transcrypt -r -c autotest. This succeeds as well (but strangely I have afterwards two autotest html files: An old autoTest.html from install time, and a new autotest.html from the transcrypt run. (Note teh different capitalisation.)
Finally I start the webserver and go to http://localhost:8000/autotest.html. but I get an empty table and the browser console shows the following error log:
div_issues.issue559.mylib.mylib.js:4 Uncaught ReferenceError: __all__ is not defined
    at div_issues.issue559.mylib.mylib.js:4
    at div_issues.issue559.mylib.mylib.js:4
    at Function.<anonymous> (org.transcrypt.__runtime__.js:3)
    at run559 (div_issues.issue559.js:3)
    at Object.run (div_issues.js:35)
    at org.transcrypt.autotester.js:15
    at Function.<anonymous> (org.transcrypt.__runtime__.js:3)
    at autotest.js:18

My environment:

Tool
Version

OS
Linux RHEL 7

Python
Version 3.7.4

Browser
Google Chrome 75.0.3770.142

I see this too, its coming from the use of globals() in /transcrypt/development/automated_tests/transcrypt/div_issues/issue559/mylib/mylib.py:
class mylibClass:
def init (self, autoTester):
self.autoTester = autoTester
self.autoTester.check ('Hello World Class')
def checkSymbols (self):
    self.autoTester.check (sorted ([x for x in globals () if x.startswith ("my")])) # __: iconv

If I comment that line out all is well (in that all the other tests pass)

I see this too, its coming from the use of globals() in /transcrypt/development/automated_tests/transcrypt/div_issues/issue559/mylib/mylib.py:
class mylibClass:
def init (self, autoTester):
self.autoTester = autoTester
self.autoTester.check ('Hello World Class')
def checkSymbols (self):
    self.autoTester.check (sorted ([x for x in globals () if x.startswith ("my")])) # __: iconv

If I comment that line out all is well (in that all the other tests pass)


Automated cherry pick of #144: fix the bug that only recognize iam sa

Related: #124

This change is

/lgtm
/approve


"Allow" not "Block"

In the following note, it says that Block rules will be created.  However, the Powershell script lower down the page creates Allow rules.
Windows Firewall configuration will be altered even when the prompt is dismissed by selecting “Cancel”. Two inbound rules for teams.exe will be created with Block action for both TCP and UDP protocols.

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

ID: 6457d204-d229-9154-28fd-ca9bbb4bddcd
Version Independent ID: f5d82846-41cb-3548-6997-ce23bd8f89c6
Content: Get clients for Microsoft Teams - Microsoft Teams
Content Source: Teams/get-clients.md
Service: msteams
GitHub Login: @LolaJacobsen
Microsoft Alias: lolaj

@bahnjee  Thank you for submitting feedback and contributing to the docs. We are currently investigating this

@bahnjee Thank you for reaching out. Just for clarification, would you suggest that I replace "Block" with "Allow in the Note?

Yes, unless there’s something I’m misunderstanding in the note I referenced.  I can’t replicate the Firewall prompt so I can’t hit Cancel and see the type of rule created (Allow or Block), but the logic of it tells me that it should be creating an Allow rule (else, how could the user make a call?).  Add to this that the provided Powershell script adds Allow rules and I’m fairly sure that yes, the note should say that Allow rules will be added.
Greg Bond
Client Manager | Information Technologies
Spartanburg Community College
Mailing Address: P.O. Box 4386 Spartanburg, SC 29305
Physical Address: 107 Community College Dr.
(864) 592-4974
bondg<EMAIL_ADDRESS>www.sccsc.eduhttp://www.sccsc.edu/
From: Reece Peacock<EMAIL_ADDRESS>Sent: Wednesday, June 17, 2020 6:08 AM
To: MicrosoftDocs/OfficeDocs-SkypeForBusiness<EMAIL_ADDRESS>Cc: Bond, Greg<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/OfficeDocs-SkypeForBusiness] "Allow" not "Block" (#5021)
@bahnjeehttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fbahnjee&data=01|01|bondg%40sccsc.edu|7162591921da4037138808d812a657ec|dc193bead4fd44d4a8322bb2d6822483|0&sdata=XgF09JZgWFXIzu0b37PSZtl14gqFenQxaMiVz2dtavs%3D&reserved=0 Thank you for reaching out. Just for clarification, would you suggest that I replace "Block" with "Allow in the Note?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2FOfficeDocs-SkypeForBusiness%2Fissues%2F5021%23issuecomment-645282360&data=01|01|bondg%40sccsc.edu|7162591921da4037138808d812a657ec|dc193bead4fd44d4a8322bb2d6822483|0&sdata=PwhUKsJHqL4vZgMjvxkx0or5%2FaKHjQXyQlqFrVdq17g%3D&reserved=0, or unsubscribehttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FALNGNTHE2SHUT5ZTJJTPZRTRXCIYXANCNFSM4NOHAQAA&data=01|01|bondg%40sccsc.edu|7162591921da4037138808d812a657ec|dc193bead4fd44d4a8322bb2d6822483|0&sdata=AIYw376mVNJUr9olxxBI4kfaSzCi5JoStCa%2B8JwBcCk%3D&reserved=0.

@Reeced40

@LolaJacobsen Please can you confirm related issue - https://github.com/MicrosoftDocs/OfficeDocs-SkypeForBusiness/issues/5088

Thank you for submitting feedback. We understand that this issue has been resolved.
Please feel free to re-open this issue if there is a specific area of the docs that we can improve or make better. Thank you.


Create list of Publications at the College or Academic Unit

Generate a list of faculty Publications (or grants or presentations, or...) at the College level (or administrative unit level). Use case would be to display on website, marketing/promo for College or academic unit.
Questions:

list for publications only? all works? separate list for each area?
generate link only or api for display on websites, etc
College? Academic Unit? Dept? At what level would these be aggregated?

We'd like to offer this for all organizations in RMD. But first we need to do #775

@anaelizabethenriquez to investigate this issue and improve description during the week of August 14. We are thinking of this as an organizational parallel to the profiles demo site (e.g. Ana's profile).
Possible versions of the product:

Publicizing the API more, perhaps with templates for what you can do for your unit
Demo pages that people can actually point to (URL for each org)

In the admin site, there is already a list of publications by organization (example: University Libraries). A question to discuss with @binkylush and @DanCoughlin is how close that list gets us to the desired functionality.

There's already an API endpoint for this too, by the way. Not sure if that alone is sufficient for the current use-cases...

We want code that a unit without developers can copy/paste into its website (similar to the downloadable code for the profiles demo site). Even easier than that, we'd like to provide embedding/widget code.
User should be able to:
-pick the organization
-set a limit on the number of records displayed
-set a limit on how far back chronologically
-exclude publications without an OA link (maybe)
It should make a list of publications listed in reverse chronological order. The documentation on the website should make it clear that it is very easy to use.
Posting this now and then cleaning up this issue further.

Per @EricDurante, we tried to do something like this early on in RMD development, but it was too difficult at high generality, so we did the profiles site instead. Something like the LibAnswers widgets might be doable, but the trade-off is that the widget won't look nice, or at least won't match a given website.


Add sponsors to tags

refs #149

Job VTB Documentation on 610ccf2 wanted to post the following:
View the site here
This comment will be updated on new commits.


uftp: 4.9.5 -> 4.9.6

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/uftp/versions.
These checks were done:

built on NixOS
ran ‘/nix/store/97wm1cjgqd5ih45689h2xmqfv7ywv8bi-uftp-4.9.6/bin/uftpd help’ got 0 exit code
ran ‘/nix/store/97wm1cjgqd5ih45689h2xmqfv7ywv8bi-uftp-4.9.6/bin/uftp_keymgt -h’ got 0 exit code
ran ‘/nix/store/97wm1cjgqd5ih45689h2xmqfv7ywv8bi-uftp-4.9.6/bin/uftp_keymgt --help’ got 0 exit code
ran ‘/nix/store/97wm1cjgqd5ih45689h2xmqfv7ywv8bi-uftp-4.9.6/bin/uftp_keymgt help’ got 0 exit code
found 4.9.6 with grep in /nix/store/97wm1cjgqd5ih45689h2xmqfv7ywv8bi-uftp-4.9.6
directory tree listing: https://gist.github.com/c08d432d7a238559a904561aa46161bd

cc @fadenb for review

Success on x86_64-darwin (full log)
Attempted: uftp
Partial log (click to expand)
clang  -g -Wall -DHAS_GETIFADDRS   -o uftp_keymgt uftp_keymgt.o uftp_common.o encrypt_openssl.o -lc -lm -lcrypto
installing
post-installation fixup
strip is /nix/store/kdff2gim6417493yha769kh00n63lnrw-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/ap94z98h6gim4y4wck9rypip2482vqv0-uftp-4.9.6/bin
patching script interpreter paths in /nix/store/ap94z98h6gim4y4wck9rypip2482vqv0-uftp-4.9.6
gzipping man pages under /nix/store/0dhzm6damndwfmc3shpzykhx6sn2k8x8-uftp-4.9.6-man/share/man/
strip is /nix/store/kdff2gim6417493yha769kh00n63lnrw-cctools-binutils-darwin/bin/strip
patching script interpreter paths in /nix/store/0dhzm6damndwfmc3shpzykhx6sn2k8x8-uftp-4.9.6-man
/nix/store/ap94z98h6gim4y4wck9rypip2482vqv0-uftp-4.9.6

Success on x86_64-linux (full log)
Attempted: uftp
Partial log (click to expand)
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/97wm1cjgqd5ih45689h2xmqfv7ywv8bi-uftp-4.9.6/bin
patching script interpreter paths in /nix/store/97wm1cjgqd5ih45689h2xmqfv7ywv8bi-uftp-4.9.6
checking for references to /build in /nix/store/97wm1cjgqd5ih45689h2xmqfv7ywv8bi-uftp-4.9.6...
shrinking RPATHs of ELF executables and libraries in /nix/store/zhifk3x0rd5c9fqk4blhnmcp93ci9329-uftp-4.9.6-man
gzipping man pages under /nix/store/zhifk3x0rd5c9fqk4blhnmcp93ci9329-uftp-4.9.6-man/share/man/
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/zhifk3x0rd5c9fqk4blhnmcp93ci9329-uftp-4.9.6-man
checking for references to /build in /nix/store/zhifk3x0rd5c9fqk4blhnmcp93ci9329-uftp-4.9.6-man...
/nix/store/97wm1cjgqd5ih45689h2xmqfv7ywv8bi-uftp-4.9.6

Success on aarch64-linux (full log)
Attempted: uftp
Partial log (click to expand)
strip is /nix/store/j7d4mr0ikv974ig7yzhknpsq288js4bs-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/dfiw078wg0haf5gwyijbdczbxw6dgvav-uftp-4.9.6/bin
patching script interpreter paths in /nix/store/dfiw078wg0haf5gwyijbdczbxw6dgvav-uftp-4.9.6
checking for references to /build in /nix/store/dfiw078wg0haf5gwyijbdczbxw6dgvav-uftp-4.9.6...
shrinking RPATHs of ELF executables and libraries in /nix/store/09qgac6l59wpya1wrv6zsl3qpgfnvnfa-uftp-4.9.6-man
gzipping man pages under /nix/store/09qgac6l59wpya1wrv6zsl3qpgfnvnfa-uftp-4.9.6-man/share/man/
strip is /nix/store/j7d4mr0ikv974ig7yzhknpsq288js4bs-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/09qgac6l59wpya1wrv6zsl3qpgfnvnfa-uftp-4.9.6-man
checking for references to /build in /nix/store/09qgac6l59wpya1wrv6zsl3qpgfnvnfa-uftp-4.9.6-man...
/nix/store/dfiw078wg0haf5gwyijbdczbxw6dgvav-uftp-4.9.6


/sendFile end point ignores 'filename' request parameter

Hello,
I sent a request to /api/sendFile end point which contains following json.
(
    [json] => Array
        (
            [chatId] =><EMAIL_ADDRESS>            [session] => 0c79e8f0-1bf0-11ee-aac6-4bba6cfec57f
            [type] => media
            [file] => Array
                (
                    [mimetype] => application/pdf
                    [filename] =><PHONE_NUMBER>635.pdf
                    [url] => https://7c89-116-72-22-45.ngrok-free.app/file/r/387fc6a0-1ef5-11ee-a9e1-e12a60ff0642
                )

            [caption] =>
        )
)

note : this is php array structure but json request was successful. I got response and file on whatsapp as well.
However the whatsapp shows file with this information.

As you can see the caption and filename is not received correctly.
Expected output.
File should be received with name as '1688567559635.pdf' and without any caption.

Hi! Could you attach JSON request that can be tested in swagger directly please?
Just to make sure there's no language related serialization issue too

Hello,
Attached the exact json request I am sending. I have masked the phone number.
{"chatId":"XXXXXXXXXXXX@c.us","session":"0c79e8f0-1bf0-11ee-aac6-4bba6cfec57f","type":"media","file":{"mimetype":"application\/pdf","filename":"1688567559635.pdf","url":"https:\/\/7c89-116-72-22-45.ngrok-free.app\/file\/r\/20391ec0-1f02-11ee-b611-23762cf3fa89"},"caption":null}

I've fixed the issue with filename field - it should work now in the latest version (just published it)
About caption -  he have a ticket for that already, sorry, didn't find it first time https://github.com/devlikeapro/whatsapp-http-api/issues/94
It works only in NOWEB engine. Just checked - it's not ready in default (WEBJS) one yet
Let me know if filename works for you and we can close the issue (we'll work on caption in the https://github.com/devlikeapro/whatsapp-http-api/issues/94)

Hello. We are using 'WEBJS' engine right now. Is it available in that engine?
We have to use WEBJS to ensure that phone number doesn't get blocked.

Filename - yes, caption - not :(


Risks

Is there a risk of banning the account or being detected by Hamster Kombat?

I can't give any guarantees regarding the safety of using this algorithm, but in fact these keys are generated using the same algorithm as in a regular game. I would recommend generating 1 key every few minutes to further reduce the risks.

https://t.me/hamsterkombate_keys use this and don't get the ban


Oracle session browser - use gv$session

On RAC Oracle database (that is, Oracle database running on more than one node) the v$session view only returns sessions running on the same node as the current session: you should use gv$session to get all sessions on all nodes. Official Oracle documentation is not very clear about this (https://docs.oracle.com/database/121/REFRN/GUID-884B21B1-7C87-41E1-8F97-C4668704AF30.htm#REFRN-GUID-884B21B1-7C87-41E1-8F97-C4668704AF30), but check out this stackoverflow answer https://stackoverflow.com/questions/28814543/is-there-any-way-to-get-information-about-current-session-from-gvsession-in-ora, especially comments.
I've struggled to understand why Toad showed me more sessions than dbeaver, then I found out Toad was using gv$session. IDK if gv$session is usable on non-RAC installations, so you might have to check that. This is not limited to v$session, all v$ views have a gv$ corresponding on RAC.

I tested the following query on my local environment, which is most certainly not RAC, and it works:
SELECT s.*, sq.SQL_FULLTEXT, io.*
FROM GV$SESSION s
LEFT JOIN gv$sql sq ON ( s.inst_id = sq.inst_id AND s.sql_address = sq.address AND s.sql_hash_value = sq.hash_value AND s.sql_child_number = sq.child_number)
LEFT JOIN gv$sess_io io ON ( s.inst_id = io.inst_id AND s.sid = io.sid)
WHERE 1=1 AND s.TYPE = 'USER' AND s.STATUS <> 'INACTIVE'

This makes sense.
Thanks for the hint.

got a glance at your code, please notice that sid is not enough, gv$ views need to be joined by inst_id as well. Otherwise you'll probably end up with duplicated rows when a query gets distributed on many instances with the same sid.

verified


Giant Overlapping text in v2.13.0b4

When I tried out v2.13.0b4, the type in the hex & character display was gigantic and overlapping, so it was completely unreadable. So I dropped back to v2.12. Changing fonts didn't help. Reducing the font size using "smaller" reduce the size of the text, but it was still overlapping.

Woah, yeah that release was pretty much for testing the changes in the glyph rendering code, @kainjow did it look okay on your machine? I can't seem to find any workaround or anything, this is what it looks like (I tried opening in low resolution but it looks the same even if I don't)

What macOS version are you using?

Okay, I wasn't able to build on my laptop because it's still on Mojave and the last Xcode supported on it can't open the project file. I did try the app on an older server running High Sierra, and got the same behavior, so maybe the difference is the changes that came with Catalina.
So far, I could replicate on Mojave, High Sierra. Catalina doesn't have the problem, I forgot to try running from the dmg first, but it works fine.

Mojave.

On Jun 14, 2020, at 7:02 AM, Kevin Wojniak<EMAIL_ADDRESS>wrote:
What macOS version are you using?

Thanks to the old code being left in there, it's simple to switch back with #if 1, it resolves the regression on pre-Catalina systems (or just use b3, pretty much same thing), but what exactly is the cause I wonder. Is system fonts new in Catalina?

I just posted b5 with the change reverted.
That explains why it was so easy to make the change this time, when I had tried earlier and couldn't get it working. I must have done that on 10.14 :). Apple must have changed something in CoreText on 10.15. Anyways, back to the drawing board.


Random8() always returns 255

I noticed something odd about Random8 when using the "parameterless" constructor. It always outputs 255 because the internal State remains 0. Interestingly, the Assert in NextState() isn't triggered either, probably because it's a Unit test assertion and not a Debug.Assert() (which, honestly, I would avoid using in Burst compiled code but rather check for Burst Safety Checks = On).
Because of the ctor default value - and because you cannot implement a truly parameterless ctor in a struct  - I believe that using a single parameter with a default value in a struct ctor leads to the code actually calling the internal parameterless ctor of the struct when no input value is supplied. It does NOT call the ctor with a default value parameter!
Coincidentally, I cannot "step into" the new Random8() line at all, this only works when supplying a parameter ie new Random8(1).
Random8 works fine when using any value in the constructor, including the default: 0b0111_1001
Here's the code I've tested it with (outside Jobs, not Burst compiled):
var rand = new MaxMath.Random8();
for (int i = 0; i < 10; i++)
{
	Debug.Log(rand.State);
	Debug.Log(rand.NextByte());
	var color = rand.NextByte4();
	Debug.Log(color);
}

Using Unity 2022.1.14f1 with Burst 1.7.4, Mathematics 1.2.6, MaxMath 2.3.0.

I forgot: the fix should be to provide a static "Create" method that calls the ctor with a default value. Remove the default value of the ctor. Implement a proper check in NextState() that catches State==0 and outputs a corresponding error message (ie "use Random8.Create() or provide a seed value").

Default constructors for structs in C# is a feature that will be supported with C#10. I was just following the Unity.Mathematics.Random implementation, though, which has a similar constructor. Unity expects users to know not to have a seed of 0, which this library does, too, throwing an exception otherwise.
Regarding the assertion: They are, first off, part of [C# Dev Tools]https://github.com/MrUnbelievable92/C-Sharp-Dev-Tools) and thus DEBUG (the preprocessor directive) only assertions, but can also be turned off directly in the source or within the Unity Editor under "Window/C# Dev Tools/Manage Saftey Checks...", which yields several advantages over a standard throw method at the cost of more abstract error messages.
The assertions were accidentally turned off with the previous release. I'd suggest turning them on in the editor or updating C# Dev Tools to this fixed version.
Regarding a static "Create" method, which doesn't exist in the Unity.Mathematics API by the way, is already implemented as RandomX.New.


Full use cases defined

User cases are well-defined and clear to read

Completed and merged with develop


Rans3pf

Mandatory Checklist
Please ensure that the following criteria are met:

[ ] Title of pull request describes the changes/features
[ ] Request at least 2 reviewers
[ ] If new files are being added, the files are no larger than 100kB. Post the file sizes.
[ ] Code coverage did not decrease. If this is a bug fix, a test should cover that bug fix. If a new feature is added, a test should be made to cover that feature.
[ ] New features have appropriate documentation strings (readable by sphinx)
[ ] Contributor has read and agreed with CONTRIBUTING.md and has added themselves to CONTRIBUTORS.md

As a general rule of thumb, try to follow PEP8 guidelines.
Description

Maybe try compiling with PROTEUS_OPT="-w -g0 -O0 -DNDEBUG" ?

I pushed to try, but are these flags acceptable in production? I mean, they would lead to a significative performance hit, no?

The build is now passing, I need to fix the python file.

PROTEUS_OPT="-w -g0 -O0 -DNDEBUG" would just be for travis. My thinking is that the main objective of the travis build is to run the tests quickly. If errors arise then a developer can rebuild and test with PROTEUS_OPT="-w -g -O0 -UNDEBUG" and so on. I posted some comparisons of compile times on the proteus slack channel.

I think if you split the 2D and 3D bindings in to separate files, then it will fix our build problems. I'm just talking about RANS3PF/RANS3PF2D, RANS2P/RANS2P2D, and RANS3PSed/RANS3PSed2D:
https://pybind11.readthedocs.io/en/stable/faq.html#how-can-i-reduce-the-build-time

I'll try that in a dedicated commit once the tests pass.

Indeed, this was added by error with a greedy git add proteus/.


test: fix flaky tests that use convenient function runTest(numberOfTimes)

Part of: https://linear.app/customerio/issue/MBL-164/cdp-branch-flaky-tests-on-ci
I have noticed a pattern where test functions that use the convenient function, runTest(numberOfTimes:), are flaky on CI. runTest was introduced as a way to try and catch race conditions by running a test many times.
While doing deeper research to running test functions multiple times, the solutions I found were either (1) working for older versions of Xcode but not the latest versions or (2) identical solution as runTest(numberOfTimes:) but with an additional sleep function after setup and teardown.
I could not find a solution that was reliable and up-to-date. Therefore, I think the best solution is remove runTest.
If you want to run a test multiple times, you can inside of Xcode: https://stackoverflow.com/a/67963997

Stack:

#637 ⬅
#636
#635

⚠ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.

🤦🏻 seems as though this PR's changes still result in flaky tests.
I'll try and figure out why this is.

Solution didn't remove flakiness. Dropping PR change.


Add possibility to use atlas-vector-search in aggregate

Added atlas vector-search configuration
Added wrapper to use .aggregate with vector-search
Added test configurable to use with Atlas test-cluster

Codecov Report
Patch coverage: 60.86% and project coverage change: -0.29% :warning:

Comparison is base (8a78eb5) 79.01% compared to head (6713696) 78.72%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #720      +/-   ##
==========================================
- Coverage   79.01%   78.72%   -0.29%
==========================================
  Files          79       79
  Lines        5004     5063      +59
==========================================
+ Hits         3954     3986      +32
- Misses       1050     1077      +27

Files Changed
Coverage Δ

superduperdb/vector_search/base.py
94.11% <0.00%> (-1.13%)
:arrow_down:

superduperdb/db/mongodb/data_backend.py
53.48% <25.00%> (-6.52%)
:arrow_down:

superduperdb/db/mongodb/query.py
80.78% <38.46%> (-2.80%)
:arrow_down:

superduperdb/db/base/build.py
92.59% <50.00%> (-3.41%)
:arrow_down:

superduperdb/db/base/data_backend.py
77.77% <50.00%> (-3.71%)
:arrow_down:

superduperdb/container/component.py
88.23% <66.66%> (+0.73%)
:arrow_up:

superduperdb/container/vector_index.py
84.67% <77.50%> (+0.63%)
:arrow_up:

superduperdb/base/config.py
100.00% <100.00%> (ø)

superduperdb/container/listener.py
80.35% <100.00%> (ø)

superduperdb/db/base/db.py
62.88% <100.00%> (+0.17%)
:arrow_up:

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


VS2015 new project format

Has anyone gotten this to work (or point me to an example) that has WebHooks working with the new appsettings.json/project.json?
Will me setting the keys with the appsettings.json just work?
Thank you!

Please refer to https://github.com/aspnet/WebHooks/issues/5, where we will be working on adding support for ASP.NET Core. (The project.json file is no longer used, but appsettings.json still is.)


Neq != for floats/doubles doesnt confirm to IEEE 754

The following snippet shows that x != Nan returns false , when its supposed to return true (https://en.wikipedia.org/wiki/NaN#Comparison_with_NaN) .
float nan = std::numeric_limits<float>::signaling_NaN();
float num = 1.0f;
auto numX = d_type::broadcast(num);
 auto nanX = d_type::broadcast(nan);

 auto res = numX != nanX;     //Returns all false
 auto reseq = numX == nanX; //Returns all false.

If this is not intentional , I can provide a PR with fix. Let me know . Thanks !
This is atleast true for AVX.

CC: @serge-sans-paille @JohanMabille @Yuhta
Folks, can you help look into this issue?

I think #806 fixes it.

Nice. Thank you @JohanMabille for reviewing and merging the fix.


slow vim leave

with a large js file this autocmd will take a while.thanks

The project is totally refactored. It's much faster now.


Add loadbalancer entries and openstack command to README

Add the entries for the loadbalancer to the environments example
Add usage for the generic openstack client as heat stack-create is deprecated

@jprovaznik I actually see a small error in the PR.
+openstack stack create --timeout 180 \                                                       1

should have been
+openstack stack create --timeout 180 \

Fixed in:  #307


CNAME Record Validation

PDA version
0.4.1
Feature type
Change to existing functionality
Proposed functionality
When adding a new CNAME record without the domain suffix it automatically adds a . where it should assume same domain suffix. For example providing:
b  IN  CNAME test
test  IN  A <IP_ADDRESS>

Should still be valid.
Use case
Using local CNAMEs in the current domain.
Database changes
No response
External dependencies
No response

Has this been implemented? Sorry, but couldn't see any related PRs

@mbevc1 no, just doing house keeping.


add log4j config for ci test

add log4j config for ci test

/run-all-tests

Codecov Report

Merging #1315 into release-2.1 will not change coverage.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             release-2.1   #1315   +/-   ##
=============================================
  Coverage           53.2%   53.2%
  Complexity          1124    1124
=============================================
  Files                154     154
  Lines               7065    7065
  Branches             825     825
=============================================
  Hits                3759    3759
  Misses              2932    2932
  Partials             374     374

Continue to review full report at Codecov.

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

/run-all-tests


Handle API backend failures with a better error message (#83)

Everyone has bad days, CloudFlare is not immune to that, however
currently when CloudFlare's own API has a bad day, currently a
very verbose error message is returned that can cause very
large log lines ( #83 ) .
To address this we catch HTTP 522,523,524, and 504 with a
"Service Failure" message and do not include the responce
body back with it, since there is no need to return it
as it will most likely not be useful to anyone.

LGTM.


rename site in firebase json

Issue:

bcgov/entity/issues/

Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the namex license (Apache 2.0).

/gcbrub

Temporary Url for review: https://strr-hosts-dev--pr-383-g04n09ns.web.app


Add UMAP, nCount_RNA, nFeature_RNA, etc. columns to pbmc4_meta data

Add the UMAP data so it can be used in the vignettes. To include a plot_cols() example in the vignette we need additional meta.data columns.

I'll try to make a better example

Need to fix in the vignette but found in pbmc_meta now.


Verify index results using separate search indices

Once we finish the card https://github.com/hubmapconsortium/search-api/issues/756, we'll need to test and verify this new entity-api endpoint GET /documents/<id> is getting all the necessary fields into Elasticsearch via the index procedure. And switching to this new endpoint will not cause any issues to the portal-ui rendering.
Create two pairs of indices in the AWS OpenSearch DEV-TEST cluster, to separate from the current DEV/TEST indices.

karl_dev_public_entities and karl_dev_consortium_entities
karl_dev_public_portal and karl_dev_consortium_portal

Configure the local search-api instance against the current DEV entity-api instance to fetch the data via /documents/<id> and add documents to the above indices via the individual reindex call PUT /reindex/<id>. Then compare the results between the current DEV indices and these new indices.
Once the local verification is completed and everything works as expected, Zhou will deploy the search-api onto DEV and trigger a full reindex then we'll ask the Harvard team to confirm.

I think this QDSL query presents an interesting opportunity to compare the two indices.
But for me, it currently returns
{"Message":"Your request: '/_transform/_preview' is not allowed."}
I will need to investigate if that is yet another ElasticSearch/OpenSearch difference, and AWS constraint, or something else, if we can go this way.
Will spot check & do things another way to get started, though...

It's not supported by the AWS managed version: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/supported-operations.html#version_7_10


Add missing keys from rails_admin 3

The pull request adds missing keys from latest English locale from rails_admin project and adds missing Slovak translations.

@istana thx


Temporary fix to unblock automation

Still think there is a parallel file write that is causing a lock.  Trying to temporarily turn off this test.  This is a more serious problem that needs to be resolved.  I am running out of steam though and hopefully this unblocks people.

To clarify: I have a suspicion this is two drivers being run at the same time and writing the same files in the current working directory.


Speed up nested #simple_fields_for usage by a considerable amount

The FormBuilder#find_mapping method is relying on Object#const_get raising an exception if the constant doesn't exist, rather than directly checking if it exists with Object#const_defined?.
Exceptions are slow due to generating backtraces - and then when other debugging gems (such as did_you mean, which are included with Ruby and Rails these days) get involved it resulted in excessive Object allocation.
Normally the discovery_cache would mitigate this, so there wouldn't be many calls to #mapping_override, however when you use #simple_fields_for with a collection/has_many association the cache is empty for each item in the collection.
Before this change this code was taking approximately 2 seconds and 2.9million allocations for 235 records:
<%= f.simple_fields_for :provider_access_masks, @access_masks do |pam| %>
  <%= pam.input :id, as: 'hidden' %>
  <%= pam.input :_destroy, as: 'boolean', label: "Delete", class: 'destroy' %>
<% end %>

After this change it was down to approximately 100ms and 200,000 allocations. (All on my M1 MacBook Air)

I'm reverting this change, as it caused a regression. See #1824 for more info.
Happy to review something else that fixes the original problem without the regression, but for now we'll have to live with it.


Configuration screen fields are mandatory and don't use the default values from documentation

Checklist

[X] I have filled out the template to the best of my ability.
[X] This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
[X] This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.
According to the documentation on the website the fields available in the Configuration screen have default values, but if you try to edit the configuration all of these fields are blank by default and are mandatory.
Describe the solution you'd like
It should be possible to override just some of them and leave the others blank so the integration use the default values mentioned in the documentation.
Describe alternatives you've considered
It would at least be nice if the fields would display their default values.
Additional context
No response

Hi @dougmaitelli, I just released the fix in v1.1.5-beta1. Can you please upgrade to the new beta version and let me know if the issue is now resolved for you?

Great! Thank you for confirming 👍


Malware

Status
Ready/In Progress/In Hold (Reason for hold)
Related Issues
fixes: link to the issue
Description
This article will provide guidelines for Endpoint Malware Investigation - Generic V2 playbook
Screenshots
Paste here any images that will help the reviewer

@evisochek To complete this article, we will need links to the following playbook readmes (in dev docs):

Get endpoint details - Generic
Forensics - Generic playbook
Threat hunting - generic playbook
Isolate Endpoint - Generic V2

@evisochek Doc review completed.


cups-filters 2.0.0 partially break printing colored data on a B/W printer using IPP Everywhere

Dear devs,
I use a Brother HL-L2370DN B/W Duplex laser printer. I added it to CUPS using the IPP Everywhere driver, and until recently, it worked without a problem, using cups-filters-1.28.17 on Gentoo Linux.
However the recent update to cups-filters-2.0.0 broke printing when colored data is to be printed.
The color wheel from the CUPS test page looks like this:

And when printing some red text, it's simply omitted:

Downgrading to cups-filters-1.28.17 fixes the problem.
The relevant test page part looks like this again:

and red text is printed again in a gray tone:

I would really love to help tracking this down, as all the new printers use IPP Everywhere … Thanks for fixing this in advance!
Cheers, Tobias

Hi Tobias,
the logic behind filtering is now in libcupsfilters (now separate project).
Additionally, there were several bug fixes related to color/bw printing:
https://github.com/OpenPrinting/libcupsfilters/commit/c6175a2f
https://github.com/OpenPrinting/libcupsfilters/commit/107091186
https://github.com/OpenPrinting/libcupsfilters/commit/78cc6758
so some might do the trick for you.


Inconsistent Naming with different input shapes

Install from binary pip package

Which pip package you installed. CPU only for Linux
The output from python -c "import tensorflow; print(tensorflow.version)": 0.7.0

Steps to reproduce
Run the following code:
import tensorflow as tf

a = tf.placeholder(tf.float32, name='haha', shape=[128, 20, 20, 20])
c = tf.nn.moments(a, axes=[0])[0]
print c.name

with tf.Graph().as_default():
    a = tf.placeholder(tf.float32, name='haha', shape=[None, 20, 20, 20])
    c = tf.nn.moments(a, axes=[0])[0]
    print c.name

It prints:
moments/Squeeze:0
moments/Squeeze_1:0

In short, with different input shapes, the op returns a variable with different names.
I'm not sure whether this is expected to happen, or something to be fixed. IMHO, this could cause some problems because one may use a fixed batch size for training, and a None batch size for inference. Getting a different name make it harder to manage variable load & restore.

The reason is that moments produces a slightly different graph when the input shape is known (it can be pre-computed).  When it's unknown, the code introduces a "squeeze" operator that isn't normally there.
@vincentvanhoucke: can we/ should we make moments() return a consistent name for the returned tuples?

These are the names of the ops, not the variables, so it won't be an issue for save and restore.
We should try to provide stable names for endpoints of composite ops though, that seems sane, even if users should definitely not rely on that naming to be stable over time. I'm working on updates to moments() for v0.8, I'll put that on my list of requirements.

I agree that usually ops won't be an issue for save and restore. But what happen to me is that I'm using ExponentialMovingAverage on c, then there will be a variable that inherit the inconsistent name from c.
BTW, this is how the non-official batch normalization mentioned in #1122 works (take moving average on mean/var).

A fix for this has been checked in and should make its way to github shortly.

is it fixed now? I have a same problem about tf.saver.restore() with different batch size train time and inference time. and i want to know this is the reason or not.


issue with appUrl configuration in latest release 4.0.2

FYI going back to 3.6.12 and issues disappear.
We running Angular 8.2.6
We used to use dynamic appUrl property like this:
export const BuilderConfig = {
appUrl: () => window.location.origin,
apiUrl: 'https://localhost'
};
latest version fails to init with javascript error:
ERROR TypeError: path.search is not a function
at Formio.js
line var isProjectUrl = path.search(projectRegEx) !== -1; // The baseURL is the same as the projectUrl, and does not contain "/project/MONGO_ID" in

Please submit a pull request to our core and we will pull in the fix to our next renderer. Otherwise, we will add this to our bug list and get to it as soon as we can.

@travist  we went back to 3.6.12 as all the issues disappear.
what ever is on the head in release is not stable. it works for your demo, but breaks in the apps that using previous version.

@dolphinsd please provide us a fiddle of the issue occurring. We are not having any problems on our side with this so unless we can reproduce it, it may not ever get fixed and you will be stuck on that version.

@travist , you do not need fiddle, just replace
config.ts in your demo https://github.com/formio/angular-demo with this and run and you will see error
export const AppConfig = {
appUrl: () => window.location.origin,
apiUrl: ''
};

@travist , this is from latest release 4.2.2 in your demo app

AppConfig.appUrl should not be a function. It should be a string. What happens when you use the following.
export const AppConfig = {
appUrl: window.location.origin,
apiUrl: ''
};

@travist , now  window.location.origin works in latest release


Error running default config

Maybe missed a step, but when I try just syncing, then "npm install", "npm run start", I get an error after the 8080 page is loaded:
ERROR in F:\Repos\FluidFramework\LiveShareCanvasBabylon\src\stage-view.ts ./src/stage-view.ts 392:50-54 [tsl] ERROR in F:\Repos\FluidFramework\LiveShareCanvasBabylon\src\stage-view.ts(392,51)       TS2345: Argument of type 'LiveShareHost | ILiveShareHost' is not assignable to parameter of type 'ILiveShareHost'.   Type 'LiveShareHost' is not assignable to type 'ILiveShareHost'.     The types returned by 'getFluidTenantInfo()' are incompatible between these types.       Type 'Promise<import("F:\\Repos\\FluidFramework\\LiveShareCanvasBabylon\\node_modules\\@microsoft\\teams-js\\dist\\MicrosoftTeams").IFluidTenantInfo>' is not assignable to type 'Promise<import("F:\\Repos\\FluidFramework\\LiveShareCanvasBabylon\\node_modules\\@microsoft\\live-share\\bin\\interfaces").IFluidTenantInfo>'.         Type 'IFluidTenantInfo' is missing the following properties from type 'IFluidTenantInfo': ordererEndpoint, storageEndpoint  @ ./src/app.ts 31:21-44
Some update or config change needed?

Looks like the teams-js module changed the interface for IFluidTenantInfo.  Changing the package.json to reference the 2.5.0 rather package than ^2.5.0 fixed the issue.


gadgets/profile_tcprtt: Missing tests

The profile_tcprtt gadget is missing its tests. We can use the builtin ones on https://github.com/inspektor-gadget/inspektor-gadget/blob/main/integration/k8s/profile_tcprtt_test.go.

@mauriciovasquezbernal Hello I am new to this can i also try to solve the issue??
Can you please guide me. I have installed inspektor gadget repo

@kunal-511 for sure, happy to help. The idea is to create tests for the profile_tcprtt gadget based on the existing ones on https://github.com/inspektor-gadget/inspektor-gadget/blob/main/integration/k8s/profile_tcprtt_test.go. You can check how tests are implemented for other gadgets like https://github.com/inspektor-gadget/inspektor-gadget/blob/main/gadgets/snapshot_process/test/integration/snapshot_process_test.go, https://github.com/inspektor-gadget/inspektor-gadget/blob/main/gadgets/top_blockio/test/integration/top_blockio_test.go, https://github.com/inspektor-gadget/inspektor-gadget/blob/main/gadgets/trace_dns/test/integration/trace_dns_test.go. etc. Please check https://www.inspektor-gadget.io/docs/v0.34.0/devel/contributing to get familiar with the development process.


feat: add thread preview and multiline comments

this commit adds the previewing of the lines where a thread occurs
along with allowing multiline threads to be created both in and outside
of review.
Signed-off-by: ldelossa<EMAIL_ADDRESS>

Seems to be working okay. Merging.


Unexpected keyword or identifier for print

I'm trying to implement this on my existing project but i get this error:

How do i enable 'use php' directive in my existing project?
Does this really work or its a kind of a joke?
Can i run cURL in here?
Can i use this in my production app hosted on vercel?

Take another look at the use php documentation, see the file tries to change to .tsx or jsx