Internet access while using outside eNB with dockerized volte on openstack

Dear @herlesupreeth
Hi,
My topology is
eNB( is on Local computer)[<IP_ADDRESS>] <==========> Openstack VM { Floating Ip add [<IP_ADDRESS>] , Docker Host(Openstack vm) [<IP_ADDRESS>] , VOLTE_DOCKERized [172.22.xx.xx] }
1- eNB <===> MME   ))))))))) sucess
2- UE   ))))))))  got connected to network
3- UE can't access internet while i can see 4G sing in one direction!
Dockerized CORE is on the openstack vm[<IP_ADDRESS>] with default docker ip[172.22. ...]
eNB is on the Local Coputer with [<IP_ADDRESS>]
here is attached pcap
No Int3.zip
in Both sides ipv4 forwarding is enabled!
Thanks
Best regards

here is the log
docker logs.txt

Set SGWU_ADVERTISE_IP to <IP_ADDRESS> in .env and then do source .env and bring back the stack with docker-compose up and then give it a try

Dear @herlesupreeth
Thanks for your replay
I did that but still No internet connection
Here are pcaps and logs:
Core Pcap:
No_internet.zip
Core Log:
Log.txt
Core Configs:
configs.txt

also it is pcap from eNB prespective:
Uploading No int_eNB.zip…

You have set wrong IP, rather than <IP_ADDRESS> its <IP_ADDRESS>

its not wrong My ip is <IP_ADDRESS>
i changed floating ip as used new VM!

Also, you need to uncomment the ports section in sgwu (please read the README properly, its written to avoid these errors)

Sorry, i thought its just 4G not NSA!
So not changed Sgwu
I changed it, but still not having internet acess on UE!
Thanks
best regards

Do i need to add some route in eNB?
on eNB when i do:
sudo ip r add <IP_ADDRESS> via <IP_ADDRESS>
as in readme it says :
ERROR: Nexthup has invalid gateway.
am i doing wrong?

Check the security policies, are you allowing UDP port 2152? do not set UPF_ADVERTISE_IP to <IP_ADDRESS>, keep it same as UPF_IP as you are in 4G only

Its all open

If you modify .env make sure to run source .env again and bring down the stack and up again before re-tryng

Yea, i  always do that
do u have any other idea?
https://github.com/herlesupreeth/docker_open5gs/issues/33#issuecomment-820207156

Can it be because of the time syncronization?

Post here the output of ip a command on the eNB machine. Most likely you may have to change the UE IP allocation range in smf and upf, but lets see

Yea, i think its smf, there are some warning in logs about it,
I'll post ip a here but it is <IP_ADDRESS>/24

i dont think you have to change it as your enp1s0 subnet does not collide with UE subnet

when i turn mobile data on i can see sth like this:

My topology is
eNB( is on Local computer)[<IP_ADDRESS>] <==========> Openstack VM { Floating Ip add [<IP_ADDRESS>] , Docker Host(Openstack vm) [<IP_ADDRESS>] , VOLTE_DOCKERized [172.22.xx.xx] }
1- eNB <===> MME ))))))))) sucess
2- UE )))))))) got connected to network
3- UE can't access internet while i can see 4G sing in one direction!
Dockerized CORE is on the openstack vm[<IP_ADDRESS>] with default docker ip[172.22. ...]
eNB is on the Local Coputer with [<IP_ADDRESS>]
I will send some logs again!
Its the latest ip and the new Openstack VM,

Also there is sth wrong with time!( maybe because i donot have internet access)
In Ue the time is UTC while in Openstack Vm and eNB its all right to local time!

Can u give me a hint?

Dear @herlesupreeth
Is'nt it because UE is behind Double NAT? ( as i'm using cloud and docker at the same time over each other for Core)
I also tested your repo[https://github.com/herlesupreeth/docker_open5gs/tree/4g] with 4G branch( Not master)
Just changed the "DOCKER_HOST_IP" But still do not have internet Access on UE!
Thanks
Best regards

Also changed timezone of all components including dockers, Openstack VM, native ubuntu(for eNB) as ETC/UTC
root@ve:~# timedatectl
                      Local time: Sat 2021-04-17 13:33:32 UTC
                  Universal time: Sat 2021-04-17 13:33:32 UTC
                        RTC time: Sat 2021-04-17 13:33:33
                       Time zone: Etc/UTC (UTC, +0000)
       System clock synchronized: yes
systemd-timesyncd.service active: yes
                 RTC in local TZ: no
root@ve:~# docker exec -it 34a2a4672483 /bin/bash
root@34a2a4672483:/open5gs# cat /etc/timezone
Etc/UTC

Even UE gets Ip address!

I found the reason why you dont have internet access. In the pcap attached here https://github.com/herlesupreeth/docker_open5gs/issues/33#issuecomment-820348977 the S1AP traffic is between NATed IP address or eNB (<IP_ADDRESS>) and your EPC at <IP_ADDRESS>. However, the eNB is advertising in s1ap.InitialContextSetupResponse that its transportLayerAddress(IPv4) is <IP_ADDRESS>. As a result of this the GTP traffic in Downlink (EPC to eNB direction) will be sent from <IP_ADDRESS> to <IP_ADDRESS> and EPC has no idea where to find <IP_ADDRESS> resulting in traffic flowing from internet only till EPC and not till eNB.
There are two options to fix this (i.e. if you want to stick with using OpenStack)

Create a IPSec VPN link between EPC (VPN server) and eNb (VPN client) and bind the eNB GTP-U and S1AP interface to the VPN tun interface created
Or, try adding static route in EPC as follows (although I doubt it will work as there are too many NATs)
sudo ip r add <IP_ADDRESS> via <IP_ADDRESS>

@herlesupreeth
Thank you so much for your replay,
The 5.239.x.x is the dhcp Ip address from ISP, I do not have Dedicated ip in eNB side ( because i'm using fiber optic which bought  from isp and i'm using modem (By LAN CABLE ) to connect eNB PC to the internet ( My modem has been assigned <IP_ADDRESS> to PC while Modem gets 5.239.x.x from ISP)
Can u give me hint for creating IPSEC tunnel?
is it possible to solve the issue By changing My Modem Ip address ? for example change <IP_ADDRESS> to 172.22.x.x which has no conflict with Core Ip address?
Thank you so much  again
Best regard

Will suggest you a fix shortly

It means i cannot add route ( Your second solution ), because it says

Nexthop has invalid gateway

Will suggest you a fix shortly

Thank you so much
just see your message,
please ignore the last message ( i sent it before reding your message)

Use this branch of srsLTE - https://github.com/herlesupreeth/srsLTE/tree/gtpu_addr_advertise
and set gtp_advertise_addr = <IP_ADDRESS> your DL traffic issue should be solved (I tested it and it works for me)

wooow,
Thank you so much, i'll try it

@herlesupreeth
Thank you so much again for your time
I tried different scenarios  according to your SRSLTE repo ( gtp branch)
{{1}} in theses scenarios I do not have internet access :
     UE            =====>>>>>>       SRSLTE    ===>>> ISP DHCP IP add. ===>>>     OPENSTACK     ==>>>          VM
<IP_ADDRESS>       =====>>>>>>  <IP_ADDRESS>  ===>>>     5.62.x.x            ===>>>    <IP_ADDRESS>  ==>>> <IP_ADDRESS>

1- try to install open5gs Core (Not dockerized ) on cloud and srsLTE on local PC
2- tried to install Dockerized VOLTE on CLoud and SRSLTE on Local PC
in scenario #1 and #2 i Connected the VM to created Network and then used Floating Ip add. to connect the VM to outside World!
as in bellow picture

{{2}} in theses scenarios I have internet access
UE                =====>>>>>>       SRSLTE    ===>>> ISP DHCP IP add. ===>>>  OPENSTACK VM (Directly Connected To public Dedicated IP)
<IP_ADDRESS>       =====>>>>>>  <IP_ADDRESS>  ===>>>     5.62.x.x            ===>>>   <IP_ADDRESS>

3- try to install open5gs Core (Not dockerized ) on cloud and srsLTE on local PC
4- tried to install Dockerized VOLTE on CLoud and SRSLTE on Local PC
in scenario #3 and #4 i Connected the VM directly to PUBLIC IP add. of Openstack ( it just has Floating IP but not local VM ip [192.168.1.x] )

SO in All of four scenarios I Used Ur Repo for SRS and Now i have internet access ( in #3 and #4 scenarios)
but as soon as i enable VOLTE on UE this will happen :

these are my Pcap And logs as Follows
Log.txt
configs.txt
voolte.zip

I dont think its because i did not used "ROOT" on Vm!
is it?

Hi @herlesupreeth
Sorry for late replay
Sure i'll do it and send it to you
I'm using your SRSLTE repository ( https://github.com/herlesupreeth/srsLTE/tree/gtpu_addr_advertise )
I also changed the DRB but still the same
Thanks
Best regards

Also One Note,
When i use your SRS Repo
I cant connect Two USRP to core!
when core is on cloud and RANs are on different local PCs but with the same Global Ip ( ip add. which obtain by HDCP from ISP )

2- tried to install Dockerized VOLTE on CLoud and SRSLTE on Local PC
in scenario #1 and #2 i Connected the VM to created Network and then used Floating Ip add. to connect the VM to outside World!

In Scenario #2 i do not have internet access:
CORE files:
Uploading NO_Net_Core.zip…
configs.txt
Log.txt
eNB files:

Hi,

2- tried to install Dockerized VOLTE on CLoud and SRSLTE on Local PC

Here is my new Try for scenario Number 2

   UE            =====>>>>>>     SRSLTE    ===>>>       ISP DHCP IP add.       ===>>>     OPENSTACK     ==>>>          VM
<IP_ADDRESS>       =====>>>>>>  <IP_ADDRESS>  ===>>>     5.74.x.x            ===>>>    <IP_ADDRESS>  ==>>> <IP_ADDRESS>

I do not have internet connection while i did all of following in both eNB ( on local PC) and Core(Dockerized Volte on cloud)
sudo sysctl net.ipv4.conf.all.forwarding=1
sudo iptables -P FORWARD ACCEPT
sudo sysctl -w net.ipv4.ip_forward=1
sudo iptables -I INPUT --source <IP_ADDRESS>/16 -j ACCEPT
sudo iptables -t nat -I POSTROUTING --out-interface ens3 -j MASQUERADE
sudo iptables -I FORWARD --in-interface ens3 --out-interface ogstun -j ACCEPT
sudo iptables -I FORWARD --in-interface ogstun --out-interface ens3 -j ACCEPT
sudo ufw disable

In srsenb i had sth wiered as:
COTS UE is Samsung A42 and SDR is USRP B210
using Cloud [8vCPU,8GBRAM,20GBSSD] for dockerized volte with user "UBUNTU" (not running docker as root )
using local PC ( core i7 6700hq,16GBRAM,256GBSSD) for RAN
i'm using srsRAN (Master branch) with UHD ( usrp driver as MASTER branch [uhd v4.])
Core Files:
Log.txt
configs.txt
volte.zip
RAN files:

srsenblog.txt
Made By SRSRAN.zip

4- tried to install Dockerized VOLTE on CLoud and SRSLTE on Local PC

Here is My new test For scenario number 4

UE                =====>>>>>>       SRSLTE    ===>>> ISP DHCP IP add. ===>>>  OPENSTACK VM (Directly Connected To public Dedicated IP)
<IP_ADDRESS>       =====>>>>>>  <IP_ADDRESS>  ===>>>     5.74.x.x            ===>>>   <IP_ADDRESS>

in this scenario I have internet access
as before i did
sudo sysctl net.ipv4.conf.all.forwarding=1
sudo iptables -P FORWARD ACCEPT
sudo sysctl -w net.ipv4.ip_forward=1
sudo iptables -I INPUT --source <IP_ADDRESS>/16 -j ACCEPT
sudo iptables -t nat -I POSTROUTING --out-interface ens3 -j MASQUERADE
sudo iptables -I FORWARD --in-interface ens3 --out-interface ogstun -j ACCEPT
sudo iptables -I FORWARD --in-interface ogstun --out-interface ens3 -j ACCEPT
sudo ufw disable

For this Scenario of CORE, I just stopped the VM of scenario number 2 ( which was created few hours ago ) and in OpenStack made Snapshot of that VM. So then Created New VM based on the snapshot but with diffrent Ip address [this new VM just have Public Ip address and do not have floating or local Ip] and then signed into it and just changed the .env configs (HOST IP AND SGWU Advertise). then source that and compose up
So Now the interent is stable
Then i tried to add FOHSS configs through <IP_ADDRESS>:8080
I did that and Also add ims APN in UE
and then Enabled VOLTE on UE
so Now i can see same connection rnti name ( twice rnti with the same ID ) in srsenb log file
But i can not see any VOLTE sign on UE ( in the past whenever i enabled VOLTE on UE i could see VOLTE Sign on top, beside 4G sign[ data connection ])
COTS UE is Samsung A42 and SDR is USRP B210
using Cloud [8vCPU,8GBRAM,20GBSSD] for dockerized volte with user "UBUNTU" (not running docker as root )
using local PC ( core i7 6700hq,16GBRAM,256GBSSD) for RAN
i'm using srsRAN (Master branch) with UHD ( usrp driver as MASTER branch [uhd v4.])
.
.
.
.
here are Core files:
Log.txt
configs.txt

configs.zip
Made By srsenb.zip
enblog.txt
PCAP: https://drive.google.com/file/d/10-GOBwEs5q068Fj9ylnEsp6w302ehY_G/view?usp=sharing
As i said Before My Webui configs are like:
---------------------------------------------------------------------------------------------------------------------
| APN      | Type | QCI | ARP | Capability | Vulnerablility | MBR DL/UL(Kbps)     | GBR DL/UL(Kbps) | PGW IP        |
---------------------------------------------------------------------------------------------------------------------
| internet | IPv4 | 9   | 8   | Disabled   | Disabled       | 1GB/1GB |                 |               |
---------------------------------------------------------------------------------------------------------------------
| ims      | IPv4 | 5   | 1   | Disabled   | Disabled       | 3850/1530           |                 |               |
|          |      | 1   | 2   | Enabled    | Enabled        | 128/128             | 128/128         |               |
|          |      | 2   | 4   | Enabled    | Enabled        | 128/128             | 128/128         |               |
---------------------------------------------------------------------------------------------------------------------

But in DRB, i Do not have QCI 2! ( as you can see in Configs )
.
.
.
Also FOR FOHSS configuration i followed this
You can see the Diif here:
old@old:~/Desktop$ diff a.txt b.txt
59c59
< 2<EMAIL_ADDRESS>---
> 2. sip:0198765432101
62c62
< Identity =<EMAIL_ADDRESS>---
> Identity = sip:0198765432101

a.txt
b.txt
MY configuration For FOHSS is b.txt

Can u please Confirm if i'm doing FOHSS and DRB configuration in the right way?
Also Please Lemme Know if Scenario Number 1 and 3 is needed
Thanks
Best regards

I Now Also add QCI 2 in DRB
and can see these on CORE LOGS:
at 105185765
mme          | 05/05 14:56:16.873: [mme] INFO: [Added] Number of MME-Sessions is now 2 (../src/mme/mme-context.c:3234)
sgwc         | 05/05 14:56:16.874: [sgwc] INFO: [Added] Number of SGWC-Sessions is now 2 (../src/sgwc/context.c:849)
sgwu         | 05/05 14:56:16.875: [sgwu] INFO: UE F-SEID[CP:0x3 UP:0x3] (../src/sgwu/context.c:144)
sgwu         | 05/05 14:56:16.875: [sgwu] INFO: [Added] Number of SGWU-Sessions is now 2 (../src/sgwu/context.c:149)
smf          | 05/05 14:56:16.876: [smf] INFO: [Added] Number of SMF-Sessions is now 2 (../src/smf/context.c:2400)
smf          | 05/05 14:56:16.877: [smf] INFO: UE IMSI[001010123456792] APN[ims] IPv4[<IP_ADDRESS>] IPv6[] (../src/smf/s5c-handler.c:162)
upf          | 05/05 14:56:16.887: [upf] INFO: [Added] Number of UPF-Sessions is now 2 (../src/upf/context.c:158)
upf          | 05/05 14:56:16.887: [upf] INFO: UE F-SEID[CP:0x3 UP:0x3] APN[ims] PDN-Type[1] IPv4[<IP_ADDRESS>] IPv6[] (../src/upf/context.c:339)
smf          | 05/05 14:56:16.888: [smf] WARNING: Unknown PCO ID:(0x2) (../src/smf/context.c:2349)
smf          | 05/05 14:56:16.888: [smf] WARNING: Unknown PCO ID:(0x1a) (../src/smf/context.c:2349)
smf          | 05/05 14:56:16.888: [smf] WARNING: Unknown PCO ID:(0x23) (../src/smf/context.c:2349)
smf          | 05/05 14:56:16.888: [smf] WARNING: Unknown PCO ID:(0x24) (../src/smf/context.c:2349)
pcscf        | 101(134) NOTICE: <script>: PCSCF: REGISTER sip:ims.mnc001.mcc001.3gppnetwork.org<EMAIL_ADDRESS>(<IP_ADDRESS>:37723) to<EMAIL_ADDRESS><EMAIL_ADDRESS>pcscf        | 101(134) INFO: rr [rr_mod.c:515]: pv_get_route_uri_f(): No route header present.
pcscf        | 101(134) NOTICE: <script>: PCSCF REGISTER:
pcscf        |  Destination URI: <null>
pcscf        |  Request URI: sip:ims.mnc001.mcc001.3gppnetwork.org
pcscf        | 101(134) INFO: rr [rr_mod.c:515]: pv_get_route_uri_f(): No route header present.
pcscf        | 101(134) NOTICE: <script>: Source IP and Port: (<IP_ADDRESS>:37723)
pcscf        |  Route-URI:
pcscf        | 101(134) NOTICE: <script>: Received IP and Port: (<IP_ADDRESS>:5060)
pcscf        | 101(134) NOTICE: <script>: Contact header: <sip:001010123456792@<IP_ADDRESS>:5060>;+sip.instance="<urn:gsma:imei:35132542-524972-0>";q=1.0;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel";+g.3gpp.smsip
pcscf        | 101(134) INFO: ims_registrar_pcscf [sec_agree.c:296]: cscf_get_security_verify(): No security-verify parameters found
icscf        | 31(57) INFO: ims_icscf [cxdx_uar.c:71]: create_uaa_return_code(): created AVP successfully : [uaa_return_code]
fhoss        | Exception in thread "Thread-13" java.lang.NullPointerException
fhoss        |  at de.fhg.fokus.hss.cx.op.UAR.processRequest(UAR.java:277)
fhoss        |  at de.fhg.fokus.hss.main.Task.execute(Task.java:169)
fhoss        |  at de.fhg.fokus.hss.main.Worker.run(Worker.java:66)
icscf        | 28(54) ERROR: ims_icscf [cxdx_uar.c:107]: async_cdp_uar_callback(): Error timeout when  sending message via CDP
icscf        | 28(54) WARNING: tm [t_suspend.c:192]: t_continue_helper(): active transaction not found
scscf        |  5(35) DEBUG: ims_dialog [dlg_handlers.c:1923]: print_all_dlgs(): ******************** 5(35) DEBUG: ims_dialog [dlg_handlers.c:1924]: print_all_dlgs(): printing 4096 dialogs
scscf        |  5(35) DEBUG: ims_dialog [dlg_handlers.c:1934]: print_all_dlgs(): ******************** 5(35) DEBUG: ims_auth [authorize.c:187]: reg_await_timer(): Looking for expired/useless at 105185775
scscf        |  5(35) DEBUG: ims_auth [authorize.c:232]: reg_await_timer(): [DONE] Looking for expired/useless at 105185775

Looks like there is an error in CDP
ERROR: ims_icscf [cxdx_uar.c:107]: async_cdp_uar_callback(): Error timeout when  sending message via CDP

I do not have internet connection while i did all of following in both eNB ( on local PC) and Core(Dockerized Volte on cloud)
sudo sysctl net.ipv4.conf.all.forwarding=1
sudo iptables -P FORWARD ACCEPT
sudo sysctl -w net.ipv4.ip_forward=1
sudo iptables -I INPUT --source <IP_ADDRESS>/16 -j ACCEPT
sudo iptables -t nat -I POSTROUTING --out-interface ens3 -j MASQUERADE
sudo iptables -I FORWARD --in-interface ens3 --out-interface ogstun -j ACCEPT
sudo iptables -I FORWARD --in-interface ogstun --out-interface ens3 -j ACCEPT
sudo ufw disable

Do NOT run this if you are using docker_open5gs repository as its already been executed inside the container. I dont understand why you are executing the above in eNB (its meaningless, so please dont run it on eNB)

MY configuration For FOHSS is b.txt

a.txt is the correct one.

a.txt is the correct one.

Thanks
So this is My FOHSS configs

Also Add QCI 2 as Follows in srsran/drb.conf
{
  qci=2;
  pdcp_config = {
    discard_timer = 100;
    pdcp_sn_size = 12;
  }
  rlc_config = {
    ul_um = {
      sn_field_length = 10;
    };
    dl_um = {
      sn_field_length = 10;
      t_reordering    = 50;
    };
  };
  logical_channel_config = {
    priority = 2;
    prioritized_bit_rate   = -1;
    bucket_size_duration  = 100;
    log_chan_group = 1;
  };
},

Yea you are right. i was wrong
In eNB for scenaio number 2 i did that and just repeat it wrongly! wanted just wanted to forward ipv4
In Core run that because i'm using cloud so tried to forward ipv4
Thanks

I dont understand why you are executing the above in eNB

a.txt is the correct one.

I run that again But the same thing happened as https://github.com/herlesupreeth/docker_open5gs/issues/33#issuecomment-832695234

dear @herlesupreeth
Have you managed to check my pcaps or logs?
This is Also My SecurityGroup in openstack

All are Open
.
.
.
I'm using cloud image for my VM in Openstack [https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img]
Should it be because of that?

Hello again,
We've got The Problem solved by adding IPTABLE in UPF Container
Or you can Fix it before running docker-compose up as bellow:
ADD this to UPF_INIT.SH after python3s
$nano docker_open5gs/upf/upf_init.sh
########################################################################
iptables -t nat -A OUTPUT -p udp -d $SGWU_ADVERTISE_IP --dport 2152 -j DNAT --to-destination $SGWU_IP:2152
########################################################################
Thanks
Best regards

@modyngs I dont think this is needed if UPF and SGWU is running in the same VM. Cam you send me a pcap for this? I mean UE registration pcap

Yea, they are in the same VM, the UPF sends packets to 46.102.143.x while it can not access the interface as UPF advertise IP is Not set for NSA
So this should be forwarded to sgwu and then via SGWU ADVERTISE IP to UE
I'll send it in few minutes. can you also check this ( https://github.com/herlesupreeth/docker_open5gs/issues/37) in between  please?

I have an example pcap here, where eNb is running at <IP_ADDRESS> and docker_open5gs running at <IP_ADDRESS>. and if you follow the GTP packets from 1359 till 1395 i see UPF properly sending the packets to SGWU internal address and from SGWU to UE via advertised address.
external_eNB.zip
This setup does not use openstack..its purely based on physical machine running in <IP_ADDRESS>/24 subnet

@herlesupreeth
Hi again
This is the same structure with the same VM on the same Docker, just comment that line
So it is NO NET scenario
EPC.zip
I'll send the successful Pcap after adding that line on the same VM and same Docker, just add that line

I have an example pcap here, where eNb is running at <IP_ADDRESS> and docker_open5gs running at <IP_ADDRESS>. and if you follow the GTP packets from 1359 till 1395 i see UPF properly sending the packets to SGWU internal address and from SGWU to

I think its Not Running Over OpenStack!

Success.zip
Sorry for late

i see UPF properly sending the packets to SGWU internal address and from SGWU to UE via advertised address.

I do not know whats wrong with Openstack in that case!
but we enter UPF container and saw that packets stuck there!
So u can also add that manually by
docker exec -it upf /bin/bash
iptables -nvL --line-number && iptables -t nat -nvL --line-number
iptables -t nat -A OUTPUT -p udp -d <IP_ADDRESS> --dport 2152 -j DNAT --to-destination <IP_ADDRESS>:2152

Thanks for the pcap, i still dont this issue could arise from using openstack.. looks like a residual NAT rule in your VM

Anytime
@herlesupreeth  as shown here https://github.com/herlesupreeth/docker_open5gs/issues/33#issuecomment-834076145
all policies are open
No restriction
Can you give hint on this issue? https://github.com/herlesupreeth/docker_open5gs/issues/37
Thanks
Best regards

Dear @herlesupreeth
Hi again, Sorry for opening an old issue,
Thanks for you recommendation in  https://github.com/open5gs/open5gs/issues/1341#issuecomment-1020828241
but i saw this issue here that the same problem was solved for SRSLTE in  https://github.com/herlesupreeth/docker_open5gs/issues/33#issuecomment-823348895 by adding GTP Advertise address in SRSLTE repo
I'm using OAI gNB for the RAN and open5GS as my core setup for 5G SA
the actual setup is now like bellow:
      UE      =====>>>>>>         OAI( gNB)      ===>>>   ISP DHCP IP add. (gNB side)   ===>>> OPENSTACK ( VM Floating IP)     ==>>>      VM ( Core_ All open5gs components on a single VM )

<IP_ADDRESS>      =====>>>>>>        <IP_ADDRESS>      ===>>>          80.210.x.x            ===>>>         31.7..x.x                  ==>>>        <IP_ADDRESS>

I've set the Advertise Ip in UPF and all the forwardings are set! but still do not have internet access.
If it is possible to do the same thing on OAI code as done for SRSLTE, that would be really amazing.
Also, I've installed the Quicktun in both sides ( CORE & RAN ) but is there any configurations should be changed in gNB or AMF_UPF ?
Thanks
Best regards

Dear @herlesupreeth
My UE get connected to dockerized core network, but it does not have internet even my core machine have internet access.
core IP- <IP_ADDRESS>
enb -<IP_ADDRESS>
Thanks ,
Bhuvaneshnexn

@bhuvaneshnexn please post a pcap file so that I can get complete picture of the issue. Also, describe your setup, send your .env file used

I had same issue for 5G SA setup. UE registration was OK but no internet access. When my AMF is
amf:
  addr: <IP_ADDRESS>                  # The address or hostname of the AMF.
  bind_addr: <IP_ADDRESS>             # A local IP that the gNB binds to for traffic from the AMF.

and my UE IPs are in this range <IP_ADDRESS>/16 (e.g., exactly <IP_ADDRESS> ) following route to the UE solved my problem
sudo ip ro add <IP_ADDRESS>/16 via <IP_ADDRESS>
Now I have internet access on my UE via USRP gNB


Add auto-save option for Win-Shift-S

Description of the new feature / enhancement
Add some sort of keyboard shortcut (or just a configuration file) to automatically save (to a .png) the screen selection. Currently, Win-Shift-S provides the ability to select a rectangular portion of the screen (or an irregular shape or a window) but only deposits the result into the clipboard. There should be an option to save just that portion to a png file without the extra steps currently required
Scenario when this would be used?
Apparently this is important enough for there to be many dozens of web pages describing how to take screenshots and moaning about the fact that third-party software is required in order to accomplish what I've described in the previous section.
Supporting information
See previous section. No need to repeat myself here.

Already there my friend:

Might that be Windows 11? I don't see that in Win10.

AFAIC, this should still be open unless and until Windows 10 has been abandoned. The "auto-save" feature requires Windows 11.


Bad pre-caching response: manifest.webapp - 404

I basically want my web app also to be a PWA (offline usable), so instead of doing it on my own I use the workbox-webpack-plugin v5.1.2 .
The error appears on page load of the web app.
Library Affected:
const {GenerateSW} = require('workbox-webpack-plugin');
Browser & Platform:
Google Chrome is up to date
Version 81.0.4044.92 (Official Build) (64-bit)
Issue or Feature Request Description:
Your request here.

webpack.config:
 new GenerateSW({
            swDest: 'sw.js',
            clientsClaim: true,
            skipWaiting: true,
          })

It gives me a 404, but the manifest is there!
I have also added the mime-type to my IIS Server:

When reporting bugs, please include relevant JavaScript Console logs and links to public URLs at which the issue could be reproduced.

If you're able to point us to a public URL where this is reproducible, that would be great.
If not, could you try running fetch('/assets/manifest.webapp').then(console.dir) in the JS console when you have your web app open, and expand the logged Response, then copy the properties set on it?

I've registered a wrong mime-type. Sorry for the noise !
Thank you!


⚠ PrivateHD has degraded performance

In 135ee2e, PrivateHD ($PHD) experienced degraded performance:

HTTP code: 200
Response time: 3571 ms

Resolved: PrivateHD performance has improved in 812f8bb.


Add Proxy.DialContext(..) method

Feature Description
Right now proxy.Proxy exposes a func Dial(instance string) (net.Conn, error) that is registered using mysql.RegisterDial(...) which is deprecated in favor of mysql.RegisterDialContext(...).
A context-unaware dialling in production has caused us uncontrollably long requests during the failover process of MySQL instances.
A clear and concise description of what feature you would like to see, and why it would be useful to have added.
Alternatives Considered
We though about instantiating a *proxy.Proxy{} in each dial, providing as Dialer a (*net.Dialer{}).DialContext(...) function curried with the provided context, but since proxy.Proxy holds a cache of configs, that would lead to a config retrieval in each of the dials.
Additional Context
I would be happy to help with this.
As I can see, we could add a ContextDialer func(ctx context.Context, net, addr string) (net.Conn, error) field to Proxy, and keep falling back to Dialer if this one isn't set. We'd expose a new receiver DialContext(ctx context.Context, instance string) (net.Conn, error) on the Proxy and the same function at package-level, making the previous Dial functions call this one with context.Background(). This new functions would be the ones registered as default MySQL dialers for CloudSQL.
In order to support the context in the config retrieval mechanism, we can expose a RemoteContext function alternative to Remote on the RemoteCertSource and as adding that new method to the CertSource interface would be a breaking change (which we don't want, I guess) we can check in runtime whether the cert source provided implements the interface { RemoteContext(...) } and call it in this case, properly documenting that feature on the CertSource interface.

Hi @colega,
Thanks for taking the time to open an issue. I agree that this is a change we should support. If you are interested in opening a PR I'm happy to provide feedback on it.
I'm not sure that the context in the dial function should be passed onto the background refresh - ideally we should only have one refresh happening per instance (which we have some work to do to achieve #427), and several dials might be potentially block on that refresh from happening. It seems like the dial should be waiting on the result from the refresh and quit waiting if the context completes early.


Missing parameter in a JSON request example

I figured out that one of the request examples of the API in createRecord  section: "Create a new record" is missing one parameter:
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "**MISSING_VALUE**",
    "params": {
        "cortexToken": "xxx",
        "session": "1067dc90-eb17-489b-9514-69cb79ac696c",
        "title": "Cortex Examples C++"
    }
}

It's just the example.
Best regards.

Thanks @jmota7dev
If you find more errors, please add them to this issue.


std without backtrace?

backtrace is fairly heavyweight and sometimes straight up doesnt work (on mips for example).
Unfortunately the std feature depends on backtrace.
Is that just something that needs fixing or is it intentional?

I hope I'm getting this right, but I believe backtraces can be toggled using the RUST_BACKTRACE env var which means they should have no performance impact unless enabled.

doesnt compile on android either. it refferences a GNU only symbol __errno_location

If it's GNU-only, wouldn't that mean that Windows would have similar hurdles? To my knowledge failure also works on Windows.
Perhaps there's a non-GNU solution available there that might serve as a basis for fixing MIPS/Android?

probably not. this is in unix.o
anyway, this is all i need to do to disable backtrace. it compiles fine, apparantly its already behind a feature switch.
diff --git a/Cargo.toml b/Cargo.toml
index d8c505a..7be6605 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -21,7 +21,7 @@ version = "0.3.3"
 members = [".", "failure_derive"]

 [features]
default = ["std", "derive"]
 #small-error = ["std"]
-std = ["backtrace"]
+std = []
 derive = ["failure_derive"]

allright. i have forked failure with the one line fix, since patch doesnt seem like a good permanent solution
https://crates.io/crates/failure_without_backtrace

I could use such thing too.
Maybe remove the std→backtrace dependency, but put backtrace between defaults? Could this be done?


Wrong quota calculation for similar plan names

Description
Plans with name like v1.0-xsmall and v1.0small are treated as same SKU. Also, v1.0-dev-large and v1.0-large are treated as same SKU
Steps to reproduce the issue:

Keep quota of v1.0-xsmall as 1 and v1.0-small as 1
Create one v1.0-xsmall instance.
Now try to create one v1.0-small, it gives quota exceeded.

If you are running service fabrik locally than Output of node -v  for node version and grep version package.json for service fabrik version:
(paste your output here)
node version: v7.1.0
service fabrik: 3.0.1

Additional environment details (AWS, VirtualBox, OpenStack, etc.):

Issue fixed and delivered.


Uncaught Exception: Command failed:<PHONE_NUMBER>

An uncaught exception was reported.
Info:
OS: win32
Arch: ia32
GPMDP Version: 3.0.0
Time: Mon Oct 02 2017 18:54:16 GMT 0530 (India Standard Time)
Error:
Command failed:<PHONE_NUMBER>
Error: Command failed:<PHONE_NUMBER>
System.AggregateException: One or more errors occurred. ---> System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)
   at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<LogIfThrows>d__4d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.FileDownloader.<DownloadFile>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwait
...Some of the stack is missing

This issue was created automatically inside the uncaughtException handler

Weow, the unicorn is still alive 😆 Good too see you friend 😀

GPMDP Version: 3.0.0

Yeah, you're basically a year out of date, please update 👍


created Async/Await in concepts folder

Let me know what you think of these files?

@rockysingh3 The concept setup looks correct to me. :+1: Feel free to push more commits onto the branch as you go.


[BACKLOG-7108] - Error creating a DB connection when connected to repository and no Job/Transformation open

@bmorrise please review.

http://<IP_ADDRESS>:8080/job/wingman/40/

Base build failed with return code 1


#65 Improvement of security

Improvement of security: set keycloak to 14.0.0, updated KeycloakConfig.kt, added properties for application-prod.yml. But tests still failed

Made migration to the last version of Keycloak (14.0.0), fixed issues with generated tests.

It seems that only @AutoConfigureMockMvc(add Filters = false) is necessary in test-class for keycloak be unused. So, I removed unnessary code and template

PR is not actual


Make @mwear CODEOWNER as maintainer

Per Nominating @mwear as Ruby maintainer by fbogsany · Pull Request #142 · open-telemetry/community, @mwear is now a maintainer. Adding him to CODEOWNERS.

You’re not authorized to merge this pull request.

🤔
Who is?

Hmm, me too. I think @fbogsany is.

this group supposed to be: https://github.com/orgs/open-telemetry/teams/ruby-maintainers


Issue with task 1.4

Hello,
I'm confused by the solution of task 1.4 for which all tests seem to be passing: Ry(2.0 * alpha, q);
This article states that Ry(a) = S.H.Rz(a).H.S^T where:

S=S^T={{1,0},{0,i}}
H=1/sqrt(2)×{{1,1},{1,-1}}
Rz(a)={{e^(-i×a/2),0},{0,e^(i×a/2),0}}

The result of such multiplication is Ry(a) = {{cos(a/2),sin(a/2)},{sin(a/2),-cos(a/2)}} (after simplification using Euler's formula) as shown in Wolfram|Alpha.
However, multiplication of the matrix with a qubit doesn't produce the required result.
The expected result is:

|0〉 » cos(a)×|0〉 + sin(a)×|1〉
|1〉 » -sin(a)×|0〉 + cos(a)×|1〉
... but the actual result of the multiplication is as follows:
|0〉 » Ry(a×2).{1,0} = {cos(a),sin(a)} = cos(a)×|0〉 + sin(a)×|1〉
|1〉 » Ry(a×2).{0,1} = {sin(a),-cos(a)} = sin(a)×|0〉 - cos(a)×|1〉

The expectation and actual result differ for input |1) in both signs, yet the tests pass. What am I missing?

@7rakir S^ (S-adjoint) isn't the same as S; it's {{1,0},{0,**-**i}}, not {{1,0},{0,i}}. I believe if you multiple through with the correct matrix for S^ you'll get the correct values.

Thank you very much. For some reason I misread that it's conjugate transpose (†) and not a simple transpose (T).
It's all clear now.


chore(Data/Nat/Factorial): Use Std lemmas

Make use of Nat-specific lemmas from Std rather than the general ones provided by mathlib.
The ultimate goal here is to carve out Data, Algebra and Order sublibraries.

bors merge


CodeMirror editor Code Display Goes Wrong After Setting Document Content

I am using CodeMirror version 5.58.3, alongside with Vue 3.0.4. Before upgrading to Vue 3, nothing wrong happened when I set the document content of codemirror. But after upgrading to Vue 3, this happened:

As you can see in the picture, the cursor is in the absolutely wrong position.
However, this issue does not exist when the content I am setting the document to is empty:

I am using Google Chrome.

This sounds like the editor is initialized without being part of the document yet, or while its parent element is hidden. That will cause it to fail to measure its text geometry correctly. You either have to arrange for refresh() to be called when the editor becomes visible, or enable the autorefresh addon.

"autorefresh"...?

How do I enable it

Hmm that doesn't seem to fix it

Let me try manually calling refresh()

Wait, I already refreshed it

So now the situation is refreshing doesn't work

Then I'm out of ideas, except to ensure that the editor really is visible, and has its final geometry (i.e. no further CSS or font loading changes it afterwards) when the refresh call is made.

But umm... the editor is in a tab in which when the component is loaded, it is not visible yet. Only when the user switch to the tab with the editor, the editor then comes visible.

Well, there's your problem.

How should I correct it?

I have this:

In which the GuildConfigurationSubComponent is the component holding the editor. It is only visible when the activeTab is 2, which, by default, when the tabs are loaded, is 1.

I don't know Vue, so I can't help you there.

Ahhh


design onyo rm

To delete assets from the repository.
This should allow filtering, prompt by default, and be verbose. The --quiet and --yes flags should be available.

Thinking about this more... I wonder whether onyo rm should support filtering (in the style of key=name), or if we shoudl suggest that people use a subshell, such as:
# delete all laptops
onyo rm $(onyo get --filter type=laptop filename)

I'm unsure whether I find this to be clunky or beautiful. ;-)

I think, at least from the use cases I can make up for onyo, that the "normal" way of rm with wildcard characters would translate quite well into onyo rm.
So it might make sense and be more handy to do this type of deleting with subshells. I will think about it further.

I think, at least from the use cases I can make up for onyo, that the "normal" way of rm with wildcard characters would translate quite well into onyo rm.

That approach is useful (and one I think we should support)l, but is limited to filtering only the type, make, model, or serial keys (as those are the only ones exposed in the filename). Expanding this to other keys would require that either onyo rm gain knowledge of filters (a la key=value syntax) or we make sure that other commands (such as onyo get) can return the filenames in a format appropriate for consumption by onyo rm.

I could see potentially more value in doing it in a working format with onyo get (possibly with a flag, otherwise always), since this would be also a nice feature in combination with other commands like onyo mv.

I envision onyo get as being a very machine-friendly interface, so we should make it handle this situation well.
There is a "TODO" in the Readme to list "pseudo-keys". This is information about an asset that is not in the asset-file itself. This includes information from the file-name (type, make, etc), but also will extend to git metadata (created_time, modified_time). It should also expose the filename/path in a format that is useful for commands such as onyo rm.


add miniapp example for haas

add miniapp example for haas
developers can work on mini programes with haas, enjoy

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.愈燃 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


--verbose flag doesn't work with build command when platform defaults to android

It works when I pass --platform android as well, so this is pretty weird. Haven't tested if this also happens with mac defaulting to ios.

Can you confirm if this is still replicate-able on 1.3.10?
You may need to upgrade both your global CLI & projects version of corber.
Thanks!

Can't test either way, it doesn't seem to build android without the --platform flag on 1.3.10 now.

That seems like a bug. If you only have one platform installed that platform will be used as a default.
I've just run a test on 1.3.10 and unfortunately could not replicate. In an Ember/Corber project with only Android, verbose logs appeared for corber build --verbose and corber build --platform=android --verbose
Do you mind pasting the output of corber version so I can debug further?
Cheers!

This was in a project with ios and android platforms, running on Linux.
 $ npx corber version
corber (global): 1.3.10
corber (package.json): 1.3.10
corber (node_modules): 1.3.10
node: 8.16.0


Getting Request from Event will not supply full request

Url: https://www.example.com/?test=test1234
When using a subscriber on, for example:  NavigationRouteCacheKeyEvent.
Inside the subscriber method:
$request = $event->getRequest();

Looking into $request->query.
This is NOT returning 'test=test1234' but will return
    "buildTree" => "false"
    "depth" => "2"

The only way to get the query part is by using the RequestStack service.

[public] Automated response: This issue is linked to the internal issue https://shopware.atlassian.net/browse/NEXT-26134.
[created from NEXT-26134, comment 485605]


Can you publish to npm?

Hi guys,
Thanks for your work on this project and providing it for free under MIT!
Do you have any plans of providing the package on npm?
Thanks!

@kalinchernev check release v0.9.2

Thanks @felixnielsen !


make -f Makefile.android prepare failure

reason /bin/sh: 1: cd: can't cd to ../external/fluidsynth/doc/android

submodule


Style: docs/assets/line-example.png

Is this up-to-date documentation?
The image in the documentation appears to have the purple #84329B color instead of the gray #6D6E71.
Top text should be H3, bold.
The main body of the card text should be #6D6E71 and the font-weight should be 300.
There are no buttons in the patient care section: https://www.mammotome.com/patient-resources-category/breast-care/
The patient webinars are the only cards with the CTA button: https://www.mammotome.com/patient-resources-category/webinars/

Just realized the screenshot was for the line and not the cards.


Inline/Quick Editing: Use Select component inside of an editable wrapper.

Hi Everyone,
just starting using Shadcn components and its been great so far. Today I was attempting to wrap some of the components in an editable container to facilitate quick editing in detail panels etc.
For the input, and textarea this works fine. doing something like this as the root component:
interface EditableProps {
text: string,
type: string,
placeholder: string,
children: JSX.Element,
childRef: MutableRefObject,
}
export function Editable({
text,
type,
placeholder,
children,
childRef,
}: EditableProps) {
const [isEditing, setEditing] = useState(false);
useEffect(() => {
if (childRef && childRef.current && isEditing === true) {
childRef.current.focus();
}
}, [isEditing, childRef]);
const handleKeyDown = (event:any, type:any) => {
const { key } = event;
const keys = ["Escape", "Tab"];
const enterKey = "Enter";
const allKeys = [...keys, enterKey];
if (
(type === "textarea" && keys.indexOf(key) > -1) ||
(type !== "textarea" && allKeys.indexOf(key) > -1)
) {
setEditing(false);
}
};
return (

{isEditing ? (

 setEditing(false)} onKeyDown={e => handleKeyDown(e, type)}>
{children}

) : (

 setEditing(true)}>

{text || placeholder || "Editable content"}

)}

);
};
and using it as a wrapper like this:
<Editable
text={task}
placeholder="theme"
childRef={inputRef}
type="textarea"
  >
    <Textarea

    name="task"
    placeholder="Write a task name"
    value={task}
    onChange={e => setTask(e.target.value)}
  />
  </Editable>

when attempting to do this with the select component though, the dropdown closes as soon as you attempt to navigate to a select option. Seems like a focus issue.. Any idea how to fix?

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.


Annotating with CADD Scores

Hi,
I'm having trouble using the option to annotate CADD scores with my VCF files. I tried annotating the example data with my copy of the 1000G.tsv.gz file and was successful, but couldn't get the same result with my own files. I used the command
genmod annotate sample_111.vcf --cadd_file 1000G.tsv.gz --out 111_annotated.vcf
and found "." in the INFO field for all of my snps. The vcf header lists CADD as one of the variables in the INFO section though, so I'm not sure what is going wrong. I checked to see if the vcf versions were the same as the genmod examples and both are v4.1. I am using genmod v3.3.2.
Do you have any ideas on why this might be happening? I can send example files directly if needed.
Thanks!

Hello,
is your file 1000G.tsv.gz a huge CADD file?
Think you should send some example files and I can try it out.
Måns

Hi,
Thanks for your help! Yes, the 1000G.tsv.gz is a huge CADD file.
What is your preferred way to receive the example files?
Thanks!
From: Måns Magnusson<EMAIL_ADDRESS>Sent: Saturday, October 17, 2015 11:20 PM
To: moonso/genmod
Cc: Bonham, Luke
Subject: Re: [genmod] Annotating with CADD Scores (#43)
Hello,
is your file 1000G.tsv.gz a huge CADD file?
Think you should send some example files and I can try it out.
Måns
—
Reply to this email directly or view it on GitHubhttps://github.com/moonso/genmod/issues/43#issuecomment-148981294.

Maybe a vcf with the original header and a couple of lines that should be annotated and some lines from your cadd file that overlap with the variants.
It is a bit strange since we use this tool daily and it works as it should, it is hard to guess what is not working in your case...
Does your cadd file have an index file with the same name?

The cadd file is 1000G.tsv.gz and index file is named 1000G.tsv.gz.tbi. The names haven’t been altered since they were downloaded.
Do you want examples shared on dropbox or another method?
Thanks
From: Måns Magnusson<EMAIL_ADDRESS>Sent: Monday, October 19, 2015 10:14 AM
To: moonso/genmod
Cc: Bonham, Luke
Subject: Re: [genmod] Annotating with CADD Scores (#43)
Maybe a vcf with the original header and a couple of lines that should be annotated and some lines from your cadd file that overlap with the variants.
It is a bit strange since we use this tool daily and it works as it should, it is hard to guess what is not working in your case...
Does your cadd file have an index file with the same name?
—
Reply to this email directly or view it on GitHubhttps://github.com/moonso/genmod/issues/43#issuecomment-149285232.

Sure dropbox is fine.
Think I am mans.magnusson or something

Thanks. I couldn’t find the alias you provided below in dropbox so shared a link to the files with the email associated with your Github account.
I checked whether the variants we are interested in are in the 1000G.tsv.gz file and it looks like a good portion are, so hopefully we can figure out what is going on. Let me know if there is anything I can do to help!
From: Måns Magnusson<EMAIL_ADDRESS>Sent: Monday, October 19, 2015 10:31 AM
To: moonso/genmod
Cc: Bonham, Luke
Subject: Re: [genmod] Annotating with CADD Scores (#43)
Sure dropbox is fine.
Think I am mans.magnusson or something
—
Reply to this email directly or view it on GitHubhttps://github.com/moonso/genmod/issues/43#issuecomment-149290286.

Hello Luke,
there was a problem with genmod annotate when the chromosome name is chr1 instead of 1etc. This should be fixed now in version 3.3.3 so please update and try again.
Måns

Hi Måns,
I upgraded to 3.3.3 and the results look as expected for the entries on chr1! However, the entries are blank for the variants we have on all the other chromosomes, could this be the same problem? Thanks for your help!
Luke
From: Måns Magnusson<EMAIL_ADDRESS>Sent: Tuesday, October 20, 2015 12:41 AM
To: moonso/genmod
Cc: Bonham, Luke
Subject: Re: [genmod] Annotating with CADD Scores (#43)
Hello Luke,
there was a problem with genmod annotate when the chromosome name is chr1 instead of 1etc. This should be fixed now in version 3.3.3 so please update and try again.
Måns
—
Reply to this email directly or view it on GitHubhttps://github.com/moonso/genmod/issues/43#issuecomment-149464219.

Ok so I ran a test on the file you sent with my 1000G.tsv file and the result looks fine, it is in dropbox.
I used the command:
```genmod annotate ~/Dropbox/example_vcfs_cadd/C08-AGTGGTCA.vcf -c data/annotation/1000G.v1.1.tsv.gz -o ~/Dropbox/example_vcfs_cadd/C08-AGTGGTCA_annotated_mans.vcf````
I'm not sure why it does not work for you, should be something with your CADD?

It could be the CADD file I am using. I am using version 1.3  and, based on your command, it looks like you might have used version 1.1? I’ll download version 1.1 and see if that works.
From: Måns Magnusson<EMAIL_ADDRESS>Sent: Tuesday, October 20, 2015 10:55 AM
To: moonso/genmod
Cc: Bonham, Luke
Subject: Re: [genmod] Annotating with CADD Scores (#43)
Ok so I ran a test on the file you sent with my 1000G.tsv file and the result looks fine, it is in dropbox.
I used the command:
genmod annotate ~/Dropbox/example_vcfs_cadd/C08-AGTGGTCA.vcf -c data/annotation/1000G.v1.1.tsv.gz -o ~/Dropbox/example_vcfs_cadd/C08-AGTGGTCA_annotated_mans.vcf`
I'm not sure why it does not work for you, should be something with your CADD?
—
Reply to this email directly or view it on GitHubhttps://github.com/moonso/genmod/issues/43#issuecomment-149647196.

Just ran the test and have good news -- I have the same output as you when using CADD version 1.1. The previously mentioned problem where chromosomes 2-Y are unannotated when using version 1.3. I’ll put the example in dropbox.
Thanks again for all of your help!
From: Måns Magnusson<EMAIL_ADDRESS>Sent: Tuesday, October 20, 2015 10:55 AM
To: moonso/genmod
Cc: Bonham, Luke
Subject: Re: [genmod] Annotating with CADD Scores (#43)
Ok so I ran a test on the file you sent with my 1000G.tsv file and the result looks fine, it is in dropbox.
I used the command:
genmod annotate ~/Dropbox/example_vcfs_cadd/C08-AGTGGTCA.vcf -c data/annotation/1000G.v1.1.tsv.gz -o ~/Dropbox/example_vcfs_cadd/C08-AGTGGTCA_annotated_mans.vcf`
I'm not sure why it does not work for you, should be something with your CADD?
—
Reply to this email directly or view it on GitHubhttps://github.com/moonso/genmod/issues/43#issuecomment-149647196.

:+1:


Can't use crate with '-' in name, for [build-dependencies]

I can't use some crates like 'rust-serialize' in [build-dependencies]
But 'phf_codegen' works.
Cargo.toml
[package]
build = "codegen/main.rs"

[dependencies]
rustc-serialize = "*"

[build-dependencies]
phf_codegen = "*"
rustc-serialize = "*"

extern crate rustc_serialize;

works in src/main.rs,
but
extern crate phf_codegen;
extern crate rustc-serialize;

in codegen/main.rs says
codegen/main.rs:2:19: 2:20 error: expected one of ; or as, found -
codegen/main.rs:2 extern crate rustc-serialize;
and
extern crate phf_codegen;
extern crate rustc_serialize;

says
codegen/main.rs:2:1: 2:30 error: can't find crate for rustc_serialize
codegen/main.rs:2 extern crate rustc_serialize;
I'm using cargo from windows 1.0.0-beta installer.
cargo --version
cargo 0.0.1-pre-nightly (84d6d2c 2015-03-31) (built 2015-04-01)

Moved from
https://github.com/rust-lang/rust/issues/24463

When I tested with nightly, it seems ok.
"C:\Program Files\Rust nightly 1.0\bin\cargo" --version
cargo 0.0.1-pre-nightly (d49b443 2015-04-14) (built 2015-04-15)

So I think I need to change issue title.

Thanks for the report! It looks like this is fixed in master though, so the bug fix should definitely make it into the 1.0 release. Other than that though I don't think there's much to do on this, so closing.


flexbox.css is being pulled from a bad location

The flexbox.css file manages a lot of our layout, for example allowing for scrolling and properly displaying content with the overflow settings. However it is only being pulled from https://github.com/microsoft/azuredatastudio/blob/master/src/sql/workbench/parts/editData/browser/gridParentComponent.ts#L6.
This means if  we disable the editData contribution point, the layout for notebooks & dashboard fall apart.
We need to change where we're pulling this file to some base file.

@aaomidi I thought I saw you sent a PR to fix this?

I have. I'll close the issue.


chore: Update .codegen.json with commit hash of codegen and openapi spec

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

0 of 0   changed or added relevant lines in 0 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.03%) to 41.877%

Files with Coverage Reduction
New Missed Lines
%

src/schemas/signRequest.generated.ts
1
55.87%

Totals

Change from base Build<PHONE_NUMBER>2:
-0.03%

Covered Lines:
12835

Relevant Lines:
23847

💛  - Coveralls


[Feature] Add proxy support

Can we use a Proxy to do the requests ?

I am searching for the same thing. Did you figure out how to do it?

@ChunkyTester The code you gave is not working.

Now instapy-cli move to instagram_private_api library. I think that your code not work anymore @ChunkyTester .
However now is a lot easier to code a patch and add support for proxies.
Anyone who want to add this feature is welcome. I will review every pull request and release new versions.

Hi all,
If this proxy feature is now included in the code?
I think this is quite important as auto posting for multi account using same IP address will easily get banned.
Thanks.

@ChunkyTester
where should I put your code in?
proxies = {'http': 'http://<IP_ADDRESS>:3128'}
self.session = requests.session()
self.session.proxies.update(proxies)


feat: make pr list item clickable

What type of PR is this? (check all applicable)

[x] 🍕 Feature
[ ] 🐛 Bug Fix
[ ] 📝 Documentation Update
[ ] 🎨 Style
[ ] 🧑💻 Code Refactor
[ ] 🔥 Performance Improvements
[ ] ✅ Test
[ ] 🤖 Build
[ ] 🔁 CI
[ ] 📦 Chore (Release)
[ ] ⏩ Revert

Description

This PR makes the pr list item in pull-request-table clickable by overriding the height applied by the echarts-for-react library.

Before
After

Related Tickets & Documents

Fixes #799
Mobile & Desktop Screenshots/Recordings

The bordered section below is now clickable :arrow_down:

Added tests?

[ ] 👍 yes
[x] 🙅 no, because they aren't needed
[ ] 🙋 no, because I need help

Added to documentation?

[ ] 📜 README.md
[ ] 📓 docs.opensauced.pizza
[ ] 🍕 dev.to/opensauced
[ ] 📕 storybook
[x] 🙅 no documentation needed

[optional] Are there any post-deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?

wrapped links are pretty bad :D

Can you give me more details about this?

@TAKANOME-DEV the merge conflict should be resolved and we're good to go

@brandonroberts done ✅

@TAKANOME-DEV will you submit a follow-up for the fix?

@TAKANOME-DEV will you submit a follow-up for the fix?

Can I do it on https://github.com/open-sauced/insights/pull/848 (small pr - one file changed)


Increase stack size to 1MB and add lua tests

This is a experimentation yet. Fixes #75

This is super cool


Errors

Hi @kdorff ,
Trying out your code, I get some error while compiling.
In my main file, I have :

And the tft-room-time-temp.h is your original file, I put it on the esphome directory.
And the result is :

I'm not clear which source you were starting with, but I updated several of my projects for esphome-display-panel.git#v0.0.14 which is now necessary. You can see the changes I pushed which will probably help you update your code.
https://github.com/kdorff/esphome/commit/69a51b246bec2ee88e54f04d249369c5933c8273

I'm not clear which source you were starting with, but I updated several of my projects for esphome-display-panel.git#v0.0.14 which is now necessary. You can see the changes I pushed which will probably help you update your code.
69a51b2

Hi @kdorff
Thanks for the reply.
I used the files tft-office.yaml and tft-room-time-temp.h
I applied the fixes (and cleaned built files), now it's way better, but still some errors :

It's related to those lines :

Also, I saw you are using old  'swap_x_y: false' which should be
'transform:
mirror_x: false
mirror_y: true
swap_xy: false'
and report_interval which is not used anymore
Thanks

Ok, solved it.
In tft-office.yaml you have to changed all 'id(touchid).x' to 'touch.x' and now it works
The same for x_raw, y_raw => touch.x_raw

Nice.


xhr.setRequestHeader('Access-Control-Allow-Origin', '*') in mp4 plugin causes CORS error

🐛 Bug Report
when using MSE on mp4 file  which hosted on SinaCloud, got an error:
Access to XMLHttpRequest at 'https://static.ftqq.com/resource-f392edb2f32fe3b2cb2fd58619ac798381b91602' from origin 'http://localhost:3000' has been blocked by CORS policy: Request header field access-control-allow-origin is not allowed by Access-Control-Allow-Headers in preflight response.

To Reproduce
add https://static.ftqq.com/resource-f392edb2f32fe3b2cb2fd58619ac798381b91602 as source play_url , turn useMSE on , press play button and you will see the error.
comment line 51~52  on  griffith-mp4/esm/index.js , then works well .
Expected behavior
play the video.
Run npx envinfo --system --binaries --npmPackages griffith --markdown --clipboard
Paste the results here:
*** Clipboard option removed - use clipboardy or clipboard-cli directly ***

## System:
 - OS: macOS High Sierra 10.13.6
 - CPU: (4) x64 Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
 - Memory: 85.70 MB / 10.00 GB
 - Shell: 5.3 - /bin/zsh
## Binaries:
 - Node: 9.11.2 - ~/.nvm/versions/node/v9.11.2/bin/node
 - Yarn: 1.15.2 - ~/.yarn/bin/yarn
 - npm: 5.6.0 - ~/.nvm/versions/node/v9.11.2/bin/npm
 - Watchman: 4.7.0 - /usr/local/bin/watchman

hi @easychen
Thanks for your report, it's an unuseful code, we already remove this.
please use v1.5.0 version.


Strange behavior with persistent session

I am running Pow with the PowPersistentSession extension and the Mnesia session cache backend in production (with some tweaks to allow TOTP-based 2FA).
While my desktop clients seem to be behaving fine with the default persistence expiration of 1 month, I am observing some very bizarre behavior with mobile Chrome, which will persist at the shortest for only a few minutes until tabs are switched, and then forget the user's supposedly persistent session, requiring them to log in again.
I have even observed behavior that would indicate to me that there is some kind of bug in mobile Chrome with regard to cookie handling. Basically, it is possible to have both a tab that is not signed in and a tab that is signed in at the same time. When you reload the tab that is not signed in, it remains not signed in. When you reload the tab that is signed in, it remains signed in; then when you return and refresh the other tab, it becomes signed in again.
The only reason I bring this up here is because this isn't problem happening with my Rails application, which uses Devise. I will try to get a drilldown into the cookies in more detail when the issue occurs again. Any suggestions are welcome.

Never mind, I just had it on my desktop. The server deleted the persistent session cookie.

That sounds very odd, and may be unrelated to Pow. Are you able to replicate the issue consistently, and if so, can you write down the steps so I can test this? Also is happening in both production and local?
I would check whether it’s because the cookie is lost, or the actual persistent session data is being deleted in the PowPersistentSession cache.

I am reasonably certain the cookie is not being lost; it is being deleted by the server.

The cookie's expiration time is set to next month, and it's httponly, so the only possible way for it to go away (as it did when the session was lost) would be if the server deleted it.

I believe I've identified the conditions under which this happens:

The persistent session cookie is set
The Phoenix session (_philomena_key in this example) has expired or is about to expire
The VM has been restarted (full emulator reboot) since the last time the site was loaded

Oh, I see. What cache backend do you use? The default is ETS which will be cleared after VM restart.

Mnesia cache, as stated in the OP

Mnesia cache, as stated in the OP

Sorry, didn’t take the time to read the issue carefully. I’ll set up a demo and test this scenario to see what may go wrong.

I might have figured out what the issue is.
When the app is restarted, hundreds of these error messages are emitted in quick succession:
** (exit) {:aborted, {:no_exists, [Pow.Store.Backend.MnesiaCache, ["credentials"]]}}
00:28:20.061 [error] #PID<0.3007.0> running PhilomenaWeb.Endpoint (connection #PID<0.3006.0>, stream id 1) terminated

Is there a way to ensure the credential cache store is properly initialized before the app is able to start?

I added some log detail to prod. https://github.com/liamwhite/pow/commit/f654b36320b1afb3e348a6b578773807fa421489
This is what seems to be happening
13:02:28.091 [warn] Deleting expired persistent session key philomena_87586f04-6adf-4ccc-a086-xxxxxxxxxxxx
13:02:28.093 [warn] Deleting expired persistent session key philomena_87586f04-6adf-4ccc-a086-xxxxxxxxxxxx
13:02:28.446 [warn] Deleting expired persistent session key philomena_87586f04-6adf-4ccc-a086-xxxxxxxxxxxx
13:02:28.446 [warn] Failed to find persistent session key philomena_87586f04-6adf-4ccc-a086-xxxxxxxxxxxx
13:05:05.690 [warn] Deleting expired persistent session key philomena_d221f0cc-5916-46a6-b5fe-xxxxxxxxxxxx
13:05:05.690 [warn] Failed to find persistent session key philomena_d221f0cc-5916-46a6-b5fe-xxxxxxxxxxxx
13:05:40.077 [warn] Deleting expired persistent session key philomena_8c881d66-c42e-41d6-8bf3-xxxxxxxxxxxx
13:05:40.077 [warn] Failed to find persistent session key philomena_8c881d66-c42e-41d6-8bf3-xxxxxxxxxxxx
13:06:24.304 [warn] Deleting expired persistent session key philomena_b42a6353-e300-40b4-840f-xxxxxxxxxxxx
13:06:24.304 [warn] Failed to find persistent session key philomena_b42a6353-e300-40b4-840f-xxxxxxxxxxxx
13:06:24.469 [warn] Deleting expired persistent session key philomena_b42a6353-e300-40b4-840f-xxxxxxxxxxxx
13:06:24.469 [warn] Failed to find persistent session key philomena_b42a6353-e300-40b4-840f-xxxxxxxxxxxx
13:06:47.856 [warn] Deleting expired persistent session key philomena_0af27431-d18a-43ea-8fef-xxxxxxxxxxxx
13:06:47.858 [warn] Deleting expired persistent session key philomena_0af27431-d18a-43ea-8fef-xxxxxxxxxxxx
13:06:49.574 [warn] Deleting expired persistent session key philomena_0af27431-d18a-43ea-8fef-xxxxxxxxxxxx
13:06:49.574 [warn] Failed to find persistent session key philomena_0af27431-d18a-43ea-8fef-xxxxxxxxxxxx
13:08:20.323 [warn] Deleting expired persistent session key philomena_8caa43cf-ae17-40b0-8c67-xxxxxxxxxxxx
13:08:20.323 [warn] Failed to find persistent session key philomena_8caa43cf-ae17-40b0-8c67-xxxxxxxxxxxx
13:08:31.145 [warn] Deleting expired persistent session key philomena_30913fe1-57a9-4aef-ae12-xxxxxxxxxxxx
13:08:31.145 [warn] Failed to find persistent session key philomena_30913fe1-57a9-4aef-ae12-xxxxxxxxxxxx

Found reproduction steps for the philomena app:

Sign in with persistent session enabled
Go to notifications page
Open up the browser inspector and delete the _philomena_key session (has the same effect as if it would have expired on its own)
Run the following in the JS console:function killPersistentSessionCookie() {
  Promise.race([
    fetch("/notifications/unread"),
    fetch("/notifications/unread"),
    fetch("/notifications/unread"),
    fetch("/notifications/unread"),
    fetch("/notifications/unread"),
    fetch("/notifications/unread")
  ]);
}

About 80% of the time you will end up logged out after this completes. If not, repeat until you are logged out.[warn] Deleting expired persistent session key philomena_717a5884-4822-456a-9a15-xxxxxxxxxxxx
[warn] Failed to find persistent session key philomena_717a5884-4822-456a-9a15-xxxxxxxxxxxx

The code that rolls the persistent session token is too eager and interferes with legitimate usecases where requests will end up racing / being dispatched at the same time.
One possible way to fix this is to bump the expiry time of the old session by a minute or two before it is deleted, so as to allow other concurrent requests time to complete and not force deauthentication.

@danschultzer any update?

I see what happens. The put call in the GenServer is async, so it may take a little bit before it has stored the persistent session. However the cookie will always be deleted when it's checked. So if two requests happens right after each other, the first one successfully rolls the persistent session key, but the subsequent one may delete the cookie right after if the GenServer hasn't yet finished. This can only happen if the user session is not already active, which makes sense since it's also an async call.
I believe the best solution is to let the cookie expire after 10 seconds since the last request rather than immediately. This should give enough time in case there are some subsequent requests. The PR is up in #366.

I just want to note that I upgraded pow to the tip of master as it was this morning (90d674a458faacb0314aec751477cae3d3c0fbb3) and deployed it, but my users are still reporting that they are being logged out.

I tested the logic and it works as expected. Are you able to replicate the issue?

I was still able to get the console to show unexpected behavior with a slight modification to the above test, using the following code:
function testPromise() {
  fetch('/notifications/unread').then(resp => {
    if (resp.redirected) {
      console.log('Redirected!');
    }
  })
}

function killPersistentSessionCookie() {
  Promise.race([
    testPromise(),
    testPromise(),
    testPromise(),
    testPromise(),
    testPromise(),
    testPromise()
  ]);
}

This function, when run normally, should not log anything to the console. In practice, when the key deletion conditions above are replicated, I see anywhere from 2 to 4 of the requests logging a server redirect.
According to my understanding of the code, which may not be correct, there is still a condition in which the cookie may not be updated correctly. If the user agent sends multiple requests concurrently, and then aborts the one that would have ended up removing the cookie, intentionally due to navigation or because of unreliable network conditions, then as far as I understand the user will be signed out no matter what.

I think I know what goes on now.
When you do two requests at once the request cookie will be the same value. The first request will then roll the id and return a new cookie value. The second request will fail  since the ID is now rolled, and then return an expiring cookie with the same old id that that request was sending, overriding the new id set in the first request. The only way to solve this server side is to not update the cookie at all unless a new value is to be set, or maybe have some kind of short term temporary storage for the old id to be converted into the new id (feels unsafe since it would mean that the token can be used multiple times).
This might also cause problem with sessions since when you update the Plug session it'll update the cookie value. The second request will then still use the old value, which will no longer work and then it'll simply delete the session. Have you experienced forced sign out while still being in an active session? I suspect this does occur as well.
So the first could be fixed, but you would still have the second issue. I would strongly recommend making all requests sequential, e.g. adding a queue system in your JS. Alternatively you can just open a socket to handle all requests and not deal with cookies at all. LiveView can be used for this.

or maybe have some kind of short term temporary storage for the old id to be converted into the new id

This is the fix I desired initially and what I alluded to with this statement:

One possible way to fix this is to bump the expiry time of the old session by a minute or two before it is deleted, so as to allow other concurrent requests time to complete and not force deauthentication.

The notification fetching behavior is intended to be sequential. If the tab is inactive for some time, when it is reactivated the user agent will queue all of the interval calls it missed sequentially. However, due to fact that promises cannot block, the requests end up being dispatched concurrently. I can fix this with a bit more code and a tail-recursive setTimeout instead.
We didn't use a socket in the past in part because of the way we discovered users prefer to browse the website. Typical users open anywhere from three to five tabs at a time, and there are anywhere from 1000 to 5000 of these active at any given time. Less typical users open between 10 and 100 tabs. We found that opening a socket connection for every tab was overwhelming our old Rails backend when we tried years ago. I do not feel the complication of a ServiceWorker handling socket requests is justified. I expect Phoenix to fare better in terms of sheer number of connections it can support, but I'd rather not have to deal with such things.

Have you experienced forced sign out while still being in an active session? I suspect this does occur as well.

Yes.
Even if I fix the issue with concurrent requests, that will not fix the problem of if the user agent aborts the request that would expire the cookie, or if it is dropped due to an unreliable network connection. The user will be forcibly deauthenticated in this scenario.

I feel that the most robust route would be not to drop the old cookie from the persistent session cache until the client starts to send requests with the new cookie value. This prevents fixation in most cases while also preventing the jarring user experience of constantly being signed out.

After looking at plug session, it seems that it doesn't expire the cookie when the session is being deleted. So I've created a branch to not expire any cookies:
{:pow, github: "danschultzer/pow", ref: "dont-expire-cookies", override: true}

I'll have to think this through, but it makes sense that cookie expiration is only dealt with in the client. One issue is that an invalid token will still be renewed if a user is authenticated, but I guess it's not a big deal as it can't be used to auth.
I tested with the above branch and I don't experience any issues now.

I'm (still) getting problems with being logged in in one tab, and not another, when I open pages rapidly on Derpibooru. To be specific, it has only occurred when I've opened links essentially simultaneously (under a quarter of a second between them), and it is always the case that the first tab is logged in, while some amount of tabs at the end are not.

@Nebulon-BFrigateFTW Does the tab where you are logged out keep you signed in when you reload? It sounds like a race condition. I'll test it out and see if I can replicate this scenario.
Also, I see that Pow was updated to v1.0.17 an hour ago with this commit: https://github.com/derpibooru/philomena/commit/9ea7980e3f704f0b05660690d127a93571b8a381
v1.0.17 has better handling of cookie writes, but not sure if it helps in this case.

@danschultzer
Yes, it does.
This happened 50 minutes ago.

Can confirm that I'm able to replicate the issue by deleting the session cookie, then open up two tabs immediately. At least locally this is due to responses being very slow. Seems like it takes 4-6 seconds. This would be reproducible with a blank Phoenix project by just letting the controller action sleep for a few seconds.
To remedy this, and the issues with AJAX requests, I'll look into idempotency, rather than making it possible to use the persistent session token multiple times. I'm planning to set up a custom plug that;

Sets a randomly generated idempotency key as a cookie when persistent session token (or session id) is generated
Stores, for a short time, the combined idempotency key and persistent session token (or session id) as key with the user as value, whenever the persistent session token (or session id) is rolled
If persistent session lookup fails, looks up the idempotency key and persistent session token key (or session id), and sets the user for the conn

The reason I don't want to let the persistent session token be usable more than once, is that it defeats the purpose of the persistent session store. In that case it's better and easier to just handle it with JWT.

@Nebulon-BFrigateFTW https://github.com/derpibooru/philomena/pull/33 is in production, let me know if you still experience this issue

@danschultzer I experienced the issue last night.

Yeah, I'm still having issues as well.  I've switched to the Postgres store to rule out my Mnesia cache being invalidated.

@Nebulon-BFrigateFTW I'm working on this https://github.com/derpibooru/philomena/pull/36 but I'm concerned of reports where sessions are entirely lost (doesn't keep signed in when reloading the tab). I would like to resolve that before finishing up that PR.
@dfalling do you loose the session entirely or does it work once you reload?
I'm continuing this in #435 with a condensed overview as this issue has gotten too long. Please continue with new reports over there. I would especially be thankful for reproducible setups.
This is a super frustrating issue since it seems to be caused by numerous things. I don't know if there is anything else I can do, but fixing this step by step.

@danschultzer I had to stop using the Postgres pow session store due to incompatibilities with the current version, so that's likely the cause of my session loss again.  I'm trying to find another option that can persist sessions across server deploys other than hot deploys.

You can also use the redis cache example, common setup for Heroku style setups with no persistent disk.

Thanks!  I tried the redis cache and after a couple of deploys my session still persisted.  The Postgres session store was updated and it seems to fix my problem as well.

That's great! I'm upping priority on #435 these days. Please let me know if any issues comes up.

@dfalling has everything worked as expected so far?

Yeah, it's been solid for me- no surprise dropped sessions.


Pretraining Instructions

Can you share the instruction on how to train the GraphCodeBert model from scratch? I would like to add more data from different programming languages like C++ and may use the parallel corpus (let's say from geeksforgeeks)

Sorry, we don't plan to release the code of pre-training.

yeah, how about the code of pre-training for CodeBert?

We don't release the of pre-training  CodeBERT yet.


fix input-number error border color when it is disabled and hover in number button(fix #17422)

…r in number button
Please make sure these boxes are checked before submitting your PR, thank you!

[ ] Make sure you follow Element's contributing guide (中文 | English | Español | Français).
[ ] Make sure you are merging your commits to dev branch.
[ ] Add some descriptions and refer relative issues for you PR.


⚠ Jenkins Plugins Artifactory has degraded performance

In ef6a117, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 1955 ms

Resolved: Jenkins Plugins Artifactory performance has improved in 4643b44.


Update defaults.py

Updated two resistivity curve names

Slowly working through my UKCS dataset ...

Thank you Thomas!
See Q on #114 -- as we get further from Ross Crain's list, I wonder if we should freeze his list (which is sort-of published and 'authoritative') and just have an alternative welly default for people to use.
I'll leave this until we decide on the general approach.

This has been added to develop and your list is now the default, with the original as defaults.CRAIN. Thanks Thomas!


python311Packages.uritemplate: refactor

Description of changes
Fixes #272251

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

https://github.com/NixOS/nixpkgs/commit/17e5ad4d71f756ba6f183b96120e9549b0175474 has a typo in the commit message, if you care about such things...

Thanks for checking, fixed.


fixmock env.isCheckpointThread

Proposed changes
Issue Number: close #xxx
ShowTableStmtTest.testNoDb and DropDbStmtTest.testNoPriv  are unstable cases，error msg is:
java.lang.Exception: Unexpected exception, expected<org.apache.doris.common.AnalysisException> but was<mockit.internal.expectations.invocation.MissingInvocation>

reason is missing mock env.isCheckpointThread
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


Update office-365-operated-by-21vianet-endpoints.md

issue #418 ,
added missing ports

@nenonix @JohanFreelancer9 - kindly do the copy editor review for this PR. Thanks.

@JoeDavies-MSFT - Can you please assist to check, approve and merge the content of this PR based on issue #418?
Thank you.

I cannot approve and merge this PR. Changes to the lists of endpoints must be done through an internal submission, vetting, and publishing process. I have asked the product team to investigate issue 418, from which these changes are the source. Closing this PR.


Cursor pointer offset error

While writing big paragraph in online editor,
the cursor goes in to some offset with the text,i.e ., the blinking cursor stays back while I write and continues at some offset.
It happens everytime!

@rrevanth can you tell me what operating system and type of device (desktop computer, phone, tablet, etc) you're using? Also which browser.

I am using elementary[it's based on ubuntu] on laptop and I am editing files online using chrome browser.
I even tried running prose offline,the error still persists.
Is it dependent on OS?

@rrevanth can you share a screenshot? Could be a codemirror issue but honestly I've never seen this before. Shouldn't have anything to do with OS though.
Does it only happen with large paragraphs, or does any file set it off? What kind of file are you editing?

@dereklieu Yeah. I made a recording of the error.
I observed an interesting pattern.
The offset is increasing by the number of characters corresponding to the line no of the paragraph.
i.e., On the first line,the offset is one char.
On second,2 chars.
Here are the links for the videos
https://youtu.be/nQfW6vq2HmA
https://youtu.be/vWsiNIgG0-g


Editor takes several seconds to render one of my pages

Category
Poor performance of the Editor
What is the current behavior?
I copy-pasted a file into the GitBook editor and it's freaking out. It's not even a very large page. It has a table in it, but that's OK.
But it takes several seconds to render the page, and sometimes it doesn't even do that.
What is the desired behavior?
Loading a page should be instant.
Additional information

OSX
Chrome 62.0.3202.94 (Official Build) (64-bit)
Grammarly was messing with the edit but I have disabled it for GitBook.

The page is at: https://www.gitbook.com/book/nictuku/microclusters-user-guide/edit#/edit/master/how_does_it_work.md
but it could be renamed soon since I'll try to find a mitigation for it.

i don't know if it's related or not, but the Editor keeps recreating a chapter1.md file file.
chapter1.md used to have a SUMMARY.md title of "How does it Work". Then I renamed the file to how_does_it_work.md.
But it seems like that made the editor extremely confused. It didn't update the SUMMARY.md entry for this page (still referencing chapter1.md) and now every time I click on "How does it Work" (which is supposed to be how_does_it_work.md), it takes forever to load. And also it creates a chapter1.md file again.
I think I fixed this by editing SUMMARY.md manually and changing chapter1.md to how_does_it_work.md.
That said, the original issue about this bug still remains. It's super slow to load the page.

FYI I wasn't using the downloaded Editor, but the online editor.

@nictuku This seems to be caused by a very high server load (seen in our logs), will investigate.
At first I couldn't reproduce the slowness issues you had editing the document itself.
Does it appear when you do specific things or when you edit any part of the document ?
(There are substantial editor improvements coming in the new release: https://beta.gitbook.com)

https://photos.app.goo.gl/2m6YSSIpfvEqQWnq2
It's also slow-ish in the offline app.
4 seconds may not seem much but that sluggishness happens every time I
switch pages.
I'll try the beta too!
On Nov 29, 2017 3:13 PM, "AaronO"<EMAIL_ADDRESS>wrote:

@nictuku https://github.com/nictuku This seems to be caused by a very
high server load (seen in our logs), will investigate.
At first I couldn't reproduce the slowness issues you had editing the
document itself.
Does it appear when you do specific things or when you edit any part of
the document ?
(There are substantial editor improvements coming in the new release:
https://beta.gitbook.com)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/GitbookIO/feedback/issues/581#issuecomment-348028594,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAMY9vq3e3UXfM5odIz76r01WNWmwBOHks5s7eUUgaJpZM4QvrXE
.

Closing this because I've been gotten used to the page load latency.


typescript-reqct-query/apollo generating duplicate fragment definitions

Describe the bug
In typescript-react-query and typescript-react-apollo, if multiple fragments referring to the same parent fragment are used simultaneously in the same query, a query with the parent fragment written multiple times will be generated.
example:
query foo {
    user1: user(id: 1) {
        ...userWithEmail
    }
    user2: user(id: 2) {
        ...userWithName
    }
}

fragment userWithEmail on User {
    ...userBase
    email
}

fragment userWithName on User {
    ...userBase
    name
}

will generate userBase twice.
maybe same problem as #4143
To Reproduce
Steps to reproduce the behavior:
set files below in https://www.graphql-code-generator.com

My GraphQL schema:

schema.graphql
scalar Date

schema {
  query: Query
}

type Query {
  user(id: ID!): User
}

type User {
  id: ID!
  name: String!
  email: String!
}

My GraphQL operations:

operation.graphql
query foo {
    user1: user(id: 1) {
        ...userWithEmail
    }
    user2: user(id: 2) {
        ...userWithName
    }
}

fragment userBase on User {
    id
}

fragment userWithEmail on User {
    ...userBase
    email
}

fragment userWithName on User {
    ...userBase
    name
}

My codegen.yml config file:

codegen.yml
generates:
  types.ts:
    plugins:
      - typescript
      - typescript-operations
      - typescript-react-query

Generated

it generates
import { useQuery, UseQueryOptions } from 'react-query';
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };

function fetcher<TData, TVariables>(endpoint: string, requestInit: RequestInit, query: string, variables?: TVariables) {
  return async (): Promise<TData> => {
    const res = await fetch(endpoint, {
      method: 'POST',
      ...requestInit,
      body: JSON.stringify({ query, variables }),
    });

    const json = await res.json();

    if (json.errors) {
      const { message } = json.errors[0];

      throw new Error(message);
    }

    return json.data;
  }
}
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
  ID: string;
  String: string;
  Boolean: boolean;
  Int: number;
  Float: number;
  Date: any;
};

export type Query = {
  __typename?: 'Query';
  user?: Maybe<User>;
};

export type QueryUserArgs = {
  id: Scalars['ID'];
};

export type User = {
  __typename?: 'User';
  id: Scalars['ID'];
  name: Scalars['String'];
  email: Scalars['String'];
};

export type FooQueryVariables = Exact<{ [key: string]: never; }>;

export type FooQuery = (
  { __typename?: 'Query' }
  & { user1?: Maybe<(
    { __typename?: 'User' }
    & UserWithEmailFragment
  )>, user2?: Maybe<(
    { __typename?: 'User' }
    & UserWithNameFragment
  )> }
);

export type UserBaseFragment = (
  { __typename?: 'User' }
  & Pick<User, 'id'>
);

export type UserWithEmailFragment = (
  { __typename?: 'User' }
  & Pick<User, 'email'>
  & UserBaseFragment
);

export type UserWithNameFragment = (
  { __typename?: 'User' }
  & Pick<User, 'name'>
  & UserBaseFragment
);

export const UserBaseFragmentDoc = `
    fragment userBase on User {
  id
}
    `;
export const UserWithEmailFragmentDoc = `
    fragment userWithEmail on User {
  ...userBase
  email
}
    ${UserBaseFragmentDoc}`;
export const UserWithNameFragmentDoc = `
    fragment userWithName on User {
  ...userBase
  name
}
    ${UserBaseFragmentDoc}`;
export const FooDocument = `
    query foo {
  user1: user(id: 1) {
    ...userWithEmail
  }
  user2: user(id: 2) {
    ...userWithName
  }
}
    ${UserWithEmailFragmentDoc}
${UserWithNameFragmentDoc}`;
export const useFooQuery = <
      TData = FooQuery,
      TError = unknown
    >(
      dataSource: { endpoint: string, fetchParams?: RequestInit },
      variables?: FooQueryVariables,
      options?: UseQueryOptions<FooQuery, TError, TData>
    ) =>
    useQuery<FooQuery, TError, TData>(
      ['foo', variables],
      fetcher<FooQuery, FooQueryVariables>(dataSource.endpoint, dataSource.fetchParams || {}, FooDocument, variables),
      options
    );

then FooDocument will be

    query foo {
  user1: user(id: 1) {
    ...userWithEmail
  }
  user2: user(id: 2) {
    ...userWithName
  }
}

    fragment userWithEmail on User {
  ...userBase
  email
}

    fragment userBase on User {
  id
}

    fragment userWithName on User {
  ...userBase
  name
}

    fragment userBase on User {
  id
}

that contains userBase twice.
Expected behavior

Each fragment should be written only once.
Environment:

OS: Ubuntu/Windows
@graphql-codegen/typescript-react-query: latest
NodeJS: latest

@gilgardosh I think it's similar to the work you did on dedupeFragments , maybe we can make sure we don't have any duplications in that area of the code (for both true/false values of dedupeFragments) .

Temporal workaround for solution seekers:
It should be used along with custom hooks in apolloReactHooksImportFrom.
import filter from 'lodash/fp/filter';
import pipe from 'lodash/fp/pipe';
import uniqBy from 'lodash/fp/uniqBy';

export function isFragmentDefinition(
  def: DefinitionNode
): def is FragmentDefinitionNode {
  return def.kind === 'FragmentDefinition';
}

export const notFragments = filter<DefinitionNode>(
  def => def.kind !== 'FragmentDefinition'
);

export const onlyUniqueFragments = pipe(
  filter<DefinitionNode, FragmentDefinitionNode>(isFragmentDefinition),
  uniqBy<FragmentDefinitionNode>(def => def.name)
);

export function normalizeDocumentNode(doc: DocumentNode): DocumentNode {
  if ('__normalized' in doc) return doc;

  // sorry for obj mutation :) it should help to reduce cloning objects
  return Object.assign(doc, {
    __normalized: true,
    definitions: [
      ...notFragments(doc.definitions),
      ...onlyUniqueFragments(doc.definitions),
    ],
  });
}

Somewhere in custom hooks:
export function useQuery(document: DocumentNode, options) {
  normalizeDocumentNode(document);
  return originalUseQuery(document, options);
}

Hi everyone and thank you for the report
Sorry but I'm not adding a lot here but just labeling it according to our new Contribution Guide and issue flow.
It seems already got into stage 1 thanks to your reproduction! Thank you for that!
Now in order to advance to stage 2 we'll need a failing test, would be great if someone could help progress the issues through the stages.
Thank you and sorry that this comment is not a complete solution (yet).

I added a PR for this issue. It contains a test and a proposed fix.

This seems to affect typescript-react-query codegen as well if I understood the issue description. Adding dedupeFragments: true fixed it for our use case though. Thanks @dotansimha for mentioning the option!

https://github.com/dotansimha/graphql-code-generator/releases/tag/%40graphql-codegen%2Fvisitor-plugin-common%402.3.0


Fix duplicate TOC highlighting for article that appears in 2 sections of the TOC

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

docs/develop/support-for-task-pane-and-content-add-ins.md
:white_check_mark:Succeeded

docs/develop/understanding-the-javascript-api-for-office.md
:white_check_mark:Succeeded

docs/includes/file-get-the-whole-document-from-an-add-in-for-powerpoint-or-word.md
:white_check_mark:Succeeded

docs/powerpoint/get-the-whole-document-from-an-add-in-for-powerpoint.md
:white_check_mark:Succeeded

docs/powerpoint/powerpoint-add-ins.md
:white_check_mark:Succeeded

docs/toc.yml
:white_check_mark:Succeeded

docs/word/get-the-whole-document-from-an-add-in-for-powerpoint-or-word.md
:white_check_mark:Succeeded

docs/word/get-the-whole-document-from-an-add-in-for-word.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Last Week in Pony - December 2, 2018

I'm going to try to keep up with the Advent of Code in Pony: https://github.com/kulibali/advent_of_code_2018

I will also be doing Advent of Code in Pony:
https://github.com/aturley/advent-of-code-2018
I will also be streaming work on AoC puzzles from 3PM-4PM (Eastern Standard Time) Monday, Wednesday, and Friday. You can watch the stream on Twitch:
https://www.twitch.tv/aturls

And Richard Kallos' AOC Repo:
https://github.com/rkallos/aoc2018


Version Packages

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.
Releases
<EMAIL_ADDRESS>Minor Changes

a91cacb: Compiler accepts forced inferred types as 1st generic

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
28

Relevant Lines:
28

💛  - Coveralls


problem starting containers with docker-machine

getting the following with latest (1.7.3)
18/05/30 16:21:28 INFO DockerClientFactory: Docker host IP address is <IP_ADDRESS>
18/05/30 16:21:28 INFO DockerClientFactory: Connected to docker:
  Server Version: 18.05.0-ce
  API Version: 1.37
  Operating System: Boot2Docker 18.05.0-ce (TCL 8.2.1); HEAD : b5d6989 - Thu May 10 16:35:28 UTC 2018
  Total Memory: 2002 MB
18/05/30 16:21:40 INFO DockerClientFactory: Ryuk started - will monitor and terminate Testcontainers containers on JVM exit
        ℹ Checking the system...
        ✔ Docker version should be at least 1.6.0
        ✔ Docker environment should have more than 2GB free disk space
        ✔ File should be mountable
---snip---
Caused by: com.github.dockerjava.api.exception.BadRequestException: {"message":"OCI runtime create failed: container_linux.go:348: starting container process caused \"chdir to cwd (\\\"/root\\\") set in config.json failed: permission denied\": unknown"}

	at com.github.dockerjava.netty.handler.HttpResponseHandler.channelRead0(HttpResponseHandler.java:99)
	at com.github.dockerjava.netty.handler.HttpResponseHandler.channelRead0(HttpResponseHandler.java:33)
	at org.testcontainers.shaded.io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)

I am able to use docker normally ex with zipkin's docker-compose file

Ouch, thank you for reporting and sorry you hit this. I'll try and reproduce; from the error it looks like Testcontainers and/or docker-java is trying to do something that's no longer possible in docker-machine.
As a workaround, do you have Docker for Mac (/Windows?) available to try?

Hey @adriancole, I have a feeling that it relates to #680 :(
Apparently they released 18.05.0-ce with a regression inside :(
May I kindly recommend you to try Docker for Mac? It's proven to be MUCH more stable (and faster)

@adriancole FYI 18.05 is "edge" release, the latest stable is 18.03.1:
https://docs.docker.com/release-notes/docker-ce/

ok suppose toolbox gave me a crap version. thanks for getting some quick
advice.
I will give docker mac a try again later.. I didn't like how it used to
clash with my local services which is why I was using the machine which
while slow was ok before.
On Wed, 30 May 2018, 16:40 Sergei Egorov<EMAIL_ADDRESS>wrote:

@adriancole https://github.com/adriancole FYI 18.05 is "edge" release,
the latest stable is 18.03.1:
https://docs.docker.com/release-notes/docker-ce/
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/testcontainers/testcontainers-java/issues/717#issuecomment-393079464,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAD61xj0Sf-exeO9QRvGuUNerSfNiFkFks5t3lsAgaJpZM4US0hn
.

@adriancole I think there are some reports of that regression on SO as well:
https://stackoverflow.com/questions/50325096/grafana-5-1-0-docker-image-permission-issue
could you please run the following commands to verify it?
$ mkdir data
$ docker run -ti -p 3000:3000 --entrypoint bash --volume "$PWD/data:/var/lib/grafana" grafana/grafana:5.1.0

$ ls /var/lib/grafana

Based on the error message alone it looks like moby/moby#32708.
That was first reported back on 17.03, more than a year ago, so I'm skeptical that it's going to be the same actual cause in our case. Still, maybe this ticket will give us some clues.

heh regular docker works for me now.. I'll try docker-machine tomorrow with
the command you mentioned!
On Wed, May 30, 2018 at 4:47 PM, Sergei Egorov<EMAIL_ADDRESS>wrote:

@adriancole https://github.com/adriancole I think there are some
reports of that regression on SO as well:
https://stackoverflow.com/questions/50325096/grafana-5-
1-0-docker-image-permission-issue
could you please run the following commands to verify it?
$ mkdir data
$ docker run -ti -p 3000:3000 --entrypoint bash --volume "$PWD/data:/var/lib/grafana" grafana/grafana:5.1.0
$ ls /var/lib/grafana
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/testcontainers/testcontainers-java/issues/717#issuecomment-393081535,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAD61_JHefwUJ_yoJO_F9fpL1iL1BXEWks5t3lykgaJpZM4US0hn
.

@adriancole thanks! We're checking what's wrong with the edge Docker anyways, but, in general, highly recommend running Docker for Mac :)

using docker-machine...
○ → docker run -ti -p 3000:3000 --entrypoint bash --volume "$PWD/data:/var/lib/grafana" grafana/grafana:5.1.0
Unable to find image 'grafana/grafana:5.1.0' locally
5.1.0: Pulling from grafana/grafana
2a72cbf407d6: Pull complete
89f824064239: Pull complete
b90280be2e0d: Pull complete
Digest: sha256:a6b37f9afdd9782f1e6264acaf3b09519aad454f34ca6b0e863dd9873e11fa67
Status: Downloaded newer image for grafana/grafana:5.1.0
grafana@7aaf88a18a3f:/$ ls /var/lib/grafana
grafana@7aaf88a18a3f:/$

@adriancole did you create data folder on host before running the command?

yep


Add Carrier Vessel eXpansion (CVX) from SpaceDock

This pull request was automatically generated by SpaceDock on behalf of Eskandare, to add Carrier Vessel eXpansion (CVX) to CKAN.
Mod details:
name = /mod/954/Carrier%20Vessel%20eXpansion%20%28CVX%29
author = Eskandare
abstract = Want to explore Kerbin via the high seas? Wish you had a mobile base you could land refuel and take off again? Do you just want an Aircraft Carrier? CVX is the mod for you!
license = Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Homepage = http://forum.kerbalspaceprogram.com/index.php?/topic/148118-carrier-vessel-expansion-cvx/
description = Want to explore Kerbin via the high seas? Wish you had a mobile base you could land refuel and take off again? Do you just want an Aircraft Carrier? CVX is the mod for you!
Visit the forum for more details.
Please direct questions about this pull request to Eskandare.

Closing in favour of #4878