U-238 Chain

Hi Björn,
I've been working with my friend Tobi on a decay calculator website using your module. The code is very rough atm, as you can see it is my first proper project! Its public in my repository although not currently working.
As a trial I put the U-238 decay chain into your excellent batemaneq module and ended up with daughter products which were a little odd. Values were higher than was possible i.e. disintegrations per second were higher for daugher products than the parent. I believe greater uncertainty is to be expected with bateman as the Thalf approach each other (U-238, U234 & Th230 Thalf = 4.9e9, 2.4e5 & 7.4e4y). The errors approach 4 significant figures on the 4th daugher product which I'd like to reduce.
I noticed in your C++ proof of the code you increased the precision of the calculations. Could a similar thing be done in python by using a 64 or 128 bit float? Example here?
I appreciate your help and time up to now and any further assistance is gratefully received. If you want me to send the code/results through let me know.
All the best,
Kenny

Hi Rolleroo,
Not sure if you're experiencing catastrophic cancellation or not, but you can use the pure Python implementation:
https://github.com/bjodah/batemaneq/blob/master/batemaneq/bateman.py#L6
which can be used together with SymPy's arbitrary precision floats. That should give you a clue.
Unfortunately numpy's float128 is just a wrapper around 80-bit float on x86, which means that you'll only gains ~2 digits or so (epsilon for 64-bit is ~1e-16 and 80-bit has an epsilon of 1e-19 or so).
Using SymPy is something I've described in a blog post a few years ago:
https://bjodah.github.io/blog/posts/bateman-equation.html
I actually only use this package for analytic solutions for decay chains for comparison with numerical solutions from ODE solvers (basically I use it in test suites), so using an ODE solver would be another option for you.

Also, if you haven't already I think you also should give PyNE a look. Might have what you're looking for already.

Björn,
No catastrophic failure even in Thalf values which are quite close, just larger movement from correct values.
Thanks for the pointer to your blog post. ODE solvers is not something I have any experience with. I'll chat with my maths guru (AKA my dad) and see if this meets our criteria and if there is a simple implementation!
I did glance at Pyne but the sheer scale of it's reach did discourage me. Since you suggested I had a further look. Are you referring to the "transmute" module? Might this work even with a zero neutron flux? Moving a long way out of my comfort zone....
Thanks for the time and information again.
All the best,
Kenny

Gotcha. I haven't actually used PyNE, but I did look into it at some point a few years back and I thought I remembered at least seeing some ENDF half-lives in there somewhere, not sure if they offer any convenience methods for calculating populations though.
All right, let me know if you can verify it's a bug with this package or not (I've used to verify correctness of some ODE solvers, so in the case of there being a bug in here somewhere it'll probably be subtle since it hasn't manifested itself in those tests).

Hi  Bjorn,
Just thought I would let you know that I am going to be benchmarking your bateman code against Pyne and a third code, https://github.com/alexmalins/radioactivedecay along with the author.
So far the comparison has been very close we we are looking at doing something relatively rigorous using the ICRP 107 decay data https://github.com/pyne/pyne/blob/develop/examples/open_origen_data.ipynb
If you are interested, I'll let you know how it goes.
All the best,
Kenny

Hi Kenny,
Yes, that sounds interesting, so yes, please do let me know how it goes.
That web app of yours really do look good, great work!
Best regards,
Björn


[bug] Batch Float, Batch Transform node could not be loaded

Describe the bug
Batch Float, Batch Transform node could not be loaded, I downloaded and released version 0.1.4, comfyui is a locally built venv environment version, not a released portable version. All dependencies have been installed (install.py,reqs.txt,reqs_windows.txt). Hope to get some answers.The console reported no errors, only one AnimateDiffEvo model file was not put in, I think this does not affect.

Reproduction
No response
Expected behavior
No response
Operating System
Windows (Default)
Comfy Mode
In a custom virtual env (venv, virtualenv, conda...)
Console output
** ComfyUI start up time: 2023-11-16 02:54:35.333056

Prestartup times for custom nodes:
   0.0 seconds: D:\Program\ComfyUI\custom_nodes\ComfyUI-Manager

Total VRAM 24564 MB, total RAM 32498 MB
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync
VAE dtype: torch.bfloat16
Using pytorch cross attention
Web extensions folder found at D:\Program\ComfyUI\web\extensions\ComfyLiterals
[AnimateDiffEvo] - ERROR - No motion models found. Please download one and place in: ['D:\\Program\\ComfyUI\\custom_nodes\\ComfyUI-AnimateDiff-Evolved\\models']
### Loading: ComfyUI-Impact-Pack (V4.30.7)
### Loading: ComfyUI-Impact-Pack (Subpack: V0.3)
### Loading: ComfyUI-Manager (V1.0.1)
### ComfyUI Revision: 1691 [629e4c55] | Released on '2023-11-15'
Requirement already satisfied: python_bidi in c:\users\h\appdata\local\programs\python\python310\lib\site-packages (0.4.2)
Requirement already satisfied: six in c:\users\h\appdata\local\programs\python\python310\lib\site-packages (from python_bidi) (1.16.0)
Requirement already satisfied: arabic_reshaper in c:\users\h\appdata\local\programs\python\python310\lib\site-packages (3.0.0)
Comfyroll Custom Nodes: Loaded
Imported node: FV_NodeGroup_1
Imported node: FV_NodeGroup_1
[comfy_mtb] | WARNING -> Web extensions folder at D:\Program\ComfyUI\web\extensions\mtb is not a symlink, if updating please delete it before
D:\Program\ComfyUI\venv\lib\site-packages\torchvision\transforms\functional_tensor.py:5: UserWarning: The torchvision.transforms.functional_tensor module is deprecated in 0.15 and will be **removed in 0.17**. Please don't rely on it. You probably just need to use APIs in torchvision.transforms.functional or in torchvision.transforms.v2.functional.
  warnings.warn(
[comfy_mtb] | INFO -> Loaded the following nodes:
        Animation Builder (mtb): Convenient way to manage basic animation maths at the core of many of my workflows
        Smart Step (mtb): Utils to control the steps start/stop of the KAdvancedSampler in percentage
        Styles Loader (mtb): Load csv files and populate a dropdown from the rows (à la A111)
        Bbox From Mask (mtb): From a mask extract the bounding box
        Bbox (mtb): The bounding box (BBOX) custom type used by other nodes
        Crop (mtb): Crops an image and an optional mask to a given bounding box
        Uncrop (mtb): Uncrops an image to a given bounding box
        Debug (mtb): Experimental node to debug any Comfy values, support for more types and widgets is planned
        Save Tensors (mtb): Save torch tensors (image, mask or latent) to disk, useful to debug things outside comfy
        Deep Bump (mtb): Normal & height maps generation from single pictures
        Restore Face (mtb): Uses GFPGan to restore faces
        Load Face Enhance Model (mtb): Loads a GFPGan or RestoreFormer model for face enhancement.
        Face Swap (mtb): Face swap using deepinsight/insightface models
        Load Face Swap Model (mtb): Loads a faceswap model
        Load Face Analysis Model (mtb): Loads a face analysis model
        Qr Code (mtb): Basic QR Code generator
        Unsplash Image (mtb): Unsplash Image given a keyword and a size
        Text To Image (mtb): Utils to convert text to image using a font
        String Replace (mtb): Basic string replacement
        Fit Number (mtb): Fit the input float using a source and target range
        Get Batch From History (mtb): Very experimental node to load images from the history of the server.
        Any To String (mtb): Tries to take any input and convert it to a string
        Load Film Model (mtb): Loads a FILM model
        Film Interpolation (mtb): Google Research FILM frame interpolation for large motion
        Concat Images (mtb): Add images to batch
        Color Correct (mtb): Various color correction methods
        Image Compare (mtb): Compare two images and return a difference image
        Blur (mtb): Blur an image using a Gaussian filter.
        Mask To Image (mtb): Converts a mask (alpha) to an RGB image with a color and background
        Colored Image (mtb): Constant color image of given size
        Image Premultiply (mtb): Premultiply image with mask
        Image Resize Factor (mtb): Extracted mostly from WAS Node Suite, with a few edits (most notably multiple image support) and less features.
        Save Image Grid (mtb): Save all the images in the input batch as a grid of images.
        Load Image From Url (mtb): Load an image from the given URL
        Save Gif (mtb): Save the images from the batch as a GIF
        Export With Ffmpeg (mtb): Export with FFmpeg (Experimental)
        Latent Lerp (mtb): Linear interpolation (blend) between two latent vectors
        Image Remove Background Rembg (mtb): Removes the background from the input using Rembg.
        Float To Number (mtb): Node addon for the WAS Suite. Converts a "comfy" FLOAT to a NUMBER.
        Int To Bool (mtb): Basic int to bool conversion
        Int To Number (mtb): Node addon for the WAS Suite. Converts a "comfy" INT to a NUMBER.
        Transform Image (mtb): Save torch tensors (image, mask or latent) to disk, useful to debug things outside comfy
        Load Image Sequence (mtb): Load an image sequence from a folder. The current frame is used to determine which image to load.
        Save Image Sequence (mtb): Save an image sequence to a folder. The current frame is used to determine which image to save.
Efficiency Nodes: Attempting to add 'AnimatedDiff Script' Node (ComfyUI-AnimateDiff-Evolved add-on)...Success!
Total VRAM 24564 MB, total RAM 32498 MB
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync
VAE dtype: torch.bfloat16
WAS Node Suite: OpenCV Python FFMPEG support is enabled
WAS Node Suite: `ffmpeg_bin_path` is set to: F:\facefusion\glut\ffmpeg\bin
WAS Node Suite: Finished. Loaded 197 nodes successfully.

        "Art is the language of the heart and the window to the soul." - Unknown

Import times for custom nodes:
   0.0 seconds: D:\Program\ComfyUI\custom_nodes\ComfyUI-Image-Selector
   0.0 seconds: D:\Program\ComfyUI\custom_nodes\AIGODLIKE-ComfyUI-Translation
   0.0 seconds: D:\Program\ComfyUI\custom_nodes\ComfyLiterals
   0.0 seconds: D:\Program\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus
   0.0 seconds: D:\Program\ComfyUI\custom_nodes\ComfyUI_Fictiverse
   0.0 seconds: D:\Program\ComfyUI\custom_nodes\ComfyUI_experiments
   0.0 seconds: D:\Program\ComfyUI\custom_nodes\ComfyUI-Custom-Scripts
   0.0 seconds: D:\Program\ComfyUI\custom_nodes\comfyui-various
   0.0 seconds: D:\Program\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved
   0.0 seconds: D:\Program\ComfyUI\custom_nodes\ComfyUI-Frame-Interpolation
   0.0 seconds: D:\Program\ComfyUI\custom_nodes\efficiency-nodes-comfyui
   0.0 seconds: D:\Program\ComfyUI\custom_nodes\Derfuu_ComfyUI_ModdedNodes
   0.0 seconds: D:\Program\ComfyUI\custom_nodes\ComfyUI-KJNodes
   0.0 seconds: D:\Program\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite
   0.0 seconds: D:\Program\ComfyUI\custom_nodes\facerestore_cf
   0.4 seconds: D:\Program\ComfyUI\custom_nodes\ComfyUI-Manager
   0.6 seconds: D:\Program\ComfyUI\custom_nodes\comfy_mtb
   0.9 seconds: D:\Program\ComfyUI\custom_nodes\was-node-suite-comfyui
   2.3 seconds: D:\Program\ComfyUI\custom_nodes\ComfyUI_Comfyroll_CustomNodes
   2.4 seconds: D:\Program\ComfyUI\custom_nodes\ComfyUI-Impact-Pack

Starting server

To see the GUI go to: http://<IP_ADDRESS>:8188
FETCH DATA from: D:\Program\ComfyUI\custom_nodes\ComfyUI-Manager\extension-node-map.json
FETCH DATA from: D:\Program\ComfyUI\custom_nodes\ComfyUI-Manager\custom-node-list.json
FETCH DATA from: D:\Program\ComfyUI\custom_nodes\ComfyUI-Manager\extension-node-map.json

Additional context
No response

Oh I'm realising now my answer never was posted... I was low on network.
You can find these in main I did not make a proper release for it yet, I will keep this issue open until then.
If you use ComfyManager is automatically relies on main.
I will keep making releases for now but they make less sense than before where I was prebundling wheels but I don't rely on any of these anymore


ZIP Package Download fails, if Package is in / Namespace

Hi,
there is an error, when I try to download a zip package in / namespace. It occurs because the zip file name includes the /, which is obviously not a allowed character in a file name. I fixed it in the INCLUDE ZABAPGIT_ZIP:
METHOD file_download.
...
LINE 112 ff:
lv_package  TYPE devclass.
  lv_package = iv_package.
   TRANSLATE lv_package using '/#'.
CONCATENATE  lv_package '_' sy-datlo '_' sy-timlo INTO lv_default.

Keep up the good work, it is really a great tool!!!!

cool, feel free to submit the change as a pull request


Bundle clang+lld+libc++ for Linux

Alternative approach to #659: instead of relying on Zig, we bundle everything necessary for standalone compilation ourselves. This way we're kept in control and can use a uniform, mature toolchain across all platforms. And hopefully avoid unexplainable errors that we could not reproduce without Zig.
Specifically, what we bundle in the case of x86-64 Linux is
stage1
├── [237M]  bin
│   ├── [141M]  clang
│   ├── [   3]  ld.lld -> lld
│   └── [ 96M]  lld
├── [ 47K]  include
│   └── [ 43K]  clang
│       ├── [2.8K]  limits.h
│       ├── [ 583]  stdalign.h
│       ├── [1.1K]  stdarg.h
│       ├── [7.1K]  stdatomic.h
│       ├── [ 897]  stdbool.h
│       ├── [3.5K]  stddef.h
│       ├── [ 857]  __stddef_max_align_t.h
│       ├── [ 22K]  stdint.h
│       └── [ 510]  stdnoreturn.h
└── [ 11M]  lib
    ├── [8.5K]  crt1.o
    ├── [2.3K]  crtbegin.o
    ├── [2.7K]  crtbeginS.o
    ├── [1.1K]  crtend.o
    ├── [1.1K]  crtendS.o
    ├── [2.7K]  crti.o
    ├── [2.5K]  crtn.o
    ├── [3.9M]  glibc
    │   ├── [ 23K]  libc_nonshared.a
    │   ├── [1.9M]  libc.so
    │   ├── [ 18K]  libdl.so
    │   ├── [  13]  libgcc_s.so -> libgcc_s.so.1
    │   ├── [ 98K]  libgcc_s.so.1
    │   ├── [1.7M]  libm.so
    │   ├── [143K]  libpthread.so
    │   └── [ 45K]  librt.so
    ├── [  18]  libatomic.so -> libatomic.so.1.2.0
    ├── [  18]  libatomic.so.1 -> libatomic.so.1.2.0
    ├── [ 30K]  libatomic.so.1.2.0
    ├── [1.8M]  libc++.a
    ├── [662K]  libc++abi.a
    ├── [  14]  libc++abi.so -> libc++abi.so.1
    ├── [  16]  libc++abi.so.1 -> libc++abi.so.1.0
    ├── [357K]  libc++abi.so.1.0
    ├── [ 12K]  libc++experimental.a
    ├── [  28]  libc++.so
    ├── [  13]  libc++.so.1 -> libc++.so.1.0
    ├── [1022K]  libc++.so.1.0
    ├── [2.9M]  libgcc.a
    ├── [ 948]  libgmp.la
    ├── [  16]  libgmp.so -> libgmp.so.10.3.2
    ├── [  16]  libgmp.so.10 -> libgmp.so.10.3.2
    └── [636K]  libgmp.so.10.3.2

As can be seen, the bundle size is dominated completely by the clang and lld executables. That Zig manages to combine both of them and their own compiler in an executable smaller than clang is an impressive feat and demonstrates that this bundle could still be optimized, though I don't think it's a dealbreaker for us.
A special issue on Linux is the glibc. We bundle a relatively old version of it, glibc 2.27 from Nixpkgs 19.03, so that Lean programs linked against it work on most somewhat recent distros. For running we always use the system glibc, which is why we put the bundled one in a separate directory.
Apart from the glibc, a Lean program built with this bundle does have more runtime dependencies, namely the libc++ and GMP DSOs:
$ ldd tests/compiler/534.lean.out
	linux-vdso.so.1 (0x00007ffd9dde4000)
	libc++.so.1 => not found
	libc++abi.so.1 => not found
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f5b35e59000)
	libgmp.so.10 => /usr/lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f5b35dd5000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f5b35dcf000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f5b35db2000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f5b35d8f000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5b35b9d000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f5b35fd2000)

For the tests, I simply set LD_LIBRARY_PATH to the bundle's lib/, but that isn't really an option in general. libc++ (BSD-like/MIT) we should probably link statically (like it seems to be the case with libstdc++ right now), but that is problematic with GMP because of its LGPL license. The best approach I can come up with is to use the "Windows approach": put $ORIGIN (the executable's own directory) in its rpath and copy libgmp.so next to it (which is basically free with hardlinks). The second step should probably be done by Lake, not leanc.

@gebner It looks like we should really compile LLVM from source after all... or we do the same thing as with the Lean executable and just copy those deps as well.
stdio.h is not a header required by Lean programs. I'm assuming that FFI components will require additional dependencies and thus will be compiled using external toolchains anyway.

@gebner It looks like we should really compile LLVM from source after all... or we do the same thing as with the Lean executable and just copy those deps as well.
I'm assuming that FFI components will often require additional dependencies and thus will be compiled using external toolchains anyway.

I'm not sure I understand the intent behind this PR then.  If users are supposed to use their own toolchain anyhow, why do we bundle it?  Wouldn't it be easier to add an elan install-clang command that downloads a known good clang release for users on old linux distributions?

Ah, the cpack configuration must be wrong, all the files listed above should be included! I'll take a look.
Regarding NixOS, it might be best to completely ignore the bundle and keep using stdenv? We can make it so that when LEAN_CC is defined, none of the new flags (like --sysroot) are applied.

@Kha you are correct, running the executable outside of mingw does crash due to not being able to find libgmp. I am suprised I never stumbled onto that before!
More to your point, the copying should probably occur during the creation of a "distribution" of package, which Lake does not yet do, However, it is certainly something on the TODO list. Such a dist folder would also want to be free of intermediate or development build artifacts like trace files and give users the ability to hook in additional shared libraries to copy.
However, this does raise the question of whether it might be worth it in the medium to long term to move from libgmp to a different multi-precision library that can be linked statically to make Lean's core self-contained.

Closing in favor of #795


Update terraform dependency to v0.12.0

Terraform 0.12.0 is now released, so let's update the dependency
to released code.
Added two 'replace' entries, as those modules has been renamed recently
and some indirect dependencies still points to the old versions, which
is currently not handled very well by go.
Signed-off-by: Mateusz Gozdek<EMAIL_ADDRESS>

Closed by https://github.com/poseidon/terraform-provider-ct/pull/48


Use std::optional rather than sentinel values

Description
sf::InputStream and derived classes have four functions whose return value operates in the same way, open, read, seek, and tell. Upon success, they return a non-negative number which means different things for different functions. Upon failure, they return -1. -1 is a sentinel value. This error value is incompatible with other successful return values. It's not valid to, for example, add -1 to a non-negative return value from getSize(). However, the type system allows this. Because both return values are of type std::int64_t it's very easy to ignore a potential -1 return value and instead write code that behaves unexpected in the face of errors.
This PR replaces those std::int64_t return values with std::optional<std::size_t>. Using std::optional forces all callers of these functions to reckon with a potential error. This has major type safety implications since it's no longer possible to silently ignore the possibility of -1 being returned.
As it turns out, there are places where these functions were called without taking into consideration the possibility of failure. For example the following snippet assumes that file.getSize() succeeds.
https://github.com/SFML/SFML/blob/73126c93a372d0ec867f9bc621b213094750ac40/examples/vulkan/Vulkan.cpp#L934
What happens if it does not succeed? In the case that -1 is returned then that value is underflowed to the maximum value of std::size_t. When divided by sizeof(std::uint32_t) you end up with a value that is certainly too large to be successfully allocated. Failure to check this return value morphs into an allocation failure which is a confusing user experience.
Here's another example. The return values of tell and getSize are used without handling the potential error case. It is not valid to increment offset by -1. -1 does not have any arithmetic meaning. It is a placeholder value. Subtracting the offset from -1 leads to a number that is even more negative. Yet another nonsense value yet the existing API did nothing to force us to handle this error, highlighting its lack of safety.
https://github.com/SFML/SFML/blob/73126c93a372d0ec867f9bc621b213094750ac40/src/SFML/Audio/SoundFileReaderOgg.cpp#L55-L58
In this case I chose to use .value() to ensure that the optional has a value or else let std::bad_optional_access be thrown. We could instead simply use operator* but then we open ourselves up to undefined behavior in the event that the optional is null which seemed like a worse user experience that an uncaught exception causing a program exit.
In some places we're working with C APIs that still expect -1 to signal error and those circumstances are still handled, albeit handled in a more explicit way that makes it clear that the C APIs handle errors differently than SFML itself.
In performing this refactor I reduced the number of static_casts by a count of 19. Removing the need for casts is a good sign that std::optional<std::size_t> is a more natural fit than std::int64_t.

SFMLBuildMaster: Build this please.

SFMLBuildMaster: Build this please.

SFMLBuildMaster: Build this please.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

85 of 95 (89.47%)  changed or added relevant lines in 13 files are covered.
4 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.09%) to 51.689%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/SFML/Audio/SoundFileReaderFlac.cpp
9
10
90.0%

src/SFML/System/FileInputStream.cpp
12
14
85.71%

src/SFML/Audio/SoundFileReaderWav.cpp
11
18
61.11%

Files with Coverage Reduction
New Missed Lines
%

src/SFML/Audio/SoundFileReaderWav.cpp
4
38.76%

Totals

Change from base Build<PHONE_NUMBER>:
0.09%

Covered Lines:
10436

Relevant Lines:
19108

💛  - Coveralls

SFMLBuildMaster: Build this please.

SFMLBuildMaster: Build this please.

I added more sf::MemoryInputStream tests to better cover edge case behavior.

SFMLBuildMaster: Build this please.

Found some Android APIs that return -1 on failure and thus need some extra code to check for that case to return std::nullopt.

SFMLBuildMaster: Build this please.

SFMLBuildMaster: Build this please.

SFMLBuildMaster: Build this please.

SFMLBuildMaster: Build this please.

SFMLBuildMaster: Build this please.

SFMLBuildMaster: Build this please.

SFMLBuildMaster: Build this please.

Rebased on master and fixed conflicts

SFMLBuildMaster: Build this please.

SFMLBuildMaster: Build this please.

SFMLBuildMaster: Build this please.

SFMLBuildMaster: Build this please.

SFMLBuildMaster: Build this please.

Replaced const auto foo = returns_optional(); with const std::optional foo = returns_options(); and rebased on master.

SFMLBuildMaster: Build this please.

In performing this refactor I reduced the number of static_casts by a count of 19. Removing the need for casts is a good sign that std::optional<std::size_t> is a more natural fit than std::int64_t.

We'll have to look at this again. size_t is differently sized than int64_t and the stream APIs (fseek, ftell) use long


I can't run the following command

I can't run this command, blank spaces appear when I put the $ sign in the password.
Before
Scaffold-DbContext "Server=tcp:iappserver.database.windows.net,1433;Initial Catalog=demo;Persist Security Info=False;User ID=admintech;Password=server$$240;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;" Microsoft.EntityFrameworkCore.SqlServer -F
After
Scaffold-DbContext "Server=tcp:iappserver.database.windows.net,1433;Initial Catalog=demo;Persist Security Info=False;User ID=admintech;Password=server$
$240;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;" Microsoft.EntityFrameworkCore.SqlServer -F

$ represents a variable in Powershell, and if it appears in a string containing double-quotes like "Hello, $Name!" substitution will be performed during evaluation. Use single quotes instead of double quotes to avoid the substitution process and to treat embedded $ characters as literals. See https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_quoting_rules for more information.
Reminder: GitHub issues are public. Please do not include real credentials in GitHub issues. If you accidentally provided a live credential, please do not edit the issue (since the edit history is also public). Instead, change the credentials in the server itself.

/cc @AndriySvyryd just in case he has anything to add.


Set permissions for GitHub actions

Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.
Signed-off-by: naveensrinivasan<EMAIL_ADDRESS>

I don't understand this change. A token used by forked repos only has read permissions already. It's not clear how setting these permissions restricts anything in the scenario you outlined. If an attacker modifies the workflow to do something else, wouldn't they also remove the permission line?


you may need to restart the kernel to use updated packages.
The filename, directory name, or volume label syntax is incorrect.

What steps will reproduce the problem?

Im a newb in programming. I wanted to change coding environment because i thought my conda environment was corrupted.
I decided to download spyder IDE and install. After installation i cant seem to install packages.
Im getting this error
pip install python-nmap
Note: you may need to restart the kernel to use updated packages.
The filename, directory name, or volume label syntax is incorrect.

Hey @jekwupeter, thanks for reporting. Please see this FAQ in our docs to understand how to install packages that don't come with it:
http://docs.spyder-ide.org/current/faq.html#dropdown-11
Let us know if it works for you.

Closing due to lack of response.


fix typo in summary

Just a small typo fix in summary of a restful api

🚀 Preview for commit a6f432e91e246bcb3da8c337c382e76f04a1a5be at: https://644c2f0a847cab0cb8ed183c--meshery-docs-preview.netlify.app

What about the failed integration and end to end @Abhishek-kumar09
Its timeout in end to end so no worries I guess
What about the integration (cant understand this one)

The failing tests is being worked on via https://github.com/meshery/meshery/issues/7623 and https://github.com/meshery/meshery/issues/7622. // @Freedisch @theBeginner86 @MarioArriaga92

Cool then, next step is to merge right?
Sorry this is my first time, so not familiar with the process.

#7625


twindle dark theme

Description
Twindle dark theme

Hi @frankiefab100 Can we get a Screenshot of what it looks like & no need to write so much CSS in dark-theme.css
You only have to write the CSS variables that needs to be changed i.e only :root should remain & delete everything else in the CSS Everything will work fine. Try this yourself first.

Okay, I will resolve this. Please give me some time.

Okay, I will resolve this. Please give me some time.

This is the screenshot

This is the screenshot


Swift 4.2

Fixes some swift 4.2 errors.
Also resolves some warnings.

Hi, is it possible to trigger travis check again?
Travis probably did not support swift 4.2 at the moment of pull request.
They do have support now with Xcode 10, according to this: https://docs.travis-ci.com/user/languages/objective-c/
with osx_image: xcode10

@genkernel I wasn't aware of the setting, as I haven't worked with travis.
It does pass now! :)

It would be really great to have this one reviewed and merged (assuming it get's approved).

Sorry it took so long, looks good! Merging it and now and making a new release!

thanks @jimvanzummeren !


Relax version constraints for activesupport and activemodel

Relax the version constraints for activesupport and activemodel so that this gem can be used by a Rails 5 app.

@SyntheticDave I tried it locally with my app and all my specs passed. I can't see any features here that would make it incompatible with Rails 5


'urllib.error.HTTPError: HTTP Error 403: Forbidden' if download takes more than 30 seconds

This might be related to the other similar issue (#12) JuanBindez submitted about 3 weeks ago.
I have tested this using both the CLI and the Python library. It seems that no matter which YouTube video stream you choose, if the download takes more than 30 seconds, it raises an 'HTTP Error 403' Exception, causing the download to fail.
I have obviously taken into account the other issue, so I made sure to use a short video and to include use_oauth=True and allow_oauth_cache=True in the Python script to test this out.
I have no idea how the download of streams is handled by pytube, and if internet speed plays a role in it, so the next commands might not work for everyone.
In my case, these commands will raise the HTTP Exception exactly 30 seconds after being executed:
CLI:
pytubefix https://www.youtube.com/watch?v=E8gmARGvPlI --itag 313

Python script:
from pytubefix import YouTube
from pytubefix.cli import on_progress

yt = YouTube(
	'https://www.youtube.com/watch?v=E8gmARGvPlI',
	use_oauth=True,
	allow_oauth_cache=True,
	on_progress_callback=on_progress,
)

# <Stream: itag="313" mime_type="video/webm" res="2160p" fps="25fps" vcodec="vp9" progressive="False" type="video">

uhd_webm_video_only = yt.streams.get_by_itag(313)
uhd_webm_video_only.download()

I did the tests and didn't find any problems, can you give me more details about what's happening, are you authenticating?

do a pytubefix https://www.youtube.com/watch?v=E8gmARGvPlI --list, those with progressive="False" will not work

I tried to do a complete rundown of every stream of that video, here it is:
PROGRESSIVE:
<Stream 17 mime="video/3gpp" res="144p" fps="6fps"  vcodec="mp4v.20.3"   acodec="mp4a.40.2"> # Works, took less than 30s
<Stream 18 mime="video/mp4"  res="360p" fps="25fps" vcodec="avc1.42001E" acodec="mp4a.40.2"> # Works, took less than 30s
<Stream 22 mime="video/mp4"  res="720p" fps="25fps" vcodec="avc1.64001F" acodec="mp4a.40.2"> # Works, took less than 30s

NOT PROGRESSIVE:
VIDEO:
Mime 'video/webm' @ 25fps, vcodec 'vp9'
<Stream 313 res="2160p">	# Doesn't work, HTTP 403 after 30s
<Stream 271 res="1440p">	# Doesn't work, HTTP 403 after 30s
<Stream 248 res="1080p">	# Works, took less than 30s
<Stream 247 res="720p">		# Works, took less than 30s
<Stream 244 res="480p">		# Works, took less than 30s
<Stream 243 res="360p">		# Works, took less than 30s
<Stream 242 res="240p">		# Works, took less than 30s
<Stream 278 res="144p">		# Works, took less than 30s

Mime 'video/webm' @ 13fps, vcodec 'vp9'
<Stream 598 res="None">	# Works, took less than 30s

Mime 'video/mp4' @ 25fps, vcodec 'avc1.******'
<Stream 137 res="1080p">	# Works, took less than 30s
<Stream 136 res="720p">		# Works, took less than 30s
<Stream 135 res="480p">		# Works, took less than 30s
<Stream 134 res="360p">		# Works, took less than 30s
<Stream 133 res="240p">		# Works, took less than 30s
<Stream 160 res="144p">		# Works, took less than 30s

Mime 'video/mp4' @ 25fps, vcodec 'avc1.4d400b'
<Stream 597 res="None">		# Works, took less than 30s

Mime 'video/mp4' @ 25fps, vcodec 'av01.0.**M.08'
<Stream 401 res="2160p">	# Doesn't work, HTTP 403 after 30s
<Stream 400 res="1440p">	# Works, took less than 30s
<Stream 399 res="1080p">	# Works, took less than 30s
<Stream 398 res="720p">		# Works, took less than 30s
<Stream 397 res="480p">		# Works, took less than 30s
<Stream 396 res="360p">		# Works, took less than 30s
<Stream 395 res="240p">		# Works, took less than 30s
<Stream 394 res="144p">		# Works, took less than 30s

AUDIO:
Mime 'audio/mp4', acodec 'mp4a.40.*'
<Stream 599 abr="None">		# Works, took less than 30s
<Stream 139 abr="48kbps">	# Works, took less than 30s
<Stream 140 abr="128kbps">	# Works, took less than 30s

Mime 'audio/webm', acodec 'opus'
<Stream 249 abr="50kbps">	# Works, took less than 30s
<Stream 250 abr="70kbps">	# Works, took less than 30s
<Stream 251 abr="160kbps">	# Works, took less than 30s
<Stream 600 abr="None">		# Works, took less than 30s

In the end, only the streams that would have taken me more than 30 seconds to download(313, 271, 401) failed.
Everything else worked.

I have been having the same issues trying to download long lectures (whether authenticated or unauthenticated).
Thought it was worth noting that grabbing the .url property of the stream and just passing in into curl -O "<the url>" works just fine.  Of course it saves it as videoplayback, so you have to rename the file once it downloads.
Similarly, dropping the URL into the browser and just saving the file there seems to work fine (without being logged in, etc).  This leads me to believe that the problem is something specific to the download mechanism in the package that is causing it to get disconnected.

My best guess is that the URL provided by Google of a video has a time window of ~30 seconds in which it can accept GET requests.
After that time window, it just closes the URL and returns a 403 response for all subsequent requests.
The library downloads a video by streaming it, that is it sends GET requests for chunks of 9MB at a time, so if one of those requests happens after that time window, the URL is closed by Google and it can't continue to download the video.
I am currently trying to find a workaround, if I find anything useful I will post it here.

My best guess is that the URL provided by Google of a video has a time window of ~30 seconds in which it can accept GET requests. After that time window, it just closes the URL and returns a 403 response for all subsequent requests.
The library downloads a video by streaming it, that is it sends GET requests for chunks of 9MB at a time, so if one of those requests happens after that time window, the URL is closed by Google and it can't continue to download the video.
I am currently trying to find a workaround, if I find anything useful I will post it here.

I would like you to test this version and let me know if it worked -> pip install pytubefix==1.10rc1

I tried it and it works now, no error even if the download takes more than 30 seconds.
May I ask you what the problem was?

I tried it and it works now, no error even if the download takes more than 30 seconds. May I ask you what the problem was?

was a contributor -> Fixed 403 Forbidden error when using ANDROID client #21, I will release the version with this correction soon


Simply add map after install dependency getting compilation error?

e: C:\Users\prabhunt\Downloads\flutter_windows_2.0.2-stable\flutter.pub-cache\hosted\pub.dartlang.org\flutter_osm_plugin-0.6.7+3\android\src\main\kotlin\hamza\dali\flutter_osm_plugin\FlutterInfoWindow.kt: (42, 56): Expecting an argument
e: C:\Users\prabhunt\Downloads\flutter_windows_2.0.2-stable\flutter.pub-cache\hosted\pub.dartlang.org\flutter_osm_plugin-0.6.7+3\android\src\main\kotlin\hamza\dali\flutter_osm_plugin\FlutterOsmPlugin.kt: (92, 34): Expecting an argument
e: C:\Users\prabhunt\Downloads\flutter_windows_2.0.2-stable\flutter.pub-cache\hosted\pub.dartlang.org\flutter_osm_plugin-0.6.7+3\android\src\main\kotlin\hamza\dali\flutter_osm_plugin\FlutterOsmPlugin.kt: (93, 19): Expecting an argument
e: C:\Users\prabhunt\Downloads\flutter_windows_2.0.2-stable\flutter.pub-cache\hosted\pub.dartlang.org\flutter_osm_plugin-0.6.7+3\android\src\main\kotlin\hamza\dali\flutter_osm_plugin\FlutterOsmView.kt: (89, 31): Expecting a parameter declaration
e: C:\Users\prabhunt\Downloads\flutter_windows_2.0.2-stable\flutter.pub-cache\hosted\pub.dartlang.org\flutter_osm_plugin-0.6.7+3\android\src\main\kotlin\hamza\dali\flutter_osm_plugin\FlutterRoad.kt: (12, 38): Expecting a parameter declaration
e: C:\Users\prabhunt\Downloads\flutter_windows_2.0.2-stable\flutter.pub-cache\hosted\pub.dartlang.org\flutter_osm_plugin-0.6.7+3\android\src\main\kotlin\hamza\dali\flutter_osm_plugin\OsmFactory.kt: (19, 57): Expecting a parameter declaration
e: C:\Users\prabhunt\Downloads\flutter_windows_2.0.2-stable\flutter.pub-cache\hosted\pub.dartlang.org\flutter_osm_plugin-0.6.7+3\android\src\main\kotlin\hamza\dali\flutter_osm_plugin\OsmFactory.kt: (24, 24): Expecting a parameter declaration
e: C:\Users\prabhunt\Downloads\flutter_windows_2.0.2-stable\flutter.pub-cache\hosted\pub.dartlang.org\flutter_osm_plugin-0.6.7+3\android\src\main\kotlin\hamza\dali\flutter_osm_plugin\OsmFactory.kt: (33, 27): Expecting an argument
e: C:\Users\prabhunt\Downloads\flutter_windows_2.0.2-stable\flutter.pub-cache\hosted\pub.dartlang.org\flutter_osm_plugin-0.6.7+3\android\src\main\kotlin\hamza\dali\flutter_osm_plugin\network\ApiClient.kt: (17, 39): Expecting a parameter declaration
e: C:\Users\prabhunt\Downloads\flutter_windows_2.0.2-stable\flutter.pub-cache\hosted\pub.dartlang.org\flutter_osm_plugin-0.6.7+3\android\src\main\kotlin\hamza\dali\flutter_osm_plugin\utilities\FlutterPickerViewOverlay.kt: (10, 34): Expecting a parameter declaration
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':flutter_osm_plugin:kaptGenerateStubsDebugKotlin'.

Compilation error. See log for more details

what's gradle version in your android module ?

dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}

are you using flutter 2 and null safety feature

I am using flutter 2 only not null safety feature.

try to remove the library and make flutter clean and pub get  after that add again the library and make pub get

yeah i did but getting same error.

try to update the gradle version to 4.1.1 before that remove library and make flutter clean
rebuild and again the library

I am just install dependency and and implement OSMFlutter. nothing else

OK trying

I tried but still same issue, Can you please check it once here, I have only 10 lines code in main.dart, I think it'll not be tough to understand.
https://github.com/prabhunath111/osm_map
error: Launching lib\main.dart on sdk gphone x86 arm in debug mode...
Running Gradle task 'assembleDebug'...
e: C:\Users\prabhunt\Downloads\flutter_windows_2.0.2-stable\flutter.pub-cache\hosted\pub.dartlang.org\flutter_osm_plugin-0.6.7+3\android\src\main\kotlin\hamza\dali\flutter_osm_plugin\FlutterInfoWindow.kt: (42, 56): Expecting an argument
e: C:\Users\prabhunt\Downloads\flutter_windows_2.0.2-stable\flutter.pub-cache\hosted\pub.dartlang.org\flutter_osm_plugin-0.6.7+3\android\src\main\kotlin\hamza\dali\flutter_osm_plugin\FlutterOsmPlugin.kt: (92, 34): Expecting an argument
e: C:\Users\prabhunt\Downloads\flutter_windows_2.0.2-stable\flutter.pub-cache\hosted\pub.dartlang.org\flutter_osm_plugin-0.6.7+3\android\src\main\kotlin\hamza\dali\flutter_osm_plugin\FlutterOsmPlugin.kt: (93, 19): Expecting an argument
e: C:\Users\prabhunt\Downloads\flutter_windows_2.0.2-stable\flutter.pub-cache\hosted\pub.dartlang.org\flutter_osm_plugin-0.6.7+3\android\src\main\kotlin\hamza\dali\flutter_osm_plugin\FlutterOsmView.kt: (89, 31): Expecting a parameter declaration
e: C:\Users\prabhunt\Downloads\flutter_windows_2.0.2-stable\flutter.pub-cache\hosted\pub.dartlang.org\flutter_osm_plugin-0.6.7+3\android\src\main\kotlin\hamza\dali\flutter_osm_plugin\FlutterRoad.kt: (12, 38): Expecting a parameter declaration
e: C:\Users\prabhunt\Downloads\flutter_windows_2.0.2-stable\flutter.pub-cache\hosted\pub.dartlang.org\flutter_osm_plugin-0.6.7+3\android\src\main\kotlin\hamza\dali\flutter_osm_plugin\OsmFactory.kt: (19, 57): Expecting a parameter declaration
e: C:\Users\prabhunt\Downloads\flutter_windows_2.0.2-stable\flutter.pub-cache\hosted\pub.dartlang.org\flutter_osm_plugin-0.6.7+3\android\src\main\kotlin\hamza\dali\flutter_osm_plugin\OsmFactory.kt: (24, 24): Expecting a parameter declaration
e: C:\Users\prabhunt\Downloads\flutter_windows_2.0.2-stable\flutter.pub-cache\hosted\pub.dartlang.org\flutter_osm_plugin-0.6.7+3\android\src\main\kotlin\hamza\dali\flutter_osm_plugin\OsmFactory.kt: (33, 27): Expecting an argument
e: C:\Users\prabhunt\Downloads\flutter_windows_2.0.2-stable\flutter.pub-cache\hosted\pub.dartlang.org\flutter_osm_plugin-0.6.7+3\android\src\main\kotlin\hamza\dali\flutter_osm_plugin\network\ApiClient.kt: (17, 39): Expecting a parameter declaration
e: C:\Users\prabhunt\Downloads\flutter_windows_2.0.2-stable\flutter.pub-cache\hosted\pub.dartlang.org\flutter_osm_plugin-0.6.7+3\android\src\main\kotlin\hamza\dali\flutter_osm_plugin\utilities\FlutterPickerViewOverlay.kt: (10, 34): Expecting a parameter declaration
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':flutter_osm_plugin:kaptGenerateStubsDebugKotlin'.

Compilation error. See log for more details

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 4s
Exception: Gradle task assembleDebug failed with exit code 1

in android/app/build.gradle add this dependency
dependencies {
....
 def multidex_version = "2.0.1"
    implementation "androidx.multidex:multidex:$multidex_version"
}

android {
defaultConfig {
       ....
      // add this
        multiDexEnabled true

    }
}

in android/build.gradle
update kotlin_version from 1.3.50 to 1.4.30
build and it will work fine

Yeah Thank you so much, Now it's working.


Storybook: Remove knobs dependencies from each stories

The problem
As of today, Storybook stories in our codebase runs addon-knobs code to run different configurations for each stories. However, such different configurations can be controlled only by Storybook knobs UI.
Refs: #2387 #2492
The solution
Allow programatic control of such configurations, by moving knobs to Storybook parameters, like:
const MyStory = ({ parameters }) => (
  <MyComponent myProp={paramaters?.props?.MyComponent?.myProp}
);

MyStory.story = {
  parameters: {
    knobs: {
      // We lazy-evaluate knobs here in a Storybook decorator that creates `parameters.props`
      MyComponent() {
        return {
          myProp: select('Prop (myProp)', ['foo', 'bar'], 'foo'),
        },
      },
    },
  },
};

Instead of:
const MyStory = () => (
  <MyComponent myProp={select('Prop (myProp)', ['foo', 'bar'], 'foo')}
);

Acceptance criteria

[ ] Parameters that were defined by knobs can be controlled programmatically

@asudoh might be a good huddle topic, I'm trying to understand the benefit we'd get out of this?

Good point @jeffchew - Let me queue this up. The benefit is that test code gets control over several parameters in story, instead of effectively being hard-coded with knob default values.


Forms Docs - Independent Action button usage (improvement) - Update 0…

…6-actions.md
From: https://github.com/filamentphp/filament/discussions/7588#discussion-5502796

[ ] Changes have been thoroughly tested to not break existing functionality.
[ ] New functionality has been documented or existing documentation has been updated to reflect changes.
[ ] Visual changes are explained in the PR description using a screenshot/recording of before and after.

Hi, thanks but this is already in the docs - https://github.com/filamentphp/filament/blob/84ad71f15991d7568203e905012c613cb724ba81/packages/forms/docs/06-actions.md#adding-anonymous-actions-to-a-form-without-attaching-them-to-a-component


How to configure for multiple elasticsearch nodes

Hi,
I'm using the roles and profiles framework for puppet. I've a profile for elasticsearch as below:
class profiles::elk::elastic {
    class { 'elasticsearch':
        version          => '2.1.0',
        status           => 'enabled',
        manage_repo      => true,
        repo_version     => '2.x',
        java_install     => true,
        config           => {
          'cluster.name' => 'elasticsearch'
        }
    }

    elasticsearch::instance { 'es-01': }

}

This is working fine for one node. Now if I want to add another node es-02, how do I do this with the same config?
Thanks,
Siva

just set cluster.name to $::hostname or $::fqdn (I use the first one), than assign the profile to all nodes.

each instance gets the hostname prefixed by default at https://github.com/elastic/puppet-elasticsearch/blob/master/manifests/instance.pp#L124-L134
Since the instance name is unique per node that will be fine.
In your case you would get the following node names:
es-01-es-01
es-02-es-01
first part is the hostname, second is the instance name.
So you might want to choose a better instance name :-)
I use the same concept in my own ES puppet profile.

Thanks @bastelfreak @electrical .
@electrical I'm confused. What's the purpose of having an instance name if I can have unique hostnames for the elastic nodes?

The instance name is the instance on that specific machine. That way you can have multiple instances on the same machine.
This can come in handy if you have very heavy machines or have a smaller cluster but want the master instance separate from your data node instance.

Closing due to inactivity. If there is still an issue please open a new one. thank you.


[v1.13] ci: In conn-disrupt-test action, disable node-to-node-encryption check

The node-to-node-encryption test is known to fail often on branches v1.13 and v1.14 with jobs running on kernels 5.4 and 5.10, and so far we haven't been able to figure out why. The test brings little value anyway, so we disable it on the branches.
Link: https://github.com/cilium/cilium/issues/29351

/test-backport-1.13

/test-backport-1.13

Tested here, with success:


evaluator: new field not allowed by earlier comprehension or reference cycle

What version of CUE are you using (cue version)?

$ cue version
cue version v0.0.0-20230926131433-a9a6965188f7

go version go1.21.1
      -buildmode exe
       -compiler gc
  DefaultGODEBUG panicnil=1
     CGO_ENABLED 1
          GOARCH arm64
            GOOS linux
             vcs git
    vcs.revision a9a6965188f751fca54251b803dfe4883c1f42bc
        vcs.time 2023-09-26T13:14:33Z
    vcs.modified false

Does this issue reproduce with the latest release?
Yes
What did you do?
exec cue export x.cue

-- x.cue --
repos?: [n=string]: {
	trybot: *false | bool
	name!:  string
}

// Define the CUE repo
repos: "cue": {
	trybot: true
}

// Template that for repos which define trybot == true
// that there should be an associated -trybot repo
for n, r in repos
if r.trybot {
	repos: "\(n)-trybot": {
		trybot: false
	}
}

Playground: https://tip.cuelang.org/play/?id=obQKQuIiCIY#cue@export@cue
What did you expect to see?
Passing test, I think.
What did you see instead?
> exec cue export x.cue
[stderr]
repos: field "cue-trybot" not allowed by earlier comprehension or reference cycle
[exit status 1]
FAIL: /tmp/testscript2321507989/repro.txtar/script.txtar:1: unexpected command failure

The set of repos where trybot == true is disjoint from the set where disjoint == false. Hence it's possible to view this as not being a cycle, I think.

David on Slack ran into this issue and suggested that the error message could be more obvious about the cause of the problem:

Also, the error message is REAALLY unclear... is not allowed should have been can't be added to a comprehension currently being iterated over  or something like that. Then I would have maybe guessed that was the problem.

Reopening and re-titling this issue to track how we could make the error better.


Game crash on second world load due to odd particle initialization / lifecycle

Noticed by @portokaliu - after you leave the game world once ParticleSystemManagerImpl.shutdown() executes particleUpdater = null;probably in an attempt to clean something up. However theinitiallise()method that sets it only runs on *game* start, not entering a new world. So on attempt twoparticleUpdater` remains null and NPEs the game.
Blocker level critical for Alpha 8 but probably relatively straight forward fix: don't do that - question is whether we should not null it out, instead favoring a better cleanup. Or if we just want a hack fix then add null checks and reset the variable to a valid new updater.
Needs a bit of poking around to see what the better option is. Submitting this so we don't forget. Pinging @MaxBorsch if interested (also: argh why doesn't your name auto-complete in a ping, I don't understaaaaand)
Unsure if we have a lifecycle step on entering a world to initialize this thing, or if we need one. Or if the particle system just needs a bit more tweaking - probably :-)

More precisely, the particleUpdater is initialised the second time as well, but it's being deleted right before the player enters the world due to a shutdown ( which I haven't been able to fully track just yet).

Found the issue.
ComponentSystemManager holds a list of renderSubscribers (RenderSystems). The list is never cleared.
After the first run (does not matter if you create the world or load the game for the first time after engine startup), the Manager will hold a reference to a SpriteParticleRenderer which holds a reference to the first ParticleSystemManager.
At the second run, another SpriteParticleRenderer is added to the list. Then all render subscribers are executed. The first  SpriteParticleRenderer calls the first ParticleSystemManager which has been cleaned right now and causes a null pointer exception.
The solution would be to clear both lists in the ComponentSystemManager at shutdown.
I will open up a PR for this.


Get the build working with make check

right now, it just runs one test which is ok but the test suite would be better, if we can figure out how to get number of tests passed/failed.
I did run it by hand (make -i check) and it has a couple problems but doesn't produce test results that I could see (it also takes awhile - maybe an hour on a bigger machine?)

The long time for the tests to complete may be related to the issue https://github.com/ZOSOpenTools/findutilsport/issues/12 which I'm working on in findutils.
The tests that appear to be looping are all from the gnulib code included with findutils.

Great to see you working on this Doug. Thanks.


Remove dots in binding parameters

Binding parameters don't accept dots, which can happen when the field is prefixed with the table name to avoid ambiguity

Not needed, can use $prefix in addWhere() method :)


Idea: Make a p2p

Since we cannot use a single tor node to handle all the the traffic, we could make a p2p, if I take the number of stars on the project, currently 91, that means that we could have at least 273 connections at the same time
If the reddit anti bot system only check for simultaneous connection, I could implement a borrowing system similar to the browser system in the bot to login, to have thousands of accounts on those connections

I believe too that Reddit have a far simpler system of one message per IP per 10 seconds.
So maybe we need a pool of proxies with queue system. Of course it may be inefficient, as every worker will need to constantly watch for changes and update stored desired state.

I believe too that Reddit have a far simpler system of one message per IP per 10 seconds.
So maybe we need a pool of proxies with queue system. Of course it may be inefficient, as every worker will need to constantly watch for changes and update stored desired state.

Each users using the program will be able to use the IP of everyone for 3 accounts at the same time


Deleting sheets not working correctly

Description
I have some code that opens a file and deletes all sheets apart from a single sheet. The code then creates more sheets and populates them with data using file.SetCellValue. If the code created the file itself it does not work, if I created the file and the code then edits it then it does work.
The problem is that when I open the file in Excel I get an error and Excel tries to repair the file. The inserted data is gone after the repair.
Steps to reproduce the issue:
temp.zip

Run the included code to create a file
Run the code again to "edit" the file, although it just sets the same values in all cells
Open the edited file in excel

Describe the results you received:
Excel completed file level validation and repair. Some parts of this workbook may have been repaired or discarded.
Replaced Part: /xl/worksheets/sheet2.xml part with XML error.  Declared prefix. Line 2, column 143.
Replaced Part: /xl/worksheets/sheet3.xml part with XML error.  Declared prefix. Line 2, column 143.
Note that I have not created a sheet by these names.
Describe the results you expected:
I expected to see the new sheets with the new data and no error message.
Output of go version:
go version go1.15 windows/amd64

Excelize version or commit ID:
v2.4.0

Environment details (OS, Microsoft Excel™ version, physical, etc.):
Windows 10
Excel version: 16.0 (Microsoft 365)

Thanks for your feedback, I have fixed it, please try to use the master branch code, and this patch will be released in the next version.


[BUG] Rancher 2.7.5 LDAP users error

Rancher version:   2.7.5  after upgrade from 2.7.1 or clean install
Installed on K3S v 1.26.5 or Docker 23.x.x and 24.x.x
Describe the bug
Can't add user from AD when importing external cluster or want to add permission to specific project in cluster.
Getting error: No identities can be retrieved
However AD groups can be added without problem.
To Reproduce
Run Rancher in docker or K3S
Add configuration for Authentication Provider: ActiveDirectory
Try to import Generic Cluster fill all required informations
In Member Roles click Add and search AD user
Add user and select any of Cluster Permision
Click Create and got error:
No identities can be retrieved
Expected Result
Add cluster and got links to import it without errors
After Click Cancel cluster is added to Cluster Management but when I edit it I got only local admin account and get the same error trying add specific user, but when I adding specific group everything is OK.
On Rancher 2.7.1 everything work fine.

Reproduced exact same issue  on a clean 2.7.5 install.

This looks like it's related or even the same issue as reported in #41985.


span-tree does not show on some sites, is that right?

span-tree very practical, but it not show on some site.
for example
https://gitlab.gnome.org/GNOME/vte
https://git.lug.ustc.edu.cn/mirrors/repogen
tested with

chrome 110 + span-tree <IP_ADDRESS>
firefox 109 + span-tree <IP_ADDRESS>

these two websites have js errors on the F12 page,
// disabled all extensions (in private/incognito window)
so that's the site's problem?

Hey @yurenchen000 ,
Thanks for reporting the issue. Have reproduced the issue and working on solving it. Will keep you updated here!
Apologies for the late reply 😄

Have fixed the bug and uploaded a new build to the Chrome WebStore for review. Will let you know when it releases so you can update

v<IP_ADDRESS> has been released on Chrome WebStore and it has the fix. Please spread the word about SpanTree 🌳

(ง •̀_•́)ง ✨
Yeah~ It works!!
Thanks for you job.
Of cource, I'll


Broken link in Python Vehicle App Development Run App section

Expected Behavior
https://websites.eclipseprojects.io/velocitas/docs/tutorials/vehicle-app-development/tutorial_how_to_create_a_vehicle_app_python/ Link should work
Current Behavior
Not Found
The requested URL /velocitas/docs/tutorials/vehicle-app-runtime/run_runtime_services_locally.md was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Steps to Reproduce

Click on the second link in this section: 'Run your App
In order to run the app make sure you have the seatservice configured as a dependency in your ./AppManifest.json. Read more about it in the run runtime services section.'

I guess it should link to this: https://websites.eclipseprojects.io/velocitas/docs/tutorials/vehicle-app-runtime/run_runtime_services_locally/

Thanks for notifying us @lukasmittag :)
We are currently working on our documentation - fix is coming soon!

Fixed within https://github.com/eclipse-velocitas/velocitas-docs/pull/76


If email verification code expires, user is stuck in limbo

If you attempt to register and get to the stage where the system sends you a verification code via email, but then you do not verify your email address in the allotted time, you cannot proceed with the system. You cannot create a new user because the user technically already exists (and user_level = 5), and you cannot verify the email address because the verification code in the email has expired.
Possible solutions:

If the verification code expires and the user has not verified their email address, then remove the user from the system.
If someone tries to create a new user and the user already exists, but is unverified (user_level=5), then allow the creation of the user, and send a new verification code to the email address specified.

I vote for option 1. Thoughts?

:+1: on 1
On Mon, Feb 9, 2015 at 11:56 AM, adamrp<EMAIL_ADDRESS>wrote:

If you attempt to register and get to the stage where the system sends you
a verification code via email, but then you do not verify your email
address in the allotted time, you cannot proceed with the system. You
cannot create a new user because the user technically already exists (and
user_level = 5), and you cannot verify the email address because the
verification code in the email has expired.
Possible solutions:

If the verification code expires and the user has not verified their
email address, then remove the user from the system.
If someone tries to create a new user and the user already exists, but
is unverified (user_level=5), then allow the creation of the user, and send
a new verification code to the email address specified.

I vote for option 1. Thoughts?
—
Reply to this email directly or view it on GitHub
https://github.com/biocore/qiita/issues/833.

:+1: on 1

:+1: for 1

Okay, I think that's enough of a consensus. I will also have it send the unverified user another email saying that they have been removed from the system because they failed to verify their email address.

Why do the verification code has to expire? I would expect for it to be
active until I verify my account. Although the two options seem
reasonable, they don't seem optimal, just my two cents.
On (Feb-09-15|10:56), adamrp wrote:

If you attempt to register and get to the stage where the system sends you a verification code via email, but then you do not verify your email address in the allotted time, you cannot proceed with the system. You cannot create a new user because the user technically already exists (and user_level = 5), and you cannot verify the email address because the verification code in the email has expired.
Possible solutions:

If the verification code expires and the user has not verified their email address, then remove the user from the system.
If someone tries to create a new user and the user already exists, but is unverified (user_level=5), then allow the creation of the user, and send a new verification code to the email address specified.

I vote for option 1. Thoughts?

Reply to this email directly or view it on GitHub:
https://github.com/biocore/qiita/issues/833

My mistake -- they don't expire; I was confusing this with pass reset codes, which do expire. I misidentified the issue because I was using the verification email I got from qiita.ibdmdb.org, which linked me to qiita.colorado.edu (this hardcoded URL was fixed in fe95acb, but confused me one last time here!)

:weary:
On (Feb-09-15|12:03), adamrp wrote:

My mistake -- they don't expire; I was confusing this with pass reset codes, which do expire. I misidentified the issue because I was using the verification email I got from qiita.ibdmdb.org, which linked me to qiita.colorado.edu (this hardcoded URL was fixed in fe95acb, but confused me one last time here!)

Reply to this email directly or view it on GitHub:
https://github.com/biocore/qiita/issues/833#issuecomment-73579447


Error when trying to build project.

Hello,
I am trying to create my own SyDEVS project, but I seem to be running into an issue with building my project. To get started, I am following the tutorial's instructions on how to set up my project (Part 1), but when I type the command:
cmake -G "Xcode" ..               or
cmake  ..
I get an error:
_CMake Error at CMakeLists.txt:57 (add_library):
No SOURCES given to target: SyDEVS-static
CMake Generate step failed.  Build files cannot be regenerated correctly._
I'm sure I built the directory structure and the CMakeLists.txt file the exact same way the tutorial did (aside from the overall project folder's name) so I'm pretty confused as to why I'm getting this error.
For reference, this is line 57 of my CMakeLists.txt file:
add_library(SyDEVS-static STATIC ${CORE_SRCS} ${TIME_SRCS} ${SYSTEMS_SRCS} ${CORE_HDRS} ${TIME_HDRS} ${SYSTEMS_HDRS})

Hi Andrew, Can you insert the following line into CMakeLists.txt, right before the offending line?
message(${CORE_SRCS})
Then when you run cmake .. again from the build directory, does it print the following?
external/sydevs-0.6.6/src/sydevs/core/scale.cpp

Hey Rhys, thanks for the response! I managed to fix the silly issue.
It didn't print external/sydevs-0.6.6/src/sydevs/core/scale.cpp, instead I got
message called with incorrect number of arguments
When I downloaded the sydevs-0.6.6 folder for the second time it added a '2' to the end of its name. I simply had to rename it sydevs-0.6.6 and the issue was fixed.
Thanks again for the response!


exFAT on esp32s3 support feature request (IDFGH-12174)

Is your feature request related to a problem?
I wanted to have a exfat support on my esp32 board with ESP-IDF. And I found a way to let it work.
Describe the solution you'd like.
There is already a solution that can be applied to this question, which relies on IDF's FatFs library.
| in ffconf.h
set FF_LBA64 to 1
set FF_FS_EXFAT to 1

because LFN must be enabled when enabling exFAT
Long filename support on menu-config should not be set to  "No long filenames".

because when using spi sd host and exFAT format, the driver will throughout an ESP_ERR_INVALID_RESPONSE error in the trim function
the FF_USE_TRIM in ffconf.h should be set to 0

The solution I'd like is to put these in the menu-config since I tested it and it worked.
Describe alternatives you've considered.
No response
Additional context.
No response

We have intentionally not added an easy way to enable exFAT support via menuconfig. This was because in the development stage, people may enable this option and forget about it. However, usage of exFAT implementations in many cases requires a license from Microsoft.
On balance, we decided that if you are going through the trouble of obtaining this license, using a patched version of ffconf.h isn't the biggest of the issues. And for everyone else, this prevents potential legal issues.

t

Thank you very much

exFAT as part of the Linux kernel
In August 2019 Microsoft announced its support for integrating exFAT into the Linux kernel. exFAT is now part of the Linux kernel 5.7 and devices using this code are covered under the GPLv2 license.
translate: your software is open source or pay license to microsoft


Option to never filter Self

Sometimes I will send a message that gets filtered (to myself only) but other players will see it.
There should certainly be an option to NEVER filter your own messages (by default, tbh...)
There have been numerous times I sent the same message multiple times because it didn't show up on my screen. other users just say, "yeah... you said that..." embarassing :P

There is an open PR which should be merged fairly soon which fixes this. Once it has been merged and I've made a PR to the RuneLite plugin-hub for their team to review, I will comment a link to that PR here.

This is being reviewed by the plugin hub here

Looking forward to this update! The spam filter has been working wonders for the GE experience and this has been the only issue I've seen so far.

Looks like this has been stalled for a while, any hope of it working?

Looks like this has been stalled for a while, any hope of it working?

The fix was rejected because of deprecated APIs. I'd also really appreciate if there was progress on this. It looks like it was last talked about 4 months ago though.

Yep, it's been stalled for a while because of the deprecated APIs mentioned above. I haven't looked at this repository in a while because I haven't been playing recently. Don't think that your comments go into the void - I haven't been playing the game or developing the plugin but I do see the email notifications GitHub sends when someone comments on an issue in this repository and I make a mental note that I should come back to it when I next feel like writing some code.
Until then, I'd be happy to review and accept patches if anyone else wanted to tackle the deprecated API problem that blocks the fix for this issue from being accepted into the plugin hub


Transparent gradient not displayed correctly

When opening this PDF (https://dl.dropbox.com/u/10998095/get_certificate.pdf), the coursera logo does not display correctly, the gradient on the C is rendered as white.
In PDFJS:
http://dl.dropbox.com/u/10998095/Screenshots/moz-d4np~60n.png
In Adobe PDF viewer in Chrome:
http://dl.dropbox.com/u/10998095/Screenshots/63ojqql3gwkq.png
We would like to use PDFJS to render our PDFs on our certificates page, but would feel more comfortable doing that if we knew everything would be rendered correctly.
Thanks!

That is a shading type 2.

Closing as fixed by PR #6684.


Dockerfile: USER ContainerUser results in "failure in a Windows system call: The user name or password is incorrect. (0x52e)"

Describe the bug (and Steps To Reproduce)
Building the following simple Dockerfile:
# escape=`
FROM mcr.microsoft.com/dotnet/framework/sdk:4.8

ARG RepositoryPath
ENV RepositoryPath=${RepositoryPath:-"C:\Repo"}

VOLUME $RepositoryPath
USER ContainerUser

… using:
PS C:\> docker build --rm --no-cache -m 2GB -t test:latest .

… and running the created image like this:
PS C:\> docker run --rm -it test:latest

… results in:
docker: Error response from daemon: container 46a5305c0e305a9b5e7ef5fd746478ea9211b61d136fc7a08b8e4468939514a7 encountered an error during hcs::System::CreateProcess: c:\windows\system32\cmd.exe: failure in a Windows system call: The user name or password is incorrect. (0x52e)
[Event Detail:  Provider: 00000000-0000-0000-0000-000000000000].

Expected behavior
Everything should work flawlessly.

 (Docker Inc.)
    Version:  v1.0.4
    Path:     C:\Program Files\Docker\cli-plugins\docker-feedback.exe
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v1.1.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-init.exe
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-sbom.exe
  scout: Docker Scout (Docker Inc.)
    Version:  v1.8.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-scout.exe

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 19
 Server Version: 26.1.1
 Storage Driver: windowsfilter
  Windows:
 Logging Driver: json-file
 Plugins:
  Volume: local
  Network: ics internal l2bridge l2tunnel nat null overlay private transparent
  Log: awslogs etwlogs fluentd gcplogs gelf json-file local splunk syslog
 Swarm: inactive
 Default Isolation: hyperv
 Kernel Version: 10.0 19045 (19041.1.amd64fre.vb_release.191206-1406)
 Operating System: Microsoft Windows Version 22H2 (OS Build 19045.4412)
 OSType: windows
 Architecture: x86_64
 CPUs: 4
 Total Memory: 12GiB
 Name: ***
 ID: 67ce01f9-aa05-43fe-96ee-beec2f666dd8
 Docker Root Dir: C:\ProgramData\Docker
 Debug Mode: false
 Labels:
  com.docker.desktop.address=npipe://\\.\pipe\docker_cli
 Experimental: false
 Insecure Registries:
  <IP_ADDRESS>/8
 Live Restore Enabled: false
 Product License: Community Engine

Additional context
This also doesn't work:
PS C:\> docker run --rm -it --mount 'type=bind,src=D:\Documents\Repos\Docker\DockerBuildTest\,dst=C:\Repo\' 'test:latest'

… results in:
docker: Error response from daemon: hcs::CreateComputeSystem cf0c577360d731d6e09be5c1eec629751c3891eba85353163c0978cc0c293054: The request is not supported.

The only difference is the additional --mount argument.

@ntrappe-msft: Hello Nicole, may I raise this issue to your attention? I'm working for a blue-chip corporation running a critical project here and we need the above Windows image to be running smoothly in very short term.

Hi, I tried repro'ing your setup but I didn't hit that error. I'm wondering whether it's coming from something else. The image built successfully and I could start up the container with the mounted volume. Are you running this on Windows Server 2022? And could you share the version of Docker you're using?

Thanks for taking the time, Nicole.
I already provided the information you requests. It's just being collapsed behind the details link in my original post. You just need to click on "► details" to expand the information.

@ntrappe-msft: FWIW, this is a screencast, depicting the issue:
https://github.com/microsoft/Windows-Containers/assets/9283914/e0037f79-4ae6-4180-a379-9d2bb0ddb2fc

The WS2016-based image keeps being picked by default for the 4.8 tag, can you try an explicit tag, either 4.8-windowsservercore-ltsc2022 or 4.8-windowsservercore-ltsc2019?
FROM mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2022

@profnandaa. Thank you for this valuable suggestion!
Here are my test results:

Image
docker image build --rm --no-cache -m 2gb -t test:latest .
docker run --rm -it test:latest
docker run --rm -it --mount 'type=bind,src=D:\Documents\Repos\Docker\Create Docker Image,dst=C:\Repo' test:latest

4.8-windowsservercore-ltsc2019
✔
✔
docker: Error response from daemon: hcs::CreateComputeSystem 3101d03d38051469f9a0e5394ea2850c05439fa75818c67d06b91ed9429b70ac: The request is not supported.

4.8-windowsservercore-ltsc202
a Windows version 10.0.20348-based image is incompatible with a 10.0.19045 host
➖
➖

Thanks @profnandaa for sharing more information. @SetTrend I'll be slow to respond this week because of Build but I'll attempt to repro again and look into when that error is typically thrown. Thanks for your patience.

Any new insights on this issue?

Hi! I believe I may know what's going on but I need to trace the Dockerfiles that make up the sdk images. I'll post an update on Monday.

@SetTrend Could you try pulling the latest mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2022 image? I was able to repro that error last week but, with the newest image (released today) it works perfectly.
See if you can try:
docker run -u ContainerUser mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2022 powershell

If that doesn't work, it's likely a configuration issue with your host.

Hello, @ntrappe-msft, I tried today. Yet, this image is incompatible with my host:
a Windows version 10.0.20348-based image is incompatible with a 10.0.19045 host

Can you provide an image available for hosts like mine?

@SetTrend Hey, I believe 20348 == Windows 11 and 19045 == Windows 10 so try using mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2019 instead.

I tried today. While I can now run as ContainerUser I still cannot bind-mount. (See error description above.)
What is the reason for The request is not supported.?

@SetTrend I couldn't repro that error. Could you try a very simple version of the command to see whether it's some file permissions that may be triggering it? Or if we're having more issues with setting the user in the Dockerfile?

For example, I just created a 'fake' folder under the C drive with a single .txt file:

PS C:\fake> dir

            helloworld.txt

Then I mounted that folder in a .NET SDK 4.8 Server Core LTSC 2022 container:

docker run --rm -it --mount 'type=bind,src=C:\fake\,dst=C:\repo\' mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2022

Finally, I checked the contents of repo/ in the container and saw helloworld.txt.

C:\> cd repo
C:\repo> dir

         helloworld.txt

If this fails for you, then I'll probably need a crash dump.

Hello, @ntrappe-msft,
I tried your suggestion. While it works for the original mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2019 image, it doesn't work for the derived image, though.

@SetTrend Hmm that seems odd. I'll try to repro it with a derived image too.

Any news, @ntrappe-msft?

Any news, @ntrappe-msft?

Two months ago, my client refrained from using Docker for building their .NET Framework projects.
I guess, no one in real life can be expected to wait for months to expect a future running solution.
So, this issue has become purely personal, for me to decide whether to use Windows Containers in the future:
Will I live to see this issue fixed? Or do you plan to consider this repository "deprecated" and "obsolete"?


Replication Group missing cross-resource referencers

Description of your changes
Adds security group name referencer for CacheSecurityGroupName and security group ID referencer for SecurityGroupIDs fields. The reason that there are two different fields is that CacheSecurityGroupName is used in EC2-Classic mode and SecurityGroupIDs is used in EC2-VPC mode.

Fixes #83
Checklist

I have:

[x] Run make reviewable to ensure this PR is ready for review.
[x] Ensured this PR contains a neat, self documenting set of commits.
[x] Updated any relevant documentation, examples, or release notes.
[x] Updated the dependencies in app.yaml to include any new role permissions.

Looking pretty good to me! Have you done any manual testing thus far?

@hasheddan I've tested this manually and it resolves the correct name from the reference. Though for the VPC mode to work, we need to implement a managed resource CacheSubnetGroup which is basically a logical group of subnets.
@negz I think that's ready to merge.

Thanks @muvaf, and @hasheddan for reviewing!


Add support for config override

Ticket Number
DL-5580
Ticket Description
When consolidating services into delta-producer-publication-graph-maintainer (most recently with worship-submissions), some configuration keys need to be specifically changed only on the QA and production servers.
Previously, this was easily done by adding entries in docker-compose.override.yml; however, the current method entails working around merge conflicts when pulling the changes on the server in addition to editing the main config.json file and making sure it looks intact.
In order to retain the override functionality, this PR adds support for a config.override.json file that contains any values a user wants overridden on their machine or on a remote server without having these changes tracked by git.
How to Test

Add the following to your docker-compose.override.yml inside app-digitaal-loket:

delta-producer-publication-graph-maintainer:
  environment:
    NODE_ENV: "development"
    CONFIG_SERVICES_OVERRIDE_JSON_PATH: '/config/publication-graph-maintainer/config.override.json'
  volumes:
    - ~/path/to/delta-producer-publication-graph-maintainer/:/app/

Add a config.override.json file inside config/delta-producer/publication-graph-maintainer/ in your local Loket repo folder with the following snippet:

{
  "submissions": {
    "key": "B"
  }
}

Check the output of delta-producer-publication-graph-maintainer for the configuration of each stream.

If you test on the latest commit of the Loket development branch, "submissions" should have "key" set to "B" whereas "persons-sensitive" and "worship-submissions" should still have "key" set to ''.
Note
I will be adding a PR on app-digitaal-loket to add the override config files to .gitignore. However, I want to first see how this PR goes first before proceeding further.

Hi, thanks I think its a very good suggestion. Please check the comments for further tweaking.
I would make a little section in the readme to make clear how to use it and what the limitations are.
Ensure to properly test the cases:
* normal config + override config

* normal config no override config

* normal config + override config with nested objects (cf. my last comment)

I tested all 3 cases, and all looks good so far.

This wiki entry describes how to mount the new configuration completely, which removes the need to do so inside the service's codebase.


Update Sentence.php and SentenceTest.php

The problem of using other languages such as Farsi and Arabic has been solved.

This is fantastic @BahmanMD thank you. I just want to do a bit more testing with other languages to make sure that we didn't break anything by making this change. If this change does not break backward compatibility then we'll release it with the next feature update, otherwise we'll have to release it with ML 3.0.

Ok, I also want to see how this affects performance since the regular expression used to match the sentences is more complex now.

Not sure why GitHub closed this PR, maybe because the target branch was deleted, but I can't figure out how to unclose it.

@andrewdalpino  Sure.

Thank you @BahmanMD


Debugger crashes on print

In debug console simply type print("jnc")
print("jnc")
AttributeError("'NoneType' object has no attribute 'write'",)

OS is Windows 10 Professional
Version: 1.28.0 (system setup)
Commit: 431ef9da3cf88a7e164f9d33bf62695e07c6c2a9
Date: 2018-10-05T14:58:53.203Z
Electron: 2.0.9
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
Architecture: x64

Updated the issue to remove personal information (email, phone numbers).
Please could you provide the following information with a screenshot:

VS Code version: XXX
Extension version (available under the Extensions sidebar): XXX
OS and version: XXX
Python version (& distribution if applicable, e.g. Anaconda): XXX
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): XXX
Relevant/affected Python packages and their versions: XXX

Steps to reproduce:

XXX

Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
XXX

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)
XXX

In 1 PC Windows 10 Home Edition debug print works fine
Version: 1.28.0 (system setup)
Commit: 431ef9d
Date: 2018-10-05T14:58:53.203Z
Electron: 2.0.9 Chrome: 61.0.3163.100
Node.js: 8.9.3 V8: 6.1.534.41
Architecture: x64
In 2nd Windows 10 Professional debug print crashes
Version: 1.28.0 (system setup)
Commit: 431ef9d
Date: 2018-10-05T14:58:53.203Z
Electron: 2.0.9 Chrome: 61.0.3163.100
Node.js: 8.9.3 V8: 6.1.534.41
Architecture: x64
Very Easy to reproduce In debug console type print("jnc")
print("jnc") AttributeError("'NoneType' object has no attribute 'write'",)
It happens on my Windows 10 Professional latest updated VSCODE
Others too equally impacted; please see
https://stackoverflow.com/questions/52462326/vs-code-python-debugger-error-with-print-statements/52462487

To circumvent I deinstalled everything in my Windows Professional
Deleted directory .vscode
Installed latest Anaconda Anaconda3-5.3.0-Windows-x86_64.exe
"Inside" Anaconda installer installed VSCODE
Version: 1.28.0 (user setup)
Commit: 431ef9da3cf88a7e164f9d33bf62695e07c6c2a9
Date: 2018-10-05T14:58:53.203Z
Electron: 2.0.9
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
Architecture: x64
Then installed Python extension
2018.9.0 (9 Oct 2018)
Things became worse!
F5 or start debug 1st does cmd .../k base ....
Then comes a timeout screen
Popup says "launch json"
Nothing happens
Will send screenshots in evening(India)

@ojnc  did you solve this question? I meet the same problem.

I got solution from
https://github.com/Microsoft/vscode-python/issues/2410
https://github.com/Microsoft/vscode-python/issues/2410
Please read end of
https://stackoverflow.com/questions/52462326/vs-code-python-debugger-error-with-print-statements/52462487
where I have made the remarks
For past many days no issues at all.
Regards from Calcutta
On Mon, Nov 5, 2018 at 7:42 AM LpfML<EMAIL_ADDRESS>wrote:

@ojnc https://github.com/ojnc did you solve this question? I meet the
same problem.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/vscode-python/issues/2825#issuecomment-435734739,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHn1TLaoZOq2T6lUKqI763NALd4AZU1Yks5ur56QgaJpZM4XTtlK
.

--
Jayanta Narayan Choudhuri
Flat 302, 395 Jodhpur Park, Kolkata 700 068, India
Mobile: 91 98302-42070  LandLine: 91(33)4067-8396

The problem is the python path was set to pythonw.exe.
Thats the wrong executable. You need to select Python.exe

thanks


Zones are un-expectantly reentrant

This may be a education/documentation issue, or something to address in the implementation, but I found reentrancy on Zones to be unexpected, and had to work around it.
I expected zones to not be reentrant, that is, beforeTask and the corresponding afterTask would always be called together, without an intervening beforeTask call on the same zone. Another way to say it is that I expected that only one task would be running at a time in a zone
This ends up being not true when synchronously triggering a bound callback. I happened to me with DOM events:

A task bound to my zone runs
beforeTask is called
The task registers an event handler, which is bound to the zone
Later the task fires an event
The handler runs, but it's bound to the zone, so
beforeTask is called again
Later endTask is called twice.

The end result is: beforeTask, beforeTask, endTask, endTask all on the same zone.
This was tricky with my zone because it was trying to accumulate time spent in tasks:
    let tagZone = clazz._tagZone = zone.fork({
      beforeTask: function () {
        // assumes beforeTask is never called again before endTask
        this._startTime = performance.now();
      },
      afterTask: function () {
        this._totalTime += performance.now() - this._startTime;
      },
    });

This had to be rewritten with a stack:
    let tagZone = clazz._tagZone = zone.fork({
      beforeTask: function () {
        this._startTimes.push(performance.now());
      },
      afterTask: function () {
        let startTime = this._startTimes.pop();
        this._totalTime += performance.now() - startTime;
      },
    });
    tagZone._startTimes = [];

@justinfagnani Any chance you are running this code in the root zone ? This might explain why the inner task is in the same zone. It should be in a child zone for any other zone. The rationale of this behavior is that we don't want to create new (somewhat expensive) zones in Angular for the root zone, which is the one that run "non angular" code.
Are 5 & 6 swapped in your description above ?

The tasks are running in the zone I create in the code snippet, not the root zone.
5 & 6 might be swapped, depending on how you read it. Is the task executing that causes beforeTask to run, or does beforeTask actually run before the task? Given that the task callback is wrapped in another which delegates to the zone, I tend to think that the task actually triggers beforeTask when it runs, but either way, the task being dequeued and it's impending execution triggers beforeTask.

Thanks for the clarification.
I think what happens is that the child zone (of tagZone) inherits its hooks (via Object.create(parentZone)).
The beforeTask hook gets called on the child zone but because it has not been overriden, the prototype hook (tagZone.beforeTask) gets called.

What child zone of tagZone? I don't define one.
I think what's happening is that since DOM events are synchronous, and addEventListener binds its callback to the current zone, any code which adds an event listener and then fires that event in the same synchronous task will have the zone be re-entered.
I suppose this will happen with all synchronous "tasks". Since they aren't a microtask or event loop, there's an existing zone in place when the bound callback is invoked. This means that not only is there a stack of zones from forking, but there's another stack of zones from executing synchronous callbacks.
When trying to account for time like my example, this second stack needs to be carefully handled. My workaround isn't complete, since if the second zone is different from the first, I won't push a new start time, and some time will be double-counted between zones. I would need a global stack, not one per zone.
One way to solve this at the zone.js level would be to call endTask on the current zone before executing a synchronous callback, then call beforeTask again when the callback is complete. Essentially beforeTask and endTask would be called any time the zone is becoming or unbecoming the current zone.

What child zone of tagZone? I don't define one.

Event handlers are executed in a child of the zone that set up their listeners (to support async stack traces).


Scale up: cluster Incheon servers on a single game world

This is a feature request.
Request for added ability to divide a single game world among multiple Incheon servers,
to ensure that thousands of players can play at the same time in the same game world.

duplicate of issue #19


checking for title in first page

closes https://github.com/executablebooks/sphinx-book-theme/pull/190

FYI @chrisjsewell I haven't merged this because I can't figure out how to write the proper test for it. I may not have much time over the next few weeks to get to it. So I guess we could merge this in w/o a test but I'm hesitant to do so

Yeh no worries, I'll try to have a look at some point

Because another issue got opened that relates to this (https://github.com/executablebooks/jupyter-book/issues/966) I tried to another stab at it.
I've added a test that passes locally, but I can't figure out why it's not passing on here. (I'm not able to use nox yet because it's still freezing on me when I try to install it)
@chrisjsewell do you have any ideas?

ok got this working after changing our pytest fixture scope


#2094 - Rework actions component bit

Thank you for your contribution to the KodaDot NFT gallery.
👇 _ Do a quick check before the merge.
PR type

[ ] Bugfix
[x] Feature
[ ] Refactoring

What's new?

[x] PR closes #2094
[x] fixed layout of actionbox

Before submitting Pull Request, please make sure:

[ ] My contribution builds clean without any errors or warnings -> there are 4 warnings from tslint about use of "any" at couple of points. perhaps should be refactored.
[x] I've merged recent default branch -- main and I've no conflicts
[x] I've tried respect high code quality standards
[x] I've didn't break any original functionality
[x] I've posted screenshot of demonstrated change in this PR

Optional

[x] I've tested it at </rmrk/collection/26902bc2f7c20c546a-1FVG7>
[x] I've tested PR on mobile and everything seems works
[ ] I found edge cases

Had issue bounty label ?

[x] Fill up your KSM address: Payout

Community participation

[x] Are you at KodaDot Discord?

Screenshot

[x] My fix has changed something on UI, a screenshot is best to understand changes for others.

pay 100 usd

😍 Perfect, I’ve sent the payout
💵 $100 @ 169.97 USD/KSM ~ 0.588 $KSM
🧗 FNyt7T1xdbhN7dagf7yGYCRJuE3R45VmTCE3tjzy1rKxa7y
🔗 0x050d8140cca5bcd5b280e602323975a4a6de7e294bf95d50e1921bad3da49174
🪅 Let’s grab another issue and get rewarded!
🪄 github.com/kodadot/nft-gallery/issues


support/documentation for building the library outside of tests

[edit:] The request is now for documentation / example for the full build process. see discussion.
[original post:] I'm looking through the documentation, and couldn't find an example on how to create bindings (specifically, C#) during the build process - the given example is for running this in tests, which IMO is a peculiar pattern, and it isn't the Rusty way to do this - this is a library, so the correct place for generating extra artifacts is in build.rs. This, with the comment saying "In real projects you might want to add this code to another crate instead" raises also the question of how/when is my library actually compiled, with added questions such as whether its compiled in release mode, etc..
Am I missing some more ergonomic way to do this?

A few thoughts:

the given example is for running this in tests, which IMO is a peculiar pattern,

I agree this is mildly abusing unit tests for brevity. That said, often in these unit tests we also want to check that currently generated bindings still match the previously generated bindings.

and it isn't the Rusty way to do this - this is a library, so the correct place for generating extra artifacts is in build.rs.

I don't quite agree for two reasons:
For one, build.rs is a pre-build script, not a build script. Given the weird things foreign (proc) macros can do, there are instances where you have more information during / after compilation of your crate, not before. If you don't want to use the unit tests hack the best thing to do is creating a dependent bin crate, which runs the interoptopus build logic in its main.rs.
Also, Interoptopus is both a library and a build tool. There is a trade-off where and when bindings are generated, and what that implies. We basically have a two-part process: 1) getting function and type info, and 2) writing bindings for a specific target language and info generated in 1).
In Interoptopus step 1) happens during compilation of the actual library, which has the advantage that when you work on and compile your library, you immediately know whether you bindings generation will work, or if you added some unsupported constructs (in all fairness, a backend might still not write bindings correctly, but that's a bug of that backend then).
On the downside, that also means we're rather tightly coupled (as a proc macro) to the Rust compiler, and running "out-of-band" is not supported.
With that said, changing how binding generation works can (and maybe should) be changed. In particular supporting 3rd-party types right now is painful, and changing the generation system would address that.

This, with the comment saying "In real projects you might want to add this code to another crate instead"

This is what I meant above. To clarify, your crate layout should be (as we're using it in our projects):
your_crate_core/               -- basic logic if your library in pure Rust
your_crate_ffi/                -- binding logic translating Rust to C-like surface API
your_crate_ffi_bindings/       -- a simple `main.rs` that depends on `your_crate_ffi_bindings` and runs Interoptopus

raises also the question of how/when is my library actually compiled, with added questions such as whether its compiled in release mode, etc..

This depends on your build config, but in essence you could just compile the entire workspace in release mode, then you'd get your_crate_ffi.dll or so, together with matching bindings.

Thanks for the quick answer!
I think that writing this in the docs would be very helpful, as would having a sample project with the 3-tier structure that you describe. Specifically, clarifying how & what to build in release or debug mode. The reference project is awesome, but it is unclear whether it describes your_crate_core or your_crate_ffi in your schema. If I understand your description correctly, the FFI headers and inventory generation should be in your_crate_ffi - is that correct? If so, can it re-export enums or other types from your_crate_core without repeating their declaration?

Yes, sorry, the docs could be better and I'd love to have a book or so.

The reference project is awesome, but it is unclear whether it describes your_crate_core or your_crate_ffi in your schema. If I understand your description correctly, the FFI headers and inventory generation should be in your_crate_ffi - is that correct?

My preferred setup goes like so: Have a cargo workspace with at least 3 crates in it, see example above.

In your_crate_core you put regular "Rusty" functions and types, for example a fn f() { ... } -> Result<T, E>
The your_crate_ffi crate then contains a translation layer where you think about how to expose your nice Rust crate as a FFI / C compatible library. For example you might add a function fn f() { ... } -> i32 that in turn calls your_crate_core::f, and translates the Result type into some i32 value. You'd also add functions that would handle lifecycle functions such as xxx_init(), xxx_destroy() which would create and destroy "service-like" types of your core crate.
your_crate_ffi_bindings is a small "application" crate that mostly depends on your_crate_ffi and Interoptopus. In its main() {} function you would just add all the Interoptopus logic you'd find in the unit tests, such as writing C# bindings.

Specifically, clarifying how & what to build in release or debug mode

I don't quite understand, but given the example above:

cargo build should build your DLL in debug mode
cargo build --release should build your DLL in release mode
cargo run -p your_crate_ffi_bindings would produce your bindings, but the bindings don't care whether the DLLs have been built in in debug or release mode.

Was that what you were asking?

Yes, that answered my question.
Thank you very much :)

your_crate_ffi_bindings is a small "application" crate that mostly depends on your_crate_ffi and Interoptopus. In its main() {} function you would just add all the Interoptopus logic you'd find in the unit tests, such as writing C# bindings.

Is this the way that is supposed to be when in the documentation is said "this in reality should be in a separate crate/application" ?
I was also confused if it meant what you specified above. Also, would it happen in its build.rs (you mentioned main) or in a test inside your_crate_ffi_bindings?


add testnet.blockchain.info support, remove BlockrIOConnector

blockr.io has been shut down

Thank you @neon-ninja!


CI: Build support svlang in parallel

Codecov Report
Patch and project coverage have no change.

Comparison is base (105f100) 93.13% compared to head (02ee446) 93.13%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1902   +/-   ##
=======================================
  Coverage   93.13%   93.13%
=======================================
  Files         355      355
  Lines       25843    25843
=======================================
  Hits        24069    24069
  Misses       1774     1774

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


macOS: Integrated terminal does not show current working directory

Issue Type: Bug
On macOS, the integrated terminal does not show the current working directory. Instead, it just displays bash-[version]$ as if it were a root session. By comparison, 1.56.0-insider @ ce791d2 still displays iMac-Pro:~ username$, just like Terminal.app on macOS.
Because it doesn't display the current working directory in the terminal, I sometimes have to guess which directory I'm currently in (or use echo $PWD to find out).
Steps to reproduce:

Open Integrated Terminal

VS Code version: Code - Insiders 1.57.0-insider (45aafeb326d0d3d56cbc9e2932f87e368dbf652d, 2021-05-18T05:12:52.309Z)
OS version: Darwin x64 20.4.0
Extensions (9)

Extension
Author (truncated)
Version

pug
ama
1.0.1

npm-intellisense
chr
1.3.1

quick-html-previewer
dai
1.0.1

fileheadercomment
doi
0.0.5

remote-ssh
ms-
0.65.4

remote-ssh-edit
ms-
0.65.4

vetur
oct
0.33.1

vz-file-templates
vis
1.0.3

vscode-icons
vsc
11.4.0

/duplicate https://github.com/microsoft/vscode/issues/124409

While we wait until the fix is shipped, adding "args": ["-l"] to the bash profile (or zsh if you use it) under "Terminal > Integrated > Profiles: Osx" temporarily fixes this issue.
Thank you @Tyriar!


fix typo in comment about package

Summary
This PR only fixes a typo in ModuleHolder.java.
Changelog
[Internal] [Fixed] - Fix typo in comment about package

@ma96o could you sign the CLA under code.facebook.com/cla so we can merge this PR?

Thanks for review.
I have signed the CLA!


Improve homepage

[x]  Update the cards to give less focus to docker etc
[ ]  Add more mention of tools - especially launch
[ ]  Have big callout "Thinking of writing a new pipeline?" with dedicated page about talking to us first. Examples of good and bad messages in #new-pipelines
[x]  Rewrite the contributor logo stuff so that it doesn't kill the browser
[ ]  Update the videos - integration with bytesize youtube links?
[ ]  Quick-search from the search box to go directly to a pipeline

Discussion and ideas about feature spotlight videos in this PR: https://github.com/nf-core/nf-co.re/pull/938
https://user-images.githubusercontent.com/465550/139961184-4c391f25-e8c4-4008-9f98-0ad29d0135f5.mov
https://github.com/nf-core/nf-co.re/pull/938#issuecomment-1623209292

I think we should do these manually using Screen Studio so they're all fancy, then make this one of the primary elements right at the top of the page.


Deprecate building of binaries for */386 platforms

With more platforms focusing on 64bit systems, it's time to drop 32bit releases.

Merged into master