An example of reading a dataset from pyspark

Includes three commits:

Simpler way of getting a unischema from a dataset by url
Remove ._common_metadata.crc file, so a locally created dataset is readable by spark
A hello world example : using pyspark to read from a dataset.

Codecov Report

Merging #128 into master will increase coverage by 0.09%.
The diff coverage is 91.66%.

@@            Coverage Diff             @@
##           master     #128      +/-   ##
==========================================
+ Coverage   81.18%   81.28%   +0.09%
==========================================
  Files          51       52       +1
  Lines        2674     2693      +19
  Branches      391      392       +1
==========================================
+ Hits         2171     2189      +18
- Misses        439      440       +1
  Partials       64       64

Impacted Files
Coverage Δ

examples/hello_world/pyspark_hello_world.py
100% <100%> (ø)

...o_world/tests/test_generate_hello_world_dataset.py
95.65% <100%> (+0.65%)
:arrow_up:

petastorm/spark_utils.py
93.75% <66.66%> (-0.7%)
:arrow_down:

petastorm/utils.py
84.09% <88.88%> (+1.23%)
:arrow_up:

Continue to review full report at Codecov.

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


Cannot use .length() after filter expression

Hello,
maybe I am just writing wrong expression, but when using this json:
{    ...   "tasks": [     {        ...       "runners": ["one"]     }   ] }
and this expression:
$.tasks[*].runners[?(@ empty false)].length()
it evaluates to array with null (which is I suppose the count of fields the "one" has)
Is this a bug, or should I use some different expression?
Thank you.

I used size() instead of length().  It worked.

I used size() instead of length().  It worked.

Hello I tried it, but unfortunatelly i it does not work

Hello I tried it, but unfortunatelly i it does not work

Maybe the expression as<EMAIL_ADDRESS>empty false)].runners.length() can work?

That does not work to achieve a given goal either, I receive "[1]" The 1 is a count of elements that "runners" array contains.

Jaon-path design flaw

It's really a problem, I'd like to fix it in a week

@agilehorse
Hi, I post a pull request(834) and hope this can solve your problem:-)


[gpu] integrating changes from spark-rapids ; updating tests

gpu/install_gpu_driver.sh

replace add_nonfree_components with add_contrib_components
perform the apt-get update outside of the update function
using OS comparison functions instead of string comparisons
small grammar fix

gpu/test_gpu.py

only testing 11.8 and 12.4 CUDA variants
removed conditional test skips
using g2 machine type and GPU_L4 when testing mig

Manually tested:
❓ 2.2-rocky9 with secure boot DISabled
❓ 2.2-rocky9 with secure boot ENabled
❓ 2.1-rocky8
❓ 2.0-rocky8
❓ 2.2-ubuntu22 with secure boot DISabled
❓ 2.2-ubuntu22 with secure boot ENabled
❓ 2.1-ubuntu20
❓ 2.0-ubuntu18
❓ 2.2-debian12 with secure boot DISabled
❓ 2.2-debian12 with secure boot ENabled
✅ 2.1-debian11
✅ 2.0-debian10

/gcbrun

It looks like 2.2-ubuntu22 is failing to build the 520 driver

/gcbrun

/gcbrun

/gcbrun

/gcbrun

/gcbrun

/gcbrun

Nice.  GPU tests are passing again.  Kind of.  :-)

/gcbrun

/gcbrun

/gcbrun

/gcbrun

/gcbrun

/gcbrun

/gcbrun

/gcbrun

/gcbrun

I'll enable the next test case, which should be the same test case ; the default is to disable the agent.

/gcbrun

/gcbrun

Thanks @nvliyuan ; I've made that change with my latest update

/gcbrun

/gcbrun

/gcbrun

/gcbrun

/gcbrun

/gcbrun

/gcbrun

/gcbrun

/gcbrun

/gcbrun

nice.

Current state on all supported platforms:

Tests which confirm that runs of nvidia-smi succeed now pass
Tests to confirm that GPU monitoring agent installation and health pass
Tests to confirm installation of the full CUDA 11 and 12 stacks now pass
Tests to confirm MIG functionality are disabled
Tests to confirm launching of spark jobs with access to gpu are disabled
Tests are no longer skipped on Rocky
Tests no longer exercise CUDA 10 use cases
Full test suite run is presently disabled in presubmit.sh so that I could make modifications to shared resources while performing only GPU tests.

/gcbrun

Next round of manual tests
✅ 2.1 with CUDA=11.8,12.4
✅ 2.1-ubuntu20 with CUDA=12.4
❓ 2.1-rocky8
❓ 2.0
❓ 2.2

/gcbrun

/gcbrun

/gcbrun

The presubmits passed for this PR
https://pantheon.corp.google.com/cloud-build/builds;region=global/99430aff-44a4-4c60-8f33-e7a1c57b0360?inv=1&invt=AbYWdA&mods=dataproc_env_image_prod&project=cloud-dataproc-ci


RN0.50.4 iOS xcode10编译出错

diff: /Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

请问您是怎么解决的这个问题

@willinzhang  也遇到这个错误了. 怎么解决的?


Add option to make tooltip not automatically go away when hovered

Is your feature request related to a problem? Please describe.
The tooltip automatically goes away when hovered, and then immediately shows itself again, infinitely.
Describe the solution you'd like
Add an option to Tooltip, like so:
Tooltip(
  ...
  hideOnHover: false,
  ...
)

Describe alternatives you've considered
None
Additional context
Record of current state: (tooltip is at top right)
https://user-images.githubusercontent.com/25608913/181230152-e5267256-671e-4dfe-9b8f-ff18c639eb09.mp4

Can you post here a reproducibe snippet of this issue?

Here you go
import 'package:fluent_ui/fluent_ui.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return FluentApp(
      title: 'Flutter Demo',
      home: Align(
        child: Tooltip(
          style: const TooltipThemeData(
            verticalOffset: -1,
          ),
          message: "Issue #443",
          child: Container(
            color: Colors.red,
            width: 32,
            height: 32,
          ),
        ),
      ),
    );
  }
}


executing service com.firebase.jobdispatcher.GooglePlayReceiver

com.firebase.jobdispatcher.GooglePlayReceiver
"main" tid=1 Runnable
"main" prio=5 tid=1 Runnable
| group="main" sCount=0 dsCount=0 obj=0x737a0960 self=0xb8822c78
| sysTid=17779 nice=0 cgrp=default sched=0/0 handle=0xb6f4ab34
| state=R schedstat=( 0 0 0 ) utm=19868 stm=387 core=0 HZ=100
| stack=0xbe28e000-0xbe290000 stackSize=8MB
| held mutexes= "mutator lock"(shared held)
at com.google.android.gms.internal.firebase_database.zziv.getValue (zziv.java)
at com.google.android.gms.internal.firebase_database.zzif.getValue (zzif.java)
at com.google.android.gms.internal.firebase_database.zzif.getValue (zzif.java)
at com.google.android.gms.internal.firebase_database.zzif.getValue (zzif.java)
at com.google.firebase.database.DataSnapshot.getValue (DataSnapshot.java)
at zebpay.Application.deepstream.FirebaseStreamConnection$1$1.onRateChanged (FirebaseStreamConnection.java:123)
at zebpay.Application.home.HomeRateChangeListener.onDataChange (HomeRateChangeListener.java:35)
at com.google.android.gms.internal.firebase_database.zzfc.zza (zzfc.java)
at com.google.android.gms.internal.firebase_database.zzgx.zzdr (zzgx.java)
at com.google.android.gms.internal.firebase_database.zzhd.run (zzhd.java)
at android.os.Handler.handleCallback (Handler.java:739)
at android.os.Handler.dispatchMessage (Handler.java:95)
at android.os.Looper.loop (Looper.java:168)
at android.app.ActivityThread.main (ActivityThread.java:5845)
at java.lang.reflect.Method.invoke! (Native method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:797)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:687)
#########################################################
"ReferenceQueueDaemon" tid=3 Waiting
"ReferenceQueueDaemon" daemon prio=5 tid=3 Waiting
| group="system" sCount=1 dsCount=0 obj=0x32c07100 self=0xb97c3388
| sysTid=17785 nice=0 cgrp=default sched=0/0 handle=0xb435b930
| state=S schedstat=( 0 0 0 ) utm=15 stm=25 core=3 HZ=100
| stack=0xb4259000-0xb425b000 stackSize=1038KB
| held mutexes=
at java.lang.Object.wait! (Native method)
waiting on <0x042d5e35> (a java.lang.Class<java.lang.ref.ReferenceQueue>)
at java.lang.Daemons$ReferenceQueueDaemon.run (Daemons.java:155)
locked <0x042d5e35> (a java.lang.Class<java.lang.ref.ReferenceQueue>)
at java.lang.Thread.run (Thread.java:818)
Step 2: Describe your environment
Android device: almost all the device
Android OS version: all
Google Play Services version: 15.0.2
Firebase/Play Services SDK version:com.firebase:firebase-jobdispatcher:0.8.5
Step 3: Describe the problem:
We used firebase job dispatcher to update the rate in widget an we are fetching rate from firebase only.
We received too many ANRs for this.
Any kind of help is needful.

Hey @samtstern  Any update for this...the ANR rates are getting high day by day

Same here. It was about a week ago when ANR rates started to get higher

Executing service com.energysh.drawshow/com.firebase.jobdispatcher.GooglePlayReceiver
I have encountered the same problem and hope that Google engineers can help, thank you!

I am Also getting same error
11-28 17:17:18.382 935-958/? E/ActivityManager: ANR in com.softagekyc.circuit
PID: 16243
Reason: Executing service com.softagekyc.circuit/com.firebase.jobdispatcher.GooglePlayReceiver
Load: 4.17 / 4.12 / 4.18
CPU usage from 0ms to 5148ms later:
54% 935/system_server: 19% user + 34% kernel / faults: 7918 minor 87 major
10% 1523/com.android.phone: 5% user + 5.6% kernel / faults: 3999 minor 10 major
7.9% 1175/com.android.systemui: 4.2% user + 3.6% kernel / faults: 2388 minor 2 major
0% 326/debuggerd64: 0% user + 0% kernel / faults: 3319 minor 17 major
0.1% 1540/com.quicinc.cne.CNEService: 0.1% user + 0% kernel / faults: 2422 minor 2 major
0% 1559/android.process.media: 0% user + 0% kernel / faults: 2060 minor
0% 1449/com.qualcomm.qcrilmsgtunnel: 0% user + 0% kernel / faults: 2058 minor
0% 1466/com.android.server.telecom: 0% user + 0% kernel / faults: 2531 minor
0% 1484/com.asus.audiowizard: 0% user + 0% kernel / faults: 2230 minor
0% 1504/dk.icepower.icesound: 0% user + 0% kernel / faults: 2230 minor 2 major
0.9% 276/surfaceflinger: 0.3% user + 0.5% kernel / faults: 28 minor 1 major
0.5% 183/mmcqd/0: 0% user + 0.5% kernel
0% 156/cfinteractive: 0% user + 0% kernel
0% 3/ksoftirqd/0: 0% user + 0% kernel
0% 12/ksoftirqd/1: 0% user + 0% kernel
0% 29/kworker/0:1H: 0% user + 0% kernel
0% 34/kworker/u9:0: 0% user + 0% kernel
0% 96/kswapd0: 0% user + 0% kernel
0.1% 688/adbd: 0% user + 0.1% kernel
0.1% 1137/VosRXThread: 0% user + 0.1% kernel
0% 1247/wpa_supplicant: 0% user + 0% kernel
0% 1897/com.google.android.gms.persistent: 0% user + 0% kernel / faults: 1 minor
0% 15052/kworker/u8:4: 0% user + 0% kernel
0.1% 17124/logcat: 0% user + 0.1% kernel
0% 17245/kworker/0:0: 0% user + 0% kernel
26% TOTAL: 11% user + 14% kernel + 1.2% iowait + 0% softirq
CPU usage from 4605ms to 5124ms later:
5.7% 935/system_server: 0% user + 5.7% kernel / faults: 2 minor
3.8% 958/ActivityManager: 0% user + 3.8% kernel
2.4% 276/surfaceflinger: 0% user + 2.4% kernel
1.2% 408/Binder_1: 1.2% user + 0% kernel
1.2% 410/DispSync: 1.2% user + 0% kernel
6.1% TOTAL: 2.3% user + 2.8% kernel + 0.9% iowait

In April 2019 we announced that Firebase Job Dispatcher would be deprecated today, April 7th 2020.  For this reason we are going to close all open issues and archive the repository.  We will also stop supporting FJD for new app installations (such as those targeting sdk versions greater than Android Q).  Existing apps that rely on FJD should continue to function as usual.
While we will no longer work on FJD, we encourage you to migrate to Work Manager which is a superior tool and fully supported by the Android team.
Thank you for taking the time to try the library and provide this feedback.  We sincerely appreciate your effort and we apologize for not addressing it in time.


when using ssh executor provide /etc/fstab as ENV

If ssh executor is used, it also generally means that Gluster is not
containerized. In such instances, we don't have the startup script in
Gluster container which would look at /var/lib/heketi/fstab for bricks.
Hence, this patch changes the HEKETI_FSTAB ENV to /etc/fstab when
sshexec is chosen.
For now, this is sufficient. When and if we want to support ssh access
to Gluster containers, we will have to provide a flag --fstab to let
users decide where the file should reside. Not now.
Signed-off-by: Raghavendra Talur<EMAIL_ADDRESS>

This change is

LGTM

>You also need to edit the kube and ocp template files to take the variables. Currently this does nothing to change the value used when the resources are created.
Thanks! sent in too much of a hurry.
>Also, how does this actually manifest in the container? Wouldn't the /etc/fstab file in the container be destroyed when the container is?
In container , we change the fstab path to /var/lib/heketi/fstab which is bind mounted because the whole of /var/lib/heketi is.
@jarrpa I don't need to change the heketi.json.template , do I?

Also, how does this actually manifest in the container? Wouldn't the /etc/fstab file in the container be destroyed when the container is?
In container , we change the fstab path to /var/lib/heketi/fstab which is bind mounted because the whole of /var/lib/heketi is.

Right. So in this case, we won't be bind mounting anything into the container there, right?

Also, how does this actually manifest in the container? Wouldn't the /etc/fstab file in the container be destroyed when the container is?
In container , we change the fstab path to /var/lib/heketi/fstab which is bind mounted because the whole of /var/lib/heketi is.
Right. So in this case, we won't be bind mounting anything into the container there, right?

I don't understand the question here.
In a setup where gluster is not containerized but heketi is, heketi populates the /etc/fstab file in gluster node thereby ensuring that node reboots mount the bricks.

@jarrpa Also, let me know if you want the patches to be squashed.

I don't get the spellcheck error on my machine that is failing the build here. However, I have sent a patch to make changes as suggested by spellcheck in #352


THRIFT-4243 Fix Go TSimpleServer race on wait in Stop() method

Fixes the synchronization issues in the existing Stop() method, by ensuring no
further Add calls are made to the WaitGroup at shutdown. See
https://issues.apache.org/jira/browse/THRIFT-4243 for discussion.
This also fixes https://issues.apache.org/jira/browse/THRIFT-4240.

Hi @zwass,
It seems one of your recent changes has broken the build. Can you please take a look?
https://travis-ci.org/apache/thrift/builds/249109561
Thanks.

Hi @econner,
I believe the issue is in https://github.com/apache/thrift/pull/1300. I have been trying to get assistance with running the tests locally so I can debug this issue since before it was merged. Any help would be greatly appreciated.


Ethernet: Error frames are often displayed:  eth_mcux: ENET_GetRxFrameSize return: 4001

System version zephyr3.1.0, hardware mimxrt1064_evk, run DHCP routine, PING test is unstable. In addition, after adding socket communication logic, socket communication was unstable and slow. After receiving and sending a few KB of data, the network seemed to be unavailable, and PING failed
The following is the device running log:
uart:~$ *** Booting Zephyr OS build 80711a54377e  ***

[00:00:04.602,050] <inf> net_config: Interface 1 (0x80002350) coming up
[00:00:04.611,267] <inf> eth_mcux: ETH_0 enabled 100M full-duplex mode.
[00:00:04.620,452] <inf> net_config: Running dhcpv4 client...
[00:00:04.686,737] <err> eth_mcux: ENET_GetRxFrameSize return: 4001

[00:00:07.634,460] <inf> net_dhcpv4: Received: <IP_ADDRESS>
[00:00:07.642,730] <inf> net_config: IPv4 address: <IP_ADDRESS>
[00:00:07.651,245] <inf> net_config: Lease time: 172800 seconds
[00:00:07.659,729] <inf> net_config: Subnet: <IP_ADDRESS>
[00:00:07.667,816] <inf> net_config: Router: <IP_ADDRESS>
uart:~$ main,206: This is a test...
main,211: Ethernet connected !
 I ask because I believe that https://github.com/zephyrproject-rtos/zephyr/pull/48752 might have solved this issue

I have the same issue on Zephyr 3.2 and Zephyr 3.3. Is there any progress? Can someone tell me what is triggering the error?

@IbeVdV  @dleach02 I am still experiencing this issue on Zephyr 3.4. Also my ethernet performance is really poor, no matter how I configure the driver.
I've sent a request to nxp for assistance. I'll post here if I found anything out.
Let me know if you have suggestions.

@jameswalmsley-cpi ,
We have not seen this issue, and would like to replicate it.  Are you able to provide the details needed to replicate?  Preferably on an NXP evaluation board.  What sample shows the issue?  Are there any modifications needed to the sample to expose the issue?  Thanks

@DerekSnell I have the mimxrt1064_evk board. I shall try to reproduce on this board.
So far I can build the following (from zephyr/main):
west build -b mimxrt1064_evk zephyr/samples/net/zperf/

zephyr-shell
zperf udp download

linux
iperf -V -u -c fe80::4:9fff:fe39:3ca4%enp0s20f0u1u1

iperf -V -u -c fe80::4:9fff:fe39:3ca4%enp0s20f0u1u1
------------------------------------------------------------
Client connecting to fe80::4:9fff:fe39:3ca4%enp0s20f0u1u1, UDP port 5001
Sending 1450 byte datagrams, IPG target: 11062.62 us (kalman adjust)
UDP buffer size:  208 KByte (default)
------------------------------------------------------------
[  1] local fe80::935:d1d6:7fda:bd83 port 49230 connected with fe80::4:9fff:fe39:3ca4 port 5001
[ ID] Interval       Transfer     Bandwidth
[  1] 0.0000-10.0119 sec  1.25 MBytes  1.05 Mbits/sec
[  1] Sent 906 datagrams
read failed: Connection refused
read failed: Connection refused
read failed: Connection refused

The speed seems very slow. I have tried to change many settings like dtcm, hardware acceleration etc, and I always get a very similar result of 1.05 Mbits/sec. I get the same result on our board too.
I will try to reproduce the GetRxFrameSize issue now.

Hi @jameswalmsley ,
Thanks for sharing this.  We will test it out and see if we find similar results.

@DerekSnell I have created a PR to fix some issues with the driver. Perhaps you can help me get it into shape :)
https://github.com/zephyrproject-rtos/zephyr/pull/60073
The ENET_GetRxFrameSize() errors came from the eth_mcux driver only supporting the REFCLK being generated by the RT1064 (as in the ref-board).
I have added some changes in #60073 to enable the REFCLK as input, and support configuration of both 25MHz / 50MHz crystals on the PHYs.
I've also added other changes to disable cache maintenance in the HAL driver when DTCM is used for all buffers.
Unfortunately I was not able to find the source of the performance issue.

Hi @jameswalmsley ,
It sounds like you resolved the ENET_GetRxFrameSize() errors with the REFCLK changes in your PR https://github.com/zephyrproject-rtos/zephyr/pull/60073.  Since the ENET_GetRxFrameSize() errors were the original problem reported in this Issue, and you are still seeing poor performance, I created a separate Issue https://github.com/zephyrproject-rtos/zephyr/issues/60144 to continue tracking the performance problems.  In case your current PR closes this Issue.  Thanks for all your contributions

Hi @jameswalmsley ,
For some reason, GitHub will not let me @mention you on https://github.com/zephyrproject-rtos/zephyr/issues/60144, but it will let me mention you in this issue.
Based on this comment that resolves the performance issue, does using the latest main resolve your performance issue?

please also try with the new driver

I am also experiencing this issue.. I am using the new NXP "experimental" driver, with a few modifications.
We are running Zephyr 3.6.0 and have an NXP 1176 on a custom board. Also, instead of a PHY we are using the following 5-port managed Ethernet switch from Microchip (KSZ8775CLX, https://ww1.microchip.com/downloads/en/DeviceDoc/00002129C.pdf).
In our architecture, we have the 1176 MAC connected to the SW5 RMII MAC on the switch. So, I removed the PHY initialization piece of the driver (since it is mac-to-mac communication). The Ethernet switch is using an external 25 MHz crystal.
Still getting the following error, and a LOT of dropped packets (in the realm of 20-30% dropped over UDP).
[00:00:04.148,000] <err> eth_nxp_enet_mac: eth_nxp_enet_rx: ENET_GetRxFrameSize return: 4001

One comment / clarification. I did try running my software on the NXP MIMXRT_1170_EVK development board (obviously I had to put the PHY initialization back in the code), and I have absolutely no issues.. I don't drop packets, and I don't get any error messages on the console.
Is there something I am missing in a "MAC-to-MAC" configuration, or do you think I might have a hardware issue?

For anyone reading this, we resolved our issue.
Turns out, the 1176 was driving the 50 MHz ENET REF clock for RMII mode (and, the Microchip switch was also driving the ENET REF clock.. so, we had a contention issue). Once the 1176 IOMUX GPR4 register was configured to accept the REF clock as an input, errors went away and Ethernet is completely functional.

since multiple people who had these errors found that changing the refclk configuration fixes it, I'm going to convert this to an enhancement request to add configurability of the refclk. @jeolwang if you find you have a different issue let us know


Add variable for setting failureDomains on Cluster

Use conditional presence of failureDomain to apply two patches

one to remove cluster and subnet for controlPlane Nutanix machine template
one to add failureDomains from variable

The PR also adds a template-test make target which triggers a test that is used to verify that clusterclass patches have the behaviour we expect. This spins up a kind cluster but is not a e2e test as no real underlying infrastructure resources are created. This is not a unit test either as it doesn't exercise any actual code in CAPX. The PR also adds template-test to the GitHub action to integrate it in CI toolchain.

/retest

/test e2e-k8s-conformance
/test e2e-k8s-upgrade
/test e2e-nutanix-features


[tool] consider making ErrorHandlingFileSystem.deleteIfExists catch system error code ERROR_PATH_NOT_FOUND (3) on Windows

Discovered while investigating https://github.com/flutter/flutter/issues/137168. As of writing this, I believe that resolving this issue is prerequisite to solving that one.
Consider https://github.com/flutter/flutter/issues/137168. The crashing exception here is PathNotFoundException: PathNotFoundException: Deletion failed, path = 'D:\<project dir path>\windows\flutter\ephemeral\.plugin_symlinks' (OS Error: The system cannot find the path specified. , errno = 3). However, if we look at the code that threw this, we notice that it confirms the existence of the directory before it tries to delete it.
https://github.com/flutter/flutter/blob/99c7e9f088569bfedfe609c2260cad8f2bcbcb23/packages/flutter_tools/lib/src/flutter_plugins.dart#L1039-L1042
Barring some more complex bug in the tool or Dart's filesystem abstractions, this strongly suggests that something happened to this directory in the time between the tool checking for its existence and trying to delete it.
While it could be argued that this deleteSync call should be replaced a ErrorHandlingFileSystem.deleteIfExists call, this still would not be sufficient to prevent the crash, because deleteIfExists will still throw if it encounters ERROR_PATH_NOT_FOUND:
https://github.com/flutter/flutter/blob/fda9ecfef76b57ae459675fdf262342a77c2c6ba/packages/flutter_tools/lib/src/base/error_handling_io.dart#L75-L87
Notice that if the error code is not kSystemCannotFindFile, we will rethrow. Here is the definition of this constant:
https://github.com/flutter/flutter/blob/fda9ecfef76b57ae459675fdf262342a77c2c6ba/packages/flutter_tools/lib/src/base/error_handling_io.dart#L24-L26
We should augment deleteIfExists to not rethrow in the presence of ERROR_PATH_NOT_FOUND on Windows.

This isn't an easy fix, because ErrorHandlingFileSystem.deleteIfExists does not know what the OS of the argued FileSystemEntity is, and FileSystemEntity (correctly IMO) does not expose this. The current implementation lucks out on the fact that system code 2 means more or less the same thing on Windows and POSIX file systems. However, this is not the case with code 3. On POSIX systems, 3 corresponds to "no such process."^1 We could proceed with just catching 3 regardless since this error code is (probably?) entirely disjoint from file-system related issues. It would just be a bit of a smelly hack.
I can't think of any "cleaner" ways to solve this. One way would be to modify ErrorHandlingFileSystem.deleteIfExists to have a required FileSystemStyle style parameter, would be annoying and possibly prone to error. Another way would be to ban direct operations on the File and Directory interfaces throughout the flutter tool. Instead, tool code would operate directly only on ErrorHandlingFile and ErrorHandlingDirectory, which would expose deleteIfExists and deleteIfExistsSync on their parent type (would would probably be a new type we introduce).


SHARP_DIST_BASE_URL not working in windows 10

I added the system environment variable SHARP_DIST_BASE_URL in windows 10 and did the npm install but  i am getting the error connect ETimedout <IP_ADDRESS>:443.
I am behind proxy and i self hosted the libvips windows x64 binary in localhost and added that path to the above environment variable
It doesn't look like the install using the variable. Any idea why the variable is not working in windows ?

"connect ETimedout <IP_ADDRESS>:443"

<IP_ADDRESS> belongs to Cloudflare, but this isn't used by sharp so is probably unrelated. Are you able to share the full error log?

"I am behind proxy and i self hosted the libvips windows x64 binary in localhost and added that path to the above environment variable"

What did you set it to? Are there any proxy-related environment variables set that could affect this?

Closing due to a lack of feedback but please re-open with the requested information if the problem persists.


Fix incorrect CLI args for setting CMK encryption

The docs incorrectly used underscores in the CLI parameters instead of dashes.

Learn Build status updates of commit 927aea4:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

articles/batch/batch-customer-managed-key.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

@harperche

Can you review this PR?
IMPORTANT: When this content is ready to merge, you must add #sign-off in a comment or the approval may get overlooked.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@harperche
Thanks for approving the PR. For future PRs, please note that a #sign-off comment is the best way to signal to the review team that a PR is ready to merge.


Fix deletion of page on renaming to current name

Relevant issue: https://github.com/silverbulletmd/silverbullet/issues/49

Nice catch, thanks!


Send notifications of any severity when they are received.

This PR will address https://github.com/edgexfoundry/edgex-go/issues/2328.
In addition (per the ask to revise the docs content accordingly), a PR has been created (https://github.com/edgexfoundry/edgex-docs/pull/88) in the edgex-docs repo, similar to how this has been done in the past (for e.g. per https://github.com/edgexfoundry/edgex-docs/pull/63).

Codecov Report

Merging #2347 into master will increase coverage by 0.22%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2347      +/-   ##
==========================================
+ Coverage   37.46%   37.68%   +0.22%
==========================================
  Files         158      158
  Lines       12848    12847       -1
==========================================
+ Hits         4814     4842      +28
+ Misses       7777     7742      -35
- Partials      257      263       +6

Impacted Files
Coverage Δ

...nternal/support/notifications/rest_notification.go
100% <100%> (+11.35%)
:arrow_up:

internal/security/proxy/certs.go
84.61% <0%> (-7.7%)
:arrow_down:

internal/security/proxy/service.go
72.63% <0%> (-4.73%)
:arrow_down:

.../support/notifications/distribution_coordinator.go
45% <0%> (+45%)
:arrow_up:

...ernal/support/notifications/normal_distribution.go
100% <0%> (+100%)
:arrow_up:

Continue to review full report at Codecov.

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

Rebased

Rebased

Rebased

Rebased

@michaelestrin @tsconn23 - Gents, no rush on this, but if possible, I could use a review on this PR as @AnthonyMBonafide is away this week, thanks!

@akramtexas please provide a set of steps to test.

@akramtexas please provide a set of steps to test.

Tested this by creating a NORMAL notification and confirming that it is now processed immediately. Then proceeded to creating a CRITICAL notification and confirming that it is also processed immediately:
Launch all edgex-go core and support services (except edgex-support-notifications) in Dockerized containers.
Build and launch edgex-support-notifications locally (I do this via running a modified version of edgex-launch.sh that contains the entry for Support Notifications service only).
Drop all DB tables.
Have a terminal showing the running stdout from having launched edgex-support-notifications locally in previous step.
Create a NORMAL notification via following cURL command:

curl --location --request POST 'http://localhost:48060/api/v1/notification' \
--header 'Content-Type: application/json' \
--data-raw '{
  "slug": "notice-test-008",
  "sender": "System Management",
  "category": "SECURITY",
  "severity": "NORMAL",
  "content": "Hello, Notification!",
  "labels": [
    "cool",
    "test"
  ]
}'

In the terminal, the logging for edgex-support-notifications should capture an event corresponding to preceding POST, for example:

level=INFO ts=2020-02-03T17:30:31.922536Z app=edgex-support-notifications source=rest_notification.go:58 msg="Posting Notification: {\"slug\":\"notice-001\",\"sender\":\"System Management\",\"category\":\"HW_HEALTH\",\"severity\":\"NORMAL\",\"content\":\" [ INFO ] Room's temperature is 82 °F\",\"labels\":[\"room\",\"temperature\"]}"

Check that the notifications table in DB contains a new entry for the NORMAL notification.
Create a CRITICAL notification via following cURL command:

curl --location --request POST 'http://localhost:48060/api/v1/notification' \
--header 'Content-Type: application/json' \
--data-raw '{
    "slug": "notice-007",
    "sender": "System Management",
    "category": "HW_HEALTH",
    "severity": "CRITICAL",
    "content": " [ WARNING ] Room'\''s temperature is 103 °F , it'\''s over upper limit 100 °F.",
    "labels": [
      "temperature",
      "humidity"
    ]
}'

In the terminal, the logging for edgex-support-notifications should capture an event corresponding to preceding POST, for example:

level=INFO ts=2020-02-03T17:30:31.969309Z app=edgex-support-notifications source=rest_notification.go:58 msg="Posting Notification: {\"slug\":\"notice-002\",\"sender\":\"System Management\",\"category\":\"HW_HEALTH\",\"severity\":\"CRITICAL\",\"content\":\" [ WARNING ] Room's temperature is 103 °F , it's over upper limit 100 °F.\",\"labels\":[\"room\",\"temperature\"]}"

Check that the notifications table in DB contains a new entry for the CRITICAL notification.

Sample results from running the DEV testing a few minutes ago:

Recheck

@akramtexas with conversion of edgex-go to the new build pipeline, recheck no longer works.

Rebased

Rebased

@akramtexas I'm trying to follow your verification steps, but I'm running into issues:
The POST you provided to make the notification returns 400 response with a body of EOF. I get this logging message from notifications: level=ERROR ts=2020-02-21T17:58:25.276164Z app=edgex-support-notifications source=rest_notification.go:54 msg="Error decoding notification: EOF"
Should I be dropping all Mongo tables AFTER starting the services? Do we need all the services? If we don't need all the services, which subset should I be running locally? If we do need all the services, here's my Docker setup: I'm running the docker-compose file for no-security on the nightly branch. Should I be using a different docker-compose file?
Further, to check whether the data exists, you provided another POST that returns the same error I describe above. Should that be a GET, or am I misunderstanding its purpose?
I don't know anything about the notifications API, so I appreciate extreme detail on what I should be doing to verify this PR.

@brandonforster Sure thing, starting with walking you through the steps 👍

Rebased


Convert disparity to depth maps

Hi,
thanks for sharing the code.
Based on my understanding, the output erp_dispmap_blend of the depth_estimation() function is the disparity maps not the depth map.
If so, how can I convert disparity to depth and store them as pfm.
Thanks.

You could use these two functions:
https://github.com/manurare/360monodepth/blob/7b81bc471b3bcf4c9db4676805fe68b1a5dc5f0d/code/python/src/utility/depthmap_utils.py#L736
https://github.com/manurare/360monodepth/blob/7b81bc471b3bcf4c9db4676805fe68b1a5dc5f0d/code/python/src/utility/depthmap_utils.py#L660


Add click to remove via point functionality

/cc @lbud

@lbud - Click to remove is possible with Leaflet.label plugin
Added here but no results.
Is it been overwritten or am I missing something?

Working


Error: TAR_BAD_ARCHIVE: Unrecognized archive format

Hi, I am trying to run my host application but I get an error when trying to download the dts.tgz file.
Error

Host config

Remote config
devConfig

commonConfig

Scripts

Folders

Hi @Eduardo-Salatiel , thanks for reporting this. How did you create microfrontendTemplate-dts.tgz? It turns out it cannot be unzipped as the error message says TAR_BAD_ARCHIVE. Could you verify if you can manually unzip this file?

Manually I can unzip, I am creating microfrontendTemplate-dts.tgz in the root of the project, I don't know if this is the right place to serve this file and from the remote access it at http://localhost:3001/microfrontTemplate-dts.tgz.

@ruanyl  manually I can unzip, I am creating microfrontendTemplate-dts.tgz in the root of the project, I don't know if this is the right place to serve this file and from the remote access it at http://localhost:3001/microfrontTemplate-dts.tgz.

@Eduardo-Salatiel the screenshot tells the downloaded zip file is saved to
cv-mf-container/types/microfrontendTemplate-dts.tgz

Have you checked that file?

@ruanyl saves it in that directory but cannot be unzipped

@Eduardo-Salatiel as you can see the file is not a valid ARCHIVE and the file content is text which is the html.
You would need to move the *.gz file to the webpack dev-server static folder, which I assume is the public folder as I can see it on the screenshot, please check your dev-server configuration.


How to show an angle mark?

I saw below answer, but I can't understand.
angle.set_fill(GREEN,0.7)
angle.set_stroke(GREEN,4)
What does this angle mean? It comes from arc class?
Please, show me some example what it used?

It comes from VMobject class, see manimlib/mobjext/types/vectorized_mobject.py

Thanks


Add List Packing

Prefix operator to encapsulate a list within a list. In lieu of a better operator, use **. For example:
**(1, 2, 3) == ((1, 2, 3),);

Useful for functions that take one parameter, and that parameter is a list.

Commit: https://github.com/johneastman/boomerang/commit/8ea884c7aea0c045df06ddc908aee454739b3338


Consider adding CreateIfNotExists to ServiceBusAdministrationClient

Currently, we expose the QueueExists/TopicExists/etc methods on the admin client.
The usage pattern is:
  if (!(await client.QueueExistsAsync(queueName)))
  {
      await client.CreateQueueAsync(queueName);
  }

This works fine if there is only ever one application or process that is responsible for creating an entity, but if there are multiple processes that may create an entity, this is inherently racy as the queue might get created between the two method calls, which would result in an exception.
These methods were carried forward from T1 due to the reasoning that there might be other scenarios where you just need to query the existence of an entity without necessarily creating it.
We should consider adding CreateQueueIfNotExists/CreateTopicIfNotExists/etc methods to better support the scenario of idempotent entity creation, similar to other T2 libraries like Storage.

If the race condition you mentioned above does occur would you just throw on the .CreateQueue() call? Or would this method eat the exception or do something special in response if the error indicates the queue is already present?

The way that the method would be implemented would be to just call CreateQueue and catch the 409 exception that is thrown if the queue already exists.

One edge case - a user is calling this method but they've changed the queue definition from what has currently been created. Would their expectation be that it might be updated? Or there'd be some indication that the queue's definition is different than what they passed in to our call?
I'm thinking we're okay because we're calling the method CreateIfNotExist() or similar (ie, not Upsert).

(incidentally - do you think what users are really looking for here is 'upsert')?

One edge case - a user is calling this method but they've changed the queue definition from what has currently been created. Would their expectation be that it might be updated? Or there'd be some indication that the queue's definition is different than what they passed in to our call?
I'm thinking we're okay because we're calling the method CreateIfNotExist() or similar (ie, not Upsert).

Ooh good point. I think the name of the method would make it clear what the semantics are, but it does detract a bit from the idempotence story.

(incidentally - do you think what users are really looking for here is 'upsert')?

I don't think so.

This hasn't moved forward in two years and there doesn't seem to be customer demand.  Closing out for now and we can revisit if we start to see feedback asking for it.


Address Sanitizer reports use of deallocated memory in sendData:

Address Sanitizer intermittently reports use of deallocated memory in sendData:, as invoked by sendNextRequest->reallySendRequest:.
My guess is over-aggressive ARC activity -- the  request is deleted from the requests queue, and then sent.
Ought to be OK, but there are enough async activities floating around to make me wonder.

Hi Kirk,
Thanks very much for the report. I'll take a look at this. Either way, I'd rather not have address sanitizer complaining about anything!

On Aug 12, 2016, at 9:30 AM, kirk-kerekes<EMAIL_ADDRESS>wrote:
Address Sanitizer intermittently reports use of deallocated memory in sendData:, as invoked by sendNextRequest->reallySendRequest:.
My guess is over-aggressive ARC activity -- the request is deleted from the requests queue, and then sent.
Ought to be OK, but there are enough async activities floating around to make me wonder.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

So far I'm unable to reproduce this in the (Objective-C) RequestResponseDemo example project included with ORSSerialPort. Running the app for a while with Address Sanitizer enabled does not result in any flagged errors. @kirk-kerekes: Are you able to provide any further information about reproducing this?

Only that my app is likely more complicated and busier than the example app.

On Dec 12, 2016, at 1:23 PM, Andrew Madsen<EMAIL_ADDRESS>wrote:
So far I'm unable to reproduce this in the (Objective-C) RequestResponseDemo example project included with ORSSerialPort. Running the app for a while with Address Sanitizer enabled does not result in any flagged errors. @kirk-kerekes https://github.com/kirk-kerekes: Are you able to provide any further information about reproducing this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/armadsen/ORSSerialPort/issues/106#issuecomment-266525760, or mute the thread https://github.com/notifications/unsubscribe-auth/ADJZTy3wwrszY94NLfVtb1X0Oq3AxVcmks5rHZ8_gaJpZM4JjMo7.

Closing this due to inability to reproduce it.


Visibility inheritance from Page to Groups (maybe a bug?)

Description
Actually this could be a bug. However I'm not sure about the desired behavrior so for now I set it as "feature request".

In my opinion, if I hide a page by setting an ui-control, I would expect all the child groups for this specifig hidden page were hidden as well. Instead, If I just hide all the pages on my dashboard, then the groups from my homepage are still displayed.
Have you provided an initial effort estimate for this issue?
I have provided an initial effort estimate

This is another example of unusual hierarchical auth missing:

Page 2 is disabled via ui-control:
{
    "pages": {
        "show": [
            "Page 1", "Page 2"
        ],
        "hide": [

        ],
        "enable": [
            "Page 1"
        ],
        "disable": [
            "Page 2"
        ]
    }
}

However, if we go via direct url to /dashboard/page2 (immagine you push the browser back button after you executed a logic in your application that should have disabled the page 2) than going to that page is still possible, and the button (all the widgets) inside page 2 are now enabled.
I think the inheritance of enable/disable state should be the default here

I think the inheritance of enable/disable state should be the default here

Sensible


[Apple Notes] allow to create a note template

Extension
https://www.raycast.com/raycast/apple-notes
Description
ability to allow to set up a template for title and tag (or header and footer) for the New Note command
Who will benefit from this feature?
everyone who likes to create notes in a more organized way
Anything else?
thats it, love you guys

Thanks for the feature request. We'd probably need to create a new command for that as New Note doesn't have any form views for now. Do you want to look into it?

Sure!


Feat: pass session parameters for Snowflake

This PR is to implement the features in this issue:
https://github.com/TobikoData/sqlmesh/issues/2829
Looking at the code it didn't seem like much was missing.
Tried it with this in my config:
session_parameters:
timezone: UTC
query_tag: state_test_tag
Not sure how to test it, but I checked in my query history that the queries are getting tagged.

From what I understand of the code this should get passed straight through to the connector.
https://docs.snowflake.com/en/developer-guide/python-connector/python-connector-connect
This would add support for all session parameters supported by Snowflake.
https://docs.snowflake.com/en/sql-reference/parameters
I see here it passes everything defined in the connection kwarg keys.
https://github.com/TobikoData/sqlmesh/blob/7c1ed838295a898da759e59379cdc361b687a22c/sqlmesh/core/config/connection.py#L90
Then that gets passed to Snowflake's connector function and it takes in session_parameters.
I put in a basic test with the others would that be enough?

@alexischicoinedatadeveloper , thanks a lot for the contribution! Make sure to run make style and this should be good to go.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: alexischicoinedatadeveloper:x: achicoine-coveoYou have signed the CLA already but the status is still pending? Let us recheck it.


Add support for Symfony Flex

Hello,
Since Symfony Flex & Symfony recipes, we have a file symfony.lock which is updated whenever a Symfony-related package is updated.
That would be awesome to commit this file aswell with composer.json and composer.lock, thanks :slightly_smiling_face:

https://twitter.com/Kocal_/status/1027211130203238400

Just digging into this. I'm having a hard time getting the symfony.lock file to update when I can the requirements in the composer.json file and call composer update. Am I missing something, or is symfony/flex still a bit rough around the edges?

My composer file is:
{
    "type": "project",
    "license": "proprietary",
    "require": {
        "symfony/flex": "^1.0",
        "beelab/tag-bundle": "v1.1.0"
    }
}

Calling composer install with that generates me a symfony.lock, but then when I update the requirement on beelab/tag-bundle to v1.3.0 and call composer update I get an updated composer.lock but no change to the symfony.lock.

PR with the beginnings of the work on this is here. My PHP tests are failing locally, but I think it's due to the composer version on my machine being out of date.
Next step is to add a test, likely using the dummy composer file above.

I had "phpoffice/phpspreadsheet": "^1.2" in my composer.json.
This package has been updated from 1.3.1 to 1.4.0 by dependabot (only composer.lock has been changed).
Some times after, I had to run composer install and I saw my symfony.lock be updated. I don't know if it's related 🤔

That definitely sounds related to me. I'm totally on-board with adding symfony.lock support, just want to make sure that I do it right.

FYI, I've asked the symfony/flex team what they recommend Dependabot does here. It's not totally clear to me that Dependabot should be updating the symfony.lock file as I don't yet understand its purpose, but I'll get to the bottom of it 🙂

Nice, good luck! :stuck_out_tongue:

OK, having spoken to the folks at symfony/flex I think the best approach is for Dependabot to not keep the symfony.lock up-to-date.
As I understand it, the symfony.lock is there to keep track of what post-install scripts have been run, when downloading packages using Composer. Dependabot can't run those scripts for you, as it doesn't clone your repo, so it's better that it leaves the symfony.lock alone, even if it is out-of-date.
Running composer fix-recipes after a Dependabot install should fix up any symfony.lock issues.
I'm open to revisiting this at any time if anyone can think of a better solution. The discussion with symfony/flex is here.


elm2nix

Elm is written in Haskell and has a very sane package manager. It shouldn't be too hard to be able to deploy all Elm packages with Nix.
I don't have enough free time to program this atm, but I'd like to drop my research here how I'd do it.
Generating all packages
Elm serves a single JSON (per Elm release) that returns all packages registered upstream:
http://package.elm-lang.org/all-packages (Elm 0.18)
We'd have to create a storage (git repository) with the following metadata per package:

generate sha256 of the tarball downloaded from github
elm-package.json (for later processing)

As usual, we'd then build all packages and provide binaries (probably not on hydra.nixos.org).
elm2nix
It would use Elm haskell API to determine the latest versions based on local elm-package.json and generate default.nix to be used to build your project.
Functions for generating versions and names:
https://github.com/elm-lang/elm-compiler/blob/master/src/Elm/Package.hs
Logic that determines if file should be downloaded (and thus where to unpack Nixified elm packages): https://github.com/elm-lang/elm-package/blob/master/src/Install/Fetch.hs#L137
Nix integration would just unpack packages to folders like ./elm-stuff/packages/debois/elm-dom/1.2.2/ and then run elm install . in order to avoid networking at build time.
Questions

what if it uses the newest package that is not already indexed by Nix?

This one is tricky, as it's impossible to be able to be up to date without some delay unless a user was able to generate a new set or be able to override (manual work).
We'd have to research if elm install does lookup local folders first and just use those instead of the very latest upon installation.
Relevant work

https://github.com/elm-lang/elm-package/pull/245

My estimate is about a few days of work to get a prototype working :)
cc @garbas

Do you think we can get upstream to publish the sha256 with each package? That would simplify the pipeline a lot.

We'd also need for them to store elm-package.json to generate the dependencies.

I'd be interested to try out the architecture I proposed in https://github.com/haskell/cabal/issues/3882. (It sounds like your plan is somewhere in betweeen that and the cabal2nix approach.)

Hi,
I would be -1 on having this information in nixpkgs and updating them in place. I would rather see a new repository eg. nixpkgs-elm which would accept nixpkgs as an input. I started this for python I think could easily setup the same thing for Elm.
I find it more and more that when working on different project you also need to pick different revision of nixpkgs. Having a collection of language specific packages and switching between different nixpkgs version is a crucial for me this days.
ofcourse nixpks-elm repository can also have an entry in nixpkgs via fetchGitHub for specific revision.
for those interested in Elm. there actually already is elm2nix command but you need to check the files and comments in pkgs/development/compilers/elm. At Mozilla we then have an update script which runs this on nightly basis: https://github.com/mozilla-releng/services/blob/master/nix/lib/default.nix#L384. for now this is working ok but it would be even better if we would have this already packaged in nix.
my 2c

I never proposed for packages to be in nixpkgs, since they wouldn't be built anyway :)
But this is irrelevant and minor compared to making the infrastructure work.
@Ericson2314 that means involving upstream and looks like the timing is right: https://github.com/elm-lang/package.elm-lang.org/issues/208

Unless we have other packages depending on the Elm packages it's fine keeping it entirely separate from Nixpkgs. As soon as Nixpkgs packages do depend on the Elm packages we might start using fetchTarball with hash.

I'll wait for Elm 0.19 before automating this, since it's going to help a lot: https://groups.google.com/forum/#!topic/elm-dev/qdu3NqOqGrY

I took a bit different path and made https://github.com/domenkozar/elm2nix today. Wanted it to be simple so it can be done within a day. Let me know what you think!

close as old?

https://blog.hercules-ci.com/elm/2019/01/03/elm2nix-0.1/


and  in html

In the new HTML standard,
 has been disabled, only
 is allowed, but vsc is automatically filled with
.

People can still write HTML with the old standard.


Upgrade readdirp to 2.0.1

Please update In order to avoid a RegExp DoS issue, nsp advisory 118

Would also very much appreciate a near term release with new readdirp, which includes new minimatch (3.0.2).  Right now, installing express-hbs throws this warning:
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
That's pretty ugly for users of our products which include express-hbs.

Thanks for swinging by and letting me know this needed doing! I've merged @edsadr's PR and released this as 1.0.2.
Let me know if there are any issues.


Clarify interrupt delegation semantics

Hello.
This is how I understand the trap delegation mechanism for interrupts:

About the new bit of text:

For example, if the supervisor timer interrupt (STI) is delegated to S-mode by setting mideleg[5], STIs will not be taken when executing in M-mode. By contrast, if mideleg[5] is clear, STIs can be taken in any mode and regardless of current mode will transfer control to M-mode.

Do you mean not taken at all, or taken but with a mode switch to S-mode? I was under the impression that the xideleg registers were simply used to control "how far an interrupt bubbles up" whereas the xie registers where used to block them from being taken. In other words, is the blue path in my example drawing correct or not? (Perhaps it is worth adding a similar diagram in the document?)
Thanks

The blue line is indeed impossible. An interrupt can only be taken when the current privilege mode is less than or equal to the privilege mode to which it has been delegated.
Diagrams would definitely help explain this unusual architectural feature (but fair warning, Krste will go several rounds of revisions on them :))
I am happy to review pull requests that improve the clarity of the text.

Interesting, I definitely didn't understand that. So, when running in machine mode an receiving interrupt m, if mie[m] is 1 and mideleg[m] is 0, then the interrupt would be handled in machine mode, and if mie[m] is 1 and mideleg[m] is 1, the interrupt that is not masked is simply not handled?

In the latter case, the interrupt would be effectively masked until returning to a less-privileged mode.

I see. Thanks for helping me out ;)

It's also helpful for me to know which parts of the document are confusing... this being one of them.

To be fair, the expected behaviour is the one that was actually described. It's a bit of an involved process to get your head around every detail is all.

I am having an attempt at a couple improvements, following up on the suggestion. I was wondering: can bits 2, 6 and 10 of mideleg be considered wiri?

I’d like @kasanovic to review it


Certs and key different when get from API

When I get the cert and key of CA from API, It's different  from the pfsense site.
Pfsense Site:

API:

pfSense Version & Package Version:

pfSense Version: 2.6.0
Package Version 1.5.1

Affected Endpoints:

URL: [/api/v1/system/ca]

That looks like base64. Can you try decoding it and seeing if the matches.
# I only tried the first few characters to prove this, and already you can see.
LS0tLS1CRUd
# returns
-----BEG

Try this page
or base64 --decode in the terminal

Hello, thanks, works fine.


ntr: normal protein level during mitosis

standard...

PMID:9312055

abd
decreased protein level during mitotic G1

normal protein level during mitosis FYPO:0005925
edit file: a5b32a3901749ab84810fc61c02ff13e179f38c7
release: c8062624a4989976b20aa06787b87f9d6f4b24ab

drat, missed the one in the follow-up comment. will add it tomorrow.

OK, last bit done
decreased protein level during mitotic G1 phase FYPO:0005933
edit file: 3c0adce71a5d2f46ff0dd4d2d5ee289311ad2ce8
release: b87f9fc3d7321fedc160088bf0d21727a683f9bd

found FYPO:0005933 but could not see it under place holder
decreased protein level during vg?

oops, botched the xp, which made the reasoner put it in the wrong place. fixed now.
edit file: 62fd042ca65ac53d543a679a4d42bdedce18b28c
release: 3f1297b6351d47660373cd73597ad3470c37d008


Unable to Install or Save poshy-wrap-vault from PSGallery

Expected Behavior
Should be able to install or save module from PSGallery
Current Behavior
Unable to save or install module from PSGallery
System.Exception: Unable to save the module 'poshy-wrap-vault'

Save-Module -name poshy-wrap-vault -Path . -Repository PSGallery
WARNING: Package 'poshy-wrap-vault' failed to be installed because: The file 'C:\Users\username\AppData\Local\Temp\50fex4uo\[Content_Types].xml' already exists.
WARNING: Package 'poshy-wrap-vault' failed to install.

Steps to Reproduce

Attempt to Save-Module from PSGallery
Attempt to Install-Module from PSGallery

Context (Environment)
$PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.3.6
PSEdition                      Core
GitCommitId                    7.3.6
OS                             Microsoft Windows 10.0.19045
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Fixed in https://github.com/pwshrc/poshy-wrap-vault/releases/tag/v0.3.10. Thanks for reporting this!


Cannot install ionic

npm -v
4.1.2
Vishnus-MacBook-Pro:~ vishnurajrajagopal$ node -v
v7.5.0
Vishnus-MacBook-Pro:~ vishnurajrajagopal$ sudo npm install cordova -g
npm WARN deprecated<EMAIL_ADDRESS>use uuid module instead
/usr/local/bin/cordova -> /usr/local/lib/node_modules/cordova/bin/cordova
/usr/local/lib
└──<EMAIL_ADDRESS>Vishnus-MacBook-Pro:~ vishnurajrajagopal$ sudo npm install ionic -g
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>use uuid module instead
npm WARN deprecated<EMAIL_ADDRESS>use uuid module instead
/usr/local/lib
└── (empty)
npm WARN In<EMAIL_ADDRESS>replacing bundled version of cross-spawn with<EMAIL_ADDRESS>npm WARN In<EMAIL_ADDRESS>replacing bundled version of mime-types with<EMAIL_ADDRESS>npm WARN In<EMAIL_ADDRESS>replacing bundled version of semver with<EMAIL_ADDRESS>npm WARN In<EMAIL_ADDRESS>replacing bundled version of form-data with<EMAIL_ADDRESS>npm WARN In<EMAIL_ADDRESS>replacing bundled version of request with<EMAIL_ADDRESS>npm WARN In<EMAIL_ADDRESS>replacing bundled version of ionic-app-lib with<EMAIL_ADDRESS>npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "ionic" "-g"
npm ERR! node v7.5.0
npm ERR! npm  v4.1.2
npm ERR! path /usr/local/lib/node_modules/.staging/ansi-392b32ed
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/.staging/ansi-392b32ed' -> '/usr/local/lib/node_modules/ionic/node_modules/cordova-lib/node_modules/ansi'
npm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/.staging/ansi-392b32ed' -> '/usr/local/lib/node_modules/ionic/node_modules/cordova-lib/node_modules/ansi'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR!     /Users/vishnurajrajagopal/npm-debug.log

Uninstalled with npm uninstall ionic -g
and installed again. It worked!

@Vishnuraj910 close the issue if it worked :)


Code workflow

 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.:x: DushanthaS sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


PsGoogle is not tested

There is no unit test for PsGoogle class, let's create one. Let's introduce one more ctor, which will accept an instance of com.jcabi.http.Request and use it internally like this:
this.request.uri().set("https://google.com...")

This will allow us to test the class.

@yegor256 right, I added the bug tag

@yegor256 many thanks for the report, I topped your account for 15 mins, transaction 000-6e853aaa

@nathansgreen it's yours, please go ahead

@nathansgreen you're working with this issue for 15 days already
-30 added to your rating, current score is: +45

@nathansgreen this task is taking too long, I have to change the performer, sorry. Please stop working with it right now. See our no obligations principle... -60 added to your rating, current score is: -180

@lauresh please go ahead, it's your task now, keep this in mind, and don't hesitate to ask any technical questions you may have... This task's budget is 30 mins. This is exactly how much will be paid when the problem explained above is solved. See this for more information

@lauresh you're holding this ticket for 15 days already. If it is not finished (and closed) in the next 48 hours, it will be re-assigned to someone else, see No Obligations principle (this article should help if you're stuck)... -30 to your rating, your total score is -30

@davvd what is the status here?

@dmzaytsev it's yours, please go ahead

@yegor256 the PR #270  has been merged. Could you close the task please ?

@dmzaytsev thanks!

@elenavolokhova please, review this task for compliance with our quality rules

@davvd Quality is good here.

@davvd Quality is good here.

@elenavolokhova thanks!

@dmzaytsev 10 mins was added to the account of @elenavolokhova (for QA review), in transaction 57245467. thanks, I just added 38 mins to your account, payment 57245478, 53 hours and 13 mins spent. the bonus for fast delivery (m=3193). +38 to your rating, your total score is +1438


fix: add debug info to thickness calculators

Fixes #146
Fixes #147.

Added object lines to each calculator -> gpd df containing linestrings + dip value(s) for each line.
Added warning if more than 75% of the units don't have a calculated thickness
Added option for max_line_length

If simple review, we could add this to 3.2 too.

A note that I will merge this into 3.2 by COB today if no review


Add an option to use --no-color chalk CLI argument

Summary
Folks who are using the vscode-jest extension have reported that there are ANSI color codes appearing in the inline error messages. This PR adds an option to the test runner that will start Jest using the --no-color CLI arg.
This PR will close jest-community/vscode-jest#279.
Is it possible to have this PR deployed in v21 or v22?
Test plan
I've added a test that should provide enough code coverage for this quick change.

Yep that’s fine

That's annoying. Sorry @SimenB.


Update BUILD.bazel goimports ignore list

As part of allowing to run clusters side by side
we might use more than one _ci-configs* folder.
make functest would fail in case its not ignored.
Signed-off-by: Or Shoval<EMAIL_ADDRESS>None

/cc @EdDev

Running 2 clusters from the same repo has more problems, closing
(running from 2 different folders works much easier)


First order team sorting is not working. Only second order alphabetical working.

When sorting by team, teams with less team members should sort above teams with more team members. Then the secondary rank order should be alphabetical. Currently the team sorting is only being done by alphabetically sorting and the number of team members is being ignored.

Student without a team name should be counted as being on a team with 0 members.

And lowercase and upper case letters should not matter. Better to sort by the lowercase version of the string.


Broken link for "lib-anne" in "Algorithms, Containers and Protocols"

In Algorithms, Containers and Protocols
lib-anne - Large collection of Ada packages. This is sort of meant to be a "new standard library". Who's Anne? Ada's daughter.
The lib-anne repository is no longer available. The author still has a github page Entomy but the lib-anne repository is no longer visible on it.

The following link from Entomy is also broken:
Unit Test, Testing

testing - Ada unit testing and measuring framework.

Just removed the dead links: https://github.com/ohenley/awesome-ada/commit/f0e3df247119dd3730c4bda6cac0e0c3fd93087c
Thanks for the heads up Bogan85.


Fix debug build on windows

There was a linking exception that was fixed by changing the order of includes for node and v8 headers

Yeah, i wish we had a good way to point to the root template in combyne so we didnt have to include that in the not generated files.

https://github.com/nodegit/nodegit/pull/924

:+1:


'anchor test' does not deploy program to localnet 'solana-test-validator' cluster

anchor test runs properly on devnet and on localnet when solana-test-validator is not running. However I wish to run it against a solana-test-validator localnet cluster because the program will interact with some other predeployed programs.
This gives a Transaction simulation failed: Attempt to load a program that does not exist error. The test script doesn't deploy the program as Deploy success message is not shown. The address stored in target/idl/cyclos.json doesn't show up on localnet Solana explorer.
(base) hp@MacBook-Pro cyclos % anchor test
BPF SDK: /Users/hp/.local/share/solana/install/releases/1.6.9/solana-release/bin/sdk/bpf
Running: rustup toolchain list -v
Running: cargo +bpf build --target bpfel-unknown-unknown --release
warning: unused variable: `ctx`
 --> programs/cyclos/src/lib.rs:6:23
  |
6 |     pub fn initialize(ctx: Context<Initialize>) -> ProgramResult {
  |                       ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
  |
  = note: `#[warn(unused_variables)]` on by default

warning: 1 warning emitted

    Finished release [optimized] target(s) in 9.10s

To deploy this program:
  $ solana program deploy /Users/hp/Documents/solana-season-hack/cyclos/target/deploy/cyclos.so

  cyclos
Transaction simulation failed: Attempt to load a program that does not exist

Translating error Error: failed to send transaction: Transaction simulation failed: Attempt to load a program that does not exist
    at Connection.sendEncodedTransaction (/Users/hp/Documents/solana-season-hack/cyclos/node_modules/@solana/web3.js/src/connection.ts:3357:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at Connection.sendRawTransaction (/Users/hp/Documents/solana-season-hack/cyclos/node_modules/@solana/web3.js/src/connection.ts:3318:20)
    at Object.sendAndConfirmRawTransaction (/Users/hp/Documents/solana-season-hack/cyclos/node_modules/@solana/web3.js/src/util/send-and-confirm-raw-transaction.ts:25:21)
    at Provider.send (/Users/hp/Documents/solana-season-hack/cyclos/node_modules/@project-serum/anchor/src/provider.ts:112:18)
    at Object.rpc [as initialize] (/Users/hp/Documents/solana-season-hack/cyclos/node_modules/@project-serum/anchor/src/program/namespace/rpc.ts:32:23)
    1) Is initialized!

  0 passing (5s)
  1 failing

  1) cyclos
       Is initialized!:
     Error: Promise rejected with no or falsy reason
      at processTicksAndRejections (node:internal/process/task_queues:96:5)

Test script in tests/cyclos.spec.ts
import * as anchor from '@project-serum/anchor'

describe('cyclos', () => {

  anchor.setProvider(anchor.Provider.env());

  it('Is initialized!', async () => {
    const program = anchor.workspace.Cyclos;

    const tx = await program.rpc.initialize();
    console.log("Your transaction signature", tx);
  });
});

Environment

Anchor 0.6.0
MacOS Catalina

Test passes if I use
anchor deploy && anchor test --skip-deploy --skip-build

Is this the intended behavior?

If I understand the problem correctly, this is intended. anchor test without any arguments will build and deploy programs at new addresses on each run. If you want to use a pre-deployed program for your test on an already running localnet, you can update your Anchor.toml to set the program.
For example,
[provider]
cluster = "localnet"
wallet = "~/.config/solana/id.json"

[clusters.localnet]
basic_0 = "BBNZG82FKoqb8hgPL426C1Rwa89zcmQSUjrYx51zcM6M"

Would allow one to do what you describe with examples/tutorial/basic-0/.
Does this meet your use case? Or do you need to dynamically pass in the address to the cli?

This solution should work. But I wonder why anchor test has different behaviour for  devnet and localnet. When devnet is selected in Anchor.toml, the anchor test redeploys the program each time. Attempt to load a program that does not exist doesn't show up.

I see you're correct. To reiterate the points you've made, there are two cases here.

The user wants to run anchor test against a localnet (launching a validator automatically). In this case, the program should be embedded into the genesis of the local validator (to save time).
The user wants to run anchor test against a localnet without launching a validator automatically. In this case, the flow should work exactly like running anchor test against devnet or any other cluster.

This is being addressed here https://github.com/project-serum/anchor/pull/324. Thanks for bringing this up.

Completed byhttps://github.com/project-serum/anchor/pull/324.

Re: #324 "This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository." https://github.com/project-serum/anchor/commit/fc9fa90a0b63b6357d050c7a20519aa7a059c3aa
My context is described here https://github.com/project-serum/anchor/issues/831#issuecomment-1010653240

@ANANTASHESHALOKAGREENTARAEGPTRANSHOLON this solved the problem https://github.com/project-serum/anchor/issues/831#issuecomment-1025349658


[BUG] Template validation failed

I am having trouble with deploying.
When I run this command: ./bin.sh. I get the below error. Could someone assist? What am I doing wrong?
Are you a new user starting with v1.x or later? (y/N): y
Starting deployment...
Template validation failed

Please follow the bug reporting template.

I had this issue when the role I was using didn't have access to CloudFormation to complete the command
aws cloudformation validate-template --template-body file://deploy.yml  > /dev/null 2>&1


Move persistence to a custom table

When CLIP was first birthed, it was a speedy and not-so-well thought out process. If it had have been more well-considered, I would not have use the umbracoKeyValue table for storing anything. While that table is super handy given it is available OOTB with a service layer for getting/setting values, it is limited to 255 characters.
See where the potential problem is? Once CLIP config exceeds 255 characters, it will fail to save. That's no no no not cool.
To fix this, CLIP needs a custom table for storing data. That table needs a single column for storing a JSON blob, serialized from the config model. One table, one column, one row. Nice!
Data access probably doesn't need a dedicated service layer, but could be done by injecting IScopeProvider, grabbing the database scope and getting/setting the data with a bit of raw SQL. This would replace the references to _keyValueService in /src/Clip.Web/Services/ConfigurationService.cs.

assign it to me

can begineer contribute this?


cc wrapper: skipping not C files

The cc wrapper used to try to compile also assembly, this PR changes it by checking if arguments contain a C source file (*.c) if not then it does not tries to compile it. For commands containing linking changes nothing.
To check if I did not break anything I build musl-1.2.1 -- musl-1.2.5 and compared snapshots between master and this branch, the snapshots between the branches contain the same files. In musl there were some cases of compilation *.s files, before this PR cc_wrapper did try to compile it but because the compilation did not created output file, the file was never added to db file https://github.com/diffkemp/diffkemp/blob/54deef1fbdaabbc6014223a2cf1b4418641b76bb/diffkemp/building/cc_wrapper.py#L210. Now it does not even try to compile it.
I also build dietlibc-0.34, for this library there were before this PR multiple cases of *.S files compilation, because the compilation did not failed, the output file was created and added to db file. For this I also compared snapshots created on master branch and this branch, the snapshots contains same files (the *.S files are compiled on master branch but because they do not contain LLVM IR functions they were/are not copied to snapshot dir, therefore the snapshots still contains the same files). Now the *.S files are not compiled and therefore not added to db file.

Sure, I can try to add a test/s.

I added the tests, which test that for .S and .s file is not created LLVM IR and that it is not added to db file.
I also added a test for compilation with linking (in this case creating shared library from .o file).


speech-tools: fix darwin build

Result of nixpkgs-review run on x86_64-linux 1

1 package built:

speech-tools

Result of nixpkgs-review run on x86_64-darwin 1

1 package built:

pcaudiolib

Things done

Built on platform(s)

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

[x] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] 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

[x] 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/)
23.11 Release Notes (or backporting 23.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.

Result of nixpkgs-review pr 261329 run on aarch64-darwin 1

1 package failed to build:

speech-tools

Result of nixpkgs-review pr 261329 run on aarch64-darwin 1

1 package built:

speech-tools


Unable to debug swift project with Realm-swift-2.0 branch

When I attempt to debug a project built with the swift-2.0 branch, I get the following in the console:
warning: Swift error in module <my app>:
    Swift had fatal errors constructing the ast context for this module: <built-in>:3:2: error: module 'Realm' was built in directory '/Realm.framework' but now resides in directory './Realm.framework'
#define __clang_major__ 7
 ^
missing required modules: 'Realm.Private', 'Realm'
Debug info from this module will be unavailable in the debugger.

warning: Swift error in module RealmSwift:
    Swift had fatal errors constructing the ast context for this module: missing required modules: 'Realm.Private', 'Realm'
Debug info from this module will be unavailable in the debugger.

I have added both Realm and RealmSwift frameworks to the app. Had to remove the build script step as it could not find the path that was provided. Are there updated instructions for this branch?

See  issue 2135 which is the same problem.   It was recently closed as a Swift/lldb problem, not a realm problem.

Dupe of #2139


Upgrade improvements

This is still kinda a WIP while I see how it behaves on jenkins, but would love feedback in the meantime.
The basic gist of things here is to write/read and increment/read at quorum during the (rolling) upgrade process to make sure clusters can keep serving quorum during an upgrade.

pinging @ptnapoleon @mambocab @aboudreault to bring out the red markers.

At the high level, this is really clean, and easy to follow. I haven't found any little logic errors anywhere either. I still maintain long-term, CVH is better suited for this, but this goes a long way towards making these dtest-based upgrade tests more robust. I'm +1


Issue on Nuxt v3.1.1

Hello,
A little issue with Nuxt v3.1.1...
Version
nuxt-security: v0.10.1
nuxt: v3.1.1
Reproduction Link
Stackblitz
Steps to reproduce
Install the module and add it to nuxt.config.ts
What is Expected?
The module to works 😇
What is actually happening?
An error and blank page on Stackblitz.
On my local the error is:
[worker reload] [worker init] Cannot find package '@nozomuikuta/h3-cors' imported from /Users/lguegu50/projects/dkt/corength/platform/webapp/.nuxt/dev/index.mjs     17:20:58
at new NodeError (node:internal/errors:371:5)
at packageResolve (node:internal/modules/esm/resolve:932:9)                                                                                17:20:43
at moduleResolve (node:internal/modules/esm/resolve:978:18)
at defaultResolve (node:internal/modules/esm/resolve:1080:11)
at ESMLoader.resolve (node:internal/modules/esm/loader:530:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:251:18)
at ModuleWrap. (node:internal/modules/esm/module_job:79:40)
at link (node:internal/modules/esm/module_job:78:36)
Be the force be with you for that 💪.

Hey, thanks for reporting this issue!
I will take a look at it later today. It seems like with the newest version of nuxt there is a different approach for handling packages. I will let check it out and let you know :)

This is quite strange.
I have tested it in the module repository with both dev and prod environments on nuxt 3.1.1 and it is working correctly.
BTW, I intentionally not bump the package dep version to not include breaking changes for the current users. I will do this in the next major version of the security module.
When I check the stackblitz you linked, it just does not start for me

I managed to reproduce it on another stackblitz that I have created but this bug seems to be appearing on stackblitz only.
Have you encountered this kind of bug in your local/production project?

In my case. this bug appears also on version 3.0.0 of Nuxt. I have contacted a cors package maintainer about this -> https://github.com/NozomuIkuta/h3-cors/issues/9

Hello Jakob,
Yes on my local the error is the one I sent in my first message.
Le sam. 28 janv. 2023, 13:46, Jakub Andrzejewski @.***>
a écrit :

I managed to reproduce it on another stackblitz that I have created but
this bug seems to be appearing on stackblitz only.
Have you encountered this kind of bug in your local/production project?
—
Reply to this email directly, view it on GitHub
https://github.com/Baroshem/nuxt-security/issues/89#issuecomment-1407391711,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABPOBMKLDYOH3T4O42TD26DWUUILHANCNFSM6AAAAAAUI4GFE4
.
You are receiving this because you authored the thread.Message ID:
@.***>

I can confirm the exact same error happens in my case (locally) and prevents from using the module. Let me know if there is any additional info I could provide to help find the cause of this issue.

@DamianGlowala @Loyz07 could you tell me what package manager are you using?
I am always using yarn and in this case, it works correctly. When I switched to npm for a local project, it stopped working for some reason with the error you mentioned.
It seems that for npm this package (maybe it is due to the fact that it starts with @ in the name) is not added to nuxt dev file. This is really strange. I think I would need to ask someone wiser than me.
@danielroe have you encountered something like this?

It is npm, indeed

Summary:
When using npm, the package @nozomuikuta/h3-cors is not added to the .nuxt/dev/index.mjs and because of that, the error appears.

Summary:
When using npm this is the following import in .nuxt/dev/index.mjs (it also throws an error)
import { FilterXSS } from 'file:///Users/jakubandrzejewski/Coding/open-source/nuxt/nuxt-app/node_modules/xss/lib/index.js';
import { defineCorsEventHandler } from '@nozomuikuta/h3-cors';

And this should be a correct approach (how it works with yarn):
import { FilterXSS } from 'file:///Users/jakubandrzejewski/Coding/open-source/nuxt/nuxt-app/node_modules/xss/lib/index.js';
import { defineCorsEventHandler } from<EMAIL_ADDRESS>

It almost looks like for npm it is failing when a package name starts with @ because other packages are working correctly (like xss or basic-auth)

You can disable cors middleware  in the configuration like following and it should make the whole project work (without cors unfortunately but it will work. In the meantime I will work on the fix to make it work with cors middleware)
export default defineNuxtConfig({
    modules: ['nuxt-security'],
    security: {
      corsHandler: false
    }
})

npm for me too !
Le dim. 29 janv. 2023, 17:15, Jakub Andrzejewski @.***>
a écrit :

@DamianGlowala https://github.com/DamianGlowala @Loyz07
https://github.com/Loyz07 could you tell me what package manager are
you using?
I am always using yarn and in this case, it works correctly. When I
switched to npm for a local project, it stopped working for some reason
with the error you mentioned.
It seems that for npm this package (maybe it is due to the fact that it
starts with @ in the name) is not added to nuxt dev file. This is really
strange. I think I would need to ask someone wiser than me.
@danielroe https://github.com/danielroe have you encountered something
like this?
—
Reply to this email directly, view it on GitHub
https://github.com/Baroshem/nuxt-security/issues/89#issuecomment-1407705498,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABPOBMM3FNHTR7ILGR3CGVDWU2JR7ANCNFSM6AAAAAAUI4GFE4
.
You are receiving this because you were mentioned.Message ID:
@.***>

cc: @pi0

@pi0
Could you please provide here a solution you recommended in DM?

I got the confirmation from Pooya that this bug is fixed in the next major version of Nuxt. I will bump it and see if it works :)

The issue is no more on 3.2.0 version of Nuxt. Once the new version of the Security Module will be out, this issue should be fixed as well. Planning to release a new version next week :)

Did you migrate to cors  utils from 'h3' ?

Not yet.
I have been thinking about doing it as a separate issue and to develop it for the next version (like the one after next weeks version) as this is a feature.
But I can also take a look at it to see if this can be migrated easily.

@pi0
Is the usage of the cors addition to H3 documented somewhere?

I have tested the new version of Nuxt Security 0.11.0 with Nuxt 3.2.2 and it seems to be working correctly. I am closing this issue.
If you will still encounter this issue, please let me know so that I can reopen it :)

I have deleted package-lock.json, node_modules, updated Nuxt to v3.2.3, installed dependencies and yet I can see the same error. I don't have any security config though, just added the nuxt-security to the list of modules :)

@DamianGlowala have you cleared the .nuxt folder before runing dev again?

Same for me. I made a clean install as well as cleared the .nuxt dir, but that's not helped, The issue still persist:
Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@nozomuikuta/h3-cors' imported from /app/.nuxt/dev/index.mjs
    at new NodeError (node:internal/errors:393:5)
    at packageResolve (node:internal/modules/esm/resolve:860:9)
    at moduleResolve (node:internal/modules/esm/resolve:909:20)
    at defaultResolve (node:internal/modules/esm/resolve:1124:11)
    at nextResolve (node:internal/modules/esm/loader:163:28)
    at ESMLoader.resolve (node:internal/modules/esm/loader:841:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
    at ModuleWrap. (node:internal/modules/esm/module_job:76:40)
    at link (node:internal/modules/esm/module_job:75:36)

So, I resolved this for now by adding this package into the overrides section of the package.json:
"overrides": {
  "@nozomuikuta/h3-cors": "latest"
}

I see, then please use the solution from @maxdzin or disable corsHandler for now.
In the upcoming weeks I will be migrating the current corsHandler to native H3 cors functionality as the h3-cors package is deprecated (it was actually merged to h3). This will most probably require a change in the cors interface and will allow me to get rid of this package and eventually, fix this problem for your in npm.
Sorry for the trouble but I cannot reproduce this issue on my end with npm but can completely understand that it can happen to you.
Stay tuned!

This will be released with upcoming 0.12.0 version

@DamianGlowala @maxdzin @tmlmt @lynxionxs
I have just released the new version where this problem should not appear https://github.com/Baroshem/nuxt-security/releases/tag/v0.12.0
Let me know if it works. I am doing my best to solve those issues but even today I had a H3 related issue that tooked me days to solve :(

Hi @Baroshem ,
Thank you, it works pretty fine now for Nuxt v3.2.3.

Awesome! Closing the issue then.
Sorry for the trouble.
Just a note for others coming here. you MUST update to Nuxt v3.2.3 or above or you will get an can't find 'h3' error.

@coreysyms
Could you please create an issue with explanation of the error you have encountered? I would prefer to provide some kind of backward compatibility so that other users will be protected agains such issues.
I will really appreciate it :)

Sure thing. I was running standard install of 0.12.0.
"devDependencies": {
    "@types/node": "^18.14.2",
    "nuxt": "^3.2.0",
    "nuxt-security": "^0.12.0"
  }

Error on npm run build. syntaxError: The requested module 'h3' does not provide an export named 'handleCors'

@coreysyms
Thanks for the additional info!
I think this bug is caused by the fact that the support for Cors in H3 was added in a major 1.5.0 version of H3 but a bump of H3 version used in Nuxt was done in a patch version. I will add a note in the docs about using cors that if you use a Nuxt in < 3.2.0 you have to use nuxt-security 0.11.0


BUILD_SHARED_LIBS set to FALSE in InitializeCache.cmake

I can't get our build working in vscode - although I'd really like too :smiley:
I get some linker error and think this might be related to the following entry in build/CMakeTools/InitializeCache.cmake
file:
set(BUILD_SHARED_LIBS "FALSE" CACHE BOOL "Variable supplied by CMakeTools. Value is forced." FORCE)
Didn't find an option to turn off this setting or to change it. Maybe I just didn't find the documentation.
Still strange to me why this is set at all.
Would be great if you could clarify so I can use this very nice plugin :smiley: productively.

Some further debugging confirmed by assumption.
This option breaks our build. Is it somehow possible to remove it?

Found a workaround. I need to configure the "linkage": "shared" inside cmake_variants.
Still I feel this should be changed as this is some piece of duplicate code which could be avoided as the linkage is already defined in our CMakeLists.txt.

Sorry, I didn't really think about the fact that this was being set to false forcibly. CMake sets it to FALSE by default, and most users are unaware of its existence, so it hasn't really come up. I will probably look into having linkage be unset by default, then not setting BUILD_SHARED_LIBS, so that it doesn't trip up users that aren't asking for a specific linkage.

Thanks for looking into it. Would be great to have it unset by default.

:sunglasses:  That was really fast. Thanks for the great support, :smiley:


Update attach-disk-portal.md

We saw a case where customer was using an older version of parted and it caused issues resulting in a support case.

@timbasham : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off


Support schemas available on the web

Done in https://github.com/lyubick/action-YAML-schema-validator/commit/bab9fd890ab3226a8035b2647e785693afb7d44e


feat: removed total public responses

@Harshwardhan18 Are you sure we have to remove the Totatl Public Response all together? Looking at the ticket it seems it should be done only for Policy Review. Can you please reconfirm this?


evaluation on VOT2016

Could you give me the introduction about how to evaluate it on VOT2016 by python? (方便的话，中文交流)

See Performing evaluation with VOT toolkit
To get SiamFC VOT2016 result, you need modify inference/track.py.


How to connect my personal OMOP CDM database

You can connect to the local OMOP CDM database in the OHDSI-in-a-Box instance by using either the SQLWorkbench or pgAdmin4 tools in Linux or Windows, respectively.  It is also possible to connect the tools in this OHDSI-in-a-Box instance (Atlas, RStudio, SQLWorkbench/pgAdmin4, White Rabbit, etc.) to another OMOP CDM database hosted inside or outside of AWS.  To do that, you would edit the configuration of these tools to point to the network address for that database.


Do not constant fold FloorDiv(x, 1)

This PR prevents grappler constant folding of FloorDiv(x, 1.0) since FloorDiv(x, 1.0) == Floor(x) != x.
Fixes #47970

@lgeiger thanks for the fix!


Edges broken in k8s views

It would seem the containers aren't being associated with pods correctly:

This only affect k8s 1.1 - it doesn’t label container with the pod uid...

I don't think we care enough about older k8s. -> closing


Pattern library operation model

Document the creation and consumption model for domain specific pattern libraries with best practices, examples and relevant demoes.
Share with partners in:
Markets - MTK/ Exec
Corporate Tech - CRUX
Ops - Navigator
Payments - PUI
Securities - Fusion
GB - Pepper

Progress update
Extension styling model in Figma ready to test.
Scenarios to be provided by Sam H
Deprecation model options circulated with consumers for feedback.
Outstanding
Needs to be translated into product level guidance in @origami-z word docs.

Espresso Goal share with team by EOS

Frappe Goal: continue to define the model

doc to be shared this week

Finished first version of Word doc, shared with leads

Deck created to articulate ui strategy update to business leads. To be reviewed with JJ and Salt leads.

@bhoppers2008 please create Galao goal

Initial docs created in Powerpoint, return to the backlog until we need to share more information


Remove version: SmartSoft.SmartFTP version 10.0.3236.0

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

URL: https://static.smartftp.com/static/Products/Client/10.0.3236.0/x64/SmartFTP.msi
Response Error: The remote server returned an error: (404) Not Found.
(Automated message - build 911)


fix: TryPullImages before Up and Down

handle when the PULUMI_BACKEND is not in the same cloud as the target

still testing..
fixes #273

Codecov Report

Merging #279 (096248c) into develop (01ff258) will decrease coverage by 0.29%.
The diff coverage is 0.00%.

@@             Coverage Diff             @@
##           develop     #279      +/-   ##
===========================================
- Coverage    33.39%   33.09%   -0.30%
===========================================
  Files           49       49
  Lines         4761     4804      +43
===========================================
  Hits          1590     1590
- Misses        3020     3063      +43
  Partials       151      151

Flag
Coverage Δ

unittests
33.09% <0.00%> (-0.30%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

pkg/provider/pulumi/aws/aws.go
53.38% <0.00%> (-8.10%)
:arrow_down:

pkg/provider/pulumi/azure/azure.go
6.32% <0.00%> (-0.06%)
:arrow_down:

pkg/provider/pulumi/gcp/gcp.go
43.86% <0.00%> (-0.49%)
:arrow_down:

Continue to review full report at Codecov.

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


smart_open

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[ ] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

@chirayusamarth 👍 Nicely done!
Thanks, and congrats on your first time contribution!


GoogleSignatureVerifier error: signature not valid when call  requestIdToken!

Hello Google team,
I face with problem when trying to getIdToken for my app flow:
https://developers.google.com/identity/sign-in/android/backend-auth#send-the-id-token-to-your-server
Every thing fine except requestIdToken(getString(R.string.server_client_id)). Our app will return error like:
05-24 19:17:40.091: V/GoogleSignatureVerifier(14539): com.vgames.gungunonline signature not valid.  Found:
05-24 19:17:40.091: V/GoogleSignatureVerifier(14539): MIIDXzCCAkegAwIBAgIEBNOpETANBgkqhkiG9w0BAQsFADBgMQswCQYDVQQGEwJ2aTEMMAoGA1UE
05-24 19:17:40.091: V/GoogleSignatureVerifier(14539): CBMDaGNtMQwwCgYDVQQHEwNoY20xDjAMBgNVBAoTBXZtb2dhMQwwCgYDVQQLEwNkZXYxFzAVBgNV
...
I saw that this problem posted in Google + stackoverflow from 13 May. Until now no good answer for us.
I think my problem the same with: http://stackoverflow.com/questions/37333220
Could you check and give me your advice.
I tested in: SignInActivity googlesamples checkout 22 - May.
Thanks,
Tài Hải

@EdisonNguyen you can ignore the GoogleSignatureVerifier errors in logs.  That's something that was meant for internal consumption and we accidentally left the logging on in the public release.
Are you having any other issues with your sign in flow, or are you just worried about that error?

I saw this error today and found maps to longer work in our app.  Can't tell whether there's a connection or not.  We're using maps v2.

No connection to this error.


implement fault_matrix

@amicciche , this is what we had discussed in terms of decoding directly from a Pauli frame simulation. We probably need a few more helper methods, e.g. for creating the circuit for measuring the logical operations. Could you look through this and let me know if you have any questions about how to proceed with using it?