[BUG] Documentation of BinaryDiscreteTensorSpec can be confusing

Describe the bug
The documentation of the class BinaryDiscreteTensorSpec  can be confusing, as pointed out in https://github.com/pytorch/rl/discussions/2344#discussioncomment-10205806.
Here is the documentation: https://github.com/pytorch/rl/blob/main/torchrl/data/tensor_specs.py#L3228
Which says,
"""A binary discrete tensor spec.

Args:
    n (int): length of the binary vector.
    shape (torch.Size, optional): total shape of the sampled tensors.
        If provided, the last dimension must match n.
    device (str, int or torch.device, optional): device of the tensors.
    dtype (str or torch.dtype, optional): dtype of the tensors. Defaults to torch.long.

Examples:
    >>> spec = BinaryDiscreteTensorSpec(n=4, shape=(5, 4), device="cpu", dtype=torch.bool)
    >>> print(spec.zero())
"""

The n  argument
At the moment, since BinaryDiscreteTensorSpec inherits from DiscreteTensorSpec, n controls the number of outputs. n=1 means only False values, n=2 allows True and False values and n>2 also allows True and False . This is not very intuitive given the explanation in the documentation. Also, is this the desired behaviour?
Additionally, n has to match the last dimension of the shape and an error is raised otherwise. Is this necessary?
Possible simplification
We could remove the n parameter (fixing it to 2) and simplify the init method signature by allowing the user to define the spec shape only with the parameter shape.
To Reproduce
Steps to reproduce the behavior.
Please try to provide a minimal example to reproduce the bug. Error messages and stack traces are also helpful.
Please use the markdown code blocks for both code and stack traces.
import torchrl

Traceback (most recent call last):
  File ...

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
System info
Describe the characteristic of your environment:

Describe how the library was installed (pip, source, ...)
Python version
Versions of any other relevant libraries

import torchrl, numpy, sys
print(torchrl.__version__, numpy.__version__, sys.version, sys.platform)

Additional context
Add any other context about the problem here.
Reason and Possible fixes
If you know or suspect the reason for this bug, paste the code lines and suggest modifications.
Checklist

[ ] I have checked that there is no similar issue in the repo (required)
[ ] I have read the documentation (required)
[ ] I have provided a minimal working example to reproduce the bug (required)

Can you check #2366 and let me know if that fixes it?

Yes, the class Binary fixes it.


[NEW FEATURE] Create a code for body tag

Description of the desired solution
Add Country Code in settings.
Add Agent Code in settings.
Then a 6 digit number that will auto-increment.
The ID is going to be XXX-XXX-000000

For each case


Missing environment variable ZIVID_DATA

Hello,
I want to use your code to convert my .zdf-file to RGB-Image and depht-Image.
First, I installed zivid-software and zivid-python in a virtual enviroment, cloned this repository, then I installed the requirements.txt with pip3.
Then I placed my file "BC283R-zdf" into /python-samples/source/applications/advanced/ and changed the filename in mask_point_cloud.py. But I get the following error:
Reading BC283R.zdf point cloud
Traceback (most recent call last):
  File "mask_point_cloud.py", line 131, in <module>
    _main()
  File "mask_point_cloud.py", line 96, in _main
    frame = zivid.Frame(Path() / f"{str(zivid.environment.data_path())}/{filename_zdf}")
  File "/home/katharina/Schreibtisch/zdf to png/venv/lib/python3.6/site-packages/zivid/environment.py", line 15, in data_path
    return Path(_zivid.environment.data_path())
RuntimeError: Test data directory not found. Please set the environment variable ZIVID_DATA

Can you tell what's wrong with my setup and code?
I also tried to set ZIVID_DATA='/home/katharina/Schreibtisch/zdf_to_png/python-samples/source/applications/advanced', but that didn't help.

Have you tried setting your zivid env data path based on these instructions: https://zivid.atlassian.net/wiki/spaces/ZividKB/pages/450363393/Sample+Data (there is a link in the main README.md file in python-samples repo)

If you just want to read your own ZDF file, you can change the path to be absolute to your file:
filename_zdf = "BC283R-zdf.zdf"
my_path = "/home/katharina/Schreibtisch/zdf_to_png/python-samples/source/applications/advanced/"
frame = zivid.Frame(Path() / f"{my_path}/{filename_zdf}")

Thank you for the advice, that worked well, but now another error occurred:
Reading BC283R.zdf point cloud
Traceback (most recent call last):
  File "create_depth_map.py", line 72, in <module>
    _main()
  File "create_depth_map.py", line 21, in _main
    frame = zivid.Frame(Path() / f"{my_path}/{filename_zdf}")
  File "/home/katharina/Schreibtisch/zdf to png/venv/lib/python3.6/site-packages/zivid/frame.py", line 22, in __init__
    self.__impl = _zivid.Frame(str(file_name))
RuntimeError: Failed to load frame from file: /home/katharina/Schreibtisch/zdf_to_png/python-samples/source/applications/advanced/BC283R.zdf
Exception ignored in: <bound method Frame.__del__ of <zivid.frame.Frame object at 0x7fd30542a828>>
Traceback (most recent call last):
  File "/home/katharina/Schreibtisch/zdf to png/venv/lib/python3.6/site-packages/zivid/frame.py", line 109, in __del__
    self.release()
  File "/home/katharina/Schreibtisch/zdf to png/venv/lib/python3.6/site-packages/zivid/frame.py", line 100, in release
    self.__impl.release()
AttributeError: 'Frame' object has no attribute '_Frame__impl'

Is something wrong with my .zdf-file or my python-version? I use python 3.6.9.

Can you attach (or send to<EMAIL_ADDRESS>the zdf file you are trying to load?
Which Zivid Studio/SDK version did you use to capture the point cloud?
Please have in mind that zivid-python (master) doesn't work with Zivid SDK 2.0. yet. Also, python-samples on the master branch are made to work against 1.8.1.
If you want to work against SDK 2.0. you can use another (incomplete) branch of zivid-python: https://github.com/zivid/zivid-python/tree/release-candidate-2.0. In that case, you would have to port our samples to 2.0. (we are working on that atm, you can check our PRs.)
Alternatively, if you want to use zivid-python on the master branch you have to use Zivid SDK 1.8.x. I assume this is what you are using already?

I checked my Zivid Studio version, it is 2.0.0, so I am going to use the other repo.
Thank you very much for the hint.

I checked my Zivid Studio version, it is 2.0.0, so I am going to use the other repo.
Thank you very much for the hint.

Please reach out to us should you still have issues with zivid-python / python-samples. I assume it is version missmatch but it could be something else as well.

Can you tell me, when the Zivid Python Version <IP_ADDRESS>.0.0 will be released?
I get this error:
ImportError: Failed to import the Zivid Python C-module, please verify that:
 - Zivid SDK is installed
 - Zivid SDK version is matching the SDK version part of the Zivid Python version

So I checked the Zivid SDK version and Zivid Python version. I installed Zivid Python via pip3 and got version <IP_ADDRESS>.1, but I assume, that I need version <IP_ADDRESS>.0.0

I cannot guarantee when we will release zivid-python <IP_ADDRESS>.0.0. but we are working on it. There is a release candidate branch that works (it is just missing some features) that you can use for testing:
https://github.com/zivid/zivid-python/tree/release-candidate-2.0
You can check it out and build it locally using pip install .

I installed the candidate-2.0-branch locally as you said. If I try to load my .zdf-file, I get the same error as in the beginning:
Reading BC283R.zdf point cloud
Traceback (most recent call last):
  File "create_depth_map.py", line 70, in <module>
    _main()
  File "create_depth_map.py", line 19, in _main
    frame = zivid.Frame(Path() / f"{str(zivid.environment.data_path())}/{filename_zdf}")
AttributeError: module 'zivid' has no attribute 'environment'

I installed the candidate-2.0-branch locally as you said. If I try to load my .zdf-file, I get the same error as in the beginning:
Reading BC283R.zdf point cloud
Traceback (most recent call last):
  File "create_depth_map.py", line 70, in <module>
    _main()
  File "create_depth_map.py", line 19, in _main
    frame = zivid.Frame(Path() / f"{str(zivid.environment.data_path())}/{filename_zdf}")
AttributeError: module 'zivid' has no attribute 'environment'

The reason you are getting that is that we have not merged the PRs to port the samples to be 2.0. compatible.
Check this PR to see the changes required: https://github.com/zivid/python-samples/pull/72

I checked that and modified my code to this:
filename_zdf = "BC283R.zdf"
print(f"Reading {filename_zdf} point cloud")
my_path = Path("/home/katharina/Schreibtisch/zdf_to_png/")
path_to_zdf = Path() / my_path / filename_zdf

frame = zivid.Frame(path_to_zdf)

and again I get an error I don't understand:
Reading BC283R.zdf point cloud
Traceback (most recent call last):
  File "Tiefenbild_extrahieren.py", line 73, in <module>
    _main()
  File "Tiefenbild_extrahieren.py", line 21, in _main
    frame = zivid.Frame(path_to_zdf)
  File "/home/katharina/Schreibtisch/zdf to png/venv/lib/python3.6/site-packages/zivid/frame.py", line 27, in __init__
    self.__impl = _zivid.Frame(str(file_name))
RuntimeError: Failed to load frame from file: /home/katharina/Schreibtisch/zdf_to_png/BC283R.zdf

I am sorry for my problems with your code, but I never worked with .zdf-files before.

Can you try downloading ZividSampleData and extracting it to ProgramData as shown in instructions: https://zivid.atlassian.net/wiki/spaces/ZividKB/pages/450363393/Sample+Data
Then, please try running the read_iterate_zdf.py code sample from this branch: https://github.com/zivid/python-samples/tree/support-sdk2
This way we will determine whether there is an issue with your ZDF file or with the API. Also, please attach or send us<EMAIL_ADDRESS>the ZDF file that you have.

Can you confirm that you can open your ZDF file in Zivid Studio?
P.S. Please have in mind that the official Python-Zivid is still 1.8.1. which means that it works only with Zivid SDK 1.8.1. What you are trying to do here is to work against something that is still work in progress (we don't officially support any branch other than the master branch). If you want to continue working with 2.0. (your ZDF file is taken with SDK/Studio 2.0. so it is not fully compatible with 1.8.1.), we will attempt to help you and make your code work, but we don't recommend using anything other than master.

Yes, I can open my .zdf-file with Zivid Studio 2.0.0.
And I also captured my files with this Zivid-Studio version.

Hey Katharina,
I was able to get the same environment running and read the file using the API.
For testing I used the same ZDF to read in and did not encounter the run time error. Keep in mind that with the sample it is designed for point clouds from 1.8.1 and will have a different syntax with getting data from the point cloud so more of the functions might might not be compatible.
I put the .py file in the same path as the .py file and had no problems finding it. Double check your path definitions, but this was the method I used to test it:
frame = zivid.Frame(Path() / f"{filename_zdf}")

Thank you very much for the support, I was able to read the file. My problem was to specifiy the whole path to the image instead of just giving the filename.
I also had to adjust the code a little bit for image extraction. Instead of this code:
point_cloud = frame.get_point_cloud().to_array()
depth_map = np.dstack([point_cloud["z"]])
rgb = np.dstack([point_cloud["b"], point_cloud["g"], point_cloud["r"]])

I used this:
point_cloud = frame.point_cloud()
points = point_cloud.copy_data('z')
depth_map = np.dstack(points)
rgb = point_cloud.copy_data('rgba')

I had to do it this way, because frame.get_point_cloud().to_array()was unknown and couldn't be used.
My rgb-Image looks correct, but I am unsure about the depth-map. Maybe you can help me?
I need a picture containing the depth from camera to object in mm, so the hole image should be black with grey objects.
But I don't know how to handle the depth-map I get from depth_map = np.dstack(points) to get such an image.

Hi Katharina. This code frame.get_point_cloud() used to be valid for Zivid SDK 1.8. It is replaced with frame.point_cloud() in SDK 2.0. (Still WIP for Python).
Can you call z = points.to_array() after points = point_cloud.copy_data('z')? That should give you the numpy array or z values, which is the depth map.
The below code should alow you to visualize your depth map.
import matplotlib.pyplot as plt
import numpy as np

plt.figure()
plt.imshow(
    z,
    vmin=np.nanmin(z),
    vmax=np.nanmax(z),
    cmap="jet",
)
plt.colorbar()
plt.title("Depth map")
plt.show(block=False)

When I try to use z = points.to_array() I get this error:
AttributeError: 'numpy.ndarray' object has no attribute 'to_array'

So I used print(points) to check the content of points, that gives me this:
[[nan nan nan ... nan nan nan]
 [nan nan nan ... nan nan nan]
 [nan nan nan ... nan nan nan]
 ...
 [nan nan nan ... nan nan nan]
 [nan nan nan ... nan nan nan]
 [nan nan nan ... nan nan nan]]

I was able to get the depth map with depth values in mm with this code:
depth_map_final = points.copy()
depth_map_final[np.isnan(depth_map)[:, :]] = np.nanmax(points)
depth_map_final = depth_map_final.astype(np.uint16)

depth_window = "depth"
cv2.imwrite(f"{depth_window}.png", depth_map_final)

Thank you for the support.

Have you normalized the z values to 0-255 before plotting them? If you do that you should get the correct depth map representation in an image.
You actually don't need to call to_array() as copy_data() already returns a numpy array. So the following should work:
import matplotlib.pyplot as plt
z = point_cloud.copy_data('z')
plt.imwhow(z)


[GBPAY-3590] Add mockServiceClientCall

Depends on https://github.com/gas-buddy/service/pull/334
Deprecating mockServiceCall in favor of mockServiceClientCall and updating tests accordingly.

This won't be needed. Closing.


tm32l4xx_hal_cortex.h two function prototyps on one line

Hi
In File tm32l4xx_hal_cortex.h Line 300 are two function prototyps on one line
void HAL_MPU_DisableRegion(uint32_t RegionNumber);void HAL_MPU_ConfigRegion(MPU_Region_InitTypeDef *MPU_Init);

Hello @RetoFx,
Thank you for your contribution. You are absolutely right about this point.
Actually, the point you raised has already been dealt and fixed internally. You can find the fix in this commit : dd06af553597bb0d540532c486796a6064376f2b
Thank you again for your contribution. We are looking forward to reading from you again.
With regards,


Elbow jason/init review

Got a few quick wins in here, added some docs and doctests.

@ConnorRigby Your pattern matching notes on coords parsing were very close :)


Fix distinct hash table resizing

Closes #3339
This PR solves a distinct hash table issue:
When we append values to distinct hash table, we forgot to resize the hashtable even if it is full. This causes an infinite loop issue.
This PR solves the issue simply by resizing the distinct hashtable upon each insertion.

This change can indeed solve the infinite loop issue,but the current hash slots has a very poor performance.

This change can indeed solve the infinite loop issue,but the current hash slots has a very poor performance.

Since the query has distinct keyword in agg keys (count(distinct a)), we can only run the query in single thread mode. That's the reason why you were experiencing a slow spped.

I understand distinct only run in single thread mode, but the query in another graph db only need 2.8s (also single thread mode), in kuzu the execution didn‘t finished in 5min .

#3339

I opened a new issue about performance: https://github.com/kuzudb/kuzu/issues/3349


Unable to Publish Entities

Attempted to publish Project entity in Made by Thom workspace - failed
Added a content field to template - succeeded
Attempted to publish Project with added content - content succeeded, publishing failed

This would appear to indicate that the :published parameter being passed in, despite showing in the logs, is either being discarded before assignment to the model or the model configuration is badly setup to accept it.
Possible it's an issue with entity_params on EntitiesController.

Partially resolved by 347fdc420fe1f7b85c514970d185c96d1b23e8e3. Entities can now be published.
...entities can no longer be unpublished, it seems. Requires a second look.


Code review: Allow classroom users to sign up without an email

To test:

Trying to subscribe with a username-only account
POST /db/user/:handle/signup-with-password when signing up with username (once it's been modified to handle signup with username)
POST /queue and GET /queue. This might be tricky because we don't currently have tests for them, but since their logic is changing, now's a good time to ensure they don't break (which I think it did by looking at it). If it turns out to be too difficult to test, we need to be extra careful testing that area manually. But ideally we get some new test coverage. I can help with this if you like.
server/routes/mail.sendNextStepsEmail. It is currently untested, but like with /queue calls, its logic is being changed so it should have tests to ensure it basically runs. This should be simpler since it's not coupled to a request object; it can be tested by calling it directly.

One thing that doesn't seem to be covered is sending sendwithus emails? For example, a user watches a level so they get emailed every time the level changes. But what if they don't have an email? I'm not sure what sendwithus does in that case. And we can't just disallow people from watching something if they don't have an email, because they might remove their email later. So the solution there seems like adding appropriate logic wherever sendwithus emails get sent to check that email is defined, otherwise return or continue the loop or call the callback. Or, assuming sendwithus calls the callback with an error when no recipient is included, could leave logic the way it is, just ensure that the handlers handle those errors correctly. Some handle sendwithus errors silently, others do not, but they might need to be switched. This would take some research and testing for each endpoint... But there might be no way around it. This is a big change, after all.


feat: add text and type to outputs

Merging this and addressing the extraneous comments in my next PR.
@jeysal let me know if I left something out.


Make swraid optional

Description of changes
This is a draft based on some discussion in the Matrix room for systemd stage1.
cc @ElvishJerricco @ajs124
Things done

[x] Run swraid installer tests with both scripted and systemd stage-1
[x] Write release notes (don't rely on people to use stateVersion correctly...)
[x] Apply the same to bcache too let's do this in a later PR
[x] Fits CONTRIBUTING.md.

Oh, looks like we ought to do this for bcache as well.

I've rebased and switched the release notes and stateVersion condition to 23.11.
I think that the options should be moved out of boot.initrd.services.swraid and to something like boot.swraid, since this config is relevant to stage-2 as well. I'd start with enabling it in stage-1 iff it's enabled for stage-2, and not worry about distinguishing between stage-2-only and both-stages support for now.
I don't think we need to provide backwards-compatibility aliases since stage-1 systemd is still marked as experimental.
Thoughts?

Yes. This was enough of a fuss that I wanted to keep it separate from the LVM and bcache changes.


Enhancement: PostgreSQL Acceleration hardening

Goal-State/What
Through Spice, be able to accelerate up to 200GB of data into Postgres
Why
To ensure that Postgres accelerator meets the beta hardening criteria and can be used to accelerate real workloads in production.
By When
A target date for done-done completion of the entire enhancement.
Issue/Spec written and reviewed: August 5th, 2024
Done-Done: August 12th, 2024
Done-Done

[x] First Principles Driven - Bring data and ML to your application
[x] The Algorithm
[x] PM/Design Review
[x] UX Review
[x] Threat Model / Security Review
[x] Tests
[x] Documentation
[x] Samples/Quickstarts/Tutorials
[ ] Release Notes

The Algorithm

[x] Every requirement questioned?
[x] Delete (Scope) any part you can.
[x] Simplify.
[x] Break down into smaller iterations/milestones.
[x] Opportunities for automation.

Spec
Feature set complete

[x] Streaming when accelerating/loading
[x] Index
[x] On conflict behaviors - Drop/Upsert
[x] File mode
[x] Common/core arrow data type supports: Null, all Int types, all Float types, Time32, Time64, Timestamp (with/without TZ), Date32, Date64, Duration, Interval, Binary/LargeBinary/FixedSizeBinary, Utf8/LargeUtf8, List/FixedSizeList/LargeList, Struct, Decimal128/Decimal256
[x] No known major bugs/issues

Test Coverage

[x] End-to-end test to cover accelerating TPCH-SF1 data from S3 and benchmarking TPCH queries (official and simple).
[x] Load SF10 into file
[x]  Load SF100 into file
[x] Integration tests to cover accelerating data from S3 parquet, MySQL, Postgres with arrow types: Null, all Int types, all Float types, Time32, Time64, Timestamp (with/without TZ), Date32, Date64, Duration, Interval, Binary/LargeBinary/FixedSizeBinary, Utf8/LargeUtf8, List/FixedSizeList/LargeList, Struct, Decimal128/Decimal256

[x] Null,
[x] All Int types,
[x] All Float types,
[x] Time32,
[x] Time64,
[x] Timestamp (with/without TZ),
[x] Date32, Date64,
[x] Duration,
[x] Interval,
[x] Binary/LargeBinary/FixedSizeBinary,
[x] Utf8/LargeUtf8,
[x] List/FixedSizeList/LargeList,
[x] Struct,
[x] Decimal128/Decimal256

[x] Integration tests to cover "On Conflict" behaviors.
[x] A reproducible test script that can load a variety of datasets into accelerators.

Can load below datasets

[x] TPCH-SF10
[x] TPCH-SF100
[x] TPCDS-SF10
[x] TPCDS-SF100
[x] ~db-benchmark join-datagen 50G~ (No longer part of beta hardening criteria)
[x] Clickbench (from datafusion benchmark)
[x] Semi-structure/Blob based data with row size 1M, 10M, 100M

Can run smoke test on accelerating

[x] ~Load SF100 into file~ (not applicable)

Can run smoke test on querying on accelerated data

[x] ~Query on SF100 dataset with file mode~ (not applicable, sanity queries will be run as part of Can load TPCDS-SF100 task)

Docs

[x] Doc/Specification include all required information from a user to set up the acceleration.
[x] Include all known issues/limitations
[x] Easy to follow quickstart

Data loading robustness

[x] ~TPCH SF100 loaded into file, returned results are identical across source/federated/accelerated queries for all 21 TPCH queries and TPC simple queries. ~ Agreed to run sanity queries only. Full TPC-H pass is done on SF1 only.

Functional queries

[x] TPCH Queries can run on SF100 data (1-2 simple queries)

How
If you already have an idea, a clear and concise description of how this should be implemented.

Target Outcome: Done-Done for release

@phillipleblanc to check with @Sevenannn on status

Blocked on DuckDB streaming for larger TPCH/TPCDS/Clickbench benchmarks. @phillipleblanc work on DuckDB streaming with highest priority.
@Sevenannn work on the Clickbench script for use in Postgres as well as other accelerators (SQLite, DuckDB).

Close Postgres beta hardening as all hardening tasks are finished. A separate enhancement will be created for supporting all tpcds & Clickbench workloads in Postgres. Postgres federation will be disabled before tpcds workload support is completed


Can I open multiple tabs per session ?

Hey,
I am just wondering if I can open multiple tabs per session ?
Regards
Andrei

@andreijs that is currently not a part of webdriver specification. You'll have to open new sessions instead.

@andreijs My bad. It is supported in the spec. And Hound doesn't have the 2 window functions that are required to switch tabs. I'll implement that sometime next week.

@andreijs Hi,
You cannot really work with multiple tabs. Well, if you really want to, you can try something like
with_keys [:control], do: send_text "t" # open new tab
with_keys [:alt], do: send_text "1" # focus tab 1

but it is OS and browser dependent, so it is clearly not a good idea.
However, you can work with multiple windows, and you can also be sure that all
links with _target=blank or window.open calls will open a new window and
not a new tab, so you do not need to worry about it.
Here is an example:
navigate_to "http://example.com"
execute_script("window.open('https://github.com')", []) # will open a new window
current_url # http://example.com
window_handles |> Enum.at(1) |> focus_window # will now focus the window opened with JS
current_url # https://github.com
close_current_window
window_handles |> Enum.at(0) |> focus_window # restore the focus on our original window
current_url # http://example.com

Note that I just added focus_window and close_current_window, so if you want to use
these please use the master branch until the next release.
Please feel free to reopen if something does not work for you.


[BUG] Fleet's installer assumes your Linux system is Debian-based

It attempts to use apt regardless of the system you're on. I had to install lld manually on my Arch system (clang was preinstalled).

also no error that i dont have lld. I found this issue and installe lld - and now everything worked

This has been fixed in the latest development versions of the installer (see installer/src/main.rs. Once we decide to release v1 we will be updating the installer in the cdn.


pcli BUG

my local penumbra service port is 46657 ,it's not 26657
/root/.local/share/pcli/config.toml
grpc_url = "http://<IP_ADDRESS>:8080"
pcli view balance from grpc_url http://<IP_ADDRESS>:8080
error as follows:
but my local service port is 26657
use grpc_url = "http://<IP_ADDRESS>:8080" is ok

You can specify a custom port for the cometbft pd proxy, pd start --help lists all options, i think you'll want to specify --comebtft-addr or as an env var PENUMBRA_PD_COMETBFT_PROXY_URL=http://<IP_ADDRESS>:46657

thx


Allow integer literals in double contexts, and allow all integer constants supported by platform.

Meta-issue for implementation of the 2.1 language change around integer constants.
In Dart 2.0, integer constants are limited by the values supported by 64-bit integers, even when compiling to platforms (like the web) which supports larger integers. Also, an integer literal in a double context is a compile-time error because integers are not doubles in the type system (int is not a sub-type of double).
In Dart 2.1, the following changes are made to integer literals:

An integer literal in a double context is allowed if its numerical value can be represented exactly by a double. It is then treated like a double literal with that value.
An integer literal that is not in a double context is allowed if its numerical value can be represented exactly by the target platform's int implementation.

The details of these changes have already been incorporated in the language specification in the Dart SDK repository (although "double context" is kept vague since it's the same as the concept used by the Dart 2 type system and type inference, which has not yet been added to the specification).
The language issues https://github.com/dart-lang/language/issues/3 and https://github.com/dart-lang/language/issues/4 can be used as background material.
These changes need to be implemented by the compilers and tools.

[ ] Front-end (#34357)
[ ] dart2js (#34356)
[ ] DDC (#34358)
[ ] VM (#34359)
[ ] analyzer (#34360)

The formatter should be unaffected since this introduces no new expressions, it just allows some type combinations that would previously be rejected by the type checker, and some literals that would previously be rejected by the compilers.
Some tests have landed with 864622a76f9f045c3ee45e7492786b2519d132b9, and more will likely follow. Each platform needs to un-skip the tests when they have an implementation.

As of the latest co19 roll today, tests for int-to-double are available as part of the co19_2 suite:
co19_2/LanguageFeatures/int-to-double

Quick comment, the tests shoud probab/y cover the maxValue << 1 case. They do test maxValue + 1, which is likely to fail on platforms because it requires an extraordinarily high number of bits to represent, not necessarily because it would create an extraordinary mantissa.

What else is needed here? all 5 implementation issues are closed. @leafpetersen - thoughts?

@kwalrath do we want any documentation work on this?
We should also be sure to advertise the feature (either as part of the 2.1 release or independently).
Can't think of anything else.

At a minimum it should be in the changelog - I don't think I see an entry.

@lrhn assigning to you for the changelog, and then please close.

https://dart-review.googlesource.com/c/sdk/+/79213 is committed - closing.


Add compile option -fno-strict-aliasing for all compilers but MSVC.

Description
Due to using reinterpret_casts in our code base, we need to set -fno-strict-aliasing for all compilers but MSVC (which does not have such a switch but acts as if it were set) to prevent potentially wrong optimizations.
Fixes #1207
General Checklist:
Please ensure the following points are checked:

[x] My code follows the coding style
[x] I have reviewed file licenses
[x] I have commented any added functions (in line with Doxygen)
[x] I have commented any code that could be hard to understand
[x] My changes do not add any new compiler warnings
[x] My changes do not add any new validation layer errors or warnings
[x] I have used existing framework/helper functions where possible
[x] My changes do not add any regressions
[x] I have tested every sample to ensure everything runs correctly
[x] This PR describes the scope and expected impact of the changes I am making

Note: The Samples CI runs a number of checks including:

[x] I have updated the header Copyright to reflect the current year (CI build will fail if Copyright is out of date)
[ ] My changes build on Windows, Linux, macOS and Android. Otherwise I have documented any exceptions

If this PR contains framework changes:

[ ] I did a full batch run using the batch command line argument to make sure all samples still work properly

Sample Checklist
If your PR contains a new or modified sample, these further checks must be carried out in addition to the General Checklist:

[ ] I have tested the sample on at least one compliant Vulkan implementation
[ ] If the sample is vendor-specific, I have tagged it appropriately
[ ] I have stated on what implementation the sample has been tested so that others can test on different implementations and platforms
[ ] Any dependent assets have been merged and published in downstream modules
[ ] For new samples, I have added a paragraph with a summary to the appropriate chapter in the readme of the folder that the sample belongs to e.g. api samples readme
[ ] For new samples, I have added a tutorial README.md file to guide users through what they need to know to implement code using this feature. For example, see conditional_rendering
[ ] For new samples, I have added a link to the Antora navigation so that the sample will be listed at the Vulkan documentation site

I will test on Mac&Linux desktop this week.

Validated on
Operating system: Linux-6.8.0-48-generic-x86_64-with-glibc2.39 64 Bits, WAYLAND UI
Graphics card: AMD Radeon PRO W6800 Advanced Micro Devices AMD proprietary driver (AMD proprietary shader compiler)

Merging with Steve and Jeroen's approvals per discussion on Monday


Room misc features

This patches contain small improvements to the discovery of rooms, and handling their aliases.
Patches push both api side, and room/client side for convenient usage.

ok to test

I'll drop this pull request for now, will reopen when I'll find the time to dive deeper into this.


Japanese Translation is incorrect (confusing) in O365 Service Health and Continuity  document

🛑 IMPORTANT: You can get your feedback addressed faster if you use the comment section for the article in which you encountered a problem.
Link to article:
Tell us where exactly a problem occurs.
https://docs.microsoft.com/ja-jp/office365/servicedescriptions/office-365-platform-service-description/service-health-and-continuity
Problem:
What's wrong with the article?
Japanese Translation is incorrect (confusing) in "Recent worldwide uptime"  section in the document.
English Version (Correct) : List is devided by each Quarter like "Q1" to "Q4"
Japanese Version (Incorrect) : A part that shows Quarter is not translated correctly.
In this part, It is no problem to keep "Q1" to "Q4" if in the Japanese document.
(mean no need to translate this table)
A translation results are  incorrect and no meaning in this table , Words like  "おける" "四半期" and it is need to replace Q1,Q2,Q3 to keep correct meanings.

@keiichim1975 thank you for reporting the issue.  It is caused by a problem with the machine translation tool.   I sent the article to be translated by a human which will take a few days.  @OfficeGlobal, please let us know when the translation is complete.

@keiichim1975 , @TinaMcN article was HumanTranslated and published live

@keiichim1975, can you please confirm if the issue is fixed and if so, can you close?  Thank you!

@TinaMcN  Thank you very much for your action ! I have confirmed to fix correctly. It is  no problem to close !

@keiichim1975 thank you for confirming it is fixed.  Is it possible for you to close it?  I don't have the access rights to close it.

@TinaMcN  Oh, Sorry.. I have closed a case, Thank you!


Update documentation

Add design document.
Refresh CTAPHID and protocol docs.
Fixes https://github.com/Nitrokey/trussed-secrets-app/issues/98

Looks good. Maybe mention that the overwrite protection can leak information about the presence of a PIN-encrypted credential.

If this is a real concern, then I can address it in the next release.


Update gomock

This pull request moves the generation command from the makefile to expected_keepers.go and updates gomock to the maintained fork.
This may be useful in the future as the use of mocks expands.

@natebeauregard


Sigular and plural grammatical fix

Fixed the error message on the basis of the number. Also configured the tests accordingly. #3273

I appreciate this, though unfortunately a lot of users' tests are written to match Zod's exact error messages, so this would be considered a breaking change. I could merge this in Zod 4, but given Zod's current level of usership, I don't think the added error clarity is worth forcing users to refactor their test suites.


eslint-import-resolver-webpack does not support "..." expansion

When merging configs webpack allows special ... entry that means "merge with the defaults". For example, as seen here, it's possible to write the following webpack config
{
  resolve: {
    extensions: ['...', '.tsx']
  }
}

to get TS file resolution in addition to all the default extensions webpack supports (['.js', '.json', '.wasm']) without manually specifying them.
this, unfortunately, doesn't work with eslint-import-resolver-webpack because the ... feature is a feature of webpack, and not of enhanced-resolve, so something has to be done here
webpack does this in the cleverMerge which in turn is called when forming the full webpack config here

I have patched it locally with the following patch
diff --git a/node_modules/eslint-import-resolver-webpack/index.js b/node_modules/eslint-import-resolver-webpack/index.js
index dd3fc7a..dcb2a9c 100644
--- a/node_modules/eslint-import-resolver-webpack/index.js
+++ b/node_modules/eslint-import-resolver-webpack/index.js
@@ -10,6 +10,9 @@ var findRoot = require('find-root')
   , semver = require('semver')
   , has = require('has')

+var webpack = require('webpack')
+var { resolveByProperty } = require('webpack/lib/util/cleverMerge')
+
 var log = require('debug')('eslint-plugin-import:resolver:webpack')

 exports.interfaceVersion = 2
@@ -119,6 +122,9 @@ exports.resolve = function (source, file, settings) {
     }
   }

+  webpackConfig = webpack.config.getNormalizedWebpackOptions(webpackConfig)
+  webpack.config.applyWebpackOptionsDefaults(webpackConfig)
+
   log('Using config: ', webpackConfig)

   // externals
@@ -188,7 +194,7 @@ function createResolveSync(configPath, webpackConfig, cwd) {
   var enhancedResolveVersion = enhancedResolvePackage.version
   log('enhanced-resolve version:', enhancedResolveVersion)

-  var resolveConfig = webpackConfig.resolve || {}
+  var resolveConfig = resolveByProperty(webpackConfig.resolve || {}, 'byDependency', 'loaderImport')

   if (semver.major(enhancedResolveVersion) >= 2) {
     return createWebpack2ResolveSync(webpackRequire, resolveConfig)

if this is something we want in general I can come up with a proper PR

Seems reasonable, yes - which versions of webpack support that syntax?

i think it's only 5+ because docs for v4 don't mention this

Then we need to be sure it’s only supported when using webpack 5

ok, I'll give it a try


ft: Deploy application on Netlify

Is your feature request related to a problem? Please describe.
This issue is related to the need for continuous integration
Describe the solution you'd like
deployment of portal on Netlify with the Minimal Viable Product
Describe alternatives you've considered
Wait till the end of development and bug fixes to deploy

Application has been deployed on heroku


Intersection of two sorted arrays

Problem : Given two sorted arrays find their intersection .
Language used : C++
Fixes #269
Checklist:
-My code follows the style guidelines(Clean Code) of this project
-I have performed a self-review of my own code
-I have commented my code, particularly in hard-to-understand areas

@Amit-45 remove the other file

@Amit366  Now is it ok ?

@Amit-45 which file did u add??

I have deleted the extra file -union of two sorted arrays.cpp.
My pull request was to add the file -intersection of two sorted arrays.cpp.
Please review my pull request .Even after this if the problem continues then I will create a new pull request for the same issue .


Re: ver:   2.1.4   And  ver: 1.1.0

Greetings,
I am a nuube so please excuse if this is in wrong format or place.
I am trying to setup a full ETC node on one of my mining rigs.  I see that Emerald Wallet ver:  1.1.0  did have the "Full Node" Option.  However, the newest ver: 2.1.4  has no (visible) option for Full Node.
Does Emerald no longer offer "Full Node"?  Please help me understand if Emerald can be a full node +wallet or just wallet?   In looking at ver 1.1.0 I see Emerald Wallet using Geth to do Full Node.  Is Geth going to be reintegrated into the new versions?
Thank you so much for your time and attention to this.
Kind Regards
BoroBoros

Hi BoroBoros,
We changed the way how Emerald uses a Full Node since v1.3.0. Because now Emerald supports different blockchains, which can have different schedules for node upgrade, we stopped to ship a full node software with Emerald Wallet. Instead of that, it tries to use an existing Full Node if the user is running any.
I.e., if you have software that runs Full Node on the same machine and it's running when Emerald is launched, the Emerald automatically connect it. Emerald Wallet can connect to Geth, Parity, running ETH, or ETC.

Btw, we have version 2.1.5 now, please use it instead of 2.1.4

Thank you so much for the replies.  I will go dig into Geth and see if i can learn to get my ETC Node up and running. Do you know of any GUI based software that I can use to setup a full ETC Node?
Thank you so much
BoroBoros


WIP: Concept: Button with a semantics

@jvorcak great prototype! Let's add more stories and tests, and merge this one in!

Closes #118


Build failure when project uses both SDWebImage and SDWebImage/GIF

New Issue Checklist

[x] I have read and understood the CONTRIBUTING guide
[x] I have read the Documentation
[x] I have searched for a similar issue in the project and found none

Issue Info

Info
Value

Platform Name
iOS

Platform Version
11.0

SDWebImage Version
4.3.3

Integration Method
cocoapods

Xcode Version
9.3.1 (9E501)

Repro rate
sometimes during build/archive

Repro with our demo prj
no

Demo project link
sdwebimage_build_issue

Issue Description and Steps
Project fails to archive if pod 'SDWebImage' and pod 'SDWebImage/GIF' are being used for a different targets.
Run into this issue because another pod used in main target was using pod 'SDWebImage/GIF' so there was no intention to use SDWebImage and SDWebImage/GIF at the same time in described way.
Not sure if it's an issue of Xcode build or SDWebImage in a first place but it's good to have it reported.
There is more info in demo project README.
To reproduce:
pod install
Xcode -> Product -> Archive
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/SDWebImage-Core-GIF-umbrella.h"
        ^
/Users/user/Library/Developer/Xcode/DerivedData/TestApp1-eudslplchqkplofpqvoxvnskgbzp/Build/Intermediates.noindex/ArchiveIntermediates/TestApp1/BuildProductsPath/Debug-iphoneos/SDWebImage/SDWebImage.framework/Headers/SDWebImage-Core-GIF-umbrella.h:40:9: note: in file included from
/Users/user/Library/Developer/Xcode/DerivedData/TestApp1-eudslplchqkplofpqvoxvnskgbzp/Build/Intermediates.noindex/ArchiveIntermediates/TestApp1/BuildProductsPath/Debug-iphoneos/SDWebImage/SDWebImage.framework/Headers/SDWebImage-Core-GIF-umbrella.h:40:
#import "FLAnimatedImageView+WebCache.h"
        ^
/Users/user/Library/Developer/Xcode/DerivedData/TestApp1-eudslplchqkplofpqvoxvnskgbzp/Build/Intermediates.noindex/ArchiveIntermediates/TestApp1/BuildProductsPath/Debug-iphoneos/SDWebImage/SDWebImage.framework/Headers/FLAnimatedImageView+WebCache.h:16:9: error: 'FLAnimatedImage.h' file not found
#import "FLAnimatedImage.h"
        ^
/Users/user/Projects/sdwebimage_build_issue/TestApp1Framework/TestApp1Framework/ImageTest.swift:2:8: error: could not build Objective-C module 'SDWebImage'
import SDWebImage
       ^

Resolution
Simply changing all moving parts to use pod 'SDWebImage/GIF' in Podfile solves the issue because then pod install adds all required components to framework search paths and only one framework is used in a project.

When switching target between different dependency using SDWebImage/GIF, SDWebImage/Core, run Xcode -> Product -> Clean and Xcode -> Product -> Clean Build Folder to clean the folder....It seems a issue cause by Xcode.

Hey @dreampiggy, we use Bitrise.io and it spins completely new virtual machine for each build - no need to clean anything.
Issue is probably related to new build improvements\optimizations Apple is doing.
You can check out linked GitHub project for more details.
I just wanted to share experience in case you'll have to dig it deeper like I did.  :)

@ngAvaddon Oh...I'm checking that demo now..Seems a interesting issue

This will probably no longer apply with the 5.0 release, because we are moving all the FLAnimatedImage support to a dedicated repo


Base64 input image

I'm grabbing my image from a users webcam and store it in $scope.newUser.Photo in Base64 format. I've tried using ngImgCrop but it looks like it doesn't like Base64 input.
Does this support Base64 input? How?

It does. I'm currently using it that way. Can you post a JSfiddle/codepen with code reproducing your problem?


Add Angular controller for News and Funding at homepage

The eureka.homeController.js belongs in the eureka directory not the assets directory. The eureka directory is where the angularjs code goes. I think it will get autoloaded if you put it there. Please document in a comment what is happening that requires the vert-offset class (the ng-if="$first" stuff). Otherwise, it looks fine. Thanks.

I tried to put the js file in eureka->views folder, because this js is for homepage, so I think that is the right place, but gulpfile.js does not like it, build failed. Since the original eureka.index.js(js is for loading News and Funding only) was in the assets folder and it works, so I putted it over there. I will try to move it to eureka.
The vert-offset is for format, this is the original design about how version history looks like, I will put a comment over there.
Right now build failed because I change to hibernate5 on local, need to find a way to fix it before I make those changes.

Please review the new commits, and let me know if you have any questions

The server-side of these patches are ready to go. On the client side, will be ready with a couple of minor changes:

I'm pretty sure you don't need to add those lines to . I don't see any entries there for any other content in the eureka-webapp/src/main/webapp/eureka directory.
I believe the new script tags in index.html are not needed. Those new js files should be getting pulled into eureka-webapp/src/main/webapp/build/app.js automatically, so you don't need to refer to each one separately.

Just pushed a new commit, please review


Azure Training- Add local creation for Workspace and Compute

System Information (please complete the following information):

Model Builder Version: 16.0.2001.2801
Visual Studio Version: 16.4.3

Describe the bug
When creating a new Compute, clicking on New takes you to the Azure Portal Create VM resource page. https://ms.portal.azure.com/#create/Microsoft.VirtualMachine-ARM
Instead, it should send the user to https://ml.azure.com/compute/list.
To Reproduce
Steps to reproduce the behavior:

In the Train step, select Edit Experiment
Click on the New link next to the Compute Name dropdown.

Screenshots

Create compute done!


fix an error,changed the word 'tables' to 'table'

fix a grammar mistake in line 39,change the word 'tables' to 'table'

/ok-to-test

/lgtm


Discord Pair

[x] Test Discord
[x] Sovle Conflict
[x] Test Telegram Bot
[x] Test File System
[x] Test Task System
[x] Test dm
[x] Fix secure bug

Test


Emit events on remote db

So first I have added an listener field in DB struct then added code to emit event when a new transaction is created , view operation , update operation and when db is closed . I have also updated the WithListener function .
Fixed #1414

I have made some changes that you have suggested.

Updated dg.go as you have suggested.

@RuneRogue it's almost done: there is one minor change - see linter issues:
db/remote/db.go:31: File is not `gci`-ed with --skip-generated -s standard -s default (gci)
		OnIOCb:     func(write bool, duration time.Duration) {},
db/remote/db.go:51: File is not `gci`-ed with --skip-generated -s standard -s default (gci)

make: *** [Makefile:89: lint] Error 1

you can verify it locally with make lint

@RuneRogue thanks for contribution. Please check OnlyDust


Dev webpack

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Q70T support

Hi,
I just launched your integration with Samsung Q70T Soundbar and it seems fine, more less. I can see the states, controle volume, select source, turn on/off
I wonder what are the states of the integration, why idle while playing from Wi-Fi?

And source was digital instead of Wi-Fi

as I played music over Spotify Connect (which is Wi-Fi from soundbar perspective). It doesn't pull current source from device, despite it can control it correctly.

Can you check the state of your device here?

In SmartThinks soundbar is online:

But in HA is inactive:

Inactive in my implementation means that it is turned on in mode that doesn't support media control (HDMI/Toslink). It is set to playing/paused/stopped in modes that support media control (WiFi/BT). Can you check it out?

That's right. While I was playing music from Spotify, there were playing/paused/stopped statuses

Fixed in v1.0.2


overflow={true} still can`t be shown

lazy loading components inside a overflow container, set this to true.
 <LazyLoad height={50} offset={100} overflow once>

 </LazyLoad>

but, not render

try remove offset props and see what's happening

Still can't show。
{listObj[e].map(v => (

 this.checkDetailInfo(v)}
                  >
                    <LazyLoad height={50} overflow once>

                    </LazyLoad>

{v.renderName}

                ))}

which version of lazy load are you using?

"react": "^16.2.0",
"react-lazyload": "^2.3.0",

+1 same for me

any chance you can provide a working demo? ideally a fiddle would be very much helpful to debug this issue.

I have a similar issue:
When an element is both in an overflow element and this element is outside of viewport ->
Elements are loaded only after a scroll of the overflow container.
They are not visualized when the overflow container comes into view.
It is probably due to the fact that the scroll event is attached in the else statement of if( this.props.overflow ) - https://github.com/jasonslyvia/react-lazyload/blob/552315242635d0bf36c5387d644e6eded6641ce6/src/index.jsx#L219

@ninio Did you solve this bug with this method?

It solved it for me, yes.
Mind that the parent of LazyLoad should be the only overflowing container, apart from the window. So you should have scrollbars only on the window and the parent container.
If you have more nested overflow containers (with scrollbars) this would still not work in all the cases.

@ninio Yes, I only have one scrollable container，but now， whether to wait for the author's consent your`s PR?

@ninio The author has not yet approved your merger，I am going to use your changes and fix them directly in the source code

You can do that and update later (once the PR is approved)

@ninio I've installed your version but for the life of me I still can't get it to work inside a div with overflow. There are no other components in the tree with overflow set.
I'm using styled-components and my overflow container is this:
const TabContent = styled.div`
max-height: 65vh;
overflow-x: hidden;
overflow-y: auto;
`;

The component being lazy loaded is:
const Thumbnail = props => (
  <React.Fragment>
    <LazyLoad height="120px" overflow once>
       Materialize.Materialbox.init(e.target)}
      />
    </LazyLoad>

{props.alt}

  </React.Fragment>
);

The content lazy loads just fine without the overflow in my container. What's the correct way to achieve that with overflow? The docs say my overflow container needs to have a position property set to a value other than static; neither relative nor absolute work.


[SPIRV] The same builtin used as both input and output is incorrectly defined in spirv output.

If a shader uses the same spirv builtin for both input and output, we need to define two different OpVariables with different storage classes.

Fixed in #3655.


Suport x-scheme-handler/file out of the box

Some apps use it (like telegram-desktop) it should work the same way as using the path without schema.

I have been endlessly attempting to fix this problem. I would love to have it just work.
Calibre is another one of those programs that relies on it and it's driving me insane xD

@leiserfg @aonphleacs this is added now on master. Should be out in a release soon :tada:

any update?

I think this is related?
❯xdg-mime query default x-scheme-handler/obsidian
obsidian.desktop
❯ handlr list
┌─────────────────────────────────┬──────────────────────────────┐
│ application/pdf                 │ org.gnome.Evince.desktop     │
│ application/x-vmware-vm         │ sublime_text_3.desktop       │
│ application/x-xz-compressed-tar │ org.gnome.FileRoller.desktop │
│ audio/mp4                       │ pragha.desktop               │
│ audio/mpeg                      │ pragha.desktop               │
│ text/plain                      │ sublime_text_3.desktop       │
│ video/x-msvideo                 │ vlc.desktop                  │
└─────────────────────────────────┴──────────────────────────────┘

Hey guys the fix is out in v0.5

This still seems to be an issue for me.
In Calibre 5.14 on Manjaro using Handlr 5.0.
Any logs I might be able to provide to help fix the problem? Or maybe I'm doing something wrong somehow...?


Fields on referenced documents not showing

I'm trying to access fields on an array of referenced documents, but only the baked in reference properties show, not any of my fields.
Is there a proper way to consume a referenced document?
Here is a snippet and codesandbox link:

Code snippet
```ts
import { s } from "sanity-typed-schema-builder";
const testReference = s.document({
name: "testReference",
title: "Test Reference",
fields: [
{
name: "title",
title: "Title",
type: s.string(),
},
{
name: "description",
title: "Description",
type: s.text(),
}
]
});
export const testDoc = s.document({
name: "testDoc",
fields: [
{
name: "testArray",
title: "test Array",
type: s.array({
of: [
s.reference({
to: [testReference]
})
]
})
}
]
});
export type TestType = s.infer;
const test = {} as TestType;
// no Title found :(
test.testArray[0].title;
<details>

Resolving references is up to you, so s.infer returns the document as you would receive it from sanity, ie with references remaining references. However, if you wanted the type where all references are resolved, try s.resolved instead.

Hmm, so s.resolved will resolve a slug to a string instead of keeping it a Slug, so that kind of messes with our queries.
I'd like to be able to pass in type arguments for the referenced fields, but I'm not seeing a place to do that?

Got it, you'll want to mess with the zod property. All of the inference has an s.input<...> or s.infer<...> (which reflects exactly the type sanity returns), s.output<...> or s.parsed<...> (which reflects the type that is returned after it's schema.parse), and the s.resolved<...> (which is mostly to reflect types when generating mocks).
Ultimately, the types we're returning are the type of the document as it is in the confi (parsed or unparsed), but not to reflect queries (which might join, project, filter, or basically anything it feels like). Until we solve generating types from a query (which is a huge problem and not on the immediate roadmap), we can't reflect anything else, so you'll have to join the types somehow, ie QueriedType = Omit<A, 'ref'> & { ref: B }.

One way of doing that is a query builder (which admittedly has drawbacks in edge cases, depending on how complete it is). An example of this is: https://github.com/danielroe/sanity-typed-queries
I'm currently struggling quite a lot with getting the queries to output the expected structure, it gets messy really quickly when dealing with references, "slug" being an example require a custom selector instead of just field->.

I think this test case is flawed: https://github.com/saiichihashimoto/sanity-typed-schema-builder/blob/af68d4dc386ff3628db33a1f51385e8ce915ccea/src/reference/index.spec.ts#L85
resolve() doesn't actually expect resolve references, it expects _type and _ref, shouldn't it expect the resolved document?

.resolve expects a mocked document, not a real document. It's not going to join docs, query referenced docs, etc. It's purely so mocked documents can reference another mocked doc.

.resolve expects a mocked document, not a real document. It's not going to join docs, query referenced docs, etc. It's purely so mocked documents can reference another mocked doc.

I don't expect it to join docs, i expect it to accept resolved data because it returns a resolved type. It doesn't. Currently there's no way to work with resolved data with zod parsing. Is that intended?

 It does do what i expect it to do, except it looks like it doesn't resolve deep references, which is why i keep getting:
ZodError: [
  {
    "code": "invalid_type",
    "expected": "string",
    "received": "undefined",
    "path": [
      "pageBuilder",
      0,
      "buttons",
      0,
      "href",
      "internal",
      "_ref"
    ],
    "message": "Required"
  },
  {
    "code": "invalid_literal",
    "expected": "reference",
    "path": [
      "pageBuilder",
      0,
      "buttons",
      0,
      "href",
      "internal",
      "_type"
    ],
    "message": "Invalid literal value, expected \"reference\""
  }
]

internal is the resolved document in my data (it's a resolved page reference), and it complains it's missing _ref and _type 'reference'. How does one handle that?

Basically if zodResolved was of type z.ZodType<s.resolved<[union of passed references]>> and returned a zod combining the zodResolved of all passed references with or, it would behave as i'd expect it to. I can't think of a practical usecase for type.resolve outside of testing the library itself? Unless you load all data into memory, but that seems like a bad idea.

Okay.. Sorry for all my rambling here, i'm learning as i type.
For anyone stumbling on this issue, i found a way to deal with it.
For slugs, do this:
{
  type: s.slug({
    zodResolved: zod => zod.transform(slug => slug),
    zod: zod => zod.transform(slug => slug),
  })
}

That will make sure the types match (slug now has .index and .current properties).
To resolve references, i have this workaround, it's not ideal, but until we get a way to parse pre-resolved data from a query, it's the only way i found to make references work:
// schemas/page.ts

export const pageRefs: { [id: string]: s.output<typeof pageReference> } = {};

export const loadAllPageReferences = async (client: SanityClient) => {
	const query = `*[_type == "page"]`;
	const pages = await client.fetch<Array<s.output<typeof pageReference>>>(query);
	pages.forEach(p => {
	        // validate the page
		pageReference.resolve(p);
                // save it for resolving references later.
		pageRefs[p._id] = p;
	});
};

```typescript
// some schema where you reference a page
{
	type: s.reference({
	to: [pageReference],
		zodResolved: zod => zod.transform(({ _ref }) => pageRefs[_ref]),
	}),
}

Now if you remember to call loadAllPageReferences(client) before calling page.resolve(data), it will resolve the references for you. Do not resolve the reference in your query, it won't parse.

tbh I'm losing track of what the issues you're having are and how to help. The thing I'm more concerned about is that I think that the documentation isn't clear what it means with s.resolve or how you're supposed to handle docs/types after you make a query that does expand references.

I don't blame you, i apologize for the rambling, i've been working 24/7 trying to meet a deadline and i was partly frustrated, partly confused. I think you're right it's mostly a question of documentation. Primarily how to handle queries with expanded references as you said. Please use fairly complicated doc structures too, more than one level deep - the sanity-typed-queries builder doesn't seem to allow you to resolve those yet, so that would be another reason to use this library.

Yeah so just to pull it all together:

s.infer/s.input/s.value will give the document type, no projecting, expanding of references, etc.
s.output/s.parsed is the type after running schema.parse(doc) on it. Mostly convenience, ie turning dates into date types and flattening the slug object structure. Still, nothing about references.
schema.mock(faker) will generate something of the s.infer type
schema.resolve(mock) will return something of type s.resolved, which is only truly relevant for mocks. Only in a mocked document do I feel comfortable having this library actually replace the references with docs that fit, since we will want those to reference other docs.

In your application (mostly in your queries), you'll expand references, make queries that do weird projections, all things that I can't really build for without truly taking on the "let's type your queries" problem as well, which isn't the current goal (although it's definitely something I've wanted to solve). schema.resolve and s.resolve might be the wrong names: it might be closer to schema.resolveMockReferences or something. My issue is that I wanted a type for:

parsed types
resolved types
parsed & resolved types

Currently, the types are for 1 and 3, although s.resolved wrongly implies 2. I'd like to fix that, but also consider a better overall solution.
If we solved this problem for the queries, ie make a typed query builder, we can make all of this irrelevant, since we'll determine the types you need by implication. I have no idea how parsing actually survives that (the query builder would also have to pass through a query.parse, which gets hairy). But it's doable (just a lot of work). I think step one is the breaking change to rename the current resolve methods/types to be explicit about it being about mocks, and then actually providing meaningful resolved types.

I made an issue to follow my train of thought off of these learnings. I think there's some immediate helpful tasks that are easy (renaming some of this) and a much larger hidden task (typing queries) that's under this, which I don't have the bandwidth to take on.

and a much larger hidden task (typing queries) that's under this, which I don't have the bandwidth to take on.

Yeah, that one is a lot of work! I wish some of the modern CMS's had this out of the box (cough sanity cough). There are a few that advertises typescript, but if your data isn't typed you lose like 90% of the benefit and it's barely more than an inline documentation tool. Sanity v3 doesn't seem to do this either.

From what I understand, sanity started (and grew! a lot!) before typescript became the giant de-facto thing it currently is. To some degree, they need to play catchup. This library (and sanity-codegen) are here to help!

I brushed over the names fast and it just dawned on me that @mckelveygreg and @miklschmidt have not been the same person this whole time.

From what I understand, sanity started (and grew! a lot!) before typescript became the giant de-facto thing it currently is. To some degree, they need to play catchup. This library (and sanity-codegen) are here to help!

Apropos of sanity-codegen, i see they are working on typing groq query results: https://sanity-codegen-dev.vercel.app/
Maybe that could be of some use in the future!


(not an issue) VCP INF driver for win 8 and older

Hi,
Thank you for the correction made to the VCP, I will test them as soon as possible and update you on the outcome.
On a side note, do you happen to have by any chance a driver file for the dongle for win 8 and older ?
On my win 10 PC everything is working as it should, but on some older machine I tried the ST VCP driver but it failed to send back the content of the UART to the USB pipe.
Any idea ?

Can't you manually select the Serial Port driver during Update firmware procedure from Device Manager?
You are only using the VCP function of the dongle right? In that case I would try different values for the device and interface classes in the USB descriptors. Try the following modifications first:

comment out USBD_DFU_MountInterface() and USBD_HID_MountInterface() calls in App/usb_device.c
put the bold values from the USB device descriptor from http://www.usb.org/developers/docs/whitepapers/iadclasscode_r10.pdf to usbd_deviceDesc fields in USBDevice/Device/Src/usbd_desc.c

Hi,
I did try to select manually a signed driver (each time after having modified the VIP/PID to reflect the driver), but to no avail. Using the suggestion above did not change anything at all.
Funny thing is that the VCP driver from ST prevents the dongle to transmit back the UART to USB, while the arduino driver works only for a few chars (less than 16, after that it does not anything).
In each cases the transmission from USB to USART was working as it should have. It is only the way back that is faulty.
I will try some other changes to see if I find something...
In any case thank you for your help and have a good day,
Kraal

Moreover, when sniffing the USB traffic with a software on windows 7 64-bits, I can see that there is no USB answer from the dongle.

I'll try Zadig.
Regarding IN data, I only get one partial IN packet (I linked the usart Rx and Tx with a wire to ease the debug), after that there are no IN data coming to the host. However all the OUT packet are treated and sent over usart without any issues.
Thanks for the support.

Small update : Zadig did not help at all.

So this issue popped up on our side as well, and I wasn't able to resolve the problem with the above suggestions either. I have been thinking about more alternatives to test, I'll list them here as reference, and I'll update the ticket when we've succeeded:

Don't mount any other interfaces other than the VCP
Change the device descriptor's class:subclass:protocol to 2:2:1 (usbd_deviceDesc)
Remove the IAD from the CDC descriptor list (cdc_desc)
#define USBD_CDC_NOTEP_USED 1 in usbd_config.h
Set the CDC endpoints as: in=0x81, out=0x01, notif=0x82
Set the VID:PID to 0x0483:0x5740

At this point the device describes itself identical to ST's CDC example, and further compatibility issues can then be directed towards ST.

These modifications proved to be successful after the ST Virtual Com Port Driver was manually selected as the device driver (on a Windows 7 machine).


made nancy.auth.basic coreclr compatible

Where's the xproj/sln changes?

4 space tabbing please. Fix this!

Done


MatSnackBar console error

When using a MatSnackBar on a  page I receive a console error in both CSB and SSB.
The issue can be seen with BlazorBoilerplate and has been around for several months, https://github.com/enkodellc/blazorboilerplate/issues/111  I thought it was my issue but have tracked it down to specifically a MatSnackBar issue.
To replicate I created a blank Blazor Project and just added a MatSnackBar to the index.razor and could replicate the issue with this code:
<MatSnackbar @bind-IsOpen="@lazySnackbarIsOpen">
    <MatSnackbarContent>If you like BlazorBoilerplate, please put a star on GitHub.</MatSnackbarContent>
    <MatSnackbarActions>
        <MatIconButton<EMAIL_ADDRESS>Link="https://github.com/enkodellc/blazorboilerplate" style="color: white !important;" target="_blank"></MatIconButton>
    </MatSnackbarActions>
</MatSnackbar>

@code{
    bool lazySnackbarIsOpen = false;

    protected override async Task OnInitializedAsync()
    {
        await base.OnInitializedAsync();

        await Task.Delay(TimeSpan.FromSeconds(3)).ContinueWith((_) =>
        {
            this.lazySnackbarIsOpen = true;
        });
    }

    public void Dispose()
    {
    }
}

Here are the console errors:
CSB:

Uncaught (in promise) Error: System.ArgumentException: There is no tracked object with id '2'. Perhaps the DotNetObjectReference instance was already disposed.
Parameter name: dotNetObjectId

SSB:

Uncaught (in promise) Error: There was an exception invoking 'MatSnackbarClosedHandler'. For more details turn on detailed exceptions in 'CircuitOptions.DetailedErrors'

@enkodellc I can't reproduce this using your code. Maybe fixed? Is it still a problem in boilerplate?

I could not with CSB, but with Release SSB I could recreate by switching pages back a forth a bit. It was doing it consistently without the "hammering" on it to recreate so I will close this issue. Thanks for testing!


No Market History in web wallets

I have already made one transaction, and I remember, that it appears in the market history.. right now it is empty. Why is that?
This is strange. People are going to think, that this exchange is not used... and they will be afraid to even try it.

Unfortunately we still don't have an api call to retrieve market history, see https://github.com/cryptonomex/graphene/issues/47

:open_mouth: Guys.. this should be a blocker for the release!  Right now this exchange looks silly!  :confused: How this could even happen, that this was ignored since Jun 14?

@svk31 I guess, this ticket can be now closed.


Contact

As a User I want to Contact Site Owner so that I can Find out if there are problems with my images.
Acceptance Criteria :
-[ ] Create View
-[ ] Create Html Page
-[ ] Create URL
-[ ] Create Form
-[ ] Contact us Model
-[ ] Show in Admin

dont know what to do here... maybe create an addition to home page with contact info... OK for sure there will be no contact page, only contact info at bottom of homepage...

completed


hare-consul: improve consul-data dir name

Rename consul-<IP> to consul-data-<IP> so that it would be
easier to filter out the consul-data directory from the rest
of the configuration files at /var/lib/hare.
Signed-off-by: Andriy Tkachuk<EMAIL_ADDRESS>

utils/mk-consul-env as well please

Done. Thanks!


Network quantization

Hi guys,
Right now I'm working on LSTM (specifically language model application)
My project is to implement Incremental Network Quantization(INQ as an abbreviation in literature)
Here, it is how it works:
1- Network is fully trained in floating-point format.
2- Then a group of weight(for example 10 percent in each layer) is chosen based on their magnitude (or maybe cost function gradient according to the weight)
3- The selected weights are quantized based on the format given (e.g. Q1.4 )
4- The network is trained while the selected weights are freezed to the quantized values (non_selected weights are updating to compensate for the error of quantization)
5- This process continues until the remaining weights are quantized.
Based on the given material, this is what I need:
At the end of each epoch, for each layer, a group of weights is selected by using Keras callBack  argument in fit function
Or maybe it is better to implement it by using weight constrain  argument in layer function
I don't know how to implement it in Keras

@Jvafaei Please refer to this documentation where its clearly mentioned how to implement your own neural network using Keras. Also please go though the source code if necessary.
Also please note that we only accept issues related to bug/enhancement/feature request.
To ask questions, please see the following resources :
StackOverflow
Keras Slack channel
Keras.io support
Gitter
Thanks!
If you think we made a mistake, please open another issue explaining your request in detail


Record a log of the address + customer ID pair on policy generation

When successfully generating a policy, record the address and customer ID to the database.
We can then use this record to determine the relationship between address & customer IDs at any given moment enabling usage monitoring, optionally address pinning, and other features.


Cannot type \ in issue: it becomes Yen symbol ¥

Gogs version (or commit ref): <IP_ADDRESS>8
Can you reproduce the bug at http://try.gogs.io:

[ ] Yes (provide example URL)
[x] No
[ ] Not relevant
[ ] Test later

Description
Whenever I try to enter a backslash '' into an issue in gogs it is displayed as ¥. This seems to be some weird encoding issue, but I haven't experienced this in my entire life, yet. German umlauts and so an do work. I will attach two screenshots as soon as Githubs accepts the images.
This is what I typed:
This is what I type when I press "Alt Gr" +
2: ²
3: ³
7: {
8: [
9: ]
0: }
?: \

I can copy the backslash into it and it becomes a Yen, when copying it somewhere else it becomes a backslash again.
After submitting it the character gets removed:
"Alt Gr" + 2: ² 3: ³ 7: { 8: [ 9: ] 0: } ?:

For german keyboard layout see: https://de.wikipedia.org/wiki/Tastaturbelegung#Deutschland_und_.C3.96sterreich (T1)

Now the screenshots:
gogs
notepad

Why your local font is different from try.gogs.io?

I don't know. I simply noticed the letters look different. Did you change the font in the develop branch recently?

It's the font issue. Some fonts show yen instead of backslash (I think ones used to provide CJK support for terminals). AFAICT not a gogs issue.

Thanks @herby !
So... what do we do now?

Set the font with @font-face and pull it from googles font-library perhaps? This will make every web browser show the exact same font and It's a relatively easy fix :smiley"

Set the font with @font-face and pull it from googles font-library perhaps?

I don't think this is acceptable?

Obviously with self-hosting as an option (we already have "offline mode")
https://developers.google.com/fonts/faq#can_i_download_the_fonts_on_google_fonts_to_my_own_computer
On Apr 12, 2016 00:40, "无闻"<EMAIL_ADDRESS>wrote:

Set the font with @font-face https://github.com/font-face and pull it
from googles font-library perhaps?
I don't think this is acceptable?
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/gogits/gogs/issues/2930#issuecomment-208595395

The file is pretty large I gues...

I don't know why the font in my instance is different to the one on try.gogs.io. Still, this tells us that my browser isn't the problem. I have activated the offline_mode, could this be the reason?
The calculated font-family for textarea#content at my local instance is
"Helvetica Neue","Meiryo Ui","Microsoft YaHei",Arial,Helvetica,sans-serif
(from gogs.css:7, selector: body)
whereas at try.gogs.io it is
"Consolas",monospace
(from gogs.css:1589, selector: .repository .comment.form .content textarea)
Here is the CSS (gogs.css:1589) from my instance:
.repository .comment.form .content textarea {
    height: 200px;
}

and this is the CSS from try.gogs.io:
.repository .comment.form .content textarea {
    height: 200px;
    font-family: "Consolas", monospace;
}

The file is pretty large I guess...

I downloaded Consolas.ttf (not from Google Fonts as I couldn't find it) and its 117 kB. I don't expect "normal" fonts to get any larger than a few hundred kB.

@Jonny007-MKD

I don't know why the font in my instance is different to the one on try.gogs.io

You probably have to compile from the develop branch again. I think you have an older version.

This is true :+1: and thus this issue is already fixed: 3decc0b3d6db450d1885ea5cffef8491136d72ca (22 days ago). The latest release (the one I'm using) is 26 days old. On the current master I can use the ''.


Link is dead

The link to https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/content/ntddscsi/ns-ntddscsi-storage_protocol_data_descriptor is dead.

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

ID: 65bf40cb-7302-24b1-a41f-a60c9769c98b
Version Independent ID: f583158c-3388-8736-d291-f6eb50361707
Content: IOCTL_MINIPORT_SIGNATURE_SET_PROTOCOL - Windows drivers
Content Source: wdk-ddi-src/content/ntddscsi/ni-ntddscsi-ioctl_miniport_signature_set_protocol.md
Product: windows-hardware
Technology: windows-devices
GitHub Login: @windows-driver-content
Microsoft Alias: windowsdriverdev

Fixed the link. Now points to https://docs.microsoft.com/windows-hardware/drivers/ddi/content/ntddstor/ns-ntddstor-_storage_protocol_data_descriptor
Thanks for pointing this out!
Eliot


iOS Memory Leak

Describe the bug
Well as the title said I get a Memory leak, but only when using WebP images.
Expected behavior
The Memory should be as high as for PNG (400MB for 200 Images) but well it is (1,9Gb for 200 Images).
Dependency versions

React Native version: >0.60.0
React version: 0.60.5
RNFastImage (7.0.2)

What should i do? the PNG Workaround does not suit us

I see the same thing happening, large memory consumption and high spikes when WebP images are getting loaded.

same me

Any update on it?


Question: why is the unzipped version over 1.7 MB in size?

Just wondering after I added vue-grid-layout to my dependencies, I received a warning from webpack report:
                                                  Asset       Size  Chunks                    Chunk Names
               static/js/vendor.e0edbedd8d1dfc9f9886.js     1.9 MB       0  [emitted]  [big]  vendor

was before:
                                                  Asset       Size  Chunks             Chunk Names
               static/js/vendor.2b8e22f0b833885a5a5f.js    83.5 kB       0  [emitted]  vendor

Surely I can switch to the minified version which seems currently at 183KB, but I am still curious what (probably other dependency) makes vue-grid-layout so big? :-)
Thanks for all your efforts in releasing this lib open-source.

Thats because the non-minified version includes all the dev dependencies. I'm not a webpack expert, but I think thats normal :)

Hmm, I'm not quite sure (and neither an webpack expert ;) but I did install vue-tables-2 and vuedraggable(which both seem to have a small-medium 3rd party dependencies on their own). The vendor js size (non-minified) increased from 83,5kB to 104kB for vuedraggable and in case of vue-tables-2 to 189kB, which is still factor 10 less than for vue-grid-layout.
My guess would be that something big in the (transitive) dependency tree for grid layout is included, which might not be necessary at the end of the day. May be there are tools around which lets you double check or constrain what is included or not with package.json means?
For reference: I used webpack version 2.6.1 with npm 5.0.2 and node 6.10.3

Yes, probably there is something wrong in the webpack project configuration, but I don't really have that much free time right now to try and figure out what it is.  I'll keep this open for later.

With current webpack configuration library is so big because all dependencies are statically included (i don't take into account dev-dependencies like babel core etc.). So when you build your own project, output bundle will technically contain two Vue copies, one required for project and one required for vue-grid-layout. And these two copies are not the same. Check this article: https://medium.com/webpack/webpack-bits-getting-the-most-out-of-the-commonschunkplugin-ab389e5f318
To resolve this, use common chunks plugin like in article above.
Another solution is to exclude dependencies like Vue by using "externals" directive in webpack config: https://webpack.js.org/configuration/externals/
For example if some library has dependencies like vue, vuex, vue-resource, we can exclude them from distribution file by defining in webpack configuration:
externals: {
'vue': 'vue',
'vuex': 'vuex',
'vue-resource': 'vue-resource',
},
Libraries listed above are now treaten like they are present in current javascript environment (for example browser), so in application that uses library, must provide these libraries explicitly like:
import Vue from 'vue';
import Vuex from 'vuex';
import VueResource from 'vue-resource';
imoprt SomeLibrary from 'some-library';
So example use of vue-grid-layout with externals would be:
import Vue from 'vue';
import interact from 'interact.js';
import VueGridLayout from 'vue-grid-layout';

Thanks for the help @Ranmus, I will take a look into it when I have some free time.

@gmsa No problem, i think that will be fine to also add new dist version of library like vue has (vue.esm.js). This file should expose some simple mapping to library without transpiling and bundling. Specially for users that use own node environment with babel and webpack for building application. :)

Any update on this the webpack bundle size is still very large.

Main problem now is interact.js, which is about 300kb uncompressed

Yeah that's what i've found now as well, seems that interactjs lib is around 125kb (minimized)
<EMAIL_ADDRESS>Along with the element-resize-detector dependency (~16kb) it brings this library to around 150kb in size minimized (before vue, vuex or any other dependencies are added to the list)
<EMAIL_ADDRESS>The issue for me is going to be that my project is something being loaded on a user's site (on top of their existing applications), so adding ~500kb-1mb to the page load is worrisome
I'm not worried about this for the admin user designing and editing the layout, I was just going to use the lib to handle output the grid, and just disable editing or moving of anything (for their end users) -- may just have to figure out a way to parse the grid data to CSS so i only load this lib when an admin user is editing the layout design.

I know this may be a long-shot, but does anybody know who is probably more familiar with this lib, if it would even be possible to maybe fork this lib to something like vue-grid-layout-display removing the interactjs dependency to just display the grid (or chunking out interactjs so only loaded when needed)
I see the styles are generated here:
https://github.com/jbaysolutions/vue-grid-layout/blob/master/src/components/GridItem.vue#L395
And interact is initialized on tryMakeDraggable:
https://github.com/jbaysolutions/vue-grid-layout/blob/master/src/components/GridItem.vue#L706
and tryMakeResizable:
https://github.com/jbaysolutions/vue-grid-layout/blob/master/src/components/GridItem.vue#L730
Ideally chunking it out to only load when needed would be the best solution, but i'm still getting a full grasp on how to do this and not sure how much in this lib relies on interactjs

@gmsa If you build vue-grid-layout with the latest interact.js the bundle size is substantially smaller.
With interact.js 1.6.3:

With interact.js 1.9.22:

Any chance you could do a new build and update npm with the smaller bundle?

I'll try and make a new build this week

I ended up just setting this up in my own fork to chunk it out with webpack to only load it when editing is enabled on the frontend:
tryMakeDraggable: async function(){
    const self = this;
    if (this.draggable && !this.static) {
        if ( this.interactObj === null || this.interactObj === undefined ) {
            const interact = await import( /* webpackChunkName: "interact-js" */  'interactjs' );
            // webpack 4 uses .default @see https://webpack.js.org/guides/code-splitting/
            this.interactObj = interact.default( this.$refs.item );
        }
...

Looks like tree shaking was added in later releases through https://github.com/taye/interact.js/issues/800 but this doesn't really handle anything referenced in this issue (lazy loading with webpack).
Figured I would mention it here just for reference.


Create Deadpool.md

📝 Description
Add a brief description.
💣 Is this a breaking change (Yes/No):

[ ] Yes
[x] No

🚧 How to migrate?
Don't need.
📝 Additional Information
lol

Hii , please review mu pull request ;
Also kindly add hacktoberfest-accepted label on this pull request.
Thanks in advance.


chore: bump pods to 10.23

Bump pods to 10.23

Closed as I published own npm packages, should not be merged here


Chaotic Feat: Sign In with validation

Describe your chaotic idea
as i observe  your website need a  sign in page please give that opportunity to me i am also sharing my screenshot of login form if you like it then please assign me to contribute in your project : ) .GSSOC extd
Add Screenshots or Sketches

Confirm

[X] I understand that my idea will add to the chaos and I'm okay with it
[X] I agree to follow this project's Code of Conduct
[X] I want to work on this feature
[X] I'm GSSOC'24 Extd registered Contributor
[ ] I'm Hacktoberfest registered Contributor

The issue already exists
#5


switch list keeps streaming the regular feed instead of changing to the designated list

I can use the 'switch list' command to stream another list. It correctly displays the banner for the right lists, and the prompt also changes for the right list. But the stream is incorrect, it still streams my regular feed. Tried that with a few different lists. Any ideas?
The 'list home' command works correctly. Just the streaming one has problems.

This happens to me, too.  Is it possible to only show tweets from a specific list?

This happens to me, too.  Is it possible to only show tweets from a specific list?

The same here, please help! :(


Revocation of CAMERA_ROLL

If we deny this permission, it will still open the browser window. I do not know why it is but it should be an Expo bug?

Good to know: https://docs.expo.io/versions/latest/sdk/permissions/?redirected#manually-testing-permissions


EXC_BAD_ACCESS switching from 4.0.0 to 4.1.0+

I get a bad access exception by switching the version from 4.0.0 to 4.1.0 (or higher):
Internal.swift
line 155: switch (first, anchors.first, second, anchors.second) {
Full error:
Thread 1: EXC_BAD_ACCESS (code=1, address=0x600100000000)
By calling horizontalAnchors in a custom UIView.
//...
private let containerView: UIView

override init(frame: CGRect) {

    //...
    super.init(frame: frame)

    self.addSubview(self.containerView)

    self.containerView.horizontalAnchors == self.horizontalAnchors // Runtime error here.
}
//...

I've tried searching for any associated zombie objects, but couldn't find any.
Everything is working fine prior to version 4.1.
Did something significant change between the versions that I am not aware of? Or am I looking over something trivial?

Which version of Swift are you using?

Hi @ZevEisenberg, thanks for responding! We are using Swift 3.2.

@ZevEisenberg  Same problem with Swift 4.2, Xcode 10.1.

Can anyone who is still seeing this (👋 @iBolom) please post a sample project that reproduces this issue?


Replace m2r2 with myst

Reference Issues/PRs
Suggestions for https://github.com/alan-turing-institute/sktime/pull/1199
What does this implement/fix? Explain your changes.

adds support for myst-parser
removes m2r2 parser

Closed in favour of https://github.com/alan-turing-institute/sktime/pull/1206


/#/about link doesn't render content

Selected from navigation pane on right, from content 'Learn More' link on landing page (after login) and in URL directly

I think you just had extremely bad timing... I just added the About in the right nav about an hour ago as final touches for 0.4.2 and deployed to server (deploy takes some time) so I think from the timing of your report you must've clicked the link before all the files had finished. :)


Incompatible SOLC Bug

Hey Folks. Super new to this anyone know why I'm getting this error in Remix?
/* INCOMPATIBLE SOLC: import the following instead: "github.com/oraclize/ethereum-api/oraclizeAPI_0.4.sol" */ function f(bytes calldata x) external;
my solidity version is pragma solidity ^0.4.25 and my github import statement is just below perhaps the bug is here somwhere?
import "github.com/oraclize/ethereum-api/oraclizeAPI.sol";
I get the same bug when i use solidity 0.5.1 so that doesn't solve it.
I'm not doing anything too intense just trying to follow this tutorial from youtube https://www.youtube.com/watch?v=J05DBPdkeAo
Thank You and happy provide the rest of my code if anyone needs it to help me solve the bug!

Hello and welcome.
Regarding your specific issue, you can continue to use solc 0.4.x, but you will have to change your import statement from
import "github.com/oraclize/ethereum-api/oraclizeAPI.sol"; (supporting only solc 0.5.x +)
to
import "github.com/oraclize/ethereum-api/oraclizeAPI_0.4.sol"
which supports solc 0.4.1 to 0.4.25
or you can also change it to target your specific version of 0.4.25 by replacing the oraclize API import statement with
import "github.com/oraclize/ethereum-api/oraclizeAPI_0.4.25.sol"
The incompatible solc warning is something we've built-in, to warn users when an older solc is detected, and point them in the right direction of adjusting their import statement, to import the appropriate api for their needs. The base one you use, will always target the latest major version (0.5 in this case).


fix typo on landing page

Docs Build status updates of commit 1b393c2:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error] Cannot sync git repo to specified state. Please make sure the pull request is mergeable. Details: Git merge results in conflict, repository remote url: https://github.com/MicrosoftDocs/msteams-docs, working directory: W:\k3pe-s, target branch: live, target branch commit: 85c002d75ad40f71560586601fa0a526ee60bc20, source commit: 1b393c28f01623378e084c0df2eb859a0a2db42e.

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

Docs Build status updates of commit 43ef438:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

msteams-platform/includes/landing-page.html
:white_check_mark:Succeeded

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


[Bug]: Refactor the whole project

Contact Details
No response
What happened?
The source code is not good, and, there are a lot of if else hell.
And, I am not following the C++ iso standard, I might watch some videos, and, some lectures in how to write good C++ modern code.
Version
0.1 (Default)
What operating system are you seeing the problem on?
No response
Relevant log output
No response
Relevant print output
No response

The refactor include, the use of Design Pattern.

Use Smart Pointers


Fix socket.io-client require for reactotron-react-native

Address #279.
I didn't bump the versions of the other packages as you did before, because I don't know if it's really necessary.

Yep.  I'll bump all the downstream dependencies.  I use lerna to manage that stuff.
Thank you for bringing this up.

Thank you.  This also removes the need to hack in the window.navigator in #199 .


Update output-clause-transact-sql.md

Fixing a minor markdown issue

@AaronBertrand : Thanks for your contribution! The author, @douglaslMS, has been notified to review your proposed change.


New options param: 'map'

Most Google stuff has a options parameter 'map' in order to assign the object to the Map immediately upon construction.

Done in commit 7ad7fd8


[FLINK-1147][Java API] TypeInference on POJOs

The TypeExtractor now also fully supports generic POJOs and tries to get missing types by using type inference.
Functions can look like:
MapFunction<PojoWithGenerics<Long, T>, PojoWithGenerics<T,T>>
MapFunction<Tuple2<E, D>, PojoTuple<E, D, D>>
MapFunction<PojoTuple<E, D, D>, Tuple2<E, D>>

POJOs can contain fields such as:
public PojoWithGenerics<Z, Z> field;
public Z[] field;
public Tuple1<Z>[] field;

If you have ideas for other test cases, I'm happy to implement them.

Great! I am looking forward very much to having that in the APIs

I didn't find any issues in the code. Good to merge.

+1 to merge from me as well. Go ahead, Timo...


[Bug] (jdbc catalog) When the field value of some tables is null, the query will report an error.

Search before asking

[X] I had searched in the issues and found no similar issues.

Version
master
What's Wrong?
CAUSED BY: ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.Long;
at org.apache.doris.qe.Coordinator.getNext(Coordinator.java:1278) ~[classes/:?]
at org.apache.doris.qe.StmtExecutor.sendResult(StmtExecutor.java:1538) ~[classes/:?]
at org.apache.doris.qe.StmtExecutor.handleQueryStmt(StmtExecutor.java:1473) ~[classes/:?]
at org.apache.doris.qe.StmtExecutor.handleQueryWithRetry(StmtExecutor.java:653) ~[classes/:?]
at org.apache.doris.qe.StmtExecutor.executeByNereids(StmtExecutor.java:586) ~[classes/:?]
at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:444) ~[classes/:?]
at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:431) ~[classes/:?]
at org.apache.doris.qe.ConnectProcessor.handleQuery(ConnectProcessor.java:240) ~[classes/:?]
at org.apache.doris.qe.MysqlConnectProcessor.handleQuery(MysqlConnectProcessor.java:160) ~[classes/:?]
at org.apache.doris.qe.MysqlConnectProcessor.dispatch(MysqlConnectProcessor.java:187) ~[classes/:?]
at org.apache.doris.qe.MysqlConnectProcessor.processOnce(MysqlConnectProcessor.java:240) ~[classes/:?]
at org.apache.doris.mysql.ReadListener.lambda$handleEvent$0(ReadListener.java:52) ~[classes/:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_151]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_151]
at java.lang.Thread.run(Thread.java:748) ~[?:1.8.0_151]
What You Expected?
Results can be obtained.
How to Reproduce?
CREATE TABLE numeric_table (
id bigint(32),
tinyint_col TINYINT,
smallint_col SMALLINT,
int_col INT,
bigint_col BIGINT,
decimal_col DECIMAL(10,2),
float_col FLOAT(8,4),
double_col DOUBLE(15,10),
boolean_col BOOLEAN,
date_col DATE,
time_col TIME,
datetime_col DATETIME,
timestamp_col TIMESTAMP
);
INSERT INTO numeric_table (id, tinyint_col, smallint_col, int_col, bigint_col, decimal_col, float_col, double_col, boolean_col, date_col, time_col, datetime_col, timestamp_col) VALUES
(1, 1, 100, 1000, NULL, 10.50, 3.1415, 3.1415926535, TRUE, '2023-01-01', '12:34:56', '2023-01-01 12:34:56', CURRENT_TIMESTAMP),
(2, 0, -50, -500, -NULL, -5.25, -2.7182, -2.7182818284, FALSE, '2023-02-02', '23:59:59', '2023-02-02 23:59:59', CURRENT_TIMESTAMP),
(3, -1, 0, 0,NULL, 0.00, 0.0000, 0.0000000000, TRUE, '2023-03-03', '00:00:00', '2023-03-03 00:00:00', CURRENT_TIMESTAMP);
Anything Else?
Because the type of a certain column is null and the ColumnValueConverter is null. But the type is forced to change.

Since the column values are all null, the type cannot be recognized, so null is returned directly.
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Hello @liugddx I would like to work on this issue.


[v1.28] Secrets Encryption V3

Proposed Changes

Implements https://github.com/k3s-io/k3s/blob/master/docs/adrs/secrets-encryption-v3.md, a new command k3s secrets-encrypt rotate-keys is now Experimental, and adds, rotates, and reencrypts secrets all in one command.
Adds additional protections around attempting to k3s secrets-encrypt enable on HA clusters that do not have --secrets-encryption server flags.
Makes a new E2E test with the old test called secretsencryption_old (likely will remove old test in future PR)

Types of Changes
Feature Improvement

Verification
Use the new Secrets Encryption E2E test
OR

Start k3s cluster with --secrets-encryption
Make a bunch of secretsecho "this is a file" > file.txt && for i in {1..500}; do echo test$i >> file.txt; kubectl create secret generic test$i --from-file=file.txt; done

Run k3s secrets-encrypt rotate-keys
Watch the server logs, or wait for reencrypt_finished to be the state in k3s secrets-encrypt status
Restart all servers

Testing
Changed existing E2E test

Linked Issues
https://github.com/k3s-io/k3s/issues/7760

User-Facing Change

Further Comments

Its a bit of a chicken-and-egg problem. We can't find out watch version the apiserver is before its running, and we cant know to not supply the flag without knowing the version. I think this is just going to have to be "document it well".

I mean, we know that the local apiserver will be running, I am thinking about other apiservers in the cluster if the user for some reason tries to do this on a mixed-version cluster where some of the nodes support hot reloading and some do not. But that's probably a corner case not worth worrying about.

@brandond The new commit should cover the mixed-version edge case.


👷♀FIX: consistent error throwing

Throw errors without changing their messages so web clients can make sense of bad requests

Codecov Report

Merging #99 into master will not change coverage.
The diff coverage is 0%.

@@           Coverage Diff           @@
##           master      #99   +/-   ##
=======================================
  Coverage   79.75%   79.75%
=======================================
  Files          32       32
  Lines         820      820
  Branches       60       60
=======================================
  Hits          654      654
  Misses        163      163
  Partials        3        3

Impacted Files
Coverage Δ

src/Organization/utils.ts
60% <0%> (ø)
:arrow_up:

src/Project/utils.ts
56.81% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


change I2C address of VL53L8CX first

#362

added preSetupCode

I just realized and fixed two small things which we can also merge with this:

only use 1MHz I2C speed for this sensor. For example the HDC cant handle that
only use target status 5, 6 or 9 for distance measurements (and prefer 5 if possible)

sry, for making this pull-request a bit more difficult... Im done now


Add RSA mechanisms and key serialization format

We will port the RSA implementation to a custom backend. While backends can have extensions, they can't have custom Mechanisms and Serialization for the normal APIs. This patch adds them so that they can be implemented by the custom backend.

I think we also need some changes to the constants in config, right?
https://github.com/trussed-dev/trussed/compare/main...Nitrokey:trussed:main#diff-cba64c21ab992eaad29fce147a08f4560a4769bc14682b8a96081a5fd02dbecd

Yes probably. I'm making the migration to a custom Backend in parallel and I will keep this as draft until I'm sure everything is enough.

This branch works with https://github.com/Nitrokey/trussed-rsa-backend

Looks like the CI has some issues downloading stuff to setup the docker image

I don't really understand why the CI fails

Yeah that's weird, especially those are all urls within Azure that fail, maybe some patience will help here. On a first glance this doesn't look like something we can debug...

There are similar errors with #71

yup yup, good indication that we should give it like 24h or something

Looks like the CI is fixed


Collapse icons disappears for comments

Hi,
please see the video below, for some reasons, the default comments collapse arrows/buttons disappear when another line is commented, do you know if this is an expected behavior?

I want to work on this issue. Please assign this issue to me.

Hi, I don't know how to assign an issue

What language is this? TypeScript?
Can you paste the code sample?

yes it's Typescript, the example is in the GIF but otherwise please find below:
async function main() {
  //2. Uniswap pair creation/deployment (once)
  const transactionResponse = await contract_UniFactory.createPair(token0_address, token1_address)
  console.log("transactionResponse:", transactionResponse)
  const receipt = await transactionResponse.wait();
  //get the Tx hash and check logs on Etherscan (bc it's not printed in the Tx receipt neither)
  //also we can use UniFactory.allPairs(0) function
  console.log("receipt:", receipt) */

  // 2.5 TO ADAPT: Check Pair ETH/BETA -->
  //Pair verification example: npx hardhat verify --network goerli
  const contract_UniPairA = new hre.ethers.Contract('xxx', UNISWAP_PAIR_ABI, provider)
  console.log('contract_UniPairA: %s, token0: %s, token1: %s', await contract_UniPairA.name(), await contract_UniPairA.token0(), await contract_UniPairA.token1())
}

Thanks. I can reproduce with a /* on the second line.
The folding regions come from the TypeScript server.

yes the /* is on the second line as shown in the GIF.
What do you mean though? is it a bug or not?

Yes, it looks like a bug. The TypeScript team will have a look at it.

great, let me know if I can do anything ;)