Nitro server plugin called twice in dev-server with ssr: false

Environment
Working directory: /home/projects/nuxt-issues-24871
Nuxt project info:

Operating System: Linux
Node Version:     v18.20.3
Nuxt Version:     3.12.3
CLI Version:      3.12.0
Nitro Version:    2.9.7
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      compatibilityDate, ssr
Runtime Modules:  -
Build Modules:    -

Reproduction
https://stackblitz.com/edit/nuxt-issues-24871-ubleer?file=nuxt.config.ts
Describe the bug
The plugin init method is called twice after running npm run dev (nuxt dev).
The error only occurs when running npm run dev the second time.
I also noticed, that when I change line 2 in server/plugins/test.ts, the next time I run npm run dev, the first output is an old one and the second one with my changes.
Additional context
No response
Logs
❯ npm run dev

> dev
> nuxt dev

Nuxt 3.12.3 with Nitro 2.9.7                                                                       3:57:47 PM
                                                                                3:57:54 PM

  ➜ Network:  https://stackblitz.com/edit/nuxt-issues-24871 [QR code]
  ➜ Local:    http://localhost:3000/

  ➜ DevTools: press Shift + Alt + D in the browser (v1.3.9)                                        3:59:09 PM

 WARN  Slow module @nuxt/devtools took 20484.87ms to setup.                                        3:59:09 PM

ℹ Compiled plugins/server.mjs in 2945.26ms                                                        3:59:19 PM
ℹ Compiled plugins/client.mjs in 3011.79ms                                                        3:59:19 PM
ℹ Compiled types/plugins.d.ts in 3064.71ms                                                        3:59:19 PM
hello from plugin 2024-07-16T13:59:33.806Z
✔ Nuxt Nitro server built in 5114 ms                                                        nitro 3:59:41 PM
ℹ Vite client warmed up in 16131ms                                                                3:59:43 PM
hello from plugin 2024-07-16T13:59:46.607Z

I'm getting the same behavior on Nuxt 3.12.2 as well

Workaround:
Update the dev-script in package.json to remove the .nuxt/dev-folder.
{
  "scripts": {
    "dev": "rm -rf .nuxt/dev && nuxt dev"
  }
}

For debugging with VS Code, you can use a pre-launch task.

I'm getting the same behavior too. 3.11.2


Update readme by adding curl_path option

I needed to use this module on a Windows machine. This option curl_path was useful, however, I coudn't find it without reading issues and diving in sourcecode.
This pull request adds curl_path to readme.md

I did. But it seems that I have created a new pull request by mistake!

I'll close this one then.


Don't use IsNotMountPoint

IsNotMountPoint is deprecated. Consider switching to IsMountPoint.
https://github.com/IBM/ibm-spectrum-scale-csi/blob/ab135e7569c9dc2bd51ff506379e18090c27a632/driver/csiplugin/nodeserver.go#L107

Fixed by https://github.com/IBM/ibm-spectrum-scale-csi/pull/825


Fix path for example yaml in 'Coarse Parallel Processing Using a Work Queue' task page

This PR updates the link to the example yaml in the task page. Currently, the link is incorrect as it has missing 'rabbitmq' dir in the path.
Fixes https://github.com/kubernetes/website/issues/45020

/label tide/merge-method-squash
Even better if changes could be squashed down to 1 commit.

Thank you for updating the file location
/approve


fix: Fixing typo

PR(Pull Request) Overview
I have not much to contribute (yet) other than fixing a small typo.
validator_opeartor_address should be validator_operator_address
Changes

[ ] Major feature addition or modification
[x] Bug fix
[ ] Code improvement
[ ] Documentation update

Additional Information
Nothing else to add here

Thank you for contributing!


Sandia Inverter Fit Algorithm gives Efficiencies > 1

Describe the bug
It is possible that I am using the fit parameters incorrectly.  Attempting to fit the Sandia inverter model to parameters from the SMA Sunny Central 4400 and then predicting efficiency gives efficiency values >1 at low power inputs.

Figure 1:  Sandia Inverter Efficiencies (red curve), PVsyst inverter efficiencies (blue curve)
To Reproduce
Steps to reproduce the behavior:

Use the following parameters from PVSyst as input parameters for the pvlib.inverter.fit_sandia method

dc_power = pd.DataFrame({
    'Vmin': [225000, 447000, 891000, 1336000, 2227000, 3345000, 4468000],
    'Vnom': [227000, 449000, 893000, 1338000, 2230000, 3350000, 4477000],
    'Vmax': [228000, 449000, 893000, 1339000, 2231000, 3351000, 4479000]
})

efficiency = pd.DataFrame({
    'Vmin': [0.9768, 0.9847, 0.9879, 0.9883, 0.9879, 0.9866, 0.9847],
    'Vnom': [0.9677, 0.9801, 0.9853, 0.9863, 0.9864, 0.9852, 0.9827],
    'Vmax': [0.9655, 0.9795, 0.9849, 0.9857, 0.9859, 0.9847, 0.9823]
})

ac_power = efficiency * dc_power

dc_voltage = pd.DataFrame({
    'Vmin': [962, 962, 962, 962, 962, 962, 962],
    'Vnom': [1144, 1144, 1144, 1144, 1144, 1144, 1144],
    'Vmax': [1193, 1193, 1193, 1193, 1193, 1193, 1193]
})
dc_voltage_level = pd.DataFrame({
    'Vmin': ['Vmin', 'Vmin', 'Vmin', 'Vmin', 'Vmin', 'Vmin', 'Vmin'],
    'Vnom': ['Vnom', 'Vnom', 'Vnom', 'Vnom', 'Vnom', 'Vnom', 'Vnom'],
    'Vmax': ['Vmax', 'Vmax', 'Vmax', 'Vmax', 'Vmax', 'Vmax', 'Vmax']
})
p_ac_0 = 4400000
p_nt = 370

ac_power = ac_power.values.flatten()
dc_power = dc_power.values.flatten()
dc_voltage = dc_voltage.values.flatten()
dc_voltage_level = dc_voltage_level.values.flatten()

Use the values to fit the sandia inverter model

fit = pvlib.inverter.fit_sandia(
    ac_power=ac_power,
    dc_power=dc_power,
    dc_voltage=dc_voltage,
    dc_voltage_level=dc_voltage_level,
    p_ac_0=p_ac_0,
    p_nt=p_nt
)

Predict inverter output
pvsyst_inverter.CSV

df = pd.read_csv('pvsyst_inverter.csv', na_values=['#DIV/0!'])
df['Efficiency'] = df['EOutInv'] / df['EArray']
df['EArray'] = df['EArray'] * 1000

df['EOutInv_Sandia'] = pvlib.inverter.sandia(
    v_dc=df['UArray'],
    p_dc=df['EArray'],
    inverter=fit
)
df['Efficiency_Sandia'] = df['EOutInv_Sandia'] / df['EArray']

Expected behavior
I would expect values to always be below 1
Screenshots
Included above
Versions:

pvlib.__version__: 0.9.4
pandas.__version__: 1.5.3
python: 3.9

Additional context
Add any other context about the problem here.

The rows in pvsyst_inverter.csv corresponding to EOutInv_Sandia > EArray have array voltage far below the fitted Vmin.  The PVsyst inverter doesn't operate during those conditions and outputs its Pnt:
In [48]: df.loc[df['Efficiency_Sandia'] > 1, ['UArray', 'EArray', 'EOutInv']].describe()
Out[48]:
           UArray       EArray  EOutInv
count   21.000000    21.000000    21.00
mean   623.288571  7100.261905    -0.37
std      0.720425    19.037397     0.00
min    622.220000  7073.300000    -0.37
25%    622.910000  7090.300000    -0.37
50%    623.140000  7096.000000    -0.37
75%    623.790000  7112.900000    -0.37
max    625.160000  7152.200000    -0.37

But pvlib.inverter.sandia doesn't do that check (it can't, since it doesn't know the inverter's operating voltage range).  The docstring says:

power_ac is not adjusted for maximum power point tracking (MPPT) voltage windows or maximum current limits of the inverter.

So I think this is expected behavior, albeit not the most user-friendly.

Hey @kanderso-nrel, that was a great explanation.  Thank you, I will close this one out.

Thanks @kurt-rhee for the reproducible report!  Sorry, I didn't necessarily mean that there isn't anything to improve here, I just wanted to point out what the problem is, and that the limitation is documented.  Brainstorming options:
The CEC inverter database does include Mppt_low, Mppt_high, and Idcmax, so it might be reasonable to add those types of checks to inverter.sandia.  Users with parameters from fit_sandia could be required to add those keys themselves.
Another option, in lieu of implementing those checks, is to just add a constraint like power_ac = np.clip(power_ac, a_max=p_dc).  Or even just emit a warning if any(power_ac > p_dc).

My thoughts: the published model assumes that the inverter stays in the voltage range for its MPPT. I think it's OK to extend the model beyond the publication as long as we document in the function's documentation.
I learned last week that the MPPT voltages are not always constants. The values on the datasheets are those at nominal conditions. More motivation to develop and publish a better inverter model.


Jt400: tests are not cleaning after themselves and parallel run fails

fixes https://github.com/apache/camel-quarkus/issues/5999
This PR fixes tests behavior in several corner cases.

Better data clearing - whenever test writes any data. This entry is registered for the removal at the end of the execution. Moreover - it is possible to execute clear all which clears all queues used by the test, This behavior is described in the readme.adoc and is suggested t o use during development.
Parallel executions - it might happen (very easily) that the execution A may influence execution B. I wasn't able to use some locking mechanism, which might be present in jt400. Therefore I added a simple locking mechanism based on the keyed data queue.

Before all tests, the attempt for locking is executed . The lock is released after all. The timeout to achieve log is set to 5 mins, after which the test fails (fi lock is not achieved)
Lock is written in a keyed data queue under hardcoded key cq.jt400.global-lock (described in readme.adoc).
Each execution is able to remove the old lock, if it is more then 5 minutes old.
Also clear-all clears the lock queue, therefore there it tests can not be blocked forever.

More debug logging is added.
Helper method for dumping data is added.

The coverage or test amount stays  the same.

Failure is not related
Failures:
2024-04-15T16:06:35.5931973Z [ERROR]   GroupedAws2KinesisTest>BaseAWs2TestSupport.failingDefaultCredentialsProviderTest:99 Expected java.lang.AssertionError to be thrown, but nothing was thrown.

Just so I understand things better. The docs state Simple locking mechanism is implemented for the test to allow parallel executions..
What that means is that if you start parallel test executions, they will be queued and wait for each other to complete?

Just so I understand things better. The docs state Simple locking mechanism is implemented for the test to allow parallel executions..
What that means is that if you start parallel test executions, they will be queued and wait for each other to complete?

I used a keyed dataque (FIFO).

Each participant saves unique token into a key cq.jt400.global-lock
Each participant the reads the FIFO queue and if the resulted string is its own unique token, execution is allowed
When execution ends, the key is removed

If the token is not its own

read of the token is repeated until timeout or its own token is returned (so the second participant waits, until the first participant removes its token)

Dead lock prevention

part of the unique token is timestamp, if participant finds a token, which is too old, token is removed
action to clear-all data removes also the locking tokens

I tested the scenario several times with 9 parallel executions

Therefore only 1 token (thus 1 participant) is allowed to run the tests, the others have to wait

@jamesnetherton I'll add my previous comment (with explanation) as a code comment to locking method


GetNumberOfLabelObjects() missing in BinaryImageToLabelMapFilter

Testing code (SimpleITK 1.0.1):
import matplotlib.pyplot as plt
%matplotlib inline
import SimpleITK as sitk
import numpy as np
from future import print_function
print('processing...')
img = sitk.ReadImage('label.png')
thinImg = sitk.BinaryThinning(img)
labelImg = sitk.BinaryImageToLabelMap(thinImg, fullyConnected=True)
print(labelImg.GetPixelIDTypeAsString())
print(labelImg.GetNumberOfLabelObjects()) #AttributeError: 'Image' object has no attribute 'GetNumberOfLabelObjects'

I though I left a comment on the issue... Sorry if it was not conveyed.
The specific method you are trying to use was actually not working in ITK proper. Please see the SimpleITK patch for more information.
The RelabelComponentImageFilter implements a similar algorithm. We have also added additional methods there too.
If you currently want to obtain the number of labels in an image before the above patches are merged, you can use the RelabelComponentImageFilter followed by the StatisticsImageFilter or the ShapeLabelStatisticsImageFilter.

Thank you Brad, I was able to use ConnectedComponent image filter followed by LabelShapeStatisticsImageFilter for my task.
I also found out SimpleITK is missing LabelImageToShapeLabelMapFilter, and the LabelImageToLabelMapFilter in SimpleITK also missing the GetNumberOfLabelObjects() function. I feel these are all related and if it is necessary I can open a new ticket for it. Thanks again.

Yes, the sitk::ConnectedComponentsImageFilter has a GetObjectCount method.

The itk::LabelImageToLabelMapFilter filter does not have a "GetNumberOfLabelObjects" method, so that is not missing.

Thesitk::ShapeLabelStatisticsImageFilter does have a GetNumberOfLabels method. This class provides a interface similar to sitk::LabelStatisticsImageFilter for itk::LabelImageToShapeLabelMapFilter.

Why do you think they should have a GetNumberOfLabelObjects method?

I don't know, I was simply following ITK example to use SimpleITK. So here is the thing:

You have fixed the GetNumberOfLabelObjects() function for sitk::BinaryImageToLabelMap
I tested sitk::LabelImageToLabelMap and again the GetNumberOfLabelObjects() function is missing:

lll = sitk.LabelImageToLabelMap(labelImg)
print(lll.GetNumberOfLabelObjects())#AttributeError: 'Image' object has no attribute 'GetNumberOfLabelObjects'
To me the sitk::BinaryImageToLabelMap and the sitk::LabelImageToLabelMap are in the same category and that's why I said "I feel these are all related". If your fix to the sitk::BinaryImageToLabelMap will also update the sitk::LabelImageToLabelMap that will be great.
Sorry my previous comment was not very accurate, instead saying "the LabelImageToLabelMapFilter in SimpleITK also missing the GetNumberOfLabelObjects() function", may be I should say comparing to ITK examples, the output of the sitk::LabelImageToLabelMapFilter doesn't have the GetNumberOfLabelObjects() function available and that may have been fixed by your patch to sitk::BinaryImageToLabelmap but I don't know.

What ITK example are you trying to follow? SimpleITK is a little different than ITK. Much of it is a straight forward translation, but SimpleITK's LabelMap abstraction is a little different.
In the following code:
lll = sitk.LabelImageToLabelMap(labelImg)
print(lll.GetNumberOfLabelObjects()) #AttributeError: 'Image' object has no attribute 'GetNumberOfLabelObjects'

lll is not a sitk.LabelImageToLabelMapFilter it is a sitk::Image object. You are calling the procedural method for the sitkLabelImageToLabelMapFilter, which returns sitk::Image. The sitk::Image object does not have a GetNumberOfLabelObjets, by design unlike the itk::LabelMap.
The SimpleITK Image class is a single template-less abstraction to the itk::Image, itk::VectorImage and itk::LabelMap classes and it can represent just about any pixel type too. More specifically, the SimpleITK's LabelMap representation is just templated over itk::LabelMap<itk::LabelObject<PixelType,ImageDimension> >', and not over any of the label objects which contain statistics data. The SimpleITK design if for this statistics information to reside with the filter the compute them such as sitk.ShapeLabelStatisticsImageFilter. Additionally, most of the method for manipulating the label map are not in the sitk::Imageclass that operate beyond the basicitk::Image` interface.
I hope that helps clarify the situation...but I unfortunately don't know what you are trying to do, so I can't tell you the SimpleITK way to do it.

It does help. I was trying to analysis label statistics and now I have found the proper pipeline in SimpleITK to use the ConnectedComponent followed by the LabelShapeStatisticsImageFilter.
It is in this learning procedure I realized the difference between SimpleITK and ITK. For example, this ITK example shows the usage of GetNumberOfLabels() function on the output of the itk::LabelImageToLabelMapFilter. Now I understand, because of the design difference between SimpleITK and ITK, the usage is not directly transferable between them.
So maybe a short description or notebook example explaining such difference (perhaps there's more difference between SimpleITK and ITK?)  is necessary to help novice users like me.

I believe the questions has been address. Feel free to reopen or create a new issue as needed.


Converting Tensorflow Dataset to iterator does not sync well with client

Hi, I accidentally stumbled upon a problem within the tutorial notebook when playing around with the acme and reverb API that causes a weird synchronization behaviour between sampling from the reverb table and updating priorities. Another artifact of this that I encountered is that the very first transition would be consistently repeated until some hidden tensorflow buffer would be flushed.
What I found is that when I would mutate the priorities in a reverb table using client.mutate_priorities(table_name, my_dict) and then create an iterator from the tf.data.Dataset object, then the priorities would update only after flushing a large number of samples. In contrast, if I didn't convert the tf.data.Dataset to an iterator and used the dataset.batch(n); dataset.take(n) interface, it would immediately sync with the new priorities.
It seems to me that the problem lies with the implementation of __iter__ in tf.data.Dataset, but I posted this issue here since the Colab makes a call to as_numpy_iterator() on the dataset object, and this is also the implementation of the D4PG jax agent. Since this is a silent and obscure bug, this effectively eliminates the possibility of changing the baseline D4PG agent to utilize Prioritized Experience Replay.
Minimal Reproducible example:
import warnings
warnings.filterwarnings('ignore')

import acme

from acme import wrappers
from acme.datasets import reverb as datasets
from acme.adders.reverb import sequence
from acme.jax import utils

import tree
import reverb
import jax

import numpy as np

from dm_control import suite

# Create dummy environment with short episodes to easily dichotomize samples
env = suite.load('cartpole', 'balance')
env = wrappers.step_limit.StepLimitWrapper(env, step_limit=5)
spec = acme.make_environment_spec(env)

# Danger: reverb.Table crashes kernel if run > once
table = reverb.Table(
    name='priority_table',
    sampler=reverb.selectors.Prioritized(priority_exponent=0.8),
    remover=reverb.selectors.Fifo(),
    max_size=10_000,
    rate_limiter=reverb.rate_limiters.MinSize(1),
    signature=sequence.SequenceAdder.signature(spec)
)

server = reverb.Server([table], port=None)
client = reverb.Client(f'localhost:{server.port}')

# Construct adder such that only 1 sample is added to table after an episode.
adder = sequence.SequenceAdder(client, sequence_length=6, period=5)

def new_dataset():
    # Clear old data
    client.reset(table.name)
    return datasets.make_reverb_dataset(
        table=table.name, server_address=client.server_address, batch_size=3
    )

def fill_dataset():
    step = env.reset()
    adder.add_first(step)

    action = env.action_spec().generate_value()
    i = 0
    while (not step.last()) and i < 10:
        step = env.step(action)
        adder.add(action, step)
        i += 1

    env.close()
    adder.reset()

### Example of expected behaviour
dataset = new_dataset()
fill_dataset()

print('before mutation')
for s in dataset.take(1):
    k, p = s.info.key.numpy().ravel(), s.info.priority.numpy().ravel()

    print(s.data.action.numpy().reshape(3, -1))  # (B, T, 1) -> (B, T)
    print('sample priority:', p)

    # Iteratively halve the priorities
    new_priorities = dict(zip(k, p * 0.5))
    client.mutate_priorities(table.name, new_priorities)

print()

print('after mutation')
for s in dataset.take(1):
    # Priorities have been updated --> all probabilities should now be adjusted.

    print(s.data.action.numpy().reshape(3, -1))  # (B, T, 1) -> (B, T)
    print('sample priority:', s.info.priority.numpy())

### Test-cases

print('\nUsing dataset.take')
dataset = new_dataset()
fill_dataset()

# This runs fine
for repeat in range(5):
    for i in range(30): # Flush count guess
        for s in dataset.take(1):
            k, p = s.info.key.numpy().ravel(), s.info.priority.numpy().ravel()

            # Exponentially decay the priorities
            new_priorities = dict(zip(k, p * 0.999))
            client.mutate_priorities(table.name, new_priorities)

        for s in dataset.take(1):
            new_p = s.info.priority.numpy().ravel()
            assert not np.isclose(new_p, p).any(), "priorities did not update!"
    else:
        # No break in for loop
        print('No errors!')

print('\nUsing next on iter(dataset) - Problems start here.')
dataset = new_dataset()
fill_dataset()
it = iter(dataset)

# Repeat the test-loop as behaviour strangely changes periodically
for repeat in range(5):

    for i in range(30): # Flush count guess
        s = next(it)
        k, p = s.info.key.numpy().ravel(), s.info.priority.numpy().ravel()

        # Iteratively halve the priorities
        new_priorities = dict(zip(k, p * 0.999))
        client.mutate_priorities(table.name, new_priorities)

        s = next(it)
        new_p = s.info.priority.numpy().ravel()

        # Priority mutations now sync extremely slowly
        if not np.isclose(p, new_p).all():
            print(f'Priorities updated at flush-step {i}')
            break
    else:
        # No break in for loop : not reached
        print('No errors!')

Output:
before mutation
[[-1. -1. -1. -1. -1.  0.]
 [-1. -1. -1. -1. -1.  0.]
 [-1. -1. -1. -1. -1.  0.]]
sample priority: [1. 1. 1.]

after mutation
[[-1. -1. -1. -1. -1.  0.]
 [-1. -1. -1. -1. -1.  0.]
 [-1. -1. -1. -1. -1.  0.]]
sample priority: [0.5 0.5 0.5]

Using dataset.take
No errors!
No errors!
No errors!
No errors!
No errors!

Using next on iter(dataset) - Problems start here.
Priorities updated at flush-step 24
Priorities updated at flush-step 5
Priorities updated at flush-step 18
Priorities updated at flush-step 5
Priorities updated at flush-step 18

Proposed Solution
The problem is immediately solved if iter(dataset) is called at each call to next. Because of this, I wasn't sure whether to post this issue here or in the tensorflow github, since the problem is with tf.data.Dataset. Personally I would suggest creating a wrapper around tf.data.Dataset for that either makes use of the take and batch API, or reinitialize the iter at every call. Because of how reverb implements sampling, reinitializing the dataset iterator should have no side-effects.
Example solution:

print('\nReinitializing iter on every next call - Problem Solved.')
dataset = new_dataset()
fill_dataset()
it = iter(dataset)  # Ignore this iterator

# Repeat the test-loop as behaviour strangely changes periodically
for repeat in range(5):

    for i in range(30): # Flush count guess
        s = next(iter(dataset))  # CHANGE: call iter(dataset) every time `next` is called
        k, p = s.info.key.numpy().ravel(), s.info.priority.numpy().ravel()

        # Iteratively halve the priorities
        new_priorities = dict(zip(k, p * 0.999))
        client.mutate_priorities(table.name, new_priorities)

        s = next(iter(dataset))  # CHANGE: call iter(dataset) every time `next` is called
        new_p = s.info.priority.numpy().ravel()

        # Priority mutations now sync extremely slowly
        if not np.isclose(p, new_p).all():
            print(f'Priorities updated at flush-step {i}')
            break
    else:
        # No break in for loop : not reached
        print('No errors!')

Output:  ( priorities are updated after every call, which is what we expected).
Reinitializing iter on every next call - Problem Solved.
Priorities updated at flush-step 0
Priorities updated at flush-step 0
Priorities updated at flush-step 0
Priorities updated at flush-step 0
Priorities updated at flush-step 0

Another quick fix that I use is to wrap the reverb dataset inside the following class:
class RefreshIterator:
    """tf.data.Dataset fix for slow reverb client synchronization. Wrap around reverb-dataset."""

    __slots__ = ["_iterable"]

    def __init__(self, iterable):
        self._iterable = iterable

    def __getattr__(self, item):
        return getattr(self._iterable, item)

    def __iter__(self):
        return self

    def __next__(self):
        return next(iter(self._iterable))

    def next(self):
        return self.__next__()

Use:
dataset = datasets.make_reverb_dataset(
    table=my_table.name, server_address=reverb_client.server_address, batch_size=..., ...
)

jax_dataset = utils.multi_device_put(RefreshIterator(dataset).as_numpy_iterator(), ...)


Assertion fails on armv7 when built with NEON

blake3 (c implementation) built for linux/amrv7 with  cmake andNEON support enabled fails on following assert (when used in mold):
ld.mold: /home/users/builder/rpm/BUILD/BLAKE3-1.5.0/c/blake3.c:343: compress_subtree_to_parent_node: Assertion `num_cvs <= MAX_SIMD_DEGREE_OR_2' failed.

It appears to be caused by compilation definition BLAKE3_USE_NEON being defined only for blake3_dispatch.c:
https://github.com/BLAKE3-team/BLAKE3/blob/5aa53f07f7188a569cadfc5daf1522972d9a9630/c/CMakeLists.txt#L134-L134
But not on blake3.c which uses blake3_impl.h and causing MAX_SIMD_DEGREE mismatch:
https://github.com/BLAKE3-team/BLAKE3/blob/5aa53f07f7188a569cadfc5daf1522972d9a9630/c/blake3_impl.h#L51-L70

@jpalus thanks for the report. Your diagnosis seems plausible to me! @BurningEnlightenment can you suggest a CMakeLists.txt fix? Maybe we should also add this case to CI.

The fix should be as simple as
diff --git a/c/CMakeLists.txt b/c/CMakeLists.txt
--- c/CMakeLists.txt
+++ c/CMakeLists.txt
@@ -130,9 +130,9 @@

   target_sources(blake3 PRIVATE
     blake3_neon.c
   )
-  set_source_files_properties(blake3_dispatch.c PROPERTIES COMPILE_DEFINITIONS BLAKE3_USE_NEON=1)
+  set_source_files_properties(blake3.c blake3_dispatch.c PROPERTIES COMPILE_DEFINITIONS BLAKE3_USE_NEON=1)

   if (DEFINED BLAKE3_CFLAGS_NEON)
     set_source_files_properties(blake3_neon.c PROPERTIES COMPILE_FLAGS "${BLAKE3_CFLAGS_NEON}")
   endif()

Maybe we should also add this case to CI.

I don't really fancy getting into the cross compiling business, but I can probably submit a PR later this week.

Since README.md recommends building all sources with -DBLAKE3_USE_NEON=1:
https://github.com/BLAKE3-team/BLAKE3/blob/5aa53f07f7188a569cadfc5daf1522972d9a9630/c/README.md?plain=1#L278-L281
wouldn't it be better to add it to all sources when building with cmake?
diff --git a/c/CMakeLists.txt b/c/CMakeLists.txt
index c73b9c7..116ea58 100644
--- a/c/CMakeLists.txt
+++ b/c/CMakeLists.txt
@@ -131,7 +131,7 @@ elseif(CMAKE_SYSTEM_PROCESSOR IN_LIST BLAKE3_ARMv8_NAMES
   target_sources(blake3 PRIVATE
     blake3_neon.c
   )
-  set_source_files_properties(blake3_dispatch.c PROPERTIES COMPILE_DEFINITIONS BLAKE3_USE_NEON=1)
+  add_definitions(-DBLAKE3_USE_NEON=1)

   if (DEFINED BLAKE3_CFLAGS_NEON)
     set_source_files_properties(blake3_neon.c PROPERTIES COMPILE_FLAGS "${BLAKE3_CFLAGS_NEON}")

That's something @oconnor663 needs to decide, I've kept the build description as close to their original form as possible when I modernized them.
Note that add_definitions() has been superseeded by add_compile_definitions(), however, that is only available from v3.12 onwards, so it should be spelled target_compile_definitions(blake3 PRIVATE BLAKE3_USE_NEON=1) instead. (Modifying directory level properties with add*_definitions() is discouraged in modern CMake, anyways.)

Yes, preprocessor defines like BLAKE3_USE_NEON and BLAKE3_NO_AVX512 should be set the same way for all files in the build. But this is in contrast to CPU feature flags like -mavx2 that we use for building intrinsics, which must only be set for the one matching code file. Maybe we should call both of these things out explicitly in c/README.md?


Add control loop rate as telemetry channel

I end up hacking lines into the Tracker class to print this to the console all the time. Needs to finally be a telemetry channel.
Should probably include:

mean rate (or period)
standard deviation
iteration count

The first two should probably be estimates over the last N iterations (or last T seconds?) since telemetry is not polled synchronously with the control loop.

Added cycle period and count in 232a413f. It is possible to find statistics (mean, standard deviation) on telemetry channels in Grafana so there's no strong need to do it in this codebase.


Support simultaneous deployment of different node versions

https://github.com/api3dao/airnode/issues/204 allows the user to specify multiple deployments. Ideally, the user should be able to specify different node versions to be used in these deployments. Currently, the deployer can only deploy a specific version of the node. For this to be possible, the deployer container should  keep the pre-built+packed versions of all usable versions (would require https://github.com/api3dao/airnode/issues/206).
It is also not clear if this is an actual requirement, which is why I used the discussion label.

This will become possible with https://github.com/api3dao/airnode/issues/240

This was a silly feature and is no longer possible with https://github.com/api3dao/airnode/issues/432


Rendering issue on android (React Native Fabric Arch)

Current behavior
FlashList item is flickering on android and hiding/appearing on scroll on android platform video attached, It is the example provided in fixture, not my code

Expected behavior
Should run smoothly and without any visibility issue

To Reproduce
I am just running fixture examples on android app with Fabric arch enabled!

Platform:

[x] Android

https://github.com/Shopify/flash-list/assets/69900372/2cc6cc63-ce8b-4259-9b14-d2a9839b830d
Environment

"@shopify/flash-list": "^1.5.0",

https://github.com/Shopify/flash-list/pull/550


Adding Letter Combination of a phone number Game

Is your feature request related to a problem? Please describe.
Adding Letter Combination of a phone number Game
Describe the solution you'd like
Adding Letter Combination of a phone number Game
Describe alternatives you've considered
Adding Letter Combination of a phone number Game

@Sulagna-Dutta-Roy Please Assign me the issue

How many points you earned till now from my repo? @Saipradyumnagoud

How many points you earned till now from my repo? @Saipradyumnagoud

70


[User Story] Visibility of daily events

As a system operator, I want better daily indicators for events, such as calibration in the Activity tab, so that I don't miss any days with downtime.

Thank you for the feedback!
Tracked in #42


build framework not found

got this error , trying to build on windows. Not sure how to fix it. Tried manually adding reference but system only had Microsoft Build Framework 4.0 and it didnt do it . Any idea?
Severity	Code	Description	Project	File	Line	Suppression State
Error		Fody: An unhandled exception occurred:
Exception:
Could not load file or assembly 'Microsoft.Build.Framework, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
StackTrace:
Server stack trace:
at System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
at System.Reflection.RuntimeMethodInfo.FetchNonReturnParameters()
at System.Reflection.RuntimeMethodInfo.GetParameters()
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at IInnerWeaver.set_Logger(ILogger value)
at Processor.ExecuteInOwnAppDomain() in c:\ConsoleBuildAgent\work\ed448661dbb30d2e\Fody\Processor.cs:line 146
at Processor.Inner() in c:\ConsoleBuildAgent\work\ed448661dbb30d2e\Fody\Processor.cs:line 93
at Processor.Execute() in c:\ConsoleBuildAgent\work\ed448661dbb30d2e\Fody\Processor.cs:line 45
Source:
mscorlib
TargetSite:
Void GetSignature(Void*, Int32, System.RuntimeFieldHandleInternal, System.IRuntimeMethodInfo, System.RuntimeType)
Could not load file or assembly 'Microsoft.Build.Framework, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
StackTrace:	IpfsMount

I forced a build on appveyor (see https://ci.appveyor.com/project/richardschneider/net-ipfs-mount/build/0.2.1-issue-2.1%2B5.build.44) and it passes.  However, there is some bitrot about SHA3.  This has been removed from ipfs-core.  So I'll update the dependencies and see what happens.
However, I can not reproduce your reported problem.  Which version of Visual Studio are you using?  Initially this was developed with Visual Studio 2014 but is now using VS 2017.
Also, could you check that the following packages are installed with the specific version

package id="Costura.Fody" version="1.6.2"
package id="Fody" version="2.2.0"

Did not mean to close the issue


Fix: MessageConverter error when UserInput only provide MessageID

Summary
MessageConverter and PartialMessageConverter on nextcord.ext.commands.converter should process when user only give MessageID (according to documentation)
But actually you get : nextcord.ext.commands.errors.ChannelNotFound: Channel "None" not found.
This PR fix this issue when channel ID not find in User Input by getting Context channel
Checklist

[x] If code changes were made then they have been tested.

[ ] I have updated the documentation to reflect the changes.

[x] This PR fixes an issue.
[ ] This PR adds something new (e.g. new method or parameters).
[ ] This PR is a breaking change (e.g. methods or parameters removed/renamed)
[ ] This PR is not a code change (e.g. documentation, README, ...)

LGTM (assuming you tested)


src: BTC sign message implemented and tested

Addresses the request in the issue : #49
The implementation of BTC message signing has been completed and it also supports antiklepto verification. Furthermore, a test is added as an example in 'examples' folder.

src: BTC sign message implemented and tested

may I propose a better title? src as context does not say much, almost any change will be in src.
btc: add btc_sign_message() and example
it is shorter, and tested does not mean much if there is no unit test. also generally in commit titles it is better to use the imperative form (e.g. add instead of added) for brevity.

I implemented the requested changes and now pushing a new commit according to them

Okay, I updated the code, adjusting according to your review


ES 6 module?

Pardon my javascript naivety -- is there an es 6 module version of randombytes? Rollupjs has an issue with either crypto or buffer shims I think, and just isn't playing nicely in the browser. Thanks for very useful set up plugins btw, has worked great in my other webpack projects.

Rollupjs has an issue with either crypto or buffer shims I think

I'd focus on this,  not on this module.  :+1:

its crypto some of the elliptical curve stuff doesn't play well if I recal
On Fri, Dec 15, 2017 at 2:16 AM Daniel Cousens<EMAIL_ADDRESS>wrote:

Rollupjs has an issue with either crypto or buffer shims I think
I'd focus on this, not on this module. 👍
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/crypto-browserify/randombytes/issues/12#issuecomment-351931759,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABE4n1fjkoiWP2g01tCP3H9dVS_sQ8Izks5tAhzAgaJpZM4RDB4D
.

@dcousens yes they are aware, was just wondering on your end if there was an es 6 module available. Thanks again

@KayakinKoder you could ES6/babel your exports,  then deal with them that way?
Maybe?


Broken with newer versions of Tensorflow?

I'm attempting to use vanilla HyperGAN, and I got hit by an error which seemed to stem from tf.concat -- "TypeError: Expected int32, got list containing Tensors of type '_Message' instead."
A bit more digging indicated that the Tensorflow API changed regarding the ordering of parameters to tf.concat, and I was able to suppress those errors by regexing through the code and reversing the order of parameters. To me, that seems to indicate that the issue is that I'm using a newer Tensorflow version than the one for which HyperGAN was written.
I've now got another set of errors that I suspect have the same root cause (Tensorflow version) -- "ValueError: Only call softmax_cross_entropy_with_logits with named arguments (labels=..., logits=..., ...)"
I'm presently on Tensorflow version '0.12.head'
I have no idea how much work is required to make HyperGAN work with newer versions of Tensorflow, nor am I advocating for that to happen. I do think, however, that it would be very helpful to users to indicate with which versions of Tensorflow HyperGAN is confirmed to be compatible.
Thanks!

Hypergan 0.8 (develop branch) has support for Tensorflow 1.0.
The pip package is out of date at the moment(oops :))  We'll add an explicit tensorflow requirement so others don't hit this in the future.
Once 0.8 develop is merged into master we can close this ticket.
Thanks for letting us know!

Thanks very much!

0.8 merged


Fix typos in docs for Signal.prototype.scale

I am an audio noob so I'm not sure if this is right, but it seems like a typo...

thanks @toolness ! Sorry I missed this, I've been in the process of revisiting signal math for p5.sound in general in response to our conversation. This is helpful in the meantime


My bug report

Steps to reproduce

Expected behavior

Actual behavior

Environment data

Steps to reproduce

Expected behavior

Actual behavior

Environment data

Steps to reproduce

Expected behavior

Actual behavior

Environment data


Jekyll Project?

Hi Travis,
in the repo I see only the gh-pages branch. Is there a master branch available as well for rebuilding the project locally?
Tnx and best regards from Germany,
Leo

@Lego2012 The gh-pages branch is the main branch here. You can rebuild the project without any problems by cloning it. :)

Tnx, Niklas, you're right. I didn't look carefully and thought this is the final build.
Regards, Leo

@Lego2012 Kein Ding Leo! :de:


YOLOv4-Tiny model is not compatible?

For speed up of detection, i tried yolov3-tiny model. But it causes a panic. can i used it?

Hello Sikan, Every model has slightly different output layers. I.e. it differs in how a model reports which "object was detected". Given that you experienced a panic, I'm guessing yolov3-tiny also differs slightly.
I currently don't have a lot of time, but I'll consider to add support in the future. If you want to do that yourself, feel free to open a PR!


Add dataclasses dependency Py3.6

Fixes #4301

Codecov Report

Merging #4306 (ece5991) into master (c0853aa) will decrease coverage by 0.07%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #4306      +/-   ##
==========================================
- Coverage   95.08%   95.01%   -0.08%
==========================================
  Files         493      493
  Lines       55314    55314
==========================================
- Hits        52596    52557      -39
- Misses       2718     2757      +39

Flag
Coverage Δ

servertests
?

test_responses
32.74% <ø> (ø)

unittests
94.99% <ø> (ø)

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

Impacted Files
Coverage Δ

moto/core/models.py
88.96% <0.00%> (-7.66%)
:arrow_down:

moto/core/responses.py
93.04% <0.00%> (-0.46%)
:arrow_down:

moto/s3/responses.py
95.43% <0.00%> (-0.18%)
: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 c0853aa...ece5991. Read the comment docs.


Question on Setup Descriptors

For setting up a device in our lab we tend to name things in terms of qubits and couplers as we do not drive two qubit gates directly using the qubits. Instead we use these intermediate elements.
If I were to set a descriptor for one of my hdawgs as follows, does the inclusion of a cx/flux_line mess with the name space? I.e is everything for LabOneQ dependent on the label parsing a qx value or is the name just an identifier which can be handled internally by the API and I can distinguish based on c labels and q labels?
device_hdawg2:
    - iq_signal: q5/drive_line
      ports: [SIGOUTS/4, SIGOUTS/5]
    - iq_signal: q5/drive_line_ef
      ports: [SIGOUTS/4, SIGOUTS/5]
    - rf_signal: c1/flux_line
      ports: [SIGOUTS/0]
    - rf_signal: c2/flux_line
      ports: [SIGOUTS/1]
    - rf_signal: c3/flux_line
      ports: [SIGOUTS/2]
    - rf_signal: c4/flux_line
      ports: [SIGOUTS/3]

Hi @warrench,
The example you wrote will work, you will then have LogicalSignalGroups named "c1", "c2" etc - The naming convention for logical signals is "logicalsignalgroup_name/signal_name", where both are expected, otherwise there are no restrictions.

Hi @warrench ,
just to tighten my last comment, the path name can only contain two parts separated by the / - no additional separations should be added. I.e. there is an implicit restriction on the signal and group names, in that they are not supposed to contain slashes.


no toolbox in Green menu

hi
i activated testmode with obdeleven but toolbox not shown in GEM 4.11
MST2_EU_SK_ZR_P0480T.
please need your help.

hi
i activated testmode with obdeleven but TOOLBOX not shown in GEM 4.11
MST2_EU_SK_ZR_P0480T. no NAV
please need your help


Support dynamic password lengths for Rails > 5.2

Hello,
Rails now supports  length validator to have dynamic min and max values.
I feel this would be a nice addition to have Devise support this feature. I have made the change such that no current installations of Devise will have trouble with this change. Everything should work as perfectly as before.
This change is useful for instances where applications have the need to support dynamic password lengths, without a system restart. Such applications will just have to override the password_length method in their own classes to support dynamic password lengths.
Real world use case: We have been trying to implement dynamic password length at GitLab. Implementation issue: https://gitlab.com/gitlab-org/gitlab/issues/36776
Right now, we have implemented the same using a monkey patch for the password length validator

Hello @tegon, could you kindly review? 🙂

@carlosantoniodasilva could you please review? 🙂

@manojmj92 sorry about the delay here, things have been a bit crazy but this is on my radar to get back to you. Thanks for the work.

Hello @carlosantoniodasilva, could you please review? 🙂

@manojmj92 yes, my apologies, this one slipped through the cracks, appreciate the ping. I've recently started to catch up on some of the issues/PRs here and this one is high on my radar, I'll get to it soon, just have a few other things to wrap up first.

Such applications will just have to override the password_length method in their own classes to support dynamic password lengths.

It would be helpful to see an example, maybe in the CHANGELOG. I found https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/models/user.rb#L488 which gave me a better idea of what's being proposed.


TFLMicro mul kernel input shapes broadcasting

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Mac OS 10.14.6
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary): source
TensorFlow version (use command below): 2.2 (master)
Python version: 3.7

Describe the current behavior
tensorflow/lite/kernels/mul.cc kernel does not appear to be working with inputs that need broadcasting. An example pair of input shapes is (1, 1, 13) and (13,). Here is a test case that fails:
TF_LITE_MICRO_TEST(FloatBroadcast2) {
  float output_data[6];
  tflite::testing::TestMulFloat(
      {2, 1, 6},                      // input1 shape
      {-2.0, 0.2, 0.7, 0.8, 1.1, 2.0},      // input1 data
      {1, 6},                               // input2 shape
      {0.1,0.1,0.1,0.1,0.1,0.1},                                // input2 data
      {2, 1, 6},                      // output shape
      {-0.2, 0.02, 0.07, 0.08, 0.11, 0.2},  // expected output data
      output_data, kTfLiteActNone);
}

> make -f tensorflow/lite/micro/tools/make/Makefile test_kernel_mul_test
tensorflow/lite/micro/tools/make/Makefile:280: warning: overriding recipe for target 'tensorflow/lite/micro/tools/make/downloads/person_model_grayscale'
tensorflow/lite/micro/tools/make/Makefile:280: warning: ignoring old recipe for target 'tensorflow/lite/micro/tools/make/downloads/person_model_grayscale'
tensorflow/lite/micro/testing/test_linux_binary.sh tensorflow/lite/micro/tools/make/gen/osx_x86_64/bin/kernel_mul_test '~~~ALL TESTS PASSED~~~'
tensorflow/lite/micro/testing/test_linux_binary.sh: line 46: 22443 Abort trap: 6           $1 > ${MICRO_LOG_FILENAME} 2>&1
make: *** [tensorflow/lite/micro/tools/make/Makefile:340: test_kernel_mul_test] Error 134

Describe the expected behavior
The kernel is supposed to broadcast inputs if necessary.
Other info / logs
It appears that the problem is in ProcessBroadcastShapes(). If in EvalFloat() in mul.cc, I force broadcast using TF_LITE_MUL(BroadcastMul4DSlow), I get correct results.

Hi @Abhipray !
We are checking to see whether you still need help in this issue . Have you checked in latest TF versions yet(TF 2.6/2.7) yet . Thanks!


Need wizard for quick setup of new company.

Add Staff
Provide email
Add Service
Select your 20 services from global services and add new if required.
Add Team
Create your teams, And attach staff and service to it.
Add Year & Period
Select your year and period from global.
Add Company  Import
excel for company.
Add Contact  Import
excel for contact.
Attach Service
Select applicable [20]service in front of every client.
Attach Contact
Attach contact to companies using drpdwn. [List view of comp]
Import Multiple projects
https://docs.google.com/spreadsheets/d/1h-LWb2V5GE9ZtKM1-9emwUpUIlAFmWV1Ln3lbxcQZW4/edit?usp=sharing

1. Settings
2. Add Staff
3. Import Service + Schedulers[max 100]
4. Import Company & Contact
5. Team
6. Import Multiple Projects


Haskell Style FlatMap

This PR adds a haskell style flatMap
Motivation
This adds a flatMap that works the way that other stream of values over time implementations work.  Specifically it let a Signal that returns a Signal flatMap so that the next block gets the inner values.
This style of flatMap was request in PR #15
@b123400 mentioned that

the idea of flatMap from Haskell, which is >>=.
The flatMapping function should expect a function that returns a signal, which means
flatMap : ( T -> Signal ) -> Signal
Because Result is not a Signal, it is not flatMapping. To be accurate, the current flatMap function is flatting a Result, but mapping a Signal, which is not what a signal should be doing.
If you want to add error handling to signal, it should be a Signal<Result>.
If you want a error stream, you can use filter to transfrom a Signal<Result> to a Signal.
The current implementation of Signal is actually 2 signals combined, one for Result.Success and one fore Result.Error

A quick Example
Here's a toy example to show flatMap and map working together:
let baseCost = Signal<Int>()

let total = baseCost
    .flatMap { base in
        // Marks up the price
        return Signal(base * 2)
    }
    .map { amount in
        // Adds sales tax
        return Double(amount) * 1.09
    }

total.next { total in
    print("Your total is: \(total)")
}

baseCost.update(10)
baseCost.update(122)

/* Output:
Your total is: 21.8
Your total is: 265.96
*/

A more complete example can be seen in the playground attached to this PR.
Work Done

[X] Add flatMap implementation
[X] Add documentation about flatMap

[X] Update Readme
[X] Update playground

[X] Add a test
[X] Pull Request description

Work Left Not Done

Refactoring existing flatMap, map into "then" API

Thank you very much for your detailed work. I really love your space station example!


Add auto MT to Crowdin

CrowdIn offers many MT option.
I've activated only Google Translate, however it's horrible.
I wish someone activate this translation. What we have to do is just connecting the API.
I think there's no way other than each individual provides API as a manager. To let other community members use MT.
If you have favorite MT, then add it, please!

For me, DeepL translation is better.
How can I add to that list?

For me, DeepL translation is better.

All right. To apply the DeepL translation, you have to get an API key in the DeepL and register it on the Crowdin.

The community will pay the cost it takes.
Crowdin:
Let me invite you as a manager.
I need your account name to invite you to the project on the Crowdin.


ENOENT: no such file or directory, scandir '.serverless/requirement'

When I run sls deploy I get the following error multiple times in a row:
Error: ENOENT: no such file or directory, scandir '.serverless/requirements'
Each time, I verify that .serverless/requirements does in fact exist, it is a symlink to a cache folder of pip packages in my home directory. If I run sls deploy 3 or 4 times without changing anything, on the 3rd or 4th try it will run with no error. I am running on Win10/WSL2 but have never had issues with symlinks.
Serverless: Zipping required Python packages...

  Error --------------------------------------------------

  Error: ENOENT: no such file or directory, scandir '.serverless/requirements'

     For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.

  Get Support --------------------------------------------
     Docs:          docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues
     Issues:        forum.serverless.com

  Your Environment Information ---------------------------
     Operating System:          linux
     Node Version:              12.18.1
     Framework Version:         1.78.1 (standalone)
     Plugin Version:            3.7.0
     SDK Version:               2.3.1
     Components Version:        2.33.4

We're seeing this exact same issue with  the following pythonRequirements section in our YML:
    dockerizePip: non-linux
    zip: true
    #Get rid of unnecessary package files
    slim: true
    #But keep necessary binary files to avoid "ELF load command address/offset not properly aligned"
    strip: false```
It fails and fails in Gitlab, but occasionally (every third try or so) it works.

I had the same exact issue... hope someone can help

Any update on this?

Issue

NOTE: Scroll down for workaround/solution.

Came across this issue in my Gitlab CI pipeline when running this command in a gitlab build job:

sls package --region $AWS_REGION --stage $CI_ENVIRONMENT_NAME --package .serverless

And passing the created artifact to a gitlab deploy job which runs:

sls deploy --region $AWS_REGION --stage $CI_ENVIRONMENT_NAME --package .serverless

Serverless Error ----------------------------------------

  Cannot read file artifact ".serverless/pythonRequirements.zip": ENOENT: no such file or directory, stat '.serverless/pythonRequirements.zip'

  Get Support --------------------------------------------
     Docs:          docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues
     Issues:        forum.serverless.com

  Your Environment Information ---------------------------
     Operating System:          linux
     Node Version:              16.3.0
     Framework Version:         2.70.0 (local)
     Plugin Version:            5.5.3
     SDK Version:               4.3.0
     Components Version:        3.18.1

Why this happens
According to the serverless-python-requirements documentation, caching is enabled by default.
What this does is it changes the paths to (among other things) pythonRequirements.zip to a symlink. You can see this if you download the artifact to your local machine - in gitlab you can't see symlinks in the gui:
total 96
drwxr-xr-x@ 9 user  group    288 Jan  7 10:08 .
drwxr-xr-x@ 3 user  group     96 Jan  7 10:17 ..
-rw-r--r--@ 1 user  group   4986 Jan  7 10:08 project.zip
-rw-r--r--@ 1 user  group   2077 Jan  7 10:08 cloudformation-template-create-stack.json
-rw-r--r--@ 1 user  group  10379 Jan  7 10:08 cloudformation-template-update-stack.json
lrwxrwxrwx@ 1 user  group    133 Jan  7 10:08 pythonRequirements.zip -> /home/user/.cache/serverless-python-requirements/ff8b23b818b507958ef9b61047f665cde924fc7342f352dc2c6c1487333df041_x86_64_slspyc.zip
lrwxrwxrwx@ 1 user  group    129 Jan  7 10:08 requirements -> /home/user/.cache/serverless-python-requirements/ff8b23b818b507958ef9b61047f665cde924fc7342f352dc2c6c1487333df041_x86_64_slspyc
-rw-r--r--@ 1 user  group    131 Jan  7 10:08 requirements.txt
-rw-r--r--@ 1 user  group  20447 Jan  7 10:08 serverless-state.json

The result is that the symlinks of these files get passed on as artifacts to the next job instead of the files themselves. And since it's a different job, the .cache directory doesn't exist, which results in the file not found error.
Solution / Workaround
You can disable caching by setting both useDownloadCache & useStaticCache to false.
custom:
  pythonRequirements:
    useDownloadCache: false
    useStaticCache: false

This fixed it for me.

I did that and I still have this problem.

For what it's worth, in my original report of this issue I was running deploys manually on my local machine. There was no CI involved and it seemed to be purely an issue with the plugin.

What worked for me was that i had to add a requirements.txt file with all my dependencies, and remove useDownloadCache and useStaticCache

I am also experiencing this
╰─ sls deploy
Running "serverless" from node_modules

Deploying ...omitted... to stage dev (us-east-1)
WarmUp: Creating warmer "default" to warm up 1 function

✖ Stack ...omitted... failed to deploy (9s)
Environment: darwin, node 14.17.4, framework 3.21.0 (local) 3.21.0v (global), plugin 6.2.2, SDK 4.3.2
Credentials: Local, "default" profile
Docs:        docs.serverless.com
Support:     forum.serverless.com
Bugs:        github.com/serverless/serverless/issues

Error:
[OperationalError: ENOENT: no such file or directory, scandir '.serverless/requirements'] {
  cause: [Error: ENOENT: no such file or directory, scandir '.serverless/requirements'] {
    errno: -2,
    code: 'ENOENT',
    syscall: 'scandir',
    path: '.serverless/requirements'
  },
  isOperational: true,
  errno: -2,
  code: 'ENOENT',
  syscall: 'scandir',
  path: '.serverless/requirements'
}

For anyone coming across this - it seems if slimPatternsAppendDefaults is set to false, this error occurs. After hours of trying, I turned slimPatternsAppendDefaults: true and commented out my slimPatterns section and was able to deploy.
Very frustrating.

What helped me is adding requirements.txt to the service folder (next to the serverless.yml). I am deploying via Serverless'es CI/CD (by committing to the branch, not from local machine)

Hey @Marouane-Ben-Abbou 👋 Sorry that there was no activity on this issue, but due to it being quite old it was never prioritized. I'm happy to look into it though if time permits. So I understand you're running into this issue currently? Any chance you would be able to post a reproducible scenario of then this bug occurs? Having a reproducible example would tremendously help with debugging/fixing.

Yes, I am experiencing it today.


[UPDATE] adjust structure for new julia.quantecon.org s3 bucket

This PR makes adjustments for the new julia.quantecon.org s3 bucket structure.
Tasks:

[ ] add new landing page
[ ] add about page
[ ] update julia theme to new independent theme adjusted for new hosting context

@jstac  @mmcky  I am done my edits on the about.rst.  Sorry it took me so long.
It isn't quite where I would want it to be in the longrun (comparing to the code examples in the python lecture), but I think the advice is all appropriate.  Next spring I think that the zygote and other packages will be sufficiently stable that we can give a code example to bring together the idea of package composition and pervasive AD.
So, feel free to edit it as you wish (and even radically remove stuff if you think it is inappropriate) but I am not planning to work on it further.  @arnavs  can help you when appropriate for the final push on teh separate buckets and to test out this page/check the output links/etc.

thanks @jlperla that is a big help.

@mmcky to fix latest warnings
/home/ubuntu/repos/lecture-source-jl/source/rst/more_julia/data_statistical_packages.rst:51: WARNING: Title underline too short.

Constructing and Accessing a DataFrame
-----------------------------------
/home/ubuntu/repos/lecture-source-jl/source/rst/more_julia/version_control.rst:7: WARNING: Duplicate explicit target name: "github desktop".
/home/ubuntu/repos/lecture-source-jl/source/rst/troubleshooting.rst:45: WARNING: image file not readable: _static/lecture_specific/troubleshooting/launch.png
/home/ubuntu/repos/lecture-source-jl/source/rst/troubleshooting.rst:22: WARNING: unknown document: getting_started


Fix "feature-state" shortcode rendering within "tab" shortcode

This PR addresses the rendering issue encountered when using the feature-state shortcode within the tab shortcode.
Problem:  The tab shortcode struggles to render nested feature-state shortcode content correctly, resulting in raw HTML output as reported in https://github.com/kubernetes/website/issues/45191#issue-2140757972. This occurs due to spacing and indentation, which disrupt the tab layout (The behavior is identical when employing the 'note' shortcode with indentation; it disrupts the tab layout).
Changes: Removal of indentation within the  feature-state shortcode output so that tab shortcode can function properly.
Outcome: The feature-state shortcode now renders accurately  within the tab layout and other contexts.
Fixed Preview Page (check "Namespaced" tab) | Broken Current Page (check "Namespaced" tab)
Fixes https://github.com/kubernetes/website/issues/45191
/area web-development

Thanks
/lgtm
/approve

I wonder if the tab shortcode should use RenderShortcodes.
Thoughts on that?


How can I delete blog posts without the blog breaking down?

Hello, it seems that there is an issue with post deletion and GraphQL? Has anyone encountered this or is this just me?
GraphQL Error Unknown field category on type frontmatter_2

@DemGiran
There must be at least one post with category property. If you do not want to use category feature you have to edit graphQL queries.

@DemGiran you have to remove ".cache" folder and re-run.


Is there a Java version available

the version is kotlin，is there a Java version available？

This version is an Android version for both Kotlin and Java.
I believe you are looking for a version in the JVM. I thought about it multiple times but could not find a way to have a project that supports both JVM and Android.
Maybe I should have a look on Kotlin Multiplatform? Maybe with a gradle variable?


How I can install trdrop and use framerate counter... Help plz

Trdrop setup steps
How use framerate counter

Check out the release page - https://github.com/cirquit/trdrop/releases and download the installer.
Then load a video and click through the interface for whatever you feel you want to do. I think there might be some videos on yt with explanations as well.


Problem while compiling injector

More than 43 errors appear when trying to compile the injector! How to fix this, and what version of Visual Studio do you have?

I use VS Code, but should compile fine on VS2019. Please provide more information as to what errors you are having.

Uploading bandicam 2021-03-16 12-10-20-050.mp4…

Sorry for the errors in Russian, try to find the error code on the Internet on the Microsoft website

Help Me Understand Your Problem
I don't mean to be rude, but It's not my job to sift through the Russian errors, and look everything up for you. It's a waste of time for me, and is something you should be doing, since you are the one asking for help. At least help me understand the problem. Don't leave everything to me.
Compilation Instructions
You should be able to compile by simply running the .bat file. If you want to compile it in visual studio make sure you compile with the "c++latest" language option. Also, I don't know why you created a console application project. Just create an empty project and move everything in there. Everything is functioning as is and all the code was included in the repository. Of course I can't guarantee it will compile, because I don't know specifically what you are doing. It seems you have created a separate project with completely different settings. I'm sorry I never specified any instructions. I'll make sure to fix that right now.
Further Support
TLDR; I can't help you with an altered version of the project since I do not have access to your source code, and it is probably a modified version of it. There is no way to read your mind. You have not provided any background information. I see you have modified version of the project, but you never disclosed this, or gave any additional information that would aid me in helping you. My discord ID (ses#1997) is attached on my profile if you need further assistance. It would make helping you a lot easier if you can add me so I can address the problem directly.

No reply. Issue will be closed.


vpp crashes when attempting to run in Pod in host networking

When attempting to run vpp in a Pod in host networking, it crashes immediately with:
/usr/bin/vpp[17659]: received signal SIGBUS, PC 0x7fd2f01d58ba
/usr/bin/vpp[17659]: #0  0x00007fd2f0c6697d 0x7fd2f0c6697d
/usr/bin/vpp[17659]: #1  0x00007fd2f07bc890 0x7fd2f07bc890
/usr/bin/vpp[17659]: #2  0x00007fd2f01d58ba 0x7fd2f01d58ba
/usr/bin/vpp[17659]: #3  0x00007fd2f054d4f2 0x7fd2f054d4f2
/usr/bin/vpp[17659]: #4  0x00007fd2f054f673 clib_pmalloc_create_shared_arena + 0x213
/usr/bin/vpp[17659]: #5  0x00007fd2f0c46cf3 vlib_physmem_shared_map_create + 0x23
/usr/bin/vpp[17659]: #6  0x00007fd2f0c1b561 vlib_buffer_main_init + 0x151
/usr/bin/vpp[17659]: #7  0x00007fd2f0c3b70a vlib_main + 0x12a
/usr/bin/vpp[17659]: #8  0x00007fd2f0c65a56 0x7fd2f0c65a56
/usr/bin/vpp[17659]: #9  0x00007fd2f053bfc4 0x7fd2f053bfc4

(note: log captured from different run than corefile, so take mem addresses with a grain of salt)
vpp-deb.tar.gz contains the Debian packages (and debug files) needed to debug this problem with gdb.  See the README.md in the tarball for info on what git commit it was built from.
You can download the core file from the crash

In the event you need to recreate the crash, I've created #758.
#758 simply sets up a pretty simple scenario where the vppagent-dataplane Pod runs without really doing anything, to allow you to run vpp there yourself.
To recreate follow these instructions to setup core file capture on both master and worker.
make k8s-vppagent-dataplane-save
make k8s-vppagent-dataplane-deploy
kubectl get pods # To get the name of a vppagent-dataplane Pod
kubectl exec -it ${name of a vppagent-dataplane Pod} /bin/sh

Once execed into the Pod:
/usr/bin/vpp -c /etc/vpp/vpp.conf

This should crash immediately with a SIGBUS error.

Can you be so kind and capture backtrace with gdb (one above is missing symbol names), so I don't need to download 1.1G core file?
Is this reproducible with simple docker image?

@artem-belov To get the debug image going, you will want recreate the vppagent:v1.8 docker image but installing the vpp-dbg rather than the vpp deb packages.  That should be accomplishable by changing:
https://github.com/ligato/vpp-agent/blob/v1.8/docker/prod/Dockerfile#L28
From
/opt/vpp-agent/dev/vpp/build-root/vpp_*.deb \

to
 /opt/vpp-agent/dev/vpp/build-root/vpp-dbg_*.deb \

and
https://github.com/ligato/vpp-agent/blob/v1.8/docker/prod/Dockerfile#L34
from
&& dpkg -i vpp_*.deb vpp-lib_*.deb vpp-plugins_*.deb \

to
&& dpkg -i vpp-dbg_*.deb vpp-lib_*.deb vpp-plugins_*.deb \

@edwarnicke There is docker/dev/build.sh doing this stuff already I suppose. At least I've used it to build local vppagent with debug vpp.

@haiodo Awesome!  Lets do that :)

@artem-belov @haiodo mentioned you were having some reproduction issues.
When running in Vagrant using either VMWare or Virtualbox (I tried both), everything works as long as I don't set 'hostNetwork: true'... but if I set 'hostNetwork:true' I do get the SIGBUS error, and if I change it back... I still get the SIGBUS error... everytime I try, until I reboot the Vagrant (vagrant destroy -f;vagrant up)...
So it should be quite reproducable from Vagrant.

OK... just noticed something:
#764 passes CI... which strongly suggests the issue is specific to Vagrant.

OK, additional observation:
When running in hostNetwork:true, I see:
/usr/bin/vpp[21872]: clib_sysfs_prealloc_hugepages:261: pre-allocating 7 additional 2048K hugepages on numa node 0

when running without hostNetwork:true, I see:
/usr/bin/vpp[7709]: buffer: vlib_physmem_shared_map_create: pmalloc_map_pages: failed to mmap 7 pages at 0x7f6d66000000 fd 4 numa 0 flags 0x2011: Cannot allocate memory
/usr/bin/vpp[7709]: buffer: falling back to non-hugepage backed buffer pool

Also, I've built and pushed a edwarnicke/vpp-agent-debug:v1.8 docker container which is up in dockerhub... though it doesn't seem to produce any more data in the traces.

@edwarnicke Thank you, it helped. Just reproduced issue with hostNetwork: true

 if ((ftruncate (a->fd, size)) == -1)
	goto error;
...
va = pm->base + (((uword) vec_len (pm->pages)) << pm->def_log2_page_sz);
  if (mmap (va, size, PROT_READ | PROT_WRITE, mmap_flags, a->fd, 0) ==
      MAP_FAILED)
    {
      pm->error = clib_error_return_unix (0, "failed to mmap %u pages at %p "
					  "fd %d numa %d flags 0x%x", n_pages,
					  va, a->fd, numa_node, mmap_flags);
      goto error;
    }

  clib_memset (va, 0, size);

memset generates the SIGBUS

Oh that great work your're doing here!

@artem-belov question here is how to fix :-)

OK, so you are saying that mmap does not fail (rv != MAP_FAILED) but writing to mapped memory is causing sigbus. Correct?

@dmarion Correct

@dmarion Could this be related to the difference in lines about Hugepages above?
It sort of feels like when running in hostNetwork:true, vpp can see that there are Hugepages, but lacks the permission to access them... but tries to use them anyway.

Doing a bit more research, it looks like we are somehow discovering that hugepages are a theoretical possiblity even though we don't have a hugetlb cgroup needed to have proper access to them.

@artem-belov @dmarion Would it possibly make sense to fstat the mmaped a->fd to see if its the size we expect?  since we are getting an errorless mmap and ftruncate, but clearly something is not as it should be?

@artem-belov @dmarion This also looks promising:
https://stackoverflow.com/questions/37954675/getting-sigbus-after-mmap-for-huge-pages-even-though-hugepages-free-is-positive

@edwarnicke Size and permissions are correct. Ftruncate works properly.

@artem-belov I presume that size and permission are from checking with fstat?
Did the mincore() suggestion yield any fruit?

@edwarnicke I will double check, but I think mincore helps to avoid sigbus.

@artem-belov Does that mean we could use mincore to fix our crashing issue here?

@edwarnicke With that fix we will avoid crash by using non hugepage buffer

Created pull request
https://github.com/FDio/vpp/pull/13

Please push to
https://gerrit.fd.io/ .  The github.com is just a mirror of the Gerrit for fd.io at this time

https://gerrit.fd.io/r/#/c/17838/

I made fix to allocate 4 Kb pages skipping mincore . For some reason if Pod configured without
securityContext:
            privileged: true

mincore shows wrong allocation of 4 Kb page even if everything is correct.
Both fixes 757, 775 rebased to 6b4a32ded6d3db56d886e79154e8329bdfc0ed2a are available  here
https://github.com/artem-belov/vpp/commits/pr_huge_page_sigbus

@artem-belov Cool... did this go upstream in https://gerrit.fd.io/r/#/c/17838/ ? :)

@edwarnicke Yes

@edwarnicke after the awesome work you and @artem-belov did, we could probably close this one?

@artem-belov @edwarnicke I'll close this one. Fill free to re-open if you think it is not solved.


STAC Query to Catalog DataFrame

There needs to be functionality to convert a STAC query in to a catalog.  Catalogs will be represented by a DataFrame.

Just a STAC query or an entire STAC as well?

A STAC query in this case can call an entire set of collections if so desired.


screen usage on controllers

might also be worth adding a page talking about controllers - but more specifically the usage of the screen and possible layouts
this would be in regards to the work moin has done both overall and with their recent suggestions from sumnerboy on discord.
any possible layout or data in regards to other configurations between input and output options that someone my build could / may be discussed.

Yep good idea. The plan is to provide a library for makers and firmware writers which makes accessing the screen easy and consistent.
But that is optional of course and you can do whatever you like if needed.
But a page explaining all this is a good idea.


Disabling Keyboard Input

Hi, I'm trying to figure out how I could disable keyboard input and then re-enable it when I need it later in my code, please help.

Python version and bitness: Python3
Platform and OS: Repl.it
Edition: Windows 10 home

The discussion about it was going in #673. Might be useful for your needs.

@vasily-v-ryabov I'm using the website Repl.it, and I want to make it so I can call on a command to disable keyboard input, then re-enable it with another command.

Not sure BlockInput would work from this website. Maybe it's worth thinking about sys.stdin overriding if you want to block stdin. Of course original sys.stdin object should be cached to a temp variable.

@vasily-v-ryabov Ok, I will try that, but just so you can know, I'm using Python to create a text adventure game, where at the start, before it shows the title, I have a fake loading screen, so I want to disable the keyboard input, until the fake loading is over, just so you can type on the keyboard, but nothing will display into the console, until after the fake loading is over.

@ScullCandy72 Hey, I have the same exact problem. I'm using Repl.it too. I'm trying to do Threading/ Multiprocessing with readchar.readkey() so that everything that is typed is eaten up and not printed on the console, but this isn't working properly. I keep having issues with infinite loops. Any updates on a possible solution on your part?

@ScullCandy72 hey there i am also working on a similar project (text adventure game) and have a fake loading screen as well. in my game I print text char by char to give the pokemon game feel, but when running the game I also wish to block keyboard input when its printing the char by char text. just wondering if you found a solution?


Binary primary key issue with json_encode

I'm using binary uuid as primary key for mysql (https://stitcher.io/blog/optimised-uuids-in-mysql) and sentry having trouble with it, because of json_encode https://github.com/getsentry/sentry-php/blob/master/src/Util/JSON.php#L27
dump $data in JSON::encode :
-metadata: array:2 [
  "connectionName" => "127001"
  "bindings" => array:1 [
    0 => b"õà\x1CPnä\x11ÚÖô?ÖØ SO"
  ]

I've try replace JSON_UNESCAPED_UNICODE with JSON_INVALID_UTF8_SUBSTITUTE or JSON_INVALID_UTF8_IGNORE, which is working (but only available in php7.2)
Should I do a PR checking php version and replacing that ?

@kocoten1992 this seems like it could be an issue indeed, could you specify what kind of trouble you are running into? Are events not being sent or are they displayed incorrectly inside Sentry?

@stayallive thank for taking interest in this, event was unable to sent:
In JSON.php line 28:

  Could not encode value into JSON format. Error was: "Malformed UTF-8 characters, possibly incorrectly encoded".

PHP Fatal error:  Uncaught InvalidArgumentException: Could not encode value into JSON format. Error was: "Malformed UTF-8 characters, possibly incorrectly encoded". in /var/www/myproject/releases/20190505003705Z/engine/vendor/sentry/sentry/src/Util/JSON.php:28
Stack trace:
#0 /var/www/myproject/releases/20190505003705Z/engine/vendor/sentry/sentry/src/Transport/HttpTransport.php(78): Sentry\Util\JSON::encode(Object(Sentry\Event))
#1 /var/www/myproject/releases/20190505003705Z/engine/vendor/sentry/sentry/src/Client.php(105): Sentry\Transport\HttpTransport->send(Object(Sentry\Event))
#2 /var/www/myproject/releases/20190505003705Z/engine/vendor/sentry/sentry/src/Client.php(96): Sentry\Client->captureEvent(Array, Object(Sentry\State\Scope))
#3 /var/www/myproject/releases/20190505003705Z/engine/vendor/sentry/sentry/src/State/Hub.php(140): Sentry\Client->captureException(Object(Exception), Object(Sentry\State\Scope))
#4 /var/www/myproject/releases/20190505003705Z/engine/app/Exceptions/Handler.php(38): Sentry\State\Hub->captureException(Obj in /var/www/myproject/releases/20190505003705Z/engine/vendor/sentry/sentry/src/Util/JSON.php on line 28

In JSON.php line 28:

  Could not encode value into JSON format. Error was: "Malformed UTF-8 characters, possibly incorrectly encoded".

When I've either replace with the new JSON options:
In MyFile.php line 297:

  XERR1480: my project exception message

@kocoten1992 this needs to be fixed in https://github.com/getsentry/sentry-php really but we think doing something with the JSON serializer shouldn't be needed since we should already be converting to valid UTF-8 inside the serializer, something might be going wrong there, we're looking into it!

I can reproduce this issue using the latest Sentry integration with Laravel 5.8. Passing any kind of binary data to Sentry handler crashes it. Maybe it should run the invalid data through bin2hex() or some other kind of sanitizer before loading to JSON encoder?
Disabling breadcrumbs seems to work around it but I hope there will be a fix soon. I couldn't find a relevant issue from the getsentry/sentry-php repo yet?
diff --git a/config/sentry.php b/config/sentry.php
index abf7d05..e82a0dd 100644
--- a/config/sentry.php
+++ b/config/sentry.php
@@ -10,4 +10,6 @@ return [
      * Specify the version of the application for Sentry.
      */
     'release' => env('APP_VERSION', 'dev'),
+
+    'breadcrumbs.sql_bindings' => false
 ];

This is an issue with getsentry/sentry-php See getsentry/sentry-php#828

This was indeed a problem in the PHP SDK this integration uses and should have been fixed a few weeks ago.
This should be fixed if you are on the latest Laravel integration (which requires the latest PHP SDK version).
If you are still running into this issue, please do open up a new issue, potentially directly on https://github.com/getsentry/sentry-php.


Better stickfig aircraft plots

This PR adds new options to the stickfig function that makes stick figure plots of aircraft. It combines it with the alternative function high_res_airplane_plot, that produced a very similar-looking plot and had most of the code duplicated.
These functionality has been implemented:
-The engine is shown again; it was not being rendered due to a data type issue.
-The span, text, and length annotations are now optional; these can be disabled by changing the optional function inputs.
-The ICAO and FAA airport codes are now found automatically for the design maximum span. It fixes a mistake in the previous code, in which ICAO code D was incorrectly compared to FAA group III; it should be ICAO Code C. The plotting area is changed accordingly.
-The text annotations are now shown to the right of the airplane plot, rather than underneath it, which covered most of the text.
-A grid can be optionally added.

This is an example of a stick figure with the code currently in main:

This is the same example with the changes in the PR:


Fatal error: 'stddef.h' file not found.

Trying to use ClangSharpPInvokeGenerator @GenerateClang.rsp to generate sources using Ubuntu 20.04 x64 and libClangSharp.so libclang.so libLLVM.so from NuGet packages for Ubuntu 20.04, I get next errors:
Diagnostics for 'src/include/api/idetector.hpp':     /../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/cxxabi_init_exception.h:38:10: fatal error: 'stddef.h' file not found Skipping 'src/include/api/idetector.hpp' due to one or more errors listed above.
If I trying build libClangSharp.so myself, library building successfully. But, after using it, I get next errors:
Error: System.InvalidCastException: Unable to cast object of type 'ClangSharp.Decl' to type 'ClangSharp.TranslationUnitDecl'

Trying to use ClangSharpPInvokeGenerator @GenerateClang.rsp to generate sources using Ubuntu 20.04 x64 and libClangSharp.so libclang.so libLLVM.so from NuGet packages for Ubuntu 20.04, I get next errors:
Diagnostics for 'src/include/api/idetector.hpp': /../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/cxxabi_init_exception.h:38:10: fatal error: 'stddef.h' file not found Skipping 'src/include/api/idetector.hpp' due to one or more errors listed above.

This sounds like one of the standard include directories isn't being passed into Clang.

If I trying build libClangSharp.so myself, library building successfully. But, after using it, I get next errors:
Error: System.InvalidCastException: Unable to cast object of type 'ClangSharp.Decl' to type 'ClangSharp.TranslationUnitDecl'

This sounds like a mismatch between the libClang version and the expected version in libClangSharp. Clang makes breaking ABI changes almost every release and so you must ensure they match up exactly.

FYI for anyone who hits this on macOS, quick fix for standard headers is:

get SDK path

xcrun --show-sdk-path

from output above, add -I <SDK path>/usr/include to the ClangSharpPInvokeGenerator invocation or response file.


Add feature flags to ansys-mechanical script

some beta features are enabled by flags. In the Ansys Workbench GUI, these are available as settings for Mechanical if beta options are on.

These can be enabled by command line arguments. We should do it for pymechanical in general but first we should do it for the ansys-mechanical script.

#735 adds support for the ansys-mechanical script. This can be used when starting the grpc server. The only thing missing now is embedding support


Mitmproxy - Certificate verification error-  Hostname mismatch

Hi,
I was trying to set up mitmproxy on Windows 10 with Chrome browser and have issues with a certificate.
I can see traffic going through mitmproxy web interface and got certificate (mitmproxy-ca-cert.p12) imported to certificate manager to trusted root certificates authorities. However in Power Shell I encountered on such issue connected with certificate verification:
"Certificate verification error for <IP_ADDRESS>: Hostname mismatch (errno: 62, depth: 0)
::ffff:<IP_ADDRESS>:62581: Ignoring server verification error, continuing with connection"
Can anybody help me with this issue?

This sounds like mitmproxy is encountering an invalid certificate when connecting upstream. mitmproxy does not use the OS certificate store, but you can configure a custom set of trusted certificates using ssl_verify_upstream_trusted_ca :-)


Fix Crash if LRU is Empty

Fixes #116

Thanks for the PR. Can you also add tests for this?

Thanks for the PR. Can you also add tests for this?

Added test for that


Stable Storage issues

Here's the code:
import {
    ic,
    Init,
    PreUpgrade,
    PostUpgrade,
    Heartbeat,
    Stable
} from 'azle';

type StableStorage = Stable<{
    message: string;
}>;

export function init(message: string): Init {
    ic.print(`init ${message}!`);
    ic.stableStorage<StableStorage>().message = message;
}

export function pre_upgrade(): PreUpgrade {
    ic.print(`pre_upgrade ${ic.stableStorage<StableStorage>().message}`);
}

export function post_upgrade(): PostUpgrade {
    ic.print(`post_upgrade ${ic.stableStorage<StableStorage>().message}`);
}

export function heartbeat(): Heartbeat {
    ic.print(`heartbeat ${ic.stableStorage<StableStorage>().message}`);
}

Here's the error:
error[E0382]: use of moved value: `message`
   --> src/src/lib.rs:825:29
    |
696 |             let (message,): (String,) = ic_cdk::storage::stable_restore().unwrap();
    |                  ------- move occurs because `message` has type `std::string::String`, which does not implement the `Copy` trait
697 |
698 |             let message_js_value = message.azle_into_js_value(boa_context);
    |                                            ------------------------------- `message` moved due to this method call
...
825 |                             message.azle_into_js_value(boa_context)
    |                             ^^^^^^^ value used here after move
    |
note: this function takes ownership of the receiver `self`, which moves `message`
   --> src/src/lib.rs:43:35
    |
43  |             fn azle_into_js_value(self, context: &mut boa_engine::Context) -> boa_engine::JsValue;
    |                                   ^^^^

For more information about this error, try `rustc --explain E0382`.
error: could not compile `supernova` due to previous error
Error: Command failed: cd target/azle && CARGO_TARGET_DIR=.. cargo build --target wasm32-unknown-unknown --package supernova --release
    at checkExecSyncError (node:child_process:817:11)
    at execSync (node:child_process:888:15)
    at compileRustCode (/home/lastmjs/development/test-projects/supernova/node_modules/azle/src/azle.ts:98:13)
    at azle (/home/lastmjs/development/test-projects/supernova/node_modules/azle/src/azle.ts:42:5)
    at processTicksAndRejections (node:internal/process/task_queues:95:5) {
  status: 101,
  signal: null,
  output: [ null, null, null ],
  pid: 26859,
  stdout: null,
  stderr: null
}
Error: The build step failed for canister 'rrkah-fqaaa-aaaaa-aaaaq-cai' with an embedded error: The custom tool failed.

I think it's because I used the same variable name as the param to init/post_upgrade and as the stable storage variable...we need to be careful of these situations and prevent them if helpful

Make sure to document this thoroughly

This is just one example of running into this problem, we should find a general solution to this.

This whole issue stemmed from us forgetting to add a _azle prefix on some of our methods. We just need to be vigilant to not let that happen. Beyond that there's no concrete work to add to this ticket. Closing for now.


WIP: restructure CI test infra

This restructures kashti's test infrastructure to:

run the test suite on new pull requests (or for brig run when testing)
build the kashti container image using ACR build

This has not been tested yet, just posting it for other's enjoyment at this stage.
TODO:

[ ] manually test this pipeline
[ ] get this hosted on our production brigade instance
[ ] restore building/pushing the image to DockerHub. We may need to drop back down to docker to do that step, but I'll ask around how others (read: brigade itself) are pushing and releasing images.

closing for now while testing locally; will re-open once this is ready for review.

currently blocked on https://github.com/Azure/azure-cli/issues/7011

🎉
Do you think we can have this merged so at least we can build, test and lint?

For sure!


[BUG] Something wrong with the Latex in preview mode

Describe the bug
The picture below shows the problem.

To Reproduce
$\gamma=0.8$

> $x$ 的 1 范数: $\|x\|_{1}=\left|x_{1}\right|+\left|x_{2}\right|+\cdots+\left|x_{n}\right|$

Expected behavior
Picture below is the preview under default theme.

Desktop (please complete the following information):

OS: Windows, Ubuntu18.04
Obsidian Version: 0.13.2

When I use \hat in LaTeX, it is also not correct, like this.

Expected like this.

That's weird, I will have to take a look, it might be the font. If the font doesn't support it, I will have to use another font for math specifically.

I found the issue:

I will make a fix for it later today.

https://github.com/Braweria/Spectrum/commit/ff3cf3582d2b1fb0584302c7ba7f99b428982f18
Issue got fixed, it should now work as expected.

Thaaaaaanks，I love this theme!

Thaaaaaanks，I love this theme!

I'm glad you love it!


Files experimental reg edit won’t disable

I turned the experimental feature for changing the reg edit
But now I can’t turn it off and when i uninstall the app
I can’t open any folder
Plz helppppppp

This issue is resolved in main. In the meantime you can use this script to revert the changes https://raw.githubusercontent.com/files-community/files-community.github.io/main/data/SetFilesAsDefault.zip.

网站失效了，麻烦重新发一个感谢

I tried the method that officially provided, however, it didn't work on Windows 11. So I asked my friend to send an original copy of HKEY_CLASSES_ROOT\Folder\shell, then I can restore the default explorer.
Comparing to default settings, it isn't enough to just delete the present value in the command folder, also need to add a DelegateExecute, which is {11dbb47c-a525-400b-9e80-a54615a090c0}
The bak.txt is the copy of default explorer settings from my friend (Need to change the surffix to .reg).


Client::info() no longer returns a Result

Client::info() now always succeeds and no longer returns a Result.
Considering how light-weight the value returned by info() is, I think it's not a problem to enforce the fact that clients have store it in memory.
If this change gets approved, I would look whether it's possible to propagate it and may turn more functions into functions that always succeed.

The "check runtime" CI fails because I touched some tests and benchmarks in core/sr-api-macros. I'm not sure if that's a legitimate failure.


'xlxs@latest' is not in the npm registry.

Logs of the terminal:
C:\Users\Home\Documents\Angular\my-first-app>npm install xlxs --save
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/xlxs - Not found
npm ERR! 404
npm ERR! 404  'xlxs@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

package name is xlsx, you misspelled it

Thanks for the response and extremely sorry for asking such a silly question.


Improve article math/0411343

(Optional) Expected behavior
A clear and concise description of what you think the preferred outcome should be.
Desktop (please complete the following information)

OS: Windows 10
Browser: Firefox

Some stuff coming up red, and the diagram

rendering over text.

^ Here another picture has rendered over possibly an equation environment.

Thanks for the report. You didn't have to go through the trouble of attaching all the screenshots (since they are visible clearly on all browsers), but I appreciate you took the time!
Most of the missing support here boils down to adding latexml definitions for diagrams.tex, one of the classic arXiv definition files.


Empty visualization in rviz

Hi,
Thank you for the repo!
I tried the visualization instruction in interactive scene but encountered an empty visualization window in rviz. Please see my screenshot for an illustration of the empty visualization window. Have you encountered this issue before and do you by any chance know how to fix it?
I used the reconstructed panoptic segments and estimated contact graph from the provided Google Drive link.

Thank you!

Hi, thanks for your interests about our work! You need to generate Xacro following 2.1 before visualizing the scene in Rviz. Did you go through this step?

Hi!
Yes, I used the command in 2.1 to generate the Xacro file before running the visualization. Were you able to reproduce the issue by any chance?

Can you please show me the output of your xacro commands? Do you see "[OK] Done! sceneNN_test is saved at..." which indicates the success?

xacro_command_output.txt
Yes, I saw the "[OK] Done!" message. Please find the complete output log in the file attached.
Please note that I change the scene name, but I made sure the changed name is consistent between the name of the folder inside output, the scene name passed to the generate xacro command and the scene name passed to the visualization command.

Thanks Quan. I think it may due to a typo in your command. It should be ":=" instead of ":==".

Can you please take another look? I had that typo in the image in my original post, but that returned an error and I fixed the typo in the second command (also in the same image) that was able to run and produce the empty visualization.

What is your system version? We need more information to debug you issue.
It seems the URDF file was parsed correctly, but TF information was not published as expected.
Could you please send us a copy of your generated xacro files? (The whole folder under /scene_builder/output/).

Please find the compressed file of output in the link below. Please note that I am using the scene name sceneNN_test_from_google_drive to run the visualization using the data provided by the Google link in 1.2
Please find system info below:
Output of uname -a: Linux telemaniu20 5.8.0-53-generic #60~20.04.1-Ubuntu SMP Thu May 6 09:52:46 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
The output of running dpkg -l | grep ros- > ros_packages_info.txt is attached.
ros_packages_info.txt

For the compressed output directory: https://drive.google.com/file/d/1dJi8Ulh9q6rPwAQIMHKqabG2mQ70wMtB/view?usp=sharing

btw, what is the ROS topics that the TF information is being published from? I can check it on my side. Thanks!

Please note that you cannot directly manually change the scene name (e.g., change the folder name in the scene_builder/output), as the xacro will use the original scene name to find dependent mesh files, xacro files.
If you want to change the scene name, you should set the roslaunch file parameters while generating the scene.
I browsed your xacro_command_output.txt, it seems you did not change the folder name by hand. The way you change the scene name is correct.

I tried your generated xacro scene sceneNN_test_from_google_drive. It works as expected on my side.

You can use command
rosrun rqt_graph rqt_graph

to check if ros node are launched as expected.
Here is an expected output

To check the TF information, you can use command
rosrun rqt_tf_tree rqt_tf_tree

and here is an example of expected output

Yes, for some reason the tf information is not being published. I include the output of rosrun rqt_graph rqt_graph and rosrun rqt_tf_tree rqt_tf_tree in the image below.
Do you have any tips to debug this on my end?

Did you have robot_state_publisher and joint_state_publisher installed properly?
It seems your ROS environment misses some core modules.

What is your ros version? Checking the file ros_packages_info.txt, I can see that I had installed ros-noetic-joint-state-publisher and ros-noetic-robot-state-publisher, but the error still occurs.

Yes, for some reason the tf information is not being published. I include the output of rosrun rqt_graph rqt_graph and rosrun rqt_tf_tree rqt_tf_tree in the image below.
Do you have any tips to debug this on my end?

Another possible problem is that you did not close previously launched nodes. In your rqt_graph screenshot, it seems the  robot_state_publisher and joint_state_publisher are still running. You need to kill those running processes at backend.

I tried killing all ros nodes but still that doesn't fix the issue (please see attached image). Is there anyway I can run the visualization code in verbose mode to debug the issue?

BTW, @quanvuong is there any chance that you run the gazebo command and get some error at some points? I remembered that I came across one similar case when I run gazebo failed, and then I just couldn't visualize the scene in rviz.

You can use rostopic to check if TF messages were published correctly.
BTW, I would recommend you to go through the ROS URDF tutorial to check if those fundamental ROS modules work as expected.

I was able to fix the issue and visualize the scene in gazebo and rviz. Thank you for your quick reply and help!

Unfortunately I changed the place you described and it's still the same situation


refactor: move cfn logic to aws/cfn from deploy/cfn

Context
This is a WIP PR.
The goal is to eventually move completely low-level CFN wrappers to aws/cloudformation from deploy/cloudformation. This way deploy/cloudformation will just be responsible to transform CLI structs into CFN structs and call the appropriate function in aws/cloudformation.
What I'm looking for
I've only moved the Create(stack) method to aws/cloudformation to illustrate the package.

Does the Stack struct input to Create make sense? This is different than our current version which accepts an interface instead.
Are we happy with the direction of this package overall?  This package should not surface any cloudformation construct from the SDK to the clients instead we'll define our own CFN structs.

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

Closing the PR, will create a new one once the refactoring is done


Snover branch

Added two image files with the new README.md

only updated readme.md added two files.


docs(readme): code example does not work properly

The library which generates keyPair has changed from generateBls12381KeyPair to generateBls12381G2KeyPair.
The strings need to be converted into Unit8Array Buffer. This follows github.com/mattrglobal/bbs-signatures/.
This will help the community when they first experience this repository.
This PR does not introduce a breaking change.

Thanks @tosirisuk appreciate the contribution!


possible compatibility with easy npc and custom npc

animations do not play correctly or simply do not play

Which Custom NPC mod are you referring to? When I look up Custom NPC I get a mod that is only available for 1.16.5 at the highest.

There are new versions of Custom NPC (unofficial fork), look at this:

https://www.curseforge.com/minecraft/mc-mods/customnpcs-unofficial

Got it. On a side note, I don't know how to test the combat of an EasyNPC. Is there a basic set of commands I can use to make an NPC that is expected to attack?

You have to create a NPC, then use the "EasyNPC Wand", then left click, go to the category of "Objectives", go to "Attack" and then you choose to attack the player.
(Also, go to "Attributes" and select "Attackable", just in case)

The Better Mob Combat side of the support has been figured out for CustomNPCs via 5c4b564. However, the attack animations not working is due to model rendering issues for both EasyNPC and CustomNPCs, which means Mob Player Animator needs to provide the support. Therefore I will be transferring this issue over there. The Better Mob Combat support is currently disabled until I get that working.


[SPARK-36865][PYTHON][DOCS] Add PySpark API document of session_window

What changes were proposed in this pull request?

This PR adds PySpark API document of session_window.
The docstring of the function doesn't comply with numpydoc format so this PR also fix it.
Further, the API document of window doesn't have Parameters section so it's also added in this PR.
Why are the changes needed?

To provide PySpark users with the API document of the newly added function.
Does this PR introduce any user-facing change?

No.
How was this patch tested?

make html in python/docs and get the following docs.
[window]

[session_window]

Test build #143654 has started for PR 34118 at commit 1d38c47.

Test build #143654 has finished for PR 34118 at commit 1d38c47.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/48167/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/143654/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/48167/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/48167/

Thanks! Merging to master/3.2.


delay joining service discovery

listen-and-serve blocks forever (unless it errors) but ideally we shouldn't register until
after it has started listening. we could start our own listener, register and then call serve,
but ListenAndServe gets us TCP keepalive for free, so a simple async sleep-and-join is quick and easy.

cc @surajacharya

ZK stuff generally takes A Long Time, but better to be safe.


Support for lazy loading of split bundles in pre-load scripts for Notebooks

Preloading scripts works as expected in output renderes. However if the preload script is a bundle that lazyloads other bundle scripts, then this doesn't work.
The reason this doesn't work is because WebPack will attempt to load the resource dynamically. However this can only be done if resources are using the vscode-resource scheme (which cannot be hardcoded).
Current approach in Python webiview notebook implementation

We make use of __webpack_public_path__ variable, this is initialized to a global variable window.__PVSC_Public_Path
In our webivew we initialize the above value as follows:
window.__PVSC_Public_Path = "${webView.asWebviewUri(Uri.file(<Extension dir/xyz>)).toString()}/";

This option will not work with preload scripts for notebooks

At the moment the only solution I can see is to dynamically generate a JS file with the above code in it
Ensure the above JS file is preloaded first

Again, this might not work well

Output renderers do not have access to asWebViewUri method, hence any attempt to generate this value based on active Notebook Editor is not guaranteed to work.
We (extension authors)  cannot assume this value is a constant across all webviews

@rebornix /cc

@DonJayamanne what do you think of this approach? https://github.com/microsoft/vscode-notebook-renderer-starter/commit/ebef3da5c3281a34924c19763edbc5934dd30c54 In summary:

In the webpack config, record the relative path from the entrypoint filename to the output directory. (Not dealing with any extra fancy multi-entrypoint configs right now)
When the entrypoint loads, form and set the __webpack_public_path__ based on the url of the current script + the relative path we previously recorded

That works, that's pretty much what I'm doing today. As long as we have VSCodes blessing for such a solution I'm happy. Didn't want to make any assumptions about how the scripts are loaded and the like.
Closing as this issue.
Thanks again.

I think this should be reliable.
cc @mattbierner as the webview master