Cannot get HTTP response from server with client certificates enable

I try to send HTTP GET request to a server with a "client certificate" enabled in my Flutter app. The server allows client certificates because some of the clients (Desktop apps) use certificates for authorization with this server.
I think this issue belongs here because I tried to do this request with the Http libary and with the dio and I get the same result.
Server configuration and details:
OS: Windows
Host: IIS
HTTP version: 1.1
Minimum TLS version: 1.2
Runtime: ASP .NET Core 5
Expected results:
HTTP response
Actual results:
The GET request receives in the server but the Dart's HTTP GET method throws a ClientException with an empty message before a response is received.
BTW
I manage to make a request and get a response via other in other platforms to the same endpoint in this server without any problem! I try C# console app, Xamrin Forms app, and Postman, and this issue exists only in Flutter!

//cc @aam

@NetiSade can you share a repro? What is a stack trace associated with thrown ClientException?

I think your issue is similar to this https://github.com/dart-lang/sdk/issues/37695. Do you have access to the server? Can you toggle the "client certificate" setting to verify it is the same bug?


Color control of categories at levels

Dear Asjad,
It is great to be able to use Ben Jann's palettes and colrspace to control colors, but, that implies (on first sight) their general use and much less their specific use for color coding categories on leveld. Myself, I am very 'picky' when it comes to the control of colors and rather want to select them individually for about anything. But, let me first follow your guidelines and run my example using:
use "MBO22Keuzedelen_Start_20230413.dta" , clear
gen c_keuzedl=1
replace c_keuzedl=2 if KEUZEDEELKEUZE==3
replace c_keuzedl=3 if KEUZEDEELKEUZE==2
replace c_keuzedl=4 if KEUZEDEELKEUZE==4
label define lbl_c_keuzedl 1 "Oriënteren" 2 "Samenwerken" 3 "Analyseren'" 4 "Reflecteren" , replace
label values c_keuzedl lbl_c_keuzedl
label var c_roc "College"
label var vrouw "Studenten"
label var c_keuzedl "Keuzedeel"
alluvial c_roc vrouw c_keuzedl , laba(90) labs(*1.4) showtot boxw(*20) shares vals(*1.2) valf(%12.2f) valgap(*5) palette(carto) name(roc, replace)

which results in:

Never mind the cluttered labels at the levels and the super small level titels (we deal with that later).
Note that I have used palette(carto) and that by inspection of that palette, using:

I analyse where which palette color was used by alluvial, using:

My first thought is 'how does this come about'? What logic decides to use which color for the individual categories at each level?
Should your code apply some algorithm to 'cherry pick' colors from the palette, possibly people will appreciate that (no pun intended).
But, I would like to be in control and be able to assign (set) selected colors of such palette to the levels.
I can think of various ways of coding that but forgive me for being ignorant what would be the most concise but flexible way of coding.
For example, could:
palettelevels(# "str")
The allocation of the colors of the palette(name) by their code to the categories of the levels used.
Default is palettelevels(auto) for automatic color allocation.
Note that when not all categories or not each level is allocated individually that then their default selected color applies (which might result in the multiple use of such colors).

work in your module?
Like with my Example:
palette(carto) levelcolors(1 "5 2 7" 2 "3 10 7" 3 "6 9 1 8")
Ideally, I also really would like to be able to control the colors using all Stata's parameters for colors, like:
* Functional only when palette("str") is not used:
levelcolors(1 "gs11 green sanb" 2 ""255 255 130%50" "255 130 255*1.1"" 3 blue%40 blue%60 blue%80 blue*1.2")

Well, I submit to you that I am a 'demanding' person.
Best,
Eric

This has been requested for several packages esp sankey. A potential solution is to add a colorby(variable) option. This allows users to define their own order, highlight certain regions, and keep full control of the colors.

Also the default color order is alphabetical. A numerical or a level sort has been implented in sankey but has not been ported over to alluvial.


Add description to migration failures [test_id:2303]

What this PR does
This PR adds a description to the eventually block failure at [test_id:2303]
without description it's hard to understand the cause of failure
Example:
Timed out after 60.000s.
Expected
    <bool>: false
to be true
tests/migration/migration.go:1552

Release note
None

/approve

Thanks @dasionov!
/lgtm
/kind cleanup
p.s. Kubernetes use a linter to enforce using BeFalseBecause() instead of BeFalse() to ensure an explanation is always provided. FYI @EdDev.

/remove-kind failing-test
@dosu although this relates to test code, it is not about a failing test.

p.s. Kubernetes use a linter to enforce using BeFalseBecause() instead of BeFalse() to ensure an explanation is always provided. FYI @EdDev.

Can we add it too? Is it from @nunnatsa linter?

p.s. Kubernetes use a linter to enforce using BeFalseBecause() instead of BeFalse() to ensure an explanation is always provided. FYI @EdDev.

Can we add it too? Is it from @nunnatsa linter?

As a policy, I would avoid boolean assertions in general. But that is a steategic goal.

/retest-required

/cherrypick release-1.3

/cherrypick release-1.4


Ignore frozen setting in inline mode

Fixes #7114.
What was the end-user problem that led to this PR?
The problem was that the inline mode wouldn't work if BUNDLE_FROZEN is set.
What was your diagnosis of the problem?
My diagnosis was that since we're in frozen mode, the current platform doesn't get added to the definition, and thus platform validation fails.
What is your fix for the problem, implemented in this PR?
My fix is to temporary ignore BUNDLE_FROZEN for the inline mode. The inline mode can't really be frozen since it has no lock file.

Yeah, this seems legit. It strikes me as weird/unsupported to be running an inline script while BUNDLE_FROZEN is set, but if we can make it work, why not. :) r+ from me.

Thanks!
@bundlerbot r=indirect

re: @indirect

Yeah, this seems legit. It strikes me as weird/unsupported to be running an inline script while BUNDLE_FROZEN is set, but if we can make it work, why not. :) r+ from me.

I was the one that submitted the original issue bringing this up.  The use case I have is a Rails 4 app but I have a standalone script in the project that is using inline to load a 5.x version of ActiveSupport.  After deploy capistrano froze the bundle and the standalone fails without this fix.
FYI
(e)


Repo retirement notice for 4.22

At 4.22 (late Q4 2021) this repo will no longer be supported. This issue supersedes and closes https://github.com/Esri/angular-cli-esri-map/issues/90.
We recommend migrating from AMD modules to using @arcgis/core ES modules with the latest Angular as demonstrated in this sample: https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-angular-cli.  The Angular team officially recognize ES modules as a best practice for creating applications with their framework: https://angular.io/guide/ngmodule-vs-jsmodule#javascript-modules-files-containing-code.

For more information on migrating from AMD to ES modules see the Introduction to tooling Guide topic in the SDK.

And last but not least, thank you to everyone that used this repo, it's been part of a continuous family of repos dating back over 9 years. Starting with AngularJS (v1.x) all the way up to Angular 13, which was just released in November 2021, we have continuously offered samples, such as this one, that demonstrate patterns for integrating with the ArcGIS JS API, and that have been used in numerous applications worldwide.

Closing.


Panic if the server does not return a response

Tried to make return nil, nil in handlers. In response, I received a panic via err: gRPC protocol error: no Grpc-Status trailer

What would you expect to happen? I feel like a panic is valid here imo.


Fix intermittent failure

Some of the other tests are running asynchronously and were causing
issues if they both used the same sequence name (in this case email).
Running the tests synchronously should fix the issue.
The tests are still plenty fast. Once Ecto supports concurrent tests, we may want to rethink the Sequence module so that it keeps sequences per process so others don't run into this issue with their tests. Fixes #44

:+1:


Support recursive delegation

Allow an inscription to delegate to an inscription that itself delegates to another.

Probably better not to introduce recursion here. Rest assured recursion would be heavily used and even caching could become a problem at some point. Goint the max.-depth-route could lead to failed inscriptions because not everyone will look up the rest of availble depth. For simplicity and safety, I'd vote for not doing it.

recursion would be heavily used

Would that be a problem? Isn't it better that people use delegation than that they don't?

even caching could become a problem at some point

How so?

I would like to provide a vote of support for the inclusion of this logic. I've made some shameful mistakes on mainnet by unknowingly inscribing some delegates of delegates that would love to be blessed some day.  However, if this functionality is decided against, I think it would be good to include a note of warning on the delegate page stating that it is unsupported.


No internet access after reboot

OS Version: 10.0.16299 Build: 16299
Ubuntu 18.04 from microsoft store
After PC reboot i open Ubuntu from the start menu, and trying to ping google.kz (using bash), getting an error:
ping: google.kz: Temporary failure in name resolution

Then i check:
cat /etc/resolv.conf

File not found. Not using any VPN, just windows defender and malwarebytes (i've tried to turn it off, but no result). I guess WSL is having trouble launching some auto scripts to create resolv.conf?

Try to add DNS server IP address with: echo <IP_ADDRESS> > /etc/resolv.conf.

sudo echo <IP_ADDRESS> > /etc/resolv.conf
Output:
bash: /etc/resolv.conf: Permission denied
Even with sudo i can't

@heihachi88 What's the output of ll /etc/resolv.conf ?

both files empty... what the hell, yesterday it worked after reboot, approx after 1 hour. Nothing new i installed.

Empty or file did not exist? I was interested in the file permissions. This is what it looks like:.
onoma@DESKTOP-2HISNRP:~$ ll /etc/resolv.conf
lrwxrwxrwx 1 root root 29 May 11 21:15 /etc/resolv.conf -> ../run/resolvconf/resolv.conf
onoma@DESKTOP-2HISNRP:~$ ll /run/resolvconf/resolv.conf
-rw-r--r-- 1 root root 147 Aug  4 20:28 /run/resolvconf/resolv.conf

Seems file got corrupted or something. I would uninstall the Ubuntu18.04 app and reinstall it to see if it happens again.

Are you sure it's not 18.04 issue? Are you using 18.04 yourself?

Yes, I'm using 18.04 but I'm using build 17134. Can't you upgrade your Windows 10?

How can i upgrade build? I must switch to beta or something? I just migrated from MacOS (used it last 6 years)

If it's your computer this should work
https://support.microsoft.com/en-us/help/4027667/windows-update-windows-10

Updated to 1803, same picture. After sleep / reboot, no resolv.conf, i even reinstalled Ubuntu 18.04

Ended it this way:
sudo bash -c 'echo "nameserver <IP_ADDRESS>" > /etc/resolv.conf'
sudo bash -c 'echo "nameserver <IP_ADDRESS>" >> /etc/resolv.conf'

exit

-c parameter was missing from @Biswa96 answer, now my DNS is working, but still, why DOES it happening?

You have problems with the network adapter, WSL is not at all .WSL uses WinSocket

@Voskrese if i had a problem with the network adapter, then in windows i would have the same problem, but on Windows i have no issues related to DNS.

@heihachi88 No, I missed the nameserver word. BTW, the resolve.conf file should be automatically created. And it's a symbolic link to /run/resolvconf/resolv.conf. Try to delete that /etc/resolve.conf and exit from wsl.exe. Then rerun wsl.exe and check if that file/symbolic link will automatically created or not.

@Biswa96 I can't delete not existing file, both files you mentioned didn't exist, before i manually injected them and exit shell, then relaunch again.

@Voskrese is reboot necessary? I'll try it next time it won't resolve.

@heihachi88 This is a recommendation, once reboot to have entered new settings, I think is not the same and the problem

@Voskrese tried your changes, even rebooted 🤣 , but still no /etc/resolv.conf just WTF is this.

Try to recover resolv.conf again (uninstalling the app and reinstalling?) and just after waking up PC from sleep get some logs following this:
https://github.com/Microsoft/WSL/blob/master/CONTRIBUTING.md#8-detailed-logs

I've already reinstalled Ubuntu 18.04 twice, maybe it's hardware?

Please post the logs. It could be your internet configuration or some permission problem.

@heihachi88
I did not write that I will create a file resolv. conf, I said that you have problems with the drivers and the network in Windows
Essentially resolv. conf is Podnastrojkoj, as well as the host file
What service uses resolv. conf in WSL? No, only utilities working with the network, by custom

@heihachi88  Well, if you want to deal with the network in more detail, here everything is described
https://wiki.debian.org/NetworkConfiguration

In the most complex situations, using resolvconf really is the way to go, though in more simple configurations it is probably overkill.

apt-get install resolvconf
Check network card settings
cat /etc/network/interfaces
Add DNS to the Resolvconf utility
added
nameserver <IP_ADDRESS>
nameserver <IP_ADDRESS>

to
/etc/resolvconf/resolv.conf.d/base
/etc/resolvconf/resolv.conf.d/tail

sudo resolvconf -u

Alternatively, firewall may block outbound connection
cmd.exe
netsh advfirewall set allprofiles state off
bash.exe
ping google.com
ON firewall
netsh advfirewall set allprofiles state on

Ubuntu's firewall you mean?

I traced the process that is responsible for going into the WSL network, apparently as a layer
https://github.com/henrypp/simplewall
под названием PICO

Looks like there is some problem with WSL networking on build 18945. After booting, the WSL virtual interface got the following address:
$ ifconfig eth0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet <IP_ADDRESS>  netmask <IP_ADDRESS>  broadcast <IP_ADDRESS>
        inet6 fe80::215:5dff:fe70:91d2  prefixlen 64  scopeid 0x20<link>
        ether 00:15:5d:70:91:d2  txqueuelen 1000  (Ethernet)
        RX packets 1892  bytes 285656 (285.6 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 21  bytes 1586 (1.5 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

On the windows side, the WSL interface was:
PS C:\Users\paulos> ipconfig
...
Ethernet adapter vEthernet (WSL):

  Connection-specific DNS Suffix  .  :
...

I think the problem is that the default gateway on the linux side should be <IP_ADDRESS> but since it is outside the <IP_ADDRESS>/24 network the WSL instance ends up without a default gateway.
If I change the netmask to <IP_ADDRESS> and add the windows IP as default gateway on the linux side too problem is fixed:
$ sudo ifconfig eth0 <IP_ADDRESS> netmask <IP_ADDRESS>
$ sudo route add default gw <IP_ADDRESS>

I guess that after the upgrade the netmask on the Windows side changed and the virtual DHCP server is providing the wrong one for the WSL host (may be it was hardcoded). Or vice-versa. Anyway the workaround is:

check the netmask on the windows side using ipconfig (look for the WSL interface)
change the netmask on the linux side
add a default route pointing to the IP of the windows network interface.

Thanks @pauloscardine, I noticed the subnet mask was incorrect a bit ago as well. The fix had already been checked in and will be in an Insider build soon.

I wrote a powershell script that does what @pauloscardine described if you have a simple install as I do, with one WSL guess accessible via the bash command. You can just run it from the host to search for the right settings and apply them.

Just sudo su, enter your password and then do:
echo "nameserver <IP_ADDRESS>" > /etc/resolv.conf
Where <IP_ADDRESS> is your preferred DNS. If you dislike google try <IP_ADDRESS> or <IP_ADDRESS> or some adblocking DNS or stuff.
You have to do it as root, not sudo.

Just sudo su, enter your password and then do:
echo "nameserver <IP_ADDRESS>" > /etc/resolv.conf

One way to achieve the same result using sudo is:
echo "nameserver <IP_ADDRESS>" | sudo tee /etc/resolv.conf

This may solve some problem with the local DNS cache but unfortunately will not solve the "default gateway" problem: you can't reach <IP_ADDRESS> without a router.

@mscraigloewen I'm hitting this to in a flight upgrade. https://github.com/microsoft/WSL/issues/3438#issuecomment-516847566 is the issue, I have the same netmask mismatch.

^^ Confirmed @andrewvc's powershell script fixes this for me.
Before:
% ping google.com
ping: google.com: Temporary failure in name resolution

After:
ping google.com
PING google.com (<IP_ADDRESS>) 56(84) bytes of data.
64 bytes from sfo07s17-in-f14.1e100.net (<IP_ADDRESS>): icmp_seq=1 ttl=53 time=15.0 ms

For anyone that wants to fix this via @andrewvc 's method but doesn't have pwsh installed in WSL you can do it natively in bash like this:
GW=$(route -n | grep 'UG[ \t]' | awk '{print $2}')
sudo ifconfig eth0 netmask <IP_ADDRESS>
sudo ip route add default via $GW

What if the installed WSL does not have ifconfig installed? For eg. debian.

Guess you have to do some magic with ‘/etc/network/interfaces.d‘. (I may be wrong.. I’m not a Debian user)
This bug doesn’t seem to exist for me anymore anyway. Maybe the latest build has fixed it?

Just sudo su, enter your password and then do:
echo "nameserver <IP_ADDRESS>" > /etc/resolv.conf
Where <IP_ADDRESS> is your preferred DNS. If you dislike google try <IP_ADDRESS> or <IP_ADDRESS> or some adblocking DNS or stuff.
You have to do it as root, not sudo.

This worked for me. Thanks!

This happened suddenly, I just removed /etc/resolv.conf rebooted and let it regenerate the file, this makes sure you are not hardcoding your DNS server for easing further troubleshooting and keeping installation as close to defaults as possible. Most people want the DNS to follow in WSL if you decide to tether internet via phone, use VPN provider etc.

@scardine hint helped me on WSL2
nano /etc/resolv.conf

Change nameserver to google DNS
nameserver <IP_ADDRESS>

I think my problem exists due to a conflict between comcast DNS and my work's openVPN.
While on work's openVPN I can't contact comcast DNS.  Note openVPN is not set up to direct internet traffic over the link but it does print "Blocking outside dns using service succeeded".
While on VPN
$ cat /etc/resolv.conf
# This file was automatically generated by WSL. To stop automatic generation of this file, remove this line.
nameserver <IP_ADDRESS>
nameserver <IP_ADDRESS>
nameserver 2001:558:feed::1
search hsd1.ma.comcast.net.
$ nslookup google.com
../../../../lib/isc/unix/socket.c:2165: internal_send: <IP_ADDRESS>#53: Invalid argument
../../../../lib/isc/unix/socket.c:2165: internal_send: <IP_ADDRESS>#53: Invalid argument
../../../../lib/isc/unix/socket.c:2165: internal_send: 2001:558:feed::1#53: Invalid argument

Disconnected from VPN:
$ nslookup google.com <IP_ADDRESS>
Server:         <IP_ADDRESS>
Address:        <IP_ADDRESS>#53

Non-authoritative answer:
Name:   google.com
Address: <IP_ADDRESS>
Name:   google.com
Address: 2607:f8b0:4006:806::200e

Note manually setting my Windows DNS to <IP_ADDRESS> doesn't work but using works DNS does.  Guess I'll talk to IT.
jcormier@LAPTOP-JCORMIER2012:~$ cat /etc/resolv.conf
# This file was automatically generated by WSL. To stop automatic generation of this file, remove this line.
nameserver <IP_ADDRESS>
nameserver 2001:558:feed::1
nameserver 2001:558:feed::2
search hsd1.ma.comcast.net.
jcormier@LAPTOP-JCORMIER2012:~$ nslookup google.com
../../../../lib/isc/unix/socket.c:2165: internal_send: <IP_ADDRESS>#53: Invalid argument
../../../../lib/isc/unix/socket.c:2165: internal_send: 2001:558:feed::1#53: Invalid argument
../../../../lib/isc/unix/socket.c:2165: internal_send: 2001:558:feed::2#53: Invalid argument

In my case, the problem was my work VPN. I was installing some ubuntu packages, and I activated my VPN, after successfully connected, my WSL shell began timeout. I saw @jjcf89 answer and I disconnect my VPN and it worked again.
VPN: Check point Endpoint security

Note my fix was to remove "block-outside-dns" from my openvpn config file.  This lets the dns calls go through my local LAN.

I was having the same problem, and it was due to Express VPN. So I added an exception for ubuntu2004.exe and pwsh.exe (Power Shell) and now it works fine.
To find the location of Ubuntu (or other version), open your task manager. Find your distribution, click the drop down, and then right click and select "Open file location".
Not sure if I need both, but since I sometimes open wsl through power shell, I left both in my exceptions/split tunneling options.

For some of us this seems to be a Windows Defender / Security related issue.
What happens is, that if you upgrade your machine or for some other reason Windows Security reboots with warning, it will disconnect WSL2.
The symptom should be that when you ping google.com, it should fail (for me it just freezes and when I ctrl-C, I get that all packages have been lost).
Then you should fix the warnings (usually this means re-enabling "Reptutation-based protection" under the "App & browser control"), and do the following:

Disable firewall temporarily by running this in PowerShell: netsh advfirewall set allprofiles state off
Go to WSL2 and retry ping google.com, this should now work, if the problem was related to Windows Security and warnings (it can also relate to firewalls and VPN; you have to google for solving those)
Re-enable firewall by running this in PowerShell: netsh advfirewall set allprofiles state on
The reset the firewall and you should be fine: netsh advfirewall reset

This worked nicely for me.

source: stackoverflow
based on the above, it resolves my problem.
Open windows cmd in admin mode and type thses commands

1. netsh winsock reset
2. netsh int ip reset all
3. netsh winhttp reset proxy
4. ipconfig /flushdns
5. reboot

Someone recommended this to me for alleviating a (different but probably related) wsl2 internet connectivity issue:
https://github.com/sakai135/wsl-vpnkit

I fix this with windows 11:
https://github.com/microsoft/WSL/issues/5336#issuecomment-874212438

This is what helped to me ...  I am having WSL2 and using VPN (Cisco Anyconnect) to connect to my company network.
WSL2 VM is configured with INTERNAL type of connection of virtual switch be default, which can be the main reason for issues, so we could think about to change to EXTERNAL.

update the resolv.conf with <IP_ADDRESS> (ensure that it is not being overwritten after reboot, see elsewhere how to do it )

In powershell with admin privs:  Get-NetAdapter | Where-Object {$_.InterfaceDescription -Match "Cisco AnyConnect"} | Set-NetIPInterface -InterfaceMetric 4000

Optionally:  Get-NetIPInterface -InterfaceAlias "vEthernet (WSL)" | Set-NetIPInterface -InterfaceMetric 1

Not sure what this exactly does, and how to do it other way and permanently, but it works.

If you can ping web pages from the linux terminal you can try turning off all your firewalls or antivirus. It worked for me.

This bug happened to me after installing VirtualBox 6.1.34 - WSL network stopped working.
In order to be able to use VPN beside my home network (the trick with <IP_ADDRESS> did not work here), I added my router gateway IP as a nameserver to the WSL config:
> netsh interface ip show config "WiFi"

Configuration for interface "WiFi"
    DHCP enabled:                         Yes
    IP Address:                           <IP_ADDRESS>
    Subnet Prefix:                        <IP_ADDRESS>/24 (mask <IP_ADDRESS>)
    Default Gateway:                      <IP_ADDRESS>
    Gateway Metric:                       0
    InterfaceMetric:                      50
    DNS servers configured through DHCP:  <IP_ADDRESS>
    Register with which suffix:           Primary only
    WINS servers configured through DHCP: None

Check if you can ping the router gateway in WSL:
$ ping -c1 <IP_ADDRESS>
PING <IP_ADDRESS> (<IP_ADDRESS>) 56(84) bytes of data.
64 bytes from <IP_ADDRESS>: icmp_seq=1 ttl=63 time=2.49 ms

--- <IP_ADDRESS> ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 2.487/2.487/2.487/0.000 ms

(optionally) Check the content of /etc/resolv.conf. You will see a description there:
$ cat /etc/resolv.conf
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:
# [network]
# generateResolvConf = false
nameserver <IP_ADDRESS>

Create /etc/wsl.conf in WSL:
$ cat /etc/wsl.conf
[network]
generateResolvConf = false

In Powershell:
wsl --shutdown

In WSL:
sudo bash -c 'echo "nameserver <IP_ADDRESS>" > /etc/resolv.conf'

Works even after the system reboot, no chattr is required.
However, the reason why this issue happened is still unclear.

OS Version: 10.0.16299 Build: 16299 Ubuntu 18.04 from microsoft store
After PC reboot i open Ubuntu from the start menu, and trying to ping google.kz (using bash), getting an error:
ping: google.kz: Temporary failure in name resolution

Then i check:
cat /etc/resolv.conf

File not found. Not using any VPN, just windows defender and malwarebytes (i've tried to turn it off, but no result). I guess WSL is having trouble launching some auto scripts to create resolv.conf?

i was also havibg same issue, here,s how i have fixed
open windows powershell as admin and type the following
netsh advfirewall set allprofiles state off
then press enter
restart
hope it helps

OS Version: 10.0.16299 Build: 16299 Ubuntu 18.04 from microsoft store
After PC reboot i open Ubuntu from the start menu, and trying to ping google.kz (using bash), getting an error:
ping: google.kz: Temporary failure in name resolution

Then i check:
cat /etc/resolv.conf

File not found. Not using any VPN, just windows defender and malwarebytes (i've tried to turn it off, but no result). I guess WSL is having trouble launching some auto scripts to create resolv.conf?

i was also having same issue, here's how i have fixed
open windows PowerShell as admin and type the following
netsh advfirewall set allprofiles state off
then press enter
restart
hope it helps

OS Version: 10.0.16299 Build: 16299 Ubuntu 18.04 from microsoft store
After PC reboot i open Ubuntu from the start menu, and trying to ping google.kz (using bash), getting an error:
ping: google.kz: Temporary failure in name resolution

Then i check:
cat /etc/resolv.conf

File not found. Not using any VPN, just windows defender and malwarebytes (i've tried to turn it off, but no result). I guess WSL is having trouble launching some auto scripts to create resolv.conf?

i was also having same issue, here's how i have fixed
open windows PowerShell as admin and type the following
netsh advfirewall set allprofiles state off
then press enter
restart
hope it helps

What are the security risks of doing that?

Looks like it's disabling your windows firewall. Wouldn't recommend

OS Version: 10.0.16299 Build: 16299 Ubuntu 18.04 from microsoft store
After PC reboot i open Ubuntu from the start menu, and trying to ping google.kz (using bash), getting an error:
ping: google.kz: Temporary failure in name resolution

Then i check:
cat /etc/resolv.conf

File not found. Not using any VPN, just windows defender and malwarebytes (i've tried to turn it off, but no result). I guess WSL is having trouble launching some auto scripts to create resolv.conf?

i was also having same issue, here's how i have fixed open windows PowerShell as admin and type the following
netsh advfirewall set allprofiles state off
then press enter restart hope it helps

What are the security risks of doing that?

He shouldn't disable firewall. Instead he should use linux in vm

OS Version: 10.0.16299 Build: 16299 Ubuntu 18.04 from microsoft store
After PC reboot i open Ubuntu from the start menu, and trying to ping google.kz (using bash), getting an error:
ping: google.kz: Temporary failure in name resolution

Then i check:
cat /etc/resolv.conf

File not found. Not using any VPN, just windows defender and malwarebytes (i've tried to turn it off, but no result). I guess WSL is having trouble launching some auto scripts to create resolv.conf?

i was also having same issue, here's how i have fixed open windows PowerShell as admin and type the following
netsh advfirewall set allprofiles state off
then press enter restart hope it helps

What are the security risks of doing that?

There are major security ricks of doing that so it's not recommended but what I would recommend is using using linux on vm. Fell free to contact me for any errors or anything.....

I tried many things but it didn't solve my problems.
Changing nameserver to <IP_ADDRESS> or <IP_ADDRESS> can't solve the problem.
Also tried wsl --shutdown and enter again.
Tried turn stopping and start the LsxxManager service.
$ ping <IP_ADDRESS>
PING <IP_ADDRESS> (<IP_ADDRESS>) 56(84) bytes of data.
64 bytes from <IP_ADDRESS>: icmp_seq=1 ttl=115 time=15.7 ms
$ ping google.com
ping: google.com: Temporary failure in name resolution
composer diagnose or sudo apt update
can't connect to repo
BUT, i have 2 distro installed. One for ubuntu 20.04 and the other one is for ubuntu 22.04.
ubuntu 20 never has this problem, but for ubuntu 22, it will occasionally starting the problem of connectivity, especially i notice, it will have problem (not really sure, cross fingers) when restarting computer due to windows update
the thing is, distro 1 actually has this in /etc/resolv.conf
nameserver <IP_ADDRESS>
so i change my config file to the same nameserver, and boom. problem solve
as
$ composer diagnose
Checking http connectivity to packagist: OK
while changing it back to
nameserver <IP_ADDRESS>
$ composer diagnose

I changed nameserver in /etc/resolv.conf using IP i found from public dns, replacing the usual google dns <IP_ADDRESS> or <IP_ADDRESS>
No need to restart wsl or computer.
To test the connection can simply run
$ composer diagnose
or
$ sudo apt update
or
ping reknown domain
$ ping google.com
Note: I notice this problem happens sometimes after restarting computer due to windows update (cross finger)

@bayangan
You may still have issues after that so use your Default Gateway (by default <IP_ADDRESS>) in /etc/resolv.conf instead of Google public DNS or any other public DNS.

I've tried it but it needs to be changed after every restart, however I was able to fix it by:
opening the windows PowerShell as admin and typing the following
netsh advfirewall set allprofiles state off
then pressing enter
restarting
But there are major security ricks of doing that so it's not recommended but what I would recommend is using using linux on vm instead.....

Nothing helped. I deleted wsl and now i can't even open google. I just don't have internet connection. Please help

Still with the same issue. Somehow network between the host and the VM is broken after some actions. With me happens always when I need to connect to any VPN. Just after vpn connection everything works fine. When I disconnect from the vpn wsl vm can't access the internet anymore. I have tried all those commands to restart the windows network stack, wsl vm reboot, restart the wsl system service. Nothing works at all, except a windows reboot. This is really unfortunate. I hope that you guys figure this out in the near future. I would hate to miss the integrated experience of using WSL (and turn to an VM) because of this...

Hi folks, we have put out a new update that aims to address networking issues in WSL. In your .wslconfig file you can set experimental.networkingMode=mirrored, as well as some other key settings that should improve your network compatibility, and add support for IPv6! Please try them out and let us know what you think.
More info on this release and the changes can be found here in the blog post.
Please note: You need to be on a Windows Insiders version to use the new networking settings (Any channel of Windows Insiders will do, including release preview). If you see the "These are not supported" messages it means that your current Windows version doesn't have support, and you will need to upgrade. These features will eventually be coming to Windows 11 22H2.
Please see megathread for DNS issues in WSL: #8365

Hi ! Please try the latest networking features that we've added in WSL. Those should greatly improve compatibility with VPN's.
If the issue still remains, please reopen this issue.


[TACHYON-1294] mWorkerAddress in MasterWorkerInfo.java should be private

[TACHYON-1294] mWorkerAddress in MasterWorkerInfo.java should be private
https://tachyon.atlassian.net/browse/TACHYON-1294

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Tachyon-Pull-Request-Builder/6774/
Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Tachyon-Pull-Request-Builder/6777/
Test FAILed.


Add the ability to specify an OU upon Domain Join

Hi @PrahlM93, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla.microsoft.com.

TTYL, MSBOT;

@PrahlM93, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.
Thanks, MSBOT;

@tysonjhayes Any other suggestions?

Nothing that needs to be handled in this PR, I'd like to see the verb-noun changed for everything but that's out of scope for this. :grin:
Looks good to me though, thanks!

@TravisEz13 @KarolKaczmarek either one of you able to lend a hand by merging this so I can close out #6 ?

@tysonjhayes, is there any news on whether or not this will be merged?

@tysonjhayes I too would like for this to get merged.  Surprised this was not included initially.

Sorry about the delay here guys. This is now merged in.


Configurable statement merging in Wikibase extension

Fixes #3383. Fixes #2116. Fixes #4130.
Changes proposed in this pull request:

[x] introduce backend-side capabilities for configurable statement merging
[x] add a dialog to expose this feature in the frontend
[x] add support for more datatypes for lax value matching
[x] update constraint checks to react well to deleted statements
[x] update statement rendering to visually distinguish between added and removed statements
[x] add user and dev documentation

The UI is arguably quite ugly and I welcome any suggestions to make it nicer.
Schema editor view

Statement configuration dialog

Hi @antoine2711, I would be curious to know what you think of this! Is the UI intuitive enough, for instance?

Hi @wetneb : This is a good start!

So, it's a first way to implement it. I guess the first downside I would see is that if there is existing statements in WD, the my OR project might have line with item with qualifiers and some without, so I would have to push 2 times, one with property-value and one with property-value-qualifier. That logic is also true with property and property-value.
The second problem is to take this decision, I must know in advance if a qualifier already exist in WD. And, if I can query value thru OR, I can't query qualifiers, and as such, I would have to create a query in WDQS, import it in a new project, and get the qualifiers data thru a well made cross() call.
Is it a usefull comment? What should I discuss more?
Regards,
Antoine

Thanks!

if there is existing statements in WD, the my OR project might have line with item with qualifiers and some without, so I would have to push 2 times, one with property-value and one with property-value-qualifier

I am not sure I understand the problem. Why cannot you push just once, with the property-value setting? Just to be clear, with the property-value strategy there is nothing preventing you from pushing qualifiers in your statements (they will be added to the matching statement on Wikidata, just like QuickStatements does).

I can't query qualifiers

I know you that it is a popular request to add support for this. Let me ping you on the corresponding issue to highlight the design questions there.

Merging for the sake of letting people try it out via the snapshot releases. The feature can be revisited once we have more feedback.


unable to find vcvarsall.bat

win7 64,vs2010,vs2008,pycharm,python3.5
python3 -m pip install lets_be_rational
i got the swig.exe -python -outdir lets_be_rational -o ....
error: unable to find vcvarsall.bat
then i download source code from GitHub,
python3 setup.py build , i got the same error
how to fix ????

So far neither we (the project sponsors) nor any contributors have worked on support for Python 3.  That is one request we’ve had, though, so it’s queued up in our “TODO” list.

On Jan 17, 2017, at 9:22 PM, tony21248772<EMAIL_ADDRESS>wrote:
win7 64,vs2010,vs2008,pycharm,python3.5
python3 -m pip install lets_be_rational
i got the swig.exe -python -outdir lets_be_rational -o ....
error: unable to find vcvarsall.bat
then i download source code from GitHub,
python3 setup.py build , i got the same error
how to fix ????
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/vollib/vollib/issues/4, or mute the thread https://github.com/notifications/unsubscribe-auth/AKgQPL1yq0RVCt4BvAiqAJosKqAukqI9ks5rTLJqgaJpZM4LllN8.


Variable escapes to the heap when passed to sync/atomic function

What version of Go are you using (go version)?

% go version
go version devel +33e5da48d5 Wed Apr 17 00:05:41 2019 +0000 darwin/amd64

Does this issue reproduce with the latest release?
yes
What did you do?
package main

import (
        "sync/atomic"
)

// counter holds an atomically incrementing counter.
type counter uint64

func (c *counter) get() uint64 {
        return atomic.LoadUint64((*uint64)(c))
}
func (c *counter) inc() uint64 {
        return atomic.AddUint64((*uint64)(c), 1)
}
func (c *counter) reset() uint64 {
        return atomic.SwapUint64((*uint64)(c), 0)
}

func f() uint64 {
        var c counter
        c.inc()
        c.get()
        return c.reset()
}

func main() {
        f()
}

What did you expect to see?
c does not escape the scope of f()
What did you see instead?
./counter.go:10:7: leaking param: c
./counter.go:13:7: leaking param: c
./counter.go:16:7: leaking param: c
./counter.go:21:6: moved to heap: c
./counter.go:28:3: moved to heap: c

We could fix this by annotating those functions as non-escaping.
Why is this an issue, though? There's no reason to be using atomic operations on the stack. That memory is not accessible by more than one thread. If anything, maybe this issue should be "replace sync/atomic operations on stack variables with regular loads and stores"? (Kinda half joking, but the motivation here escapes me.)
Is there a library or something that is using these operations, that you want to call using the address of a stack object? It's unclear to me from your example what that might be.

@randall77 thanks for your reply. This was an example intended to show to myself that mid stack inlining and atomic intrinsics reduce the final output of counter.inc (for example) to a locked xaddq. The only weird thing was the call to newobject to push c onto the heap. But you're right that theres no value in using atomics on stack variables; as you highlight, the memory is not shared with another thread.
Taking a trip through sync/atomic and runtime/internal/atomic it's a sea of forwarding assembly and annotations on functions that are overridden by intrinsics. Perhaps the fix is to add no escape to the Load* variants in runtime/internal/atomic/atomic_amd64x.go (maybe others)?

Dup of https://github.com/golang/go/issues/31509 ?

Dup of #31509 ?

That's this one.

The routines in runtime/internal/atomic are already marked as noescape. I think to fix this we'd need noescape annotations in sync/atomic/doc.go. Those are the declarations used by escape analysis when using sync/atomic.
I'd still like to see a real-world case where this would be worth fixing.

Duplicate of #16241.


how can I get the link fields on backend?

when I post link with endpoint, how can I get the link fields on backend? (PHP)
i means "methods"

I found that the request is made like this:
https://localhost:8080/endpoint?url=<encoded-url>
so it is a query parameter:
In express:
app.get('/endpoint', (req, res) => {
  const urlToFetch = req.query.url;
  //Do your logic and send data
})

hello, please i'm having trouble the "" data

If the question is still relevant, open the new issue.


Babylon.js glyphs font

Design Solution

We need to create a font containing the glyphs we will use for GUI icons for both the new inspector and as general glyphs that can be used with Babylon.js
Design a new family of icons that represent that are representative of actions to increase usibility of UX as well as serve as the basis for an extensible shape language going forward.
OTF file format using the standard alphanumeric keys at first to help with readable code. Using unicode characters is an extra step of using an app to display the glyph and then copy/pasting it into the code which will look like an empty rectangle.
Create a key sheet that can be downloaded for reference.

Have you guys considered relying on a subset of MDL2, like the Fabric one, instead of creating custom glyphs?

We've looked through the MDL2 sets of icons and there are many we will likely use, but there is a whole class of icons that aren't covered by MDL2 which are necessary for our icon sets like mesh, material, bone, light, etc. We will need to add icons to the set as I'm not a fan of repurposing icons that were initially designed for something else but kind of fit for what we need because we may be changing the meaning of the icon which can disrupt continuity.
I've run into this in the past with 3D creation tools as Microsoft doesn't have a large library of products dealing with 3D creation concepts so many times we are left without iconography solutions for the more technical parts of the field.

That's unfortunate but totally get it. It would be a great chance to try to bring these new glyphs into MDL2 and try to standardized what you guys end up creating 👍
In my team, SharePoint Spaces, we're also are going to try to introduce some custom glyphs for our authoring flow. We should sync on this :)

Closing as we are cleaning "old" issues. Feel free to re-open if still needed.

Closing as we are cleaning "old" issues. Feel free to re-open if still needed.


Deleted reference to Sustain Academic Working group

Removed the sentence.

Technically the academic working group is still going! :) I would keep it.


Inspector: Handle PBR colors as colors in linear space

I have updated Color3LineComponent and Color4LineComponent with a isLinear property that indicates that the color is in linear space (if not present or false, it is in sRGB/gamma space).
All colors / color manipulation in the class are handled in gamma space, that's why there is in the constructor:
        if (props.isLinear) {
            this.state.color.toGammaSpaceToRef(this.state.color);
        }

The only exception is that this.props.target[this.props.propertyName] is maintained in the right space, meaning linear space if isLinear is true and gamma space else.
The purpose is to have a coherent GUI: everything displayed in the GUI is in the same space and it is the gamma space, even for the R/G/B input parameters that you can change manually:

If you put 0.5 / 0.5 / 0.5 there, you will get 127/127/127 in the color palette:

If the color is linear internally, you will get the linear values only in two ways:

by clicking on the clipboard icon next to the color
by clicking on Generate replay code in the Tools pane

as those are the two ways to get the values defined in the inspector.
Maybe we should show in some way that a color in the inspector is a linear color internally and so one should take care with the r/g/b values that are displayed in the GUI (and notably they should not be used "as is")?
I have updated the PBR color properties to use this new isLinear property.

Adding @PatrickRyanMS and @bghgary to validate the concept

The initial issue is here: https://github.com/BabylonJS/Babylon.js/issues/7678

Related: #7143

Lets wait on @PatrickRyanMS final say and merge it in :-)

So I've been thinking about this since yesterday and I have questions I can't resolve myself. First I agree that seeing a gamma space color picker while choosing linear values causes some confusion. When I pick this color on the slider, am I really picking a gamma color or a linear color? Are they doing the conversion for me when the value gets back to the inspector? But there is a question going the other way as well: If I pick 127, 127, 127 on this gamma picker, why am I getting 0.5, 0.5, 0.5 in a property I know is linear like roughness? Should I expect the value in the inspector to be in linear space particularly since I saw a gamma space color picker?
But I think the scenario that makes me more nervous is the idea that when I am entering values manually in the inspector in a linear property like roughness, if I enter 0.5, 0.5, 0.5 because that's the linear value I want, are we doing a conversion as though it's a gamma value? When @Popov72 mentions that the only way to get linear values is through the copy button or the replay feature, it implies to me that we aren't communicating that the inspector is using gamma values even though the input may be a linear input.
Am I thinking this through correctly, or am I missing something obvious?

@Popov72 I let you answer those :-) and I ll merge once all good and clear with @PatrickRyanMS

@PatrickRyanMS You are totally right in what you are saying.
I'm going to try to be clearer:
Current problem with the inspector and linear color values

https://playground.babylonjs.com/#RGFQ9J
I have set the emissive color to green=0.5. You can see that the sphere is brighter than the color displayed in the inspector / in the color picker. To be sure, I have taken a screenshot and looked for the green value of the sphere and for the small rectangle showing the emissive color:

g=184 for the sphere -> corresponds roughly to a g=0.5 after gamma correction, meaning: (0.5^(1/2.2))*255 ~186
g=125 for the small rectangle -> corresponds roughly to 0.5*255

The problem is that this is a linear color, and when displayed on a monitor it should be gamma corrected to match the final output (which apply gamma correction to the final computed pixels).
=> I think we agree about this state of things?
How to correct the problem

When the inspector must deal with a linear color, it should gamma encode it before displaying it, to counter the gamma decoding performed by the monitor and to show the real color as it should be.
There's no way around that because the user is dealing with colors (using a color picker) through a monitor which does gamma decoding no matter what: the user is doing implicitely a gamma encoding to counter this effect so that the color he is choosing is the one he really wants. To rephrase it: whenever you deal with colors through a color picker, you are working in gamma encoded space.
So, when the final property is a linear color, the inspector must transform it from gamma space to linear space before storing it into the material and from linear to gamma space before displaying it.
If not for the raw r/g/b values and the "Copy to clipboard" feature, then it would be easy: everything is transparent for the user. He is dealing with gamma encoded colors through the color picker, but it doesn't matter as the inspector is doing the necessary conversions in the background, without the user being aware of it, and without the user having a need to know it. When clicking on "Generate replay code", the right values are generated and he can copy/paste the generated code directly in his program.
Problem with raw r/g/b values and "Copy to clipboard" feature
These are the two problems:

r/g/b values are displayeds as raw numbers, and raw numbers have no implicit color space. Here we can choose to display linear encoded values or gamma encoded values. I had chosen gamma encoded values to be consistent with the color picker: the values you see in the r/g/b input fields are the same than the ones you see in the color picker widget (save for the 255 multiplier):

However, if the user is copying those values instead of the ones generated by "Generate replay code" and pasting them in his program, then the color will be wrong!
"Copy to clipboard" feature. It's the same problem than above, to be consistent it generates a "#RRGGBB" triplet based on gamma encoded values. So, if using those values in a Babylon program, the color won't be ok.

So, given all this, should we have the r/g/b input fields + "Copy to clipboard" feature generate gamma or linear encoded values?
Maybe it would be safer to generate linear values in case the user would directly copy them? But then he may wonder why there's no adequacy between the r/g/b raw values he is entering and the values displayed by the color picker... That's why I suggested that maybe we could display the property name in another color (or something else), to show it is a linear color and not a regular color, and that would be a hint for the user that something is different here...

So @bghgary and I went through this all today and he reminded me that we followed the glTF spec on linear values for emissive and albedo factors, which is opposite of what we expect with textures, which are assumed to be in gamma space. This becomes an issue because if I am working with gamma values and need to assign a factor, I will have gamma data to start with. So basically the best practice would be to declare your factors like this:
   mat.emissiveColor = new BABYLON.Color3(0,0.5,0).toLinearSpace();
That way we can pass gamma values that we will likely be getting from pickers or texture packages. Of course, unless you know you are working with linear values and know what those colors are, but there are very few places you can go to to see linear color without effort, so I believe most people will be working with gamma values.
For the other issue about what color space the values in the inspector copy with the copy value button, I would fall on the side of copying gamma values because we don't know where the user is going to paste the color. For example, the image below shows the pickers from Chrome and Edge (which obviously match) and then what happens when I used the copy value button and pasted the value into a photoshop color picker. It matches what the other color pickers show which is what I think we should do.

Now for the replay code, I would suggest that we use the color3.toLinearSpace() method like the example above rather than converting to the actual linear values which will help the user understand that the values are indeed in gamma space while still passing the correct values to the engine. Does this make sense?

Thanks for your answer!
So, if I understand it well, the current implementation is ok as the raw r/g/b values and the "Copy to clipboard" feature give the color in gamma space?
The only one thing remaining is:

Now for the replay code, I would suggest that we use the color3.toLinearSpace()

That's what I intended to do today, as I do also think it will make things clearer for the user!

So, if I understand it well, the current implementation is ok as the raw r/g/b values and the "Copy to clipboard" feature give the color in gamma space?

My mistake: "Copy to clipboard" was in linear space, going to change that as well.

The changes have been performed:

"Copy to clipboard" now works in gamma space
"Replay code" adds a ".toLinearSpace()" when the color is linear

To sum up, there are in fact only a few changes to handle a linear color:

the color from the material property is transformed to gamma space before being handled by the inspector
the color is tranformed back to linear space before being stored in the property material
.toLinearSpace() is added in the replay code

That's all.

@PatrickRyanMS let me know if it works for you so I merge it before releasing our next npm THX

@Popov72, it sounds like your plan is going to work well and thank you for adding the extra effort for the replay code. @sebavan it feels like this is the right path so I would go ahead and merge when it's ready. Thanks!

@Popov72 one tiny conflict on the merge and good to go :-)

Conflict should be resolved now.


Allow for forging Enums directly through ModelForge.build

Description
Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion, Recursion
How to test / reproduce
Just do it
Review checklist

[x] PR is split into meaningful commits for the ease of reviewing
[x] Description contains clear instructions on how to test the feature (where applicable)
[x] Tests have been written
[x] Appropriate labels have been applied

Codecov Report

Merging #96 (08d962f) into main (3ce2525) will decrease coverage by 3.3%.
The diff coverage is 83.8%.

@@            Coverage Diff            @@
##              main     #96     +/-   ##
=========================================
- Coverage     91.8%   88.4%   -3.4%
+ Complexity      56      55      -1
=========================================
  Files           16      16
  Lines          111     113      +2
  Branches        18      19      +1
=========================================
- Hits           102     100      -2
- Misses           5       6      +1
- Partials         4       7      +3


Having trouble compiling the project in Mac OS

I would like to know if I need a special instruction for the solution to compile in MacOS.  I want to compile and run the build locally but it seems the solution is Windows dependent.

Can you give him some help? @sowu880

The tool is cross platform, you can use dotnet [command] in mac terminal or run it on visual studio (MacOS).
If still meet issue, you can upload more details about your running environment, command line and error screen snapshot for more help. @jmarti326

@jmarti326 did feedback provided work for you? If not, you can provide additional details from previous comment.


feat(concerto): update concerto dependencies

Closes #

Changes

update concerto depepndencies

Screenshots or Video

Related Issues

Issue #
Pull Request #

Author Checklist

[x] Ensure you provide a DCO sign-off for your commits using the --signoff option of git commit.
[ ] Vital features and changes captured in unit and/or integration tests
[ ] Commits messages follow AP format
[ ] Extend the documentation, if necessary
[ ] Merging to main from fork:branchname

Pull Request Test Coverage Report for Build<PHONE_NUMBER>9
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>9:
0.0%

Covered Lines:
264

Relevant Lines:
264

💛  - Coveralls


After merging, branch is compared with itself instead of nearest single parent

Hello!
Consider the following branch structure (also available as screenshot ):
* 36f7689        (master) master stuff
| *   ada5e4c    (HEAD -> release/1.0) Merge branch 'feature/one' into release/1.0
| |\
| | * 950e362    (feature/one) one
| |/
| * fc556a4      1.0
|/
* 313299f        add script
* c48d34f        init

Expected behavior:
When running plugin from ada5e4c * release/1.0 branch expected hash should be commit 313299f * add script
Actual behavior:
Suggest commit 950e362 * one

It's a bit hard to write generic plugin for this and the current one seem to be good as this is possible.
For anyone having similar issue I would recommend passing hashes manually, probably by taking them from CI merge request variables


Feat/faucet

Description
Add faucet to allow users request HMT tokens for testnets
Summary of changes
Add backend and frontend support for the faucet
Related issues
#262

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


Add equal_nan to CloseColumnsTransformer

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

Project coverage is 100.00%. Comparing base (1af575d) to head (d233a7c).
Report is 15 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #364   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           51        51
  Lines         1339      1344    +5
  Branches        52        53    +1
=========================================
+ Hits          1339      1344    +5

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


Deduplicate scenario data

Previously a scenario had all the default data, plus it's custom data. This made a very large and repetitive multimocks.js file (around 7MB for our app and counting). The suggested was of splitting the multimocks file would have resulted in 124 files, which seems excessive. I could have done a lazy load the right mock file based on query param type of thing but assumed that would cause race conditions with Angular loading too fast.
By merging default with selected on the client side we can significantly reduce the size of the mock data (down to 1.1mb for us).
This could potentially slow load of the client if there are a lot of requests to mock, as it's not a particularly efficient merge, however I'm pretty sure for most cases downloading a ~7MB file would be slower. There's also a bug in the current merge function https://github.com/wongatech/angular-multimocks/blob/master/tasks/multimocksGenerator.js#L27 should be:
 return resource.scenario.uri + resource.scenario.httpMethod;
I'm happy to put the original way back and make it configurable (and change the template a bit so the client side knows about it) as I realise I made a fairly big assumption that you'd want this, but it's easier to explain by having a diff :-)
I had trouble running the tests due to old versions of Karma/Phantom so updated them. Also don't have Grunt installed globally so just added a couple of wrapper npm commands.
Hope you like!

Wow! Thanks for the PR.
I have pulled your code down and tried to run tests but I am having an issue with JSHint with your changes. I know that you didn't change anything to do with JSHint, I think that its just that the version has been bumped as some point.
This is the issue:
https://github.com/jshint/jshint/issues/2922
I tried adding an empty reporterOutput option and it fixes the issue, can you please add that to your PR.
jshint: {
     ...
      options: {
        jshintrc: '.jshintrc'
        reporterOutput: ''
      }
    },

I ran into that too, have you run npm update? I bumped the grunt-contrib-jshint version to 1.1.0 which pulls down jshint 2.9.4
If you've got those versions and still having issues I'll add the extra reporter option :-)

Hey!
I did a fresh install from a Ubuntu VM and had the JSHint issue so please add that fix in.
After the install I did get the version you said above but still had the issue.

Added, I must have something lying around that's making it work, my bad.

Hmm maybe its and ubuntu/npm thing. Travis didn't seem to have the problem either.

Very strange, if it helps I'm on El Capitan with node 6.9.1 and npm 3.10.3


⚠ Samsung has degraded performance

In deeacc7, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2430 ms

Resolved: Samsung performance has improved in a6d0310.


feat(cloudsql): add support for SSL certificates

This commit adds support for configuring SSL certificates for Postgres
and MySQL.

FYI I've had to try a few different approaches on copying certificates that may or may not exist. The Go code is unchanged.
Now, I've added a certs directory to avoid any complex Dockerfile commands. This seems like the cleanest approach.

@codyoss I've requested another review. There's no nice way to copy files that may or may not be present (e.g., optionally configured certificates) in Docker. I've opted for a simple approach of making a directory with a .gitkeep file, but that's required an update to the bad files test. PTAL.


feat(#2080): Adding icontheme to Chip

Before (the change)
No way to change the theme of the leadingicon in the Chip component
After (the change)
icontheme property exists for Chip component, that modifies the theme of the icon included in leadingicon.
This can be tested with the following code:
Angular
<goa-chip leadingicon="checkmark-circle" icontheme="filled" content="Chip text"></goa-chip>
<goa-chip leadingicon="checkmark-circle" content="Chip text"></goa-chip>

React
<GoAChip leadingIcon="checkmark-circle" content="Chip text"></GoAChip>
<GoAChip
  leadingIcon="checkmark-circle"
  iconTheme="filled"
  content="Chip text"
  error
></GoAChip>

Make sure that you've checked the boxes below before you submit the PR

[x] I have read and followed the setup steps
[x] I have created necessary unit tests
[x] I have tested the functionality in both React and Angular.

sharp and filled look similar. Is this how it is supposed to be?

:tada: This PR is included in version 1.17.0-alpha.100 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 4.17.0-alpha.38 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 3.0.0-alpha.5 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Properly avoid readline crashes when running specs on Windows

What was the end-user problem that led to this PR?
The problem was that specs cannot be run on windows unless you add the ugly workaround currently included in the azure pipelines config.
What was your diagnosis of the problem?
My diagnosis was that the tmp/tmpdir and tmp/home folder (which act as ENV["HOME"] and ENV["TMPDIR"] for our specs) are emptied in an around(:each) hook, but there's some stuff going before that and after ENV["HOME"] and ENV["TMPDIR"] are set (on a before(:suite) hook) that might require the folders they point to to exist.
This is the case of rb-readline, used on Windows:
https://github.com/ConnorAtherton/rb-readline/blob/9fba246073f78831b7c7129c76cc07d8476a8892/lib/rbreadline.rb#L1096
or any bundler's code that uses Bundler.user_home:
https://github.com/bundler/bundler/blob/f83412ae8cda9c933b8cf33ec2abfb78a408daab/lib/bundler.rb#L227
For example, running rm -rf tmp/ && bin/rspec ./spec/other/major_deprecation_spec.rb:368 prints a warning about this that it's fixed by this PR:
$ rm -rf tmp/ && bin/rspec ./spec/other/major_deprecation_spec.rb:368

Randomized with seed 1955

(... stuff ...)

`/home/deivid/Code/bundler/tmp/1/home` is not a directory.
Bundler will use `/tmp/bundler/home/deivid' as your home directory temporarily.
.

Retried examples: 0

Finished in 5.26 seconds (files took 0.17927 seconds to load)
1 example, 0 failures

Randomized with seed 1955

What is your fix for the problem, implemented in this PR?
My fix is to create the folders as soon as the environment variables are set.
Why did you choose this fix out of the possible options?
I chose this fix because it's more general that a workaround living on a specific CI config.
Fixes #6902.

@bundlerbot merge


[workload] Finish with failure on admission check rejection.

What type of PR is this?
/kind feature

What this PR does / why we need it:
Finish the workload with failure if any of its admission checks is marked as Rejected.
Which issue(s) this PR fixes:

Relates to  #1136
Special notes for your reviewer:
Does this PR introduce a user-facing change?

Finish the workload with failure if any of its admission checks is marked as Rejected.

/cc @tenzen-y
/cc @alculquicondor
/cc @mwielgus
/cc @mimowo

/assign @mwielgus

/release-note-edit
NONE

Since this is a follow up to #1045.


examples/provisioning/wifi_prov_mgr build error (IDFGH-7822)

Environment

Module or chip used: ESP32-C3-DevKitM-1
IDF version: v5.0-dev-4037-g9b8c558e63
Build System: idf.py
Compiler version: riscv32-esp-elf-gcc (crosstool-NG esp-2022r1-RC1) 11.2.0
Operating System: Linux
Power Supply: USB

Problem Description
Just run "idf.py build", the wifi_prov_mgr build failed with below error:
In file included from /home/axel/esp/esp-idf/components/mbedtls/mbedtls/library/common.h:27,
from /home/axel/esp/esp-idf/components/mbedtls/mbedtls/library/asn1parse.c:20:
/home/axel/esp/esp-idf/components/mbedtls/port/include/mbedtls/esp_config.h:29:10: fatal error: mbedtls/mbedtls_config.h: No such file or directory
29 | #include "mbedtls/mbedtls_config.h"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Oops, sorry that I forgot to check out the submodule when switch to master tree.


more explicit error message when no suitable ufs is found

I've encountered this error message when testing S3 as ufs.
A typical error is "java.lang.NoSuchMethodError:  org.jets3t.service.impl.rest.httpclient.RestS3Service"
but e.getMessage() only returns the later part, that's confusing when I first encounter the error, I don't know what's wrong with this class.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/Tachyon-Pull-Request-Builder/3208/
Test PASSed.

+1 LGTM


Support for suppressing fields from the CLI --help message

In stdlib argparse you are able to set the help message to argparse.SUPPRESS to hide the entry from the generated --help output.
Would it be possible to support this in pydantic-settings as well?
It seems to work, if you add a
if help==SUPPRESS:
  pass
elif ...

here https://github.com/pydantic/pydantic-settings/blob/main/pydantic_settings/sources.py#L1885
and setting the field description to argparse.SUPPRESS

@kschwab Please take a look when you have time.

@Geo5, I presume just like argparse this should be applied on a per field setting? e.g.:
class Settings(BaseSettings):
    field: CliSuppress[int] = Field(description='Hide this field from help')

This is not hard to add, I can put up a PR if the above looks reasonable. Obviously, "field" still gets parsed at the CLI and is only hidden from CLI --help text.

Yes exactly, it is only hidden from CLI --help, but still gets parsed.
Do i understand the library correctly, that if this would be added via a type parameter (e.g. CliSuppress) it would not be possible to set this dynamically at runtime?
The use case is, that i sometime want to show/hide some options depending on the environment (windows/linux, installed somewhere or not, etc), which with arparse would be something like:
parser.add_argument("--foo", help=argparse.SUPPRESS if platform=="linux" else "This is the foo argument")

That's a great point. I added support for both in #436. e.g.:
class Settings(BaseSettings, use_attribute_docstrings=True):
    field: CliSuppress[int]
    """Hide this field from help"""

    foo: int = Field(description=CLI_SUPPRESS if platform=="linux" else "This is the foo argument")

Looks great, thank you!


[Insight] Symfony secret should be changed

The secret is the default one from the Symfony Standard Edition

Posted from SensioLabsInsight

What do you mean with this issue?
Symfony SE is just a bootstrap project which you should customize for yourself


编译时gflags报错：Some (but not all) targets in this export set were already defined.

CMake Error at /usr/local/lib/cmake/gflags/gflags-nonamespace-targets.cmake:37 (message):
Some (but not all) targets in this export set were already defined.
Targets Defined: gflags_nothreads_static
Targets not yet defined: gflags_static

third_party: gflags
#FetchContent_Declare(gflags
URL      https://github.com/gflags/gflags/archive/v2.2.1.zip
URL_HASH SHA256=4e44b69e709c826734dbbbd5208f61888a2faf63f239d73d8ba0011b2dccc97a
#)
#FetchContent_MakeAvailable(gflags)
find_package(gflags REQUIRED)
find_package(gflags COMPONENTS nothreads_static)


OnlineKeyphraseVectorizer

Hi!
Thank you for the great project, it does wonders for the interpretability of the topics!
I noticed there doesn't seem to be an Online version, similar to OnlineCounterVectorizer, right? I think it might be a great addition, to allow use in news streams, etc.

Added online/incremental updates with the v0.0.12 release.


Adds more mocked tests

A follow-up to https://github.com/containers/youki/pull/706

Codecov Report

Merging #711 (61280cf) into main (b162cf5) will increase coverage by 1.83%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #711      +/-   ##
==========================================
+ Coverage   68.92%   70.76%   +1.83%
==========================================
  Files          98       84      -14
  Lines       11107    11144      +37
==========================================
+ Hits         7656     7886     +230
+ Misses       3451     3258     -193

I think this is the better PR, I will try to annotate it in the near future


Modify the UI of 'Reset Password' screen

Fixes #325
Changes:

Changes background to standard iOS color
Added constraints

Screenshots for the change:

Before
After

@arundhati24 @Akshat-Jain Please review

@arundhati24 Made the requested changes. Smaller Reset Password button will not look so I keep it wider.


DOC: Add more details how to install LAPACK on macOS

Additional information
This PR adds more details and help macOS users how to get SciPy installed with LAPACK/OpenBLAS provided by Homebrew. The documentation did not go into detail before what are the required commands, making SciPy source recompile installation, often needed on OSX,  inaccessible for developers who do not have senior expertise on UNIX C library internals and life cycle.
Note that this is not definitive answer to how the installation should be done. There were no clear instructions and I came up with the method based on trial and error by digging through various issue reports to get SciPy installed on Python 3.10. I kindly ask authors on the guidance if it is not supposed to be this difficult.
I did not notice the required commit message format until after the PR was created. Sorry 🙏

@miohtama a ping on this, are you planning to update this PR?

Hi @miohtama - let us know if you need help finishing this off. Thanks!

This PR is outdated and using Homebrew's OpenBLAS is now covered under "System dependencies" on http://scipy.github.io/devdocs/building/index.html, so I will close this now. Thanks all.


Null check operator used on a null value when running an UserCommand or a ChatCommand

Describe the bug
When running an UserCommand or a ChatCommand an un handled exception is triggered on a null check operator used on a null value.
To Reproduce
// avatar command
import 'dart:io';

import 'package:http/http.dart';
import 'package:nyxx/nyxx.dart';
import 'package:nyxx_commands/nyxx_commands.dart';

UserCommand avatarCommand = UserCommand(
    'avatar',
    id('avatar', (UserContext context) async {
      User user = context.targetUser;

      Uri avatarUrl = user.avatar.url;

      Response? response;

      try {
        response = await get(avatarUrl);
      } catch (ex) {
        await context.respond(
            MessageBuilder(
                content:
                    'An issue happened while fetching the avatar for user ${user.username}.'),
            level: ResponseLevel.private);
        return;
      }

      if (response.statusCode != HttpStatus.ok) {
        await context.respond(
            MessageBuilder(
                content:
                    'An issue happened while fetching the avatar for user ${user.username}.'
                    'Status code: ${response.statusCode}'
                    'Response: ${response.body}'),
            level: ResponseLevel.private);
        return;
      }

      await context.respond(
          MessageBuilder(
              content: 'Avatar for user ${user.username}:',
              attachments: [
                AttachmentBuilder(
                    data: response.bodyBytes,
                    fileName: avatarUrl.pathSegments.last)
              ]),
          level: ResponseLevel.public);
    }));

// client

Future<void> main(List<String> arguments) async {
  CommandsPlugin commandsPlugin = CommandsPlugin(prefix: mentionOr((_) => '§'));

  commandsPlugin.addCommand(avatarCommand);

  var client = await Nyxx.connectGateway(
      '',
      GatewayIntents.messageContent |
          GatewayIntents.directMessages |
          GatewayIntents.all,
      options: GatewayClientOptions(plugins: [commandsPlugin, logging]));

Expected behavior
No exception should occur since the command execute under the 3 seconds theresold
Screenshots
Desktop (please complete the following information):

OS: MacOS 14 / Uubntu 22.04
Dart version 3.4.4 stable
Nyxx version
nyxx: ^6.2.1
nyxx_commands: ^6.0.2
nyxx_extensions: ^4.1.0

Additional context
Stacktrace :
[2024-07-06 10:04:53.348667] [INFO] [Nyxx] Connecting to the Gateway API
[2024-07-06 10:04:54.021023] [INFO] [Nyxx.Gateway] Connecting 1/1 shards
[2024-07-06 10:04:54.225853] [INFO] [Nyxx.Shards[0]] Connecting to Gateway
[2024-07-06 10:04:54.286923] [INFO] [Commands] Synced 3 commands to Discord
[2024-07-06 10:04:54.477115] [INFO] [Nyxx.Shards[0]] Connected to Gateway
Unhandled exception:
Null check operator used on a null value
#0      MessageManager.parseMessageInteractionMetadata (package:nyxx/src/http/managers/message_manager.dart:327:45)
#1      maybeParse (package:nyxx/src/utils/parsing_helpers.dart:17:15)
#2      MessageManager.parse (package:nyxx/src/http/managers/message_manager.dart:84:28)
#3      Gateway.parseMessageCreate (package:nyxx/src/gateway/gateway.dart:810:7)
#4      Gateway.parseDispatchEvent (package:nyxx/src/gateway/gateway.dart:286:31)
#5      Gateway.events. (package:nyxx/src/gateway/gateway.dart:82:27)

#6      _AsBroadcastStreamController.add (dart:async/broadcast_stream_controller.dart:469:3)

Already known, there's a fix ij


preprocess new data

If i have a new textual data and i want to apply relation extration on it i first need to convert it to appropriate json file how can i preprocess it to appropriate json file so that i can apply document relation extraction

Hi @anas2908 , thanks for the comment, and sorry for the late reply.
The format of data used in this project originates from this project. Please convert your data to the same format as described here.
I hope this is clear and helpful.


Add raw_header.

so managed to get the d_val now. may need to expose some more stuff.
Closes #275

@philipc what do you think about the proposed addition?

@philipc what do you think about the proposed addition?


Adding an FAQ / About page

Best place for this is in the footer. For example, like the agreement page.
I would add this, but I can't figure out where these /help pages are coming from. Where is the agreement content coming from?

The routing for this is here, what it does is loads a wikipage from the "owner" account
https://github.com/notabugio/notabug/blob/master/src/Routing/paths.js#L13
So https://notabug.io/help/contentpolicy is equivalent to:
https://notabug.io/user/CEyKrDd1xyPXpWSV00MgvnZY2VJLHXgzCvhMeDwKTYA.yjSq0DyXzzhB_ZXr_DzfJgij3tXU0-3t0Q5bJAtZpj8/pages/contentpolicy
You can create pages like this with an identity (note these count against rate limit like a post and edits count in full)
Or if you just want to post your markdown as a issue here I can add it as a page on the notabug.io account

# Frequently Asked Questions

## Technology

### Am I automatically seeding data when I land on NAB website?

No, notabug.io is never going to direct-connect you to other peers (via webrtc) without explicit informed consent and this isn't supported yet anyway.

### What's the difference between different NAB server instances? Can I run my own NAB server?

The protocol is not as rigid as something like a blockchain. Peers can differ in as many ways as you could imagine. Right now there are no known operating public peers. This is because the server software is not yet stable or easy to get running but it is technically possible, though synchronization of old content is not yet a solved problem. Aiming to release 1.0 of nab-server by December and this is still looking realistic.

## Usage

### Can I create my own /t/ community?

`/t/`'s are called topics and are more like tags, and I like to think of them as always existing. There is no separate creation step. [Spaces](https://notabug.io/user/CEyKrDd1xyPXpWSV00MgvnZY2VJLHXgzCvhMeDwKTYA.yjSq0DyXzzhB_ZXr_DzfJgij3tXU0-3t0Q5bJAtZpj8/spaces/spaces) are still in early development, but they are what allow curation from the open-ended topics.

### If I create my own Space, can I moderate the content?

TODO

### If I make a user account, will I get notified of replies to my comments?

There are no notifications or orangered's yet, but this is planned. You get an inbox that live updates like the rest of the site, it just doesn't keep track of what has been read yet or attempt to notify you

### Can content be deleted?

Yes content can be deleted by peers, you can edit content you write while logged in but there is no specific delete. Anon content is immutable.

### Is the chat public and globally readable?

TODO


Update Composer dependencies (2021-10-10-00-09)

Visual regression test passed!
View the visual regression test report


List updated fields on task in comment history (Lale-bot) and also send out in task mailer as merge var

We will leverage the existing "comments" functionality to also display status changes of tasks/supplies as outlined in #298. But when a user changes a specific value on a task, we need to have 'the Lale system' post comments about the exact changed fields in the existing comments thread as follows:

Comment content:

comma-separated list of all changes fields + "has changed."
Ex: "Title, Due Date and Number of required Helpers has changed."

Also, the same string of changed field names must be passed to the task mailer class as a merge variable for the task_change mailing.

This should be similar to concepts in other systems, such as Trello for example:

This will be also used by @phillipoertel  in #216 to display which task a new task was cloned from.

The mailer merge variable is TASK_CHANGES. It contains a string with the changed field(s) localized to the recipient's language. Examples: "Name und Beschreibung", "name and description".
Implemented (lale bot comment and mail merge var) and deployed to staging.

@dottorer should I do the auto comments for supplies as well? So far, all lale bot comments are only implemented for tasks.

If not too much effort, would be good to get it consistent. How much effort would it be?

@phillipoertel looking great in app.

It seems to not detect changes to location or task organizer.
When changing task organizer can we email the old and the new organizer?

Changing things like tipos might be too chatty when send emails to everyone. Could we have a clean and friendly message "You have changed xxx, yyy and zzz. Do you want to notify the interested helpers about this change?" And only the send out email? Let me know what you think @phillipoertel

@phillipoertel Tested mail merge variable, upgrade EN, DE and FR mailchimp templates. Looks good.

@dottorer we could place a checkbox "send notifications" next to the save button on the task form, checked by default. That would be a technically simple, non-intrusive way to solve the problem. If we do the modal, it will require two clicks on every save.

I'm happy to add the sweet alert gem though, we'll need it in other places anyways.

Third option: have two buttons for saving (comparable to the Github commenting buttons):
[Save] [Save (without sending notifications)]

the checkbox is a good solution...let's go with that for now. But I think we need to differentiate it from the rest of the update field by thin line or something as it is only guidance field, not a stored value.
And of course we want the sweet alert ;-)

What's left to do:

also create a comment when the location or organizer changes; currently changes there aren't picked up
@dottorer has decided on the "two buttons" solution for update notifications; i.e. have one button with [Save] and the other [Save and notify] below the task. This still needs to be implemented.

Tracking changes on location, organizers (and volunteers) is implemented and on staging.
Will implement the "two buttons" solution next (tomorrow).

@dottorer "two buttons" solution is done, completing this story. Testable on staging!
Let me know if you would like to colorize the buttons differently.

@phillipoertel tested in STG - working well.
Styling of button we can consider with the new layout of the task with the sourcing options...


[v3] Update to twig v2

PR for #337
Incomplete migration, fixing only twig errors encountered by unit tests.

Seems to be working.


Empty String for variables

Hello,
I wonder why an empty string for the variable's field (in the JSON request) is not handled as a null value?
It would allow the StandardServer to be used with the chrome's plugin "Graphiql Feen".
For example, the JSON request made by "Graphiql Feen" is
{"query":"query {\n  billPerYear {\n    id\n  }\n}\n","variables":""}

And the response is:
{"errors":[{"message":"GraphQL Request parameter \u0022variables\u0022 must be object or JSON string parsed to object, but got (empty string)","category":"request"}]}

Did i missunderstood something?
I can make the change if needed.
Thanks.

I've fixed it just by additional check like:
if (empty($variables)) {
	$variables = null;
}

But yes, it would be great to fix this in library code.

@timur560 I am using StandardServer with the PSR-7 method, so I fixed it this way

      if (strtoupper($request->getMethod()) == "GET") {
        $params = $request->getQueryParams();
        $params["variables"] = empty($params["variables"]) ? null : $params["variables"];
        $request = $request->withQueryParams($params);
      } else {
         $params = $request->getParsedBody();
         $params["variables"] = empty($params["variables"]) ? null : $params["variables"];
         $request = $request->withParsedBody($params);
      }

But it feels so hacky :(
By the way, thanks for your help :)

Yeah, it makes sense. Fixed in master, will release 0.10.2 with a fix in couple minutes


Create code to determine if a lat/long point is within distance of a rectangle of coordinates

Story

I should have an algorithm that determines whether or not a latitude/longitude rect (4 lat/long pairs) is within n distance of a give lat/long pair

Acceptance Criteria

In any language, or pseudo code, create a function that is given the following arguments:

origin

An array of 2 floats

rect

An array of 4 arrays, each of 2 floats

maxDistance

A float in number of feet or yards

It should take the above arguments and return true if the distance of origin and the rect is < maxDistance, and false if vice versa.

@SamMc27 @rouge888 Sprint due Tuesday 3/28

@SamMc27 @dreagle95 look at Ruiqan's PR, specifically the VB file. Let me know what you think

@raghunat I'm pretty sure the coordinates should be passed as parameters to the function rather than the function asking for user input.  I'm unfamiliar with visual basic so I may be reading it wrong, but it looks like the function is asking for user input for latitude and longitude coordinates.

@rouge888 include instructions to run

@rouge888 Up

Calc.zip
This is the application for this code


Include Blobs.Cryptography in ApiCompat.csproj once it is GA'ed

https://dev.azure.com/azure-sdk/internal/_wiki/wikis/internal.wiki/126/API-Compatibility-Verification-.NET
Steps to include Blobs.Cryptography:
Update eng/ApiCompat/ApiCompat.csproj to include package references for the Blobs.Cryptography library.
Update eng/Packages.Data.props to include the current versions of the packages.
Remove EnableApiCompat param (or set to true) from Blobs.Cryptography csproj file.

We chose to not release Blobs.Cryptography, and instead include crypto in the main Blobs package.


some error has happened when build OpenBLAS

hey,when I try to install OpenBLAS,but some problem has happened.The details as bellow:
when execute the command 'make install',the error message as follows:
getarch_2nd.c: In function ‘main’:
getarch_2nd.c:22:35: error: ‘SGEMM_DEFAULT_UNROLL_M’ undeclared (first use in this function); did you mean ‘SBGEMM_DEFAULT_UNROLL_M’?
printf("SGEMM_UNROLL_M=%d\n", SGEMM_DEFAULT_UNROLL_M);
^~~~~~~~~~~~~~~~~~~~~~
SBGEMM_DEFAULT_UNROLL_M
getarch_2nd.c:22:35: note: each undeclared identifier is reported only once for each function it appears in
getarch_2nd.c:23:35: error: ‘SGEMM_DEFAULT_UNROLL_N’ undeclared (first use in this function); did you mean ‘SBGEMM_DEFAULT_UNROLL_N’?
printf("SGEMM_UNROLL_N=%d\n", SGEMM_DEFAULT_UNROLL_N);
^~~~~~~~~~~~~~~~~~~~~~
SBGEMM_DEFAULT_UNROLL_N
getarch_2nd.c:24:35: error: ‘DGEMM_DEFAULT_UNROLL_M’ undeclared (first use in this function); did you mean ‘XGEMM_DEFAULT_UNROLL_M’?
printf("DGEMM_UNROLL_M=%d\n", DGEMM_DEFAULT_UNROLL_M);
^~~~~~~~~~~~~~~~~~~~~~
XGEMM_DEFAULT_UNROLL_M
getarch_2nd.c:25:35: error: ‘DGEMM_DEFAULT_UNROLL_N’ undeclared (first use in this function); did you mean ‘XGEMM_DEFAULT_UNROLL_N’?
printf("DGEMM_UNROLL_N=%d\n", DGEMM_DEFAULT_UNROLL_N);
^~~~~~~~~~~~~~~~~~~~~~
XGEMM_DEFAULT_UNROLL_N
getarch_2nd.c:29:35: error: ‘CGEMM_DEFAULT_UNROLL_M’ undeclared (first use in this function); did you mean ‘XGEMM_DEFAULT_UNROLL_M’?
printf("CGEMM_UNROLL_M=%d\n", CGEMM_DEFAULT_UNROLL_M);
^~~~~~~~~~~~~~~~~~~~~~
XGEMM_DEFAULT_UNROLL_M
getarch_2nd.c:30:35: error: ‘CGEMM_DEFAULT_UNROLL_N’ undeclared (first use in this function); did you mean ‘XGEMM_DEFAULT_UNROLL_N’?
printf("CGEMM_UNROLL_N=%d\n", CGEMM_DEFAULT_UNROLL_N);
^~~~~~~~~~~~~~~~~~~~~~
XGEMM_DEFAULT_UNROLL_N
getarch_2nd.c:31:35: error: ‘ZGEMM_DEFAULT_UNROLL_M’ undeclared (first use in this function); did you mean ‘XGEMM_DEFAULT_UNROLL_M’?
printf("ZGEMM_UNROLL_M=%d\n", ZGEMM_DEFAULT_UNROLL_M);
^~~~~~~~~~~~~~~~~~~~~~
XGEMM_DEFAULT_UNROLL_M
getarch_2nd.c:32:35: error: ‘ZGEMM_DEFAULT_UNROLL_N’ undeclared (first use in this function); did you mean ‘XGEMM_DEFAULT_UNROLL_N’?
printf("ZGEMM_UNROLL_N=%d\n", ZGEMM_DEFAULT_UNROLL_N);
^~~~~~~~~~~~~~~~~~~~~~
XGEMM_DEFAULT_UNROLL_N
getarch_2nd.c:79:50: error: ‘SGEMM_DEFAULT_Q’ undeclared (first use in this function); did you mean ‘SBGEMM_DEFAULT_Q’?
printf("#define SLOCAL_BUFFER_SIZE\t%ld\n", (SGEMM_DEFAULT_Q * SGEMM_DEFAULT_UNROLL_N * 4 * 1 *  sizeof(float)));
^~~~~~~~~~~~~~~
SBGEMM_DEFAULT_Q
getarch_2nd.c:80:50: error: ‘DGEMM_DEFAULT_Q’ undeclared (first use in this function); did you mean ‘SBGEMM_DEFAULT_Q’?
printf("#define DLOCAL_BUFFER_SIZE\t%ld\n", (DGEMM_DEFAULT_Q * DGEMM_DEFAULT_UNROLL_N * 2 * 1 *  sizeof(double)));
^~~~~~~~~~~~~~~
SBGEMM_DEFAULT_Q
getarch_2nd.c:81:50: error: ‘CGEMM_DEFAULT_Q’ undeclared (first use in this function); did you mean ‘SBGEMM_DEFAULT_Q’?
printf("#define CLOCAL_BUFFER_SIZE\t%ld\n", (CGEMM_DEFAULT_Q * CGEMM_DEFAULT_UNROLL_N * 4 * 2 *  sizeof(float)));
^~~~~~~~~~~~~~~
SBGEMM_DEFAULT_Q
getarch_2nd.c:82:50: error: ‘ZGEMM_DEFAULT_Q’ undeclared (first use in this function); did you mean ‘SBGEMM_DEFAULT_Q’?
printf("#define ZLOCAL_BUFFER_SIZE\t%ld\n", (ZGEMM_DEFAULT_Q * ZGEMM_DEFAULT_UNROLL_N * 2 * 2 *  sizeof(double)));
^~~~~~~~~~~~~~~
SBGEMM_DEFAULT_Q
make: *** [Makefile.prebuild:106: getarch_2nd] Error 1
The detailed configuration are as follows：

The build system does not recognize the "fake" cpu id generated by qemu - you probably used the TARGET= option when you ran make before the make install ? Please repeat it and any other build options on the make install line.

I tried the command "make TARGET=GENERIC" and " make clean && make TARGET=NEHALEM"，but not solve the problem。Is that means this cpu is not fit the OpenBLAS?

"make clean && make TARGET=NEHALEM" should work, followed by "make TARGET=NEHALEM install"

Did you get it working ? I can only assume that you missed the make clean after the first attempt, as it should build fine when you supply a target cpu name instead of relying on autodetection

i met simular error when trying to config for colmap by vcpkg, i guess it's something to do with :
CMake Error at cmake/prebuild.cmake:1429 (MESSAGE):
  Compiling getarch_2nd failed Change Dir:
  '/home/lz/Codes/vcpkg/buildtrees/openblas/x64-linux-dbg/getarch2_build/CMakeFiles/CMakeTmp'

I attached the log file as follows:

@martin-frbg the build for openblas is trigered attomatically by vcpkg, and can easily reperformed (at least in my env) through vcpkg install openblas
i can confirm that the dir and config.h is existed, and can be accessed, at least when i instect into, after the break. the config.h is as follows. and i'm hosting in a x64-linux targeting for x64-linux:
cat /home/lz/Codes/vcpkg/buildtrees/openblas/x64-linux-rel/getarch2_build/config.h
#define OS_LINUX        1
#define ARCH_X86_64     1
#define C_GCC   1
#define __64BIT__       1
#define FUNDERSCORE
#define BUNDERSCORE _
#define NEEDBUNDERSCORE 1
#define INTEL_UNKNOWN
#define L1_CODE_SIZE 65536
#define L1_CODE_ASSOCIATIVE 16
#define L1_CODE_LINESIZE 64
#define L1_DATA_SIZE 49152
#define L1_DATA_ASSOCIATIVE 12
#define L1_DATA_LINESIZE 64
#define L2_SIZE 2097152
#define L2_ASSOCIATIVE 7
#define L2_LINESIZE 64
#define DTB_DEFAULT_ENTRIES 32
#define HAVE_CMOV
#define HAVE_MMX
#define HAVE_SSE
#define HAVE_SSE2
#define HAVE_SSE3
#define HAVE_SSSE3
#define HAVE_SSE4_1
#define HAVE_SSE4_2
#define HAVE_AVX
#define HAVE_AVX2
#define HAVE_FMA3
#define HAVE_CFLUSH
#define NUM_SHAREDCACHE 2
#define NUM_CORES 16
#define CORE_HASWELL
#define CHAR_CORENAME "HASWELL"

Let me know if you think i should raise a new issue.

The #define INTEL_UNKNOWN is the problem - strange as getarch clearly managed to recognize it as CORE_HASWELL. Probably a wrong or missing entry in cpuid_x86.c - what is your actual cpu model please ?

CPU CPU  Intel(R) Core(TM) Ultra 7 155H, and hosted in WSL2,

Ah that's unfortunate - I've got the same "Meteor Lake" cpu and added its cpuid in #4783, but that fix for cpu detection was released only in 0.3.28 while you are trying to build 0.3.27. You can either upgrade to 0.3.28 or copy the file cpuid_x86.c from the "Code" page here on github.

Ah that's unfortunate - I've got the same "Meteor Lake" cpu and added its cpuid in #4783, but that fix for cpu detection was released only in 0.3.28 while you are trying to build 0.3.27. You can either upgrade to 0.3.28 or copy the file cpuid_x86.c from the "Code" page here on github.

Cool! I'm using vcpkg which has the latest version of 0.3.27, not sure who is maintaining the port. I'll use cmake fetch contents for now.


Validating environment variables values from dynamic fields.

Kubernetes allow users to get container's environment variables values from other resource field. The fields  always refer to Pod fields, not high level resources (e.g. Deployment):
Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.

From: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.22/#envvarsource-v1-core
For example, using the following deployment:
apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment
  labels:
    app: nginx
spec:
  replicas: 1
  selector:
    matchLabels:
      app: template-nginx
  template:
    metadata:
      labels:
        app: template-nginx
    spec:
      containers:
      - name: nginx
        image: nginx:1.14.2
        ports:
        - containerPort: 80
        env:
          - name: test
            valueFrom:
              fieldRef:
                fieldPath: "metadata.name"

As described in the docs, the pod running in the cluster have the environment variable test with the Pod name not the Deployment name:
kubectl exec nginx-deployment-bf4589c7f-kmw8p -- env | grep test
test=nginx-deployment-bf4589c7f-kmw8p

As Kubewarden is in the process of implementing audit checks calling the same function used to validate the resource in creation time by faking a create request. This can be a problem in the near future for this policy. If the audit checks load high level resources pod/container (e.g. like defined in the PodTemplateSpec) data from the running pod/container, the policy can start reporting issue in the resources. Because some of this fields are dynamic. Like the pod name.
Therefore, we need to find a workaround for this. Maybe disabling background checks.

This is originated from this comment thread

As I've said in this PR comment. This will not be implemented right now


Error in line 49 in FF 3.6.13

Hi Marcus,
Line 49 in Store.js
49	if (localStorageName in win && win[localStorageName]) {
crashes with "Security error code: 1000" if the following option is set in About:Config
dom.storage.enabled : false
Specifically, it is the segment
win[localStorageName]
that causes this to barf.
So we need a more reliable way to test for this.

isLocalStorageSupported = function () {
        var testKey = 'test',
            storage = window.sessionStorage;
        try {
            storage.setItem(testKey, 'testValue');
            storage.removeItem(testKey);
            return true;
        } catch (error) {
            return false;
        }
    }

this code snippet will be better


https causing issues with iiif

After ingesting a large tiff open seadragon shows a 500 error.
First time visiting a site that implements an insecure https request will cause the media to load within Open Seadragon.
Quick solution: is to go directly to https://islandora-isle-dc.12-34-56-78.traefik.me/cantaloupe/iiif/2 and accept the warning. This should probably be addressed, there is no obvious/simple indicator to the developer/user as to why the failure is happening.

This is a case of a simple insecure ssl cert resulting in the browser blocking the content until you except the warning. To address this either a create a way the build triggers the warning, fix the cert, or add it to the documentation.

I as wrong about the workaround (sorta). You will need a fully qualified url. The URL to trigger the request needs to be a full IIIF request. Example: https://islandora-isle-dc.12-34-56-78.traefik.me/cantaloupe/iiif/2/http%3A%2F%2Fislandora-isle-dc-12-34-56-78.traefik.me%2Fsites%2Fdefault%2Ffiles%2F2020-07%2F1005-Service%2520File.jpg

I can verify this issue, and I used the full URL you mentioned. And then I found another issue which is related - to use that fully qualified domain, the certs have to hold up. Some Ubuntu and Alpine distros require the fullchain.pem to allow CURL to work, so I issued a PR: https://github.com/Islandora-Devops/isle-dc/pull/103

@DonRichards https://github.com/Islandora-Devops/isle-dc/pull/103 has landed.  Does this solve the issue entirely?  Or just get rid of the warning from your browser?

@dannylamb going to test ASAP


Solis sensor 3.8.0

Things done
Bump to latest upstream version (3.8.0 and adds nix-update-script so the package can get updated with:
nix-shell maintainers/scripts/update.nix --argstr package home-assistant-custom-components.solis-sensor

Built on platform(s)

[x] 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

[x] 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
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
25.05 Release Notes (or backporting 24.11 and 25.05 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

[x] Fits CONTRIBUTING.md.

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

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 366858

x86_64-linux

:white_check_mark: 1 package built:

home-assistant-custom-components.solis-sensor


windows build fix, part 1, stdint

Hi!
I slightly improved the test for stdint to limit it to windows only
Also libcouchbase needs a check for stdint in configure as well and fall back to manually defined types if not present.
There are other builds issues left (testing with VC9 + SDK 6.1, used by PHP builds) related to the socket error codes.

Added the missing E* too


ERROR showing up while installing python Extension .

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version:  1.56.2 (User Setup)
OS Version: Win 10

Every thing was working ok until last couple of days.
I was trying to debug , it shows an ERROR that python Extension needs to install ( which was installed  ), I try to install it again, it also shows an ERROR as shown in the Image :

Dear,
I think I solved the problem by the following :
I tried first to install as shown in the image by clicking on install it shows Error then pop message try downloading  manually , which I tried, download .vsix  but also failed.
Then I tried to launch VSCode by itself  and do the same steps it works now.