Not working on Vultr servers

Hi, When I open the dashboard the server settings Public Host / IP is empty and the VPN isn't working even though I add the Public Host / IP manually. (It shows connected but it has no internet access). I changed the OS from ubuntu 18.0.4 to debian 10 and it didn’t work. I just realized only my Vultr servers have this issue. I even changed my VPS server location. Do you have any idea how to solve this issue? I really want my Vultr server cause they are really good.

Hi,
if the default network adapter is not eth0, no ip will be set and the VPN will not work until you change it to the correct one.

Yeah probably it's because of this. How can I fix that? Would you mind take a look at my server if I give you the access?

Run ifconfig on your vps to list your network interfaces. Then pick the one that has your public ip assigned (the block of the correct interface contains a line inet <YOUR_PUBLIC_IP>). The name is usually something like "eth0" or "enp1s0", then edit server settings in wg-dashboard and change the value for "Network Adapter".

I checked the ifconfig. The public ip address is on ens3 adaptor and the dashboard network adapter is already set to ens3 but the ip is empty. Should I add ip manually from dashboard?

Yes

I manually added ip and pressed the save and restart button then dns over tls turned off suddenly and the vpn is still not working.

Any idea? When I enter ifconfig there is also a wg0 adaptor.
wg0: flags=209<UP,POINTOPOINT,RUNNING,NOARP>  mtu 1420
        inet <IP_ADDRESS>  netmask <IP_ADDRESS>  destination <IP_ADDRESS>
        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 1000  (UNSPEC)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Yes the wg0 adapter is correct.
Can you please provide full output of ifconfig and a screenshot of your wg-dashboard config?

Here is the ifconfig:
`root@UKWG:~# ifconfig
ens3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
inet <IP_ADDRESS>  netmask <IP_ADDRESS>  broadcast <IP_ADDRESS>
inet6 fe80::5400:2ff:fe3f:1e71  prefixlen 64  scopeid 0x20
ether 56:00:02:3f:1e:71  txqueuelen 1000  (Ethernet)
RX packets 198576  bytes 25975843 (25.9 MB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 160467  bytes 28581998 (28.5 MB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
inet <IP_ADDRESS>  netmask <IP_ADDRESS>
inet6 ::1  prefixlen 128  scopeid 0x10
loop  txqueuelen 1000  (Local Loopback)
RX packets 648  bytes 170984 (170.9 KB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 648  bytes 170984 (170.9 KB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
wg0: flags=209<UP,POINTOPOINT,RUNNING,NOARP>  mtu 1420
inet <IP_ADDRESS>  netmask <IP_ADDRESS>  destination <IP_ADDRESS>
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 1000  (UNSPEC)
RX packets 0  bytes 0 (0.0 B)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 0  bytes 0 (0.0 B)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
`
And this the dashboard screenshot:
http://danial-softwares.com/wg-dashboard.png

This looks good so far, except that dns-over-tls is turned off.
Did you scan the generated wg0.conf and the logs (green "logs" button in dashboard) for strange lines?

This is logs output on dashboard:
-- Logs begin at Tue 2019-09-03 16:26:16 UTC, end at Thu 2019-09-05 13:31:45 UTC. --
Sep 04 08:05:37 UKWG systemd[1]: Starting WireGuard via wg-quick(8) for wg0...
Sep 04 08:05:37 UKWG wg-quick[17741]: Warning: `/etc/wireguard/wg0.conf' is world accessible
Sep 04 08:05:37 UKWG wg-quick[17741]: [#] ip link add wg0 type wireguard
Sep 04 08:05:37 UKWG wg-quick[17741]: [#] wg setconf wg0 /dev/fd/63
Sep 04 08:05:37 UKWG wg-quick[17741]: [#] ip -4 address add <IP_ADDRESS>/24 dev wg0
Sep 04 08:05:37 UKWG wg-quick[17741]: [#] ip link set mtu 1420 up dev wg0
Sep 04 08:05:37 UKWG wg-quick[17741]: [#] iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o ens3 -j MASQUERADE
Sep 04 08:05:37 UKWG systemd[1]: Started WireGuard via wg-quick(8) for wg0.
Sep 04 08:12:54 UKWG systemd[1]: Stopping WireGuard via wg-quick(8) for wg0...
Sep 04 08:12:54 UKWG wg-quick[17947]: Warning: `/etc/wireguard/wg0.conf' is world accessible
Sep 04 08:12:54 UKWG wg-quick[17947]: [#] ip link delete dev wg0
Sep 04 08:12:54 UKWG wg-quick[17947]: [#] iptables -D FORWARD -i wg0 -j ACCEPT; iptables -D FORWARD -o wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o ens3 -j MASQUERADE
Sep 04 08:12:54 UKWG systemd[1]<EMAIL_ADDRESS>Succeeded.
Sep 04 08:12:54 UKWG systemd[1]: Stopped WireGuard via wg-quick(8) for wg0.
-- Reboot --
Sep 04 12:11:44 UKWG systemd[1]: Starting WireGuard via wg-quick(8) for wg0...
Sep 04 12:11:44 UKWG wg-quick[4292]: Warning: `/etc/wireguard/wg0.conf' is world accessible
Sep 04 12:11:44 UKWG wg-quick[4292]: [#] ip link add wg0 type wireguard
Sep 04 12:11:44 UKWG wg-quick[4292]: [#] wg setconf wg0 /dev/fd/63
Sep 04 12:11:44 UKWG wg-quick[4292]: [#] ip -4 address add <IP_ADDRESS>/24 dev wg0
Sep 04 12:11:45 UKWG wg-quick[4292]: [#] ip link set mtu 1420 up dev wg0
Sep 04 12:11:45 UKWG wg-quick[4292]: [#] iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o ens3 -j MASQUERADE
Sep 04 12:11:45 UKWG systemd[1]: Started WireGuard via wg-quick(8) for wg0.
Sep 04 12:12:45 UKWG systemd[1]: Stopping WireGuard via wg-quick(8) for wg0...
Sep 04 12:12:45 UKWG wg-quick[4379]: Warning: `/etc/wireguard/wg0.conf' is world accessible
Sep 04 12:12:45 UKWG wg-quick[4379]: [#] ip link delete dev wg0
Sep 04 12:12:45 UKWG wg-quick[4379]: [#] iptables -D FORWARD -i wg0 -j ACCEPT; iptables -D FORWARD -o wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o ens3 -j MASQUERADE
Sep 04 12:12:45 UKWG systemd[1]<EMAIL_ADDRESS>Succeeded.
Sep 04 12:12:45 UKWG systemd[1]: Stopped WireGuard via wg-quick(8) for wg0.
-- Reboot --
Sep 05 06:35:15 UKWG systemd[1]: Starting WireGuard via wg-quick(8) for wg0...
Sep 05 06:35:15 UKWG wg-quick[16346]: Warning: `/etc/wireguard/wg0.conf' is world accessible
Sep 05 06:35:15 UKWG wg-quick[16346]: [#] ip link add wg0 type wireguard
Sep 05 06:35:15 UKWG wg-quick[16346]: [#] wg setconf wg0 /dev/fd/63
Sep 05 06:35:15 UKWG wg-quick[16346]: [#] ip -4 address add <IP_ADDRESS>/24 dev wg0
Sep 05 06:35:15 UKWG wg-quick[16346]: [#] ip link set mtu 1420 up dev wg0
Sep 05 06:35:15 UKWG wg-quick[16346]: [#] iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o ens3 -j MASQUERADE
Sep 05 06:35:15 UKWG systemd[1]: Started WireGuard via wg-quick(8) for wg0.

and this is wg0.conf contents:
[Interface]
Address = <IP_ADDRESS>/24
PrivateKey = ******
ListenPort = 58210
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROU$
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTR$
SaveConfig = false

[Peer]
        # UK-1
        PublicKey = cyN0NuhLeI1w7Atunzr0YSZlkevXEhinVMOuh8gqBC8=
        AllowedIPs = <IP_ADDRESS>/32

hm... looks ok too... what is the output of sudo ufw status verbose?

root@UKWG:~# sudo ufw status verbose
sudo: unable to resolve host UKWG: Name or service not known
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), deny (routed)
New profiles: skip

To                         Action      From
--                         ------      ----
22                         ALLOW IN    Anywhere
58210                      ALLOW IN    Anywhere
53                         ALLOW IN    Anywhere
22 (v6)                    ALLOW IN    Anywhere (v6)
58210 (v6)                 ALLOW IN    Anywhere (v6)
53 (v6)                    ALLOW IN    Anywhere (v6)

Seems correct, too....
I just googled around and found that vultr has a firewall. Do you use this firewall?
https://www.vultr.com/docs/vultr-firewall
If yes, you need to open port 5820 for udp connections.

By default vultr firewall is disabled until we define a new firewall group. My server hasn't had any linked firewall. I even made a new firewall group and opened 58210 udp port but didn't work.

@DanialNikbin So we rented a vultr server to test this issue, sadly we were not able to reproduce your issue. The VPN worked just fine after we configured the server ip aswell as network adapter and restarted the server.

@daluf That's so weird. Probably something is limited or turned off on my service. I have to submit a ticket for that. Thanks.

Closed due to inactivity.


It does not destroy after previous destroy

To Reproduce

Create cropper var cropper = $('#img').cropper(options).data('cropper');
Then destroy it cropper.destroy();
Again create cropper = $('#img').cropper(options).data('cropper');
And try to destroy cropper.destroy(); but it does not work.

Desktop:

OS: Windows 10,
Browser Chrome
Version 4.0.0

Reason
I suppose the reason is in the follow code if (!element[NAMESPACE]) { return this; }
https://github.com/fengyuanchen/cropperjs/blob/master/dist/cropper.js#L2506
Because it sets to undefined after first destroy(), element[NAMESPACE] = undefined;
If I use cropper.uncreate(); it works fine.


[workgroups] Add more links - Avalanche workgroup

Looks great, I clicked on most of the links except got bored before I could finish the ABC diffs list. :-D


general improvements to visuals of manual reordering of quest objectives/rewards

When moving the objective or reward bars the cursor flickers between the image of an arrow and a circle with a line through it constantly when it moves. Also the whole bar should be visible when moving the objective/rewards, not just the arrows on the side. I think instead of just clicking and dragging the arrows on the right side of the bar it would be more visually coherent to allow anywhere on the objective/reward bar to be clicked and dragged. Perhaps having a highlighted border around the box as it is being moved would help, similar to how the arrows turn orange when a bar is moved.

Hi @jinh5. Thanks for writing in this enhancement. We'll look into it, but do notice the same thing happens on any drag / drop action even in Foundry / system actor sheets when dragging items around / over actor sheets; tested this w/ D&D 5e system. It should be possible to display proper move cursor icons to show internally to FQL though.

So taking a look into reasons for the visual "glitches" or circle w/ a slash through it. This is an artifact of the drag / drop system when hovering over an element that doesn't have any drag / drop handling. There actually is a very easy one line JQuery callback that can be attached to all elements of a given window / app which prevents the circle w/ slash appearing when hovering over the element. There doesn't seem to be any negative side effects from adding this event callback.
html.on('dragenter', (event) => event.preventDefault());
This is added in QuestPreview.activateListeners. It should be further refined to with a constant added to the jquery events defined in ./src/model/constants.js:
html.on(jquery.dragenter, (event) => event.preventDefault());
As far as setting a different element as the drag image rather than just the move arrow icon. This can be accomplished by:
event.originalEvent.dataTransfer.setDragImage(li, 790, 20);
in HandleDetails.taskDragStartSort. Though the x / y offset must be variable as the QuestPreview window can be enlarged.
The above provides some implementation details, but certainly need to be fine tuned.

Upon further review while it would be nice to have the full li element be the drag image for the move task / reward action it turns out that by the rendering of the status icons creates an awkward ghosting effect:

A potential solution to that is to clone the element / remove the icons and such, but it's more of a hack to pull this off than it seems worth it.
I did add the simple dragenter handler which does prevent the circle / slash icon from showing in the QuestLog / QuestPreview UI when dragging inside the app.

Released with 0.7.6 which is available now.


Granular ecc interfaces

TL;DR

Rename Secp256k1Interface --> ConfidentialSecp256k1Interface and remove the unused methods.
Only use ConfidentialSecp256k1Interface where Confidential is used (ZKPGenerator, ZKPValidator).
Define an additional ̀BIP341Secp256k1Interface with only the methods needed by bip341 (without that change, it's not possible to inject tiny-secp256k1 into bip341 module.
Use the ecpair.TinySecp256k1Interface in signature validators instead of Secp256k1Interface containing unused methods.

@altafan please review

nACK, don't see a motivation for this, nor we had a discussion before it.


Check internal packages formatting

Which components does the task require to be changed? (think hard pls)
other (describe below)
Description
We have many internal packages (needed mostly for testing purposes, located in crates/forge/tests/data) and their formatting isn't checked. We could add step in CI which runs scarb --fmt.

hello @franciszekjob
Is this issue open for contribution? i would love to work on this issue. i use rust and i am confident i can fix this issue.
I will carefully configure the CI pipeline and ensure the packages in crates/forge/tests/data are properly set up and formatted. Thanks


Documentation: cluster mesh guide for inter-regional deployments missing key details

The cluster mesh guide does not specifically prohibit inter-regional deployments from the guide, but an inter-regional deployment will not work if the guide is followed to the letter. If the clusters are in the same region the guide will work, but if they are not then something called "global access" for the internal loadbalancers need to be turned on ala this guide.
We should fix the guide with at least a note, but there may be annotation that we can add to the service.yaml file for GCP/GKE that would automatically turn this on.

@nathanjsweet good catch 👍 i guess this is this is the annotation?
https://cloud.google.com/kubernetes-engine/docs/how-to/internal-load-balancing#global_access


New dependency Configurations

Please update the grade dependency according to the new dependency configurations
https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration?utm_source=android-studio#new_configurations

done


M5StackCoreS3 error

Hi whenever I try to use this for M5StackCoreS3 I get an Comm(ExceedingFifo) error.
I tried https://github.com/Tinyu-Zhao/BMI270_Sensor/blob/main/src/bmi270_maximum_fifo.c file nothing changed.
Any ideas ?

Sorry, I've been off my personal project for a while.
I had implement the complete register map for the sensor but hadn't yet tested all the features (fifo usage being one of them). It is very possible there are bugs in the implementation.
If this is still relevant, could you provide the excerpt of how you're setting up the driver ? I'll try to replicate on my setup.


Add make binary to IxDay/mruby

IxDay/mruby - Lightweight Ruby
Check List

[x] Read CONTRIBUTING.md

[x] Read OSS Contribution Guide

[x] All commits are signed

This repository enables Require signed commits, so all commits must be signed

[ ] Avoid force push
[x] Do only one thing in one Pull Request
[x] Execute cmdx s to scaffold code
[ ] Install and execute the package and confirm if the package works well

Thank you for your contribution!

It looks strange.
aqua should complement .exe on Windows. 🤔
Maybe this is a bug of aqua.
I'll look into this.
ERRO[0000] check file_src is correct                     aqua_version=2.40.0 env=windows/amd64 error="check file_src is correct: get file_src: CreateFile C:\\Users\\runneradmin\\AppData\\Local\\aquaproj-aqua\\pkgs\\github_release\\github.com\\IxDay\\mruby\\3.3.0\\mruby-windows-x86_64.zip\\mrake: The system cannot find the file specified." file_name=mrake package_name=IxDay/mruby package_version=3.3.0 program=aqua registry=standard
ERRO[0000] executable files aren't found
Files in the unarchived package:
mrake.bat
mruby.exe

I see. aqua can complement the file extension .exe, but can't complement .bat.

🎉 https://github.com/aquaproj/aqua-registry/releases/tag/v4.286.0


[Typing] Use SVG or CSS animation for typing indicator instead of GIF for reduced motion

Is your feature request related to a problem?
To enable reduced motion, we should use SVG/CSS which its animation is more controllable than GIF.
Describe the suggestion or request in detail
No response
Describe alternatives you have considered
No response
Additional context
No response

We can use SVG animations as SMIL is back, not deprectated anymore: https://developer.mozilla.org/en-US/docs/Web/SVG/SVG_animation_with_SMIL
Or we can use SVG with CSS animations which allows us to handle reduced motion media: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/animate#accessibility_concerns

I will choose SVG + CSS for reduced motion, so it's easier for us to write VRT too.


Choosing service plan order target

Based on Sources API source type.
Kafka queue's name suffix is chosen by SourceType.name (ServicePlan -> Source -> SourceType)

related to https://github.com/ManageIQ/topological_inventory-ansible_tower/pull/12

@agrare please review
cc @abellotti


link fix in Doc/guide/README.md [ci skip]

Q
A

Is bugfix?
no

New feature?
no

Breaks BC?
no

Tests pass?
--

Fixed issues
--

Merged. Thank you!


Bug fix QUANTILE_UNION many problems

Proposed changes
fix QUANTILE_UNION many problems
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 47.55 seconds
stream load tsv:          535 seconds loaded<PHONE_NUMBER>9 Bytes, about 133 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          64 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          30 seconds loaded 861443392 Bytes, about 27 MB/s
insert into select:          29.1 seconds inserted 10000000 Rows, about 343K ops/s
storage size:<PHONE_NUMBER>0 Bytes

run buildall

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 45.77 seconds
stream load tsv:          538 seconds loaded<PHONE_NUMBER>9 Bytes, about 132 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select:          29.2 seconds inserted 10000000 Rows, about 342K ops/s
storage size:<PHONE_NUMBER>8 Bytes

1.2 does not support quantile type so no cherry-pick


Doesn't work in VS 2012

When trying to load the extension, it fails to load.
Under Tools>Option>Power Mode, it gives a prompt saying "An error occurred loading this property page"

Here's the Activity Log
223  Begin package load [PowerModePackage] {4E687EAE-AE26-4139-B888-A0AE8C2E16FF}  VisualStudio 2015/12/24 01:35:02.685
224 ERROR CreateInstance failed for package [PowerModePackage] {4E687EAE-AE26-4139-B888-A0AE8C2E16FF} 80070002 VisualStudio 2015/12/24 01:35:02.697
225 ERROR End package load [PowerModePackage] {4E687EAE-AE26-4139-B888-A0AE8C2E16FF} 80004005 - E_FAIL VisualStudio 2015/12/24 01:35:02.697

same issue

Hmmm I'm not too sure what that's about.  About to do a bit of a refactor so we'll see if it fixes it.  Unfortunately I'm not too keen on buying a copy of 2012 just to test this.  I may have to remove support for it if this continues to happen


[BEAM-6228]: Website build from source release fails due to git dependency

Building from a source release zip fails because the website uses grgit to check the local branch, and grgit is null outside of git.
Tested by running :website:build with the beam 2.16.0 RC1 zip and this file changed.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.


I've tried a lot of solutions but i don't know if that's right.

I am a newbie.
I can't run the code from CLIP_prefix_caption.
Hope to get your help, thank you.

Hi @qiao-lang1997, sorry to hear you're having trouble.
Can you try running that command with the --debug flag and share the output you're seeing?
sudo cog --debug predict -i image ...

(Tip for next time: Pasting the raw text of the output may be useful than a screenshot because it's searchable.)

Seems to be a download failure.
(base) vipuser@ubuntu1804:~/project/CLIP_prefix_caption$ sudo cog --debug predict -i<EMAIL_ADDRESS>⚠ Cog doesn't know if CUDA 10.2 is compatible with PyTorch 1.9.1. This might cause CUDA problems.
Setting CuDNN to version 10.2
Building Docker image from environment in cog.yaml...
$ docker build --file - --build-arg BUILDKIT_INLINE_CACHE=1 --tag cog-clipprefixcaption-base --progress auto .
[+] Building 9.2s (9/14)
=> [internal] load build definition from Dockerfile                                                               0.2s
=> => transferring dockerfile: 1.59kB                                                                             0.0s
=> [internal] load .dockerignore                                                                                0.1s
=> => transferring context: 2B                                                                                0.0s
=> resolve image config for docker.io/docker/dockerfile:1.2                                                       2.4s
=> CACHED docker-image://docker.io/docker/dockerfile:1.2@sha256:e2a8561e419ab1ba6b2fe6cbdf49fd92b95912df1cf7d313  0.0s
=> [internal] load metadata for docker.io/nvidia/cuda:10.2-cudnn8-devel-ubuntu18.04                               1.6s
=> [internal] load build context                                                                                0.5s
=> => transferring context: 25.60kB                                                                               0.0s
=> [stage-0 1/8] FROM docker.io/nvidia/cuda:10.2-cudnn8-devel-ubuntu18.04@sha256:61f4c02abaaa2470ab2af28f0bf4b46  0.0s
=> CACHED [stage-0 2/8] RUN --mount=type=cache,target=/var/cache/apt apt-get update -qq && apt-get install -qqy   0.0s
=> ERROR [stage-0 3/8] RUN curl https://pyenv.run | bash &&  git clone https://github.com/momo-lab/pyenv-install  4.1s

[stage-0 3/8] RUN curl https://pyenv.run | bash &&   git clone https://github.com/momo-lab/pyenv-install-latest.git "$(pyenv root)"/plugins/pyenv-install-latest &&  pyenv install-latest "3.8" &&   pyenv global $(pyenv install-latest --print "3.8") &&   pip install "wheel<1":
#8 1.009   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#8 1.009                                  Dload  Upload   Total   Spent    Left  Speed
100   270  100   270    0     0    237      0  0:00:01  0:00:01 --:--:--   237
#8 2.417 curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to raw.githubusercontent.com:443
#8 2.421 /bin/sh: 1: pyenv: not found
#8 2.424 Cloning into '/plugins/pyenv-install-latest'...
#8 3.772 /bin/sh: 1: pyenv: not found

executor failed running [/bin/sh -c curl https://pyenv.run | bash &&    git clone https://github.com/momo-lab/pyenv-install-latest.git "$(pyenv root)"/plugins/pyenv-install-latest &&  pyenv install-latest "3.8" &&   pyenv global $(pyenv install-latest --print "3.8") &&   pip install "wheel<1"]: exit code: 127
ⅹ Failed to build Docker image: exit status 1

cog.yaml
image: r8.im/rmokady/clip_prefix_caption
build:
gpu: true
cuda: "10.2"
system_packages:
- "libgl1-mesa-glx"
- "libglib2.0-0"
python_version: "3.8"
python_packages:
- "transformers==4.11.3"
- "git+https://github.com/openai/CLIP.git"
- "torch==1.9.1"
- "numpy==1.19.5"
- "pillow==8.3.2"
- "scikit-image==0.16.2"
predict: "predict.py:Predictor"


Not able to load encoder

getting error while loading encoder:
m3.load_encoder(f'adam1_enc')
RuntimeError                              Traceback (most recent call last)
~/anaconda2/envs/fastai/lib/python3.6/site-packages/torch/nn/modules/module.py in load_state_dict(self, state_dict, strict)
    513                 try:
--> 514                     own_state[name].copy_(param)
    515                 except Exception:

RuntimeError: invalid argument 2: sizes do not match at /opt/conda/conda-bld/pytorch_1518244421288/work/torch/lib/THC/generic/THCTensorCopy.c:51

During handling of the above exception, another exception occurred:

RuntimeError                              Traceback (most recent call last)
<ipython-input-154-c173cedbc36b> in <module>
----> 1 m3.load_encoder(f'/home/gamut/Downloads/fastai/courses/dl1/data/hindilm/models/adam1_enc')

~/Downloads/fastai/courses/dl1/fastai/nlp.py in load_encoder(self, name)
    164     def save_encoder(self, name): save_model(self.model[0], self.get_model_path(name))
    165
--> 166     def load_encoder(self, name): load_model(self.model[0], self.get_model_path(name))
    167
    168

~/Downloads/fastai/courses/dl1/fastai/torch_imports.py in load_model(m, p)
     38             if n+'_raw' not in sd: sd[n+'_raw'] = sd[n]
     39             del sd[n]
---> 40     m.load_state_dict(sd)
     41
     42 def load_pre(pre, f, fn):

~/anaconda2/envs/fastai/lib/python3.6/site-packages/torch/nn/modules/module.py in load_state_dict(self, state_dict, strict)
    517                                        'whose dimensions in the model are {} and '
    518                                        'whose dimensions in the checkpoint are {}.'
--> 519                                        .format(name, own_state[name].size(), param.size()))
    520             elif strict:
    521                 raise KeyError('unexpected key "{}" in state_dict'

RuntimeError: While copying the parameter named encoder.weight, whose dimensions in the model are torch.Size([67979, 300]) and whose dimensions in the checkpoint are torch.Size([25704, 300]).

I was able reproduce the notebook given by you but again getting the same error.
Not facing this issue when I load encoder from lesson 4 notebook which is for imdb data.
Can you look through it, otherwise people will not be able to use your pretrained LM

Could you please share the steps before this line?
It seems like you are trying a different model in some manner, this is indicated by the difference in dimensions:
RuntimeError: While copying the parameter named encoder.weight, whose dimensions in the model are torch.Size([67979, 300]) and whose dimensions in the checkpoint are torch.Size([25704, 300]).```

I am following lesson 4 notebook from sentiment analysis  part. which starts with loading vocab file.
TEXT = pickle.load(open(f'{PATH}/TEXT.pkl','rb'))
Then I defined my custom dataset using lang_model-arxiv.ipynb. Then I was able get data in required format.
t = splits[0].examples[111]
t.label, ' '.join(t.text[:19])

output:
('hotel', 'हम्पी में 3 दिसंबर से 3 दिन 2 रात के लिए एक कमरा बुक करें')

which is working same as shown in lesson 4
Then followed the rest of the notebook. But got stuck when loading encoder.
md2 = TextData.from_splits(PATH, splits, bs)
m3 = md2.get_model(opt_fn, 1500, bptt, emb_sz=em_sz, n_hid=nh, n_layers=nl,
dropout=0.1, dropouti=0.4, wdrop=0.5, dropoute=0.05, dropouth=0.3)
m3.reg_fn = partial(seq2seq_reg, alpha=2, beta=1)

m3.load_encoder(f'adam1_enc')

initially I used vocab and encoder provided by you but due above error I trained my language model by following your notebook but again got stuck at load_encoder step.

anything yet

Hey @008karan, as a solo dev - I don't have the bandwidth to support this older version while building out newer version.
If you'd be so kind to have some patience, the newer version will have an end to end demo.

When are you going to present newer version?


Min max avg doesn't use translation

Description:
Min max avg doesn't use translation strings in history view, 2.9.4

So will some of these strings be redundant @andreevdenis ?
chart_stat_min
chart_stat_max
chart_stat_avg
chart_min_max_avg
Added new strings to language file


add HTMLImageElement for Material uniform

In order to make an animation by many images,we must know every image status in the process,so I change the timeline to the next time after the current image loaded.
material.uniforms.image = loadedImage;

Hey @polluxll, thanks for the PR! Can you submit a Contributor License Agreement (CLA) so we can get this reviewed and merged?

@ggetz ,I have submited the CLA file by mail.

from:
liu liang<EMAIL_ADDRESS>

to:
<EMAIL_ADDRESS>

date:
30 September 2017 at 11:04

subject:
CLA

@polluxll I emailed you a question about the CLA, but haven't heard back.  Please let me know if you didn't receive the email.  Thanks!

We now have a CLA from @polluxll.  Thanks again!

Hello @polluxll, thanks for the pull request!  In the interest of moving this forward, I've opened #6729 with these changes and I'm going to close this.


[Documentation Bug]:

Describe the bug ✍
Update of README.md file is required.
Provide step by step information reproduce the bug 📄
Description
Select program in which you are contributing
GSSoC24
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

GSSOC'24 contributor
Can You please assign this issue to me

Describe the bug ✍
I can update theREADME.md file  required.
Provide step by step information reproduce the bug 📄
Description
Select program in which you are contributing
GSSoC24
Code of Conduct

[x]  I follow CONTRIBUTING GUIDELINE of this project.

@Dsmita03 Could you please explain more what you want to do in Readme.md file......
If you have any doubt you can directly send message on our discord (https://discord.gg/rZb46cCMmK), we have created seprate chennals for all projects...
Thank you :)


Map Lock and add?

I downloaded your 3.6 and I was disappointed in a few things.
Since you moved some options to the criteria instead of Options the world isn't what it was...crashed cause didn't notice it at first but I corrected it and tried out your 3.6 a fair bit.  I had like a 30 minute kicked out of single player world error when I tried to look up 'Ender' seemed to be corrected when I closed and reopened client....it was weird...but everything said...I can't reproduce it at the moment...thank god.  I don't have a crash report as it wasn't a crash but I will try and reproduce it so to find out what it said in full..but it was like 10k lines....maybe more...
3.6 changed the way blocks act not being presented as Bedrock-like,  I really liked the unbreakable aspect the mod had in 3.5.  I saw your closed error for another guy and saw you corrected something with 3.6 but yeah... I was curious if the way the blocks are defined could be reverted?
As I noticed too... Everything is enable and craftable if there isn't a quest that sets it up with your new new changes to the criteria and options.  I don't know if that is the intension but its cute it allows it.  Maybe it corrects the part towards the bottom....
Adds:
Type: all?
Testing out how the world is I find it a bit cumbersome having to specify 5 types for most anything.  as example:(been going back to the drawing board to understand your mod better)
I set up a quest to click a log to unlock modid:minecraft(kinda obvious why) and so I break it but no harvest drop.... so I would need that too so put it in.  crafting/furnace/harvestdrops/entitydrops/breakblocks so I could allow a person to pick up seeds, and what not...seems a bit inefficient.  Many mods/items have many of the properties plus there are utility mods that allow you to add say enderpearls or raw porkchops to say a Iron Ore(if I wanted...easily could) which would then mean up to all 5 just to unlock 1 mod, or just 1 item.
I will be unlocking groups of mods at times and having a quest right now that is way off the screen cause of typex5 just for 20 mods is ...boy...  Hope you understand.
'Condition Editor': Exclude/Deny Action:
I find once I activate something it can't be deactivated...unless I am doing something wrong.  For instance  If like a few quests later I decide ok you did enough by mining iron ore...you can do anything in minecraft so put in ModID: minecraft and then its all open but next quest says Diamond Sword unlock use and craft but...you can already use and craft Diamond Swords.... cause 5 types before say Minecraft unlocked...  I was wondering if we could have a 'Condition Editor' with say a Condition 'Exclude' or 'Deny Action' adding Conditions much the same way as results but reverse the action.  A user of the mod would be wise to have temp name saying Minecraft Unlock exclude Sword to keep their quests straight for further down the road but yeah.  Eitherway inputting each id is ok but there are potentially thousands if not millions of ids to filter through just so you can keep a Diamond Sword uncraftable.  Then type x 5 for everything.
Don't get me wrong the mod is working great.  I am enjoying it...  Sure 3.6 has its ... yeah ... I am not sure what to think...  The blocks all do a breaking action but rewind if you don't have the quest complete...I enjoyed the bedrock version unless there was a reason you changed it.  I reverted back to 3.5 since it was working better for me.
BLSK

The crash, was probably due to exactly that, and missing some options from the json. Which I didn't think about for people updating. As for the bedrock thing, that should be working, I don't remember changing anything to do with that :S.
It's always defaulted to everything being craftable until something is added... With the option to disable everything. But that was moved from the config to the criteria, as it made no sense when syncing otherwise.
As for all the actions having an option to be under the same thing, I'm not sure. I'd probably be happy to have a "Allow Creation" and "Allow Collection" (first being crafting/furnace combined, and latter being Break/Drops combined/anything else relevant). But not one overall.
As for your crafting thing. That's how it works now... If you add multiple criteria for crafting something,   it requires them both to be completed. Unless I'm misunderstanding your request here...

Maybe something happened but now 3.6 seems to have the Unbreakable...maybe goofed up XD  What does name: IGNORE mean though for things like 'Click Block'  'Oredic'? so wood* or plank* or something would work?  Haven't test it out but um...
I was thinking... Could arguments or variables like Type: crafting be 'Condition Editor' so we have to still put them in 1 for each condition but they all fall under one result?  That's kinda what I meant... but um...
As for the crash... I am sure it was what I found but the 'Client Kickout of Map' wasn't... I hit 'e' and it kicked me out of map but no crash.  I was trying to search for Ender as in Ender pearl to see if I could use it.  It seems to be fine now...not sure what happened there but yeah...for 30 minutes I couldn't log in cause when I logged in it spiraled an insane amount of lines ...not sure as I said but it seems to work now...
But if I understand you right....If for instance I had a quest to craft Wooden Sword but another quest say the very next one had Modid(ignore everything else) it wouldn't allow Wooden Sword to be craftable cause of the 2nd quest unlocking Minecraft with the 5 types...am I wrong?
Quest 1: Click Log: Unlock Wooden Sword, Planks, Sticks, Dirt, Grass, Tall Grass, Bench
Quest 2: Kill Pig: Unlock Minecraft x5 sadly
quest 2 says No to wooden Sword so it fails right?
You see what I mean?  That's what I meant by Condition Editor Exclude meaning Exclude Wooden Sword from craft/usable/whatever kinda thing...If you get what I mean.  Prevent some things from failing, but also be able to say exclude activation of Ender Pearl use till later if it was a further quest or heck...before quest! XD...I would hate to have to make say 2000 item results separate up to x5 not to mention...I have Millions of all things XD.  I could set up exta
I think for some reason you moving the Options to Criteria changed more than expected.
I put in trues for them last time but this time I went with default so they say False and now its Bedrock with false not true.  That's where I mixed up... so you did change it without knowing?  I just have been troubleshooting and now its bedrock again with falses versus trues.  But I seem to be able to craft wooden swords but not use them...I am fairly thoroughly confused  I think somehow it got goofed up?  Granted I did craft in Natura bench not vanilla...checking!  Ok cause Natura was active still it said you can craft in me.  I would of thought Wooden Sword wouldn't be craftable but quest 2 voids use of some things cause it has the stuff in it?
Ok have work so gotta run:
But Modid seems to Override the Specific Item in Window right?  Why not put it at Top vs bottom as it effects everything else?  At bottom it feels like it should hold no value except after the rest of the stuff but it unlocks mods specifically.  Get what I mean?  The item still holds use I guess....for some reason it unlocks the whole mod...so modid:minecraft unlocks all of minecraft rather than just the specific block.  Honestly glad though.  If leave it Ignore it does singles right?  But yeah...it holds so much power it feels out of place at bottom...
Ok long sorry...cya

Ok I think I may of reproduced one of the errors that crashes map but not client:
http://pastebin.com/qg5Egt0y
I disabled Natura with the Minecraft unlock quest I was working with.  Thinking maybe there was a way to make quests like Wooden Sword unlock work though Minecraft wasn't unlocked but didn't like that Natura Benches would allow crafting of wooden swords and so I exited book and boom....Crash of World.
Here's the Criteria.json just in case it could be relevant(maybe not but yeah)
http://pastebin.com/9mnfMGJu

The issue is Natura. They have the dumbest of item names.
Natura:Rare Sapling 3
That space is breaking everything.

Funny!  Ok cool...I'll change it then, Ill find one that has no spaces, thanks for the help

As for natura benches bypassing, i have to add support for each mod. The other way was just breaking too much.

I don't mind... at least I know another thing to watch out for.  may help others in the future kinda thing

Would you mind opening a NEW issue, with JUST the bugs/things to improve listed. And none of your additional '5000 million words that are irrelevant'. So that I can go through my issues and easily see what I need to do/fix. Right now this issue is just too confusing to remember everything.


[RELAY] MobileNet Port

Pattern-matching port of NNVM MobileNet to Relay.
This is not yet deeply tested (e.g., using TVM Runtime or end2end evaluation).

please request reviews

@Huyuwei please review

needs rebase again from upstream/master

Thanks @joshpoll @eqy this is now merged


Segmentation fault (core dumped) in grpc_core::ExecCtx::Get ()

What version of gRPC and what language are you using?
grpcio - 1.12.0
protobuf - 3.5.2.post1
python - 2.7.15
What operating system (Linux, Windows, …) and version?
Ubuntu - 18.04
What did you do?
Tried running an instance of application  that uses grpc when there was another process running the same app.
What did you expect to see?
Both the processes to run seamlessly.
What did you see instead?
Got Segmentation fault (core dumped).
StackTrace:
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000000000037796 in ?? ()
[Current thread is 1 (Thread 0x7fa5e2793700 (LWP 12340))]
(gdb) bt
#0  0x0000000000037796 in ?? ()
#1  0x00007fa5e6b48ec0 in grpc_core::ExecCtx::Get ()
    at ./src/core/lib/iomgr/exec_ctx.h:180
#2  do_epoll_wait (deadline=<optimized out>, ps=0x55591e15b6a0)
    at src/core/lib/iomgr/ev_epoll1_linux.cc:653
#3  pollset_work (ps=0x55591e15b6a0, worker_hdl=0x0, deadline=<optimized out>)
    at src/core/lib/iomgr/ev_epoll1_linux.cc:970
#4  0x00007fa5e6b74338 in cq_next (cq=0x55591e15b5d0, deadline=...,
    reserved=<optimized out>) at src/core/lib/surface/completion_queue.cc:930
#5  0x00007fa5e6b754eb in grpc_completion_queue_next (cq=<optimized out>,
    deadline=..., reserved=<optimized out>)
    at src/core/lib/surface/completion_queue.cc:1005
#6  0x00007fa5e6ae1039 in __pyx_f_4grpc_7_cython_6cygrpc__next (
    __pyx_v_c_completion_queue=0x55591e15b5d0, __pyx_v_deadline=<optimized out>)
    at src/python/grpcio/grpc/_cython/cygrpc.cpp:20913
#7  0x00007fa5e6ae1214 in __pyx_pf_4grpc_7_cython_6cygrpc_15CompletionQueue_2poll (
    __pyx_v_deadline=<optimized out>, __pyx_v_self=0x7fa5e3ade288)
    at src/python/grpcio/grpc/_cython/cygrpc.cpp:21739
#8  __pyx_pw_4grpc_7_cython_6cygrpc_15CompletionQueue_3poll (
    __pyx_v_self=0x7fa5e3ade288, __pyx_args=<optimized out>,
    __pyx_kwds=<optimized out>) at src/python/grpcio/grpc/_cython/cygrpc.cpp:21718
#9  0x000055591c7ff01a in PyEval_EvalFrameEx ()
#10 0x000055591c7fc8ca in PyEval_EvalCodeEx ()
#11 0x000055591c81844c in ?? ()
#12 0x000055591c7e833e in PyObject_Call ()
#13 0x000055591c80177b in PyEval_EvalFrameEx ()
#14 0x000055591c803d72 in PyEval_EvalFrameEx ()

Anything else we should know about your project / environment?
One process was started by a daemon via VS-Code. Whenever another process for the same app is started via shell the process started via VS-Code gets killed with segmentation fault.

Happens with Ubuntu versions 17 and 18, not replicable in 16. And also the issue can be reproduced by just starting two processes simultaneously in two shells, not just one in shell and other in VS-code

@NivedhaSenthil, is there any fork() involved in your application?
@sreecha, have seen a similar crash before? Please see the stacktrace above.

I have not seen this callstack before.  This is very strange since the segfault is happening in a thread when accessing a thread-local-value that was just set in one of the earlier functions in the callstack..
i.e From the callstack, I see the following:

cq_next called pollset_work
(Note that cq_next creates a new exec_ctx here)
pollset_work called do_epoll_wait
do_epoll_wait  called poll_deadline_to_millis_timeout which called grpc_core::ExecCtx::Get()->Now()
For some reason this is seg-faulting at ExecCtx::Get() - implying that &exec_ctx_ is an invalid address (but we know that it was just set in cq_next above)

No there is no fork in the application. And one more observation is the segfault is happening because of a stackoverflow.

Is there any way you can increase the maximum stack size in gauge?
I'm unaware of any infinite-recursion issues in gRPC so the most likely culprit is just running in an environment with a stack size that is too small.

I can see the maximum stack size is 8194KB will try increasing the stack size and get back. And the issue is happening only and as soon as another process is started. Grpc server is started binding to port 0, thus it should be binding to any free port. That's surprising and not able to find any corelation between the two processes.
The issue does not happen when a debugger is attached to the running process, hence not able to get more traces.

How many threads are there when the crash happens?

There were 6 thread running.

Doing a pip upgrade solved this issue. It seems to be happening because of an issue(https://github.com/pypa/setuptools/issues/951) in setuptools which is required by protobuf. The default pip installed when we do apt install python-pip is 9.0.1 which dint have the fix, thus after upgrading to 10.0.1 things  started working fine.


Cannot print barcode ?

I can connect to the bluetooth printer, I can print something out, but I cannot print barcode, when I send printLabel using option barcode, I just get the following result (see it in the attached image). Does anyone know how to solve this issue??

Here is the code I use
let options = {             width: 80,             height: 80,             gap: 20,             direction: BluetoothTscPrinter.DIRECTION.FORWARD,             reference: [20, 20],             tear: BluetoothTscPrinter.TEAR.ON,             sound: 0,             barcode: [{type: BluetoothTscPrinter.BARCODETYPE.CODE128, height: 40, readable: 1, rotation: BluetoothTscPrinter.ROTATION.ROTATION_0, code: '417322'}],          }
BluetoothTscPrinter.printLabel(options)         .then(()=>{             alert("printed")         },         (err)=>{             alert("failed")         })

You printer may need to Chang to TSC model
发自我的 iPhone

在 2019年8月15日，上午12:11，Tien<EMAIL_ADDRESS>写道：
I can connect to the bluetooth printer, I can print something out, but I cannot print barcode, when I send printLabel using option barcode, I just get the following result (see it in the attached image). Does anyone know how to solve this issue??
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

I have a Zebra ZQ520 printer. When you say change to TSC model. Does that mean the model that I have are unable to use this library properly and I need to get/buy another TSC printer ??

The pic you attached shows the printer prints the commands directly. It usually happens when you are sending the TSC commands to the ESC model
发自我的 iPhone

在 2019年8月15日，下午10:46，Tien<EMAIL_ADDRESS>写道：
I have a Zebra ZQ520 printer. When you say change to TSC model. Does that mean the model that I have are unable to use this library properly and I need to get/buy another TSC printer ??
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

I see now. Besides changing to a TSC printer, what other option we have? Send ESC commands? Is that possible from this component or from other 3rd party component?

Plz check the readme and demo， that shows the useage of ESC commands
发自我的 iPhone

在 2019年9月6日，上午2:39，Tien<EMAIL_ADDRESS>写道：
I see now. Besides changing to a TSC printer, what other option we have? Send ESC commands? Is that possible from this component or from other 3rd party component?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

@tienw did you found any solution for CPCL command for barcode printing? I've encounter the same issues, appreciated if you could share.

Have you managed to print ZPL with RN? If so, please, could you tell which lib you used?


[[importPath]] not working in safari

If I try to use polymer v2 in Safari, I got the error 404 not found, because it searches for the images in the wrong path.
In chrome the same component works
Steps to Reproduce

Create a Elemnt with a relative image path to the element

Expected Results
Image is loaded
Actual Results
Image path is wrong
Browsers Affected

[ ] Chrome
[ ] Firefox
[ ] Edge
[X] Safari 10
[ ] Safari 8
[ ] IE 11

Versions
v 2.0

 <img hidden id="typeTurnTable" style="position: absolute; height: 107px; width: 107px" src="[[importPath]]images/conveyorSubTypeTurnTable.svg"></img>

befor I get a exception from setupCompoundBinding -> "TypeError: Attemped to Assign readonly Property"

You should use src$= per https://www.polymer-project.org/1.0/docs/devguide/data-binding#native-binding

you're completly right!

thanks


Docs: add changelog

Coverage remained the same at 89.744% when pulling 8d3cae7af9a44a939f41c3723163f66fc018cd70 on docs/changelog into 81f0e17e321fdc5826bf8f1c83152a6cd6f4e26c on master.


Creating A Subsidiary Ledger?

Thanks for making the project available.
Just wondering. How would I be able to create a subsidiary ledger?
For example, an accounts receivable (general ledger) having a balance of 100,000 and is broken down into three subsidiary ledgers (AR - Ben / 40,000), (AR - Trisha / 25,000), (AR - Kevin 35,000).
I can of course create an incremental AR General Ledger.
For example, AR is 1200.
I can create AR-Ben as 1201, AR-Trisha as 1202 and AR-Kevin as 1203.
But its not sustainable since the Chart of Accounts would be unnecessarily long with many customers.
Is there a way around this?

Currently, there is no explicit support for subsidiary ledgers. However, there are two ways to break down a balance sheet account:

Creating child accounts e.g. for each customer as you described
Enabling lot tracking for the account

The latter would cause a Lot object to be created for all amounts posted to the account unless already assigned to an existing lot. If you enabled this for the AR account, you would by default get a new lot for each invoice. This method is more suitable for tracking individual invoices rather than customer balances, though.
Did I understand correctly that your main problem with the child account method is that the Chart of Accounts report becomes too long? Do you see any other drawbacks?


add GPIO ports G and H

I double checked these values in the memory map given in the STM32F303xD and STM32F303xE datasheet.

Thanks, @astraw.
@homunkulus r+

:pushpin: Commit 8560be5 has been approved by japaric

:hourglass: Testing commit 8560be5 with merge 8560be5...

:sunny: Test successful - status-travis
Approved by: japaric
Pushing 8560be568faecbb28d9e37f021356876e6a7e867 to master...


Bootstrap: Navs justified is not working correctly

Open sample with justified nav.

Make browser screen smaller to get all links in different rows rows
Maximize screen again - nav will be in 2 lines

The same happen when turn tablet screen from Portrait to Landscape.
Tested on Google Nexus 7''

Original bug: #9774


Re-add tox to tox.ini

It seems to have been accidentally removed in d4fb476 when moving to
CircleCI, which does not use tox - but tox is especially useful during
development, so let's keep it.

@paltman
btw: I think you should  remove the Travis integration from the protected branch settings.

Same for coveralls (also in the README).

I wonder if there is a way to keep the circleci config and the tox.ini in sync.  I hate the duplication but maybe there isn't away around it.

You could use tox in CircleCI.

See https://github.com/Vimjas/covimerage/blob/develop/.circleci/config.yml.

Fixed the conflict.

Sure but then we lose (I think) the individual status reporting which I really like.

No, you can still have jobs, but use tox in there - would also simplify your config in this regard maybe.

you can skip "install dependencies" then for example.
I can provide something if you like, but I think this PR makes sense first by itself.

@blueyed I'd love to see such a PR as I haven't been able to find how to have tox.ini config drive the workflows and individual job status reporting to a PR.

I'm trying to merge but github is having issues.  i have to step out but will try again when i get back.


Auto-build source to image for to push to a registry location

We need to setup a turnkey build->test->deploy(dogfood) for this simple service.
/cc @kensimon

I would like to have src -> image builds once we're ready to tag v0.1.0

I came up with a Dockerfile for an automated build on Docker Hub for the time beeing:
https://github.com/giantswarm/docker-eventrouter/

Autobuilds now post to gcr.io/heptio-images/eventrouter


[OnCall] Don't alert well catalogued (and somewhat expected) errors

Purpose of this PR is to control some of the most noisy alerts we are seeing (e.g. "Server too busy"). Those are well understood and catalogued yet they may still happen. While we may still want to alert if they happen more often than usual, it's currently not helpful to have these alerts in our channel.
Test Plan
Existing CI

Codecov Report

Merging #1187 (bd02ec9) into updated_paraswap_errors (f3c9f1c) will increase coverage by 0.00%.
The diff coverage is 60.00%.

@@                   Coverage Diff                    @@
##           updated_paraswap_errors    #1187   +/-   ##
========================================================
  Coverage                    66.69%   66.70%
========================================================
  Files                          135      135
  Lines                        27032    27035    +3
========================================================
+ Hits                         18030    18033    +3
  Misses                        9002     9002


fix: change related products promise type

What is this Contribution About?
Brief Description of Changes:
This pull request enhances the relatedProductsLoader function by improving its error handling mechanism. Previously, the loader used Promise.all to fetch related products in batches, which caused the entire loader to fail if any single productList call rejected due to an error (e.g., API failure or network issue). This behavior led to unhandled promise rejections and potential application instability.
To address this issue, the following changes have been made:
Replaced Promise.all with Promise.allSettled: This allows all promises to complete regardless of individual failures. It prevents the loader from rejecting entirely when a single promise fails.
Result Handling: The loader now filters the fulfilled promises to collect successful results and handles rejected promises by logging the errors. This ensures that the loader returns a consistent type (Product[] | null) without propagating errors unnecessarily.
Error Logging: Added console error logs for rejected promises to aid in debugging and monitoring of failed requests.
These enhancements improve the robustness and resilience of the relatedProductsLoader, ensuring that applications using it can handle partial failures gracefully without experiencing complete breakdowns in functionality.
Issue Link

Issue: #877

@portolucas Can we review this PR, or there still working to do?
One thing that comes to mind: we should log those errors, so we can monitor/take action if needed.
Also, if all promises fail, maybe we should keep current behavior: this loader should fail.


Add Ubuntu support

Swift is used on Ubuntu and MQTT is a good protocol for IoT purposes. This can be used both on the server-side and on Raspberry Pis.
Here is the current error log when built on Ubuntu MATE on Raspberry Pi:
/home/louie/projects/swift/SwiftMQTT/Sources/SwiftMQTT/MQTTSession.swift:90:89: error: '#selector' can only be used with the Objective-C runtime
        keepAliveTimer = Timer(timeInterval: Double(keepAlive), target: self, selector: #selector(MQTTSession.keepAliveTimerFired), userInfo: nil, repeats: true)
                                                                                ^
/home/louie/projects/swift/SwiftMQTT/Sources/SwiftMQTT/MQTTSessionStreamDelegate.swift:65:19: error: method 'stream(_:handle:)' has different argument names from those required by protocol 'StreamDelegate' ('stream(_:handleEvent:)')
    internal func stream(_ aStream: Stream, handle eventCode: Stream.Event) {
                  ^                         ~~~~~~
                                            handleEvent
Foundation.StreamDelegate:2:17: note: requirement 'stream(_:handleEvent:)' declared here
    public func stream(_ aStream: Foundation.Stream, handleEvent eventCode: Foundation.Stream.Event)
                ^
/home/louie/projects/swift/SwiftMQTT/Sources/SwiftMQTT/MQTTSessionStreamDelegate.swift:34:9: error: type 'Stream' has no member 'getStreamsToHost'
        Stream.getStreamsToHost(withName: host, port: Int(port), inputStream: &inputStream, outputStream: &outputStream)
        ^~~~~~ ~~~~~~~~~~~~~~~~
/home/louie/projects/swift/SwiftMQTT/Sources/SwiftMQTT/MQTTSessionStreamDelegate.swift:43:38: error: cannot convert value of type 'String' to expected argument type 'AnyObject?'
            inputStream?.setProperty(securityLevel, forKey: Stream.PropertyKey.socketSecurityLevelKey)
                                     ^~~~~~~~~~~~~
                                                   as! AnyObject
/home/louie/projects/swift/SwiftMQTT/Sources/SwiftMQTT/MQTTSessionStreamDelegate.swift:44:39: error: cannot convert value of type 'String' to expected argument type 'AnyObject?'
            outputStream?.setProperty(securityLevel, forKey: Stream.PropertyKey.socketSecurityLevelKey)
                                      ^~~~~~~~~~~~~
                                                    as! AnyObject
/home/louie/projects/swift/SwiftMQTT/Sources/SwiftMQTT/MQTTSessionStreamDelegate.swift:95:26: warning: result of call to 'read(_:maxLength:)' is unused
            inputStream?.read(&readByte, maxLength: 1)
                         ^   ~~~~~~~~~~~~~~~~~~~~~~~~~

For the #selector error, it looks like alternatives like Perfect's Threading framework is an alternative: https://stackoverflow.com/questions/41328989/swift-3-linux-with-perfect-add-a-scheduled-timer-with-interval-to-the-runloop

For the steam(_:handleEvent:) error, I filed a bug with Swift at https://bugs.swift.org/browse/SR-6088
It could also be worked around with #if os() directives.

Stream.getStreamsToHost is NSUnimplemented on Ubuntu, due to

// Discussion of this API is ongoing for its usage of AutoreleasingUnsafeMutablePointer

Hi, Would like to ask you, if you have solved the problem with: Stream.getStreamsToHost(withName: host, port: Int(port), inputStream: &inputStream, outputStream: &outputStream) Thanks for your answer!

The problem is stil not solved in 2021. I'm having the same issue on raspberry with swift 5.1.
I wanted to rewrite my smart home logic from python to swift, thus mqtt connection is a must.
Mqtt library uses Stream.getStreamsToHost under the hood, so it looks like it is a dead end to me.

Hard to believe that the discussion over the usage of a pointer is holding back a very useful API for several years now. If that API is not available, is there a matching workaround that just returns a tuple?

Have a try with this extension:
//
//  Cornucopia – (C) Dr. Lauer Information Technology
//
#if canImport(FoundationNetworking)
import Foundation
import CoreFoundation

/**
 NOTE: getStreamsToHost(withName hostname: String, port: Int, inputStream: AutoreleasingUnsafeMutablePointer<InputStream?>?, outputStream: AutoreleasingUnsafeMutablePointer<OutputStream?>?)
       is not implemented for non-apple platforms due to some obscure ongoing discussion with regards to the use of `AutoreleasingUnsafeMutablePointer`.
       This extension replicates this very useful API – possible at the expense of leaking memory or what not.
 */
public extension Stream {

    /// Creates and returns by reference an NSInputStream object and NSOutputStream object for a socket connection with a given host on a given port.
    class func getStreamsToHost(withName hostname: String, port: Int, inputStream: AutoreleasingUnsafeMutablePointer<InputStream?>?, outputStream: AutoreleasingUnsafeMutablePointer<OutputStream?>?) {

        var pReadStream: UnsafeMutablePointer<Unmanaged<CFReadStream>?> = UnsafeMutablePointer.allocate(capacity: 1)
        var pWriteStream: UnsafeMutablePointer<Unmanaged<CFWriteStream>?> = UnsafeMutablePointer.allocate(capacity: 1)
        CFStreamCreatePairWithSocketToHost(kCFAllocatorDefault, hostname as CFString, UInt32(port), pReadStream, pWriteStream)
        guard let pInputStream = inputStream else { fatalError("inputStream needs to be non-NULL") }
        guard let pOutputStream = outputStream else { fatalError("outputStream needs to be non-NULL") }
        pInputStream.pointee = pReadStream.pointee?.takeRetainedValue()
        pOutputStream.pointee = pWriteStream.pointee?.takeRetainedValue()
    }
}
#endif


cleaned up a bit, removed global variable

Cleaned up the LamBO objective a bit.

Hi Simon!
Since the checks are passing, feel free to merge! Or let me know if you'd like me to merge this PR instead.


Make train: raise ValueError('value should be one of int, float, str, bool, or torch.Tensor')

I make install:
pip install -r requirements
Then run training and get:
Traceback (most recent call last):
  File "cotatron_trainer.py", line 75, in <module>
    main(args)
  File "cotatron_trainer.py", line 54, in main
    trainer.fit(model)
  File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 602, in fit
    self.single_gpu_train(model)
  File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/trainer/distrib_parts.py", line 470, in single_gpu_train
    self.run_pretrain_routine(model)
  File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 748, in run_pretrain_routine
    self.logger.log_hyperparams(ref_model.hparams)
  File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/loggers/base.py", line 18, in wrapped_fn
    fn(self, *args, **kwargs)
  File "/opt/conda/lib/python3.7/site-packages/pytorch_lightning/loggers/tensorboard.py", line 113, in log_hyperparams
    exp, ssi, sei = hparams(params, {})
  File "/opt/conda/lib/python3.7/site-packages/torch/utils/tensorboard/summary.py", line 156, in hparams
    raise ValueError('value should be one of int, float, str, bool, or torch.Tensor')
ValueError: value should be one of int, float, str, bool, or torch.Tensor

Singe GPU or multi same error.
tried update tensorboard no make difference.

Have you solved this problem?

@paklau99988 What was the version of the TensorBoard for your case? Can you show your result of pip freeze?

I'm seeing the same issue. Here's the result of my pip freeze
absl-py==0.11.0
appdirs==1.4.4
asn1crypto==0.24.0
astor==0.8.1
audioread==2.1.9
certifi==2020.12.5
cffi==1.14.5
chardet==4.0.0
cryptography==2.1.4
cycler==0.10.0
dataclasses==0.8
decorator==5.0.7
filelock==3.0.12
future==0.18.2
gast==0.2.2
gdown==3.12.2
google-pasta==0.2.0
grpcio==1.34.0
h5py==2.10.0
idna==2.6
importlib-metadata==3.3.0
inflect==5.3.0
joblib==1.0.1
Keras-Applications==1.0.8
Keras-Preprocessing==1.1.2
keyring==10.6.0
keyrings.alt==3.0
kiwisolver==1.3.1
librosa==0.8.0
llvmlite==0.36.0
Markdown==3.3.3
matplotlib==3.3.4
numba==0.53.1
numpy==1.18.5
omegaconf==2.0.6
opt-einsum==3.3.0
packaging==20.9
Pillow==8.2.0
pooch==1.3.0
protobuf==3.14.0
pycparser==2.20
pycrypto==2.6.1
pygobject==3.26.1
pyparsing==2.4.7
PySocks==1.7.1
python-apt==1.6.5+ubuntu0.5
python-dateutil==2.8.1
pytorch-lightning==0.7.1
pyxdg==0.25
PyYAML==5.4.1
requests==2.25.1
resampy==0.2.2
scikit-learn==0.24.2
scipy==1.5.4
SecretStorage==2.3.1
six==1.11.0
SoundFile==0.10.3.post1
tensorboard==1.15.0
tensorflow-estimator==1.15.1
termcolor==1.1.0
threadpoolctl==2.1.0
torch==1.4.0
tqdm==4.60.0
typing-extensions==<IP_ADDRESS>
Unidecode==1.2.0
urllib3==1.26.4
Werkzeug==1.0.1
wrapt==1.12.1
zipp==3.4.0

BTW same issue seen with Python 3.6.9, 3.7.10
However, bumping the pytorch-lightning version to 0.7.3 does appear to fix the issue. Is this a valid thing to do?


Introduce Error.Source

Basically a replacement for RequestItem.
This seems related to #581, but I still think we need both: Error.Source and Endpoint.Meta. We will use the first only in errors and we'll use the second for things like Swagger generation.

I've been playing with an implementation of Endpoint.Meta and I see it working as a replacement for RequestItems, but I'm not quite sure about Error.Source. Was there some deeper modeling you were thinking of or was the idea to just change were Error.scala lives? I don't have a problem with either, just need more info to include that.


Recipes: General (very minor things)

Device Model: Using a different term than 'sensor module' might be considered (embedded system, node, mote), since this is the first thing new users would read after creating an account.
https://www.google.de/search?q=sensor+module&espv=2&source=lnms&tbm=isch&sa=X&ved=0ahUKEwjx5ZzthZvMAhVMuBQKHfa9ApoQ_AUIBygB&biw=1280&bih=678
Path could be added to first commands JSON example (just to have a full example), maybe 'soundTheAlarm' renamed.
Devices: Moving the description of 'adding a device', above 'viewing a device' might be useful for first time user of Dashboard, but then again less useful for more experienced users.

Incorporated the feedback into e74f8b1. Agree with moving the "adding a device" section up because the intended audience is first-time users.


fix: disable webpack rebuilds on karma --single-run

Please check if the PR fulfills these requirements

[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Other... Please describe:

What is the current behavior? (You can also link to an open issue here)
When running a long test suite as a single run, if you make changes to any of the files during the run, webpack will start recompiling
What is the new behavior?
Webpack is only run in watch mode when running karma is not running with the --single-run flag
Does this PR introduce a breaking change?

[ ] Yes
[x] No

If this PR contains a breaking change, please describe the following...
N/A
Other information:

There aren't any actual tests in this repo beyond the basic integration one. The next weekend I have free I can sit down and write some in a follow up PR 😄

merge? travis red. Almost 1 month after approved.


Implement landing page cards

Description

Adds <Card> and <CardGrid> components designed for landing page use
Updates Starlight’s landing page to use these
Adds the “About Astro” section to the Starlight landing page as well

size-limit report 📦

Path
Size

/index.html
12.26 KB (+29.73% 🔺)

/_astro/*.js
16.51 KB (0%)

/_astro/*.css
10.41 KB (+7.83% 🔺)


Fix iOS8 issue where rotation methods are called twice

When running on iOS 8 GM, I noticed that methods like willRotateToInterfaceOrientation:toInterfaceOrientation: were getting called twice on any UIViewControllers that were children of MMDrawerController. This fix should help.

Thank you for this. This is crucial if you have a master-detail splitview inside the main window. Without this, you'll get the "Unbalanced calls to begin/end appearance transitions" error msg and your viewWillAppear method won't be called.

Do you have an example project pushed up anywhere showing this behavior?

Thanks for the PR! I took it, and cleaned it up in #351
:beers:


Different CachingFileSystem instances compare equal

Different CachingFileSystem instances compare equal, even if they have different properties:
from fsspec.implementations.cached import CachingFileSystem
from fsspec.implementations.local import LocalFileSystem
lfs = LocalFileSystem()
cfs = CachingFileSystem(
        fs=LocalFileSystem(),
        cache_storage="/data/gholl/cache/dummy",
        cache_check=600,
        check_files=False,
        expiry_times=False,
        same_names=False)
cfs2 = CachingFileSystem(
        fs=LocalFileSystem(),
        cache_storage="/data/gholl/cache/dummy2",
        cache_check=900,
        check_files=False,
        expiry_times=True,
        same_names=True)
print(cfs == cfs2)

Running this gives True.  I would expect it to give False, because those CachingFileSystems are clearly not equal.

It seems that cfs._fs_token is picking up lfs's token. Caching file systems have a custom getattribute for looking up methods/attributed in the cacher as opposed to the target, that's where this will be fixed.
Would you like to work on this?

Possibly related to this and #576:
In [15]: CachingFileSystem(fs=LocalFileSystem()).to_json()
Out[15]: '{"cls": "fsspec.implementations.local.LocalFileSystem", "protocol": "file", "args": []}'

I will have a look if I can figure out how this should be fixed.


Actual Date restrictions

cannot have actual dates in the future. today or before ONLY

As a (type of user)
I want (goal)
so that (reason/ why/ value)
Acceptance Criteria
Scenario 1:
GIVEN ... (you or your condition)
WHEN ... (what you do)
THEN ... (what you see)
Scenario 2:
xxxxxx
Validation Rules?
(If yes, list here)
Screenshot
(Link above will always be the most up-to-date version.)

@dinesh-aot is this being handled in any other Cards you're working on?
@EAO-App-Admin discouvered the bug actually pushes previously locked milestones

Restrictions

Restrict the work start minimum value to June 30, 1995
Actual date of any event should be set minimum to phase start date and maximum to today

Correct!
and phaseStartEvent ACTUAL is minimum June 30, 1995 and maximum TODAY


Revamp env var infrastructure

Need to be able to point cloud instances and local testing to different sets of environment variables. Objectives:

Set with one variable change that allows all files to point to a local path
Set with one variable change to point to remote knowledgebase or knowledgebase branch

#147 allows this, can make changes to .env.remote to allow for pointing at remote branches with restricted datasets. Resolve this issue when pull is approved :)


React Spike: Create a new Kuma wiki endpoint for experimentation

User story
As an MDN frontend developer, I want to create a new Kuma endpoint, so I can experiment with React without affecting pages that are user-visible.
See https://bugzilla.mozilla.org/show_bug.cgi?id=1525719
Acceptance criteria

[x] the new endpoint allows me to access URLs like /en-US/ducks/Web/HTML/Element/abbr that display exactly the same content (before I begin experimenting) as /en-US/docs/Web/HTML/Element/abbr (though we might use "beta" or "react" or "test" instead of "ducks"

[x] (optional) the new endpoint only works on the staging server, and is not available to end-users on developer.mozilla.org

Existing page: https://developer.allizom.org/en-US/docs/Web/CSS/appearance
With React: https://developer.allizom.org/en-US/ducks/Web/CSS/appearance


French translations 1

French translations of content. Translations of text generated by JS files such as labels and templates to be added when supported. All translations by me, except the translation for the page 2020-04-14-become-a-tbtc-permissionless-signer-stake-eth-earn-keep.md which is from user StateLayer#5254 on Discord. Remaining grammar mistakes and typos will be fixed in a future PR.

We're ready to review this! Would you mind pulling and maybe rebasing onto master to take care of the conflicts?
Hoping @Shadowfiend or @liz-shinn can give the content a look as well.

We're ready to review this! Would you mind pulling and maybe rebasing onto master to take care of the conflicts?

I'd be happy to do this. New to Git/GitHub collaborations though. Mind explaining me how to do it from VSCode?

Hm, not a VSCoder but I can probably fix this up... Giving it a local review


ParetoNBDFitter::conditional_expected_number_of_purchases_up_to_time() overflow

In some cases ParetoNBDFitter::conditional_expected_number_of_purchases_up_to_time() would overflow due mostly to the exp(likelihood) term.
This PR implements the usual log-sum-exp strategy to try to guard against this kind of numerical overflow.

👌 nice changes - were you seeing this in production or just test data?


Visual feedback when choosing a solitaire

Thumbnails maybe?

I have screenshots for every game (don't worry, I automated it), but didn't know where to add it, and I didn't want to add 500 images to the home page. I tried a hover effect too, but that skips mobile users.

I don't know if this would work, but what if instead of using screenshots (are you worried about bandwidth or just visual space?) you did this:

Prepare small, optimized and simplified version (like just the big "K" letter for "King" and the symbol) of each necessary card (maybe you don't even need a whole deck for this). I think what we want here is to show the user how a given solitaire looks more or less.

You use then the code to generate each solitaire's miniature layout out of these simplified cards.

We get something looking like thumbnails, but generated by the code, so these cards would be downloaded only once and then could be reused by each solitaire's miniature layout on the site.

Use a similar icon if loading (when scrolling the page?) of such a layout would be necessary: http://www.tutorialbunch.com/photoshop/animation/images/google-loading-icon10.gif

You can also use such miniature layouts when using "search" (even when searching from within a solitaire): https://github.com/KyleU/solitaire.gg/issues/8

I can generate screenshots at any size, or actually create mini-games and deal the cards out, but viewing the list of games would require either 500 images (killing bandwidth and responsiveness) or 500 games (killing your poor CPU).
We could have a list of games, and then when clicking the game name it would show a screenshot or minigame? That would solve the load problem, but I'm not sure what it would look like.

I guess loading just a few screenshot while scrolling would not help?

Right now the entire app, all the games, assets, and HTML

...is less than a meg. I'm really going for speed above (almost) all else. I'll certainly include screenshots for a specific game's help files.


[ASAP-313] - update gp2 algolia schema

ref: https://asaphub.atlassian.net/jira/software/c/projects/ASAP/boards/13?selectedIssue=ASAP-313

Don't we need to add the same thing to packages/algolia/schema/gp2/algolia-reverse-timestamp-schema.json?
Also, it would be nice to add the tag gp2-create-environment so it's possible to test it 😉

It seems we don't use the reverse index in gp2? I didn't find a query using it so I wasn't sure if we needed to add it there as well. There were two fields in the algolia-schema.json that weren't in the algolia-reverse-timestamp-schema.json as well so I wasn't sure what the criteria was. I guess to keep it uniform I could just add them


Prefer bytes.concat over abi.encodePacked for concatenation

See https://github.com/ethereum/solidity/issues/10903.

:link: zboto Link

@Stebalien there is only one place where we could actually replace this. Other places are not concatenating bytes only.
https://github.com/Zondax/filecoin-solidity/blob/d9fded44f38baa403dbf4981a38b062555355da5/contracts/v0.8/utils/FilAddresses.sol#L44

Should we change only that place?

Ah, because the other places are using non bytes types. I see.
Nah, makes sense. Sorry for the noise.

@Stebalien np at all! Thanks for the feedback


load_threaded_get_status() providing incorrect loading progress values

Godot version
4.0.dev (90801a4153)
System information
Windows 10
Issue description
When providing an array to load_threaded_get_status(), the array is only populated with 0 or 1, no in-between values.
Steps to reproduce
Run MRP.
Note that the test scene has two images. Feel free to replace them with more/larger ones to make the effect more obvious.
Minimal reproduction project
LoadingBug.zip

@markdibarry The minimal reproduction project didn't upload (likely because you clicked away from the text field while it was still uploading). Try editing your post and upload it again.

Updated. Thanks!

For this specific problem, copying
https://github.com/godotengine/godot/blob/c658fa8b77eb701ddb504cba14fe2c966b7bb105/scene/resources/resource_format_text.cpp#L654-L656
just after https://github.com/godotengine/godot/blob/c658fa8b77eb701ddb504cba14fe2c966b7bb105/scene/resources/resource_format_text.cpp#L509
solves the problem.
/////
Beside that, I think current cache_mode should not be overwritten when making a "sub load"
https://github.com/godotengine/godot/blob/c658fa8b77eb701ddb504cba14fe2c966b7bb105/scene/resources/resource_format_text.cpp#L466
https://github.com/godotengine/godot/blob/c658fa8b77eb701ddb504cba14fe2c966b7bb105/scene/resources/resource_format_text.cpp#L480
when this kind of parameter is explicitly set, it is expected to be used "all the way down".
It may be related to how ResourceLoader::load decides to use its load_threaded_request or _load method, but at the end, it made it a bit harder to track things
https://github.com/godotengine/godot/blob/c658fa8b77eb701ddb504cba14fe2c966b7bb105/core/io/resource_loader.cpp#L522-L527
/////
To finish, it didn't happen everytime but I had this error few times while debugging (happens when you stop running the scene)
ERROR: 2 RID allocations of type 'class RendererRD::TextureStorage::Texture' were leaked at exit.
WARNING: 4 RIDs of type "Texture" were leaked.
     at: RenderingDeviceVulkan::finalize (drivers\vulkan\rendering_device_vulkan.cpp:9736)
 - RID:4101693767839
 - RID:4153233375393
 - RID:4097398800542
 - RID:4148938408096

Duplicate of #56882


Feat/classification metrics

Is the notebook serving as a guideline on whats expected of the recruits on their notebook?

Yes @Rokhuda


FLP-508 added last Friday in June to collection calendar return

closing as we have decided not to calculate last friday here since it pertains to school years rather than collection calendar academic years


Why does NaughtsAndCrossesState not play so well?

I play with the AI, but it seems not to play so well in this easy game.
For example,
    def __init__(self):
        self.board = [[1, -1, 0],
                             [1,  1, 0],
                             [-1, 0, -1]]
        self.currentPlayer = 1

I think humans will definitely choose (1,2), but the code seem to usually choose (0, 2)
Is my operation wrong?Or what caused it to rush the wrong way.

You're right, this was due to a bug in the getBestChild function as spotted by @mrtolkiein.  I've pushed a change to fix this; good luck beating the AI now!


Seperate models

This PR splits of the parts of the model (ObjectModel, HypothesisModel and MotionModel) to enable improvements to configuration and documentation.
Related: #24, #49

@dpshelio - I've separated out the models now (in models.py), which should make configuration from a plugin easier, and will enable better documentation.


Semantic release

Overview
This pull request fixes #7.
This pull request adds a Semantic-Release stage to Travis-CI.
Testing recommendations
Try a release.
Checklist

[x] Code is written and works correctly
[x] Changes are covered by tests
[ ] This PR includes for changes to the documentation

:tada: This PR is included in version 1.1.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Support for same Wasm module serving different routes but with different configurations.

This feature request comes originally from #6.
In this case, we might want the same Wasm module to be used in different routes but with different configurations (ie: different WasmMapDir directives, etc.). The reason to use the same Wasm module is to save memory by not loading the same module several times.

Fixed at #27


Ability to transform events

Ideas:

Create an Elixir JSON transformation library that users a template defines the structure of the new JSON and uses JSONpaths to define the values.
Add support for Elixir module based transformers. Think transformer contains config map that can configure how a transformer module transforms the data. Developer users could inject modules using a Dockerfile to add their own custom transformers. Or community supported transformers can be added via pull results.
Lua script based transformations (already exists)
Liquid template based transformations

I don't think the target user will be Elixir users (I could be wrong)
My vote is 4: I think we should see how far we can get with the Liquid approach. Maybe add a custom request function/tag that could call and return data from say, serverless for those who want to use JS or Python.
Second place vote is 2.

Also, I wonder if we should have the concept of before and after Transformers (before Event is saved). Or maybe we enforce that Event.data is always saved in the format in which it arrived (source of truth)?

Also, I wonder if we should have the concept of before and after Transformers (before Event is saved). Or maybe we enforce that Event.data is always saved in the format in which it arrived (source of truth)

I think transformers will be needed from ingesting data from a source, when forwarding an event to another topic and when sending an event to a destination.


Using enable_testing like it is used there is an antipattern

You should not use any extra variables and you should use -DCMAKE_BUILD_TYPE=Debug instead to activate tests.
https://raymii.org/s/tutorials/Cpp_project_setup_with_cmake_and_unit_tests.html
https://github.com/nemtrif/utfcpp/blob/master/CMakeLists.txt#L10
Due to this issue the antlr4-cpp runtime is having hard times.
https://github.com/antlr/antlr4/pull/2913

For me there's nothing wrong in having a variable controlling doing or not doing tests and tests should be performed in both Debug/Release builds. The problem here is that gtest is invasive and forces by default /MT. I had a similar problem and I changed it to debug /MD in my tree. I don't know what you are doing in antlr but utfcpp is an header only library, and antlr should use that way, not including the CMakeLists.txt in their build system. If they are including it in their build system for good reasons they should just disable tests externally, or tell gtest to use /MD as already discovered in your link.

OK, I understand the idea behind.


The Great Migration - Tools update

With the great migration coming to an end, it's time to track the final tasks and make sure they are done before 0.91.

[x] Update LabelBot to no longer attach platform labels https://github.com/home-assistant/LabelBot/pull/6
[x] Write a script to update labels in this repo from component: hue to integration: hue
[x] Write a script to merge all platform labels in the repo into component labels for open PRs. -> platform: light.hue -> integration: hue. (let's not do all PRs or we hit all the rate limits)
[x] Update HASS Release to be able to handle integration: hue labels (this function)

[ ] Update the home-assistant.io documentation to put sensors etc either all together, or all in their components (or even both??).

The documentation update is a separate discussion which should probably be done in that repo. Migrating the docs for an integration from many platform pages into the component page is under way. But it doesn't scale for large integrations. See eg https://github.com/home-assistant/home-assistant.io/pull/8593.

It won't be necessary to merge all the docs, as long as we just treat the component as an entrypoint to the docs for that integration. The page itself will actually show its platforms.

don't laugh at my janky modern js skills
script to update component labels:
const Octokit = require('@octokit/rest')
const octokit = new Octokit({
  auth: 'token TOKEN_HERE'
});

const options = octokit.issues.listLabelsForRepo.endpoint.merge({
  owner: 'home-assistant',
  repo: 'home-assistant',
  per_page: 100,
})
octokit.paginate(options)
  .then(data => {
    data.forEach(existing_label => {
      if(existing_label.name.indexOf('component: ') !== -1) {
        console.log('rename', existing_label.name, 'to', existing_label.name.replace('component: ', 'integration: '));
        octokit.issues.updateLabel({
          owner: 'home-assistant',
          repo: 'home-assistant',
          current_name: existing_label.name,
          name: existing_label.name.replace('component: ', 'integration: '),
        }).then(updated_label => {
          console.log('Updated', existing_label.name, 'to', updated_label.name);
        })
      }
    });
  });

script to update platform labels:
const Octokit = require('@octokit/rest')
const octokit = new Octokit({
  auth: 'token TOKEN_HERE'
});

const options = octokit.pulls.list.endpoint.merge({
  owner: 'home-assistant',
  repo: 'home-assistant',
  state: 'open',
  per_page: 100,
})
octokit.paginate(options).then(data => {
  data.forEach(pull_request => {
    var needsLabelUpdate = false;
    var newLabels = [];
    pull_request.labels.forEach(label => {
      if(label.name.indexOf('platform: ') !== -1) {
        needsLabelUpdate = true;
        var splitName = label.name.split('.');
        label.name = 'integration: '+splitName[1];
      }
      newLabels.push(label.name);
    });
    if(needsLabelUpdate) {
      console.log('newLabels', pull_request.number, newLabels);
      octokit.issues.update({
        owner: 'home-assistant',
        repo: 'home-assistant',
        number: pull_request.number,
        labels: newLabels,
      }).then(({data, headers, status}) => {
        console.log('Updated labels for PR', data.number);
      })
    }
  });
});

Here's one related helpful script to get a detailed breakdown of label usage in a repo.

Implemented all of @Swamp-Ig's suggestions.

Deletion of platform:  labels complete!

Thanks all but mostly me!


Google object store

Pull Request Test Coverage Report for Build<PHONE_NUMBER>7
Details

0 of 61 (0.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-2.6%) to 41.675%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/export/google.go
0
61
0.0%

Totals

Change from base Build<PHONE_NUMBER>8:
-2.6%

Covered Lines:
438

Relevant Lines:
1051

💛  - Coveralls


[REQUEST] search box in the area of configs

A search box in the area of configs, I have + 240 configs, it is very difficult to find something, if it were possible a search box there, would make it very easy !
I believe that many have the same problem as mine!

Mate i literally implemented less than 24 hours ago...
https://github.com/openbullet/openbullet/commit/3bcfb7cae9c3da45741325ebe15aea45975295b8


Added bbs-meppen to domains

Added bbs-meppen to domains

@pascal-merkers Pull request merged. Thank you!


Added UpdateCommand

Added update command fixing #215.
To test: Your user must be an Admin, so change isAdmin to True in the database (dbo.AspNetUsers). Then typing /update should pop up a UI message saying the page will refresh in 15 seconds, then refresh the page if not done already. The page should refresh for all users logged in (it did for multiple tabs when I tried).

@ashanhol command prompts a notification as well as a browser refresh. :shipit:


Uncaught ReferenceError: path is not defined

git-blame doesn't seem to be working for me any more. I get this error on any file I try:
Atom Version: 0.199.0
System: Mac OS X 10.9.5
Thrown From: git-blame package, v0.4.3
Stack Trace
Uncaught ReferenceError: path is not defined
At /Users/jacobevelyn/.atom/packages/git-blame/lib/git-blame.js:27

ReferenceError: path is not defined
    at atom-workspace.toggleBlame (/Users/jacobevelyn/.atom/packages/git-blame/lib/git-blame.js:27:60)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:238:29)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:519:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:354:22)
    at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:178:20)

Commands
  2x -0:09.5.0 core:close (div.release-notes.padded.pane-item.native-key-bindings)
     -0:00.4.0 git-blame:toggle (atom-text-editor.editor.is-focused)

Config
{
  "core": {
    "disabledPackages": [
      "autocomplete"
    ],
    "themes": [
      "atom-dark-ui",
      "monokai"
    ],
    "audioBeep": false
  },
  "git-blame": {}
}

Installed Packages
# User
autoclose-html, v0.16.0
git-blame, v0.4.3
language-haml, v0.20.0
monokai, v0.14.0
pretty-json, v0.3.3
webbox-color, v0.5.6

# Dev
No dev packages

:+1:

:+1:

:+1:

:+1:

:+1:

:+1:

:+1:
(On Linux)

:+1:

:+1:

:+1:

:+1:

:+1:

:+1:

Just got this :+1:

:+1:

:+1: git-blame has been broken for me for weeks :(

Also seeing the error on Atom for Windows

I just published git-blame-plus with the fix. It's currently just a fork of git-blame. This is a temporary measure and I'll be happy to unpublish that package when bugs are fixed.

still does not open
On Thu, May 21, 2015 at 12:01 PM Adrian Lee<EMAIL_ADDRESS>wrote:

I just published git-blame-plus https://atom.io/packages/git-blame-plus
with the fix. It's currently just a fork of git-blame. This is a temporary
measure and I'll be happy to unpublish that package when bugs are fixed.
—
Reply to this email directly or view it on GitHub
https://github.com/alexcorre/git-blame/issues/90#issuecomment-104389804.

There is another bug that is preventing the gutter from showing up. That issue is tracked in #89. Looking into it.

:+1:

:+1:

@adeitcher, with Atom v0.201.0 and git-blame-plus v0.4.6, I'm able to toggle the pane. Any chance you can test it out?

:+1:  Running the issue as well on OS X Yosemite 10.10.3.

:+1:
Linux (Elementary OS - Ubuntu 14.04 based)
Atom: 0.201.0
Git Blame version: 0.4.3

v0.4.6 is not opening the gutter on Atom v0.201.0 / Windows 7.
The dev console reports a not-so-useful error when attempting to activate git-blame:
Unhandled promise rejection.
Error: Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.

@peacechen, I think that issue has to do with #89.
Since reactionary-atom-fork isn't maintained by the core team anymore, i'm thinking maybe it's time to move git-blame out of react completely.

:+1:

:+1:

:+1:

:+1:

:+1:

hi @adrianlee44 thanks for the PR i'll pull that in and release an update.  i also plan to move off of react as its causing lots of people issues.  anyone interested in helping out please reach out!

@adrianlee44 i appreciate you're getting the fixes out there, but i'd prefer if we can keep from releasing forks.  Apologies for something not getting these fixes out sooner! looking at your PR now.

Merged in #91 and released v0.4.4

@alexcorre, thanks for merging the PR! I released the fork as a quick fix and have no intension of maintaining that or continue updating it if there is active development on this repo.


Runtime API to create a proof of a leaf of a child storage trie up to the child trie root

In centrifuge chain we store our data in child storage for a given date. Eg:
set_child_storage(aGivenDate, id, val)

Then someone would ask the chain for a proof of the val up to the root of the child trie. A user of the chain would store this proof to later prove that the val existed on chain at a certain time.
// this function doesn't exist at https://substrate.dev/rustdocs/v1.0/sr_io/index.html
// a user of the chain would store this proof to later prove that the `val` existed on chain at a certain time
proof = child_storage_proof(aGivenDate, id)

Then we would like to delete the items in the storage after a given period, say 1 month, while storing the root of the child trie on chain for proving existence of data at a later time.
// store this root onchain
root = child_storage_root(aGivenDate)
// delete data
clear_child_storage(aGivenDate)

Would it be possible to expose the child_storage_proof(aGivenDate, id) api in sr_io?
cc @thiolliere @cheme

Child-trie state proofs would be generally useful, with broad applications for moving data off-chain especially when combined with APIs for off-chain workers to maintain that data, although that would be a stretch goal.

note: this child_storage_proof doesn't need to be computed on chain you just need to have the storage and be able to fetch this proof.
Maybe we want to have in sr-io a method to fetch the hash of a node and so child_storage_proof can be implemented on top of that.


es2015ify

removed the fs.access existence check and added pify for cleaner code. But it's a dependency off course so I would understand if you would like it back the way it was.

I don't think pify simplifies the code in this instance, actually rather the opposite.

Removed pify

done

Thanks :)

You're welcome :)

What's wrong with 0.12? Too much code?

0.12 is being phased out. If you want support, you can always install an older version.


Move tests into couchdb package.

Per http://golang.org/pkg/testing/

To write a new test suite, create a file whose name ends _test.go that
contains the TestXxx functions as described here.  Put the file in the
same package as the one being tested.

Reason: I need to add tests for some unexported methods (while addressing #6 )

I'm not sure what to make of the failing test cases.  They all work for me on Go 1.5.  Should more modern versions of Go be added to .travis.yml (and should the ancient ones be removed)?


changed the component name specification for CICEDyna

This PR changed the component name specification in AGCM.rc.tmpl for CICEDyna grid comp from SEAICE to CICE4. It is required by the newly introduced GEOS_SeaIceGridComp.
It is continent on https://github.com/GEOS-ESM/GEOSgcm_GridComp/issues/424

Hmm. Not sure why I'm on the approval list for this file. @mathomp4?

I think @zhaobin74 explicitly tagged us. Probably just so we were aware of it. 😄


Stylesheets / Open-Source Sample Projects

Hello! I was wondering if you had any “style sheets”—or style templates for setting the configuration. Alternatively, if you could open-source the sample projects (other than the already open-sourced Sandbox) to be a point of reference for setting the configuration, that would be fantastic! Thanks!

@GenericP3rson Could you please tell a bit more about the problem you're trying to solve? The library itself has no pre-defined styles. The node and links colors can be provided in the configuration object. We have a palette that we use for Comsograph (https://cosmograph.app) but it's just a few colors.

Note: This question was answered on the Discord. Adding a summary below. Thank you, @rokotyan, for helping me out!

Are there any stylesheets?

There are not. The flow-y and sleek visualisations are defined by internal graph structures.

Are there any samples projects?

Yes, see below. However, the dashboard, known as Cosmograph, is closed-source.
MathWorks/Kuu
The MathWorks, Inc: symmetric positive definite matrix
https://sparse.tamu.edu/MathWorks/Kuu
https://cosmograph.app/run/?data=https://cosmograph.app/data/Kuu.csv
HB/blckhole
S CONNECTIVITY STRUCTURE OF A GEODESIC DOME ON A COARSE BASE
https://sparse.tamu.edu/HB/blckhole
https://cosmograph.app/run/?data=https://cosmograph.app/data/blckhole.csv
HB/can_229
SYMMETRIC PATTERN FROM CANNES,LUCIEN MARRO,JUNE 1981.
https://sparse.tamu.edu/HB/can_229
https://cosmograph.app/run/?data=https://cosmograph.app/data/can_229.csv
Gset/G34
2D torus, 40-by-50, uniformly random +1/-1 entries
https://sparse.tamu.edu/Gset/G34
https://cosmograph.app/run/?data=https://cosmograph.app/data/G34.csv
Pothen/sphere3
sphere3, with coordinates. From NASA, collected by Alex Pothen
https://sparse.tamu.edu/Pothen/sphere3
https://cosmograph.app/run/?data=https://cosmograph.app/data/sphere3.csv
Bydder/mri1
MRI reconstruction (1), from Mark Bydder, UCSD
https://sparse.tamu.edu/Bydder/mri1
https://cosmograph.app/run/?data=https://cosmograph.app/data/mri1.csv
Mittelmann/pds-90
Patient distribution (evacuation) system
https://sparse.tamu.edu/Mittelmann/pds-90
https://cosmograph.app/run/?data=https://cosmograph.app/data/pds-90.csv
Chen/pkustk10
PKU SYMMETRIC STIFFNESS, 4 TOWER SILO
https://sparse.tamu.edu/Chen/pkustk10
https://cosmograph.app/run/?data=https://cosmograph.app/data/pkustk10.csv
GHS_indef/aug3d
Gould, Hu, & Scott: expanded system-3D PDE (CUTEr)
https://sparse.tamu.edu/GHS_indef/aug3d
https://cosmograph.app/run/?data=https://cosmograph.app/data/aug3d.csv
Nasa/barth5
BARTH5: Nasa matrix, but with a diagonal added to the original matrix
https://sparse.tamu.edu/Nasa/barth5
https://cosmograph.app/run/?data=https://cosmograph.app/data/barth5.csv
[12:38 PM]
DIMACS10/delaunay_n10
DIMACS10 set: delaunay/delaunay_n10
https://sparse.tamu.edu/DIMACS10/delaunay_n10
https://cosmograph.app/run/?data=https://cosmograph.app/data/delaunay_n10.csv
HB/dwt_1005
SYMMETRIC CONNECTION TABLE FROM DTNSRDC, WASHINGTON
https://sparse.tamu.edu/HB/dwt_1005
https://cosmograph.app/run/?data=https://cosmograph.app/data/dwt_1005.csv
HB/gre_1107
UNSYMMETRIC MATRIX FROM GRENOBLE,FRANCOIS CACHARD,MARCH 1981.
https://sparse.tamu.edu/HB/gre_1107
https://cosmograph.app/run/?data=https://cosmograph.app/data/gre_1107.csv
Hollinger/jan99jac040sc
Jacobian from Bank of Canada ‘jan99’ model, oldstack 040, with scaling
https://sparse.tamu.edu/Hollinger/jan99jac040sc
https://cosmograph.app/run/?data=https://cosmograph.app/data/jan99jac040sc.csv
HB/man_5976
MANTEUFFEL’S FINITE ELEMENT PROBLEM (CONDENSED)
https://sparse.tamu.edu/HB/man_5976
https://cosmograph.app/run/?data=https://cosmograph.app/data/man_5976.csv
Boeing/msc01440
SYMMETRIC TEST MATRIX FROM MSC/NASTRAN CYLF8.OUT2
https://sparse.tamu.edu/Boeing/msc01440
https://cosmograph.app/run/?data=https://cosmograph.app/data/msc01440.csv
Nasa/nasa4704
STRUCTURE FROM NASA LANGLEY, 4704 DEGREES OF FREEDOM
https://sparse.tamu.edu/Nasa/nasa4704
https://cosmograph.app/run/?data=https://cosmograph.app/data/nasa4704.csv
Bai/rw5151
MARKOV CHAIN MODELING, RANDOM WALK (M = 100) G. W. STEWART
https://sparse.tamu.edu/Bai/rw5151
https://cosmograph.app/run/?data=https://cosmograph.app/data/rw5151.csv
Shyy/shyy41
Wei Shyy, Univ. Florida. CFD/Navier-Stokes,viscous flow, fully coupled
https://sparse.tamu.edu/Shyy/shyy41
https://cosmograph.app/run/?data=https://cosmograph.app/data/shyy41.csv
Shyy/shyy161
Wei Shyy, Univ. Florida. CFD/Navier-Stokes,viscous flow, fully coupled
https://sparse.tamu.edu/Shyy/shyy161
https://cosmograph.app/run/?data=https://cosmograph.app/data/shyy161.csv
[12:38 PM]
HB/young3c
real matrix from aero research, David Young, corrected RUA version
https://sparse.tamu.edu/HB/young3c
https://cosmograph.app/run/?data=https://cosmograph.app/data/young3c.csv
TKK/cyl6
Cylindrical shell, non-linear analysis, 3 RHS vectors at step 6. R Kouhia
https://sparse.tamu.edu/TKK/cyl6
https://cosmograph.app/run/?data=https://cosmograph.app/data/cyl6.csv
GHS_psdef/cvxbqp1
Gould, Hu, & Scott: barrier Hessian from convex QP (CUTEr)
https://sparse.tamu.edu/GHS_psdef/cvxbqp1
https://cosmograph.app/run/?data=https://cosmograph.app/data/cvxbqp1.csv


Change/1583 various copy changes

Context
Various copy changes.
Changes in this PR

Update eligibility reasons copy
Update offending summary copy
Update copy when a referral is ready for submission
Standardise copy when referring to CAS2

Screenshots of UI changes
Before

After

Release checklist
Release process documentation.
Pre-merge checklist

[ ] Are any changes required to dependent services for this change to work?
(eg. CAS API)
[ ] Have they been released to production already?

Post-merge checklist

[ ] Manually approve
release to test
[ ] Manually approve
release to preprod
[ ] Manually approve
release to prod

 Copy changes