Wrong definition of arg fixed_length in api_docs/python/tf/raw_ops/DecodePaddedRaw

Thank you for submitting a TensorFlow documentation issue. Per our GitHub
policy, we only address code/doc bugs, performance issues, feature requests, and
build/installation issues on GitHub.
The TensorFlow docs are open source! To get involved, read the documentation
contributor guide: https://www.tensorflow.org/community/contribute/docs
URL(s) with the issue:
https://www.tensorflow.org/api_docs/python/tf/raw_ops/DecodePaddedRaw
Description of issue (what needs changing):
Wrong type decription of fixed_length .
Clear description
fixed_length should be a positive int, but the doc has following description:
A Tensor of type int32. Length in bytes for each element of the decoded output. Must be a multiple of the size of the output type.

Parameters defined
fixed_length should be a positive int.
Submit a pull request?
no

@shijy16
Could you please mention the exact changes that are needed for the documentation and please specify some use cases ?Thanks!

@sushreebarsa
The  argument fixed_length  is defined as a Tensor in the doc:
A Tensor of type int32. Length in bytes for each element of the decoded output. Must be a multiple of the size of the output type.

According to the execute result  of following code, fixed_length should be a positive int:
 import tensorflow as tf

input_bytes = ['123', '1234', '12345']
fixed_length = [3, 3, 3]
out_type = tf.int8
print(tf.raw_ops.DecodePaddedRaw(input_bytes=input_bytes, fixed_length=fixed_length, out_type=out_type))

Execute Result:
python test.py
2022-03-29 08:52:53.152603: I tensorflow/core/platform/cpu_feature_guard.cc:151] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 AVX512F FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2022-03-29 08:52:56.352918: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1525] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 14635 MB memory:  -> device: 0, name: Tesla V100-PCIE-16GB, pci bus id: 0000:2f:00.0, compute capability: 7.0
Traceback (most recent call last):
  File "test.py", line 6, in <module>
    print(tf.raw_ops.DecodePaddedRaw(input_bytes=input_bytes, fixed_length=fixed_length, out_type=out_type))
  File "/home/sjy/.conda/envs/tf_nightly/lib/python3.8/site-packages/tensorflow/python/util/tf_export.py", line 400, in wrapper
    return f(**kwargs)
  File "/home/sjy/.conda/envs/tf_nightly/lib/python3.8/site-packages/tensorflow/python/ops/gen_parsing_ops.py", line 343, in decode_padded_raw
    return decode_padded_raw_eager_fallback(
  File "/home/sjy/.conda/envs/tf_nightly/lib/python3.8/site-packages/tensorflow/python/ops/gen_parsing_ops.py", line 379, in decode_padded_raw_eager_fallback
    _result = _execute.execute(b"DecodePaddedRaw", 1, inputs=_inputs_flat,
  File "/home/sjy/.conda/envs/tf_nightly/lib/python3.8/site-packages/tensorflow/python/eager/execute.py", line 54, in quick_execute
    tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,
tensorflow.python.framework.errors_impl.InvalidArgumentError: {{function_node __wrapped__DecodePaddedRaw_device_/job:localhost/replica:0/task:0/device:CPU:0}} k must be scalar, got shape [3] [Op:DecodePaddedRaw]

Obviously, the argument fixed_length should be a scalar instead of a Tensor. After some research on the source code of DecodePaddedRawOp, I think it should be defined as:
A positive int. Length in bytes for each element of the decoded output. Must be a multiple of the size of the output type.

@shijy16 in the code you sent above you tried to pass a list for fixed_length however the documentation mentions to pass a tensor of type int32. The following code works.
`import tensorflow as tf
input_bytes = ['123', '1234', '12345']
fixed_length = tf.constant(3)
out_type = tf.int8
print(tf.raw_ops.DecodePaddedRaw(input_bytes=input_bytes, fixed_length=fixed_length, out_type=out_type))

@Yashashree304  You are right, thank you.
I thought a tensor was meant to be a multi-dimensional arrays. After reading the definition of tensor, I just realize it can be a scalar. And in the definition of DecaodePaddedRaw, it is a scalar obviously.
Sorry for bothering. XD

@Yashashree304 Thank you for your response!
@shijy16  The description in the documentation for fixed_length is correct as it says to pass a tensor of type int32 and the example you have shared is passing a list for fixed_length.
Could you please move this issue to closed status if it is resolved for you?
Thanks!

OK, I'll close this issue.
Thank you all!


feat: added list notes and delete case commands and fix: removed unused import "timedelta"

This is taking too long so imma close this.


ViewComponents' InvokeAsync() not found if in base class (migration from 1.1.x to 2.1.x)

Is this a Bug or Feature request?: BUG
Steps to reproduce (preferably a link to a GitHub repo with a repro project):

Use a base class for a ViewComponent
Implement the InvokeAsync in the base class (and call some abstract template method of the derived class)
Use the ViewComponent
Start the application
Observe the following error:

Could not find an 'Invoke' or 'InvokeAsync' method for the view component 'MyWebApp.ViewComponents.MyDerivedViewComponent'.

Version of Microsoft.AspNetCore.Mvc or Microsoft.AspNetCore.App or Microsoft.AspNetCore.All: 2.1
This is preventing us from migrating to 2.1.x - please help us soon!

@drauch, in order for us to investigate this issue, please provide a minimalistic repro project that illustrates the problem.

@mkArtakMSFT : Here you go, just execute the web app: https://www.dropbox.com/s/w52iqxoqsd6yne0/ViewComponentsInvokeAsyncNotFoundInBaseClass.zip?dl=0
(it's basically the web app template with a view component added)

@drauch looks like an issue with the Razor Sdk. We're fixing this in 2.2.0. For 2.1.0, there isn't a straightforward solution

You could avoid using inheritance in your view components
You could turn off Razor Sdk RazorCompileOnBuild=false, RazorCompileOnPublish=false

Fixed in https://github.com/aspnet/Razor/commit/fc86cc3ca1101d0503392a902d4336fa20f575f6

We've now copy & pasted an InvokeAsync which calls base.ActuallyInvokeAsync() into each view component. That's a reasonable workaround for the time.
Thanks for engaging & fixing this!


chore(IE11): add transform for Object.assign support in IE11

Modify this to a fix

Bluemix toolchain: Delivery Pipeline deployed carbon-components-react to Bluemix Design System, including commit 6309334b578a28c660a47f46d1693d01a9c0f538


Add package with Iceberg tool does not work

I try to move one my software from Monticello repo to a git repo and it doesn't work.
For example :
git clone git@github.com:SergeStinckwich/Actalk.git

Then add the local repo with the Iceberg tool then load Actalk from CatalogBrowser and try to add the ConfigurationOfActalk or Actalk packages to the repo give the following error.

I was able to move my project from Monticello to git by using gitfiletree and after I was able to open the repo with the Iceberg tool.

Hi @SergeStinckwich I am not being able to reproduce this, could you give me some hint?
I even tried to migrate your code myself, and it was successful (look at https://github.com/npasserini/Actalk).
The only thing I found is that Iceberg can't cope nicely with a new repository, when it has not even a single commit (which I registered as #127), but the error message is different... so your problem might still be there, but I can't reproduce it.

Hum. You start with an empty repo ? I will try to reproduce it.

In fact, starting with an empty repo didn't work (see #127) but after an initial commit with an empty readme file, everything worked. How did you create your repository?

Hi @SergeStinckwich, @demarey has helped me reproduce the bug. I think that the problem is that you are using an old version (it is my fault, because I didn't update the "stable" version).
 Please let me know if you still can't.

Ok, I switch to another repository, because I used gitfiletree to populate the Actalk one.
Another experiment after doing an Iceberg update. I'm cloning an existing repo with :
git clone git@github.com:SergeStinckwich/libUrbi.st.git
that contains files but no Pharo packages
and try to add this repo as a local repo, I have now

@ SergeStinckwich Maybe it is because your git project contains a dot in it: libUrbi.st. If it is that, it should not be hard to fix.


🐛 Attempt to close tab kills server

Describe the bug
When trying to (or accidentally) closing the tab, the browser will show a warning. If the confirmation is cancelled, the tab stays open but the server is closed.
To Reproduce
Close tab/Ctrl + W.
Expected behavior
Nothing changes when staying on the page.
Screenshots

(It states "Try running a script", but there appears to be no way to do so.)
Desktop (please complete the following information):

OS: Win 10, 64 bit
Browsers:

Chrome 111.0.5563.147
Firefox 112.0 (64-bit)

Additional context
N/A

Mmm I have to check this thanks for reporting...I have an idea about what causes this.

Ok it should be fixed by now...let me know if everything works correctly, in the meantime i'll close this


Fix use_io_binding default value for TensorRT EP

What does this PR do?
As suggested in the title, there could be no "TensorrtExecutionProvider" in model.get_providers() even if the inference session has been created with "TensorrtExecutionProvider" as the provider.
The reason for that is onnxruntime will fallback to CUDA ep when TRT ep has error while creating the inference session.
e,g, model.get_providers() returns
['CUDAExecutionProvider', 'CPUExecutionProvider']

The fix ensures that use_io_binding is correctly set even when TRT fails.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

An error is raised here https://github.com/huggingface/optimum/issues/610 although the user tries to use CPU. It is because use_io_bindings is True even though CUDAExecutionProvider is not used:
 self.name_to_np_type = TypeHelper.get_io_numpy_type_map(self.model) if self.use_io_binding else None

An error is raised here #610 although the user tries to use CPU. It is because use_io_binding is True even though CUDAExecutionProvider is not used:
 self.name_to_np_type = TypeHelper.get_io_numpy_type_map(self.model) if self.use_io_binding else None

use_io_binding should be True only with CUDAExecutionProvider IMO

@fxmarty, ok, I will set use_io_binding default to None and set the value explicitly with EP if it is not given.
But I can't reproduce the error mentioned in #610. When using CPU, model.get_providers() shall be ['CPUExecutionProvider'] and  self.device.type should be "CPU" isn't it? Although use_io_binding was defaulted to True it should not have gone with IO binding.

The error is raised with numpy==1.24.0

As suggested in the title, there could be no "TensorrtExecutionProvider" in model.get_providers() even if the inference session has been created with "TensorrtExecutionProvider" as the provider.

an error should be raised in this case, if it is not it is that there is a bug in https://github.com/huggingface/optimum/pull/514

#514

You put the raising before the inference session, so it won't work if it falls back while instantiating the inference session.
In #606 nothing was raised while TensorRT was not correctly installed.


Stratagem scan attempts to send fid and purge lists to client, even if

they don't exist
Fixes #1137.

Make sure values are not None before checking if they are negative in
validation
Filter out action items if the mailbox file does not exist

Signed-off-by: Will Johnson<EMAIL_ADDRESS>

Codecov Report

Merging #1145 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1145   +/-   ##
=======================================
  Coverage   95.42%   95.42%
=======================================
  Files           2        2
  Lines         153      153
=======================================
  Hits          146      146
  Misses          7        7

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 b6d425b...44475ec. Read the comment docs.


[tf.data - from_generator() and .interleave()] - Funky Behavior

We are trying to combine N_DATASETS_TO_INTERLEAVE from_generator() Datasets using dataset Interleaving. And it seems that it's absolutely not working.
For some reason, it looks like the print is happening only once. Which could be due to some form of autograph running, but we tried everything we could to stop that, but nothing I could think of works.
You will say, it's just a print() what's the problem here. The problem is that if you execute any python code in this from_generator() it seems to be executed only once.
Google Colab: https://colab.research.google.com/drive/1WFvSvU8CCc1A1bfVbUb6ck_EzvE9o3sS?usp=sharing
import tensorflow as tf

N_DATASETS_TO_INTERLEAVE = 10

@tf.autograph.experimental.do_not_convert
def hello(idx):
  for j in range(idx):
    yield f"IDX: {idx}"

@tf.autograph.experimental.do_not_convert
def interleave_fn(_):
    print("[INFO] Calling Interleave Fn")         # THIS LINE SHOULD BE PRINTED `N_DATASETS_TO_INTERLEAVE` times. Only appears once.
    return tf.data.Dataset.from_generator(
        hello, args=(_,), output_types=tf.string
    )

ds = tf.data.Dataset.range(N_DATASETS_TO_INTERLEAVE).interleave(
    interleave_fn
)

options = tf.data.Options()
options.experimental_optimization.apply_default_optimizations = False
ds = ds.with_options(options)

@tf.autograph.experimental.do_not_convert
def get_dataset(_ds):
    for x in iter(_ds):
        yield x

for x in get_dataset(ds):
  print(x)

Output:
[INFO] Calling Interleave Fn
WARNING:tensorflow:From <ipython-input-1-af809f9fe8c1>:15: calling DatasetV2.from_generator (from tensorflow.python.data.ops.dataset_ops) with output_types is deprecated and will be removed in a future version.

We are trying to read and interleave multiple files that have a funky format. No native TF OPs can help to do that.
We need to use a generator because the files are massive (dataset 100GB+), we can't load the whole file at once.
We need to use interleaving because we have multiple files to interleave together.
Annnnd ... As you can see ... The python part of this code is only executed once.
We would expect to see ([INFO] Calling Interleave Fn printed N_DATASETS_TO_INTERLEAVE times).
[INFO] Calling Interleave Fn
[INFO] Calling Interleave Fn
[INFO] Calling Interleave Fn
...
[INFO] Calling Interleave Fn
[INFO] Calling Interleave Fn
[INFO] Calling Interleave Fn

My hunch is that tf.data.from_generator() does not allow python generator. Only pure tensorflow generators. Any idea how to maybe combine tf.py_function in a generator fashion ?
@reedwm in case you have any idea ;)

I think I found the problem:
import tensorflow as tf

from tensorflow.python.data.ops import structured_function

@tf.autograph.experimental.do_not_convert
def hello():
    print("Calling ........")
    return 4

for _ in range(5):
    hello()

>>>  Calling ........
>>>  4
>>>  Calling ........
>>>  4
>>>  Calling ........
>>>  4
>>>  Calling ........
>>>  4
>>>  Calling ........
>>>  4

wrapped_func = structured_function.StructuredFunctionWrapper(
    hello,
    "reduce()",
    input_structure=(),
    add_to_graph=False
)

>>> Calling ........

for _ in range(5):
    wrapped_func._function()

>>>  [<tf.Tensor: shape=(), dtype=int32, numpy=4>]
>>>  [<tf.Tensor: shape=(), dtype=int32, numpy=4>]
>>>  [<tf.Tensor: shape=(), dtype=int32, numpy=4>]
>>>  [<tf.Tensor: shape=(), dtype=int32, numpy=4>]
>>>  [<tf.Tensor: shape=(), dtype=int32, numpy=4>]

Looks like I found one way to force autograph to not execute: tf.data.experimental.enable_debug_mode()
@reedwm do you know any other way ? It's kind of weird to be forced to use debug mode ...
import tensorflow as tf

from tensorflow.python.data.ops import structured_function

@tf.autograph.experimental.do_not_convert
class HelloIter(object):
    def __init__(self):
         self._iter = None
         self.reset()

    def reset(self):
        print("\nResetting the iterator ...")
        self._iter = iter([1, 2, 3])
        print("Done ...\n")

    @tf.autograph.experimental.do_not_convert
    def __call__(self):
        print("Calling Mom ...")
        return next(self._iter)

hello = HelloIter()

for _ in range(3):
    print(hello())

hello.reset()

for _ in range(3):
    print(hello())

tf.data.experimental.enable_debug_mode()

hello_obj = HelloIter()

wrapped_func = structured_function.StructuredFunctionWrapper(
    hello_obj,
    "reduce()",
    input_structure=(),
    # add_to_graph=False,
    use_legacy_function=False
)

hello_obj.reset()  # Must re-initialize the `iter()` because `structured_function.StructuredFunctionWrapper` actually runs the func once

for _ in range(3):
    print(wrapped_func._function())

@sachinprasadhs I was able to replicate the issue on colab, please find the gist here. Thank you!

Unfortunately I don't know how to solve this. Dataset methods taking callables like map and interleave always run the callable in graph mode unless debug_mode is enabled, as you noticed. I am not familiar with StructuredFunctionWrapper but tf.data.Dataset seems to use it to always run the function in graph mode unless debug_mode is used.
I tried to modify the example in the first post, to create an interleave_fn that would use tf.py_function to run a function eagerly. It failed with the cryptic error "Could not find callback with key=pyfunc_5 in the registry". I'm not sure what the issue was
@tf.autograph.experimental.do_not_convert
def outer_interleave_fn(_):
  return tf.py_function(interleave_fn, [_], Tout=[tf.data.DatasetSpec(tf.TensorSpec(shape=(), dtype=tf.string))])[0]

@aaudiber, any ideas how to run an interleave_fn eagerly?
@DEKHTIARJonathan as a workaround, it might be possible to define a custom iterator to pass to tf.data.Dataset.from_generator, where the iterable.__next__ method calls tf.py_function. This would allow you to run Python code from the iterable passed to tf.data.Dataset.from_generator.

"Could not find callback with key=pyfunc_5 in the registry
Oh yes ! I had the exact same problem, in many ways actually. The way to "avoid" this is to have block_length=sys.maxsize (max int). Which is making the whole behavior equivalent to a concatenate, and no more interleaving... Looks like it's failing to fetch a previously define dataset "by key".

It isn't currently possible to dynamically create from_generator-based datasets from inside of interleave. The problem is that py_function can only return Tensors, but we need it to produce a Python tf.data.Dataset object.
Instead, you could work around the issue by creating the from_generator datasets ahead of time in Python, and then interleaving them. The example below does what the original post was attempting:
import tensorflow as tf

N_DATASETS_TO_INTERLEAVE = 10

def hello(idx):
  for j in range(idx):
    yield f"IDX: {idx}"

def make_dataset(idx):
    return tf.data.Dataset.from_generator(
        lambda: hello(idx), output_types=tf.string
    )

datasets = [make_dataset(i) for i in range(N_DATASETS_TO_INTERLEAVE)]

ds = tf.data.Dataset.from_tensor_slices(datasets)
ds = ds.interleave(lambda x: x, cycle_length=N_DATASETS_TO_INTERLEAVE)

for x in ds:
  print(x)

@DEKHTIARJonathan , Could you please try the above workaround and let us know if that helps you. Thanks!


Offline Map Tiles

I am trying to implement osmdroid in my application and i require an offline map for this and i have tried downloading the tiles using MOBAC but none seem to work and most of the tutorials are incomplete or for the older versions. Can anybody suggest me the ways to implement offline maps using any of the way like mobac or mbtiles.

Have you seen the wiki here, right?
What exactly is the problem?

https://github.com/osmdroid/osmdroid/wiki/Offline-Map-Tiles

operation timeout. please reopen or comment back if you have further questions


updated url on issue

Thank you for creating this action. I noticed that the link on the issue is no longer issue_url. I found that html_url works, at least for me 😊

Great thanks for flagging and fixing!


iframe improvements

Would be great to have srcdoc for iframes.
It also seems that iframe's onload fires synchronously from the time it is defined rather than inserted into the document.

Pull requests welcome, as always.


add forecasted stage?

and convert to stage (from discharge)

This should be implemented in a branch since its kinda a risky change that we'll want to look at.

#61 brought in this data, it is connected to anything yet though.

Data are in. we need to create a new issue in the future (Monday?) for how to implement including it.
One of the things to think about is how to deal w/ future precip, which we don't have...does it just go blank?
do we not animate into the future, but should the future sparklines partially hidden (how they are incrementally revealed now)?


[Feature]: Training in a Day App

Describe the bug
Currently, users get an email with a confirmation notification but the user does not receive a calendar invitation. Is this a plan to add a feature where we can add a Microsoft Team meeting link when we create an event and it will send out to users when they register for the event? Also Since the Common data service connector is old it does not let us change to the Common data service(current environment) connector.
Component (please tell us which flow or app you are experiencing issues with):

Solution - Nurture
Version - 1.24

To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

That's a great idea! We are just reworking this app to be more responsive so we will look at adding this as well. Thank you for the feedback. We are also updating all of our flows to use the Current Environment connector, we are almost done with the Core and Governance solutions there so are now working on Nurture. We should be able to get that finished for our March release.
Thanks for the great feedback and using the CoE!

Added to our backlog


Add a "new" pid vid (VID_2A03%PID_0036), for my Leonardo bootloader

Hi Eried!
Thanks for your great work, your ArduboyUploader is a wonderful tool, so clear, convenient and ful-functional.
But when I trying it, it doesn't work for me. I found after reset the board it try to get serial port again, but it got the board working port, instead of bootloader port. I found your supposing vid-pid not include what my bootloader serial, so I added it into the "select", and it worked.
I am a beginner of arduino and arduboy, so I am not sure it is reasonable.
Just create a pull request, and depending on your decision. Hope it's useful for you and others.

Hahaha so many changes, do you have a plugin in VS? I am going to close the PR and add those changes manually.

Sorry!
But I swear, VS is clean no any plug-in. Maybe the reason is it formated when I pasting codes. In fact, I downloaded your source code, edit in VS and try to debug, After I successed, I forked your project, open it in VS, and paste my working code into it.
I am glad to refork again and make a clean version today later(I am not good at github also, I don't know how to retract commits.)
But I can't testing it any more, after I success, I tried many arduboy games happily. And suddenly, my PC can't show leonardo serial port. I guess the game overwrited bootloarder, then I learned and tried to burn bootloader but it doesn't work yet. :(

I fixed my bootloarder.
And will cook a clean PR later tonight (China).

Awesome! Thanks!

Done. Created a new PR, https://github.com/eried/ArduboyUploader/pull/3, clearly
:-)
Welcome, what I did is just a little peice than your great work, and also, I can learning how to use Github at meanwhile.


Fully Dynamic Schemas

First, I would like to say thank you for this great project.
Is your feature request related to a problem? Please describe.
I am looking to create a framework where the bulk of the code is written and rust and delegates to a language like python for business logic. Given these constraints, the schema of the API is inherently dynamic and thus is not known at compile time. It would be optimal if somehow juniper could support this (admittedly niche) use case.
Describe the solution you'd like
If juniper provided a lower level API that let you register types to a Registry dynamically and then propagate that up to an executable schema (side stepping traits like GraphQLType - which are not instance based), would allow for this to work.
Describe alternatives you've considered
I looked to see if this is possible today given the API's exposed by juniper. While the registry type is exposed and does seem to be the main point of interaction, this means you lose much of the query validation and other great work done by the juniper create.
I considered instead depending on graphql-parser and doing the validation and execution myself. But again, I lose a lot of what juniper has to offer. As an alternative to my idea above, Is there room for some crate between the ergonomics that juniper provides and the raw graphql parsing done in graphql-parser?
Additional context
This issue has been brought up in several issues in the past. Namely issues #7 and #106 but haven't really been obviously resolved.

This would be possible only after #1072 redesign and partially implemented in #975.

@tyranron Thanks for the info. Where's the best place to contribute to move this along. It looks like #1072 is slated for 0.17. after 0.16. Would help be accepted on the issues in the 0.16 milestone to help move these along?


pip-tools is not compatible with pip >= 10.0.0

pip-tools is not compatible with pip >= 10.0.0
Environment Versions

OS Type: Linux/Ubuntu
Python version: Python 2.7.12
pip version:  $ pip 10.0.0b2
pip-tools version: $ pip-compile, version 1.11.0

Steps to replicate

. /usr/share/virtualenvwrapper/virtualenvwrapper.sh
mkvirtualenv -p /usr/bin/python2 test-pip-tools 3. (test-pip-tools) pip install -U pip ``
(test-pip-tools) pip install pip-tools
echo Flask > requirements.in
(test-pip-tools) pip-compile requirements.in

Expected result
six python package is installed
Actual result
Traceback (most recent call last):
  File "/home/xxx/.virtualenvs/test-pip-tools/bin/pip-compile", line 7, in <module>
    from piptools.scripts.compile import cli
  File "/home/xxx/.virtualenvs/test-pip-tools/local/lib/python2.7/site-packages/piptools/scripts/compile.py", line 11, in <module>
    from pip.req import InstallRequirement, parse_requirements
ImportError: No module named req

Workaround

(test-pip-tools) pip install -U pip==9.0.3

Is there an expected release date for 2.0?
I'm just trying to triage updating lots of projects to pin the pip version as all our builds have just started failing :(

Done:
https://pypi.org/project/pip-tools/2.0.0/

FYI 2.0.1 coming up shortly: There was missing package_data in there, which will make pip-compile fail with an error like:
IOError: Could not find a suitable TLS CA certificate bundle, invalid path: <path_to_virtualenv>\lib\site-packages\piptools\_vendored\pip\_vendor\certifi\cacert.pem

wow awesome! thats saved me a huge headache, really appreciated!


feat(injector): assign $inject field when annotating from an array

When Angular annotates straight from function it adds $inject static field to function itself. But when Angular annotates a function from an array it subsequently doesn't add the same. It would be advantageous if it did the same as client code may also use this field's value.
Usage scenario
I'm following John Papa's Angular guidelines how to write better maintainable angular code. So I'm writing my controllers/services using actual prototypes and not anonymous functions. but instead of containing all behaviour within controller's constructor as John Papa does I'm actually writing prototypes.
To work with prototypes we need all constructor injections on instantiated object so they can be accessed from other prototype functions. But to avoid tedious and error prone work of adding these manually one can write a function i.e. injectParameters that does it automatically. This specific function reads those either from $inject static field or it parses function similar as angular's annotation does. The problem happens with minified files where argument names may be different or even omitted from the ones provided in original source code. The same problem happens in Angular hence two possible injection scenarios:

angular.module("SomeModule").controller("SomeController", ["$scope",..., SomeController]);
SomeController.$inject = ["$scope",...];

So because Angular annotation doesn't add the $inject field when some controller/service was provided using the first method there is no possibility to get those names correctly in client code.
function MyController($scope, someResource...) {
    injectParameters(this, arguments); // all injections accessible under i.e. this.injections...
    ...
}

MyController.prototype.doSomething() {
    // injections from constructor added by injectParameters to .injections object
    this.injections.someResource.get(...);
}

Can anybody help with this Travis CI error? I'm not sure why there is one, because my commit doesn't seem to do any harm and by the errors provided it seems it's related to environment or something rather than faulty code...

it's most likely a flake. However, for us to merge this, we'd need some things:

a strong motivation/use-case for this change
some test coverage so we don't break it in the future

I know you've written a bit about your use-case above, but from my perspective it doesn't look like something you should need or depend on. I'd like others to chime in on this before we flip the switch

I agree with @caitp, and do not fully understand the use case.
BTW, I find the syntax

.controller(angular.extends(function(...) {...}, {$inject: [...]});

best when not using a plugin that adds the inject information before
minification, even when this is not very popular.

Tend to agree with @caitp and @lgalfaso - DI annotations are meant to be consumed by the DI subsystem, we don't want to expose those as a contract.
Thnx for the suggestion @litera but we will pass on this one.


False positive for default value

I have this:
# starlite/exceptions/utils.py
from typing import Any, Dict, List, Optional, Union

from pydantic import BaseModel
from starlette.exceptions import HTTPException as StarletteHTTPException
from starlette.status import HTTP_500_INTERNAL_SERVER_ERROR

from starlite.enums import MediaType
from starlite.response import Response

from .exceptions import HTTPException

__all__ = ["create_exception_response"]

class ExceptionResponseContent(BaseModel):
    detail: Optional[str]
    extra: Optional[Union[Dict[str, Any], List[Any]]]
    status_code: int = HTTP_500_INTERNAL_SERVER_ERROR

def create_exception_response(exc: Exception) -> Response:
    """
    Constructs a response from an exception.

    For instances of either `starlite.exceptions.HTTPException` or `starlette.exceptions.HTTPException` the response
    status code is drawn from the exception, otherwise response status is `HTTP_500_INTERNAL_SERVER_ERROR`.

    Args:
        exc (Exception): Any exception.

    Returns:
        Response
    """
    if isinstance(exc, (HTTPException, StarletteHTTPException)):
        content = ExceptionResponseContent(detail=exc.detail, status_code=exc.status_code)
        if isinstance(exc, HTTPException):
            content.extra = exc.extra
    else:
        content = ExceptionResponseContent(detail=repr(exc))
    return Response(
        media_type=MediaType.JSON,
        content=content.dict(exclude_none=True),
        status_code=content.status_code,
    )

And this error is found:
starlite/exceptions/utils.py:5:1: TC002 Move third-party import 'starlette.status.HTTP_500_INTERNAL_SERVER_ERROR' into a type-checking block

It apparently doesn't identify the default value as a valid use.

Thanks @Goldziher, that's weird!
Replicates for this as well
from logging import INFO

from starlette.status import HTTP_500_INTERNAL_SERVER_ERROR

class C:
    level: int = INFO
    status: int = HTTP_500_INTERNAL_SERVER_ERROR

I'll take a look when I get a chance

Fix out now in v2.1.1 🙂


build.sh assumes gnu grep

-P is not supported in OS X's grep

I'm not familiar with the particular differences of Perl regexes, but does it still work when simply dropping the -P? Those regexes look pretty basic.

No. In the basic regular expression syntax, metacharacters must be escaped.
The fixed syntax would be dmd --help | head -n1 | grep 'DMD\(32\|64\)'
I don't have a linux machine on hand at the moment, but that works in FreeBSD & OSX. It should work in linux as well.

Fixed by #763.


Common generic parameter type inference doesn't work for derived parameter types

Consider following definitions:
class BaseClass<T> {
}

class DerivedClass extends BaseClass<number> {
}

function usingParameters<T>(c:BaseClass<T>, p:T) {
}

In usingParameters(new BaseClass<number>(), "string") call common type inference works well and as a result can't infer common generic parameter type and compiler fails with error.
In usingParameters(new DerivedClass(), "string"); call common type inference doesn't seem to check if DerivedClass derives exactly from BaseClass<string> or that "string" is not number and everything compiles well.
The same thing about object notation
interface IParameters<T> {
	c: BaseClass<T>,
	p: T
}

function usingObject<T>(IParameters<T>) {
}

usingObject({ c: new BaseClass<number>(), p: "string" }); //Fails
usingObject({ c: new DerivedClass(), p: "string" }); //Compiles

The problem here is that BaseClass doesn't have any members of type T. So in terms of a structural type system, class DerivedClass extends BaseClass<number> is the same as class DerivedClass extends BaseClass<Rocket> -- they have identical members.
If you add a member of type T to BaseClass, everything works like you expect. In practice, you should never have an unconsumed generic type parameter, as it's completely meaningless.

I'm terribly sorry, the real code has the generic member and it doesn't work as expected too, and I thought that the code above is equivalent. The problem in my real code must be somewhere else, I'll try to figure out where. Thank you!

Ok, it seems that I have isolated the real problem and it is applies only to objects and, what is the most important, nested objects.
class BaseClass<T> {
	p:T;
}

class DerivedClass extends BaseClass<number> {
}

interface IParameters<T> {
    c: BaseClass<T>,
    p: T,
	content?: IParameters<any>
}

function usingObject<T>(p:IParameters<T>) {
}

usingObject({
	c: new BaseClass<number>(),
	p: 1,
	content: {  //Must fail
		c: new BaseClass<number>(),
		p: "string"
	}
});

usingObject({
	c: new DerivedClass(),
	p: 1,
	content: {  //Must fail
		c: new DerivedClass(),
		p: "string"
	}
});

In the example above, content property is incorrect and must not typecheck, but it does. I can imagine, that there could be the performance problem when typechecking such structures, so maybe there is another common way to build typesafe nested structures?

The example is working as intended because content is defined as IParameters<any>, so content.p is of type any and content.c is of type IParameters<any>.
You can tweak the example a little and get correct errors:
interface IParameters<T> {
    c: BaseClass<T>,
    p: T,
    content?: IParameters<T>
}

function usingObject<T>(p:IParameters<T>): T {
	return null;
}

let a = usingObject({
    c: new BaseClass<string>(),
    p: '1',
    content: {  //Must fail
        c: new BaseClass<string>(),
        p: '32'
    }
});

let b = usingObject({
    c: new DerivedClass(),
    p: 1,
    content: {  //Must fail, does
        c: new DerivedClass(),
        p: "string"
    }
});

Got it, thank you. But the problem is that the content: IParameters<T> could not share parent's T, there could be any other type and it seems that there's no way to say, the the T could be any, but only certain any :(

Is this closer to what you want?
interface IParameters<T, U> {
    c: BaseClass<T>,
    p: T,
    content?: IParameters<U, any>
}

Yep, I've already tried that, but it works only for 2 levels of nesting :)

But now I got it, and it seems, that there is no easy way to achieve what I want. Ideal solution is possibility to constrain any to single type which requires proposition and possibly violates some of the type system concepts :D
For now I'll try to solve it another way. Thank you very much!


NET 4.x Sample Unity Project

It doesn't exist. The link is broken.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 8f103240-7b3b-4732-12a9-39fdef044a08
Version Independent ID: 0c9fb9a9-f254-fa5c-a334-3fff7dfccb92
Content: Using .NET 4.x in Unity - Visual Studio
Content Source: docs/cross-platform/unity-scripting-upgrade.md
Product: visual-studio-dev15
GitHub Login: @dantogno
Microsoft Alias: v-davian

My bad! I neglected to press the "Make public" button on the repo.  It is visible now.  Thanks for filing the issue!


Move WriteUint256ToAddress function to Memory package

WriteUint256ToAddress function is currently defined in Hinter package in operand.go file. This is not the right place for this function, which writes some uint256 value to a specified memory address. Nothing related to operands.

Move the function to the Memory package in the appropriate file
Update the codebase where it is needed

Heeey @TAdev0 can i work on this?

Hey @TAdev0, thanks for the opportunity!
Do you have Telegram so I can contact you if I have a question?
Here's mine: https://t.me/EmmanuelDevCr

please write any questions here so that everyone can follow what's going on with this issue

excellent, working now...

Also i fix this link in the readme file  @TAdev0, you can see the change in the last commit of the pr #428

Pass link

NEW LINK

#428


removed confusing logging in get memory handler

Description
The exception logging is confusing, so removed it.
Fixes #182 #176
Type of change
Please check the options that are relevant.

[x] Bug fix (non-breaking change that fixes an issue)
[ ] Proposes a change (non-breaking change that isn't necessarily a bug)
[ ] Refactor
[ ] New feature (non-breaking change that adds a new functionality)
[ ] Breaking change (fix or feature that would break some existing functionality downstream)
[ ] This is a unit test
[ ] Documentation only change

Type of requested review

[x] I want a thorough review of the implementation.
[ ] I want a high level review.
[ ] I want a deep design review.

Testing
Tested locally
Checklist:

[x] I have performed manual end-to-end testing of the feature in my environment.
[ ] I have added Docstrings and comments to the code.
[ ] I have made changes to existing documentation where needed.
[ ] I have added tests that show that the PR is functional.
[x] New and existing unit tests pass locally with my changes.
[x] I have added relevant collaborators to review the PR before merge.

Generally, I think we should be logging exceptions since we don't throw them anyway. It is a useful debugging tool. Without it there's no easy way to find out what might be causing an exception. For example in this case, without the trace it would be hard to debug why do_answer might be failing.

Generally, I think we should be logging exceptions since we don't throw them anyway. It is a useful debugging tool. Without it there's no easy way to find out what might be causing an exception. For example in this case, without the trace it would be hard to debug why do_answer might be failing.

Added exception logging back and caught IndexError separately. I believe Arthur deliberately throws index errors and let them caught by exception handler. In this way, agent can respond with 'I don't understand what you're asking'.
Since we want: 1. use IndexError as a way to respond with 'IDK', 2. still be able to catch&analyze other unpredictable errors, using two catching here to distinguish them.


RSS changed now problem with formatting

Dear all
I fetch pubmed with the RSS Option. Now it looks like they change the authors output from:
"authors": [     " Schuler BR, Daundasekara SS, Hernandez DC, Dumenci L, Clark M, Fisher JO, Miller AL"   ],
to
"authors": [     "Melanie B Horev",     "Yishaia Zabary",     "Revital Zarka",     "Simona Sorrentino",     "Ohad Medalia",     "Assaf Zaritsky",     "Benjamin Geiger"   ],
which causes me problems with my post agent
"payload": {     "text": "[{{title}}]({{url}}) - by {{authors}} :tada:"   },
The problem is that now it comes like
Melanie B Horev,Yishaia Zabary,Revital Zarka,Simona Sorrentino,Ohad Medalia,Assaf Zaritsky,Benjamin Geiger
instead of
Melanie B Horev, Yishaia Zabary, Revital Zarka, Simona Sorrentino, Ohad Medalia, Assaf Zaritsky, Benjamin Geiger
Is there any possibility within huginn to get the nice formated authors?
Thanks

Hi!
Does {{authors | join: ', '}} work?

@dsander you are a hero. Working perfectly :)
Thank you very much.


Documentation: Sequel Pro integration?

What happened (or feature request):
Mike Anello's blog post mentions "ddev sequelpro" command.
https://www.drupaleasy.com/blogs/ultimike/2018/03/ddev-docksal-and-lando-comparison
I assume for this to work, someone has to have https://www.sequelpro.com/ installed on their Mac, and that it doesn't come with DDEV, correct?
So this command launches the application. Is there anything else?
What you expected to happen:
To find some mention of this command and what it means.
Related source links or issues:
https://www.drupaleasy.com/blogs/ultimike/2018/03/ddev-docksal-and-lando-comparison
Please use a complexity rating of 1-5 (5 is high) for a feature request. (High complexity implies more PR planning)

Please try it out (macOS, if you use that). Install the free sequelpro and use ddev sequelpro. Docs: ddev sequelpro -h
https://sequelpro.com/download

@rfay ok! i should have done that first!

One piece of magic here: If people don't have sequelpro (or they're not on a mac) it doesn't show up in the menu. So a great place where docs might help people who might like the free SequelPro app with this.Note, however, that phpmyadmin is available to everybody, and maybe even more familiar.

@rickmanelius This delay isn't awesome. My seriously outdated OS and related software and lots of errors meant I kept putting it off. Finally, I think I chased all of the errors I was having, and DDEV is working again.


DBZ-5033: Ignore null offsets when recovering database history

This is a backport of https://github.com/debezium/debezium/pull/3425.

Closing as the issue currently doesn't block the onboarding, and there is no plan to build and deploy a new connector version. We will receive the changes from upstream after the upgrade to v1.9.2.Final.
If we get blocked by the issue, we can either merge and release this patch, or backport the upstream patch to `1.9.1-patches (depending on which version of the connector is deployed).


Using PL support, window title still says Rancher

Version - master UI 2/4
Steps:

Change  /v1/settings/ui.pl in the API to something other than rancher
Reopen the app

Results:  Browser tab still says Rancher

Expected: Should have changed to whatever you entered

Changed to "UI" until the setting can be read, then the name from the PL setting.

version - master 3/2
Verified fixed


Basemaps - unable to add neighor countries

terrain_map() function not able to add neighor countries

Use get_basemap()


A Few Questions

Q1: In bios.asm, how can I save a value (number, string, etc.) such as the content of biosstr (string) in a memory area of the emulator, and then read and print that memory area from 8086tiny.c?
Q2: Same question as Q1 but in reverse, storing a variable in 8086tiny.c, and then reading and printing that value from bios.asm.
Q3: In FreeDOS kernel, how can I save a value (number, string, etc.) in a memory area of the emulator, and then read and print that memory area from 8086tiny.c or from bios.asm?
Q4: Same question as Q3 but in reverse, storing a variable in 8086tiny.c or bios.asm, and then reading and printing that value from FreeDOS kernel.
Q5: I have same question: https://8086tiny.freeforums.net/thread/82/starting-exe-files-command-line
Q6: I have same question: https://8086tiny.freeforums.net/thread/62/local-drive-access
regards,
Danny.

q1: Put value into memory using bios.asm, detect if memory value changed in emulator, print it
q2: same but reverse
q3: same
q4: same
q5: this is emulator of 8086 not emulator of dos. Search for other DOS emulators like dosbox
q6: not possible, modern hard drive bigger than 527, if you have old pc, feel free just open /dev/hda.


set/object method of UserDefaults for Codable is not working for date objects

Please fill out this template when filing an issue.
All comment lines beginning with an > instruct you with what info we expect. You can delete those lines once you've filled in the info.

[ ] I've read, understood, and done my best to follow the Contributing guidelines before opening this issue.
What did you do?

When I add date object in Codable Object

struct TestObject: Codable {
    var itemId: Int
    var firstName: String?
    var lastName: String
    var dob: Date?
}

let key = "codableTestKey"
let codable = TestObject(itemId: 1, firstName: nil, lastName: "Joe", dob: nil)
UserDefaults.standard.set(object: codable, forKey: key)
let retrievedCodable = UserDefaults.standard.object(TestObject.self, with: key)

What did you expect to happen?

If I add date object in Codable object, it should work as expected. It should not be nil.

What happened instead?

After retrieving the Codable object, retrievedCodable is nil due to date object

SwifterSwift Environment

SwifterSwift version:
Xcode version: 11.4.1
macOS version running Xcode:
Swift version: 5.2
Platform(s) running SwifterSwift:

Demo Project

Please look into attached screenshot, I've used your unit test of UserDefaultsExtension

@hassan31 this is a bug in Xcode. If you type po retrievedCodable.date it will print out the correct value. For some reason the Variables View isn't showing the date correctly.

@guykogus awesome, thanks a lot, it saved my a lot of time by saving user's information in Userdefaults one by one.


[backport] Add support for importing and exporting Caffe Sigmoid layer

Backport of #6234

[automatic post] Jenkins, test this please.

Jenkins CI test (for commit ea5a02ccdc9d53e4d150c5d6fcdfbf0f54e5efaf, target branch v5) failed with status FAILURE.
(For contributors, please wait until the reviewer confirms the details of the error.)

Travis error appears unrelated. Merging.

Jenkins CI test (for commit ea5a02ccdc9d53e4d150c5d6fcdfbf0f54e5efaf, target branch v5) failed with status FAILURE.
(For contributors, please wait until the reviewer confirms the details of the error.)


[APPM-1092] Test failure when a port offset is set from the automation framework.

When a port offset is set from the automation.xml, that change is not getting reflected in carbon.xml and the offset value remain 0. Since that the offset change is not picked by store.js and due that the Store login test case is failing. Reference: https://wso2.org/jira/browse/APPM-1092

Not related to IoT server, hence closing the issue.


Add support for temp/humidity sensor SHT40

Hi,
is it possible to add support for SHT40?
https://www.sensirion.com/fileadmin/user_upload/customers/sensirion/Dokumente/2_Humidity_Sensors/Datasheets/Sensirion_Humidity_Sensors_SHT4x_Datasheet.pdf
Thank you

Hi,
Is there a reason why this sensor is not available on CC253x (as of firmware 2024-03-18)?
Can't it be added?
Thanks

@tibouh there is no free space for new features.

I currently have a CC2530+CC2591 module.
I use it for a weather station: 5 ports Pxy are used.
What would you recommend instead?


Error in README.md

remove grammatical mistake

Please check my pullrequests

PLEASE CHECK MY PULL REQUESTS

Please check my pull request


didi types cause errors in build

Describe the Bug
In a project using didi for dependency injection, the new version with types included causes TS errors. It seems that the errors are so terrible to TypeScript that it actually will actually refuse to ignore the errors even with node_modules excluded.
The errors are the following three:
node_modules/didi/dist/types/lib/types.d.ts:56:3 - error TS2411: Property '__exports__' of type 'string[] | undefined' is not assignable to string index type 'string[] | ModuleDeclaration[] | ["value", any] | ["value", any, "private"] | ["type", TypeDeclaration<any>] | ["type", TypeDeclaration<any>, "private"] | [...] | [...]'.

56   __exports__?: string[],
     ~~~~~~~~~~~

node_modules/didi/dist/types/lib/types.d.ts:57:3 - error TS2411: Property '__modules__' of type 'ModuleDeclaration[] | undefined' is not assignable to string index type 'string[] | ModuleDeclaration[] | ["value", any] | ["value", any, "private"] | ["type", TypeDeclaration<any>] | ["type", TypeDeclaration<any>, "private"] | [...] | [...]'.

57   __modules__?: ModuleDeclaration[],
     ~~~~~~~~~~~

node_modules/didi/dist/types/lib/types.d.ts:58:38 - error TS8020: JSDoc types can only be used inside documentation comments.

58   [name: string]: ServiceDeclaration<?> | ModuleDeclaration[] | string[]

Steps to Reproduce

Setup a new project
Install<EMAIL_ADDRESS>Setup a tsconfig with "module": "es2020" and "strict": true (possibly "target": "es2020" and "moduleResolution": "node" as well). Exclude node_modules.
Create a main.ts where "didi" is dynamically imported with const { Injector } = await import("didi");.
Run tsc build
Errors should appear in build.

Expected Behavior
Library TS definitions should not contain errors.
It seems that

The ModuleDeclaration arrays should not be optional.
The ? in the ServiceDeclaration's type parameter seems to be an obvious JSDoc oversight.

Environment

Ubuntu 18.04 WSL2 env

I'll look into the issue once I find the time to do so.
In the meantime, please use v5.x that ships without types.

Should be fixed with v6.1.0. If you find further issues, please report them.


403 on verify-email: Error logging in with token

I'm getting the following error when I click the verify link in the verification email:
Error logging in with token: Error: You've been logged out by the server. Please log in again. [403]
I can access the Meteor.user() object in the console but my redirect function does not run (nothing gets logged in console). Here's the test function I'm trying to run on verifying email:
AccountsTemplates.configureRoute('verifyEmail',{
	redirect: function(){
		console.log('verified email');
	}
});

Any thoughts on how to get the redirect function running?

@kartikTT here's what I'm using:
AccountsTemplates.configureRoute('verifyEmail', {
  redirect: function(){
    var user = Meteor.user();
    if (user) {
      Meteor.call('recalculateSomeStuff');
      Router.go('home');
    }
  }
});

@MichaelJCole thanks for the note. I'm actually not getting the 403 anymore,but my redirect function still isn't running at all.
Changing the redirectTimeout doesn't help either. Not sure what could be preventing the redirect from being executed?

Update: the redirect is invoked if I set enforceEmailVerification: false. Assuming its because of this line as referenced in #578.
I definitely need the enforceEmailVerfication functionality - there must be a way to both redirect and keep this enabled?

Solved this by adding "atVerifyEmail" to my array of routes exempted from "ensureSignedIn".
Router.plugin('ensureSignedIn',{
	except:[ 'atSignIn', 'atSignUp', 'atForgotPassword', 'atVerifyEmail']
})

Maybe documenting this could help others?


Modernize

Just just be a make still, but:

ensure virtual env with proper dependencies and remodnav version
all imports on top (immediate and complete dependency check)
no longer piping outputs (did prevent progress bars from showing)
avoid computing some pieces twice
consolidate datalad API usage on a single function (get)
some more explicit function names
some import duplication removed

Oh one more thought: remodnav doesn't have datalad as a requirement, as far as I remember. Can we add this, or point people towards installing it themselves?

I pushed a README update

Thx!


Improve modals

I have noticed some small issues with the picker and other modals that I fixed / still try to fix:

[x] The MiniEditor in the Filter component does not fill the full width
[x] No styles for the buttons in modals (Prompt and Confirm) including CSS variables and dark theme
[x] Buttons in modals can not be activated using enter
[x] In Firefox when the results in shown in the Filter component is long enough to show a scroll bar, it can be focused using tab. I found this documented in the Mozilla wiki
[x] When a Prompt or Confirm modal is shown, it can be ignored and the page can be edited (this could be considered fixed, the current behavior with this PR is that clicking outside the modal does not do anything
[x] When for example using the Search Space command and the focus is on the MiniEditor, tab has to be pressed repeatedly to change focus to the buttons
[ ] When the focus is no longer on the MiniEditor key events are delegated to the main editor. While it is not possible to type into it, other things are possible (like moving the invisible cursor, indenting/outdenting, using formatting shortcuts, etc.) and tab cannot be used to move focus to the next button

Currently the modals also have a slightly darkened background, because that comes by default with the dialog element, but I can change that back if wanted.
Here is a comparison of how things look:

Before
After

I am open to changing things, if wanted. I also don't have any prior experience with react/preact.

I am almost done now.
I striked through one of the points in the original post because I think it would make more sense to take a look at it separately. The part with the delegation is no longer happening but keyboard shortcuts can still be used like Ctrl+b which is strange behavior, but some other shortcuts like Ctrl+Shift+t should maybe still work when, for example, the page picker is open?
And for the last other point that is still open in my original post I am not sure how to proceed: The issue that focus sticks to the text field when pressing tab. I figured out that it is caused here however I am not sure why this was done. I could just get rid of it if there are no other situations where it is required? I also noticed that while the line I linked to is run in both, firefox and chrome, it only causes the focus to actually stick to the text field in chrome, in firefox it does not appear to have any effect.

I noticed that my previous commit Prevent key events from propagating outside of modals prevented navigating through the results with the arrow keys. I change the mini editor to add the events directly to the div although I am again not sure why it was this way. I hope this is good?

Thanks. I'll have a look at this over the next few days.

Overall this looks good, but I found one issue (so far): when you use PgDown a few times to go down in a longer filtered list, the selection moves beyond the viewport and you can't seem to get out of it. Previously this worked. Not sure you can see this screen recording (you can't see the keyboard shortcuts unfortunately):
https://github.com/silverbulletmd/silverbullet/assets/59073/dd450b3a-2488-4cf1-9455-90e1845c55d7

Tests failed because dependencies went out of date. I think this looks good, let me merge it and we'll fix any bugs from there. Thanks for this!


[QUESTION] {killer} tag not working

I have a lore configuration (in mobs.yaml) like this:

but when I kill a player, the Killer section is Killer: {killer}, not Killer: DiaxManPl (DiaxManPl is my nickname in mc).
What did I do wrong?

No such placeholder exists right now. I believe it's in the pipeline right now though.

Then they are not using HeadsPlus.

Ok sorry


First code piece of OS gateway, and linking to vtgate and health check

@alainjobart @sougou

OK I am 100% confused, why do we need an additional gateway? I thought we were going to have only one, the one you already implemented the interface for (which is the old one), and the one based on the discovery you added earlier would be another flavor (the new one, for open source). What is this about?

I want to test the healthcheck module first before having the full implementation of new gateway.
So the additional gateway is to turn on the healthchecking even if we use existing gateway.

Ah OK, then the name is a bit confusing, maybe change it to testGateway, and add a clear comment that this is meant to test the new code.

LGTM then


3.0.0 CSS Variable hyphen compiling change

Take 2 CSS variables:
:root {
  --space: 32px;
  --space-075: 24px;
}

In both 2.9.x and 3.0.0, the variables compile correctly when used by themselves. However, something interesting happens when you try and invert those values:
2.9.x
margin-left: -var(--space); // -32px
margin-bottom: -var(--space-075); // -24px

3.0.0
margin-left: -var(--space); // -32px
margin-bottom: -var(--space-075); // 24px !!!

I rolled back my version to double-test, and confirmed it’s compiling differently with 3.0.0. Am I missing something? Are hyphens not part of the variable spec? Is it bad practice to prepend/append CSS variables?

Please provide correct examples.
I guess you are providing this
:root {
  --space: 32px;
  --space-075: 24px;
}

body {
  margin-left: -var(--space);
  margin-bottom: -var(--space-075);
}

and expect this
body {
  margin-left: -32px;
  margin-bottom: -24px;
}

If that's the case (cause I don't understand the -075 purpose otherwise), it's working this way on the playground http://cssnext.io/playground/

@MoOx I did. Good catch. The playground is using 3.0.0?

Playground is using the version you can see below the logo

So yes :)

Cool. I’m consistently getting the compiled results from the correct example, and the version bump affects it. But I am running it through vue-loader. Again, weirdly, changing the cssnext version in package.json is the deciding factor between it compiling correctly or not, but it might be some obscure interaction with vue-loader that’s the issue. I’ll investigate more and open another issue if it’s applicable to this repo.
Thanks for your time! 🍻

@dangodev Did you find what it was? We are having the same issue after upgrading cssnext and webpack to 3. We don't use vue

@MoOx @dangodev I am having the same issue, although the problem arise when using var in combination with calc. Manage to reproduce in playground.
:root {
 --marginLeft: calc(12 / 10)px;
 --marginRight: 10px;
}

div {
  margin-left: -var(--marginLeft);
  margin-right: -var(--marginRight);
}

Result:
div {
  margin-left: 1.2px;
  margin-right: -10px;
}

I guess this falls on postcss-calc plugin.

calc(12 / 10)px is not valid in the first place

Alright! That is good to know, will change in my implementation 👍
Although i'm not sure how that affects the hyphen.
As this produces same result in playground:
:root {
 --marginLeft: calc(2px * 2);
}

div {
  margin-left: -var(--marginLeft);
}

Indeed that's a postcss-calc bug. I opened this https://github.com/MoOx/reduce-css-calc/issues/30

Did you find what it was?

@tranan89 No; I’ve just been dancing around the issue introduced in 3.0.0. It’s still a problem for me. But for some reason I had trouble recreating the bug in the playground, so I was thinking it was something bizarre happening in the stack somewhere.
I’m glad others were able to reproduce it! I just haven’t had the time to isolate the bug and follow up.


Ignore CFG ES error while ACG is enabled

I had a issue with between ACG mitigation policy and the CFG ES support implemented in below:

https://github.com/winsiderss/systeminformer/issues/1763#issuecomment-1595935908

Applying ACG policy into SI (via process-specific settings in "Exploit Protection" for this case) causes unconnectable to driver because ACG will conflict with the CFG ES support feature.
KphGuardGrantSuppressedCallAccess call failure will lead to immediate unprotect and lack of KPH_PROCESS_PROTECTED_PROCESS process state.
Based on my investigation, there is no simple solution other than to either ignore the issue or use a hacky workaround.
 # Child-SP          RetAddr               Call Site
00 ffff8a83`d6fd3500 fffff806`15be5395     nt!MiCfgMarkValidEntries+0xb
01 ffff8a83`d6fd3510 fffff806`15a13ab5     nt!NtSetInformationVirtualMemory+0x495
02 ffff8a83`d6fd3880 fffff806`15a05f70     nt!KiSystemServiceCopyEnd+0x25
03 ffff8a83`d6fd3a88 fffff80b`bc46ea0c     nt!KiServiceLinkage
04 ffff8a83`d6fd3a90 fffff80b`bc45c9d3     SystemInformer!KphGuardGrantSuppressedCallAccess+0x8c [util.c @ 1390]
05 ffff8a83`d6fd3b30 fffff80b`bc464ec2     SystemInformer!KphCheckProcessApcNoopRoutine+0x17b [cid_tracking.c @ 1906]
06 ffff8a83`d6fd3ba0 fffff80b`bc464dc5     SystemInformer!KphpPerformProcessCreationTracking+0xaa [informer_process.c @ 446]
07 ffff8a83`d6fd3c00 fffff806`15c4b39f     SystemInformer!KphpCreateProcessNotifyRoutine+0x25 [informer_process.c @ 543]
08 ffff8a83`d6fd3c30 fffff806`15c452f2     nt!PspCallProcessNotifyRoutines+0x213
09 ffff8a83`d6fd3d00 fffff806`15c7b430     nt!PspInsertThread+0x68e
0a ffff8a83`d6fd3dc0 fffff806`15a13ab5     nt!NtCreateUserProcess+0xde0
0b ffff8a83`d6fd4a90 00007ffc`0ab0ea74     nt!KiSystemServiceCopyEnd+0x25
0c 000000ad`3bbde0c8 00007ffc`081c8e73     ntdll!NtCreateUserProcess+0x14
0d 000000ad`3bbde0d0 000000ad`3bbde6f0     0x00007ffc`081c8e73
0e 000000ad`3bbde0d8 00000000`00000000     0x000000ad`3bbde6f0

Please note that this is partial status of while single stepping so nt!MiCfgMarkValidEntries+0xb is not actually correct.
If my disassembly is right, this is just a sanity check and we can ignore it without any problems in my opinion.
Probably we can make a sanity check measure as well as how NT does, but that won't worth it compared to implementation cost so I decided to not do. However if anyone have greater idea than me my door is always open.
__int64 __fastcall MiCfgMarkValidEntries(
        __int64 a1,
        __int64 a2,
        unsigned __int64 a3,
        _QWORD *a4,
        unsigned int a5,
        _DWORD *a6,
        char a7,
        __int64 a8,
        __int64 a9)
{
  // [redact]
  if ( v12 )
  {
    v17 = a4;
    while ( (*v17 & 0xFi64) == *(_DWORD *)(v14 + 0x18) )// 0x18=BitmapVad
    {
      v18 = v17[1];
      if ( (v18 & 0xFFFFFFFFFFFFFFF8ui64) != 0 )
        break;
      // (v18 & CFG_CALL_TARGET_VALID) != 0 is where this is triggered
      if ( (a7 & CFG_CALL_TARGET_VALID) != 0 && (v18 & CFG_CALL_TARGET_VALID) != 0
        || (v18 & CFG_CALL_TARGET_CONVERT_EXPORT_SUPPRESSED_TO_VALID) != 0
        && (!(unsigned int)MiIsProcessCfgExportSuppressionEnabled()
         || ((unsigned int)CfgAddressToBitState(v19 + a2, *(_QWORD *)v14) != 2
          || !(unsigned int)MiIsProcessCfgExportSuppressionEnabled())
         && !(unsigned int)MiValidateUserCallTarget(a2 + *v17, v14)) )
      {
        return 0xC0000022i64;
      }
      ++v16;
      v17 += 2;
      if ( v16 >= v12 )
        goto LABEL_14;
    }
    return 0xC000000Di64;
  }
  // [redact]
}

@kkent030315 sorry for the delayed response here. First, thank you for taking the time to investigate and put together a PR. I appreciate the thorough information and proposed solution.
What you have would avoid the immediate problem. But it is, as you said, a "hacky workaround". ACG support is an oversight (my fault) with the current implementation. And yes, the kernel does block the ability to modify the CFG bitmap when ACG is turned on. However, that doesn't mean they are mutually exclusive mitigations. You can have ACG and CFG on at the same time.
There is a better solution here. There is a feature of ACG that enable a thread to be marked as "opt-out" and modify the CFG bitmask. I'm currently investigating this avenue to provide ACG support.
Finally, I want to also note that there are other ares of SI that are incompatible with ACG. That said, we should still address this incompatibility with the KPH mitigations. I've created this issue for tracking (https://github.com/winsiderss/systeminformer/issues/1833) I will address this problem myself once I finish my investigation.
I won't be able to accept this solution as is.


Improvements for httpRequest

Type

[ ] Bug Fix
[x] Functions: $httpRequest
[ ] Callbacks: <Callback Name>
[ ] Handlers: <Handler Type>
[ ] Others: ______

Dependencies (Third Party Modules) needed: None
Want a credit? Discord tag or other social media link: @asayukiii
Referenced Issue: #NaN
Description
Recently, I saw an user trying to find a way to check if a given URL belongs to a GIF image.
I started to think about that, there isn't a way to know the content type of the response.
This is why I made the changes in this PR, also, I made the JSON parsing a bit safer than before.
I've tested the function using these references and worked as expected:
Test 1
Returning the whole API response
$httpRequest[https://jsonplaceholder.typicode.com/todos/1;GET]
# Returns: { "userId": 1, "id": 1, "title": "delectus aut autem", "completed": false }

Test 2
Returning a property from the API response (only if content-type is JSON)
$httpRequest[https://jsonplaceholder.typicode.com/todos/1;GET;;userId]
# Returns: 1

Test 3
Retrieving the content type of the API response
$httpRequest[https://jsonplaceholder.typicode.com/todos/1;GET;;contentType]
# Returns: application/json

Test 4
Fetching an image from Discord
$httpRequest[https://cdn.discordapp.com/attachments/1186843739369513043/1263476068430385272/MenYou-1.gif?ex=66bb54c8&is=66ba0348&hm=2f54b2e187fe2ccb52f94507670cf1bd095dbcc2d9b7d915a3233e6a3ebbc387&;get;;contentType]
# Returns: image/gif

Test 5
Fetching an HTML
$httpRequest[https://www.quora.com/Why-do-furries-exist;get;;contentType]
# Returns: text/html

$httpRequest[https://www.quora.com/Why-do-furries-exist;get]
# Returns: <!DOCTYPE html><html lang='en' dir='ltr' style='padding: 0;...

Thank you!


Ocean energy and ocean energy powerplant

Description of the issue
Split from #78: We need to define something like ocean energy and ocean energy powerplant.
Ideas of solution
Idea from #78:

OceanPowerplant: An OceanPowerplant is a HydroPowerplant that is a powerplant using the oceans motion to create electric energy.

Workflow checklist

[ ] I discussed the issue with someone else than me before working on a solution
[ ] I already read the latest version of the workflow for this repository
[ ] The goal of this ontology is clear to me

I am aware that

[ ] every entry in the ontology should have a definition
[ ] classes should arise from concepts rather than from words

Results from the OEO dev 18 (flavoured with some thoughts I got when trying to summarise the results):

Marine thermal energy:

A (primary energy process): not necessary
B (transformation process): Marine thermal energy transfer is a heat transfer from the marine water body to a transportable material entity.
C (primary energy): Marine thermal energy is a kind of natural ambient thermal energy that is present in marine water bodies.
D (primary energy carrier): Still open (see below)
E (relations): Still open (see below)

Marine current energy:

A (primary energy process): water flow
B (transformation process): Marine current energy transformation is an transformation that converts marine kinetic energy to electrical energy. That is the definition we had in the pad in the end of the meeting. But as we also already have defined C, the definition of B should probably be: Marine current energy transformation is an energy transformation that converts marine current energy to electrical energy.
C (primary energy): Marine current energy is the kinetic energy of moving marine water.
D (primary energy carrier): Still open (see below)
E (relations): Still open (see below)

Marine tidal energy:

A (primary energy process): Tidal flow is a water flow during which movements of water masses caused by varying gravitational and rotational forces from sun and moon, combined with the rotation of the earth, cause waters to undergo periodic depth oscillations (tides). (Adapted from ENVO, see http://www.ontobee.org/ontology/ENVO?iri=http://purl.obolibrary.org/obo/ENVO_01001342. We do not care about tidal flows on other planets.)
B (transformation process): Marine tidal energy transformation is an transformation that converts kinetic energy from tidal flow to electrical energy.
C (primary energy): Marine tidal energy is the kinetic energy of tidal flow.
D (primary energy carrier): Still open (see below)
E (relations): Still open (see below)

Marine wave energy

A (primary energy process): wave, to be defined, see below.
B (transformation process): Marine wave energy transformation is an transformation that converts marine kinetic energy to electrical energy. That is the definition we had in the pad in the end of the meeting. But as we also already have defined C, the definition of B should probably be: Marine wave energy transformation is an energy transformation that converts marine wave energy to electrical energy.
C (primary energy): Marine wave energy is the kinetic energy of moving marine water. However, this definition is identical to the definition above for marine current energy; proposal for solution see below.
D (primary energy carrier): Still open (see below)
E (relations): Still open (see below)

Still open:

Definition of a subclass of liquid water that covers all relevant aspects for the needs of D. Proposals for a label: water body, marine water body, ocean.
Definition of a wave process. Maybe differentiate from other water flows by the (main) direction of the water flow (mainly horizontally in the ocean current and mainly vertically in waves).
Relations between the classes. Should follow from the definitions and the general structure used for the same types of classes.
We discussed using hydro energy (Hydro energy is kinetic energy of moving liquid water which can result directly from its potential energy.) as parent class for marine current energy, marine tidal energy and marine wave energy. Then we should adapt the definitions to:

Marine current energy is the hydro energy of moving marine water.
Marine tidal energy is the hydro energy of tidal flow.
Marine wave energy is the hydro energy of waves.

The related power generating units and powerplants implementing the marine energy transformation process (i.e. something like a marine current powerplant). These could (and should) be defined very generically:

A marine tidal energy converting unit is a power generating unit that uses marine tidal energy.
A marine tidal energy powerplant is a powerplant that has marine tidal energy converting unit as parts.
Same for the other types of marine energy.

What about defining the following two subclasses of water flow?

A wave is a water flow that is at the surface of a water body/marine water body/ocean and that is mainly vertically orientated.
An ocean current is a a water flow within a water body/marine water body/ocean that is mainly horizontally orientated.

For water body, marine water body, ocean or however we will label it, here some similar definitions from ENVO:

marine water body: A significant accumulation of water which is part of a marine biome.
ocean: A marine water body which is constitutes the majority of an astronomical body's hydrosphere.
sea: A large expanse of saline water usually connected with an ocean.

None of these fits perfectly our needs but maybe we can amalgamate parts of these definitions to find a satisfying definition.

Further definitions from Wikipedia (footnotes removed):

Body of water: A body of water or waterbody (often spelled water body) is any significant accumulation of water, generally on a planet's surface. The term most often refers to oceans, seas, and lakes, but it includes smaller pools of water such as ponds, wetlands, or more rarely, puddles. A body of water does not have to be still or contained; rivers, streams, canals, and other geographical features where water moves from one place to another are also considered bodies of water.
Ocean: The ocean (also the sea or the world ocean) is the body of salt water which covers approximately 71% of the surface of the Earth. It is also "any of the large bodies of water into which the great ocean is divided". A common definition lists five oceans, in descending order by area, the Pacific, Atlantic, Indian, Southern (Antarctic), and Arctic Oceans.
Sea: The sea, connected as the world ocean or simply the ocean, is the body of salty water that covers over 70 percent of the Earth's surface. The word sea is also used to denote second-order sections of the sea, such as the Mediterranean Sea, as well as certain large, entirely landlocked, saltwater lakes, such as the Caspian Sea.

I don't think that we need the biological aspect (biome) that is part of ENVO's marine water body definition.
Connecting all these information, I propose the following structure and definitions:

liquid water

water body: A water body is an accumulation of liquid water of varying size on the surface of the Earth. (Combining the ENVO definition and the Wikipedia info.)

ocean (alternative terms: sea, marine water body): The ocean is a water body that consists of salt water and is covering approximately 71% of Earth's surface.
river: A river is a water body that moves through permanent or seasonal flow process from elevated land towards lower elevations through a definite channel and empties either into a sea, lake, or another river or ends on land as bed seepage and evapotranspiration exceed water supply. (Small definition change to make it a subclass of water body instead of directly liquid water.)

It would be nice if any @OpenEnergyPlatform/oeo-domain-expert-energy-modelling would give some feedback on the proposals. It is currently here only a monologue :)

Thanks for the research and proposals @l-emele . I like your latest definitions of liquid water and subclasses.

A wave is a water flow that is at the surface of a water body/marine water body/ocean and that is mainly vertically orientated.

If we distinguish the flow subtypes by their direction, I'd rather say a wave its vertically AND horizontally oriented, whereas tide mainly vertically oriented.

In a tide, the water itself moves mainly horizontally but that is causing that the water surface level is moving vertically.

I agree with the suggestions so far. Also, I tried to summarize the results so far in the issue header.
Based on the points which are still open, I have the following suggestions:

use ocean current as the primary energy process (A) of marine current energy
use water body as the primary energy carrier (D) for all four energies
define marine current energy as hydro energy of ~moving marine water~ an ocean current.
define marine wave energy as hydro energy of ~moving marine water~ a tidal flow.
use the following relations:

[B - transformation process] has input some [C - primary energy]
[B - transformation process] has output some electrical energy (for all but marine tidal energy)
[A - primary energy process] has participant some [D - primary energy carrier]

Thank your for your suggestions, they look good.
I think we are now at a stage where I can start the implementation. However, as this is a large issue, probably further open details will arise in the implementation.

Likewise the power plants and power generating units should be subclasses of hydro power unit and hydro powerplant


Modular lasers: Laser color

Okay so you can change the laser color! yay sounds cool
The Gui works, the nbt gets updated but as soon as the item gets put back in the player inventory... boom... its get reset back to red :(

[22:21:22] [Client thread/INFO] [rorysmod]: set136,169,130
[22:21:22] [Client thread/INFO] [rorysmod]: set136,169,130
[22:21:22] [Client thread/INFO] [rorysmod]: set136,169,130
[22:21:24] [Client thread/INFO] [rorysmod]: addjava.awt.Color[r=0,g=0,b=0]
[22:21:24] [Client thread/INFO] [rorysmod]: set0,0,0
[22:21:24] [Server thread/INFO] [rorysmod]: addjava.awt.Color[r=0,g=0,b=0]

code taken from NBTLaser.java
public Color getColor() {
		int r = tag.getInteger("color_r");
		int g = tag.getInteger("color_g");
		int b = tag.getInteger("color_b");
		RMLog.info("get" + r + "," + g + "," + b);
		return new Color(r, g, b);
}
public void setColor(int red, int green, int blue) {
		RMLog.info("set" + red + "," + green + "," + blue);
		tag.setInteger("color_r", red);
		tag.setInteger("color_g", green);
		tag.setInteger("color_b", blue);
}

output
[17:28:18] [Client thread/INFO] [rorysmod]: get230,186,158
[17:28:18] [Client thread/INFO] [rorysmod]: get230,186,158
[17:28:18] [Client thread/INFO] [rorysmod]: get230,186,158
[17:28:18] [Client thread/INFO] [rorysmod]: get230,186,158
[17:28:18] [Client thread/INFO] [rorysmod]: get230,186,158
[17:28:20] [Client thread/INFO] [rorysmod]: get0,0,0
[17:28:20] [Client thread/INFO] [rorysmod]: get0,0,0
[17:28:20] [Client thread/INFO] [rorysmod]: get0,0,0
[17:28:20] [Client thread/INFO] [rorysmod]: get0,0,0

More testing has been done to little progress. I will continue to try and work this out but I am struggling

As of bb1748af576db52ae6043cb2741b40a4874fcfb8 the nbt data is stored correctly. Now working on setting laser color


CI: Run CI Job other only for Simple x86 PR

Summary
Presently, Simple x86 PRs will run All CI Checks (across all Architectures), as reported here: https://github.com/apache/nuttx/pull/14885#issuecomment-2492555557
This PR fixes the CI Build Rules, so that Simple x86 PRs will run only One Single CI Job: other.
Impact
When we create or update a Simple x86 PR: Only CI Job other shall be executed.
No impact on other PRs.
Testing
We tested the updated Build Rules arch.yml:

Arch x86 PR: Will build other only  https://github.com/lupyuen5/label-nuttx/actions/runs/11963675871

Board x86 PR: Will build other only  https://github.com/lupyuen5/label-nuttx/actions/runs/11963676750

Arch x86, Board x86 PR: Will build other only  https://github.com/lupyuen5/label-nuttx/actions/runs/11963708940

Regression Test:

Arch x86_64 PR: Will build x86_64-01 only  https://github.com/lupyuen5/label-nuttx/actions/runs/11963695329

Board x86_64 PR: Will build x86_64-01 only  https://github.com/lupyuen5/label-nuttx/actions/runs/11963678242

Arch x86_64, Board x86_64 PR: Will build x86_64-01 only  https://github.com/lupyuen5/label-nuttx/actions/runs/11963712490

Merge PR: Will build all targets  https://github.com/lupyuen5/label-nuttx/actions/runs/11963606904

[Experimental Bot, please feedback here]
Yes, this PR meets the NuttX requirements.  The PR description clearly explains the problem (unnecessary CI runs for simple x86 PRs), the solution (updated CI build rules), and the impact (only the other CI job will run for simple x86 PRs, no impact on other PRs).  The testing section provides ample evidence that the changes work as intended, including regression tests to ensure other architectures are not affected.  The links to the test runs are particularly helpful.
While the provided information is comprehensive, consider adding these minor improvements to future PRs:

Specific file changes:  Mentioning the specific file(s) modified (e.g., arch.yml) in the Summary or Impact section would be helpful.
"Before" and "After" logs: While links to CI runs are provided, including snippets of relevant log output directly in the "Testing logs before change" and "Testing logs after change" sections could offer a quicker understanding of the change's effect.  Focus on the key differences.  If the logs are very long, consider highlighting the relevant parts.
Explicitly answer all Impact questions:  While the impact is clear, explicitly answering each impact question (even with "NO") improves readability and ensures all potential impacts are considered.  For example:

Impact on user: NO
Impact on build: YES (CI build rules changed for x86 PRs)
...and so on for all impact questions.

These minor additions will make the PR even clearer and easier to review.


Access data of Kibana/elasticsearch db

My actions before raising this issue

[X] Read/searched the docs
[X] Searched past issues

I would like to know how to access/explore the data logged by Kibana to create an automatic payroll for my annotators
Sent a message on gitter with no response.

@ConsciousML , if you want to extract data from elasticsearch db, you need to read documentation for ELK. Will it be useful if we provide some basic statistics using our REST API? What is the usual way to transfer money to data annotators? By card? Crypto? Some service?

Hi @nmanovic,
Thank you for the quick response.
It will be very useful for us to be able to access some statistics using the REST API.
I'm currently working on building an annotation pipeline using CVAT and we didn't start the annotation yet.
I was thinking of deploying a script on cloud that will run every week to fetch the number of annotation completed per annotators and compute the payroll to be sent to the HR department that will then take care of the money transfer.
I'm browsing the ELK documentation to understand how to interact with this ecosystem but I can't understand much for now.
I built a CDC (capture on change) process that replicates the data from the postgres database into our data lake.
I'm thinking of the following logic to achieve my purpose without digging into ELK (which will require a lot of work on my end):

Save the stage change of each annotation task (annotation, validation, acceptance) -> already done.
Save the state change of each annotation task (new, rejected, confirmed) -> already done.
At the end of every week, query the annotation task that are in the acceptance stage with annotation status
Pull the annotation.xml (tracking data in our case) for each task, compute the number of bounding boxes
Compute the pricing based on the number of bounding box and add the amount to the annotator, reviewer and validator payroll.

This approach can work but the problem is that I will not have the time spent by the workers on each task.
Is there a simple way to fetch the data from the "list of task" dashboard in Kibana where the task_id, user and time spent is stored ?
Do you have any other suggestion that can help me solving this ?
Best,
Axel

Closed as outdated


Update README.md

It isn't need to check for document path in Swift 2.0

Thanks for your PR @Screon! I merged a slightly modified version of your PR in 401e76a9. Thanks again!


navigator hiding in android when keyboard open

In ios working fine

In android  i ahve a problem (like hiding navigator)

I have also encountered the same problem :(

I found a solution for android
open up ./android/app/src/main/AndroidManifest.xml and add android:windowSoftInputMode="adjustResize" within the .MainActivity activity declaration. It should look something like:
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:windowSoftInputMode="adjustResize"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize">

Closing as this seems resolved;

Closing as this seems resolved;

It's not resolved yet !


Switch themes in mobile view as well

Feature to document
Currently, no way in UI to switch between light and dark themes on mobile.

Author(s)
Any

Additional information

See https://github.com/webpack/webpack.js.org/pull/4137#issuecomment-808094536. Anyway, if you have an idea, file a pull request and let's see how it works.


Line Highlight Logic

[x] Revert line shape to one with width
[ ] Support line effects being wider than 5 feet
Wand of Crackling Lightning which is an APG (so early item) mentions that it is two adjacent and parallel lines so I will probably go with that implementation

Okay line width is a thing (and I have to implement more stuff):
https://2e.aonprd.com/Feats.aspx?ID=4286
https://2e.aonprd.com/Spells.aspx?ID=892
https://2e.aonprd.com/Equipment.aspx?ID=754
https://2e.aonprd.com/Equipment.aspx?ID=1951

Custom line highlight logic has proven harder than I anticipated.

closed as of 1.5.0


Package-specific tab-completion doesn't work

It seems that we only have tab completion for file path and commands.
Tab completions defined by individual packages, such as those for git, simply doesn't work.
If there's a way to enable such feature, it would be great to document it.
Reproduction steps:

Make git available by either installing through the nix-on-droid.nix or invoking a nix-shell.
Go to the terminal prompt.
Type gitTab
See only paths to files / directories instead of git subcommands.

The problem is that the default nix-on-droid system does not load autocompletion files for any shell. It should be a rather simple fix in /etc/bashrc and /etc/zshrc adding default directories in ~/.nix-profile to the shell init scripts.
But the more I think about it, I see a general issue of clear separation of responsibilities. To compare nix-on-droid with similar system configurations like NixOS or nix-darwin in relation with home-manager, the system configurations never read or write things in the users home directory, this is solely left for home-manager. Another interesting thing in these system configurations is that they install their final build into /run/current-system (where the equivalent to the nix-on-droid-path package is available in /run/current-system/sw). This has some advantages like you have a clear separation between system installations and user specific installations. I agree that this is a rather irrelevant benefit for a single user setup but would help us maintaining a clear direction what should be scope of nix-on-droid and what is scope of home-manager.
So the change would be to load completion files for system installed packages and would then prevent redundant loading of these files once enabling home-manager which also loads them by default.
To make a long story short: Do we want to go with NixOS/nix-darwin approach of /run/current-system instead of ~/.nix-profile? @t184256 What do you think?

If you're asking for my opinion, it's simple: system packages are there for hardware enablement (not applicable to n-o-d), non-user services and "recovery" packages that should be enough for hammering a package manager into a usable shape. Everything else goes to user packages, or, better, home-manager. So my answer would be to enable h-m if you want any kind of bells and whistles, and then programs.bash.enableCompletion.
I don't think this view is universally held across the Nix community, but you're right in that system packages are even less relevant for our essentially single-user install.

@t184256 Thank you for your detailed explanation.
Unfortunately, the Home Manager configuration programs.bash.enable = true;, which should enable the default programs.bash.enableCompletion = lib.mkOptionDefault true;, doesn't solve the issue.

I've tested it before posting this comment and it worked for me (on all-unstable channels).

It works now after updating nix-on-droid.
Thanks a lot!

I eventually work around this issue using
  programs.bash = {
    enable = true;
    bashrcExtra = ''
      while IFS= read -r _completionFile; do
        source "$_completionFile"
      done < <(${pkgs.findutils}/bin/find "$HOME/.nix-profile/share/bash-completion/completions" -mindepth 1 -maxdepth 1 -type f,l)
      unset _completionFile
    '';
  };

in home.nix.


Update dependency gunicorn to v21

This PR contains the following updates:

Package
Type
Update
Change

gunicorn (source)
dependencies
major
^20.1.0 -> ^21.0.0

Release Notes

benoitc/gunicorn
v21.0.1
Compare Source
v21.0.0
Compare Source

Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Renovate Bot.

Infrastructure changes detected
beta
Output

default, clickup-report, Deployment (apps) has changed:
  # Source: clickup-report/templates/deployment.yaml
  apiVersion: apps/v1
  kind: Deployment
  metadata:
    name: clickup-report
    labels:
      helm.sh/chart: clickup-report-0.1.0
      app.kubernetes.io/name: clickup-report
      app.kubernetes.io/instance: clickup-report
      app.kubernetes.io/version: "1.16.0"
      app.kubernetes.io/managed-by: Helm
  spec:
    replicas: 1
    selector:
      matchLabels:
        app.kubernetes.io/name: clickup-report
        app.kubernetes.io/instance: clickup-report
    template:
      metadata:
        labels:
-         version: "3660b9e"
+         version: "6438114"
          app.kubernetes.io/name: clickup-report
          app.kubernetes.io/instance: clickup-report
      spec:
        serviceAccountName: clickup-report
        securityContext:
          {}
        containers:
          - name: clickup-report
            securityContext:
              {}
-           image: "096568705843.dkr.ecr.eu-west-1.amazonaws.com/clickup-report:3660b9e"
+           image: "096568705843.dkr.ecr.eu-west-1.amazonaws.com/clickup-report:6438114"
            imagePullPolicy: IfNotPresent
            env:
              - name: CLICKUP_CLIENT_ID
                valueFrom:
                  secretKeyRef:
                    key: clientID
                    name: clickup-report-secret
              - name: CLICKUP_CLIENT_SECRET
                valueFrom:
                  secretKeyRef:
                    key: clientSecret
                    name: clickup-report-secret
              - name: CLICKUP_SERVER_NAME
                value: clickup-reports.beta.hdo.ee
              - name: CLICKUP_URL_SCHEME
                value: "https"
              - name: CLICKUP_SESSION_SECRET
                valueFrom:
                  secretKeyRef:
                    key: session
                    name: clickup-report-secret
            ports:
              - name: http
                containerPort: 8080
                protocol: TCP
            readinessProbe:
              httpGet:
                path: /healthz
                port: http
                httpHeaders:
                  - name: Host
                    value: clickup-reports.beta.hdo.ee
            resources:
              requests:
                cpu: 30m
                memory: 64Mi
        nodeSelector:
          kubernetes.io/arch: arm64
        tolerations:
          - effect: NoSchedule
            key: arch
            operator: Equal
            value: arm

Warning: This is preview of the plan, actual plan may change during the     deploy stage if the master branch was changed in between.

:arrows_counterclockwise: To plan again, push a new commit or comment:

!plan

Last updated at 2023/07/18 01:05:30


bug: Dashboard Terminal Sections remain blank

Did you check docs and existing issues?

[X] I have read all the snacks.nvim docs
[X] I have updated the plugin to the latest version before submitting this issue
[X] I have searched the existing issues of snacks.nvim
[X] I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)
NVIM v0.10.2 Build type: Release LuaJIT 2.1.1713484068
Operating system/version
Windows 10 Enterprise      Version	10.0.19045 Build 19045
Describe the bug

When attempting to use Dashboards terminal sections nothing is displayed.
I have tried using each of the examples utilizing terminal sections as well as attempting to change the commands used and the only thing ever visible is the title.
Steps To Reproduce

Enable snacks_dashboard
Launch nvim

Expected Behavior
Expected to see terminal output in terminal section.
Repro
vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    {
                "folke/snacks.nvim",
                priority = 1000,
		lazy = false,
		opts = {
			bigfile = { enabled = true },
			quickfile = { enabled = true },
			words = { enabled = true },
			terminal = { enabled = true },
			dashboard = {
				sections = {
					{ section = "header" },
					{ icon = " ", title = "Keymaps", section = "keys", indent = 2, padding = 1 },
					{ icon = " ", title = "Recent Files", section = "recent_files", indent = 2, padding = 1 },
					{ icon = " ", title = "Projects", section = "projects", indent = 2, padding = 1 },
					{
						section = "startup",
					},
					{
						section = "terminal",
						title = "Version",
						cmd = "lua -v",
						random = 10,
						pane = 2,
						indent = 4,
						height = 30,
					},
				},
			},
		},
		init = function()
			vim.api.nvim_create_autocmd("User", {
				pattern = "VeryLazy",
				callback = function()
					-- Setup some globals for debugging (lazy-loaded)
					_G.dd = function(...)
						Snacks.debug.inspect(...)
					end
					_G.bt = function()
						Snacks.debug.backtrace()
					end
					vim.print = _G.dd -- Override print to use snacks for `:=` command

					-- Create some toggle mappings
					Snacks.toggle.treesitter():map("<leader>uT")
					Snacks.toggle.inlay_hints():map("<leader>uh")
				end,
			})
		end,
        }
  },
})

Well it seems to not be an issue with the plugin. I forgot I had set the vim term to powershell while on Windows Systems. That seems to break the :terminal command.
The culprit was:
if string.match(os.getenv("os"), "Window") then
	vim.cmd("set shell=pwsh")
end

Figured as much. I just pushed an update that should show proper errors in this case.


Ddu caused my games not to run properly

Ever since I did a ddu. My games are now stuttering and dont feel smooth. I tried reinstalling my drivers. What do i do. I did ddu correctly. Please help

Hi, try to use the driver you had before using DDU.
DDU is not known to case stutter, usually its the driver fault.
Le lun. 15 juin 2020 17 h 18, therealsarkin15<EMAIL_ADDRESS>a
écrit :

Ever since I did a ddu. My games are now stuttering and dont feel smooth.
I tried reinstalling my drivers. What do i do. I did ddu correctly. Please
help
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Wagnard/display-drivers-uninstaller/issues/53, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ACXWDGL7KMRNC4TXELU5L3DRW2FZTANCNFSM4N6Y3KGQ
.

Am I supposed to disable the automatic driver update option from windows?

I tried to reinstall windows to fix the issue but it didnt work

Closing the issue then as if a Windows re-install doesn't fix your issue, this is 100% not DDU related.


Guide on e-mail server migration while keeping address

Also improves migrate and restore documentations.
TODO : Would be nice to know where to find the imap-backup's root directory on different OSes (where the configuration file and the backups are located).

Hi @Adrien-Luxey
Thanks for the contribution!