Authorization Header not passing the correct value

I am currently attempting to login through my server using the Password login method
'
const SDK = require('@ringcentral/sdk').SDK;
const rcsdk = new SDK({
server: SDK.server.sandbox,
clientid: process.env.CLIENT_ID_SB,
clientsecret: process.env.CLIENT_SECRET_SB,
redirectUri: '' // optional, but is required for Implicit Grant and Authorization Code OAuth Flows (see below)
});
un= process.env.USERNAME_SB
pwd= process.env.PASSWORD_SB
rcsdk
.login({
username: un, // phone number in full format
extension: '', // leave blank if direct number is used
password: pwd
})
.then(function(response) {
console.log('logged in???????')
console.log(response)
})
.catch(function(e) {
console.log(e.message  || 'Server cannot authorize user');
});
};`
I get the error message Unexpected end of JSON input. Am i missing something?  viewed the request and the Authorization header does not look like it has an encoded version of clientid:clientsecret

Also I have sent a successfully request via postman, so it's not a configuration issue on the ringcentral app side.

Sorry, this is the correct error I'm getting.  Basic authentication header is missing or malformed

@techinaflash It seems it's not an issue , please feel free to reopen or create new one if you are still facing any issue.


More ableist terms

http://www.autistichoya.com/p/ableist-words-and-terms-to-avoid.html

Nice, I was just about to add dumb when I saw you did it. Though I want to note something about the word "stupid" here: https://github.com/wooorm/retext-equality/blob/8d835e22e2e47d4f0a51159818492d64fdb667a2/script/ablist.yml#L399
That word may arguable not be a good replacement. It depends on the context.

When used towards a person, you are entirely devaluing them based on one quality. As a programmer this was difficult for me to grasp at first because I do value intelligence above all else, but this word can be offensive especially towards people who do have low intelligence. As Einstein said: “Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid.”
When used towards a computer, for example, whose only purpose in life is to be "smart", this word adequately describes the deficiency the device has.

But since that word can be used in an offensive manner it may be better to err on the side of caution. I'm open to discussion about it.

Thanks @alexgleason for the feedback; I indeed though a little (but not too much) when I added it. I added because I has your PR in mind, “This is dumb!”, and thought it could fittingly be changed to “This is stupid!”
Are there other alternatives you can think of for “dumb”, in that context?

Perhaps "dislikable" could be a replacement. Because when most people are saying "x is dumb" the sentiment is just "I dislike this".

 The author of the linked article would believe so and I'd be interested to hear their opinion. But in the interim it might be best to just remove "stupid" as a suggested alternative and leave it at that.
Basically my thought is, don't enforce it (until there it a convincing reason to do so) but don't encourage it either.

How about foolish, ludicrous?

Nice! :+1: I'm impressed with your ability to come up with words.

thesaurus.com haha :wink:

I sent the author of that website an email asking for further clarification on the word "stupid". Will post back if I get a response.

:+1:

Okay, so I got a response, with a mind-blowing linked article. Deconstructing "Stupid"
After reading this, I think the word should be added, mainly because disabled people consider it to be a slur. The main thing that made it click for me was this line from the article:

I think it's fairly easy to see how these definitions can bleed into our common idiom through the natural human predisposition toward personifying tools and possessions.

The word was created to describe humans (it's derived from "in a stupor"), and we are personifying objects when we use that word towards objects. And the fact that "stupid" has a negative connotation and describes a lack of human perception is insensitive and wrong. Again, Einstein put it best:

“Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid.”

The value that people bring to the world can't be measured by their perceptive abilities alone (perceptive abilities is often what we refer to as intelligence, though there are many forms of it). The word "stupid" suggests that a person is wholly bad due to a lack of one quality.
A replacement word may be something like "bad", or a more specific word that has an inanimate connotation like "inoperable".
I'm tempted to even include synonyms like "idiot" and even "unintelligent".


update documentation to reflect code.

Index is a number and since the documentation says it returns any it's misleading.

[x] I have followed (at least) the PR section of the contributing guide.

Using any is correct, the value defaults to index but can also be the child’s value prop. https://github.com/mui-org/material-ui/blob/3808a6b2b2e19b22fa9938d2376b4667820ce1b9/packages/material-ui/src/BottomNavigation/BottomNavigation.js#L46 I think it’s fine as it is but maybe adding that to the description will clear the confusion?

Ahh, yeah if the documentation did mentioned that it would have been a lot clearer.

@pjmp How do you think that we can update the docs to make it clearer?

Digging a bit more, it seems that all the API docs are correct.


Sending tokens to Github repo

I’m trying to push tokens to a Github repo.
I have created a repo, added the Server URL for that repo (in https://api.github.com/repo/:username/:repo format) and Access token. Upon sending my design tokens I receive a confirmation ‘Design tokens pushed to server!’, however I do not see any update in my repo.
The local exported file looks fine.

Hey @usethetics,
since this issue came up before, one quick question, did you go into the "Actions" tab in your repo and click the green "enable actions" button? (https://github.com/lukasoppermann/design-token-transformer#transformation-in-github-repository)
Sadly, if this is not enabled github swallows the push without returning any error.

Hi @lukasoppermann, if I go into the Actions tab I get the ‘Get started with GitHub Actions’ overview page without an ‘enable actions’ button.

Okay, but you did fork this repository https://github.com/lukasoppermann/design-token-transformer correct? (You did not just create a new one, correct?)
If you did create a fork and still can't enable it, I'll have to check it later. Did you use actions on github before?

Sorry, I should’ve been clearer. I tried both creating a new project and forking design-token-transformer.
In the forked project I now have enabled actions and followed the steps outlined. The package.json has been updated to reflect the correct repository URL.
TBH, I haven’t used Github Actions before but I take it the correct actions are forked over right? Do I need to update anything in the transform-tokens.yml?
On the Figma side; is this server URL correct? https://api.github.com/repo/usethetics/design-token-transformer.git

Hey @usethetics, correct, the action file is included in the project, so when you create a fork it will be present.
The url has to be updated though, the correct one would be:
Not that you are missing an s in repos and need to update the end (remove .git and add /dispatches).
https://api.github.com/repos/usethetics/design-token-transformer/dispatches

I will update the readme to make this easier to understand by adding an example.
Let me know if it works like that.

Awesome, thanks, it would beautifully now!

Awesome. If you have any idea (apart from adding the example url to the readme) of how I can make this easier to understand, please let me know. Sometimes it is hard to write documentation for something you build yourself. 😅

For me it was initially not clear that I needed to fork the transformer repo as I only wanted to see if I was able to publish tokens on GitHub and not in the transformation mindset (yet).
My main struggle was with steps three and four of the setup process:
3. Adapt the transform-tokens script in the package.json.
4. Adapt the github workflow.
Maybe explicitly mentioning that the repo URL has to be changed in step three, and that step four is optional would already clear things up a lot.
Also, I installed the repo locally with its dependencies but for the publication to Github part I don’t that is required, or is it?
On the Figma side, the server URL part might be a good one to elaborate on a bit, maybe with an example screenshot showcasing a working URL instead of the placeholder. (The placeholder would still be helpful in the Figma plugin though and it could just be me, I’m a bit of a n00b setting things like this up.)
I hope this helps, I’ll let you know if I think of anything else!
Thanks for helping out! :-)

Hey, thank you for the suggestions. I guess most people are new to setting something like this up.
I had to figure it out as well, while building it. 😉
I changed the readme a lot make it more obvious. I hope it helps.
Let me know if I missed something.
Cheers

Looks great!

The s is missing in the github url in the readme, but I'm still having trouble with this.  It's just hard to debug when it says it pushed.

Hey @davidbwaters do you have more info? Does it arrive at the repo? The plugin does not get any info from the repo, so it only knows if the sending worked.
You can open the console in Figma, do you see any error there?


[qt5-base, qt5-declarative] fix build with GCC11

Describe the pull request
These patches come from Fedora's packages:
https://src.fedoraproject.org/rpms/qt5-qtbase/blob/rawhide/f/qt5-qtbase-gcc11.patch
https://src.fedoraproject.org/rpms/qt5-qtdeclarative/blob/rawhide/f/qt5-qtdeclarative-gcc11.patch

What does your PR fix?
Fixes missing #include <limits> in several Qt files in the last stable Qt5 release.

Which triplets are supported/not supported? Have you updated the CI baseline?
all

Does your PR follow the maintainer guide?
yes

If you have added/updated a port: Have you run ./vcpkg x-add-version --all and committed the result?
yes

Failure to remove_all_inside("D:\buildtrees") due to file "D:\buildtrees\tensorflow\.bzl\5jspnvg3\java.log.build0000cj.AzDevOps.log.java.20210915-192747.7976": The process cannot access the file because it is being used by another process.

This doesn't seem related to the changes in this branch??

@Be-ing Yeah, that doesn't related to your branch and I don't find any threads use that yet.

I've seen these changes before.
Maybe in @Neumann-A  PR.

#19668

Okay closing as a duplicate of #19668


White line in demo on RTX 3090

Hello, thank you for your great work. I run your demo and find the output has strange white lines as the video shows. Do you know the reason?
https://user-images.githubusercontent.com/12268263/220037152-d7f411a1-a8c3-494b-ae76-01663bbfd117.mp4
To make the environment work in RTX 3090, I updated the cudatoolkit to 11.3. And then I installed the following package:
PyTorch version: 1.11.0
Is debug build: False
CUDA used to build PyTorch: 11.3
ROCM used to build PyTorch: N/A

OS: Ubuntu 18.04.6 LTS (x86_64)
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Clang version: Could not collect
CMake version: version 3.10.2
Libc version: glibc-2.27

Python version: 3.8.16 (default, Jan 17 2023, 23:13:24)  [GCC 11.2.0] (64-bit runtime)
Python platform: Linux-4.15.0-191-generic-x86_64-with-glibc2.17
Is CUDA available: True
CUDA runtime version: 11.3.58
GPU models and configuration:
GPU 0: NVIDIA GeForce RTX 3090
GPU 1: NVIDIA GeForce RTX 3090
GPU 2: NVIDIA GeForce RTX 3090

Nvidia driver version: 465.19.01
cuDNN version: Probably one of the following:
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn.so.8
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_adv_infer.so.8
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_adv_train.so.8
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_cnn_infer.so.8
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_cnn_train.so.8
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_ops_infer.so.8
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_ops_train.so.8
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] numpy==1.23.5
[pip3] pytorch-lightning==1.5.0
[pip3] pytorch3d==0.7.2
[pip3] torch==1.11.0
[pip3] torchmetrics==0.11.1
[pip3] torchvision==0.12.0
[conda] blas                      1.0                         mkl    http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
[conda] cudatoolkit               11.3.1               ha36c431_9    nvidia
[conda] ffmpeg                    4.3                  hf484d3e_0    pytorch
[conda] mkl                       2021.4.0           h06a4308_640    http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
[conda] mkl-service               2.4.0            py38h7f8727e_0    http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
[conda] mkl_fft                   1.3.1            py38hd3c417c_0    http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
[conda] mkl_random                1.2.2            py38h51133e4_0    http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
[conda] numpy                     1.23.5           py38h14f4228_0    http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
[conda] numpy-base                1.23.5           py38h31eccc5_0    http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
[conda] pytorch                   1.11.0          py3.8_cuda11.3_cudnn8.2.0_0    https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch
[conda] pytorch-lightning         1.5.0                    pypi_0    pypi
[conda] pytorch-mutex             1.0                        cuda    https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch
[conda] pytorch3d                 0.7.2                    pypi_0    pypi
[conda] torchmetrics              0.11.1                   pypi_0    pypi
[conda] torchvision               0.12.0               py38_cu113    https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch

The same issue. Have you solved the problem? @yuangan

The same issue. Looking forward to a solution.

This might be because of the device of GPU. I tried 2080Ti, and the results were right.

The same issue. Looking forward to a solution.


More detail about the problems tonight

I just wanted to describe more of what we observed at the Swarthmore roundsing tonight. (I never got an actual crash message, so I don't have any error info to paste here.)
Six of us got on at 7pm and were chatting for 15 minutes or so, with only a couple minor glitches like someone's video not initially showing up. But when we tried to actually sing, very weird things started happening. People were switched to different buckets repeatedly, when they hadn't tried to move using the Join buttons. And when they did click Join, they were usually sent into the wrong bucket -- and sometimes others got moved as well. When I finally clicked 'Start SInging', nothing happened except the button changed to 'Stop Singing'. But no actual sound-recording-and-delayed-playback happened. It was as if I hadn't clicked it at all.
Each of us regularly got the message that our lag had become too high and we wouldn't be able to participate; when we clicked 'Try again' we were okay for between 5 seconds and 5 minutes.
Eventually we we completely unable to access the site - those of us who tried reloading just got 'could not load site' timeout errors. That's when Jed texted you.
15 minutes later the site was back, and everything worked fine! The now-five of us had about 40 minutes of perfectly normal roundsinging (yay!), and then the Start Singing button stopped working and the site became inaccessible again. 15 minutes after that, the two of us who were still willing to continue were able to get back on again, and had an almost glitch-free hour of singing.
I hope there isn't something that's not scaling well, so that the server could handle 2 people but not 5 or 6. Or rather, if that's what's going on I hope it can be fixed. Or maybe the server was just having a bad night? Either way, I'd love to hear from you when you think the server is in good shape for me to hold another sing!

I think what I'd like to try next time is rebooting the server right before; give me a heads up when you schedule the next one and I will?

Will do!

We just had a two-hour roundsing that went great! There were a couple of small things -- The first time I led a song, and again the first time I did so after one of the three times I recalibrated, I was unable to hear any bucket but my own (though others say they heard everyone); and a couple of times Jed and Joel each had the sound drop out for a second in the middle of singing, and when they came back they were now out of phase with everyone else -- but they were transient, not repeated, events. So if you did indeed reboot the server before we showed up... it worked!
I do have one request, which if you'd prefer I can open a separate ticket for: the Recordings in that tab all include the metronome, and quite loudly. Since we often end up drifting from the metronome (and turn its volume level down so it doesn't distract us), the resulting recordings sound really bad. Is there really any need to the metronome to be included in the recording?
Thanks again for your help; it was an excellent roundsing!


Can't start metrics master, so no metrics

Hello,
First of all, thanks for this, it's a great piece of software.
I try to get metrics working for my Haproxy & Haproxy-wi  but I'm stuck.
I'm on centos 7, Haproxy 2.0.7 and Haproxy-wi <IP_ADDRESS> git (sqlite local).
I copied metrics_haproxy.service from /var/www/haproxy-wi/config_other/systemd to systemd folder, made a reload, enable but the service doesn't start. (keep_alive and checker are ok)
Errors in metrics-error.log :
Oct 23 14:08:23 haproxy metrics: Traceback (most recent call last):
Oct 23 14:08:23 haproxy metrics: File "/var/www/haproxy-wi/app/tools/metrics_master.py", line 112, in <module>
Oct 23 14:08:23 haproxy metrics: main()
Oct 23 14:08:23 haproxy metrics: File "/var/www/haproxy-wi/app/tools/metrics_master.py", line 42, in main
Oct 23 14:08:23 haproxy metrics: waf_servers = sql.select_waf_servers()
Oct 23 14:08:23 haproxy metrics: TypeError: select_waf_servers() missing 1 required positional argument: 'serv'

Errors in error.log :
[Wed Oct 23 13:53:01.617878 2019] [cgi:error] [pid 1454] [client <IP_ADDRESS>:36665] AH01215: Traceback (most recent call last):
[Wed Oct 23 13:53:01.617950 2019] [cgi:error] [pid 1454] [client <IP_ADDRESS>:36665] AH01215: File "/var/www/haproxy-wi/app/overview.py", line 40, in <module>
[Wed Oct 23 13:53:01.617983 2019] [cgi:error] [pid 1454] [client <IP_ADDRESS>:36665] AH01215: role = sql.get_user_role_by_uuid(user_id.value),
[Wed Oct 23 13:53:01.618019 2019] [cgi:error] [pid 1454] [client <IP_ADDRESS>:36665] AH01215: AttributeError: 'NoneType' object has no attribute 'value'
[Wed Oct 23 14:09:14.752885 2019] [cgi:error] [pid 1437] [client <IP_ADDRESS>:53512] AH01215: Traceback (most recent call last):, referer: https://<IP_ADDRESS>/app/metrics.py
[Wed Oct 23 14:09:14.752971 2019] [cgi:error] [pid 1437] [client <IP_ADDRESS>:53512] AH01215: File "/var/www/haproxy-wi/app/options.py", line 696, in <module>, referer: https://<IP_ADDRESS>/app/metrics.py
[Wed Oct 23 14:09:14.752999 2019] [cgi:error] [pid 1437] [client <IP_ADDRESS>:53512] AH01215: metrics['chartData']['server'] = server, referer: https://<IP_ADDRESS>/app/metrics.py
[Wed Oct 23 14:09:14.753024 2019] [cgi:error] [pid 1437] [client <IP_ADDRESS>:53512] AH01215: NameError: name 'server' is not defined, referer: https://<IP_ADDRESS>/app/metrics.py

Could you please help me ?

Hi, thank you )
Have you enabled metrics at the admin page?

In AdminsArea > Servers > MyHaproxy , yes it is check.

Can you do:
select * from metrics limit 10;

?

No records :
[root@haproxy app]# sqlite3 haproxy-wi.db
SQLite version 3.7.17 2013-05-20 00:56:22
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> select * from metrics limit 10;
sqlite>

Ok, I think I found bug. You may edit file app/tools/metrics_master.py:
try:
        waf_servers = sql.select_waf_servers()
	waf_started_workers = get_waf_worker()
	waf_servers_list = []

	for serv in waf_servers:
		waf_servers_list.append(serv[0])
except:
        pass

Or wait while I release bug fix

I need to put un little bit more in the "try" to get it work :
        if need_start:
                for serv in need_start:
                        start_worker(serv)
        try:
                waf_servers = sql.select_waf_servers()
                waf_started_workers = get_waf_worker()
                waf_servers_list = []

                for serv in waf_servers:
                        waf_servers_list.append(serv[0])

                waf_need_kill=list(set(waf_started_workers) - set(waf_servers_list))
                waf_need_start=list(set(waf_servers_list) - set(waf_started_workers))

                if waf_need_kill:
                        for serv in waf_need_kill:
                                kill_waf_worker(serv)

                if waf_need_start:
                        for serv in waf_need_start:
                                start_waf_worker(serv)
        except:
                pass

Now metrics master and workers are green in overview and I can see stats and graph in metrics.
Thanks a lot

You are welcome :)

I can't start both services

It's sad :(

Could you give me some advice psl

Check logs

Could you remote to check, it's possible ?

Yes, it's possible, but doesn't free

I can donate for you, if it qualify with my requirement.

Can I have your skype or telegram?

I have, there are list: https://haproxy-wi.org/contacts.py


Add notablePeopleEvents query, use uppercase for most enum types

This PR also includes some (technically) breaking changes to the enum types. The enum values for enum types that are not yet used on the production website are now all uppercase for consistency.
There remains a few non-uppercase enum types that cannot be changed now because they would break the website and they are stored in lowercase in the database so we'll need to figure out how to make those consistent with the other enum types.
After we complete the conversion, we should enforce uppercase for all future enum types via a linting rule.

There remains a few non-uppercase enum types that cannot be changed now because they would break the website

Couldn't we have added the new uppercase enums while keeping the old camelcase enums for backward compatibility for the UI? Then after we migrate the UI, we come back here and remove the camelcase enums?

Couldn't we have added the new uppercase enums while keeping the old camelcase enums for backward compatibility for the UI? Then after we migrate the UI, we come back here and remove the camelcase enums?

Yeah, I guess that's how we should go about it. We basically need to teach our client to handle both lowercase and uppercase variants and then later remove the lowecase versions.


Issue with pkl files loads on Linux

Dear @benjiebob , my os is Ubuntu 18.04, when I run python scripts
--python smal_fitter/optimize_to_joints.py
I get error:_pickle.UnpicklingError: the STRING opcode argument must be quoted, I searched and got that those pkl files belong to Windows. I wonder if I should change the pkl files or I can run on the Windows.
Please help me
Thanks

Hey! Please could you let me know which pkl files it's having trouble with?

my_smpl_data_00781_4_all.pkl and the same as walking_toy_symmetric_pose_prior_with_cov_35parts.pkl
When I try this soluton:https://stackoverflow.com/questions/2613800/how-to-convert-dos-windows-newline-crlf-to-unix-newline-lf-in-a-bash-script/19702943#19702943
It fixed, but I still get errors:
self.precs = torch.from_numpy(res['pic'].r).float().to(device)
Traceback (most recent call last):
File "smal_fitter/optimize_to_joints.py", line 147, in
main()
File "smal_fitter/optimize_to_joints.py", line 89, in main
model = SMALFitter(device, data, config.WINDOW_SIZE, config.SHAPE_FAMILY, use_unity_prior)
File "/home/jsj/SMALify/smal_fitter/smal_fitter.py", line 101, in init
self.smal_model = SMAL(device, shape_family_id=shape_family)
File "/home/jsj/SMALify/smal_model/smal_torch.py", line 69, in init
v_sym, self.left_inds, self.right_inds, self.center_inds = align_smal_template_to_symmetry_axis(
File "/home/jsj/SMALify/smal_model/smal_basics.py", line 20, in align_smal_template_to_symmetry_axis
symIdx = u.load()
File "/home/jsj/anaconda3/envs/smalify/lib/python3.8/pickle.py", line 1210, in load
dispatchkey[0]
File "/home/jsj/anaconda3/envs/smalify/lib/python3.8/pickle.py", line 1526, in load_global
klass = self.find_class(module, name)
File "/home/jsj/anaconda3/envs/smalify/lib/python3.8/pickle.py", line 1577, in find_class
import(module, level=0)
ModuleNotFoundError: No module named 'numpy.core.multiarray\r'
I have installed numpy, I searched this error, It told me that that is because the pickle files were saved in windows, and I tried to read it in Linux , could you help me to solve this?
Thanks

I fix this error by solution mentioned above, I change 3 pkl files:
my_smpl_data_00781_4_all.pkl
walking_toy_symmetric_pose_prior_with_cov_35parts.pkl
symIdx.pkl

Where can we download my_smpl_data_00781_4_all.pkl？


k3s Agent node cannot communicate with Server node

Environmental Info:
K3s Version:
k3s version v1.18.9+k3s1 (630bebf9)
Node(s) CPU architecture, OS, and Version:
Master node: Ubuntu VM in MS Azure, public ip:<IP_ADDRESS> , private ip: <IP_ADDRESS>
Worker node: Ubutnu machine at home (Ubuntu machine is connected to the home router and is behind NAT). Private ip is <IP_ADDRESS>
Cluster Configuration:

1 master and 1 worker as described above.
Describe the bug:

Worker node cannot connect to the master node, and therefore, does not appear in the list of nodes at the master node. It seems my k3s worker node is trying to connect to the private ip of the master node in Microsoft Azure (see below the logs at the worker node).  However, it should connect to the public ip of the master node.

Actual behavior:

Worker node does not join the master node.
Additional context / logs:

Okt 02 11:31:10 k3sworker-VirtualBox k3s[2702]: time="2020-10-02T11:31:10+02:00" level=info msg="Preparing data dir /var/lib/rancher/k3s/data/688c8ca42a6cd0c042322efea271d6f3849d3de17c850739b0da2461f6c69e
Okt 02 11:31:12 k3sworker-VirtualBox k3s[2702]: time="2020-10-02T11:31:12.132544121+02:00" level=info msg="Starting k3s agent v1.18.9+k3s1 (630bebf9)"
Okt 02 11:31:12 k3sworker-VirtualBox k3s[2702]: time="2020-10-02T11:31:12.133077045+02:00" level=info msg="module overlay was already loaded"
Okt 02 11:31:12 k3sworker-VirtualBox k3s[2702]: time="2020-10-02T11:31:12.161766116+02:00" level=info msg="module br_netfilter was already loaded"
Okt 02 11:31:12 k3sworker-VirtualBox k3s[2702]: time="2020-10-02T11:31:12.167523195+02:00" level=info msg="Running load balancer <IP_ADDRESS>:45247 -> [<IP_ADDRESS>:6443]"
Okt 02 11:31:12 k3sworker-VirtualBox k3s[2702]: time="2020-10-02T11:31:12.705351153+02:00" level=info msg="Logging containerd to /var/lib/rancher/k3s/agent/containerd/containerd.log"
Okt 02 11:31:12 k3sworker-VirtualBox k3s[2702]: time="2020-10-02T11:31:12.706210950+02:00" level=info msg="Running containerd -c /var/lib/rancher/k3s/agent/etc/containerd/config.toml -a /run/k3s/container
Okt 02 11:31:12 k3sworker-VirtualBox k3s[2702]: time="2020-10-02T11:31:12.708451531+02:00" level=info msg="Waiting for containerd startup: rpc error: code = Unavailable desc = connection error: desc = "t
Okt 02 11:31:13 k3sworker-VirtualBox k3s[2702]: time="2020-10-02T11:31:13.747637480+02:00" level=info msg="Updating load balancer server addresses -> [<IP_ADDRESS>:6443 <IP_ADDRESS>:6443]"
Okt 02 11:31:13 k3sworker-VirtualBox k3s[2702]: time="2020-10-02T11:31:13.748197339+02:00" level=info msg="Connecting to proxy" url="wss://<IP_ADDRESS>:6443/v1-k3s/connect"

solved with the use of --node-external-ip flag.


[Bug] Unable to download resume as PDF

Is there an existing issue for this?

[X] Yes, I have searched the existing issues and none of them match my problem.

Product Variant
Cloud (https://rxresu.me)
Current Behavior
Hi, When I click on download PDF icon, its not getting downloaded as PDF, rather its getting downloaded as unknown file type. I am not even able to attach the downloaded file in this ticket unfortunately!
Expected Behavior
Resume should download as PDF
Steps To Reproduce
No response
What browsers are you seeing the problem on?
No response
What template are you using?
None
Anything else?
No response

Hi, I am attaching the screenshot of how it downloads when I click on 'download as PDF' icon please

Struggling myself after following the tutorial here: https://www.youtube.com/watch?v=JTbwzIoJe-A
Except I just get a new blank tab in Chrome with no downloads.

I had the same problem and after searching for solutions on the issues page, I could download it after changing the resume title to pure English characters, specifically in my case, "test". Hope this trick could help others.

No even with an English title it doesn't work.


bug: gui-client smoke test is flaky

https://github.com/firezone/firezone/actions/runs/8104640577/job/22151626943#step:11:36
This was on a PR where I was suppressing a Clippy lint that shouldn't possibly have affected this for Windows 2019, and not for Windows 2022, or any other platform.

It happened on Ubuntu 22.04, too https://github.com/firezone/firezone/actions/runs/8365676251/job/22904084776

Closing in favor of #3972


[Snyk] Security upgrade openjdk from 17-jdk-alpine to 24-ea-12-jdk-oraclelinux8

Snyk has created this PR to fix 4 vulnerabilities in the dockerfile dependencies of this project.
Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image.
Snyk changed the following file(s):

build/maven/Dockerfile

We recommend upgrading to openjdk:24-ea-12-jdk-oraclelinux8, as this image has only 30 known vulnerabilities. To do this, merge this pull request, then verify your application still works as expected.
Vulnerabilities that will be fixed with an upgrade:

Issue
Score

Out-of-bounds Read SNYK-ALPINE314-APKTOOLS-1533752
  714

Off-by-one Error SNYK-ALPINE314-LIBTASN1-3173577
  714

Buffer Overflow SNYK-ALPINE314-OPENSSL-1569445
  714

Buffer Overflow SNYK-ALPINE314-OPENSSL-1569445
  714

Out-of-bounds Write SNYK-ALPINE314-ZLIB-2976174
  714

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
Max score is 1000. Note that the real score may have changed since the PR was raised.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

@tejasbeehyv Found this vulnerability. Can you please look into this upgrade the base images as required?


For certain pdb data cartoons and ropes throw, licorice works

An example of this:
https://repl.it/GpDA/9
Just the PDB data:
http://trachel-srv.cs.haifa.ac.il/rachel/ppi/themes/cgi/getPDB_var.php?name=e2qpzA2
The exception:
Uncaught (in promise) TypeError: Cannot read property 'traceAtomIndex' of undefined
    at $o.get traceAtomIndex [as traceAtomIndex] (ngl.js:21)
    at Vo.getAtomIndexByType (ngl.js:21)
    at Object.n [as get] (ngl.js:25)
    at Object.i [as next] (ngl.js:25)
    at s (ngl.js:8)
    at ds.getPosition (ngl.js:8)
    at fs.getPosition (ngl.js:25)
    at fs.getSubdividedPosition (ngl.js:25)
    at ms.<anonymous> (ngl.js:25)
    at Go.eachPolymer (ngl.js:22)

Thanks, can reproduce. Is a bug. Is due to the fact that the chain is cyclic and at the same time has a break in the middle.


README: Rework to match new reality

There are some notable architectural changes we made; for example,
the agent now directly tells rpm-ostree to upgrade.
Rewriting this was helpful for me to ensure I understand it all,
and hopefully for others!

That looks sane to me. Thanks!


[Bug] Themes settings hidden and infinite loading

Describe the Bug

Betterdiscord starts with discord but doesn't show in the settings,  themes and etc...
To Reproduce

Start discord
Expected Behavior

To have themes settings
Screenshots

Discord Version

Stable 78727 (b2380a5)
Additional Context

We need more information here.

Have you attempted to run the repair options in the installer (theres an option specifically for infinite loading).
Does the console contain any errors? (access it through Ctrl + Shift + I then going to the console tab at the top).
Are you absolutely sure you have the latest installer?


[monitoring] issue with rancher-monitoring in a k3s cluster

Hi everyone,
I am unable to install monitoring on my k3s cluster via rancher 2.5.5, every pods is running, but the solution not work.
In particular, I notice that pushprox-clients are unable to contact the pushprox-server.
By installing the various components separately without rancher, they work (there is not the pushprox)
Is there the possibility to remove the pushprox from the deployment or is it essential for rancher?
Has anyone with a k3s cluster had similar issues?
Thanks.

@iioragg What version of Monitoring V2 do you have deployed?
Also if you click on the Edit as YAML view when deploying the Monitoring V2 chart, is the correct PushProx (k3sServer, found here in the values.yaml) deployed?
Context
The purpose behind k3sServer is in order to allow you to scrape metrics from the k3s server nodes (e.g. those that correspond to kube-controller-manager, kube-scheduler, and kube-proxy for k3s), even in a hardened cluster setup (that blocks all inbound communication to nodes only). Without PushProx, you will be unable to collect these metrics.
The way this is accomplished is via having the pushprox-clients reach out to a pushprox-server to establish a connection which will be used by Prometheus to scrape metrics by proxying requests to the pushprox-clients through pushprox-server.
One explanation for why you might be encountering these issues is that the pushprox-clients are unable to make outbound requests to the pushprox-server to establish the connection due to firewall rules on your nodes or pods.


Add v2.9.2 support

Issue #, if available: N/A
Description of changes: Add v2.9.2 support.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@rafidka I believe this PR is targeting v2.8.1 instead of v2.9.2.


fw_pos_control_l1 move to WQ with uORB callback scheduling

Requires #12207 before merging.
Background - #12207

tested on Pixhawk1 V3 fixed wing
Modes Tested
mission Mode: no issue
Altitude Mode: no issue
Stabilized Mode: no issue
rtl mode: no issue
pr log:
https://review.px4.io/plot_app?log=4d2703bf-3c52-44ae-93cd-b29cf236ebdb
master log:
https://review.px4.io/plot_app?log=1c38da3d-622f-4c2b-b526-e1435c0867e7


RKE2: "Additional Manifest" field containing secrets are visible to all users

We are using Rancher to provision RKE2 clusters with the vSphere provider, and those clusters use the Cisco ACI CNI.
To bootstrap this CNI, we apply its Kubernetes manifests (CRDs, ConfigMaps, Secrets, Deployments, and DaemonSets) using the "Additional Manifest" in the cluster configuration. All the manifests, including Secrets and ConfigMaps containing secrets (API keys in this case), are then visible to all users of the cluster if they view the YAML representation of that cluster.
This is obviously a security concern for us.
To generalize on this issue: All the manifests set in the spec.rkeConfig.additionalManifest field on the provisioning.cattle.io/v1 Cluster resource results in those manifests containing secrets to be visible to all users of a cluster.
This is the case on all RKE2 clusters regardless of infrastructure provider.
A possible solution to this could be introducing a new field (that isn't visible to normal users) on the Cluster resource with the same purpose as spec.rkeConfig.additionalManifest, allowing us to apply manifests containing secrets.
I think similar solution was made on RKE1 clusters using this code.
Details
Rancher 2.7.1
RKE2 v1.24.12+rke2r1

The Additional Manifest feature works as expected, and it was not anticipated that users would pass sensitive data there. This is considered a Request for Enhancement

@nickvth I agree with your point completely. The only issue appears when using the new clustertemplate feature, where we are trying to deploy a cluster with GitOps. If you do this, you will be forced to store secrets in git, in clear.

I support this issue.
I think it would be perfect to have additional manifests visibler only to administrators.
Are there  some guidance on how to set the users/cluster configuration to hide additional manifests from non-administrator users? Or do you have something in the backlog to achieve it?


Add image configuration script.

Add a script specific to the image release which will be used to easily configure the adsb-feeder image once booted up. This includes options to add dump1090 heywhatsthat.com max range rings and lat/lon as well as specify PiAware login name and password. This will make configuring the image easier for the end user.

Added when pull request #88 was merged.


ParseErrorWithLoc is private

In current master (76c8892 to be precise), protobuf::text_format::parse_from_str returns protobuf::text_format::parse::ParseErrorWithLoc on error. AFAIK, I can't do anything with this for two reasons:

it's in a private mod. (protobuf::text_format::parse::parse_from_str doesn't warn about returning a private type because it's in that mod, too. The pub use self::parse::parse_from_str; in protobuf::text_format doesn't warn about this because...? I'm not sure. Maybe that's an oversight in rustc itself.) I think this is a total dealbreaker for my code knowing anything other than "there was an error".
it doesn't implement std::error::Error. This one isn't a dealbreaker, but it'd be more convenient if it did implement this so I could just use ? in my function that returns a failure::Error and have it be automatically converted.

it's in a private mod

The function is reexported.

it doesn't implement std::error::Error

Patch welcome.


request trusted user status

as a user I want to request the trusted user status so that i can perform trusted user tasks on healthsites

we are using osm account


Change proxy host to <IP_ADDRESS> in .env.docker.dist

In docker the default ip for binding ports is <IP_ADDRESS>, localhost does not work.
Before fix: localhost:8080 was inaccessible when running npm run bootstrap , npm run start:local
Now: it works as expected.

Perfect, thanks!

No problem.


Failes to compile when zerocopys "derive" feature is active

Describe the bug
probe-rs fails to compile when the derive feature of zerocopy is active. The feature is not enabled by probe-rs, but can be transitively enabled by any other crate in the build tree.
To Reproduce
Try to compile the following minimal project:
Minimal project
Cargo.toml
[package]
name = "probe-rs-test"
version = "0.1.0"
edition = "2021"

[dependencies]
probe-rs = "0.24"
zerocopy = { version = "0.7", features = ["derive"] }

src/lib.rs
use probe_rs as _;
use zerocopy as _;

Expected behavior
Be able to compile probe-rs, even if a feature in another crate is active.
Stacktrace
error[E0252]: the name `FromBytes` is defined multiple times
  --> /home/dev/.cargo/registry/src/index.crates.io-6f17d22bba15001f/probe-rs-0.24.0/src/rtt.rs:59:23
   |
58 | use zerocopy::{AsBytes, FromBytes};
   |                         --------- previous import of the macro `FromBytes` here
59 | use zerocopy_derive::{FromBytes, FromZeroes};
   |                       ^^^^^^^^^--
   |                       |
   |                       `FromBytes` reimported here
   |                       help: remove unnecessary import
   |
   = note: `FromBytes` must be defined only once in the macro namespace of this module

For more information about this error, try `rustc --explain E0252`.
error: could not compile `probe-rs` (lib) due to 1 previous error

Desktop (please complete the following information):
Linux Ubuntu
Additional context
This problem was not present in version 23 of probe-rs, and it prevents us from updating.

Please tak ea look at https://github.com/probe-rs/probe-rs/pull/2614

Wow, I didn't expect anyone to react this fast, thanks.
I can confirm that #2614 fixes the problem as well.

Thanks for the confirmation!


Undefined index: slugs

Hi!
My nginx log full of error messages:
2014/12/05 22:21:02 [error] 15963#0: *79389 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: slugs in /var/www/myhost.com/shared/vendor/gedmo/doctrine-extensions/lib/Gedmo/Sluggable/SluggableListener.php on line 268
PHP message: PHP Warning:  Invalid argument supplied for foreach() in /var/www/myhost.com/shared/vendor/gedmo/doctrine-extensions/lib/Gedmo/Sluggable/SluggableListener.php on line 268" while reading response header from upstream, client: <IP_ADDRESS>, server: api.myhost.com, request: "GET /flies/pink-zonker/8950 HTTP/1.1", upstream: "fastcgi://<IP_ADDRESS>:9000", host: "myhost.com"

@smilesrg Did you manage to find the root cause of this?

@umpirsky not really. Don't remember what was wrong. I think this issue can be closed.

I think I have encountered same problem,
first I get Doctrine\Common\ClassLoader is deprecated. in vendor/doctrine/common/lib/Doctrine/Common/ClassLoader.php,
which leads to Illegal string offset 'slugs' in vendor/gedmo/doctrine-extensions/lib/Gedmo/Sluggable/SluggableListener.php,
which results in ErrorException: Invalid argument supplied for foreach()


Heap buffer overflow in OP_LOADI

The following input demonstrates a crash:
0::J=::J=::J=::I=::J=::J=::J=[]

A bisect suggests that the problem was introduced in 88cd807379152ea3fec5f534e5f4d6ebebd53982.
ASAN report:
==71740==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x61d00001f648 at pc 0x000101b8ddb4 bp 0x7fff5e1d1290 sp 0x7fff5e1d1288
WRITE of size 4 at 0x61d00001f648 thread T0
    #0 0x101b8ddb3 in mrb_vm_exec (mruby:x86_64+0x100168db3)
    #1 0x101b8c4ef in mrb_vm_run (mruby:x86_64+0x1001674ef)
    #2 0x101bc0169 in mrb_top_run (mruby:x86_64+0x10019b169)
    #3 0x101c91bf5 in mrb_load_exec (mruby:x86_64+0x10026cbf5)
    #4 0x101c92545 in mrb_load_file_cxt (mruby:x86_64+0x10026d545)
    #5 0x101a27186 in main mruby.c:227
    #6 0x7fffbdf72234 in start (libdyld.dylib:x86_64+0x5234)

Address 0x61d00001f648 is a wild pointer.

The also provided this simpler input that produces the same crash:
::I=*:I, ::H=0

https://hackerone.com/avisaven dug deeper into the issue and proposed reverting part of 88cd807379152ea3fec5f534e5f4d6ebebd53982:
diff --git a/mrbgems/mruby-compiler/core/codegen.c b/mrbgems/mruby-compiler/core/codegen.c
index f863ef33..d04ff44b 100644
--- a/mrbgems/mruby-compiler/core/codegen.c
+++ b/mrbgems/mruby-compiler/core/codegen.c
@@ -1026,7 +1026,7 @@ gen_assignment(codegen_scope *s, node *tree, int sp, int val)
 #ifndef MRB_DISABLE_STDIO
     fprintf(stderr, "unknown lhs %d\n", type);
 #endif
-    return;
+    break;
   }
   if (val) push();
 }

This appears to resolve the issue.


Prefetch the next file in a PR review

I (and I think a lot of people) review PRs sequentially, or at least semi-sequentially (maybe I focus on one folder first) based on the order in the file tree. When I open a new file, it takes about a second for the file and its content to load. It'd lead to a snappier experience if the extension automatically preloaded the next file in the tree so it's ready instantly when I click on it.

I think we'd really benefit from extension trees knowing when a tree item is rendered for this, since really anything that's currently visible in the tree is a good candidate for fetching additional data. I'll propose this API in a future milestone.
For now, I'll add pre-fetching for every file in a checked out PR when the number of files is < 20.


Restyle demo emoji button and add more emojis

The demo keyboard's emoji button should look more like the native one.

This can be tested in master.


Bug: Derived Hourly Value Emissions Endpoint

Context
The  Derived Hourly Value Emissions Endpoint is not acting as expected. When a user querys data for 2022 on swagger, the system takes a long time to process the query and does not return a file download on swagger.
When remediating the bug need to review the CBS requirements to see if they wanted to enforce a limit on much data a user can query.
Steps to Reproduce

Navigate to the  Derived Hourly Value Emissions  endpoint on swagger
Make a query for 2022. ex. 2022-01-01
Select execute

The system take a long time to process the query and once the query is processed the system does not return a download link. However, if you run a query for 2018-01-01 the system processes the query and returns a file with data. Need to look into the issue going on with 2022 data and see if this issue is happening for other years as well.
When retesting do not use swagger use postman

The system is producing file downloads for 2022


WIP: Fix merge --no-ff

Work in progress at fixing #83
So far I have fixed the short case, but broken the previous working case...

👋 @IanLee1521 ! Any luck with this since your last update? Just ran into the same bug myself while working on a demo.

I haven't, not, but I need to circle back and resolve this and a few other issues. Would be happy to take help over at: https://github.com/ianlee1521/visualizing-git/tree/gh-83-merge-no-ff to try to get to a final working PR though!


Enhancement/issue 840

This pull request includes refactoring and enhancements to the survival analysis tools, particularly focusing on the Cox Proportional Hazards (CoxPH), Weibull Accelerated Failure Time (Weibull AFT), and Log-Logistic Accelerated Failure Time (Log-Logistic AFT) models. The changes improve the flexibility and usability of these models by adding new parameters and restructuring the code.
Refactoring and Enhancements:

Code Refactoring:

Split the _regression_model function into two separate functions: _regression_model_data_frame_preparation and _regression_model_populate_adata.

Cox Proportional Hazards Model:

Added new parameters to the cox_ph function to provide more control over the model fitting process, such as inplace, key_added_prefix, alpha, label, baseline_estimation_method, penalizer, l1_ratio, strata, n_baseline_knots, knots, breakpoints, weights_col, cluster_col, robust, formula, batch_mode, show_progress, initial_point, and fit_options.

Weibull Accelerated Failure Time Model:

Enhanced the weibull_aft function with additional parameters similar to those added to the cox_ph function.

Log-Logistic Accelerated Failure Time Model:

Updated the log_logistic_aft function to include new parameters.

Testing Adjustments:

Modified the _sa_func_test method in tests/tools/test_sa.py to accommodate the updated function signatures, ensuring that tests pass with the new parameters.

This is not a finished PR, but a starting point for a discussion. The Weibull_aft and log_logistic_aft model summaries include multi index rows. The question is, if we can reduce them and how that works with the limitations of the adata.var.
We were hoping to include all the summary data into the adata, so as to have a similar style as scanpy.


Windows: Block (v2) pulling Linux images

Signed-off-by: John Howard<EMAIL_ADDRESS>Fixes https://github.com/docker/docker/issues/24766.
@jstarks @aaronlehmann @friism Deliberately on the permissive side, on Windows (which only uses the v2 registry), put a useful message up front before attempting to pull the layers that the image can't be used on the platform rather than an obscure error on the base layer.
See #24766 for an example of the 'before' experience. After this change:
PS E:\go\src\github.com\docker\docker> docker pull ubuntu
Using default tag: latest
latest: Pulling from library/ubuntu
image operating system "linux" cannot be used on this platform

Although this seems OK, I don't think the if block that you put the code in should be present anymore. I think the code that's there is to support the old base image model that no longer applies. @swernli?

@jstarks I'm not sure... from my reading it looks like this code is intentional to support Windows images in general, not specific to the old base image only mechanisms.  Maybe we can take a look together and verify what I'm seeing.

@jhowardmsft @jstarks Yeah, looking through this again, this does seem like the right place to me.  This is code we still need to support our expected pull scenarios, and this block is in the right place.

We talked internally. It makes sense to go ahead and take this (for 1.13 probably), and do the cleanup as a separate PR. @swernli if you don't intend to get started on the cleanup right away, you should probably open an issue to track it.

ping @aaronlehmann @stevvooe PTAL

LGTM

LGTM


UI: Fixes the added storage tags issues on adding primary storage

Description
This PR fixes the added storage tags issues on adding primary storage

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[x] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale

[ ] Major
[x] Minor

Bug Severity

[ ] BLOCKER
[ ] Critical
[ ] Major
[ ] Minor
[ ] Trivial

Screenshots (if appropriate):
How Has This Been Tested?

@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

UI build: :heavy_check_mark:
Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/6438 (SL-JID-1679)


Add nominee: Application development to aid less privileged

Automatic addition of a new nominee submitted through the online form available at https://digitalpublicgoods.net/submission

Duplicate of #137. Closing in favor of that one.


Pictures shows but then disappears

https://beta.kodadot.xyz/rmrk2/gallery/16037174-f809131fc9c1dbac31-MKDIR-GOING_WALKABOUT-00000001

https://user-images.githubusercontent.com/5887929/229201371-0acb7b39-a238-4454-8c76-43544dfaa1f1.mov

@yangwao is this still an issue? I see this

seems showing well, not sure what was fixed, thanks for notice!


Mirrored difference mode for lane centering diagnostics

This is a feature request for the following video postprocessing: given a frame X, return X.roll_compensate() - X.roll_compensate().mirror_left_right(), possibly with rescaling/s-curve postprocessing to look more appealing. (roll_compensate brings the frame into calibrated view)
The reason is to provide an instant visual diagnostic for lane centering accuracy on straight roads. If the Comma is perfectly centered in the lane, the left and right lanelines should overlap. Moreover, because the formula incorporates differencing, the parity of non-overlaps shows whether the car is left or right of center.

If you can provide a simple proof of concept script to do this, let me know. I wrote this project in a way that dances outside of comma's codebase. Going in is quite a step though.


build: add rust_toolchain

One may install/use stable channel by default locally, and will get
error: failed to load manifest for workspace member `/Users/chris/gitfiles/HAOYUatHZ/helios/cli`

Caused by:
  failed to parse manifest at `/Users/chris/gitfiles/HAOYUatHZ/helios/cli/Cargo.toml`

Caused by:
  the cargo feature `different-binary-name` requires a nightly version of Cargo, but this is the `stable` channel
  See https://doc.rust-lang.org/book/appendix-07-nightly-rust.html for more information about Rust release channels.
  See https://doc.rust-lang.org/cargo/reference/unstable.html#different-binary-name for more information about using this feature.

when compiling this project.
Adding rust-toolchain to specify a channel can avoid this problem

Oh that's cool. Didn't know about this feature. Thanks for the contribution!


Validate deletion policy when its value is taken form a parameter

Problem is well described in the following article:
https://www.unixdaemon.net/cloud/cloudformation-annoyance-deletion-policy-parameters/.

deletion policy still valid only when passed as a string literal only. Either we apply for the AWS rules and validate deletion policy same as AWS or provide our own mechanizm for setting this from command line - this could be a nice feature, but maybe a not necessary one - AWS policy can change any time (unlikely, since this has already been reported as a feature request a few years ago, but still..)

Let's go with simplest way - validate deletion policy same as AWS and return message with comprehensive description why it is not valid.


Weird drop in predictions

Hi,
I am trying to get your model to work with financial data for my Thesis. However, the predictions seem to be shifted by quite a bit. I added an image to show this. Do you have any idea what could cause this shift? I am currently doing multivariate predict univariate (MS) with 6 features, including the target.
prediction.pdf
Some of my parameters are:
--features MS
--target close
--freq h
--seq_len 96
--label_len 48
--pred_len 96
--enc_in 6
--dec_in 6
--c_out 1
--d_model 512
--n_heads 8
--e_layers 2
--d_layers 1
--d_ff 2048
--dropout 0.05
--embed timeF
--activation gelu
--num_workers 10
--itr 2
--train_epochs 10
--batch_size 32
--patience 3
--learning_rate 0.0001
--loss mse
Thanks for your efforts and I hope you can help me out!

BTC_USD_CEX.csv
Great, here is my current dataset

@zhouhaoyi Could you find the cause of this problem? I tried several different (financial) datasets, but I keep getting the same problem. Maybe I am using the wrong parameters or I need to preprocess the data more? Please let me me know if you found something.

We are checking on the data. Please watch our repo for updates.

@zhouhaoyi any updates? I need to get this working for my thesis.

BTW, in the prediction.pdf file I provided, you can see what I mean with the weird drop

The distribution of your training and testing sets of data is very different, and it will be difficult to predict.

我认为你在用这个模型之前先做下平稳性检验，或者只检验下相互依赖关系。如果时间序列前后的依赖关系很弱，多么好的模型估计都难有效果


Keep indentation in help/usage text

Fix issue by adding custom replaceAll function and replacing all newlines by newlines+spaces in command usage description
Some new spaces would align command usage and fulfill user needs
What type of PR is this?

bug

What this PR does / why we need it:
I've added new custom function into the template. I assume this is fine because similar workaround has been introduced for join function. I didn't fix indent if user just types in long usage without any newlines and I expect it isn't possible, cause user screen width is unknown
Which issue(s) this PR fixes:
Fixes #1293
Testing
Tested by using the test case provided by user, by adding/removing some newlines
Release Notes

User may use newlines to correctly align usage section of help.

yes, surely! let me do it later on today

Hi @kchugalinskiy! I downloaded your branch and tested my example code in my issue, and it almost works. It indents it, but not all the way:
$ ./foo
NAME:
   foo - sample usage

USAGE:
   foo [global options] command [command options] [arguments...]

COMMANDS:
   run  this is a long help output for the run command, long usage
     output, long usage output, long usage output, long usage output
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h  show help (default: false)

I'm not sure if thats by your design, however I was expecting it to indent it until where the usage help starts.

@WestleyK could you please give a sample output of how it should work in your opinion? I was just indenting everything that is newline-separated. I cannot calculate your screen width (well, actually I could use ncurses, but I would prefer not to summon demons)

Yeah, I dont think summoning demons/daemons would be the solution here, Lol!
I would normally expect an output like this:
COMMANDS:
   run  this is a long help output for the run command, long usage
        output, long usage output, long usage output, long usage output  <-- notice the indent
   help, h  Shows a list of commands or help for one command

See how it indents the newline until the usage starts.
However, this indent amount would change. For example if you run: (edited output)
$ ./foo run --help
NAME:
   foo run - this is a long help output for the run command, long usage
             output, long usage output, long usage output, long usage output
[...]

It would need to indent it more. And this would change from command to command.
I'm honestly not sure if this is an easy fix. Indenting it like you have here is defiantly better then nothing, however I'm not sure if this "ideal" indenting is possible with this cli package.

PR #1460 fixes this. Can I close this PR ?


Unexpected results when using ak.from_arrow()

I'm getting a lot of mileage out of zero-copy (I think) conversions between awkward and Arrow. Thanks for all that functionality. However, when I introduce some slicing, I see some mismatches. Example below.
import numpy as np # 1.19.0
import awkward as ak # 1.0.1
import pyarrow as pa # 2.0.0

np_arr = np.random.normal(0,1,10)
ak_arr = ak.Array(np_arr)
pa_arr = ak.to_arrow(ak_arr)

These are all identical, as expected.

>>> print(np_arr)
[ 0.12213336  0.07918481 -0.02079451  0.52849207  0.56343541  0.08746807
  0.56490973 -0.47526351  0.295584    0.27810744]
>>> print(ak_arr)
[0.122, 0.0792, -0.0208, 0.528, 0.563, 0.0875, 0.565, -0.475, 0.296, 0.278]
>>> print(pa_arr)
[
  0.122133,
  0.0791848,
  -0.0207945,
  0.528492,
  0.563435,
  0.0874681,
  0.56491,
  -0.475264,
  0.295584,
  0.278107
]

I would expect to see the same values here, but it looks like awkward is going to the beginning of the array.
>>> print(pa_arr[5:])
[
  0.0874681,
  0.56491,
  -0.475264,
  0.295584,
  0.278107
]
>>> print(ak.from_arrow(pa_arr[5:]))
[0.122, 0.0792, -0.0208, 0.528, 0.563]

I actually discovered this with jagged arrays, but put the minimal flattened example above.
>>> a = ak.to_arrow(ak.Array([[1],[],[2,3,4],[5]]))
>>> a
<pyarrow.lib.ListArray object at 0x18fe05288>
[
  [
    1
  ],
  [],
  [
    2,
    3,
    4
  ],
  [
    5
  ]
]

>>> ak.from_arrow(a[2:])
<Array [[1], []] type='2 * option[var * ?int64]'>

My use case is putting jagged arrays into pandas dataframes without copying (or making list of lists) by converting awkward to Arrow and then using pyarrow's fletcher pandas ExtensionArray to get stuff like this:

Jet_pt
MET_pt

0
[39.65625  29.9375   23.09375  18.0625   17.6875   15.609375]
46.0749

1
[76.75      61.84375   58.875     52.0625    22.171875  17.28125
29.7964

17.09375   15.453125  15.2578125]

2
[23.109375  16.453125  15.5703125]
82.0033

3
[59.8125    45.3125    35.21875   22.03125   19.046875  15.796875
77.7026

15.6328125]

4
[55.71875   47.84375   44.46875   42.875     25.578125  22.953125
29.9007

20.890625  19.5       15.8671875]

And slicing on this gives me valid Arrow arrays, but converting back to awkward in order to actually compute things, fails:
>>> ak.from_arrow(df.iloc[2:]["Jet_pt"].values.data)
<Array [[39.7, 29.9, 23.1, ... 16.5, 15.6]] type='3 * option[var * ?float32]'>

From @trickarcher:

Hey Jim, I was going through the Issue #624 and it was related to ak.from_arrow.  I was able to reproduce the issue. I tried forming sliced array from buffers in the pyarrow ecosystem, and got a similar failure.

 >>> import awkward as ak
 >>> import pyarrow as pa
 >>> pa_arr=pa.array([1,2,3,4,5,6,7,8,9,10])
 >>> pa_arr
 <pyarrow.lib.Int64Array object at 0x7f3a0d009b20>
 [
   1,
   2,
   3,
   4,
   5,
   6,
   7,
   8,
   9,
   10
 ]
 >>> pa_arr.buffers()
 [None, <pyarrow.lib.Buffer object at 0x7f3a05b960f0>]
 >>> pa_arr[5:].buffers()
 [None, <pyarrow.lib.Buffer object at 0x7f3a05b8cd70>]
 >>> import numpy as np
 >>> pa.Array.from_buffers(pa.from_numpy_dtype(np.int64), 5, pa_arr[5:].buffers())
 <pyarrow.lib.Int64Array object at 0x7f3a05b95700>
 [
   1,
   2,
   3,
   4,
   5
 ]

However, the sliced buffers are totally different from the original buffers. How can we debug further from here?

Actually, this example and @aminnj's are both showing the same thing: pyarrow's buffers are defined by a pointer, a length, and an offset (much like ours in Awkward, which we call ptr, length, and offset in C++). When you and I wrote from_arrow, we assumed that pyarrow's buffers() was giving offset-adjusted pointers (like our data()), but apparently it was giving non-adjusted pointers (like our ptr).
That's why pa.array(np.arange(10))[6:] is being turned into ak.Array([0, 1, 2, 3]) instead of ak.Array([6, 7, 8, 9]). It has the right buffer and the right length (4), but it should be starting at 6, not starting at 0.
So the problem is that we're interpreting the output of pyarrow's buffers() incorrectly—we additionally need to get an offset number from somewhere. I don't know where that is, but the way to search for it is to open this up interactively and call dir on things. It's a number that would be 6 (items) or 48 (bytes) in the example above, possibly on the pyarrow object, possibly on the Python buffer returned by buffers(), possibly somewhere else, but accessible from the pyarrow object.
We'll have to check this on pyarrow arrays with missing values, since they do this with a bitmask, which can't be sliced at non-byte boundaries. (In practice, we'd have to build the Awkward Array node with a length + offset, then slice the Awkward node by the offset. We'd only want to do that if the offset is non-zero, since that would force a conversion of the BitMaskArray into a ByteMaskArray to be able to cut it at arbitrary places, and that's pointless when the place is zero.)
We didn't notice it before because we weren't slicing pyarrow arrays before converting them. This is just another illustration of how inadequate even 100% test coverage is! (Remember how I added a bunch of tests to make sure that every line of code on the function is tested? That doesn't help if the thing we're missing is a value, like this offset not being zero!)
I'm not in a good position to investigate this now, but let me know here if you find something. Thanks!

I got a chance to look at it on my computer, and I can confirm:
>>> array = pa.array(np.arange(10))[6:]
>>> array
<pyarrow.lib.Int64Array object at 0x7fcc999f4280>
[
  6,
  7,
  8,
  9
]
>>> mask, content = array.buffers()
>>> mask
>>> content
<pyarrow.lib.Buffer object at 0x7fcc99d053b0>
>>> np.frombuffer(content, dtype=np.int64)
array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])

The Python buffer object returned by array.buffers() hides Arrow's equivalent of an "offset" parameter. It also hides the "length"; we must be getting that from len(array) (which is 4).

Here it is: it's an attribute called offset, which is attached to the pyarrow array itself:
>>> array.offset
6
>>> pa.array(np.arange(10)).offset
0
>>> pa.array(np.arange(10))[6:].offset
6
>>> pa.array(np.arange(10))[2:].offset
2

Hi Jim, thanks for such a fast response. I was playing a bit more yesterday and for flat arrays, found I could do
>>> import pyarrow as pa
>>> import awkward1 as ak
>>> import numpy as np
>>> orig = pa.Array.from_pandas([1,2,3,4,5])
>>> a = orig[2:4]
>>> _, buffer = a.buffers()
>>> np.frombuffer(buffer, dtype=int)
array([1, 2, 3, 4, 5])
>>> np.frombuffer(buffer.slice(a.offset * a.type.bit_width//8), dtype=int)[:len(a)]
array([3, 4, 5])

but I can see how it's not trivial when there's a mask or jaggedness.
Anyway, as a solution in my current code, I put
        if array_arrow.offset != 0:
            array_arrow = array_arrow.take(np.arange(len(array_arrow)))

before I try convert an arrow array into awkward.

The tests haven't been added yet, but PR #625 now passes through these offsets:
>>> arrow_array = ak.to_arrow(ak.Array(np.arange(10)))
>>> ak.from_arrow(arrow_array[6:])
<Array [6, 7, 8, 9] type='4 * int64'>

>>> arrow_array = ak.to_arrow(ak.Array([[0, 1, 2], [], [3, 4], [5], [6, 7, 8, 9]]))
>>> ak.from_arrow(arrow_array[2:])
<Array [[3, 4], [5], [6, 7, 8, 9]] type='3 * var * int64'>

Anyway, as a solution in my current code, I put
        if array_arrow.offset != 0:
            array_arrow = array_arrow.take(np.arange(len(array_arrow)))

before I try to convert an arrow array into awkward.

I think you're relying on the fact that the take copies the data into a new array that has offset=0. If the zero-copy aspect was valuable, you'll want this fix.
Thanks for pointing it out, though! Seeing the wrong answers come out of a function (as opposed to an error or something) is the most disturbing kind of bug.

Great, I'll follow that PR so I can eventually switch to a truly zero-copy solution! :)

I saw this in the release notes, but I'm having some trouble understanding the full impact on my analysis code. Does this also impact analyses which convert to/from parquet files too? And is it only for slices? (ie. does it also impact masking?). Thanks!

I saw this in the release notes, but I'm having some trouble understanding the full impact on my analysis code. Does this also impact analyses which convert to/from parquet files too? And is it only for slices? (ie. does it also impact masking?). Thanks!

It's worth testing your analysis code on the newly released version. This is a bug that can give you the wrong values when converting an Arrow array to an Awkward Array, and the chain Parquet → Arrow → Awkward goes through Arrow.
However, you only get the wrong values if the Arrow arrays have been sliced in pyarrow. That's because the zero-copy buffers that pyarrow gives us for, say
>>> import pyarrow as pa
>>> array = pa.array([0, 1, 2, 3, 4, 5])
>>> sliced = array[2:]
>>> sliced
<pyarrow.lib.Int64Array object at 0x7fdb92cc6ca0>
[
  2,
  3,
  4,
  5
]

do not explicitly exclude the sliced-off parts. That is,
>>> _, raw_data = sliced.buffers()
>>> np.frombuffer(raw_data, np.int64)
array([0, 1, 2, 3, 4, 5])

starts with 0 even though sliced is supposed to start with 2. In the Arrow → Awkward conversion, we should have been looking at the
>>> sliced.offset
2

to find the right part of raw_data to consider as part of the Awkward Array. With the PR, that "wrong answer bug" has been fixed.
Now that I've written this up in a scary way, I doubt it affects conversions from Parquet through Arrow to Awkward Array because I doubt that pyarrow arrays get sliced after the conversion from Parquet and before the conversion to Awkward. That's how this bug survived so long: nobody was doing any non-trivial work on the Arrow arrays, so the assumption that offset == 0 always held. But that's my assumption of how the Parquet → Arrow conversion works, and I didn't write that code, so it remains only a guess.

It's worth testing your analysis code on the newly released version. This is a bug that can give you the wrong values when converting an Arrow array to an Awkward Array, and the chain Parquet → Arrow → Awkward goes through Arrow.
However, you only get the wrong values if the Arrow arrays have been sliced in pyarrow. That's because the zero-copy buffers that pyarrow gives us for, say
>>> import pyarrow as pa
>>> array = pa.array([0, 1, 2, 3, 4, 5])
>>> sliced = array[2:]
>>> sliced
<pyarrow.lib.Int64Array object at 0x7fdb92cc6ca0>
[
  2,
  3,
  4,
  5
]

do not explicitly exclude the sliced-off parts. That is,
>>> _, raw_data = sliced.buffers()
>>> np.frombuffer(raw_data, np.int64)
array([0, 1, 2, 3, 4, 5])

starts with 0 even though sliced is supposed to start with 2. In the Arrow → Awkward conversion, we should have been looking at the
>>> sliced.offset
2

to find the right part of raw_data to consider as part of the Awkward Array. With the PR, that "wrong answer bug" has been fixed.
Now that I've written this up in a scary way, I doubt it affects conversions from Parquet through Arrow to Awkward Array because I doubt that pyarrow arrays get sliced after the conversion from Parquet and before the conversion to Awkward. That's how this bug survived so long: nobody was doing any non-trivial work on the Arrow arrays, so the assumption that offset == 0 always held. But that's my assumption of how the Parquet → Arrow conversion works, and I didn't write that code, so it remains only a guess.

Thanks for the explanation - now it's clear. I'll run a quick test to check and report back if something changed in my analysis with the new version, but I suspect that you're right that it shouldn't be an issue for me

Thanks for the explanation - now it's clear. I'll run a quick test to check and report back if something changed in my analysis with the new version, but I suspect that you're right that it shouldn't be an issue for me


Add read level consistency of unstrict majority and error metadata

cc @xichen2020 @martin-mao @cw9 @kobolog
This introduces the concept of "unstrict majority" for reads such that applications can use to always attempt to achieve majority but in the case when all nodes have answered and less than the majority of nodes have responded successfully to go ahead nonetheless and return with a successful result.
This means that if two nodes are healthy the application will always read from the majority of nodes to ensure data is merged from both healthy nodes to read what you put in at consistency level majority.  It does mean in an extreme failure case of two nodes being unhealthy that the application can continue to serve reads knowingly with no guarentees of serving partial reads.

Coverage increased (+0.1%) to 78.206% when pulling 893f313b3e860c60efa01ab25781bedfaf35efea on read-consistency-unstrict-majority into 9ff1ee086c2e985b01965e4be8aa38370b9201af on master.

As a sidenote, I suggest that we start filling in PR description & details apart from CC'ing people to review it. While we can just talk to each other to figure out what's this about, I'd expect new team members and potential external users to be at least confused, most likely end up ignoring PRs and even feel excluded.

Added a PR description.  Agreed @kobolog.

Coverage decreased (-0.006%) to 78.054% when pulling cf3426abe2b1ae85ad1d504c486fd3547c452d58 on read-consistency-unstrict-majority into 9ff1ee086c2e985b01965e4be8aa38370b9201af on master.


ui: set max brightness when showing the QR code

resolve: #28906

how about this one?

convert to draft. we can use device() to access the device class after https://github.com/commaai/openpilot/pull/28904

it still goes through the filter, so it takes a while to ramp up and down from max brightness. we probably want it instantly here, right @adeebshihadeh?

I just remembered we won't even get full brightness anyway because of brightnessd. I'll have to think about this one some more.

it still goes through the filter, so it takes a while to ramp up and down from max brightness. we probably want it instantly here, right @adeebshihadeh?

This should be fine.


angular Not suitable for the front end, only suitable for background management ?

Angular to do the background management program is very good
But it is not suitable for the front end, because it is too big
i used angular-cli
Generated file is too large
1-2MB
if i used jquery, just 100KB
The official did not provide a very good compression program, a house, no matter how beautiful you decorate the inside, if the appearance is very ugly, very few people live in
I hope official can provide very good compression scheme, to dispel the concerns of us, let each of us can proceed to use it
Many times, I am hesitant, want to change jQuery to do my website front end
I love angular, and use it to do the management interface

ng s -prod    Generated file is too large    1-2MB

@iloveyo123u1 This is something to evaluate after these critical upcoming improvements are in place:

Build-time template compiler, which will reduce how much of Angular needs to be shipped at all.
Tree shaking during the production build process. There are multiple paths to do this.

Once these things are working, smoothly, out of the box using CLI, we will all benefit greatly with reasonably compact production assets with almost no effort.  But there is work still to be done by both the core Angular team and the CLI team... but I think those groups wisely do not promise dates or feature details before they ship.

jQuery and Angular 2 have two different usecases. If what you need is a very lightweight library for simple html manipulation, then jQuery might be better suited for you.
The challenges of single page apps often call for more powerful frameworks and that scenario is where Angular 2 shines.
For instance, a marketing site might be very well just need jQuery whereas your main application, thousand of lines long, is made much more maintainable and scalable via the use of Angular 2.
That being said, the upcoming offline compiler will help immensely with payload size - at ngconf a total of 50-60kb was the total payload of an hello-world type app with Angular 2.
@kylecordes currently the CLI already does tree shaking on production builds.

@filipesilva I see Rollup in the dependencies - I assume that is being used for this? Is there a way to flip it off for a build, to see how much benefit is obtained? Obviously these numbers reported there (I am at 800KB for main.js on a tiny example app with "-prod" are not yet in the range discussed at the ng-conf talks and elsewhere.

We currently use SystemJS Builder, which performs tree shaking, for bundling when users do ng build -prod.
For a payload as small as seen in ng-conf the offline compiler is needed. We ran some tests with the CLI and the payload was reduced to similar sizes, but it's not yet ready for general availability.


fix: Throw when prerendered routes have unresolvable content negotiation

Closes #9929
Closes #10102
I'm not positive this is the right solution here, but it definitely isn't breaking any tests and I think it's conceptually sound. The issue is that when prerendering, we don't set the Accept header, meaning routes with both a +page.svelte and +server.ts file with a GET handler will negotiate to the GET handler rather than the page, causing incorrect prerender output. Given that prerendering is supposed to emulate browser behavior (by "visiting" each page), it seems logical to set this header. It certainly fixes the problem in the linked issue.
If a prerender request is made to a route that has unresolvable content negotiation, throws. What this means practically is that you can't prerender a route with both a GET method exported from +server.js and also have a page at that route -- static file servers can't negotiate this request after prerendering, so the behavior is undefined.
This also fixes a minor bug: With the other route options, we used the precedence of +page => +page.server => +endpoint for option resolution. For entries, we were incorrectly using a precedence of +endpoint => +page => +page.server, which is all kinds of weird. I think that might technically be breaking, but it's a very new feature and I don't know anyone who'd argue that it's the correct order of precedence, so I'm in favor of treating it as a fix.
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

[x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
[x] This message body should clearly illustrate what problems it solves.
[ ] Ideally, include a test that fails without this PR but passes with it.

Tests

[x] Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

[ ] If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. Changesets that add features should be minor and those that fix bugs should be patch. Please prefix changeset messages with feat:, fix:, or chore:.

Thinking further on this, it strikes me that if a route is being prerendered then it's a straight-up error to have both a +page.svelte and a +server.js, and we should treat it as such rather than trying to figure out which one 'wins'. Thoughts?

@Rich-Harris
This should be ready to go, with the caveat that I didn't add any dev-time errors. I have no idea where to put them. If you point me at the right spot, I'll add 'em.

@tcc-sejohnson just a quick reminder that it looks like there are a couple comments @dummdidumm left on this PR that haven't been responded to yet

I'm not sure this is the direction I would have gone in. If you could get either HTML or JSON from the same URL depending on the request header, I would assume we should default to the HTML version. I'm not sure I like the idea of forcing the user to restructure their URLs because they turned on pre-rendering. If there's no HTML version then throwing an error makes sense to me. But I do understand the opposite point of view as well and see that Rich had suggested making this an error above (https://github.com/sveltejs/kit/pull/9994#issuecomment-1559428738).

But the point is, you can't get both if you're pre-rendering. The request to the route is made by the SvelteKit crawler -- if you have both a GET endpoint and a page, we have no way of defining what should happen, other than silently just preferring one over the other.

I imagine 95% of the time that users hit this, you've got an HTML page which gets its JSON data from an endpoint at the same URL. It seems like it'd be nice to be able to prerender that HTML page. I don't think the JSON API is something that's really user visible and so if users don't have the ability to access that when prerendering is turned on that seems fine to me.
It's been awhile since I've looked at the prerendering code though. I don't remember how the fetch responses are handled during prerendering and whether this is merely a decision of choosing whether we want to do that or whether it would not be technically feasible to prerender in that scenario.

We could set the accept header to negotiate content while prerendering. Then, using the metadata, prerender the page and / or endpoint with the correct accept header. Maybe only throw an error if the prerendered endpoint is a HTML file? A static server could still serve /about.html, /about and /about.json.
https://github.com/sveltejs/kit/blob/ff6cd45b42d7c61fb60dd1bb0490a2c8be4c522f/packages/kit/src/core/postbuild/prerender.js#L82-L86

this was superseded by #11256, so i'll close it.
while it's true that some static webservers can be configured to do content negotiation, i really don't think that's something we want to get into. the point of static prerendering is to have an output that works more or less everywhere


Fix for #512 & #525

LGTM, @jhoneill?

LGTM, @jhoneill?

Yes, as far as a I can see "O'Neill" would break before and will be OK now. I don't imagine any side effects.

This bug is still present.  The 7.1.1 code is missing the #732 fix.
"'" + (($record.$propertyName) -replace "'","''") + "'"

@sthoen please open a new issue. This may take a bit. Need to upgrade to the latest version of Pester.

Thanks Doug, I have submitted the issue as #920.
Sebastiaan
On Mon, Sep 14, 2020 at 4:33 PM Doug Finke<EMAIL_ADDRESS>wrote:

@sthoen https://github.com/sthoen please open a new issue. This may
take a bit. Need to upgrade to the latest version of Pester.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dfinke/ImportExcel/pull/732#issuecomment-692348814,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHXFZQKOP46Z53ZCTOK6N43SF2K4VANCNFSM4JPTSN7Q
.


Custom element not found: content-card-another-mvg

Always get the message "Custom element not found: content-card-another-mvg" on my custom card.

I already added the ressource URL: "/local/content-card-another-mvg.js"
I also added the folder and all files to "homeassistent/custom_components/another_mvg/"
I'm using HACS

Any Ideas?
Thank you in advanced.

Regarding this error message, it looks like the file is missing. This was a separate step in the manual and the file is not located in the another_mvg folder.
I assume that you restarted HA after installing the addon and cleared your frontend cache. I also assume that you added the resource as JavaScript.
To check if the file is in the correct folder, try to open it in your browser. I recommend to use your PC instead of the smart phone browser.
http://<IP_ADDRESS>:8123/local/content-card-another-mvg.js
replace <IP_ADDRESS> with the IP of your HA server. If you changed the standard port 8123 you also have to change this in the url.
If you get an 404 error, make sure the content-card-another-mvg.js is in the correct folder.
It has to be in the www folder. This folder is located in the same folder than your configuration.yaml


Issue with configuring typings for d3

I am trying to follow the steps specified to configure my environment to include d3 code in my custom visual. But I get the following error and cant seem to figure out how to fix it.
typings install--save --global dt~d3

Found a workaround resolution for the issue here.
https://github.com/Microsoft/PowerBI-visuals/issues/113


bug - Tab-complete errors for /moneyadm

Hi, running the latest snapshot with Paper-149 and encountering an issue when I try and use the /moneyadm commands.
I can type /moneyadm rm or /moneyadm add just fine, but once I continue typing after add or rm I get this message in chat for every additional keystroke -  "An internal error occurred while attempting to tab-complete this command." It just continues spamming the chat with this the more I type.
In my console when I get that chat message ingame, I get this error with every keystroke: https://pastebin.com/XcYvRPFx
Not sure how to fix this. It doesn't seem to affect the operation of the command, but fills the logs and I'm worried there might be something worse happening under the hood.
Thanks in advance for your help!

I’m afraid the next pre-release is gonna take some time to be done. I have put a lot of changes on it.
Though, I fixed the autocompleted issues.
You can see the progress I have done on my saved livestream from yesterday.
https://www.youtube.com/watch?v=r6tGSk_5QRg
☺

Hello @yntel,
Can you download the latest pre-release version and verify that the problem got fixed?
https://github.com/nikosgram/Gringotts/releases/tag/2.11.2-SNAPSHOT-rf77e523
Thank you :)
Nikolaos.


bugfix:修复点击服务目录返回为空上还展示上一目录数据和添加table内修改服务信息

Codecov Report

Merging #381 (904f4d9) into v2.6.x_develop (cdb30db) will decrease coverage by 0.07%.
The diff coverage is n/a.

:exclamation: Current head 904f4d9 differs from pull request most recent head 7ee0ec1. Consider uploading reports for the commit 7ee0ec1 to get more accurate results

@@                Coverage Diff                 @@
##           v2.6.x_develop     #381      +/-   ##
==================================================
- Coverage           62.71%   62.63%   -0.08%
==================================================
  Files                 441      441
  Lines               26953    26999      +46
==================================================
+ Hits                16903    16911       +8
- Misses              10050    10088      +38

Impacted Files
Coverage Δ

sops_proxy/utils.py
21.15% <0.00%> (-5.52%)
:arrow_down:

sops_proxy/views.py
25.67% <0.00%> (-2.02%)
:arrow_down:

config/default.py
85.71% <0.00%> (ø)

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 cdb30db...7ee0ec1. Read the comment docs.


Handling of knockoutJS fails to properly register library

KnockoutJS has (I think) an unusual way to register its self under AMD... its code looks like this (ref here):
// Support three module loading scenarios
    if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
        // [1] CommonJS/Node.js
        var target = module['exports'] || exports; // module.exports is for Node.js
        factory(target, require);
    } else if (typeof define === 'function' && define['amd']) {
        // [2] AMD anonymous module
        define(['exports', 'require'], factory);
    } else {
        // [3] No module loader (plain <script> tag) - put directly in global namespace
        factory(window['ko'] = {});
    }

amdclean converts this to:
// Support three module loading scenarios
      if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {
        // [1] CommonJS/Node.js
        var target = module['exports'] || exports;
        // module.exports is for Node.js
        factory(target, require);
      } else if (true) {
        knockout = function (exports, require) {
          return typeof factory === 'function' ? factory(exports, require) : factory;
        }({}, {});
      } else {
        // [3] No module loader (plain <script> tag) - put directly in global namespace
        factory(window['ko'] = {});
      }

This however, does not register the module because the knockoutjs factory does not return anything - it simply adds its methods to the exports provided on input
Anyway I can fix this during the build process?  or get around it?
Thanks in advance.
/Paul.

Hi Greg, have you had a chance to look at this?


Two blackslashes on json output file

It has a small bug in the library, recognizing two backslashes in the output(which should only be one in this case):
// Bug example:
bool write_default_config() {
  auto default_config_file = std::ofstream(config::get_config_file_full_dir());

  if (default_config_file.is_open()) {
    json default_config = {{"steam_path", "C:\\Program Files (x86)\\Steam"}, // I need to use \\ because it is a backslash character, using only \ the compiler doesn't recognize as a backslash character
                     {"clear_appcache", true},
                     {"execute_bcdedit", true},
                     {"execute_sfc", true},
                     {"repair_steamservice", true}};

    default_config_file << default_config.dump(10) << std::endl;
    default_config_file.close();
    return true;
  }
  return false;
}

Output in .json file:
{
          "clear_appcache": true,
          "execute_bcdedit": true,
          "execute_sfc": true,
          "repair_steamservice": true,
          "steam_path": "C:\\Program Files (x86)\\Steam"
}

Correct output should be:
{
          "clear_appcache": true,
          "execute_bcdedit": true,
          "execute_sfc": true,
          "repair_steamservice": true,
          "steam_path": "C:\Program Files (x86)\Steam"
}

Is there any way to show only one backslash instead of two on output?

Okay, I'm starting with json, sorry for that.
Thanks for the answer.

No worries! Feel free to ask any questions!


Token endpoint prints stacktrace with ERROR level when nonexistent client_id is used

When calling token endpoint with improper input, other than client_id, for example bad grant_type, it properly shows the message with INFO level, without any stack trace:
$ curl "http://localhost:8090/oauth/token?grant_type=bad&scope=read%20write"
INFO 5820 --- [nio-8090-exec-6] o.s.s.o.provider.endpoint.TokenEndpoint  : Handling error: UnsupportedGrantTypeException, Unsupported grant type: bad
But when putting the bad client id:
$ curl "http://localhost:8090/oauth/token?grant_type=bad&scope=read%20write&client_id=bad"
we get an internal error and stacktrace with ERROR log level:
2015-04-02 11:35:49.373 ERROR 5820 --- [nio-8090-exec-7] p.c.ClientCredentialsTokenEndpointFilter : An internal error occurred while trying to authenticate the user. org.springframework.security.authentication.InternalAuthenticationServiceException: No client with requested id: aaa_bad 	at org.springframework.security.authentication.dao.DaoAuthenticationProvider.retrieveUser(DaoAuthenticationProvider.java:110) etc...

I can't reproduce your problem. You seem not to have authenticated the requests you are sending so maybe your server isn't secure properly? Can you try with the integration test samples and/or link to a sample project that demonstrates your problem more clearly, please?

Here is the the sample project:
@SpringBootApplication
@EnableWebSecurity
@EnableAuthorizationServer
public class DemoApplication extends WebSecurityConfigurerAdapter  {
    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }

  public void configure(AuthenticationManagerBuilder auth) throws Exception {
    auth.inMemoryAuthentication()
        .withUser("user").password("password").roles("USER");
  }

  protected void configure(HttpSecurity http) throws Exception {
    http.authorizeRequests()
               .antMatchers("/oauth/authorize").authenticated().and().httpBasic();
  }

  @Bean AuthorizationServerConfigurer ac() {
    return new AuthorizationServerConfigurerAdapter() {
      @Autowired
      AuthenticationManager authenticationManager;

      public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception {
        endpoints.authenticationManager(authenticationManager);
      }

      public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
        clients.inMemory()
          .withClient("client1")
                  .authorizedGrantTypes("authorization_code")
                  .scopes("read");
      }

      public void configure(AuthorizationServerSecurityConfigurer oauthServer) throws Exception {
        oauthServer.allowFormAuthenticationForClients();
      }
    };
  }
}

After getting an authorization code (via localhost:8080/oauth/authorize?client_id=client1&response_type=code&redirect_uri=localhost), we call access token endpoint - if we pass the correct client id (and correct code), we get the token as expected:
curl "localhost:8080/oauth/token?grant_type=authorization_code&redirect_uri=localhost&client_id=client1&code=Iq2DR3"
{"access_token":"214a637f-0368-401e-8885-7d1e9cefb8c8","token_type":"bearer","expires_in":43199,"scope":"read"}

If we pass the incorrect client id, this will cause the exception with stack trace and error level as described before:
curl "localhost:8080/oauth/token?grant_type=authorization_code&redirect_uri=localhost&client_id=client_bad&code=Iq2DR3"
{"error":"unauthorized","error_description":"No client with requested id: client_bad"}

So the issue is that the error should not be shown as internal server error, since it is just incorrect client input. Of course this is not a major issue, but it is important for server logs not to have error level messages (with stack traces) for things that are not server errors.

With your little sample app I get a 401 and no exception logged (at INFO or above). The stacktrace you posted initially seems to indicate a problem with the UserDetailsService containing the clients. Is it really the same app?

It is. However it was using 2.0.2, I tried now with 2.0.7 and it works properly!


[vcpkg] Update vcpkg_check_features document

This fixes a bug introduced by https://github.com/microsoft/vcpkg/pull/6958 . My fault.

Yup I missed that too.


Convert most event cards to use action.

The only event cards not converted that have Action in their text were the 'select up to X strength' type cards, because they're kind of weird in the first place. Will probably look at cleaning up that type of prompt before converting those.


[shell] Add commands to control device layer thread management APIs.

Problem
Shell doesn't have anyway to manage the Thread interface yet.
Summary of Changes
Add commands to expose most of the ThreadStackManager and ConnectivityManager APIs for controlling the Thread interface.

@jelderton @andy31415 ?


Update images in Jetsnack example: host them locally and use Resources library

We used to rely on an external service to fetch the images. But they are not available anymore

Merging it to let the community use it properly.
(https://youtrack.jetbrains.com/issue/CMP-6650)


New BOSH Azure CPI release

Hi,
This is not really an issue, but my team is interested in consuming https://github.com/cloudfoundry/bosh-azure-cpi-release/commit/6a95fbfb7f4686834a028be267d6f0d06650c60c
I would therefore like to ask if there is already a next release scheduled and if yes, when we can expect it; if not, do you think it would be possible to build a new release including the aforementioned change?
Thanks!
Victor

This is currently blocked on: https://github.com/cloudfoundry/bosh-azure-cpi-release/pull/663 since CI is currently broken.

Is someone working on unblocking it?

Above PR has been merged, and the cut release chore is almost at the top of the backlog. So expect a release to be cut this week.

Shipped, sorry for the delay.
See https://bosh.io/releases/github.com/cloudfoundry/bosh-azure-cpi-release

Shipped, sorry for the delay.
See https://bosh.io/releases/github.com/cloudfoundry/bosh-azure-cpi-release

Thanks!


OLTPBench: Voter Benchmark Fails

I get the following oltpbenchmark logs when benchmarking the voter database:
oltpbench $ ./oltpbenchmark -b voter -c config/sample_voter_config.xml --create=true --load=true --execute=true
22:37:14,400 (DBWorkload.java:259) INFO  - ======================================================================

Benchmark:     VOTER {com.oltpbenchmark.benchmarks.voter.VoterBenchmark}
Configuration: config/sample_voter_config.xml
Type:          PELOTON
Driver:        org.postgresql.Driver
URL:           jdbc:postgresql://localhost:15721/voter
Isolation:     TRANSACTION_SERIALIZABLE
Scale Factor:  10.0

22:37:14,402 (DBWorkload.java:260) INFO  - ======================================================================
22:37:14,411 (DBWorkload.java:519) INFO  - Creating new VOTER database...
Error executing: CREATE VIEW V_VOTES_BY_PHONE_NUMBER (   phone_number , num_votes ) AS    SELECT phone_number         , COUNT(*)      FROM VOTES  GROUP BY phone_number
Exception in thread "main" java.lang.RuntimeException: Unexpected error when trying to create the voter database
	at com.oltpbenchmark.api.BenchmarkModule.createDatabase(BenchmarkModule.java:268)
	at com.oltpbenchmark.api.BenchmarkModule.createDatabase(BenchmarkModule.java:248)
	at com.oltpbenchmark.DBWorkload.runCreator(DBWorkload.java:801)
	at com.oltpbenchmark.DBWorkload.main(DBWorkload.java:520)
Caused by: org.postgresql.util.PSQLException: This connection has been closed.
	at org.postgresql.jdbc.PgConnection.checkClosed(PgConnection.java:796)
	at org.postgresql.jdbc.PgConnection.setAutoCommit(PgConnection.java:753)
	at com.oltpbenchmark.util.ScriptRunner.runScript(ScriptRunner.java:104)
	at com.oltpbenchmark.api.BenchmarkModule.createDatabase(BenchmarkModule.java:266)
	... 3 more

Here are server logs:
oltpbench $ peloton
2018-01-20 22:37:10 [src/network/network_manager.cpp:49:CreateNewConnection] INFO  - Create new connection: id = 4
2018-01-20 22:37:10 [src/network/network_manager.cpp:167:StartServer] INFO  - Listening on port 15721
2018-01-20 22:37:14 [src/network/network_master_thread.cpp:129:DispatchConnection] DEBUG - Dispatching connection to worker 0
2018-01-20 22:37:14 [src/network/network_callback_util.cpp:45:WorkerHandleNewConn] DEBUG - Creating new socket fd:17
2018-01-20 22:37:14 [src/network/network_manager.cpp:49:CreateNewConnection] INFO  - Create new connection: id = 17
2018-01-20 22:37:14 [src/network/network_connection.cpp:425:ProcessInitialPacket] INFO  - protocol version: 196608
2018-01-20 22:37:14 [src/planner/create_plan.cpp:186:CreatePlan] ERROR - UNKNOWN CREATE TYPE
libc++abi.dylib: terminating with uncaught exception of type peloton::CatalogException: Can't find Database  to create table
Abort trap: 6

If I remember correctly, we used to ignore the database specified in the connection string. This is no longer true. Replace "voter" with "default_database" along with the other necessary adjustments to the sample file.
I believe we don't support views, so you'll get past this, but fail later.


Service problem

what happened?

What's wrong?

Contents in cluster-configuration.yaml please.

do you have hadoop-resource-manager up and running?

what about prometheus and node-exporter. Do you encountered error when opening virtual clusters page?

@NothingLZ 0 in virtual clusters means you didn't use any cpu/memory/gpu. That's indicate how much you used, not how much you can use.

Ok, I think this solve your problem?

Thank you for your answer, I will study again.

Ok, I'll close this issue.


[depends on: invenio-app-ils#915] frontsite: add states to loan request

depends on inveniosoftware/invenio-app-ils#915
add two new states to the loan request form
closes #116

The /me/loans request is performed asynchronously with respect to /documents/:pid
The loan request form requires both requests to complete in order to be displayed
/me/loans is registered as an exception rule to avoid redirecting the user in case of a HTTP 401 (if the user is anonymous)
If the user had a loan in the past, it will be shown in the request form
Currently there is no way to obtain any information about the current loan/request (such as dates), it would be nice to have them in the response of this endpoint

Information bullets
(current PR)

(without icons)

(new proposal)